diff --git a/assets/Accordion-Bb_aoL0d.js b/assets/Accordion-CWJYEZYY.js similarity index 96% rename from assets/Accordion-Bb_aoL0d.js rename to assets/Accordion-CWJYEZYY.js index 851a0f01..d63ca4e7 100644 --- a/assets/Accordion-Bb_aoL0d.js +++ b/assets/Accordion-CWJYEZYY.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{r}from"./index-mfbfsM12.js";import{P as q}from"./Pressable-0Of7HZos.js";import{B as m}from"./Box-CEQ9kk6v.js";import{C}from"./Column-CFK5NdwL.js";import{G as P}from"./Gutter-BrZ2VZou.js";import{R as N}from"./Row-D-wvv0CV.js";import{S}from"./Size-ByzkQpGs.js";import{I as D}from"./Icon-X_MsqpOP.js";import{T as I}from"./Title-DmDbCZFx.js";import{P as _}from"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import{u as T}from"./useTheme-ChTiG3MC.js";import{P as E}from"./index-DSI0shHu.js";const $=({children:n})=>e.jsxs(e.Fragment,{children:[e.jsx(m,{insetHorizontal:"md",children:n}),e.jsx(P,{height:"md"})]}),c=({icon:n,title:l})=>e.jsx(m,{grow:!0,children:e.jsxs(N,{align:"between",gutter:"md",valign:"start",children:[e.jsx(I,{color:"link",level:"h5",numberOfLines:3,text:l}),n]})}),d=({grow:n,initiallyExpanded:l,isExpandable:p=!0,onChangeExpanded:o,children:v,testID:s,title:t,logAction:f,logDimensions:g={},logName:h,logCategory:b,logValue:y,shrink:x})=>{const[a,j]=r.useState(!!l),w=a?"chevron-up":"chevron-down",{text:A}=T(),u=r.useCallback(i=>{j(i),o==null||o(i)},[o]),V=r.useMemo(()=>{const i=a?"Uitgevouwen":"Samengevouwen",k=E.OS==="android"?`${t}`:`${t}, dubbeltik om de inhoud te ${a?"verbergen":"bekijken"}`;return`${i}, ${k}.`},[a,t]);return p?e.jsxs(C,{grow:n,shrink:x,children:[e.jsx(q,{accessibilityActions:[{name:"activate",label:a?"het verbergen van de inhoud":"het bekijken van de inhoud"}],accessibilityLabel:V,accessibilityLanguage:"nl-NL",logAction:f,logCategory:b,logDimensions:{...g,[_.newState]:a?"closed":"open"},logName:h,logValue:y,onAccessibilityAction:i=>{i.nativeEvent.actionName==="activate"&&u(!a)},onPress:()=>u(!a),testID:s,children:e.jsx(c,{icon:e.jsx(S,{height:A.lineHeight.h5,children:e.jsx(D,{color:"link",name:w,size:"lg",testID:`${s}Icon`})}),title:t})}),!!a&&e.jsx($,{children:v})]}):e.jsx(c,{title:t})};try{d.displayName="Accordion",d.__docgenInfo={description:"",displayName:"Accordion",props:{grow:{defaultValue:null,description:"",name:"grow",required:!1,type:{name:"number"}},initiallyExpanded:{defaultValue:null,description:"",name:"initiallyExpanded",required:!1,type:{name:"boolean"}},isExpandable:{defaultValue:{value:"true"},description:"",name:"isExpandable",required:!1,type:{name:"boolean"}},onChangeExpanded:{defaultValue:null,description:"",name:"onChangeExpanded",required:!1,type:{name:"((state: boolean) => void)"}},shrink:{defaultValue:null,description:"",name:"shrink",required:!1,type:{name:"number"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:{value:"{}"},description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}export{d as A}; +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{r}from"./index-mfbfsM12.js";import{P as q}from"./Pressable-0Of7HZos.js";import{B as m}from"./Box-CEQ9kk6v.js";import{C}from"./Column-CFK5NdwL.js";import{G as P}from"./Gutter-BrZ2VZou.js";import{R as N}from"./Row-D-wvv0CV.js";import{S}from"./Size-ByzkQpGs.js";import{I as D}from"./Icon-DbPHcDCx.js";import{T as I}from"./Title-DyZpgX2c.js";import{P as _}from"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import{u as T}from"./useTheme-ChTiG3MC.js";import{P as E}from"./index-DSI0shHu.js";const $=({children:n})=>e.jsxs(e.Fragment,{children:[e.jsx(m,{insetHorizontal:"md",children:n}),e.jsx(P,{height:"md"})]}),c=({icon:n,title:l})=>e.jsx(m,{grow:!0,children:e.jsxs(N,{align:"between",gutter:"md",valign:"start",children:[e.jsx(I,{color:"link",level:"h5",numberOfLines:3,text:l}),n]})}),d=({grow:n,initiallyExpanded:l,isExpandable:p=!0,onChangeExpanded:o,children:v,testID:s,title:t,logAction:f,logDimensions:g={},logName:h,logCategory:b,logValue:y,shrink:x})=>{const[a,j]=r.useState(!!l),w=a?"chevron-up":"chevron-down",{text:A}=T(),u=r.useCallback(i=>{j(i),o==null||o(i)},[o]),V=r.useMemo(()=>{const i=a?"Uitgevouwen":"Samengevouwen",k=E.OS==="android"?`${t}`:`${t}, dubbeltik om de inhoud te ${a?"verbergen":"bekijken"}`;return`${i}, ${k}.`},[a,t]);return p?e.jsxs(C,{grow:n,shrink:x,children:[e.jsx(q,{accessibilityActions:[{name:"activate",label:a?"het verbergen van de inhoud":"het bekijken van de inhoud"}],accessibilityLabel:V,accessibilityLanguage:"nl-NL",logAction:f,logCategory:b,logDimensions:{...g,[_.newState]:a?"closed":"open"},logName:h,logValue:y,onAccessibilityAction:i=>{i.nativeEvent.actionName==="activate"&&u(!a)},onPress:()=>u(!a),testID:s,children:e.jsx(c,{icon:e.jsx(S,{height:A.lineHeight.h5,children:e.jsx(D,{color:"link",name:w,size:"lg",testID:`${s}Icon`})}),title:t})}),!!a&&e.jsx($,{children:v})]}):e.jsx(c,{title:t})};try{d.displayName="Accordion",d.__docgenInfo={description:"",displayName:"Accordion",props:{grow:{defaultValue:null,description:"",name:"grow",required:!1,type:{name:"number"}},initiallyExpanded:{defaultValue:null,description:"",name:"initiallyExpanded",required:!1,type:{name:"boolean"}},isExpandable:{defaultValue:{value:"true"},description:"",name:"isExpandable",required:!1,type:{name:"boolean"}},onChangeExpanded:{defaultValue:null,description:"",name:"onChangeExpanded",required:!1,type:{name:"((state: boolean) => void)"}},shrink:{defaultValue:null,description:"",name:"shrink",required:!1,type:{name:"number"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:{value:"{}"},description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}export{d as A}; diff --git a/assets/Accordion.stories-W2S0Bevf.js b/assets/Accordion.stories-DOPvYEOF.js similarity index 92% rename from assets/Accordion.stories-W2S0Bevf.js rename to assets/Accordion.stories-DOPvYEOF.js index 410238cf..7b2639e8 100644 --- a/assets/Accordion.stories-W2S0Bevf.js +++ b/assets/Accordion.stories-DOPvYEOF.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{A as a}from"./Accordion-Bb_aoL0d.js";import{P as n}from"./Paragraph-ypvGdTJ3.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Pressable-0Of7HZos.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./Column-CFK5NdwL.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Gutter-BrZ2VZou.js";import"./Row-D-wvv0CV.js";import"./Size-ByzkQpGs.js";import"./Icon-X_MsqpOP.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./Title-DmDbCZFx.js";const ir={component:a},f="Een accordeon (Engels: accordion) is een klikbare verticaal gestapelde lijst van koppen om bijbehorende inhoud te verbergen of te vertonen. Je toont inhoud op een progressieve manier aan gebruikers. Ze zijn geschikt zodra gebruikers op zoek zijn naar essentiële inhoud op 1 pagina. Door niet essentiële inhoud te verbergen, kunnen gebruikers focussen op de primaire inhoud.",o=e=>r.jsx(a,{...e,children:r.jsx(n,{children:f})});o.args={title:"Wat is een accordeon?"};const t=e=>r.jsx(a,{...e,children:r.jsx(n,{children:f})});t.args={title:"De titel moet zo kort als mogelijk zijn, maar ook duidelijk en representatief voor de verborgen inhoud"};const i=()=>r.jsx(r.Fragment,{children:["Grof afval","Restafval","Containers in de buurt","Recyclepunten"].map(e=>r.jsx(a,{testID:e,title:e,children:r.jsxs(n,{children:["Informatie over ",e.toLowerCase()," komt hier."]})}))});var p,s,m;o.parameters={...o.parameters,docs:{...(p=o.parameters)==null?void 0:p.docs,source:{originalSource:`args => +import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{A as a}from"./Accordion-CWJYEZYY.js";import{P as n}from"./Paragraph-4J4ihaTP.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Pressable-0Of7HZos.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./Column-CFK5NdwL.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Gutter-BrZ2VZou.js";import"./Row-D-wvv0CV.js";import"./Size-ByzkQpGs.js";import"./Icon-DbPHcDCx.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./Title-DyZpgX2c.js";const ir={component:a},f="Een accordeon (Engels: accordion) is een klikbare verticaal gestapelde lijst van koppen om bijbehorende inhoud te verbergen of te vertonen. Je toont inhoud op een progressieve manier aan gebruikers. Ze zijn geschikt zodra gebruikers op zoek zijn naar essentiële inhoud op 1 pagina. Door niet essentiële inhoud te verbergen, kunnen gebruikers focussen op de primaire inhoud.",o=e=>r.jsx(a,{...e,children:r.jsx(n,{children:f})});o.args={title:"Wat is een accordeon?"};const t=e=>r.jsx(a,{...e,children:r.jsx(n,{children:f})});t.args={title:"De titel moet zo kort als mogelijk zijn, maar ook duidelijk en representatief voor de verborgen inhoud"};const i=()=>r.jsx(r.Fragment,{children:["Grof afval","Restafval","Containers in de buurt","Recyclepunten"].map(e=>r.jsx(a,{testID:e,title:e,children:r.jsxs(n,{children:["Informatie over ",e.toLowerCase()," komt hier."]})}))});var p,s,m;o.parameters={...o.parameters,docs:{...(p=o.parameters)==null?void 0:p.docs,source:{originalSource:`args => {paragraphText} `,...(m=(s=o.parameters)==null?void 0:s.docs)==null?void 0:m.source}}};var c,d,l;t.parameters={...t.parameters,docs:{...(c=t.parameters)==null?void 0:c.docs,source:{originalSource:`args => {paragraphText} diff --git a/assets/Alert.stories-YhUjSp4y.js b/assets/Alert.stories-Ce3R7kZr.js similarity index 86% rename from assets/Alert.stories-YhUjSp4y.js rename to assets/Alert.stories-Ce3R7kZr.js index 771105a4..8d5e3a30 100644 --- a/assets/Alert.stories-YhUjSp4y.js +++ b/assets/Alert.stories-Ce3R7kZr.js @@ -1 +1 @@ -import{A as p,a as m}from"./AlertBase-o37gkLL_.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./index-kbHxBZ_W.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./SingleSelectable-BAFROorM.js";import"./Column-CFK5NdwL.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Row-D-wvv0CV.js";import"./Icon-X_MsqpOP.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-DSI0shHu.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./Paragraph-ypvGdTJ3.js";import"./Title-DmDbCZFx.js";import"./useAccessibilityFocus-jeKlJ74P.js";import"./useTrackException-Cm6KdDpO.js";import"./development-LhlsWDYu.js";import"./index-DEfxrPnc.js";import"./index-CDv7s-w8.js";import"./useIsScreenReaderEnabled-A65pchNu.js";import"./duration-A4BOymd5.js";import"./accessibleText-gmNPjmn1.js";const e="Titel",a="U kunt een dagontheffing of jaarontheffing aanvragen",X={component:p,argTypes:{hasCloseIcon:{type:"boolean"},inset:{table:{disable:!0}},testID:{table:{disable:!0}},variant:{options:Object.values(m),control:{type:"radio"}}},args:{title:e,text:a}},t={};var o,r,i;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(i=(r=t.parameters)==null?void 0:r.docs)==null?void 0:i.source}}};const Y=["Default"];export{t as Default,Y as __namedExportsOrder,X as default}; +import{A as p,a as m}from"./AlertBase-Cd_Tv8LG.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./index-kbHxBZ_W.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./SingleSelectable-BAFROorM.js";import"./Column-CFK5NdwL.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Row-D-wvv0CV.js";import"./Icon-DbPHcDCx.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-DSI0shHu.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./Paragraph-4J4ihaTP.js";import"./Title-DyZpgX2c.js";import"./useAccessibilityFocus-jeKlJ74P.js";import"./useTrackException-Cm6KdDpO.js";import"./development-LhlsWDYu.js";import"./index-DEfxrPnc.js";import"./index-CDv7s-w8.js";import"./useIsScreenReaderEnabled-A65pchNu.js";import"./duration-A4BOymd5.js";import"./accessibleText-gmNPjmn1.js";const e="Titel",a="U kunt een dagontheffing of jaarontheffing aanvragen",X={component:p,argTypes:{hasCloseIcon:{type:"boolean"},inset:{table:{disable:!0}},testID:{table:{disable:!0}},variant:{options:Object.values(m),control:{type:"radio"}}},args:{title:e,text:a}},t={};var o,r,i;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(i=(r=t.parameters)==null?void 0:r.docs)==null?void 0:i.source}}};const Y=["Default"];export{t as Default,Y as __namedExportsOrder,X as default}; diff --git a/assets/AlertBase-o37gkLL_.js b/assets/AlertBase-Cd_Tv8LG.js similarity index 93% rename from assets/AlertBase-o37gkLL_.js rename to assets/AlertBase-Cd_Tv8LG.js index 8f21d4fd..52c85a7b 100644 --- a/assets/AlertBase-o37gkLL_.js +++ b/assets/AlertBase-Cd_Tv8LG.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{B as x}from"./Box-CEQ9kk6v.js";import{S as h}from"./SingleSelectable-BAFROorM.js";import{C as b}from"./Column-CFK5NdwL.js";import{R as m}from"./Row-D-wvv0CV.js";import{I as p}from"./Icon-X_MsqpOP.js";import{P as y}from"./Paragraph-ypvGdTJ3.js";import{T as j}from"./Title-DmDbCZFx.js";import{u as I}from"./useAccessibilityFocus-jeKlJ74P.js";import{u as C}from"./useThemable-ua4U8LzO.js";import{D as _}from"./duration-A4BOymd5.js";import{a as w}from"./accessibleText-gmNPjmn1.js";import{V as l}from"./index-BP1Ij_Cs.js";import{s as V}from"./index-kbHxBZ_W.js";var n=(e=>(e.information="information",e.negative="negative",e.positive="positive",e.warning="warning",e))(n||{});const q=3,N=({children:e,inset:r})=>r!==void 0?a.jsx(x,{inset:r,children:e}):a.jsx(a.Fragment,{children:e}),d=({children:e,hasCloseIcon:r=!1,inset:s,testID:t,hasIcon:f=!1,text:c,title:o,variant:u=n.information})=>{const g=I(_.long),v=R[u],i=C(T(u));return!!c||!!o||!!e?a.jsx(N,{inset:s,children:a.jsx(l,{testID:`${t}Wrapper`,children:a.jsx(l,{accessibilityLanguage:"nl-NL",accessibilityRole:"alert",accessible:!0,ref:g,style:i==null?void 0:i.view,testID:t,children:e??a.jsxs(m,{align:"between",children:[a.jsx(h,{accessibilityLabel:w(o,c),accessibilityLanguage:"nl-NL",accessibilityRole:"alert",children:a.jsxs(m,{gutter:"md",children:[!!f&&a.jsx(l,{style:i==null?void 0:i.iconWrapper,children:a.jsx(p,{name:v,size:"lg",testID:`${t}Icon`})}),a.jsxs(b,{shrink:1,children:[!!o&&a.jsx(j,{level:"h4",text:o}),a.jsx(y,{children:c})]})]})}),!!r&&a.jsx(l,{children:a.jsx(p,{name:"close",size:"lg",testID:`${t}CloseIcon`})})]})})})}):null},R={[n.information]:"info",[n.negative]:"error",[n.positive]:"circle-check-mark",[n.warning]:"alert"},T=e=>({color:r,size:s})=>{if(e)return V.create({iconWrapper:{top:q},view:{backgroundColor:r.alert[e].background,borderWidth:2,borderColor:r.alert[e].border,paddingHorizontal:s.spacing.lg,paddingVertical:s.spacing.md}})};try{d.displayName="AlertBase",d.__docgenInfo={description:"",displayName:"AlertBase",props:{inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},hasCloseIcon:{defaultValue:{value:"false"},description:"",name:"hasCloseIcon",required:!1,type:{name:"boolean"}},hasIcon:{defaultValue:{value:"false"},description:"",name:"hasIcon",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},variant:{defaultValue:{value:"AlertVariant.information"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"information"'},{value:'"negative"'},{value:'"positive"'},{value:'"warning"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{d as A,n as a}; +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{B as x}from"./Box-CEQ9kk6v.js";import{S as h}from"./SingleSelectable-BAFROorM.js";import{C as b}from"./Column-CFK5NdwL.js";import{R as m}from"./Row-D-wvv0CV.js";import{I as p}from"./Icon-DbPHcDCx.js";import{P as y}from"./Paragraph-4J4ihaTP.js";import{T as j}from"./Title-DyZpgX2c.js";import{u as I}from"./useAccessibilityFocus-jeKlJ74P.js";import{u as C}from"./useThemable-ua4U8LzO.js";import{D as _}from"./duration-A4BOymd5.js";import{a as w}from"./accessibleText-gmNPjmn1.js";import{V as l}from"./index-BP1Ij_Cs.js";import{s as V}from"./index-kbHxBZ_W.js";var n=(e=>(e.information="information",e.negative="negative",e.positive="positive",e.warning="warning",e))(n||{});const q=3,N=({children:e,inset:r})=>r!==void 0?a.jsx(x,{inset:r,children:e}):a.jsx(a.Fragment,{children:e}),d=({children:e,hasCloseIcon:r=!1,inset:s,testID:t,hasIcon:f=!1,text:c,title:o,variant:u=n.information})=>{const g=I(_.long),v=R[u],i=C(T(u));return!!c||!!o||!!e?a.jsx(N,{inset:s,children:a.jsx(l,{testID:`${t}Wrapper`,children:a.jsx(l,{accessibilityLanguage:"nl-NL",accessibilityRole:"alert",accessible:!0,ref:g,style:i==null?void 0:i.view,testID:t,children:e??a.jsxs(m,{align:"between",children:[a.jsx(h,{accessibilityLabel:w(o,c),accessibilityLanguage:"nl-NL",accessibilityRole:"alert",children:a.jsxs(m,{gutter:"md",children:[!!f&&a.jsx(l,{style:i==null?void 0:i.iconWrapper,children:a.jsx(p,{name:v,size:"lg",testID:`${t}Icon`})}),a.jsxs(b,{shrink:1,children:[!!o&&a.jsx(j,{level:"h4",text:o}),a.jsx(y,{children:c})]})]})}),!!r&&a.jsx(l,{children:a.jsx(p,{name:"close",size:"lg",testID:`${t}CloseIcon`})})]})})})}):null},R={[n.information]:"info",[n.negative]:"error",[n.positive]:"circle-check-mark",[n.warning]:"alert"},T=e=>({color:r,size:s})=>{if(e)return V.create({iconWrapper:{top:q},view:{backgroundColor:r.alert[e].background,borderWidth:2,borderColor:r.alert[e].border,paddingHorizontal:s.spacing.lg,paddingVertical:s.spacing.md}})};try{d.displayName="AlertBase",d.__docgenInfo={description:"",displayName:"AlertBase",props:{inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},hasCloseIcon:{defaultValue:{value:"false"},description:"",name:"hasCloseIcon",required:!1,type:{name:"boolean"}},hasIcon:{defaultValue:{value:"false"},description:"",name:"hasIcon",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},variant:{defaultValue:{value:"AlertVariant.information"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"information"'},{value:'"negative"'},{value:'"positive"'},{value:'"warning"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{d as A,n as a}; diff --git a/assets/AspectRatio.stories-WZAYpz98.js b/assets/AspectRatio.stories-CxrkzDXX.js similarity index 96% rename from assets/AspectRatio.stories-WZAYpz98.js rename to assets/AspectRatio.stories-CxrkzDXX.js index 727cc061..29c430fa 100644 --- a/assets/AspectRatio.stories-WZAYpz98.js +++ b/assets/AspectRatio.stories-CxrkzDXX.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{O as l}from"./types-BJ_48vsK.js";import{u as m}from"./useThemable-ua4U8LzO.js";import{V as u}from"./index-BP1Ij_Cs.js";import{s as d}from"./index-kbHxBZ_W.js";import{P as h}from"./Phrase-D4XuA9hP.js";import"./Block-B9hfeL6e.js";import{C as v}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-CAyeAlm6.js";const s=({aspectRatio:e,children:o,orientation:t="landscape"})=>{const i=m(f(e,t));return r.jsx(u,{style:i.view,children:o})},f=(e,o)=>({media:t})=>{const i=o===l.portrait?1/t.aspectRatio[e]:t.aspectRatio[e];return d.create({view:{aspectRatio:i}})};try{s.displayName="AspectRatio",s.__docgenInfo={description:"",displayName:"AspectRatio",props:{aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!0,type:{name:"enum",value:[{value:'"extraWide"'},{value:'"narrow"'},{value:'"square"'},{value:'"wide"'},{value:'"tight"'}]}},orientation:{defaultValue:{value:"landscape"},description:"",name:"orientation",required:!1,type:{name:"enum",value:[{value:'"landscape"'},{value:'"portrait"'}]}}}}}catch{}const O={component:s},a=e=>r.jsx(s,{...e,children:r.jsx(v,{highlight:!0,children:r.jsx(h,{testID:"Phrase",children:"Ik heb een bepaalde beeldverhouding."})})});a.args={aspectRatio:"wide",orientation:"landscape"};var n,p,c;a.parameters={...a.parameters,docs:{...(n=a.parameters)==null?void 0:n.docs,source:{originalSource:`args => +import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{O as l}from"./types-BJ_48vsK.js";import{u as m}from"./useThemable-ua4U8LzO.js";import{V as u}from"./index-BP1Ij_Cs.js";import{s as d}from"./index-kbHxBZ_W.js";import{P as h}from"./Phrase-CZOdtc60.js";import"./Block-B9hfeL6e.js";import{C as v}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-CAyeAlm6.js";const s=({aspectRatio:e,children:o,orientation:t="landscape"})=>{const i=m(f(e,t));return r.jsx(u,{style:i.view,children:o})},f=(e,o)=>({media:t})=>{const i=o===l.portrait?1/t.aspectRatio[e]:t.aspectRatio[e];return d.create({view:{aspectRatio:i}})};try{s.displayName="AspectRatio",s.__docgenInfo={description:"",displayName:"AspectRatio",props:{aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!0,type:{name:"enum",value:[{value:'"extraWide"'},{value:'"narrow"'},{value:'"square"'},{value:'"wide"'},{value:'"tight"'}]}},orientation:{defaultValue:{value:"landscape"},description:"",name:"orientation",required:!1,type:{name:"enum",value:[{value:'"landscape"'},{value:'"portrait"'}]}}}}}catch{}const O={component:s},a=e=>r.jsx(s,{...e,children:r.jsx(v,{highlight:!0,children:r.jsx(h,{testID:"Phrase",children:"Ik heb een bepaalde beeldverhouding."})})});a.args={aspectRatio:"wide",orientation:"landscape"};var n,p,c;a.parameters={...a.parameters,docs:{...(n=a.parameters)==null?void 0:n.docs,source:{originalSource:`args => Ik heb een bepaalde beeldverhouding. diff --git a/assets/Badge-gxv3290q.js b/assets/Badge-BAkGihjF.js similarity index 96% rename from assets/Badge-gxv3290q.js rename to assets/Badge-BAkGihjF.js index 65dd4e09..12222c49 100644 --- a/assets/Badge-gxv3290q.js +++ b/assets/Badge-BAkGihjF.js @@ -1 +1 @@ -import{j as i}from"./jsx-runtime-Bxcv0yjW.js";import{R as p}from"./Row-D-wvv0CV.js";import{u as f}from"./useDeviceContext-Cm8FgCCV.js";import{u as g}from"./useThemable-ua4U8LzO.js";import{V as b}from"./index-BP1Ij_Cs.js";import{T as y}from"./index-CAyeAlm6.js";import{s as h}from"./index-kbHxBZ_W.js";const x=(e,a)=>e.toLocaleString("nl-NL"),u=({accessibilityLabel:e,accessibilityLanguage:a="nl-NL",testID:l,value:t,variant:r="default"})=>{const{fontScale:s}=f(),o=g(v(s,r,t));return i.jsx(p,{align:"start",children:i.jsx(b,{style:o.circle,children:i.jsx(y,{accessibilityLabel:e,accessibilityLanguage:a,accessible:r!=="on-icon",numberOfLines:1,style:o.text,testID:l,children:!!t&&x(t)})})})},_=1.2,I=1.4,v=(e,a,l=0)=>({color:t,text:r,border:s})=>{const o=r.fontSize[a==="extraSmall"?"extraSmall":a==="small"?"small":"body"],c=a==="on-icon"?1+(e-1)/2:e,d=l>9,n=(d?I:_)*c*o,m=o/e*c;return h.create({circle:{height:n,width:n,borderRadius:n/2,backgroundColor:t.badge.background,borderWidth:s.width.sm,borderColor:t.badge.border},text:{fontFamily:r.fontFamily.bold,fontSize:m,lineHeight:d?m*1.28:n,color:t.text.inverse,textAlign:"center"}})};try{u.displayName="Badge",u.__docgenInfo={description:"",displayName:"Badge",props:{value:{defaultValue:null,description:"The value to display in the badge.",name:"value",required:!1,type:{name:"number"}},variant:{defaultValue:{value:"default"},description:"Which variant of the badge to display.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"default"'},{value:'"extraSmall"'},{value:'"on-icon"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{u as B}; +import{j as i}from"./jsx-runtime-Bxcv0yjW.js";import{R as p}from"./Row-D-wvv0CV.js";import{u as f}from"./useDeviceContext-Cm8FgCCV.js";import{u as g}from"./useThemable-ua4U8LzO.js";import{V as b}from"./index-BP1Ij_Cs.js";import{T as y}from"./index-CAyeAlm6.js";import{s as h}from"./index-kbHxBZ_W.js";const x=(e,a)=>e.toLocaleString("nl-NL"),u=({accessibilityLabel:e,accessibilityLanguage:a="nl-NL",testID:l,value:t,variant:r="default"})=>{const{fontScale:s}=f(),o=g(v(s,r,t));return i.jsx(p,{align:"start",children:i.jsx(b,{style:o.circle,children:i.jsx(y,{accessibilityLabel:e,accessibilityLanguage:a,accessible:r!=="on-icon",numberOfLines:1,style:o.text,testID:l,children:!!t&&x(t)})})})},_=1.2,I=1.4,v=(e,a,l=0)=>({color:t,text:r,border:s})=>{const o=r.fontSize[a==="extraSmall"?"extraSmall":a==="small"?"small":"body"],c=a==="on-icon"?1+(e-1)/2:e,d=l>9,n=(d?I:_)*c*o,m=o/e*c;return h.create({circle:{height:n,width:n,borderRadius:n/2,backgroundColor:t.badge.background,borderWidth:s.width.sm,borderColor:t.badge.border},text:{fontFamily:r.fontFamily.bold,fontSize:m,lineHeight:d?m*1.28:n,color:t.text.inverse,textAlign:"center"}})};try{u.displayName="Badge",u.__docgenInfo={description:"",displayName:"Badge",props:{value:{defaultValue:null,description:"The value to display in the badge.",name:"value",required:!1,type:{name:"number"}},variant:{defaultValue:{value:"default"},description:"Which variant of the badge to display.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"small"'},{value:'"extraSmall"'},{value:'"on-icon"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{u as B}; diff --git a/assets/Badge.stories-BFHvS6t2.js b/assets/Badge.stories-6dAHUh_M.js similarity index 94% rename from assets/Badge.stories-BFHvS6t2.js rename to assets/Badge.stories-6dAHUh_M.js index 8739e23a..e2d9e966 100644 --- a/assets/Badge.stories-BFHvS6t2.js +++ b/assets/Badge.stories-6dAHUh_M.js @@ -1,4 +1,4 @@ -import{B as i}from"./Badge-gxv3290q.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./index-kbHxBZ_W.js";import"./base-color-B2rPH-Aj.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./index-BXDkY5MO.js";import"./index-CAyeAlm6.js";const w={component:i,args:{value:3}},r={},o={args:{variant:"small"}};var t,a,m;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:"{}",...(m=(a=r.parameters)==null?void 0:a.docs)==null?void 0:m.source}}};var e,s,p;o.parameters={...o.parameters,docs:{...(e=o.parameters)==null?void 0:e.docs,source:{originalSource:`{ +import{B as i}from"./Badge-BAkGihjF.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./index-kbHxBZ_W.js";import"./base-color-B2rPH-Aj.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./index-BXDkY5MO.js";import"./index-CAyeAlm6.js";const w={component:i,args:{value:3}},r={},o={args:{variant:"small"}};var t,a,m;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:"{}",...(m=(a=r.parameters)==null?void 0:a.docs)==null?void 0:m.source}}};var e,s,p;o.parameters={...o.parameters,docs:{...(e=o.parameters)==null?void 0:e.docs,source:{originalSource:`{ args: { variant: 'small' } diff --git a/assets/Box.stories-DS_CBNZ5.js b/assets/Box.stories-CgtawHVf.js similarity index 94% rename from assets/Box.stories-DS_CBNZ5.js rename to assets/Box.stories-CgtawHVf.js index 1f1dc3ea..9c1aa0bb 100644 --- a/assets/Box.stories-DS_CBNZ5.js +++ b/assets/Box.stories-CgtawHVf.js @@ -1,3 +1,3 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{B as m}from"./Box-CEQ9kk6v.js";import{P as p}from"./Phrase-D4XuA9hP.js";import{b as s}from"./base-color-B2rPH-Aj.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./layoutStyles-hLwHoe51.js";import"./index-kbHxBZ_W.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-CAyeAlm6.js";const I={component:m,args:{distinct:!1,grow:!1,inset:"md"},parameters:{backgrounds:{values:[{name:"Default screen",value:s.primary.white},{name:"Settings screen",value:s.custom.grey0}]}}},r=i=>e.jsx(m,{...i,children:e.jsx(p,{testID:"Phrase",children:"I’m a box."})});var o,t,a;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`args => +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{B as m}from"./Box-CEQ9kk6v.js";import{P as p}from"./Phrase-CZOdtc60.js";import{b as s}from"./base-color-B2rPH-Aj.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./layoutStyles-hLwHoe51.js";import"./index-kbHxBZ_W.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-CAyeAlm6.js";const I={component:m,args:{distinct:!1,grow:!1,inset:"md"},parameters:{backgrounds:{values:[{name:"Default screen",value:s.primary.white},{name:"Settings screen",value:s.custom.grey0}]}}},r=i=>e.jsx(m,{...i,children:e.jsx(p,{testID:"Phrase",children:"I’m a box."})});var o,t,a;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`args => I’m a box. `,...(a=(t=r.parameters)==null?void 0:t.docs)==null?void 0:a.source}}};const v=["Default"];export{r as Default,v as __namedExportsOrder,I as default}; diff --git a/assets/Button-_M7GwRMx.js b/assets/Button-BgT1eW_K.js similarity index 98% rename from assets/Button-_M7GwRMx.js rename to assets/Button-BgT1eW_K.js index c371696b..8997b29a 100644 --- a/assets/Button-_M7GwRMx.js +++ b/assets/Button-BgT1eW_K.js @@ -1 +1 @@ -import{j as m}from"./jsx-runtime-Bxcv0yjW.js";import{r as y}from"./index-mfbfsM12.js";import{P as C}from"./PressableBase-DhkKVuqd.js";import{c as w}from"./config-BZnShabN.js";import{R as V}from"./Row-D-wvv0CV.js";import{I as q}from"./Icon-X_MsqpOP.js";import{u as x}from"./useThemable-ua4U8LzO.js";import{T as L}from"./index-CAyeAlm6.js";import{s as S}from"./index-kbHxBZ_W.js";const p="primary",b=({ellipsizeMode:l,iconName:e,isLoading:a,label:n,numberOfLines:o,small:r,testID:i,variant:c=p,...t})=>{const[g,s]=y.useState(!1),d=x(z({small:r,variant:c},g)),{onPressIn:u,onPressOut:v}=t,h=y.useCallback(f=>{s(!0),u==null||u(f)},[u]),k=y.useCallback(f=>{s(!1),v==null||v(f)},[v]);return m.jsx(C,{accessibilityLanguage:"nl-NL",accessibilityRole:"button",onPressIn:h,onPressOut:k,style:d.button,testID:i,...t,children:m.jsxs(V,{gutter:"sm",valign:"center",children:[!!e&&m.jsx(q,{color:c==="primary"?"inverse":"link",name:a?"spinner":e,size:"lg",testID:`${i}Icon`}),!!n&&m.jsx(L,{ellipsizeMode:l,numberOfLines:o,style:d.label,testID:`${i}Label`,children:n})]})})},N=(l,e,a=p)=>l.pressable[a][e?"pressed":"default"].border,_=(l,e,a=p)=>l.pressable[a][e?"pressed":"default"].label,j=(l,e,a=p)=>l.pressable[a][e?"pressed":"default"].background,z=({small:l,variant:e},a)=>({border:n,color:o,text:r,size:i})=>{const c=w.buttonHeight,t=n.width[e==="secondary"&&a?"lg":"md"],g=r.fontSize[l?"small":"body"],s=r.lineHeight[l?"small":"body"],d=i.spacing.md+2+n.width.md-t,u=(c-s-2*t)/2;return S.create({button:{flexDirection:"row",justifyContent:"center",flexShrink:1,paddingHorizontal:d,paddingVertical:u,backgroundColor:j(o,a,e),borderColor:N(o,a,e),borderStyle:"solid",borderWidth:t},label:{flexShrink:1,color:_(o,a,e),fontFamily:r.fontFamily.regular,fontSize:g,lineHeight:s}})};try{b.displayName="Button",b.__docgenInfo={description:"",displayName:"Button",props:{ellipsizeMode:{defaultValue:null,description:"",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"head"'},{value:'"tail"'},{value:'"middle"'},{value:'"clip"'}]}},iconName:{defaultValue:null,description:"",name:"iconName",required:!1,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},variant:{defaultValue:{value:"primary"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}export{b as B}; +import{j as m}from"./jsx-runtime-Bxcv0yjW.js";import{r as y}from"./index-mfbfsM12.js";import{P as C}from"./PressableBase-DhkKVuqd.js";import{c as w}from"./config-BZnShabN.js";import{R as V}from"./Row-D-wvv0CV.js";import{I as q}from"./Icon-DbPHcDCx.js";import{u as x}from"./useThemable-ua4U8LzO.js";import{T as L}from"./index-CAyeAlm6.js";import{s as S}from"./index-kbHxBZ_W.js";const p="primary",b=({ellipsizeMode:l,iconName:e,isLoading:a,label:n,numberOfLines:o,small:r,testID:i,variant:c=p,...t})=>{const[g,s]=y.useState(!1),d=x(z({small:r,variant:c},g)),{onPressIn:u,onPressOut:v}=t,h=y.useCallback(f=>{s(!0),u==null||u(f)},[u]),k=y.useCallback(f=>{s(!1),v==null||v(f)},[v]);return m.jsx(C,{accessibilityLanguage:"nl-NL",accessibilityRole:"button",onPressIn:h,onPressOut:k,style:d.button,testID:i,...t,children:m.jsxs(V,{gutter:"sm",valign:"center",children:[!!e&&m.jsx(q,{color:c==="primary"?"inverse":"link",name:a?"spinner":e,size:"lg",testID:`${i}Icon`}),!!n&&m.jsx(L,{ellipsizeMode:l,numberOfLines:o,style:d.label,testID:`${i}Label`,children:n})]})})},N=(l,e,a=p)=>l.pressable[a][e?"pressed":"default"].border,_=(l,e,a=p)=>l.pressable[a][e?"pressed":"default"].label,j=(l,e,a=p)=>l.pressable[a][e?"pressed":"default"].background,z=({small:l,variant:e},a)=>({border:n,color:o,text:r,size:i})=>{const c=w.buttonHeight,t=n.width[e==="secondary"&&a?"lg":"md"],g=r.fontSize[l?"small":"body"],s=r.lineHeight[l?"small":"body"],d=i.spacing.md+2+n.width.md-t,u=(c-s-2*t)/2;return S.create({button:{flexDirection:"row",justifyContent:"center",flexShrink:1,paddingHorizontal:d,paddingVertical:u,backgroundColor:j(o,a,e),borderColor:N(o,a,e),borderStyle:"solid",borderWidth:t},label:{flexShrink:1,color:_(o,a,e),fontFamily:r.fontFamily.regular,fontSize:g,lineHeight:s}})};try{b.displayName="Button",b.__docgenInfo={description:"",displayName:"Button",props:{ellipsizeMode:{defaultValue:null,description:"",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"head"'},{value:'"tail"'},{value:'"middle"'},{value:'"clip"'}]}},iconName:{defaultValue:null,description:"",name:"iconName",required:!1,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},variant:{defaultValue:{value:"primary"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}export{b as B}; diff --git a/assets/Button.stories-lunSqU3S.js b/assets/Button.stories-fTRm7p5g.js similarity index 96% rename from assets/Button.stories-lunSqU3S.js rename to assets/Button.stories-fTRm7p5g.js index 58e2a65d..4c567556 100644 --- a/assets/Button.stories-lunSqU3S.js +++ b/assets/Button.stories-fTRm7p5g.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{B as t}from"./Button-_M7GwRMx.js";import{R as p}from"./Row-D-wvv0CV.js";import{p as A}from"./pressable-arg-types-CJIMfHep.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./config-BZnShabN.js";import"./Icon-X_MsqpOP.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";const dr={argTypes:A,component:t,parameters:{componentSubtitle:"Het basis button component"}},o={args:{label:"Primary",variant:"primary"}},s={args:{label:"Secondary",variant:"secondary"}},n={args:{label:"Tertiary",variant:"tertiary"}},i={args:{align:"start"},render:({align:e})=>r.jsx(p,{align:e,children:r.jsx(t,{label:"Inline button",testID:"Button"})})},m={args:{align:"start",gutter:"md"},render:({align:e,gutter:P})=>r.jsxs(p,{align:e,gutter:P,children:[r.jsx(t,{label:"First button",testID:"Button"}),r.jsx(t,{label:"Second button",testID:"Button",variant:"secondary"}),r.jsx(t,{label:"Third button",testID:"Button",variant:"tertiary"})]})},a={args:{iconName:"phone",label:"Bel ons"},render:e=>r.jsx(p,{align:"start",children:r.jsx(t,{...e,testID:"Button"})})};var c,l,u;o.parameters={...o.parameters,docs:{...(c=o.parameters)==null?void 0:c.docs,source:{originalSource:`{ +import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{B as t}from"./Button-BgT1eW_K.js";import{R as p}from"./Row-D-wvv0CV.js";import{p as A}from"./pressable-arg-types-CJIMfHep.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./config-BZnShabN.js";import"./Icon-DbPHcDCx.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";const dr={argTypes:A,component:t,parameters:{componentSubtitle:"Het basis button component"}},o={args:{label:"Primary",variant:"primary"}},s={args:{label:"Secondary",variant:"secondary"}},n={args:{label:"Tertiary",variant:"tertiary"}},i={args:{align:"start"},render:({align:e})=>r.jsx(p,{align:e,children:r.jsx(t,{label:"Inline button",testID:"Button"})})},m={args:{align:"start",gutter:"md"},render:({align:e,gutter:P})=>r.jsxs(p,{align:e,gutter:P,children:[r.jsx(t,{label:"First button",testID:"Button"}),r.jsx(t,{label:"Second button",testID:"Button",variant:"secondary"}),r.jsx(t,{label:"Third button",testID:"Button",variant:"tertiary"})]})},a={args:{iconName:"phone",label:"Bel ons"},render:e=>r.jsx(p,{align:"start",children:r.jsx(t,{...e,testID:"Button"})})};var c,l,u;o.parameters={...o.parameters,docs:{...(c=o.parameters)==null?void 0:c.docs,source:{originalSource:`{ args: { label: 'Primary', variant: 'primary' diff --git a/assets/Center.stories-Cnqg3jM5.js b/assets/Center.stories-D_o2M5AZ.js similarity index 94% rename from assets/Center.stories-Cnqg3jM5.js rename to assets/Center.stories-D_o2M5AZ.js index 090add62..3b0c2545 100644 --- a/assets/Center.stories-Cnqg3jM5.js +++ b/assets/Center.stories-D_o2M5AZ.js @@ -1,3 +1,3 @@ -import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{C as i}from"./Center-2_hcwEx9.js";import{P as m}from"./Phrase-D4XuA9hP.js";import"./Block-B9hfeL6e.js";import{C as p}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./layoutStyles-hLwHoe51.js";import"./index-kbHxBZ_W.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";const E={component:i,decorators:[e=>t.jsx(p,{height:"256px",highlight:!0,maxWidth:"512px",children:t.jsx(e,{})})]},r=e=>t.jsx(i,{...e,children:t.jsx(m,{testID:"Phrase",children:"Ik sta in het midden"})});r.args={grow:!0};var s,o,a;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.docs,source:{originalSource:`args =>
+import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{C as i}from"./Center-2_hcwEx9.js";import{P as m}from"./Phrase-CZOdtc60.js";import"./Block-B9hfeL6e.js";import{C as p}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./layoutStyles-hLwHoe51.js";import"./index-kbHxBZ_W.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";const E={component:i,decorators:[e=>t.jsx(p,{height:"256px",highlight:!0,maxWidth:"512px",children:t.jsx(e,{})})]},r=e=>t.jsx(i,{...e,children:t.jsx(m,{testID:"Phrase",children:"Ik sta in het midden"})});r.args={grow:!0};var s,o,a;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.docs,source:{originalSource:`args =>
Ik sta in het midden
`,...(a=(o=r.parameters)==null?void 0:o.docs)==null?void 0:a.source}}};const v=["Default"];export{r as Default,v as __namedExportsOrder,E as default}; diff --git a/assets/CharactersLeftDisplay.stories-kvfTujVC.js b/assets/CharactersLeftDisplay.stories-YA-KrHnU.js similarity index 95% rename from assets/CharactersLeftDisplay.stories-kvfTujVC.js rename to assets/CharactersLeftDisplay.stories-YA-KrHnU.js index c1df8ff6..130dc405 100644 --- a/assets/CharactersLeftDisplay.stories-kvfTujVC.js +++ b/assets/CharactersLeftDisplay.stories-YA-KrHnU.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-Bxcv0yjW.js";import{P as p}from"./Paragraph-ypvGdTJ3.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./index-kbHxBZ_W.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./TextAncestorContext-Dg3XKfar.js";const t=({maxCharacters:r,numOfCharacters:a})=>n.jsx(p,{accessibilityLabel:`U heeft ${a} van de maximaal ${r} tekens ingevoerd`,color:a>r?"warning":"default",children:`${a}/${r}`});try{t.displayName="CharactersLeftDisplay",t.__docgenInfo={description:"",displayName:"CharactersLeftDisplay",props:{maxCharacters:{defaultValue:null,description:"",name:"maxCharacters",required:!0,type:{name:"number"}},numOfCharacters:{defaultValue:null,description:"",name:"numOfCharacters",required:!0,type:{name:"number"}}}}}catch{}const C={component:t},e={args:{maxCharacters:50,numOfCharacters:0}};var s,o,i;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:`{ +import{j as n}from"./jsx-runtime-Bxcv0yjW.js";import{P as p}from"./Paragraph-4J4ihaTP.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./index-kbHxBZ_W.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./TextAncestorContext-Dg3XKfar.js";const t=({maxCharacters:r,numOfCharacters:a})=>n.jsx(p,{accessibilityLabel:`U heeft ${a} van de maximaal ${r} tekens ingevoerd`,color:a>r?"warning":"default",children:`${a}/${r}`});try{t.displayName="CharactersLeftDisplay",t.__docgenInfo={description:"",displayName:"CharactersLeftDisplay",props:{maxCharacters:{defaultValue:null,description:"",name:"maxCharacters",required:!0,type:{name:"number"}},numOfCharacters:{defaultValue:null,description:"",name:"numOfCharacters",required:!0,type:{name:"number"}}}}}catch{}const C={component:t},e={args:{maxCharacters:50,numOfCharacters:0}};var s,o,i;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:`{ args: { maxCharacters: 50, numOfCharacters: 0 diff --git a/assets/ChatSystemEntry-DUcFLRjf.js b/assets/ChatSystemEntry-CUUCUyCa.js similarity index 94% rename from assets/ChatSystemEntry-DUcFLRjf.js rename to assets/ChatSystemEntry-CUUCUyCa.js index 047f5501..2a5917c3 100644 --- a/assets/ChatSystemEntry-DUcFLRjf.js +++ b/assets/ChatSystemEntry-CUUCUyCa.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{R as r}from"./Row-D-wvv0CV.js";import{I as n}from"./Icon-X_MsqpOP.js";import{P as c}from"./Phrase-D4XuA9hP.js";import{V as o}from"./index-BP1Ij_Cs.js";const t=({icon:a,text:u,testID:l})=>e.jsx(o,{accessible:!0,children:e.jsxs(r,{align:"center",gutter:"sm",valign:"center",children:[e.jsx(n,{color:"secondary",name:a,testID:`${l}Icon`}),e.jsx(c,{color:"secondary",testID:`${l}Phrase`,textAlign:"center",children:u})]})});try{t.displayName="ChatSystemEntry",t.__docgenInfo={description:"",displayName:"ChatSystemEntry",props:{icon:{defaultValue:null,description:"",name:"icon",required:!0,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{t as C}; +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{R as r}from"./Row-D-wvv0CV.js";import{I as n}from"./Icon-DbPHcDCx.js";import{P as c}from"./Phrase-CZOdtc60.js";import{V as o}from"./index-BP1Ij_Cs.js";const t=({icon:a,text:u,testID:l})=>e.jsx(o,{accessible:!0,children:e.jsxs(r,{align:"center",gutter:"sm",valign:"center",children:[e.jsx(n,{color:"secondary",name:a,testID:`${l}Icon`}),e.jsx(c,{color:"secondary",testID:`${l}Phrase`,textAlign:"center",children:u})]})});try{t.displayName="ChatSystemEntry",t.__docgenInfo={description:"",displayName:"ChatSystemEntry",props:{icon:{defaultValue:null,description:"",name:"icon",required:!0,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{t as C}; diff --git a/assets/ChatSystemEntry.stories-SeIE7jUV.js b/assets/ChatSystemEntry.stories-DJgr7mdM.js similarity index 86% rename from assets/ChatSystemEntry.stories-SeIE7jUV.js rename to assets/ChatSystemEntry.stories-DJgr7mdM.js index 55a88718..06fa1aa7 100644 --- a/assets/ChatSystemEntry.stories-SeIE7jUV.js +++ b/assets/ChatSystemEntry.stories-DJgr7mdM.js @@ -1,4 +1,4 @@ -import{C as p}from"./ChatSystemEntry-DUcFLRjf.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./index-kbHxBZ_W.js";import"./base-color-B2rPH-Aj.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./Icon-X_MsqpOP.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-DSI0shHu.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./Phrase-D4XuA9hP.js";const z={component:p},t={args:{icon:"chat",text:"Chat gestopt om 12:34",testID:"chatEntryRoutingWorkResult"}};var o,r,m;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`{ +import{C as p}from"./ChatSystemEntry-CUUCUyCa.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./index-kbHxBZ_W.js";import"./base-color-B2rPH-Aj.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./Icon-DbPHcDCx.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-DSI0shHu.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./Phrase-CZOdtc60.js";const z={component:p},t={args:{icon:"chat",text:"Chat gestopt om 12:34",testID:"chatEntryRoutingWorkResult"}};var o,r,m;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`{ args: { icon: 'chat', text: 'Chat gestopt om 12:34', diff --git a/assets/Checkbox.stories-Dpkjr6dW.js b/assets/Checkbox.stories-DZ7pmtuf.js similarity index 98% rename from assets/Checkbox.stories-Dpkjr6dW.js rename to assets/Checkbox.stories-DZ7pmtuf.js index 9cbf615f..a6764215 100644 --- a/assets/Checkbox.stories-Dpkjr6dW.js +++ b/assets/Checkbox.stories-DZ7pmtuf.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{F as k}from"./FormField-BhsBdiWh.js";import{I as y}from"./Icon-X_MsqpOP.js";import{u as C,P as x,a as V}from"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import{u as n}from"./useThemable-ua4U8LzO.js";import{M as w}from"./index-BW2XZOZc.js";import{V as P}from"./index-BP1Ij_Cs.js";import{s as _}from"./index-kbHxBZ_W.js";import{T as q}from"./index-CAyeAlm6.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./HideFromAccessibility-B6TCA_vV.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./layoutStyles-hLwHoe51.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-2SHDvLR_.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./development-LhlsWDYu.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";const l=({accessibilityLabel:e,label:d,labelPosition:m="end",logAction:p=V.toggle,logDimensions:g={},onValueChange:v,testID:r,value:o,...h})=>{const i=n(T),b=n(D),f=C({...h,logAction:p,logDimensions:{...g,[x.newState]:o?"unchecked":"checked"},onEvent:v,testID:r});return a.jsx(w,{accessibilityLabel:e,accessibilityLanguage:"nl-NL",accessibilityRole:"checkbox",accessibilityState:{selected:o},onPress:f,testID:r,...b,children:a.jsx(k,{label:d,labelPosition:m,children:a.jsx(P,{style:[i.checkbox,o&&i.checked],children:!!o&&a.jsx(y,{color:"inverse",name:"check-mark",testID:`${r}Icon`})})})})},T=({color:e})=>_.create({checkbox:{width:24,aspectRatio:1,padding:2,borderWidth:2,borderColor:e.control.checked.background,backgroundColor:e.control.default.background},checked:{backgroundColor:e.control.checked.background}}),D=({color:e})=>({underlayColor:e.checkbox.underlay});try{l.displayName="Checkbox",l.__docgenInfo={description:"",displayName:"Checkbox",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"ReactNode"}},labelPosition:{defaultValue:{value:"end"},description:"",name:"labelPosition",required:!1,type:{name:"enum",value:[{value:'"end"'},{value:'"start"'}]}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!0,type:{name:"() => void"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"boolean"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}},logAction:{defaultValue:{value:"PiwikAction.toggle"},description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:{value:"{}"},description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}const ce={component:l,argTypes:{onValueChange:{action:"onValueChange"}}},t={args:{label:a.jsx(q,{children:"Ik ga akkoord met de voorwaarden"}),labelPosition:"end",value:!1}};var s,u,c;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{ +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{F as k}from"./FormField-BhsBdiWh.js";import{I as y}from"./Icon-DbPHcDCx.js";import{u as C,P as x,a as V}from"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import{u as n}from"./useThemable-ua4U8LzO.js";import{M as w}from"./index-BW2XZOZc.js";import{V as P}from"./index-BP1Ij_Cs.js";import{s as _}from"./index-kbHxBZ_W.js";import{T as q}from"./index-CAyeAlm6.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./HideFromAccessibility-B6TCA_vV.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./layoutStyles-hLwHoe51.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-2SHDvLR_.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./development-LhlsWDYu.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";const l=({accessibilityLabel:e,label:d,labelPosition:m="end",logAction:p=V.toggle,logDimensions:g={},onValueChange:v,testID:r,value:o,...h})=>{const i=n(T),b=n(D),f=C({...h,logAction:p,logDimensions:{...g,[x.newState]:o?"unchecked":"checked"},onEvent:v,testID:r});return a.jsx(w,{accessibilityLabel:e,accessibilityLanguage:"nl-NL",accessibilityRole:"checkbox",accessibilityState:{selected:o},onPress:f,testID:r,...b,children:a.jsx(k,{label:d,labelPosition:m,children:a.jsx(P,{style:[i.checkbox,o&&i.checked],children:!!o&&a.jsx(y,{color:"inverse",name:"check-mark",testID:`${r}Icon`})})})})},T=({color:e})=>_.create({checkbox:{width:24,aspectRatio:1,padding:2,borderWidth:2,borderColor:e.control.checked.background,backgroundColor:e.control.default.background},checked:{backgroundColor:e.control.checked.background}}),D=({color:e})=>({underlayColor:e.checkbox.underlay});try{l.displayName="Checkbox",l.__docgenInfo={description:"",displayName:"Checkbox",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"ReactNode"}},labelPosition:{defaultValue:{value:"end"},description:"",name:"labelPosition",required:!1,type:{name:"enum",value:[{value:'"end"'},{value:'"start"'}]}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!0,type:{name:"() => void"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"boolean"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}},logAction:{defaultValue:{value:"PiwikAction.toggle"},description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:{value:"{}"},description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}const ce={component:l,argTypes:{onValueChange:{action:"onValueChange"}}},t={args:{label:a.jsx(q,{children:"Ik ga akkoord met de voorwaarden"}),labelPosition:"end",value:!1}};var s,u,c;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{ args: { label: Ik ga akkoord met de voorwaarden, labelPosition: 'end', diff --git a/assets/CityPassCard.stories-Bvrq-rIJ.js b/assets/CityPassCard.stories-Bf3yBmSj.js similarity index 97% rename from assets/CityPassCard.stories-Bvrq-rIJ.js rename to assets/CityPassCard.stories-Bf3yBmSj.js index d883ba50..b4bd670d 100644 --- a/assets/CityPassCard.stories-Bvrq-rIJ.js +++ b/assets/CityPassCard.stories-Bf3yBmSj.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{P as L}from"./Pressable-0Of7HZos.js";import{B as S}from"./Box-CEQ9kk6v.js";import{C as A}from"./Column-CFK5NdwL.js";import{R as y}from"./Row-D-wvv0CV.js";import{I as b}from"./Icon-X_MsqpOP.js";import{P as F}from"./Paragraph-ypvGdTJ3.js";import{T as x}from"./Title-DmDbCZFx.js";import{u as k}from"./useThemable-ua4U8LzO.js";import{a as D}from"./accessibleText-gmNPjmn1.js";import{s as P}from"./index-kbHxBZ_W.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./layoutStyles-hLwHoe51.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";var V={exports:{}},r=V.exports={},n,o;function f(){throw new Error("setTimeout has not been defined")}function v(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?n=setTimeout:n=f}catch{n=f}try{typeof clearTimeout=="function"?o=clearTimeout:o=v}catch{o=v}})();function N(e){if(n===setTimeout)return setTimeout(e,0);if((n===f||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch{try{return n.call(null,e,0)}catch{return n.call(this,e,0)}}}function $(e){if(o===clearTimeout)return clearTimeout(e);if((o===v||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{return o(e)}catch{try{return o.call(null,e)}catch{return o.call(this,e)}}}var i=[],c=!1,u,p=-1;function z(){!c||!u||(c=!1,u.length?i=u.concat(i):p=-1,i.length&&j())}function j(){if(!c){var e=N(z);c=!0;for(var t=i.length;t;){for(u=i,i=[];++p1)for(var s=1;s{const _=k(O),R="owner"in t?t==null?void 0:t.owner.firstname:t==null?void 0:t.firstname,h="balanceFormatted"in t?`Totaal saldo ${t.balanceFormatted}`:"",I="budgets"in t?t.budgets:[];return a.jsx(L,{accessibilityLabel:D(H.title,h),accessibilityLanguage:"nl-NL",accessibilityRole:e,onPress:s,testID:m,...E,insetHorizontal:"md",insetVertical:"sm",style:_.card,children:a.jsxs(y,{gutter:"md",children:[a.jsx(S,{insetTop:"sm",children:a.jsx(b,{color:"link",name:"city-pass",size:"xl",testID:`${m}Icon`})}),a.jsxs(A,{align:"center",grow:1,gutter:"xs",shrink:1,children:[a.jsx(x,{color:"link",level:"h3",testID:`${m}Title`,text:"Stadspas details"}),a.jsx(x,{color:"link",level:"h3",testID:`${m}Name`,text:R}),!!I.length&&a.jsx(F,{testID:`${m}Text`,variant:"small",children:h})]}),a.jsx(y,{valign:"center",children:a.jsx(b,{color:"link",name:"chevron-right",size:"lg",testID:`${m}Icon`})})]})})},O=({color:e,border:t})=>P.create({card:{borderColor:e.cityPass.card.border,borderWidth:t.width.sm,borderStyle:"solid"}});try{g.displayName="CityPassCard",g.__docgenInfo={description:"",displayName:"CityPassCard",props:{cityPass:{defaultValue:null,description:"",name:"cityPass",required:!0,type:{name:"CityPass | CityPassPass"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},inset:{defaultValue:null,description:"The amount of inner spacing.",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetHorizontal:{defaultValue:null,description:"The amount of inner spacing at the left and right.",name:"insetHorizontal",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetVertical:{defaultValue:null,description:"The amount of inner spacing at the top and bottom.",name:"insetVertical",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}}}}}catch{}const Ee={component:g,argTypes:{onPress:{action:"onPress"}}},d={args:{cityPass:{id:"1",dateEnd:"2022-12-31T00:00:00.000Z",dateEndFormatted:"2022-12-31",budgets:[],balanceFormatted:"€20,00",owner:{firstname:"Ryan",initials:"R.",lastname:"Huisman"},passNumber:6064366011012605,passNumberComplete:"6064366011012605999",securityCode:null}}};var T,w,C;d.parameters={...d.parameters,docs:{...(T=d.parameters)==null?void 0:T.docs,source:{originalSource:`{ +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{P as L}from"./Pressable-0Of7HZos.js";import{B as S}from"./Box-CEQ9kk6v.js";import{C as A}from"./Column-CFK5NdwL.js";import{R as y}from"./Row-D-wvv0CV.js";import{I as b}from"./Icon-DbPHcDCx.js";import{P as F}from"./Paragraph-4J4ihaTP.js";import{T as x}from"./Title-DyZpgX2c.js";import{u as k}from"./useThemable-ua4U8LzO.js";import{a as D}from"./accessibleText-gmNPjmn1.js";import{s as P}from"./index-kbHxBZ_W.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./layoutStyles-hLwHoe51.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";var V={exports:{}},r=V.exports={},n,o;function f(){throw new Error("setTimeout has not been defined")}function v(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?n=setTimeout:n=f}catch{n=f}try{typeof clearTimeout=="function"?o=clearTimeout:o=v}catch{o=v}})();function N(e){if(n===setTimeout)return setTimeout(e,0);if((n===f||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch{try{return n.call(null,e,0)}catch{return n.call(this,e,0)}}}function $(e){if(o===clearTimeout)return clearTimeout(e);if((o===v||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{return o(e)}catch{try{return o.call(null,e)}catch{return o.call(this,e)}}}var i=[],c=!1,u,p=-1;function z(){!c||!u||(c=!1,u.length?i=u.concat(i):p=-1,i.length&&j())}function j(){if(!c){var e=N(z);c=!0;for(var t=i.length;t;){for(u=i,i=[];++p1)for(var s=1;s{const _=k(O),R="owner"in t?t==null?void 0:t.owner.firstname:t==null?void 0:t.firstname,h="balanceFormatted"in t?`Totaal saldo ${t.balanceFormatted}`:"",I="budgets"in t?t.budgets:[];return a.jsx(L,{accessibilityLabel:D(H.title,h),accessibilityLanguage:"nl-NL",accessibilityRole:e,onPress:s,testID:m,...E,insetHorizontal:"md",insetVertical:"sm",style:_.card,children:a.jsxs(y,{gutter:"md",children:[a.jsx(S,{insetTop:"sm",children:a.jsx(b,{color:"link",name:"city-pass",size:"xl",testID:`${m}Icon`})}),a.jsxs(A,{align:"center",grow:1,gutter:"xs",shrink:1,children:[a.jsx(x,{color:"link",level:"h3",testID:`${m}Title`,text:"Stadspas details"}),a.jsx(x,{color:"link",level:"h3",testID:`${m}Name`,text:R}),!!I.length&&a.jsx(F,{testID:`${m}Text`,variant:"small",children:h})]}),a.jsx(y,{valign:"center",children:a.jsx(b,{color:"link",name:"chevron-right",size:"lg",testID:`${m}Icon`})})]})})},O=({color:e,border:t})=>P.create({card:{borderColor:e.cityPass.card.border,borderWidth:t.width.sm,borderStyle:"solid"}});try{g.displayName="CityPassCard",g.__docgenInfo={description:"",displayName:"CityPassCard",props:{cityPass:{defaultValue:null,description:"",name:"cityPass",required:!0,type:{name:"CityPass | CityPassPass"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},inset:{defaultValue:null,description:"The amount of inner spacing.",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetHorizontal:{defaultValue:null,description:"The amount of inner spacing at the left and right.",name:"insetHorizontal",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetVertical:{defaultValue:null,description:"The amount of inner spacing at the top and bottom.",name:"insetVertical",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}}}}}catch{}const Ee={component:g,argTypes:{onPress:{action:"onPress"}}},d={args:{cityPass:{id:"1",dateEnd:"2022-12-31T00:00:00.000Z",dateEndFormatted:"2022-12-31",budgets:[],balanceFormatted:"€20,00",owner:{firstname:"Ryan",initials:"R.",lastname:"Huisman"},passNumber:6064366011012605,passNumberComplete:"6064366011012605999",securityCode:null}}};var T,w,C;d.parameters={...d.parameters,docs:{...(T=d.parameters)==null?void 0:T.docs,source:{originalSource:`{ args: { cityPass: { id: '1', diff --git a/assets/Color-F6OSRLHC-RpgDy62Q.js b/assets/Color-F6OSRLHC-RiHXmkRP.js similarity index 99% rename from assets/Color-F6OSRLHC-RpgDy62Q.js rename to assets/Color-F6OSRLHC-RiHXmkRP.js index 0434fa4c..c0a7d78b 100644 --- a/assets/Color-F6OSRLHC-RpgDy62Q.js +++ b/assets/Color-F6OSRLHC-RiHXmkRP.js @@ -1 +1 @@ -import{ae as ce,af as M,a2 as J,a0 as he,N as fe,ag as de,ah as ge,ai as be,aj as q}from"./DocsRenderer-CFRXHY34-VG-WbEUv.js";import{R as m,r as p}from"./index-mfbfsM12.js";import"./iframe-4y4VsLB1.js";import"../sb-preview/runtime.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-DFkxGuuM.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-kifaGmES.js";import"./index-DrFu-skq.js";import"./react-18-ClY32pUF.js";import"./client-BGlHIwA3.js";var me=q({"../../node_modules/color-name/index.js"(n,l){l.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),Q=q({"../../node_modules/color-convert/conversions.js"(n,l){var c=me(),h={};for(let e of Object.keys(c))h[c[e]]=e;var u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};l.exports=u;for(let e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:r})}u.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(t,r,a),i=Math.max(t,r,a),s=i-o,f,g;i===o?f=0:t===i?f=(r-a)/s:r===i?f=2+(a-t)/s:a===i&&(f=4+(t-r)/s),f=Math.min(f*60,360),f<0&&(f+=360);let b=(o+i)/2;return i===o?g=0:b<=.5?g=s/(i+o):g=s/(2-i-o),[f,g*100,b*100]},u.rgb.hsv=function(e){let t,r,a,o,i,s=e[0]/255,f=e[1]/255,g=e[2]/255,b=Math.max(s,f,g),y=b-Math.min(s,f,g),v=function(w){return(b-w)/6/y+1/2};return y===0?(o=0,i=0):(i=y/b,t=v(s),r=v(f),a=v(g),s===b?o=a-r:f===b?o=1/3+t-a:g===b&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,b*100]},u.rgb.hwb=function(e){let t=e[0],r=e[1],a=e[2],o=u.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,a));return a=1-1/255*Math.max(t,Math.max(r,a)),[o,i*100,a*100]},u.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(1-t,1-r,1-a),i=(1-t-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,f=(1-a-o)/(1-o)||0;return[i*100,s*100,f*100,o*100]};function d(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){let t=h[e];if(t)return t;let r=1/0,a;for(let o of Object.keys(c)){let i=c[o],s=d(e,i);s.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;let o=t*.4124+r*.3576+a*.1805,i=t*.2126+r*.7152+a*.0722,s=t*.0193+r*.1192+a*.9505;return[o*100,i*100,s*100]},u.rgb.lab=function(e){let t=u.rgb.xyz(e),r=t[0],a=t[1],o=t[2];r/=95.047,a/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let i=116*a-16,s=500*(r-a),f=200*(a-o);return[i,s,f]},u.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o,i,s;if(r===0)return s=a*255,[s,s,s];a<.5?o=a*(1+r):o=a+r-a*r;let f=2*a-o,g=[0,0,0];for(let b=0;b<3;b++)i=t+1/3*-(b-1),i<0&&i++,i>1&&i--,6*i<1?s=f+(o-f)*6*i:2*i<1?s=o:3*i<2?s=f+(o-f)*(2/3-i)*6:s=f,g[b]=s*255;return g},u.hsl.hsv=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=r,i=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,o*=i<=1?i:2-i;let s=(a+r)/2,f=a===0?2*o/(i+o):2*r/(a+r);return[t,f*100,s*100]},u.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,a=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*a*(1-r),f=255*a*(1-r*i),g=255*a*(1-r*(1-i));switch(a*=255,o){case 0:return[a,g,s];case 1:return[f,a,s];case 2:return[s,a,g];case 3:return[s,f,a];case 4:return[g,s,a];case 5:return[a,s,f]}},u.hsv.hsl=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=Math.max(a,.01),i,s;s=(2-r)*a;let f=(2-r)*o;return i=r*o,i/=f<=1?f:2-f,i=i||0,s/=2,[t,i*100,s*100]},u.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o=r+a,i;o>1&&(r/=o,a/=o);let s=Math.floor(6*t),f=1-a;i=6*t-s,s&1&&(i=1-i);let g=r+i*(f-r),b,y,v;switch(s){default:case 6:case 0:b=f,y=g,v=r;break;case 1:b=g,y=f,v=r;break;case 2:b=r,y=f,v=g;break;case 3:b=r,y=g,v=f;break;case 4:b=g,y=r,v=f;break;case 5:b=f,y=r,v=g;break}return[b*255,y*255,v*255]},u.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,r*(1-o)+o),f=1-Math.min(1,a*(1-o)+o);return[i*255,s*255,f*255]},u.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o,i,s;return o=t*3.2406+r*-1.5372+a*-.4986,i=t*-.9689+r*1.8758+a*.0415,s=t*.0557+r*-.204+a*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[o*255,i*255,s*255]},u.xyz.lab=function(e){let t=e[0],r=e[1],a=e[2];t/=95.047,r/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let o=116*r-16,i=500*(t-r),s=200*(r-a);return[o,i,s]},u.lab.xyz=function(e){let t=e[0],r=e[1],a=e[2],o,i,s;i=(t+16)/116,o=r/500+i,s=i-a/200;let f=i**3,g=o**3,b=s**3;return i=f>.008856?f:(i-16/116)/7.787,o=g>.008856?g:(o-16/116)/7.787,s=b>.008856?b:(s-16/116)/7.787,o*=95.047,i*=100,s*=108.883,[o,i,s]},u.lab.lch=function(e){let t=e[0],r=e[1],a=e[2],o;o=Math.atan2(a,r)*360/2/Math.PI,o<0&&(o+=360);let i=Math.sqrt(r*r+a*a);return[t,i,o]},u.lch.lab=function(e){let t=e[0],r=e[1],a=e[2]/360*2*Math.PI,o=r*Math.cos(a),i=r*Math.sin(a);return[t,o,i]},u.rgb.ansi16=function(e,t=null){let[r,a,o]=e,i=t===null?u.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(a/255)<<1|Math.round(r/255));return i===2&&(s+=60),s},u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])},u.rgb.ansi256=function(e){let t=e[0],r=e[1],a=e[2];return t===r&&r===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,a=(t&1)*r*255,o=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[a,o,i]},u.ansi256.rgb=function(e){if(e>=232){let i=(e-232)*10+8;return[i,i,i]}e-=16;let t,r=Math.floor(e/36)/5*255,a=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,a,o]},u.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t},u.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(f=>f+f).join(""));let a=parseInt(r,16),o=a>>16&255,i=a>>8&255,s=a&255;return[o,i,s]},u.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.max(Math.max(t,r),a),i=Math.min(Math.min(t,r),a),s=o-i,f,g;return s<1?f=i/(1-s):f=0,s<=0?g=0:o===t?g=(r-a)/s%6:o===r?g=2+(a-t)/s:g=4+(t-r)/s,g/=6,g%=1,[g*360,s*100,f*100]},u.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=r<.5?2*t*r:2*t*(1-r),o=0;return a<1&&(o=(r-.5*a)/(1-a)),[e[0],a*100,o*100]},u.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=t*r,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100;if(r===0)return[a*255,a*255,a*255];let o=[0,0,0],i=t%1*6,s=i%1,f=1-s,g=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=f,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=f,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=f}return g=(1-r)*a,[(r*o[0]+g)*255,(r*o[1]+g)*255,(r*o[2]+g)*255]},u.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t),o=0;return a>0&&(o=t/a),[e[0],o*100,a*100]},u.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[e[0],a*100,r*100]},u.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t);return[e[0],(a-t)*100,(1-a)*100]},u.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,a=r-t,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},u.gray.hsl=function(e){return[0,0,e[0]]},u.gray.hsv=u.gray.hsl,u.gray.hwb=function(e){return[0,100,e[0]]},u.gray.cmyk=function(e){return[0,0,0,e[0]]},u.gray.lab=function(e){return[e[0],0,0]},u.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}}),ve=q({"../../node_modules/color-convert/route.js"(n,l){var c=Q();function h(){let t={},r=Object.keys(c);for(let a=r.length,o=0;o1&&(o=i),r(o))};return"conversion"in r&&(a.conversion=r.conversion),a}function t(r){let a=function(...o){let i=o[0];if(i==null)return i;i.length>1&&(o=i);let s=r(o);if(typeof s=="object")for(let f=s.length,g=0;g{u[r]={},Object.defineProperty(u[r],"channels",{value:c[r].channels}),Object.defineProperty(u[r],"labels",{value:c[r].labels});let a=h(r);Object.keys(a).forEach(o=>{let i=a[o];u[r][o]=t(i),u[r][o].raw=e(i)})}),l.exports=u}}),_=ce(pe());function C(){return(C=Object.assign||function(n){for(var l=1;l=0||(u[c]=n[c]);return u}function L(n){var l=p.useRef(n),c=p.useRef(function(h){l.current&&l.current(h)});return l.current=n,c.current}var N=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=1),n>c?c:n0:y.buttons>0)&&u.current?d(F(u.current,y,t.current)):b(!1)},g=function(){return b(!1)};function b(y){var v=r.current,w=B(u.current),E=y?w.addEventListener:w.removeEventListener;E(v?"touchmove":"mousemove",f),E(v?"touchend":"mouseup",g)}return[function(y){var v=y.nativeEvent,w=u.current;if(w&&(W(v),!function(k,P){return P&&!O(k)}(v,r.current)&&w)){if(O(v)){r.current=!0;var E=v.changedTouches||[];E.length&&(t.current=E[0].identifier)}w.focus(),d(F(w,v,t.current)),b(!0)}},function(y){var v=y.which||y.keyCode;v<37||v>40||(y.preventDefault(),e({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},b]},[e,d]),o=a[0],i=a[1],s=a[2];return p.useEffect(function(){return s},[s]),m.createElement("div",C({},h,{onTouchStart:o,onMouseDown:o,className:"react-colorful__interactive",ref:u,onKeyDown:i,tabIndex:0,role:"slider"}))}),S=function(n){return n.filter(Boolean).join(" ")},T=function(n){var l=n.color,c=n.left,h=n.top,u=h===void 0?.5:h,d=S(["react-colorful__pointer",n.className]);return m.createElement("div",{className:d,style:{top:100*u+"%",left:100*c+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:l}}))},x=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=Math.pow(10,l)),Math.round(c*n)/c},ye={grad:.9,turn:360,rad:360/(2*Math.PI)},xe=function(n){return re(K(n))},K=function(n){return n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?x(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?x(parseInt(n.substring(6,8),16)/255,2):1}},we=function(n,l){return l===void 0&&(l="deg"),Number(n)*(ye[l]||1)},ke=function(n){var l=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?_e({h:we(l[1],l[2]),s:Number(l[3]),l:Number(l[4]),a:l[5]===void 0?1:Number(l[5])/(l[6]?100:1)}):{h:0,s:0,v:0,a:1}},_e=function(n){var l=n.s,c=n.l;return{h:n.h,s:(l*=(c<50?c:100-c)/100)>0?2*l/(c+l)*100:0,v:c+l,a:n.a}},Ee=function(n){return Ce(ee(n))},Z=function(n){var l=n.s,c=n.v,h=n.a,u=(200-l)*c/100;return{h:x(n.h),s:x(u>0&&u<200?l*c/100/(u<=100?u:200-u)*100:0),l:x(u/2),a:x(h,2)}},X=function(n){var l=Z(n);return"hsl("+l.h+", "+l.s+"%, "+l.l+"%)"},I=function(n){var l=Z(n);return"hsla("+l.h+", "+l.s+"%, "+l.l+"%, "+l.a+")"},ee=function(n){var l=n.h,c=n.s,h=n.v,u=n.a;l=l/360*6,c/=100,h/=100;var d=Math.floor(l),e=h*(1-c),t=h*(1-(l-d)*c),r=h*(1-(1-l+d)*c),a=d%6;return{r:x(255*[h,t,e,e,r,h][a]),g:x(255*[r,h,h,t,e,e][a]),b:x(255*[e,e,r,h,h,t][a]),a:x(u,2)}},Me=function(n){var l=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?re({r:Number(l[1])/(l[2]?100/255:1),g:Number(l[3])/(l[4]?100/255:1),b:Number(l[5])/(l[6]?100/255:1),a:l[7]===void 0?1:Number(l[7])/(l[8]?100:1)}):{h:0,s:0,v:0,a:1}},j=function(n){var l=n.toString(16);return l.length<2?"0"+l:l},Ce=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=u<1?j(x(255*u)):"";return"#"+j(l)+j(c)+j(h)+d},re=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=Math.max(l,c,h),e=d-Math.min(l,c,h),t=e?d===l?(c-h)/e:d===c?2+(h-l)/e:4+(l-c)/e:0;return{h:x(60*(t<0?t+6:t)),s:x(d?e/d*100:0),v:x(d/255*100),a:u}},te=m.memo(function(n){var l=n.hue,c=n.onChange,h=S(["react-colorful__hue",n.className]);return m.createElement("div",{className:h},m.createElement(G,{onMove:function(u){c({h:360*u.left})},onKey:function(u){c({h:N(l+360*u.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(l),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(T,{className:"react-colorful__hue-pointer",left:l/360,color:X({h:l,s:100,v:100,a:1})})))}),ne=m.memo(function(n){var l=n.hsva,c=n.onChange,h={backgroundColor:X({h:l.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:h},m.createElement(G,{onMove:function(u){c({s:100*u.left,v:100-100*u.top})},onKey:function(u){c({s:N(l.s+100*u.left,0,100),v:N(l.v-100*u.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(l.s)+"%, Brightness "+x(l.v)+"%"},m.createElement(T,{className:"react-colorful__saturation-pointer",top:1-l.v/100,left:l.s/100,color:X(l)})))}),ae=function(n,l){if(n===l)return!0;for(var c in n)if(n[c]!==l[c])return!1;return!0},oe=function(n,l){return n.replace(/\s/g,"")===l.replace(/\s/g,"")},$e=function(n,l){return n.toLowerCase()===l.toLowerCase()||ae(K(n),K(l))};function le(n,l,c){var h=L(c),u=p.useState(function(){return n.toHsva(l)}),d=u[0],e=u[1],t=p.useRef({color:l,hsva:d});p.useEffect(function(){if(!n.equal(l,t.current.color)){var a=n.toHsva(l);t.current={hsva:a,color:l},e(a)}},[l,n]),p.useEffect(function(){var a;ae(d,t.current.hsva)||n.equal(a=n.fromHsva(d),t.current.color)||(t.current={hsva:d,color:a},h(a))},[d,n,h]);var r=p.useCallback(function(a){e(function(o){return Object.assign({},o,a)})},[]);return[d,r]}var Ne=typeof window<"u"?p.useLayoutEffect:p.useEffect,Oe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},A=new Map,ie=function(n){Ne(function(){var l=n.current?n.current.ownerDocument:document;if(l!==void 0&&!A.has(l)){var c=l.createElement("style");c.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,A.set(l,c);var h=Oe();h&&c.setAttribute("nonce",h),l.head.appendChild(c)}},[])},Se=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o,className:"react-colorful__last-control"}))},je={defaultColor:"000",toHsva:xe,fromHsva:function(n){return Ee({h:n.h,s:n.s,v:n.v,a:1})},equal:$e},Re=function(n){return m.createElement(Se,C({},n,{colorModel:je}))},ze=function(n){var l=n.className,c=n.hsva,h=n.onChange,u={backgroundImage:"linear-gradient(90deg, "+I(Object.assign({},c,{a:0}))+", "+I(Object.assign({},c,{a:1}))+")"},d=S(["react-colorful__alpha",l]),e=x(100*c.a);return m.createElement("div",{className:d},m.createElement("div",{className:"react-colorful__alpha-gradient",style:u}),m.createElement(G,{onMove:function(t){h({a:t.left})},onKey:function(t){h({a:N(c.a+t.left)})},"aria-label":"Alpha","aria-valuetext":e+"%","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100"},m.createElement(T,{className:"react-colorful__alpha-pointer",left:c.a,color:I(c)})))},ue=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o}),m.createElement(ze,{hsva:a,onChange:o,className:"react-colorful__last-control"}))},Ie={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ke,fromHsva:I,equal:oe},He=function(n){return m.createElement(ue,C({},n,{colorModel:Ie}))},qe={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Me,fromHsva:function(n){var l=ee(n);return"rgba("+l.r+", "+l.g+", "+l.b+", "+l.a+")"},equal:oe},Pe=function(n){return m.createElement(ue,C({},n,{colorModel:qe}))},Le=M.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Be=M(J)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ke=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Xe=M(he)(({theme:n})=>({fontFamily:n.typography.fonts.base})),De=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Ve=M.div(({theme:n,active:l})=>({width:16,height:16,boxShadow:l?`${n.appBorderColor} 0 0 0 1px inset, ${n.textMutedColor}50 0 0 0 4px`:`${n.appBorderColor} 0 0 0 1px inset`,borderRadius:n.appBorderRadius})),Ge=`url('data:image/svg+xml;charset=utf-8,')`,U=({value:n,style:l,...c})=>{let h=`linear-gradient(${n}, ${n}), ${Ge}, linear-gradient(#fff, #fff)`;return m.createElement(Ve,{...c,style:{...l,backgroundImage:h}})},Te=M(fe.Input)(({theme:n,readOnly:l})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:n.typography.fonts.base})),Fe=M(de)(({theme:n})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:n.input.color})),se=(n=>(n.RGB="rgb",n.HSL="hsl",n.HEX="hex",n))(se||{}),R=Object.values(se),We=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Ae=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ue=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,D=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Ye=/^\s*#?([0-9a-f]{3})\s*$/i,Je={hex:Re,rgb:Pe,hsl:He},z={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Y=n=>{let l=n==null?void 0:n.match(We);if(!l)return[0,0,0,1];let[,c,h,u,d=1]=l;return[c,h,u,d].map(Number)},$=n=>{if(!n)return;let l=!0;if(Ae.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.rgb.hsl([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.rgb.keyword([e,t,r]),colorSpace:"rgb",rgb:n,hsl:`hsla(${o}, ${i}%, ${s}%, ${a})`,hex:`#${_.default.rgb.hex([e,t,r]).toLowerCase()}`}}if(Ue.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.hsl.rgb([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.hsl.keyword([e,t,r]),colorSpace:"hsl",rgb:`rgba(${o}, ${i}, ${s}, ${a})`,hsl:n,hex:`#${_.default.hsl.hex([e,t,r]).toLowerCase()}`}}let c=n.replace("#",""),h=_.default.keyword.rgb(c)||_.default.hex.rgb(c),u=_.default.rgb.hsl(h),d=n;if(/[^#a-f0-9]/i.test(n)?d=c:D.test(n)&&(d=`#${c}`),d.startsWith("#"))l=D.test(d);else try{_.default.keyword.hex(d)}catch{l=!1}return{valid:l,value:d,keyword:_.default.rgb.keyword(h),colorSpace:"hex",rgb:`rgba(${h[0]}, ${h[1]}, ${h[2]}, 1)`,hsl:`hsla(${u[0]}, ${u[1]}%, ${u[2]}%, 1)`,hex:d}},Qe=(n,l,c)=>{if(!n||!(l!=null&&l.valid))return z[c];if(c!=="hex")return(l==null?void 0:l[c])||z[c];if(!l.hex.startsWith("#"))try{return`#${_.default.keyword.hex(l.hex)}`}catch{return z.hex}let h=l.hex.match(Ye);if(!h)return D.test(l.hex)?l.hex:z.hex;let[u,d,e]=h[1].split("");return`#${u}${u}${d}${d}${e}${e}`},Ze=(n,l)=>{let[c,h]=p.useState(n||""),[u,d]=p.useState(()=>$(c)),[e,t]=p.useState((u==null?void 0:u.colorSpace)||"hex");p.useEffect(()=>{let i=n||"",s=$(i);h(i),d(s),t((s==null?void 0:s.colorSpace)||"hex")},[n]);let r=p.useMemo(()=>Qe(c,u,e).toLowerCase(),[c,u,e]),a=p.useCallback(i=>{let s=$(i),f=(s==null?void 0:s.value)||i||"";h(f),f===""&&(d(void 0),l(void 0)),s&&(d(s),t(s.colorSpace),l(s.value))},[l]),o=p.useCallback(()=>{let i=R.indexOf(e)+1;i>=R.length&&(i=0),t(R[i]);let s=(u==null?void 0:u[R[i]])||"";h(s),l(s)},[u,e,l]);return{value:c,realValue:r,updateValue:a,color:u,colorSpace:e,cycleColorSpace:o}},H=n=>n.replace(/\s*/,"").toLowerCase(),er=(n,l,c)=>{let[h,u]=p.useState(l!=null&&l.valid?[l]:[]);p.useEffect(()=>{l===void 0&&u([])},[l]);let d=p.useMemo(()=>(n||[]).map(t=>typeof t=="string"?$(t):t.title?{...$(t.color),keyword:t.title}:$(t.color)).concat(h).filter(Boolean).slice(-27),[n,h]),e=p.useCallback(t=>{t!=null&&t.valid&&(d.some(r=>H(r[c])===H(t[c]))||u(r=>r.concat(t)))},[c,d]);return{presets:d,addPreset:e}},rr=({name:n,value:l,onChange:c,onFocus:h,onBlur:u,presetColors:d,startOpen:e=!1,argType:t})=>{var E;let r=p.useCallback(ge(c,200),[c]),{value:a,realValue:o,updateValue:i,color:s,colorSpace:f,cycleColorSpace:g}=Ze(l,r),{presets:b,addPreset:y}=er(d,s,f),v=Je[f],w=!!((E=t==null?void 0:t.table)!=null&&E.readonly);return m.createElement(Le,{"aria-readonly":w},m.createElement(Be,{startOpen:e,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>y(s),tooltip:m.createElement(Ke,null,m.createElement(v,{color:o==="transparent"?"#000000":o,onChange:i,onFocus:h,onBlur:u}),b.length>0&&m.createElement(De,null,b.map((k,P)=>m.createElement(J,{key:`${k.value}-${P}`,hasChrome:!1,tooltip:m.createElement(Xe,{note:k.keyword||k.value})},m.createElement(U,{value:k[f],active:s&&H(k[f])===H(s[f]),onClick:()=>i(k.value)})))))},m.createElement(U,{value:o,style:{margin:4}})),m.createElement(Te,{id:be(n),value:a,onChange:k=>i(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),a?m.createElement(Fe,{onClick:g}):null)},gr=rr;export{rr as ColorControl,gr as default}; +import{ae as ce,af as M,a2 as J,a0 as he,N as fe,ag as de,ah as ge,ai as be,aj as q}from"./DocsRenderer-CFRXHY34-Bq5B5d5_.js";import{R as m,r as p}from"./index-mfbfsM12.js";import"./iframe-Cclg9cWs.js";import"../sb-preview/runtime.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-DFkxGuuM.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-kifaGmES.js";import"./index-DrFu-skq.js";import"./react-18-ClY32pUF.js";import"./client-BGlHIwA3.js";var me=q({"../../node_modules/color-name/index.js"(n,l){l.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),Q=q({"../../node_modules/color-convert/conversions.js"(n,l){var c=me(),h={};for(let e of Object.keys(c))h[c[e]]=e;var u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};l.exports=u;for(let e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:r})}u.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(t,r,a),i=Math.max(t,r,a),s=i-o,f,g;i===o?f=0:t===i?f=(r-a)/s:r===i?f=2+(a-t)/s:a===i&&(f=4+(t-r)/s),f=Math.min(f*60,360),f<0&&(f+=360);let b=(o+i)/2;return i===o?g=0:b<=.5?g=s/(i+o):g=s/(2-i-o),[f,g*100,b*100]},u.rgb.hsv=function(e){let t,r,a,o,i,s=e[0]/255,f=e[1]/255,g=e[2]/255,b=Math.max(s,f,g),y=b-Math.min(s,f,g),v=function(w){return(b-w)/6/y+1/2};return y===0?(o=0,i=0):(i=y/b,t=v(s),r=v(f),a=v(g),s===b?o=a-r:f===b?o=1/3+t-a:g===b&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,b*100]},u.rgb.hwb=function(e){let t=e[0],r=e[1],a=e[2],o=u.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,a));return a=1-1/255*Math.max(t,Math.max(r,a)),[o,i*100,a*100]},u.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(1-t,1-r,1-a),i=(1-t-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,f=(1-a-o)/(1-o)||0;return[i*100,s*100,f*100,o*100]};function d(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){let t=h[e];if(t)return t;let r=1/0,a;for(let o of Object.keys(c)){let i=c[o],s=d(e,i);s.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;let o=t*.4124+r*.3576+a*.1805,i=t*.2126+r*.7152+a*.0722,s=t*.0193+r*.1192+a*.9505;return[o*100,i*100,s*100]},u.rgb.lab=function(e){let t=u.rgb.xyz(e),r=t[0],a=t[1],o=t[2];r/=95.047,a/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let i=116*a-16,s=500*(r-a),f=200*(a-o);return[i,s,f]},u.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o,i,s;if(r===0)return s=a*255,[s,s,s];a<.5?o=a*(1+r):o=a+r-a*r;let f=2*a-o,g=[0,0,0];for(let b=0;b<3;b++)i=t+1/3*-(b-1),i<0&&i++,i>1&&i--,6*i<1?s=f+(o-f)*6*i:2*i<1?s=o:3*i<2?s=f+(o-f)*(2/3-i)*6:s=f,g[b]=s*255;return g},u.hsl.hsv=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=r,i=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,o*=i<=1?i:2-i;let s=(a+r)/2,f=a===0?2*o/(i+o):2*r/(a+r);return[t,f*100,s*100]},u.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,a=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*a*(1-r),f=255*a*(1-r*i),g=255*a*(1-r*(1-i));switch(a*=255,o){case 0:return[a,g,s];case 1:return[f,a,s];case 2:return[s,a,g];case 3:return[s,f,a];case 4:return[g,s,a];case 5:return[a,s,f]}},u.hsv.hsl=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=Math.max(a,.01),i,s;s=(2-r)*a;let f=(2-r)*o;return i=r*o,i/=f<=1?f:2-f,i=i||0,s/=2,[t,i*100,s*100]},u.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o=r+a,i;o>1&&(r/=o,a/=o);let s=Math.floor(6*t),f=1-a;i=6*t-s,s&1&&(i=1-i);let g=r+i*(f-r),b,y,v;switch(s){default:case 6:case 0:b=f,y=g,v=r;break;case 1:b=g,y=f,v=r;break;case 2:b=r,y=f,v=g;break;case 3:b=r,y=g,v=f;break;case 4:b=g,y=r,v=f;break;case 5:b=f,y=r,v=g;break}return[b*255,y*255,v*255]},u.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,r*(1-o)+o),f=1-Math.min(1,a*(1-o)+o);return[i*255,s*255,f*255]},u.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o,i,s;return o=t*3.2406+r*-1.5372+a*-.4986,i=t*-.9689+r*1.8758+a*.0415,s=t*.0557+r*-.204+a*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[o*255,i*255,s*255]},u.xyz.lab=function(e){let t=e[0],r=e[1],a=e[2];t/=95.047,r/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let o=116*r-16,i=500*(t-r),s=200*(r-a);return[o,i,s]},u.lab.xyz=function(e){let t=e[0],r=e[1],a=e[2],o,i,s;i=(t+16)/116,o=r/500+i,s=i-a/200;let f=i**3,g=o**3,b=s**3;return i=f>.008856?f:(i-16/116)/7.787,o=g>.008856?g:(o-16/116)/7.787,s=b>.008856?b:(s-16/116)/7.787,o*=95.047,i*=100,s*=108.883,[o,i,s]},u.lab.lch=function(e){let t=e[0],r=e[1],a=e[2],o;o=Math.atan2(a,r)*360/2/Math.PI,o<0&&(o+=360);let i=Math.sqrt(r*r+a*a);return[t,i,o]},u.lch.lab=function(e){let t=e[0],r=e[1],a=e[2]/360*2*Math.PI,o=r*Math.cos(a),i=r*Math.sin(a);return[t,o,i]},u.rgb.ansi16=function(e,t=null){let[r,a,o]=e,i=t===null?u.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(a/255)<<1|Math.round(r/255));return i===2&&(s+=60),s},u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])},u.rgb.ansi256=function(e){let t=e[0],r=e[1],a=e[2];return t===r&&r===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,a=(t&1)*r*255,o=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[a,o,i]},u.ansi256.rgb=function(e){if(e>=232){let i=(e-232)*10+8;return[i,i,i]}e-=16;let t,r=Math.floor(e/36)/5*255,a=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,a,o]},u.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t},u.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(f=>f+f).join(""));let a=parseInt(r,16),o=a>>16&255,i=a>>8&255,s=a&255;return[o,i,s]},u.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.max(Math.max(t,r),a),i=Math.min(Math.min(t,r),a),s=o-i,f,g;return s<1?f=i/(1-s):f=0,s<=0?g=0:o===t?g=(r-a)/s%6:o===r?g=2+(a-t)/s:g=4+(t-r)/s,g/=6,g%=1,[g*360,s*100,f*100]},u.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=r<.5?2*t*r:2*t*(1-r),o=0;return a<1&&(o=(r-.5*a)/(1-a)),[e[0],a*100,o*100]},u.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=t*r,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100;if(r===0)return[a*255,a*255,a*255];let o=[0,0,0],i=t%1*6,s=i%1,f=1-s,g=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=f,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=f,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=f}return g=(1-r)*a,[(r*o[0]+g)*255,(r*o[1]+g)*255,(r*o[2]+g)*255]},u.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t),o=0;return a>0&&(o=t/a),[e[0],o*100,a*100]},u.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[e[0],a*100,r*100]},u.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t);return[e[0],(a-t)*100,(1-a)*100]},u.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,a=r-t,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},u.gray.hsl=function(e){return[0,0,e[0]]},u.gray.hsv=u.gray.hsl,u.gray.hwb=function(e){return[0,100,e[0]]},u.gray.cmyk=function(e){return[0,0,0,e[0]]},u.gray.lab=function(e){return[e[0],0,0]},u.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}}),ve=q({"../../node_modules/color-convert/route.js"(n,l){var c=Q();function h(){let t={},r=Object.keys(c);for(let a=r.length,o=0;o1&&(o=i),r(o))};return"conversion"in r&&(a.conversion=r.conversion),a}function t(r){let a=function(...o){let i=o[0];if(i==null)return i;i.length>1&&(o=i);let s=r(o);if(typeof s=="object")for(let f=s.length,g=0;g{u[r]={},Object.defineProperty(u[r],"channels",{value:c[r].channels}),Object.defineProperty(u[r],"labels",{value:c[r].labels});let a=h(r);Object.keys(a).forEach(o=>{let i=a[o];u[r][o]=t(i),u[r][o].raw=e(i)})}),l.exports=u}}),_=ce(pe());function C(){return(C=Object.assign||function(n){for(var l=1;l=0||(u[c]=n[c]);return u}function L(n){var l=p.useRef(n),c=p.useRef(function(h){l.current&&l.current(h)});return l.current=n,c.current}var N=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=1),n>c?c:n0:y.buttons>0)&&u.current?d(F(u.current,y,t.current)):b(!1)},g=function(){return b(!1)};function b(y){var v=r.current,w=B(u.current),E=y?w.addEventListener:w.removeEventListener;E(v?"touchmove":"mousemove",f),E(v?"touchend":"mouseup",g)}return[function(y){var v=y.nativeEvent,w=u.current;if(w&&(W(v),!function(k,P){return P&&!O(k)}(v,r.current)&&w)){if(O(v)){r.current=!0;var E=v.changedTouches||[];E.length&&(t.current=E[0].identifier)}w.focus(),d(F(w,v,t.current)),b(!0)}},function(y){var v=y.which||y.keyCode;v<37||v>40||(y.preventDefault(),e({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},b]},[e,d]),o=a[0],i=a[1],s=a[2];return p.useEffect(function(){return s},[s]),m.createElement("div",C({},h,{onTouchStart:o,onMouseDown:o,className:"react-colorful__interactive",ref:u,onKeyDown:i,tabIndex:0,role:"slider"}))}),S=function(n){return n.filter(Boolean).join(" ")},T=function(n){var l=n.color,c=n.left,h=n.top,u=h===void 0?.5:h,d=S(["react-colorful__pointer",n.className]);return m.createElement("div",{className:d,style:{top:100*u+"%",left:100*c+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:l}}))},x=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=Math.pow(10,l)),Math.round(c*n)/c},ye={grad:.9,turn:360,rad:360/(2*Math.PI)},xe=function(n){return re(K(n))},K=function(n){return n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?x(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?x(parseInt(n.substring(6,8),16)/255,2):1}},we=function(n,l){return l===void 0&&(l="deg"),Number(n)*(ye[l]||1)},ke=function(n){var l=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?_e({h:we(l[1],l[2]),s:Number(l[3]),l:Number(l[4]),a:l[5]===void 0?1:Number(l[5])/(l[6]?100:1)}):{h:0,s:0,v:0,a:1}},_e=function(n){var l=n.s,c=n.l;return{h:n.h,s:(l*=(c<50?c:100-c)/100)>0?2*l/(c+l)*100:0,v:c+l,a:n.a}},Ee=function(n){return Ce(ee(n))},Z=function(n){var l=n.s,c=n.v,h=n.a,u=(200-l)*c/100;return{h:x(n.h),s:x(u>0&&u<200?l*c/100/(u<=100?u:200-u)*100:0),l:x(u/2),a:x(h,2)}},X=function(n){var l=Z(n);return"hsl("+l.h+", "+l.s+"%, "+l.l+"%)"},I=function(n){var l=Z(n);return"hsla("+l.h+", "+l.s+"%, "+l.l+"%, "+l.a+")"},ee=function(n){var l=n.h,c=n.s,h=n.v,u=n.a;l=l/360*6,c/=100,h/=100;var d=Math.floor(l),e=h*(1-c),t=h*(1-(l-d)*c),r=h*(1-(1-l+d)*c),a=d%6;return{r:x(255*[h,t,e,e,r,h][a]),g:x(255*[r,h,h,t,e,e][a]),b:x(255*[e,e,r,h,h,t][a]),a:x(u,2)}},Me=function(n){var l=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?re({r:Number(l[1])/(l[2]?100/255:1),g:Number(l[3])/(l[4]?100/255:1),b:Number(l[5])/(l[6]?100/255:1),a:l[7]===void 0?1:Number(l[7])/(l[8]?100:1)}):{h:0,s:0,v:0,a:1}},j=function(n){var l=n.toString(16);return l.length<2?"0"+l:l},Ce=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=u<1?j(x(255*u)):"";return"#"+j(l)+j(c)+j(h)+d},re=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=Math.max(l,c,h),e=d-Math.min(l,c,h),t=e?d===l?(c-h)/e:d===c?2+(h-l)/e:4+(l-c)/e:0;return{h:x(60*(t<0?t+6:t)),s:x(d?e/d*100:0),v:x(d/255*100),a:u}},te=m.memo(function(n){var l=n.hue,c=n.onChange,h=S(["react-colorful__hue",n.className]);return m.createElement("div",{className:h},m.createElement(G,{onMove:function(u){c({h:360*u.left})},onKey:function(u){c({h:N(l+360*u.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(l),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(T,{className:"react-colorful__hue-pointer",left:l/360,color:X({h:l,s:100,v:100,a:1})})))}),ne=m.memo(function(n){var l=n.hsva,c=n.onChange,h={backgroundColor:X({h:l.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:h},m.createElement(G,{onMove:function(u){c({s:100*u.left,v:100-100*u.top})},onKey:function(u){c({s:N(l.s+100*u.left,0,100),v:N(l.v-100*u.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(l.s)+"%, Brightness "+x(l.v)+"%"},m.createElement(T,{className:"react-colorful__saturation-pointer",top:1-l.v/100,left:l.s/100,color:X(l)})))}),ae=function(n,l){if(n===l)return!0;for(var c in n)if(n[c]!==l[c])return!1;return!0},oe=function(n,l){return n.replace(/\s/g,"")===l.replace(/\s/g,"")},$e=function(n,l){return n.toLowerCase()===l.toLowerCase()||ae(K(n),K(l))};function le(n,l,c){var h=L(c),u=p.useState(function(){return n.toHsva(l)}),d=u[0],e=u[1],t=p.useRef({color:l,hsva:d});p.useEffect(function(){if(!n.equal(l,t.current.color)){var a=n.toHsva(l);t.current={hsva:a,color:l},e(a)}},[l,n]),p.useEffect(function(){var a;ae(d,t.current.hsva)||n.equal(a=n.fromHsva(d),t.current.color)||(t.current={hsva:d,color:a},h(a))},[d,n,h]);var r=p.useCallback(function(a){e(function(o){return Object.assign({},o,a)})},[]);return[d,r]}var Ne=typeof window<"u"?p.useLayoutEffect:p.useEffect,Oe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},A=new Map,ie=function(n){Ne(function(){var l=n.current?n.current.ownerDocument:document;if(l!==void 0&&!A.has(l)){var c=l.createElement("style");c.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,A.set(l,c);var h=Oe();h&&c.setAttribute("nonce",h),l.head.appendChild(c)}},[])},Se=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o,className:"react-colorful__last-control"}))},je={defaultColor:"000",toHsva:xe,fromHsva:function(n){return Ee({h:n.h,s:n.s,v:n.v,a:1})},equal:$e},Re=function(n){return m.createElement(Se,C({},n,{colorModel:je}))},ze=function(n){var l=n.className,c=n.hsva,h=n.onChange,u={backgroundImage:"linear-gradient(90deg, "+I(Object.assign({},c,{a:0}))+", "+I(Object.assign({},c,{a:1}))+")"},d=S(["react-colorful__alpha",l]),e=x(100*c.a);return m.createElement("div",{className:d},m.createElement("div",{className:"react-colorful__alpha-gradient",style:u}),m.createElement(G,{onMove:function(t){h({a:t.left})},onKey:function(t){h({a:N(c.a+t.left)})},"aria-label":"Alpha","aria-valuetext":e+"%","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100"},m.createElement(T,{className:"react-colorful__alpha-pointer",left:c.a,color:I(c)})))},ue=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o}),m.createElement(ze,{hsva:a,onChange:o,className:"react-colorful__last-control"}))},Ie={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ke,fromHsva:I,equal:oe},He=function(n){return m.createElement(ue,C({},n,{colorModel:Ie}))},qe={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Me,fromHsva:function(n){var l=ee(n);return"rgba("+l.r+", "+l.g+", "+l.b+", "+l.a+")"},equal:oe},Pe=function(n){return m.createElement(ue,C({},n,{colorModel:qe}))},Le=M.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Be=M(J)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ke=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Xe=M(he)(({theme:n})=>({fontFamily:n.typography.fonts.base})),De=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Ve=M.div(({theme:n,active:l})=>({width:16,height:16,boxShadow:l?`${n.appBorderColor} 0 0 0 1px inset, ${n.textMutedColor}50 0 0 0 4px`:`${n.appBorderColor} 0 0 0 1px inset`,borderRadius:n.appBorderRadius})),Ge=`url('data:image/svg+xml;charset=utf-8,')`,U=({value:n,style:l,...c})=>{let h=`linear-gradient(${n}, ${n}), ${Ge}, linear-gradient(#fff, #fff)`;return m.createElement(Ve,{...c,style:{...l,backgroundImage:h}})},Te=M(fe.Input)(({theme:n,readOnly:l})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:n.typography.fonts.base})),Fe=M(de)(({theme:n})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:n.input.color})),se=(n=>(n.RGB="rgb",n.HSL="hsl",n.HEX="hex",n))(se||{}),R=Object.values(se),We=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Ae=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ue=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,D=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Ye=/^\s*#?([0-9a-f]{3})\s*$/i,Je={hex:Re,rgb:Pe,hsl:He},z={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Y=n=>{let l=n==null?void 0:n.match(We);if(!l)return[0,0,0,1];let[,c,h,u,d=1]=l;return[c,h,u,d].map(Number)},$=n=>{if(!n)return;let l=!0;if(Ae.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.rgb.hsl([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.rgb.keyword([e,t,r]),colorSpace:"rgb",rgb:n,hsl:`hsla(${o}, ${i}%, ${s}%, ${a})`,hex:`#${_.default.rgb.hex([e,t,r]).toLowerCase()}`}}if(Ue.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.hsl.rgb([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.hsl.keyword([e,t,r]),colorSpace:"hsl",rgb:`rgba(${o}, ${i}, ${s}, ${a})`,hsl:n,hex:`#${_.default.hsl.hex([e,t,r]).toLowerCase()}`}}let c=n.replace("#",""),h=_.default.keyword.rgb(c)||_.default.hex.rgb(c),u=_.default.rgb.hsl(h),d=n;if(/[^#a-f0-9]/i.test(n)?d=c:D.test(n)&&(d=`#${c}`),d.startsWith("#"))l=D.test(d);else try{_.default.keyword.hex(d)}catch{l=!1}return{valid:l,value:d,keyword:_.default.rgb.keyword(h),colorSpace:"hex",rgb:`rgba(${h[0]}, ${h[1]}, ${h[2]}, 1)`,hsl:`hsla(${u[0]}, ${u[1]}%, ${u[2]}%, 1)`,hex:d}},Qe=(n,l,c)=>{if(!n||!(l!=null&&l.valid))return z[c];if(c!=="hex")return(l==null?void 0:l[c])||z[c];if(!l.hex.startsWith("#"))try{return`#${_.default.keyword.hex(l.hex)}`}catch{return z.hex}let h=l.hex.match(Ye);if(!h)return D.test(l.hex)?l.hex:z.hex;let[u,d,e]=h[1].split("");return`#${u}${u}${d}${d}${e}${e}`},Ze=(n,l)=>{let[c,h]=p.useState(n||""),[u,d]=p.useState(()=>$(c)),[e,t]=p.useState((u==null?void 0:u.colorSpace)||"hex");p.useEffect(()=>{let i=n||"",s=$(i);h(i),d(s),t((s==null?void 0:s.colorSpace)||"hex")},[n]);let r=p.useMemo(()=>Qe(c,u,e).toLowerCase(),[c,u,e]),a=p.useCallback(i=>{let s=$(i),f=(s==null?void 0:s.value)||i||"";h(f),f===""&&(d(void 0),l(void 0)),s&&(d(s),t(s.colorSpace),l(s.value))},[l]),o=p.useCallback(()=>{let i=R.indexOf(e)+1;i>=R.length&&(i=0),t(R[i]);let s=(u==null?void 0:u[R[i]])||"";h(s),l(s)},[u,e,l]);return{value:c,realValue:r,updateValue:a,color:u,colorSpace:e,cycleColorSpace:o}},H=n=>n.replace(/\s*/,"").toLowerCase(),er=(n,l,c)=>{let[h,u]=p.useState(l!=null&&l.valid?[l]:[]);p.useEffect(()=>{l===void 0&&u([])},[l]);let d=p.useMemo(()=>(n||[]).map(t=>typeof t=="string"?$(t):t.title?{...$(t.color),keyword:t.title}:$(t.color)).concat(h).filter(Boolean).slice(-27),[n,h]),e=p.useCallback(t=>{t!=null&&t.valid&&(d.some(r=>H(r[c])===H(t[c]))||u(r=>r.concat(t)))},[c,d]);return{presets:d,addPreset:e}},rr=({name:n,value:l,onChange:c,onFocus:h,onBlur:u,presetColors:d,startOpen:e=!1,argType:t})=>{var E;let r=p.useCallback(ge(c,200),[c]),{value:a,realValue:o,updateValue:i,color:s,colorSpace:f,cycleColorSpace:g}=Ze(l,r),{presets:b,addPreset:y}=er(d,s,f),v=Je[f],w=!!((E=t==null?void 0:t.table)!=null&&E.readonly);return m.createElement(Le,{"aria-readonly":w},m.createElement(Be,{startOpen:e,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>y(s),tooltip:m.createElement(Ke,null,m.createElement(v,{color:o==="transparent"?"#000000":o,onChange:i,onFocus:h,onBlur:u}),b.length>0&&m.createElement(De,null,b.map((k,P)=>m.createElement(J,{key:`${k.value}-${P}`,hasChrome:!1,tooltip:m.createElement(Xe,{note:k.keyword||k.value})},m.createElement(U,{value:k[f],active:s&&H(k[f])===H(s[f]),onClick:()=>i(k.value)})))))},m.createElement(U,{value:o,style:{margin:4}})),m.createElement(Te,{id:be(n),value:a,onChange:k=>i(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),a?m.createElement(Fe,{onClick:g}):null)},gr=rr;export{rr as ColorControl,gr as default}; diff --git a/assets/DocsRenderer-CFRXHY34-VG-WbEUv.js b/assets/DocsRenderer-CFRXHY34-Bq5B5d5_.js similarity index 99% rename from assets/DocsRenderer-CFRXHY34-VG-WbEUv.js rename to assets/DocsRenderer-CFRXHY34-Bq5B5d5_.js index 796d9a8d..003688bb 100644 --- a/assets/DocsRenderer-CFRXHY34-VG-WbEUv.js +++ b/assets/DocsRenderer-CFRXHY34-Bq5B5d5_.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BcJ7ghs7.js","./iframe-4y4VsLB1.js","./index-mfbfsM12.js","./_commonjsHelpers-BosuxZz1.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./jsx-runtime-Bxcv0yjW.js","./index-DFkxGuuM.js","./index-kifaGmES.js","./index-DrFu-skq.js","./react-18-ClY32pUF.js","./client-BGlHIwA3.js","./Color-F6OSRLHC-RpgDy62Q.js","./index-EeWIkZEf.js"])))=>i.map(i=>d[i]); -var Gx=Object.defineProperty;var Yx=(e,t,r)=>t in e?Gx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var In=(e,t,r)=>Yx(e,typeof t!="symbol"?t+"":t,r);import{_ as K1}from"./iframe-4y4VsLB1.js";import{r as l,R as y}from"./index-mfbfsM12.js";import{c as Ke}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{j as Z}from"./jsx-runtime-Bxcv0yjW.js";import{r as hs,F as K4}from"./index-DFkxGuuM.js";import{y as mh,g as xu}from"./index-kifaGmES.js";import{d as Kx}from"./index-DrFu-skq.js";import{renderElement as Jx,unmountElement as Zx}from"./react-18-ClY32pUF.js";var Xx=Object.create,J4=Object.defineProperty,Qx=Object.getOwnPropertyDescriptor,Z4=Object.getOwnPropertyNames,eD=Object.getPrototypeOf,tD=Object.prototype.hasOwnProperty,Di=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),gn=(e,t)=>function(){return t||(0,e[Z4(e)[0]])((t={exports:{}}).exports,t),t.exports},rD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Z4(t))!tD.call(e,a)&&a!==r&&J4(e,a,{get:()=>t[a],enumerable:!(n=Qx(t,a))||n.enumerable});return e},J1=(e,t,r)=>(r=e!=null?Xx(eD(e)):{},rD(t||!e||!e.__esModule?J4(r,"default",{value:e,enumerable:!0}):r,e));function nD(e,t,{signal:r,edges:n}={}){let a,o=null,i=n!=null&&n.includes("leading"),s=n==null||n.includes("trailing"),c=()=>{o!==null&&(e.apply(a,o),a=void 0,o=null)},d=()=>{s&&c(),f()},p=null,m=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,d()},t)},h=()=>{p!==null&&(clearTimeout(p),p=null)},f=()=>{h(),a=void 0,o=null},v=()=>{h(),c()},g=function(...w){if(r!=null&&r.aborted)return;a=this,o=w;let x=p==null;m(),i&&x&&c()};return g.schedule=m,g.cancel=f,g.flush=v,r==null||r.addEventListener("abort",f,{once:!0}),g}function IV(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:a=!1,trailing:o=!0,maxWait:i}=r,s=Array(2);a&&(s[0]="leading"),o&&(s[1]="trailing");let c,d=null,p=nD(function(...f){c=e.apply(this,f),d=null},t,{signal:n,edges:s}),m=function(...f){if(i!=null){if(d===null)d=Date.now();else if(Date.now()-d>=i)return c=e.apply(this,f),d=Date.now(),p.cancel(),p.schedule(),c}return p.apply(this,f),c},h=()=>(p.flush(),c);return m.cancel=p.cancel,m.flush=h,m}function aD(e){return Array.from(new Set(e))}function oD(e,t){let r={},n=Object.entries(e);for(let a=0;a`control-${e.replace(/\s+/g,"-")}`,ms=e=>`set-${e.replace(/\s+/g,"-")}`,fD=Object.create,Z1=Object.defineProperty,hD=Object.getOwnPropertyDescriptor,mD=Object.getOwnPropertyNames,gD=Object.getPrototypeOf,vD=Object.prototype.hasOwnProperty,R=(e,t)=>Z1(e,"name",{value:t,configurable:!0}),Ci=(e=>typeof Ke<"u"?Ke:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Ke<"u"?Ke:t)[r]}):e)(function(e){if(typeof Ke<"u")return Ke.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),gs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of mD(t))!vD.call(e,a)&&a!==r&&Z1(e,a,{get:()=>t[a],enumerable:!(n=hD(t,a))||n.enumerable});return e},X1=(e,t,r)=>(r=e!=null?fD(gD(e)):{},yD(t||!e||!e.__esModule?Z1(r,"default",{value:e,enumerable:!0}):r,e)),bD=gs(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,m=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function b($){return typeof $=="string"||typeof $=="function"||$===a||$===p||$===i||$===o||$===h||$===f||typeof $=="object"&&$!==null&&($.$$typeof===g||$.$$typeof===v||$.$$typeof===s||$.$$typeof===c||$.$$typeof===m||$.$$typeof===x||$.$$typeof===D||$.$$typeof===E||$.$$typeof===w)}R(b,"isValidElementType");function C($){if(typeof $=="object"&&$!==null){var nt=$.$$typeof;switch(nt){case r:var Dt=$.type;switch(Dt){case d:case p:case a:case i:case o:case h:return Dt;default:var Pr=Dt&&Dt.$$typeof;switch(Pr){case c:case m:case g:case v:case s:return Pr;default:return nt}}case n:return nt}}}R(C,"typeOf");var S=d,k=p,A=c,_=s,I=r,B=m,z=a,L=g,M=v,O=n,P=i,j=o,U=h,V=!1;function G($){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Q($)||C($)===d}R(G,"isAsyncMode");function Q($){return C($)===p}R(Q,"isConcurrentMode");function ne($){return C($)===c}R(ne,"isContextConsumer");function J($){return C($)===s}R(J,"isContextProvider");function ie($){return typeof $=="object"&&$!==null&&$.$$typeof===r}R(ie,"isElement");function N($){return C($)===m}R(N,"isForwardRef");function K($){return C($)===a}R(K,"isFragment");function re($){return C($)===g}R(re,"isLazy");function fe($){return C($)===v}R(fe,"isMemo");function Ce($){return C($)===n}R(Ce,"isPortal");function xt($){return C($)===i}R(xt,"isProfiler");function He($){return C($)===o}R(He,"isStrictMode");function rt($){return C($)===h}R(rt,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=k,e.ContextConsumer=A,e.ContextProvider=_,e.Element=I,e.ForwardRef=B,e.Fragment=z,e.Lazy=L,e.Memo=M,e.Portal=O,e.Profiler=P,e.StrictMode=j,e.Suspense=U,e.isAsyncMode=G,e.isConcurrentMode=Q,e.isContextConsumer=ne,e.isContextProvider=J,e.isElement=ie,e.isForwardRef=N,e.isFragment=K,e.isLazy=re,e.isMemo=fe,e.isPortal=Ce,e.isProfiler=xt,e.isStrictMode=He,e.isSuspense=rt,e.isValidElementType=b,e.typeOf=C})()}),wD=gs((e,t)=>{t.exports=bD()}),X4=gs((e,t)=>{var r=wD(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function c(w){return r.isMemo(w)?i:s[w.$$typeof]||n}R(c,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(w,x,D){if(typeof x!="string"){if(v){var E=f(x);E&&E!==v&&g(w,E,D)}var b=p(x);m&&(b=b.concat(m(x)));for(var C=c(w),S=c(x),k=0;k{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return R(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var m=typeof Ci=="function"&&Ci;if(!p&&m)return m(d,!0);if(s)return s(d,!0);var h=new Error("Cannot find module '"+d+"'");throw h.code="MODULE_NOT_FOUND",h}var f=a[d]={exports:{}};n[d][0].call(f.exports,function(v){var g=n[d][1][v];return i(g||v)},f,f.exports,r,n,a,o)}return a[d].exports}R(i,"s");for(var s=typeof Ci=="function"&&Ci,c=0;c=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var c;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(c=this.indexOf(i),c>=0?(this.lastItem=this.list[c],this.list[c].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var c;for(c=0;c0&&(D[x]={cacheItem:v,arg:arguments[x]},E?i(m,D):m.push(D),m.length>d&&s(m.shift())),f.wasMemoized=E,f.numArgs=x+1,w},"memoizerific");return f.limit=d,f.wasMemoized=!1,f.cache=p,f.lru=m,f}};function i(d,p){var m=d.length,h=p.length,f,v,g;for(v=0;v=0&&(m=d[f],h=m.cacheItem.get(m.arg),!h||!h.size);f--)m.cacheItem.delete(m.arg)}R(s,"removeCachedResult");function c(d,p){return d===p||d!==d&&p!==p}R(c,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Nt(){return Nt=Object.assign?Object.assign.bind():function(e){for(var t=1;ti.map(i=>d[i]); +var Gx=Object.defineProperty;var Yx=(e,t,r)=>t in e?Gx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var In=(e,t,r)=>Yx(e,typeof t!="symbol"?t+"":t,r);import{_ as K1}from"./iframe-Cclg9cWs.js";import{r as l,R as y}from"./index-mfbfsM12.js";import{c as Ke}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{j as Z}from"./jsx-runtime-Bxcv0yjW.js";import{r as hs,F as K4}from"./index-DFkxGuuM.js";import{y as mh,g as xu}from"./index-kifaGmES.js";import{d as Kx}from"./index-DrFu-skq.js";import{renderElement as Jx,unmountElement as Zx}from"./react-18-ClY32pUF.js";var Xx=Object.create,J4=Object.defineProperty,Qx=Object.getOwnPropertyDescriptor,Z4=Object.getOwnPropertyNames,eD=Object.getPrototypeOf,tD=Object.prototype.hasOwnProperty,Di=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),gn=(e,t)=>function(){return t||(0,e[Z4(e)[0]])((t={exports:{}}).exports,t),t.exports},rD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Z4(t))!tD.call(e,a)&&a!==r&&J4(e,a,{get:()=>t[a],enumerable:!(n=Qx(t,a))||n.enumerable});return e},J1=(e,t,r)=>(r=e!=null?Xx(eD(e)):{},rD(t||!e||!e.__esModule?J4(r,"default",{value:e,enumerable:!0}):r,e));function nD(e,t,{signal:r,edges:n}={}){let a,o=null,i=n!=null&&n.includes("leading"),s=n==null||n.includes("trailing"),c=()=>{o!==null&&(e.apply(a,o),a=void 0,o=null)},d=()=>{s&&c(),f()},p=null,m=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,d()},t)},h=()=>{p!==null&&(clearTimeout(p),p=null)},f=()=>{h(),a=void 0,o=null},v=()=>{h(),c()},g=function(...w){if(r!=null&&r.aborted)return;a=this,o=w;let x=p==null;m(),i&&x&&c()};return g.schedule=m,g.cancel=f,g.flush=v,r==null||r.addEventListener("abort",f,{once:!0}),g}function IV(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:a=!1,trailing:o=!0,maxWait:i}=r,s=Array(2);a&&(s[0]="leading"),o&&(s[1]="trailing");let c,d=null,p=nD(function(...f){c=e.apply(this,f),d=null},t,{signal:n,edges:s}),m=function(...f){if(i!=null){if(d===null)d=Date.now();else if(Date.now()-d>=i)return c=e.apply(this,f),d=Date.now(),p.cancel(),p.schedule(),c}return p.apply(this,f),c},h=()=>(p.flush(),c);return m.cancel=p.cancel,m.flush=h,m}function aD(e){return Array.from(new Set(e))}function oD(e,t){let r={},n=Object.entries(e);for(let a=0;a`control-${e.replace(/\s+/g,"-")}`,ms=e=>`set-${e.replace(/\s+/g,"-")}`,fD=Object.create,Z1=Object.defineProperty,hD=Object.getOwnPropertyDescriptor,mD=Object.getOwnPropertyNames,gD=Object.getPrototypeOf,vD=Object.prototype.hasOwnProperty,R=(e,t)=>Z1(e,"name",{value:t,configurable:!0}),Ci=(e=>typeof Ke<"u"?Ke:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Ke<"u"?Ke:t)[r]}):e)(function(e){if(typeof Ke<"u")return Ke.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),gs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of mD(t))!vD.call(e,a)&&a!==r&&Z1(e,a,{get:()=>t[a],enumerable:!(n=hD(t,a))||n.enumerable});return e},X1=(e,t,r)=>(r=e!=null?fD(gD(e)):{},yD(t||!e||!e.__esModule?Z1(r,"default",{value:e,enumerable:!0}):r,e)),bD=gs(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,m=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function b($){return typeof $=="string"||typeof $=="function"||$===a||$===p||$===i||$===o||$===h||$===f||typeof $=="object"&&$!==null&&($.$$typeof===g||$.$$typeof===v||$.$$typeof===s||$.$$typeof===c||$.$$typeof===m||$.$$typeof===x||$.$$typeof===D||$.$$typeof===E||$.$$typeof===w)}R(b,"isValidElementType");function C($){if(typeof $=="object"&&$!==null){var nt=$.$$typeof;switch(nt){case r:var Dt=$.type;switch(Dt){case d:case p:case a:case i:case o:case h:return Dt;default:var Pr=Dt&&Dt.$$typeof;switch(Pr){case c:case m:case g:case v:case s:return Pr;default:return nt}}case n:return nt}}}R(C,"typeOf");var S=d,k=p,A=c,_=s,I=r,B=m,z=a,L=g,M=v,O=n,P=i,j=o,U=h,V=!1;function G($){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Q($)||C($)===d}R(G,"isAsyncMode");function Q($){return C($)===p}R(Q,"isConcurrentMode");function ne($){return C($)===c}R(ne,"isContextConsumer");function J($){return C($)===s}R(J,"isContextProvider");function ie($){return typeof $=="object"&&$!==null&&$.$$typeof===r}R(ie,"isElement");function N($){return C($)===m}R(N,"isForwardRef");function K($){return C($)===a}R(K,"isFragment");function re($){return C($)===g}R(re,"isLazy");function fe($){return C($)===v}R(fe,"isMemo");function Ce($){return C($)===n}R(Ce,"isPortal");function xt($){return C($)===i}R(xt,"isProfiler");function He($){return C($)===o}R(He,"isStrictMode");function rt($){return C($)===h}R(rt,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=k,e.ContextConsumer=A,e.ContextProvider=_,e.Element=I,e.ForwardRef=B,e.Fragment=z,e.Lazy=L,e.Memo=M,e.Portal=O,e.Profiler=P,e.StrictMode=j,e.Suspense=U,e.isAsyncMode=G,e.isConcurrentMode=Q,e.isContextConsumer=ne,e.isContextProvider=J,e.isElement=ie,e.isForwardRef=N,e.isFragment=K,e.isLazy=re,e.isMemo=fe,e.isPortal=Ce,e.isProfiler=xt,e.isStrictMode=He,e.isSuspense=rt,e.isValidElementType=b,e.typeOf=C})()}),wD=gs((e,t)=>{t.exports=bD()}),X4=gs((e,t)=>{var r=wD(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function c(w){return r.isMemo(w)?i:s[w.$$typeof]||n}R(c,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(w,x,D){if(typeof x!="string"){if(v){var E=f(x);E&&E!==v&&g(w,E,D)}var b=p(x);m&&(b=b.concat(m(x)));for(var C=c(w),S=c(x),k=0;k{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return R(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var m=typeof Ci=="function"&&Ci;if(!p&&m)return m(d,!0);if(s)return s(d,!0);var h=new Error("Cannot find module '"+d+"'");throw h.code="MODULE_NOT_FOUND",h}var f=a[d]={exports:{}};n[d][0].call(f.exports,function(v){var g=n[d][1][v];return i(g||v)},f,f.exports,r,n,a,o)}return a[d].exports}R(i,"s");for(var s=typeof Ci=="function"&&Ci,c=0;c=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var c;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(c=this.indexOf(i),c>=0?(this.lastItem=this.list[c],this.list[c].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var c;for(c=0;c0&&(D[x]={cacheItem:v,arg:arguments[x]},E?i(m,D):m.push(D),m.length>d&&s(m.shift())),f.wasMemoized=E,f.numArgs=x+1,w},"memoizerific");return f.limit=d,f.wasMemoized=!1,f.cache=p,f.lru=m,f}};function i(d,p){var m=d.length,h=p.length,f,v,g;for(v=0;v=0&&(m=d[f],h=m.cacheItem.get(m.arg),!h||!h.size);f--)m.cacheItem.delete(m.arg)}R(s,"removeCachedResult");function c(d,p){return d===p||d!==d&&p!==p}R(c,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Nt(){return Nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?we(Aa,--$e):0,sa--,de===10&&(sa=1,bs--),de}R(ly,"prev");function Oe(){return de=$e2||ua(de)>3?"":" "}R(sy,"whitespace");function uy(e,t){for(;--t&&Oe()&&!(de<48||de>102||de>57&&de<65||de>70&&de<97););return Fa(e,wo()+(t<6&&pt()==32&&Oe()==32))}R(uy,"escaping");function Sl(e){for(;Oe();)switch(de){case e:return $e;case 34:case 39:e!==34&&e!==39&&Sl(de);break;case 40:e===41&&Sl(e);break;case 92:Oe();break}return $e}R(Sl,"delimiter");function cy(e,t){for(;Oe()&&e+de!==57&&!(e+de===84&&pt()===47););return"/*"+Fa(t,$e-1)+"*"+vs(e===47?e:Oe())}R(cy,"commenter");function dy(e){for(;!ua(pt());)Oe();return Fa(e,$e)}R(dy,"identifier");function py(e){return ip(xo("",null,null,null,[""],e=op(e),0,[0],e))}R(py,"compile");function xo(e,t,r,n,a,o,i,s,c){for(var d=0,p=0,m=i,h=0,f=0,v=0,g=1,w=1,x=1,D=0,E="",b=a,C=o,S=n,k=E;w;)switch(v=D,D=Oe()){case 40:if(v!=108&&we(k,m-1)==58){Cl(k+=ee(Eo(D),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:k+=Eo(D);break;case 9:case 10:case 13:case 32:k+=sy(v);break;case 92:k+=uy(wo()-1,7);continue;case 47:switch(pt()){case 42:case 47:io(fy(cy(Oe(),wo()),t,r),c);break;default:k+="/"}break;case 123*g:s[d++]=st(k)*x;case 125*g:case 59:case 0:switch(D){case 0:case 125:w=0;case 59+p:x==-1&&(k=ee(k,/\f/g,"")),f>0&&st(k)-m&&io(f>32?ed(k+";",n,r,m-1):ed(ee(k," ","")+";",n,r,m-2),c);break;case 59:k+=";";default:if(io(S=Q0(k,t,r,d,p,a,s,E,b=[],C=[],m),o),D===123)if(p===0)xo(k,t,S,S,b,o,m,s,C);else switch(h===99&&we(k,3)===110?100:h){case 100:case 108:case 109:case 115:xo(e,S,S,n&&io(Q0(e,S,S,0,0,a,s,E,a,b=[],m),C),a,C,m,s,n?b:C);break;default:xo(k,S,S,S,[""],C,0,s,C)}}d=p=f=0,g=x=1,E=k="",m=i;break;case 58:m=1+st(k),f=v;default:if(g<1){if(D==123)--g;else if(D==125&&g++==0&&ly()==125)continue}switch(k+=vs(D),D*g){case 38:x=p>0?1:(k+="\f",-1);break;case 44:s[d++]=(st(k)-1)*x,x=1;break;case 64:pt()===45&&(k+=Eo(Oe())),h=pt(),p=m=st(E=k+=dy(wo())),D++;break;case 45:v===45&&st(k)==2&&(g=0)}}return o}R(xo,"parse");function Q0(e,t,r,n,a,o,i,s,c,d,p){for(var m=a-1,h=a===0?o:[""],f=ys(h),v=0,g=0,w=0;v0?h[x]+" "+D:ee(D,/&\f/g,h[x])))&&(c[w++]=E);return Jo(e,t,r,a===0?rp:s,c,d,p)}R(Q0,"ruleset");function fy(e,t,r){return Jo(e,t,r,tp,vs(iy()),la(e,2,-2),0)}R(fy,"comment");function ed(e,t,r,n){return Jo(e,t,r,np,la(e,0,n),la(e,n+1,-1),n)}R(ed,"declaration");function on(e,t){for(var r="",n=ys(e),a=0;a-1},"isIgnoringComment"),LD=R(function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!t.parent,i=o?t.parent.children:n,s=i.length-1;s>=0;s--){var c=i[s];if(c.line=0;r--)if(!gy(t[r]))return!0;return!1},"isPrependedWithRegularRules"),bh=R(function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},"nullifyElement"),MD=R(function(e,t,r){gy(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),bh(e)):OD(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),bh(e)))},"incorrectImportAlarm");function lp(e,t){switch(ry(e,t)){case 5103:return te+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return te+e+Dl+e+_e+e+e;case 6828:case 4268:return te+e+_e+e+e;case 6165:return te+e+_e+"flex-"+e+e;case 5187:return te+e+ee(e,/(\w+).+(:[^]+)/,te+"box-$1$2"+_e+"flex-$1$2")+e;case 5443:return te+e+_e+"flex-item-"+ee(e,/flex-|-self/,"")+e;case 4675:return te+e+_e+"flex-line-pack"+ee(e,/align-content|flex-|-self/,"")+e;case 5548:return te+e+_e+ee(e,"shrink","negative")+e;case 5292:return te+e+_e+ee(e,"basis","preferred-size")+e;case 6060:return te+"box-"+ee(e,"-grow","")+te+e+_e+ee(e,"grow","positive")+e;case 4554:return te+ee(e,/([^-])(transform)/g,"$1"+te+"$2")+e;case 6187:return ee(ee(ee(e,/(zoom-|grab)/,te+"$1"),/(image-set)/,te+"$1"),e,"")+e;case 5495:case 3959:return ee(e,/(image-set\([^]*)/,te+"$1$`$1");case 4968:return ee(ee(e,/(.+:)(flex-)?(.*)/,te+"box-pack:$3"+_e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+te+e+e;case 4095:case 3583:case 4068:case 2532:return ee(e,/(.+)-inline(.+)/,te+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(st(e)-1-t>6)switch(we(e,t+1)){case 109:if(we(e,t+4)!==45)break;case 102:return ee(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+Dl+(we(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cl(e,"stretch")?lp(ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(we(e,t+1)!==115)break;case 6444:switch(we(e,st(e)-3-(~Cl(e,"!important")&&10))){case 107:return ee(e,":",":"+te)+e;case 101:return ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(we(e,14)===45?"inline-":"")+"box$3$1"+te+"$2$3$1"+_e+"$2box$3")+e}break;case 5936:switch(we(e,t+11)){case 114:return te+e+_e+ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+_e+ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+_e+ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+_e+e+e}return e}R(lp,"prefix");var PD=R(function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case np:e.return=lp(e.value,e.length);break;case ty:return on([Nn(e,{value:ee(e.value,"@","@"+te)})],n);case rp:if(e.length)return ay(e.props,function(a){switch(ny(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return on([Nn(e,{props:[ee(a,/:(read-\w+)/,":"+Dl+"$1")]})],n);case"::placeholder":return on([Nn(e,{props:[ee(a,/:(plac\w+)/,":"+te+"input-$1")]}),Nn(e,{props:[ee(a,/:(plac\w+)/,":"+Dl+"$1")]}),Nn(e,{props:[ee(a,/:(plac\w+)/,_e+"input-$1")]})],n)}return""})}},"prefixer"),$D=[PD],ND=R(function(e){var t=e.key;if(!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var n=e.stylisPlugins||$D;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a={},o,i=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),w=1;w=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}R(vy,"murmur2");var UD={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wh=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". @@ -677,7 +677,7 @@ To pass a single animation please supply them in simple values, e.g. animation(' `,77:`remToPx expects a value in "rem" but you provided it in "%s". `,78:`base must be set in "px" or "%" but you set it in "%s". -`};function sO(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),i=1;i=0&&a<1?(s=o,c=i):a>=1&&a<2?(s=i,c=o):a>=2&&a<3?(c=o,d=i):a>=3&&a<4?(c=i,d=o):a>=4&&a<5?(s=i,d=o):a>=5&&a<6&&(s=o,d=i);var p=r-o/2,m=s+p,h=c+p,f=d+p;return n(m,h,f)}var x4={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function cO(e){if(typeof e!="string")return e;var t=e.toLowerCase();return x4[t]?"#"+x4[t]:e}var dO=/^#[a-fA-F0-9]{6}$/,pO=/^#[a-fA-F0-9]{8}$/,fO=/^#[a-fA-F0-9]{3}$/,hO=/^#[a-fA-F0-9]{4}$/,V0=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,mO=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,gO=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,vO=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function pu(e){if(typeof e!="string")throw new Mt(3);var t=cO(e);if(t.match(dO))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(pO)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(fO))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(hO)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=V0.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=mO.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=gO.exec(t);if(i){var s=parseInt(""+i[1],10),c=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,p="rgb("+Yo(s,c,d)+")",m=V0.exec(p);if(!m)throw new Mt(4,t,p);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var h=vO.exec(t.substring(0,50));if(h){var f=parseInt(""+h[1],10),v=parseInt(""+h[2],10)/100,g=parseInt(""+h[3],10)/100,w="rgb("+Yo(f,v,g)+")",x=V0.exec(w);if(!x)throw new Mt(4,t,w);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new Mt(5)}function yO(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),i=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var s,c=a-o,d=i>.5?c/(2-a-o):c/(a+o);switch(a){case t:s=(r-n)/c+(r=1?fs(e,t,r):"rgba("+Yo(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?fs(e.hue,e.saturation,e.lightness):"rgba("+Yo(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Mt(2)}function $1(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return P1("#"+Kr(e)+Kr(t)+Kr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return P1("#"+Kr(e.red)+Kr(e.green)+Kr(e.blue));throw new Mt(6)}function ar(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=pu(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?$1(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?$1(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Mt(7)}var DO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},CO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},SO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},kO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function N9(e){if(typeof e!="object")throw new Mt(8);if(CO(e))return ar(e);if(DO(e))return $1(e);if(kO(e))return xO(e);if(SO(e))return EO(e);throw new Mt(8)}function H9(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):H9(e,t,n)}}function fu(e){return H9(e,e.length,[])}function hu(e,t,r){return Math.max(e,Math.min(t,r))}function AO(e,t){if(t==="transparent")return t;var r=$9(t);return N9(Sa({},r,{lightness:hu(0,1,r.lightness-parseFloat(e))}))}var FO=fu(AO),It=FO;function _O(e,t){if(t==="transparent")return t;var r=$9(t);return N9(Sa({},r,{lightness:hu(0,1,r.lightness+parseFloat(e))}))}var RO=fu(_O),Jr=RO;function IO(e,t){if(t==="transparent")return t;var r=pu(t),n=typeof r.alpha=="number"?r.alpha:1,a=Sa({},r,{alpha:hu(0,1,(n*100+parseFloat(e)*100)/100)});return ar(a)}var BO=fu(IO),Zi=BO;function TO(e,t){if(t==="transparent")return t;var r=pu(t),n=typeof r.alpha=="number"?r.alpha:1,a=Sa({},r,{alpha:hu(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return ar(a)}var zO=fu(TO),oe=zO,LO=F.div(se,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:oe(.3,e.color.defaultText),fontSize:e.typography.size.s2})),j9=e=>y.createElement(LO,{...e,className:"docblock-emptyblock sb-unstyled"}),OO=F(Vf)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),MO=F.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Xi=F.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${ad}`]:{margin:0}})),PO=()=>y.createElement(MO,null,y.createElement(Xi,null),y.createElement(Xi,{style:{width:"80%"}}),y.createElement(Xi,{style:{width:"30%"}}),y.createElement(Xi,{style:{width:"80%"}})),V9=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=Dy();if(e)return y.createElement(PO,null);if(t)return y.createElement(j9,null,t);let c=y.createElement(OO,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return c;let d=a?rd.dark:rd.light;return y.createElement(Cy,{theme:nd({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},c)},he=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,eh=600,$O=F.h1(se,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${eh}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),NO=F.h2(se,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${eh}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:oe(.25,e.color.defaultText)})),HO=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?oe(.1,e.color.defaultText):oe(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[he("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[he("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[he("div")]:t,[he("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[he("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[he("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[he("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[he("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[he("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[he("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[he("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[he("img")]:{maxWidth:"100%"},[he("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[he("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[he("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[he("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[he("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[he("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[he("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),jO=F.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${eh}px)`]:{}})),VO=({children:e,toc:t})=>y.createElement(jO,{className:"sbdocs sbdocs-wrapper"},y.createElement(HO,{className:"sbdocs sbdocs-content"},e),t),mu=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:UO}=globalThis,qO=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=UO.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},U9=l.createContext({scale:1}),{PREVIEW_URL:WO}=globalThis,GO=WO||"iframe.html",N1=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,YO=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:c,forceInitialArgs:d,renderStoryToElement:p}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let m=t.current,h=p(i,m,{showMain:()=>{},showError:({title:f,description:v})=>o(new Error(`${f} - ${v}`)),showException:f=>o(f)},{autoplay:c,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>h())}},[c,p,i]),a?y.createElement("pre",null,y.createElement(iz,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${N1(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(q9,null),y.createElement("div",{ref:t,id:`${N1(e)}-inner`,"data-name":i.name}))},KO=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement(U9.Consumer,null,({scale:r})=>y.createElement(qO,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:_L(GO,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),JO=F.strong(({theme:e})=>({color:e.color.orange})),ZO=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(JO,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:N1(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(YO,{...e}):y.createElement(KO,{...e}))},q9=()=>y.createElement(FL,null),XO=F(Xf)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),QO=F.div({display:"flex",alignItems:"center",gap:4}),eM=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),tM=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(XO,{...o},y.createElement(QO,{key:"left"},e?[1,2,3].map(i=>y.createElement(eM,{key:i})):y.createElement(y.Fragment,null,y.createElement(un,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(TL,null)),y.createElement(un,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(zL,null)),y.createElement(un,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(LL,null))))),rM=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),D4=F(V9)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":It(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":It(.05,e.background.content)}})),nM=F.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...mu(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),aM=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:y.createElement(D4,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(D4,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function oM(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var iM=F(tM)({position:"absolute",top:0,left:0,right:0,height:40}),lM=F.div({overflow:"hidden",position:"relative"}),W9=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:c,layout:d="padded",...p})=>{let[m,h]=l.useState(i),{source:f,actionItem:v}=aM(a,m,h),[g,w]=l.useState(1),x=[c].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),D=a?[v]:[],[E,b]=l.useState(s?[...s]:[]),C=[...D,...E],{window:S}=globalThis,k=l.useCallback(async _=>{let{createCopyToClipboardFunction:I}=await K1(()=>import("./index-BcJ7ghs7.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);I()},[]),A=_=>{let I=S.getSelection();I&&I.type==="Range"||(_.preventDefault(),E.filter(B=>B.title==="Copied").length===0&&k(f.props.code).then(()=>{b([...E,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>b(E.filter(B=>B.title!=="Copied")),1500)}))};return y.createElement(nM,{withSource:a,withToolbar:o,...p,className:x.join(" ")},o&&y.createElement(iM,{isLoading:e,border:!0,zoom:_=>w(g*_),resetZoom:()=>w(1),storyId:oM(n),baseUrl:"./iframe.html"}),y.createElement(U9.Provider,{value:{scale:g}},y.createElement(lM,{className:"docs-story",onCopyCapture:a&&A},y.createElement(rM,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(XT.Element,{scale:g},Array.isArray(n)?n.map((_,I)=>y.createElement("div",{key:I},_)):y.createElement("div",null,n))),y.createElement(Sp,{actionItems:C}))),a&&m&&f)};F(W9)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));function Xr(){return Xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),A4={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},uM=["style","script"],cM=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,dM=/mailto:/i,pM=/\n{2,}$/,G9=/^(\s*>[\s\S]*?)(?=\n{2,})/,fM=/^ *> ?/gm,hM=/^ {2,}\n/,mM=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Y9=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,K9=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,gM=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,vM=/^(?:\n *)*\n/,yM=/\r\n?/g,bM=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,wM=/^\[\^([^\]]+)]/,EM=/\f/g,xM=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,DM=/^\s*?\[(x|\s)\]/,J9=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Z9=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,X9=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,H1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,CM=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Q9=/^)/,SM=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,j1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,kM=/^\{.*\}$/,AM=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,FM=/^<([^ >]+@[^ >]+)>/,_M=/^<([^ >]+:\/[^ >]+)>/,RM=/-([a-z])?/gi,ex=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,IM=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,BM=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,TM=/^\[([^\]]*)\] ?\[([^\]]*)\]/,zM=/(\[|\])/g,LM=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,OM=/\t/g,MM=/^ *\| */,PM=/(^ *\||\| *$)/g,$M=/ *$/,NM=/^ *:-+: *$/,HM=/^ *:-+ *$/,jM=/^ *-+: *$/,gu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",VM=new RegExp(`^([*_])\\1${gu}\\1\\1(?!\\1)`),UM=new RegExp(`^([*_])${gu}\\1(?!\\1|\\w)`),qM=new RegExp(`^==${gu}==`),WM=new RegExp(`^~~${gu}~~`),GM=/^\\([^0-9A-Za-z\s])/,YM=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,KM=/^\n+/,JM=/^([ \t]*)/,ZM=/\\([^\\])/g,F4=/ *\n+$/,XM=/(?:^|\n)( *)$/,th="(?:\\d+\\.)",rh="(?:[*+-])";function tx(e){return"( *)("+(e===1?th:rh)+") +"}var rx=tx(1),nx=tx(2);function ax(e){return new RegExp("^"+(e===1?rx:nx))}var QM=ax(1),eP=ax(2);function ox(e){return new RegExp("^"+(e===1?rx:nx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?th:rh)+" )[^\\n]*)*(\\n|$)","gm")}var ix=ox(1),lx=ox(2);function sx(e){let t=e===1?th:rh;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var ux=sx(1),cx=sx(2);function _4(e,t){let r=t===1,n=r?ux:cx,a=r?ix:lx,o=r?QM:eP;return{match(i,s,c){let d=XM.exec(c);return d&&(s.list||!s.inline&&!s.simple)?n.exec(i=d[1]+i):null},order:1,parse(i,s,c){let d=r?+i[2]:void 0,p=i[0].replace(pM,` +`};function sO(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),i=1;i=0&&a<1?(s=o,c=i):a>=1&&a<2?(s=i,c=o):a>=2&&a<3?(c=o,d=i):a>=3&&a<4?(c=i,d=o):a>=4&&a<5?(s=i,d=o):a>=5&&a<6&&(s=o,d=i);var p=r-o/2,m=s+p,h=c+p,f=d+p;return n(m,h,f)}var x4={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function cO(e){if(typeof e!="string")return e;var t=e.toLowerCase();return x4[t]?"#"+x4[t]:e}var dO=/^#[a-fA-F0-9]{6}$/,pO=/^#[a-fA-F0-9]{8}$/,fO=/^#[a-fA-F0-9]{3}$/,hO=/^#[a-fA-F0-9]{4}$/,V0=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,mO=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,gO=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,vO=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function pu(e){if(typeof e!="string")throw new Mt(3);var t=cO(e);if(t.match(dO))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(pO)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(fO))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(hO)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=V0.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=mO.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=gO.exec(t);if(i){var s=parseInt(""+i[1],10),c=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,p="rgb("+Yo(s,c,d)+")",m=V0.exec(p);if(!m)throw new Mt(4,t,p);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var h=vO.exec(t.substring(0,50));if(h){var f=parseInt(""+h[1],10),v=parseInt(""+h[2],10)/100,g=parseInt(""+h[3],10)/100,w="rgb("+Yo(f,v,g)+")",x=V0.exec(w);if(!x)throw new Mt(4,t,w);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new Mt(5)}function yO(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),i=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var s,c=a-o,d=i>.5?c/(2-a-o):c/(a+o);switch(a){case t:s=(r-n)/c+(r=1?fs(e,t,r):"rgba("+Yo(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?fs(e.hue,e.saturation,e.lightness):"rgba("+Yo(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Mt(2)}function $1(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return P1("#"+Kr(e)+Kr(t)+Kr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return P1("#"+Kr(e.red)+Kr(e.green)+Kr(e.blue));throw new Mt(6)}function ar(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=pu(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?$1(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?$1(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Mt(7)}var DO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},CO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},SO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},kO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function N9(e){if(typeof e!="object")throw new Mt(8);if(CO(e))return ar(e);if(DO(e))return $1(e);if(kO(e))return xO(e);if(SO(e))return EO(e);throw new Mt(8)}function H9(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):H9(e,t,n)}}function fu(e){return H9(e,e.length,[])}function hu(e,t,r){return Math.max(e,Math.min(t,r))}function AO(e,t){if(t==="transparent")return t;var r=$9(t);return N9(Sa({},r,{lightness:hu(0,1,r.lightness-parseFloat(e))}))}var FO=fu(AO),It=FO;function _O(e,t){if(t==="transparent")return t;var r=$9(t);return N9(Sa({},r,{lightness:hu(0,1,r.lightness+parseFloat(e))}))}var RO=fu(_O),Jr=RO;function IO(e,t){if(t==="transparent")return t;var r=pu(t),n=typeof r.alpha=="number"?r.alpha:1,a=Sa({},r,{alpha:hu(0,1,(n*100+parseFloat(e)*100)/100)});return ar(a)}var BO=fu(IO),Zi=BO;function TO(e,t){if(t==="transparent")return t;var r=pu(t),n=typeof r.alpha=="number"?r.alpha:1,a=Sa({},r,{alpha:hu(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return ar(a)}var zO=fu(TO),oe=zO,LO=F.div(se,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:oe(.3,e.color.defaultText),fontSize:e.typography.size.s2})),j9=e=>y.createElement(LO,{...e,className:"docblock-emptyblock sb-unstyled"}),OO=F(Vf)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),MO=F.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Xi=F.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${ad}`]:{margin:0}})),PO=()=>y.createElement(MO,null,y.createElement(Xi,null),y.createElement(Xi,{style:{width:"80%"}}),y.createElement(Xi,{style:{width:"30%"}}),y.createElement(Xi,{style:{width:"80%"}})),V9=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=Dy();if(e)return y.createElement(PO,null);if(t)return y.createElement(j9,null,t);let c=y.createElement(OO,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return c;let d=a?rd.dark:rd.light;return y.createElement(Cy,{theme:nd({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},c)},he=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,eh=600,$O=F.h1(se,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${eh}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),NO=F.h2(se,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${eh}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:oe(.25,e.color.defaultText)})),HO=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?oe(.1,e.color.defaultText):oe(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[he("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[he("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[he("div")]:t,[he("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[he("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[he("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[he("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[he("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[he("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[he("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[he("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[he("img")]:{maxWidth:"100%"},[he("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[he("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[he("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[he("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[he("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[he("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[he("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),jO=F.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${eh}px)`]:{}})),VO=({children:e,toc:t})=>y.createElement(jO,{className:"sbdocs sbdocs-wrapper"},y.createElement(HO,{className:"sbdocs sbdocs-content"},e),t),mu=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:UO}=globalThis,qO=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=UO.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},U9=l.createContext({scale:1}),{PREVIEW_URL:WO}=globalThis,GO=WO||"iframe.html",N1=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,YO=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:c,forceInitialArgs:d,renderStoryToElement:p}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let m=t.current,h=p(i,m,{showMain:()=>{},showError:({title:f,description:v})=>o(new Error(`${f} - ${v}`)),showException:f=>o(f)},{autoplay:c,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>h())}},[c,p,i]),a?y.createElement("pre",null,y.createElement(iz,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${N1(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(q9,null),y.createElement("div",{ref:t,id:`${N1(e)}-inner`,"data-name":i.name}))},KO=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement(U9.Consumer,null,({scale:r})=>y.createElement(qO,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:_L(GO,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),JO=F.strong(({theme:e})=>({color:e.color.orange})),ZO=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(JO,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:N1(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(YO,{...e}):y.createElement(KO,{...e}))},q9=()=>y.createElement(FL,null),XO=F(Xf)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),QO=F.div({display:"flex",alignItems:"center",gap:4}),eM=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),tM=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(XO,{...o},y.createElement(QO,{key:"left"},e?[1,2,3].map(i=>y.createElement(eM,{key:i})):y.createElement(y.Fragment,null,y.createElement(un,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(TL,null)),y.createElement(un,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(zL,null)),y.createElement(un,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(LL,null))))),rM=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),D4=F(V9)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":It(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":It(.05,e.background.content)}})),nM=F.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...mu(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),aM=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:y.createElement(D4,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(D4,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function oM(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var iM=F(tM)({position:"absolute",top:0,left:0,right:0,height:40}),lM=F.div({overflow:"hidden",position:"relative"}),W9=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:c,layout:d="padded",...p})=>{let[m,h]=l.useState(i),{source:f,actionItem:v}=aM(a,m,h),[g,w]=l.useState(1),x=[c].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),D=a?[v]:[],[E,b]=l.useState(s?[...s]:[]),C=[...D,...E],{window:S}=globalThis,k=l.useCallback(async _=>{let{createCopyToClipboardFunction:I}=await K1(()=>import("./index-Bf3JXswA.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);I()},[]),A=_=>{let I=S.getSelection();I&&I.type==="Range"||(_.preventDefault(),E.filter(B=>B.title==="Copied").length===0&&k(f.props.code).then(()=>{b([...E,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>b(E.filter(B=>B.title!=="Copied")),1500)}))};return y.createElement(nM,{withSource:a,withToolbar:o,...p,className:x.join(" ")},o&&y.createElement(iM,{isLoading:e,border:!0,zoom:_=>w(g*_),resetZoom:()=>w(1),storyId:oM(n),baseUrl:"./iframe.html"}),y.createElement(U9.Provider,{value:{scale:g}},y.createElement(lM,{className:"docs-story",onCopyCapture:a&&A},y.createElement(rM,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(XT.Element,{scale:g},Array.isArray(n)?n.map((_,I)=>y.createElement("div",{key:I},_)):y.createElement("div",null,n))),y.createElement(Sp,{actionItems:C}))),a&&m&&f)};F(W9)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));function Xr(){return Xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),A4={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},uM=["style","script"],cM=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,dM=/mailto:/i,pM=/\n{2,}$/,G9=/^(\s*>[\s\S]*?)(?=\n{2,})/,fM=/^ *> ?/gm,hM=/^ {2,}\n/,mM=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Y9=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,K9=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,gM=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,vM=/^(?:\n *)*\n/,yM=/\r\n?/g,bM=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,wM=/^\[\^([^\]]+)]/,EM=/\f/g,xM=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,DM=/^\s*?\[(x|\s)\]/,J9=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Z9=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,X9=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,H1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,CM=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Q9=/^)/,SM=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,j1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,kM=/^\{.*\}$/,AM=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,FM=/^<([^ >]+@[^ >]+)>/,_M=/^<([^ >]+:\/[^ >]+)>/,RM=/-([a-z])?/gi,ex=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,IM=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,BM=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,TM=/^\[([^\]]*)\] ?\[([^\]]*)\]/,zM=/(\[|\])/g,LM=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,OM=/\t/g,MM=/^ *\| */,PM=/(^ *\||\| *$)/g,$M=/ *$/,NM=/^ *:-+: *$/,HM=/^ *:-+ *$/,jM=/^ *-+: *$/,gu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",VM=new RegExp(`^([*_])\\1${gu}\\1\\1(?!\\1)`),UM=new RegExp(`^([*_])${gu}\\1(?!\\1|\\w)`),qM=new RegExp(`^==${gu}==`),WM=new RegExp(`^~~${gu}~~`),GM=/^\\([^0-9A-Za-z\s])/,YM=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,KM=/^\n+/,JM=/^([ \t]*)/,ZM=/\\([^\\])/g,F4=/ *\n+$/,XM=/(?:^|\n)( *)$/,th="(?:\\d+\\.)",rh="(?:[*+-])";function tx(e){return"( *)("+(e===1?th:rh)+") +"}var rx=tx(1),nx=tx(2);function ax(e){return new RegExp("^"+(e===1?rx:nx))}var QM=ax(1),eP=ax(2);function ox(e){return new RegExp("^"+(e===1?rx:nx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?th:rh)+" )[^\\n]*)*(\\n|$)","gm")}var ix=ox(1),lx=ox(2);function sx(e){let t=e===1?th:rh;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var ux=sx(1),cx=sx(2);function _4(e,t){let r=t===1,n=r?ux:cx,a=r?ix:lx,o=r?QM:eP;return{match(i,s,c){let d=XM.exec(c);return d&&(s.list||!s.inline&&!s.simple)?n.exec(i=d[1]+i):null},order:1,parse(i,s,c){let d=r?+i[2]:void 0,p=i[0].replace(pM,` `).match(a),m=!1;return{items:p.map(function(h,f){let v=o.exec(h)[0].length,g=new RegExp("^ {1,"+v+"}","gm"),w=h.replace(g,"").replace(o,""),x=f===p.length-1,D=w.indexOf(` `)!==-1||x&&m;m=D;let E=c.inline,b=c.list,C;c.list=!0,D?(c.inline=!1,C=w.replace(F4,` @@ -708,7 +708,7 @@ To pass a single animation please supply them in simple values, e.g. animation(' ${It(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Jr(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${Jr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${ar(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),Cx=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),u$=F(Cx)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),c$=F.div({display:"flex",alignItems:"center",width:"100%"});function d$(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var p$=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:c})=>{var f;let d=v=>{r(xP(v.target.value))},p=t!==void 0,m=l.useMemo(()=>d$(o),[o]),h=!!((f=c==null?void 0:c.table)!=null&&f.readonly);return y.createElement(c$,{"aria-readonly":h},y.createElement(Cx,null,n),y.createElement(s$,{id:yt(e),type:"range",disabled:h,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(u$,{numberOFDecimalsPlaces:m,max:a},p?t.toFixed(m):"--"," / ",a))},f$=F.label({display:"flex"}),h$=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),m$=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var f;let s=v=>{r(v.target.value)},c=!!((f=i==null?void 0:i.table)!=null&&f.readonly),[d,p]=l.useState(!1),m=l.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return y.createElement(kn,{variant:"outline",size:"medium",disabled:c,id:ms(e),onClick:m},"Set string");let h=typeof t=="string";return y.createElement(f$,null,y.createElement(bi.Textarea,{id:yt(e),maxLength:o,onChange:s,disabled:c,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:h?null:"error",name:e,value:h?t:"",onFocus:n,onBlur:a}),o&&y.createElement(h$,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},g$=F(bi.Input)({padding:10});function v$(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var y$=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var c;let o=l.useRef(null),i=(c=a==null?void 0:a.control)==null?void 0:c.readOnly;function s(d){if(!d.target.files)return;let p=Array.from(d.target.files).map(m=>URL.createObjectURL(m));e(p),v$(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(g$,{ref:o,id:yt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},b$=l.lazy(()=>K1(()=>import("./Color-F6OSRLHC-RpgDy62Q.js"),__vite__mapDeps([11,2,3,1,4,5,6,7,8,9,10]),import.meta.url)),w$=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(b$,{...e})),E$={array:$4,object:$4,boolean:hP,color:w$,date:wP,number:CP,check:$n,"inline-check":$n,radio:$n,"inline-radio":$n,select:$n,"multi-select":$n,range:p$,text:m$,file:y$},N4=()=>y.createElement(y.Fragment,null,"-"),x$=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;let{key:a,control:o}=e,[i,s]=l.useState(!1),[c,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let p=l.useCallback(w=>(d({value:w}),r({[a]:w}),w),[r,a]),m=l.useCallback(()=>s(!1),[]),h=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let w=(o==null?void 0:o.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&w?y.createElement(ia,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement(N4,null)}let f={name:a,argType:e,value:c.value,onChange:p,onBlur:m,onFocus:h},v=E$[o.type]||N4;return y.createElement(v,{...f,...o,controlType:o.type})},D$=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Or({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),C$=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:y.createElement(y.Fragment,null,y.createElement(D$,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>y.createElement("tr",{key:o.name},y.createElement("td",null,y.createElement("code",null,o.name)),y.createElement("td",null,o.description))),a&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,e.returns.description)))))},S$=J1(M9()),q1=8,H4=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),k$=F.span(Or,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),A$=F.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),F$=F.div(Or,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),_$=F.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),R$=F(UL)({marginLeft:4}),I$=F(O9)({marginLeft:4}),B$=()=>y.createElement("span",null,"-"),Sx=({text:e,simple:t})=>y.createElement(k$,{simple:t},e),T$=(0,S$.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),z$=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return aD(t)},j4=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,q1)),r.map(n=>y.createElement(Sx,{key:n,text:n===""?'""':n}))},L$=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let c=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(c))return y.createElement(Sx,{text:c});let d=z$(c),p=d.length;return p>q1?y.createElement(H4,{isExpanded:i},j4(d,i),y.createElement(A$,{onClick:()=>s(!i)},i?"Show less...":`Show ${p-q1} more...`)):y.createElement(H4,null,j4(d))}return y.createElement(Bz,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(_$,{width:T$(n)},y.createElement(Vf,{language:"jsx",format:!1},n))},y.createElement(F$,{className:"sbdocs-expandable"},y.createElement("span",null,c),a?y.createElement(R$,null):y.createElement(I$,null)))},J0=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(B$,null):y.createElement(L$,{value:e,initialExpandedArgs:t}),O$=F.span({fontWeight:"bold"}),M$=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),P$=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Or({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),$$=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?oe(.1,e.color.defaultText):oe(.2,e.color.defaultText),marginTop:t?4:0})),N$=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?oe(.1,e.color.defaultText):oe(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),H$=F.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),j$=e=>e&&{summary:typeof e=="string"?e:e.name},Qi=e=>{var g;let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:c,description:d}=n,p=n.table||{},m=p.type||j$(n.type),h=p.defaultValue||n.defaultValue,f=(g=n.type)==null?void 0:g.required,v=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(H$,{expandable:i},y.createElement(O$,null,c),f?y.createElement(M$,{title:"Required"},"*"):null),o?null:y.createElement("td",null,v&&y.createElement(P$,null,y.createElement(px,null,d)),p.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(N$,{hasDescription:v},y.createElement(J0,{value:m,initialExpandedArgs:s})),y.createElement(C$,{tags:p.jsDocTags})):y.createElement($$,{hasDescription:v},y.createElement(J0,{value:m,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(J0,{value:h,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(x$,{...e,isHovered:t})):null)},V$=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),U$=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),q$=F.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),W$=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(V$,{inAddonPanel:e},y.createElement(_9,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:y.createElement(U$,null,e&&y.createElement(y.Fragment,null,y.createElement(ia,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(PL,null)," Watch 5m video"),y.createElement(q$,null),y.createElement(ia,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(L1,null)," Read docs")),!e&&y.createElement(ia,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(L1,null)," Learn how to set that up"))}))},G$=F(jL)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?oe(.25,e.color.defaultText):oe(.3,e.color.defaultText),border:"none",display:"inline-block"})),Y$=F(VL)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?oe(.25,e.color.defaultText):oe(.3,e.color.defaultText),border:"none",display:"inline-block"})),K$=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),J$=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Z$=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),X$=F.td(()=>({position:"relative"})),Q$=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Jr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),V4=F.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),Z0=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?Z$:J$,c=(r==null?void 0:r.length)||0,d=e==="subsection"?`${c} item${c!==1?"s":""}`:"",p=`${o?"Hide":"Show"} ${e==="subsection"?c:t} item${c!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement(Q$,{title:p},y.createElement(s,{colSpan:1},y.createElement(V4,{onClick:m=>i(!o),tabIndex:0},p),y.createElement(K$,null,o?y.createElement(G$,null):y.createElement(Y$,null),t)),y.createElement(X$,{colSpan:a-1},y.createElement(V4,{onClick:m=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},el=F.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ae=F.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),me=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Fe=[2,4,2,2],eN=()=>y.createElement(y.Fragment,null,y.createElement(el,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(el,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(el,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(el,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"})))),tN=F.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?oe(.25,e.color.defaultText):oe(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),rN=F(un)(({theme:e})=>({margin:"-4px -12px -4px 0"})),nN=F.span({display:"flex",justifyContent:"space-between"}),aN={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},oN=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:c}=(i==null?void 0:i.table)||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!c)d.ungrouped.push({key:o,...i});else{let p=d.subsections[c]||[];p.push({key:o,...i}),d.subsections[c]=p}r.sections[s]=d}else if(c){let d=r.ungroupedSubsections[c]||[];d.push({key:o,...i}),r.ungroupedSubsections[c]=d}else r.ungrouped.push({key:o,...i})});let n=aN[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},iN=(e,t,r)=>{try{return vS(e,t,r)}catch(n){return GL.warn(n.message),!1}},W1=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:D}=e;return y.createElement(j9,null,D," ",y.createElement(ia,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(L1,null)," Read the docs"))}if(s)return y.createElement(eN,null);let{rows:c,args:d,globals:p}="rows"in e&&e,m=oN(oD(c||{},D=>{var E;return!((E=D==null?void 0:D.table)!=null&&E.disable)&&iN(D,d||{},p||{})}),i),h=m.ungrouped.length===0,f=Object.entries(m.sections).length===0,v=Object.entries(m.ungroupedSubsections).length===0;if(h&&f&&v)return y.createElement(W$,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let w=Object.keys(m.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(q8,null,y.createElement(tN,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(nN,null,"Control"," ",!s&&r&&y.createElement(rN,{onClick:()=>r(),title:"Reset controls"},y.createElement(qL,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},m.ungrouped.map(D=>y.createElement(Qi,{key:D.key,row:D,arg:d&&d[D.key],...x})),Object.entries(m.ungroupedSubsections).map(([D,E])=>y.createElement(Z0,{key:D,label:D,level:"subsection",colSpan:g},E.map(b=>y.createElement(Qi,{key:b.key,row:b,arg:d&&d[b.key],expandable:w,...x})))),Object.entries(m.sections).map(([D,E])=>y.createElement(Z0,{key:D,label:D,level:"section",colSpan:g},E.ungrouped.map(b=>y.createElement(Qi,{key:b.key,row:b,arg:d&&d[b.key],...x})),Object.entries(E.subsections).map(([b,C])=>y.createElement(Z0,{key:b,label:b,level:"subsection",colSpan:g},C.map(S=>y.createElement(Qi,{key:S.key,row:S,arg:d&&d[S.key],expandable:w,...x})))))))))},lN=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(W1,{...r[0][1],...t}):y.createElement(hL,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,c="div",d=a===0?t:{sort:t.sort};return y.createElement(c,{key:s,id:s,title:o},({active:p})=>p?y.createElement(W1,{key:`prop_table_${o}`,...i,...d}):null)}))};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(se,({theme:e})=>({...mu(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:e.base==="light"?oe(.2,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...mu(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));F.div(({theme:e})=>({...mu(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});F.div({display:"flex",flexFlow:"row wrap"});var sN=e=>`anchor--${e}`,uN=({storyId:e,children:t})=>y.createElement("div",{id:sN(e),className:"sb-anchor"},t);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=l.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Kt=globalThis?globalThis.__DOCS_CONTEXT__:l.createContext(null),An=(e,t)=>l.useContext(Kt).resolveOf(e,t),cN=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),dN=e=>{if(e)return typeof e=="string"?e.includes("-")?cN(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function pN(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var fN=Object.create,kx=Object.defineProperty,hN=Object.getOwnPropertyDescriptor,Ax=Object.getOwnPropertyNames,mN=Object.getPrototypeOf,gN=Object.prototype.hasOwnProperty,tt=(e,t)=>function(){return t||(0,e[Ax(e)[0]])((t={exports:{}}).exports,t),t.exports},vN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ax(t))!gN.call(e,a)&&a!==r&&kx(e,a,{get:()=>t[a],enumerable:!(n=hN(t,a))||n.enumerable});return e},oh=(e,t,r)=>(r=e!=null?fN(mN(e)):{},vN(!e||!e.__esModule?kx(r,"default",{value:e,enumerable:!0}):r,e)),yN=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],bN=["detail"];function wN(e){let t=yN.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&bN.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var EN=J1(M9(),1),Fx=tt({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0}}}),_x=tt({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Fx();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),xN=tt({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,a=Object.prototype.toString,o="[object Function]";t.exports=function(i){var s=this;if(typeof s!="function"||a.call(s)!==o)throw new TypeError(r+s);for(var c=n.call(arguments,1),d,p=function(){if(this instanceof d){var g=s.apply(this,c.concat(n.call(arguments)));return Object(g)===g?g:this}else return s.apply(i,c.concat(n.call(arguments)))},m=Math.max(0,s.length-c.length),h=[],f=0;f"u"?r:m(Uint8Array),v={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?m([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?m(m([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!p?r:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!p?r:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?m(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":d,"%TypedArray%":f,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},g=function z(L){var M;if(L==="%AsyncFunction%")M=i("async function () {}");else if(L==="%GeneratorFunction%")M=i("function* () {}");else if(L==="%AsyncGeneratorFunction%")M=i("async function* () {}");else if(L==="%AsyncGenerator%"){var O=z("%AsyncGeneratorFunction%");O&&(M=O.prototype)}else if(L==="%AsyncIteratorPrototype%"){var P=z("%AsyncGenerator%");P&&(M=m(P.prototype))}return v[L]=M,M},w={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=ih(),D=DN(),E=x.call(Function.call,Array.prototype.concat),b=x.call(Function.apply,Array.prototype.splice),C=x.call(Function.call,String.prototype.replace),S=x.call(Function.call,String.prototype.slice),k=x.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,I=function(z){var L=S(z,0,1),M=S(z,-1);if(L==="%"&&M!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&L!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var O=[];return C(z,A,function(P,j,U,V){O[O.length]=U?C(V,_,"$1"):j||P}),O},B=function(z,L){var M=z,O;if(D(w,M)&&(O=w[M],M="%"+O[0]+"%"),D(v,M)){var P=v[M];if(P===h&&(P=g(M)),typeof P>"u"&&!L)throw new o("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:O,name:M,value:P}}throw new n("intrinsic "+z+" does not exist!")};t.exports=function(z,L){if(typeof z!="string"||z.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof L!="boolean")throw new o('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,z)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=I(z),O=M.length>0?M[0]:"",P=B("%"+O+"%",L),j=P.name,U=P.value,V=!1,G=P.alias;G&&(O=G[0],b(M,E([0,1],G)));for(var Q=1,ne=!0;Q=M.length){var K=s(U,J);ne=!!K,ne&&"get"in K&&!("originalValue"in K.get)?U=K.get:U=U[J]}else ne=D(U,J),U=U[J];ne&&!V&&(v[j]=U)}}return U}}}),CN=tt({"node_modules/call-bind/index.js"(e,t){var r=ih(),n=Rx(),a=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,a),s=n("%Object.getOwnPropertyDescriptor%",!0),c=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}t.exports=function(m){var h=i(r,o,arguments);if(s&&c){var f=s(h,"length");f.configurable&&c(h,"length",{value:1+d(0,m.length-(arguments.length-1))})}return h};var p=function(){return i(r,a,arguments)};c?c(t.exports,"apply",{value:p}):t.exports.apply=p}}),SN=tt({"node_modules/call-bind/callBound.js"(e,t){var r=Rx(),n=CN(),a=n(r("String.prototype.indexOf"));t.exports=function(o,i){var s=r(o,!!i);return typeof s=="function"&&a(o,".prototype.")>-1?n(s):s}}}),kN=tt({"node_modules/has-tostringtag/shams.js"(e,t){var r=Fx();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),AN=tt({"node_modules/is-regex/index.js"(e,t){var r=SN(),n=kN()(),a,o,i,s;n&&(a=r("Object.prototype.hasOwnProperty"),o=r("RegExp.prototype.exec"),i={},c=function(){throw i},s={toString:c,valueOf:c},typeof Symbol.toPrimitive=="symbol"&&(s[Symbol.toPrimitive]=c));var c,d=r("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor,m="[object RegExp]";t.exports=n?function(h){if(!h||typeof h!="object")return!1;var f=p(h,"lastIndex"),v=f&&a(f,"value");if(!v)return!1;try{o(h,s)}catch(g){return g===i}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:d(h)===m}}}),FN=tt({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var o=r.call(a);return o==="[object Function]"||typeof a=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),_N=tt({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=_x()();n?(a=Symbol.prototype.toString,o=/^Symbol\(.*\)$/,i=function(s){return typeof s.valueOf()!="symbol"?!1:o.test(a.call(s))},t.exports=function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return i(s)}catch{return!1}}):t.exports=function(s){return!1};var a,o,i}}),RN=oh(AN()),IN=oh(FN()),BN=oh(_N());function TN(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var zN=typeof global=="object"&&global&&global.Object===Object&&global,LN=zN,ON=typeof self=="object"&&self&&self.Object===Object&&self,MN=LN||ON||Function("return this")(),lh=MN,PN=lh.Symbol,ka=PN,Ix=Object.prototype,$N=Ix.hasOwnProperty,NN=Ix.toString,oo=ka?ka.toStringTag:void 0;function HN(e){var t=$N.call(e,oo),r=e[oo];try{e[oo]=void 0;var n=!0}catch{}var a=NN.call(e);return n&&(t?e[oo]=r:delete e[oo]),a}var jN=HN,VN=Object.prototype,UN=VN.toString;function qN(e){return UN.call(e)}var WN=qN,GN="[object Null]",YN="[object Undefined]",U4=ka?ka.toStringTag:void 0;function KN(e){return e==null?e===void 0?YN:GN:U4&&U4 in Object(e)?jN(e):WN(e)}var JN=KN,q4=ka?ka.prototype:void 0;q4&&q4.toString;function ZN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bx=ZN,XN="[object AsyncFunction]",QN="[object Function]",eH="[object GeneratorFunction]",tH="[object Proxy]";function rH(e){if(!Bx(e))return!1;var t=JN(e);return t==QN||t==eH||t==XN||t==tH}var nH=rH,aH=lh["__core-js_shared__"],X0=aH,W4=function(){var e=/[^.]+$/.exec(X0&&X0.keys&&X0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function oH(e){return!!W4&&W4 in e}var iH=oH,lH=Function.prototype,sH=lH.toString;function uH(e){if(e!=null){try{return sH.call(e)}catch{}try{return e+""}catch{}}return""}var cH=uH,dH=/[\\^$.*+?()[\]{}|]/g,pH=/^\[object .+?Constructor\]$/,fH=Function.prototype,hH=Object.prototype,mH=fH.toString,gH=hH.hasOwnProperty,vH=RegExp("^"+mH.call(gH).replace(dH,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yH(e){if(!Bx(e)||iH(e))return!1;var t=nH(e)?vH:pH;return t.test(cH(e))}var bH=yH;function wH(e,t){return e==null?void 0:e[t]}var EH=wH;function xH(e,t){var r=EH(e,t);return bH(r)?r:void 0}var Tx=xH;function DH(e,t){return e===t||e!==e&&t!==t}var CH=DH,SH=Tx(Object,"create"),Ko=SH;function kH(){this.__data__=Ko?Ko(null):{},this.size=0}var AH=kH;function FH(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _H=FH,RH="__lodash_hash_undefined__",IH=Object.prototype,BH=IH.hasOwnProperty;function TH(e){var t=this.__data__;if(Ko){var r=t[e];return r===RH?void 0:r}return BH.call(t,e)?t[e]:void 0}var zH=TH,LH=Object.prototype,OH=LH.hasOwnProperty;function MH(e){var t=this.__data__;return Ko?t[e]!==void 0:OH.call(t,e)}var PH=MH,$H="__lodash_hash_undefined__";function NH(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ko&&t===void 0?$H:t,this}var HH=NH;function Oa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var XH=ZH;function QH(e,t){var r=this.__data__,n=yu(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ej=QH;function Ma(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,a=!1,o="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;i({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),c$=F.div({display:"flex",alignItems:"center",width:"100%"});function d$(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var p$=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:c})=>{var f;let d=v=>{r(xP(v.target.value))},p=t!==void 0,m=l.useMemo(()=>d$(o),[o]),h=!!((f=c==null?void 0:c.table)!=null&&f.readonly);return y.createElement(c$,{"aria-readonly":h},y.createElement(Cx,null,n),y.createElement(s$,{id:yt(e),type:"range",disabled:h,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(u$,{numberOFDecimalsPlaces:m,max:a},p?t.toFixed(m):"--"," / ",a))},f$=F.label({display:"flex"}),h$=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),m$=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var f;let s=v=>{r(v.target.value)},c=!!((f=i==null?void 0:i.table)!=null&&f.readonly),[d,p]=l.useState(!1),m=l.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return y.createElement(kn,{variant:"outline",size:"medium",disabled:c,id:ms(e),onClick:m},"Set string");let h=typeof t=="string";return y.createElement(f$,null,y.createElement(bi.Textarea,{id:yt(e),maxLength:o,onChange:s,disabled:c,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:h?null:"error",name:e,value:h?t:"",onFocus:n,onBlur:a}),o&&y.createElement(h$,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},g$=F(bi.Input)({padding:10});function v$(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var y$=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var c;let o=l.useRef(null),i=(c=a==null?void 0:a.control)==null?void 0:c.readOnly;function s(d){if(!d.target.files)return;let p=Array.from(d.target.files).map(m=>URL.createObjectURL(m));e(p),v$(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(g$,{ref:o,id:yt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},b$=l.lazy(()=>K1(()=>import("./Color-F6OSRLHC-RiHXmkRP.js"),__vite__mapDeps([11,2,3,1,4,5,6,7,8,9,10]),import.meta.url)),w$=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(b$,{...e})),E$={array:$4,object:$4,boolean:hP,color:w$,date:wP,number:CP,check:$n,"inline-check":$n,radio:$n,"inline-radio":$n,select:$n,"multi-select":$n,range:p$,text:m$,file:y$},N4=()=>y.createElement(y.Fragment,null,"-"),x$=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;let{key:a,control:o}=e,[i,s]=l.useState(!1),[c,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let p=l.useCallback(w=>(d({value:w}),r({[a]:w}),w),[r,a]),m=l.useCallback(()=>s(!1),[]),h=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let w=(o==null?void 0:o.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&w?y.createElement(ia,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement(N4,null)}let f={name:a,argType:e,value:c.value,onChange:p,onBlur:m,onFocus:h},v=E$[o.type]||N4;return y.createElement(v,{...f,...o,controlType:o.type})},D$=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Or({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),C$=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:y.createElement(y.Fragment,null,y.createElement(D$,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>y.createElement("tr",{key:o.name},y.createElement("td",null,y.createElement("code",null,o.name)),y.createElement("td",null,o.description))),a&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,e.returns.description)))))},S$=J1(M9()),q1=8,H4=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),k$=F.span(Or,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),A$=F.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),F$=F.div(Or,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),_$=F.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),R$=F(UL)({marginLeft:4}),I$=F(O9)({marginLeft:4}),B$=()=>y.createElement("span",null,"-"),Sx=({text:e,simple:t})=>y.createElement(k$,{simple:t},e),T$=(0,S$.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),z$=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return aD(t)},j4=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,q1)),r.map(n=>y.createElement(Sx,{key:n,text:n===""?'""':n}))},L$=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let c=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(c))return y.createElement(Sx,{text:c});let d=z$(c),p=d.length;return p>q1?y.createElement(H4,{isExpanded:i},j4(d,i),y.createElement(A$,{onClick:()=>s(!i)},i?"Show less...":`Show ${p-q1} more...`)):y.createElement(H4,null,j4(d))}return y.createElement(Bz,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(_$,{width:T$(n)},y.createElement(Vf,{language:"jsx",format:!1},n))},y.createElement(F$,{className:"sbdocs-expandable"},y.createElement("span",null,c),a?y.createElement(R$,null):y.createElement(I$,null)))},J0=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(B$,null):y.createElement(L$,{value:e,initialExpandedArgs:t}),O$=F.span({fontWeight:"bold"}),M$=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),P$=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Or({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),$$=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?oe(.1,e.color.defaultText):oe(.2,e.color.defaultText),marginTop:t?4:0})),N$=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?oe(.1,e.color.defaultText):oe(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),H$=F.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),j$=e=>e&&{summary:typeof e=="string"?e:e.name},Qi=e=>{var g;let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:c,description:d}=n,p=n.table||{},m=p.type||j$(n.type),h=p.defaultValue||n.defaultValue,f=(g=n.type)==null?void 0:g.required,v=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(H$,{expandable:i},y.createElement(O$,null,c),f?y.createElement(M$,{title:"Required"},"*"):null),o?null:y.createElement("td",null,v&&y.createElement(P$,null,y.createElement(px,null,d)),p.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(N$,{hasDescription:v},y.createElement(J0,{value:m,initialExpandedArgs:s})),y.createElement(C$,{tags:p.jsDocTags})):y.createElement($$,{hasDescription:v},y.createElement(J0,{value:m,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(J0,{value:h,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(x$,{...e,isHovered:t})):null)},V$=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),U$=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),q$=F.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),W$=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(V$,{inAddonPanel:e},y.createElement(_9,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:y.createElement(U$,null,e&&y.createElement(y.Fragment,null,y.createElement(ia,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(PL,null)," Watch 5m video"),y.createElement(q$,null),y.createElement(ia,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(L1,null)," Read docs")),!e&&y.createElement(ia,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(L1,null)," Learn how to set that up"))}))},G$=F(jL)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?oe(.25,e.color.defaultText):oe(.3,e.color.defaultText),border:"none",display:"inline-block"})),Y$=F(VL)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?oe(.25,e.color.defaultText):oe(.3,e.color.defaultText),border:"none",display:"inline-block"})),K$=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),J$=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Z$=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),X$=F.td(()=>({position:"relative"})),Q$=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Jr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),V4=F.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),Z0=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?Z$:J$,c=(r==null?void 0:r.length)||0,d=e==="subsection"?`${c} item${c!==1?"s":""}`:"",p=`${o?"Hide":"Show"} ${e==="subsection"?c:t} item${c!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement(Q$,{title:p},y.createElement(s,{colSpan:1},y.createElement(V4,{onClick:m=>i(!o),tabIndex:0},p),y.createElement(K$,null,o?y.createElement(G$,null):y.createElement(Y$,null),t)),y.createElement(X$,{colSpan:a-1},y.createElement(V4,{onClick:m=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},el=F.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ae=F.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),me=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Fe=[2,4,2,2],eN=()=>y.createElement(y.Fragment,null,y.createElement(el,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(el,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(el,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(el,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"})))),tN=F.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?oe(.25,e.color.defaultText):oe(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),rN=F(un)(({theme:e})=>({margin:"-4px -12px -4px 0"})),nN=F.span({display:"flex",justifyContent:"space-between"}),aN={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},oN=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:c}=(i==null?void 0:i.table)||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!c)d.ungrouped.push({key:o,...i});else{let p=d.subsections[c]||[];p.push({key:o,...i}),d.subsections[c]=p}r.sections[s]=d}else if(c){let d=r.ungroupedSubsections[c]||[];d.push({key:o,...i}),r.ungroupedSubsections[c]=d}else r.ungrouped.push({key:o,...i})});let n=aN[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},iN=(e,t,r)=>{try{return vS(e,t,r)}catch(n){return GL.warn(n.message),!1}},W1=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:D}=e;return y.createElement(j9,null,D," ",y.createElement(ia,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(L1,null)," Read the docs"))}if(s)return y.createElement(eN,null);let{rows:c,args:d,globals:p}="rows"in e&&e,m=oN(oD(c||{},D=>{var E;return!((E=D==null?void 0:D.table)!=null&&E.disable)&&iN(D,d||{},p||{})}),i),h=m.ungrouped.length===0,f=Object.entries(m.sections).length===0,v=Object.entries(m.ungroupedSubsections).length===0;if(h&&f&&v)return y.createElement(W$,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let w=Object.keys(m.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(q8,null,y.createElement(tN,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(nN,null,"Control"," ",!s&&r&&y.createElement(rN,{onClick:()=>r(),title:"Reset controls"},y.createElement(qL,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},m.ungrouped.map(D=>y.createElement(Qi,{key:D.key,row:D,arg:d&&d[D.key],...x})),Object.entries(m.ungroupedSubsections).map(([D,E])=>y.createElement(Z0,{key:D,label:D,level:"subsection",colSpan:g},E.map(b=>y.createElement(Qi,{key:b.key,row:b,arg:d&&d[b.key],expandable:w,...x})))),Object.entries(m.sections).map(([D,E])=>y.createElement(Z0,{key:D,label:D,level:"section",colSpan:g},E.ungrouped.map(b=>y.createElement(Qi,{key:b.key,row:b,arg:d&&d[b.key],...x})),Object.entries(E.subsections).map(([b,C])=>y.createElement(Z0,{key:b,label:b,level:"subsection",colSpan:g},C.map(S=>y.createElement(Qi,{key:S.key,row:S,arg:d&&d[S.key],expandable:w,...x})))))))))},lN=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(W1,{...r[0][1],...t}):y.createElement(hL,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,c="div",d=a===0?t:{sort:t.sort};return y.createElement(c,{key:s,id:s,title:o},({active:p})=>p?y.createElement(W1,{key:`prop_table_${o}`,...i,...d}):null)}))};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(se,({theme:e})=>({...mu(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:e.base==="light"?oe(.2,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...mu(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));F.div(({theme:e})=>({...mu(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});F.div({display:"flex",flexFlow:"row wrap"});var sN=e=>`anchor--${e}`,uN=({storyId:e,children:t})=>y.createElement("div",{id:sN(e),className:"sb-anchor"},t);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=l.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Kt=globalThis?globalThis.__DOCS_CONTEXT__:l.createContext(null),An=(e,t)=>l.useContext(Kt).resolveOf(e,t),cN=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),dN=e=>{if(e)return typeof e=="string"?e.includes("-")?cN(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function pN(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var fN=Object.create,kx=Object.defineProperty,hN=Object.getOwnPropertyDescriptor,Ax=Object.getOwnPropertyNames,mN=Object.getPrototypeOf,gN=Object.prototype.hasOwnProperty,tt=(e,t)=>function(){return t||(0,e[Ax(e)[0]])((t={exports:{}}).exports,t),t.exports},vN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ax(t))!gN.call(e,a)&&a!==r&&kx(e,a,{get:()=>t[a],enumerable:!(n=hN(t,a))||n.enumerable});return e},oh=(e,t,r)=>(r=e!=null?fN(mN(e)):{},vN(!e||!e.__esModule?kx(r,"default",{value:e,enumerable:!0}):r,e)),yN=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],bN=["detail"];function wN(e){let t=yN.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&bN.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var EN=J1(M9(),1),Fx=tt({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0}}}),_x=tt({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Fx();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),xN=tt({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,a=Object.prototype.toString,o="[object Function]";t.exports=function(i){var s=this;if(typeof s!="function"||a.call(s)!==o)throw new TypeError(r+s);for(var c=n.call(arguments,1),d,p=function(){if(this instanceof d){var g=s.apply(this,c.concat(n.call(arguments)));return Object(g)===g?g:this}else return s.apply(i,c.concat(n.call(arguments)))},m=Math.max(0,s.length-c.length),h=[],f=0;f"u"?r:m(Uint8Array),v={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?m([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?m(m([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!p?r:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!p?r:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?m(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":d,"%TypedArray%":f,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},g=function z(L){var M;if(L==="%AsyncFunction%")M=i("async function () {}");else if(L==="%GeneratorFunction%")M=i("function* () {}");else if(L==="%AsyncGeneratorFunction%")M=i("async function* () {}");else if(L==="%AsyncGenerator%"){var O=z("%AsyncGeneratorFunction%");O&&(M=O.prototype)}else if(L==="%AsyncIteratorPrototype%"){var P=z("%AsyncGenerator%");P&&(M=m(P.prototype))}return v[L]=M,M},w={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=ih(),D=DN(),E=x.call(Function.call,Array.prototype.concat),b=x.call(Function.apply,Array.prototype.splice),C=x.call(Function.call,String.prototype.replace),S=x.call(Function.call,String.prototype.slice),k=x.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,I=function(z){var L=S(z,0,1),M=S(z,-1);if(L==="%"&&M!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&L!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var O=[];return C(z,A,function(P,j,U,V){O[O.length]=U?C(V,_,"$1"):j||P}),O},B=function(z,L){var M=z,O;if(D(w,M)&&(O=w[M],M="%"+O[0]+"%"),D(v,M)){var P=v[M];if(P===h&&(P=g(M)),typeof P>"u"&&!L)throw new o("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:O,name:M,value:P}}throw new n("intrinsic "+z+" does not exist!")};t.exports=function(z,L){if(typeof z!="string"||z.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof L!="boolean")throw new o('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,z)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=I(z),O=M.length>0?M[0]:"",P=B("%"+O+"%",L),j=P.name,U=P.value,V=!1,G=P.alias;G&&(O=G[0],b(M,E([0,1],G)));for(var Q=1,ne=!0;Q=M.length){var K=s(U,J);ne=!!K,ne&&"get"in K&&!("originalValue"in K.get)?U=K.get:U=U[J]}else ne=D(U,J),U=U[J];ne&&!V&&(v[j]=U)}}return U}}}),CN=tt({"node_modules/call-bind/index.js"(e,t){var r=ih(),n=Rx(),a=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,a),s=n("%Object.getOwnPropertyDescriptor%",!0),c=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}t.exports=function(m){var h=i(r,o,arguments);if(s&&c){var f=s(h,"length");f.configurable&&c(h,"length",{value:1+d(0,m.length-(arguments.length-1))})}return h};var p=function(){return i(r,a,arguments)};c?c(t.exports,"apply",{value:p}):t.exports.apply=p}}),SN=tt({"node_modules/call-bind/callBound.js"(e,t){var r=Rx(),n=CN(),a=n(r("String.prototype.indexOf"));t.exports=function(o,i){var s=r(o,!!i);return typeof s=="function"&&a(o,".prototype.")>-1?n(s):s}}}),kN=tt({"node_modules/has-tostringtag/shams.js"(e,t){var r=Fx();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),AN=tt({"node_modules/is-regex/index.js"(e,t){var r=SN(),n=kN()(),a,o,i,s;n&&(a=r("Object.prototype.hasOwnProperty"),o=r("RegExp.prototype.exec"),i={},c=function(){throw i},s={toString:c,valueOf:c},typeof Symbol.toPrimitive=="symbol"&&(s[Symbol.toPrimitive]=c));var c,d=r("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor,m="[object RegExp]";t.exports=n?function(h){if(!h||typeof h!="object")return!1;var f=p(h,"lastIndex"),v=f&&a(f,"value");if(!v)return!1;try{o(h,s)}catch(g){return g===i}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:d(h)===m}}}),FN=tt({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var o=r.call(a);return o==="[object Function]"||typeof a=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),_N=tt({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=_x()();n?(a=Symbol.prototype.toString,o=/^Symbol\(.*\)$/,i=function(s){return typeof s.valueOf()!="symbol"?!1:o.test(a.call(s))},t.exports=function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return i(s)}catch{return!1}}):t.exports=function(s){return!1};var a,o,i}}),RN=oh(AN()),IN=oh(FN()),BN=oh(_N());function TN(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var zN=typeof global=="object"&&global&&global.Object===Object&&global,LN=zN,ON=typeof self=="object"&&self&&self.Object===Object&&self,MN=LN||ON||Function("return this")(),lh=MN,PN=lh.Symbol,ka=PN,Ix=Object.prototype,$N=Ix.hasOwnProperty,NN=Ix.toString,oo=ka?ka.toStringTag:void 0;function HN(e){var t=$N.call(e,oo),r=e[oo];try{e[oo]=void 0;var n=!0}catch{}var a=NN.call(e);return n&&(t?e[oo]=r:delete e[oo]),a}var jN=HN,VN=Object.prototype,UN=VN.toString;function qN(e){return UN.call(e)}var WN=qN,GN="[object Null]",YN="[object Undefined]",U4=ka?ka.toStringTag:void 0;function KN(e){return e==null?e===void 0?YN:GN:U4&&U4 in Object(e)?jN(e):WN(e)}var JN=KN,q4=ka?ka.prototype:void 0;q4&&q4.toString;function ZN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bx=ZN,XN="[object AsyncFunction]",QN="[object Function]",eH="[object GeneratorFunction]",tH="[object Proxy]";function rH(e){if(!Bx(e))return!1;var t=JN(e);return t==QN||t==eH||t==XN||t==tH}var nH=rH,aH=lh["__core-js_shared__"],X0=aH,W4=function(){var e=/[^.]+$/.exec(X0&&X0.keys&&X0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function oH(e){return!!W4&&W4 in e}var iH=oH,lH=Function.prototype,sH=lH.toString;function uH(e){if(e!=null){try{return sH.call(e)}catch{}try{return e+""}catch{}}return""}var cH=uH,dH=/[\\^$.*+?()[\]{}|]/g,pH=/^\[object .+?Constructor\]$/,fH=Function.prototype,hH=Object.prototype,mH=fH.toString,gH=hH.hasOwnProperty,vH=RegExp("^"+mH.call(gH).replace(dH,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yH(e){if(!Bx(e)||iH(e))return!1;var t=nH(e)?vH:pH;return t.test(cH(e))}var bH=yH;function wH(e,t){return e==null?void 0:e[t]}var EH=wH;function xH(e,t){var r=EH(e,t);return bH(r)?r:void 0}var Tx=xH;function DH(e,t){return e===t||e!==e&&t!==t}var CH=DH,SH=Tx(Object,"create"),Ko=SH;function kH(){this.__data__=Ko?Ko(null):{},this.size=0}var AH=kH;function FH(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _H=FH,RH="__lodash_hash_undefined__",IH=Object.prototype,BH=IH.hasOwnProperty;function TH(e){var t=this.__data__;if(Ko){var r=t[e];return r===RH?void 0:r}return BH.call(t,e)?t[e]:void 0}var zH=TH,LH=Object.prototype,OH=LH.hasOwnProperty;function MH(e){var t=this.__data__;return Ko?t[e]!==void 0:OH.call(t,e)}var PH=MH,$H="__lodash_hash_undefined__";function NH(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ko&&t===void 0?$H:t,this}var HH=NH;function Oa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var XH=ZH;function QH(e,t){var r=this.__data__,n=yu(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ej=QH;function Ma(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,a=!1,o="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;iSj(e).replace(/\n\s*/g,"").trim()),Aj=function(e,t){let r=t.slice(0,t.indexOf("{")),n=t.slice(t.indexOf("{"));if(r.includes("=>")||r.includes("function"))return t;let a=r;return a=a.replace(e,"function"),a+n},Fj=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function Lx(e){if(!Cj(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=wN(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var _j=function(e){let t,r,n,a;return function(o,i){try{if(o==="")return a=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),a.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===-1/0?"_-Infinity_":i===1/0?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return Fj.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,RN.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,IN.default)(i)){if(!e.allowFunction)return;let{name:d}=i,p=i.toString();return p.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${d}|${(()=>{}).toString()}`:`_function_${d}|${kj(Aj(o,p))}`}if((0,BN.default)(i)){if(!e.allowSymbol)return;let d=Symbol.keyFor(i);return d!==void 0?`_gsymbol_${d}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(a)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i.constructor&&i.constructor.name&&i.constructor.name!=="Object"&&!Array.isArray(i)&&!e.allowClass)return;let c=t.get(i);if(!c){let d=Array.isArray(i)?i:Lx(i);if(i.constructor&&i.constructor.name&&i.constructor.name!=="Object"&&!Array.isArray(i)&&e.allowClass)try{Object.assign(d,{"_constructor-name_":i.constructor.name})}catch{}return a.push(o),n.unshift(d),t.set(i,JSON.stringify(a)),i!==d&&r.set(i,d),d}return`_duplicate_${c}`}catch{return}}},Rj={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},Ij=(e,t={})=>{let r={...Rj,...t};return JSON.stringify(Lx(e),_j(r),t.space)};function Ox(e){return Ij(e,{allowFunction:!1})}var Mx=l.createContext({sources:{}}),Px="--unknown--",Bj=({children:e,channel:t})=>{let[r,n]=l.useState({});return l.useEffect(()=>{let a=(o,i=null,s=!1)=>{let{id:c,args:d=void 0,source:p,format:m}=typeof o=="string"?{id:o,source:i,format:s}:o,h=d?Ox(d):Px;n(f=>({...f,[c]:{...f[c],[h]:{code:p,format:m}}}))};return t.on(mh,a),()=>t.off(mh,a)},[]),y.createElement(Mx.Provider,{value:{sources:r}},e)},Tj=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[Ox(t)])||(a==null?void 0:a[Px])||{code:""}},zj=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var c,d;let{__isArgsStory:a}=t.parameters,o=((c=t.parameters.docs)==null?void 0:c.source)||{},i=r||o.type||xu.AUTO;if(o.code!==void 0)return o.code;let s=i===xu.DYNAMIC||i===xu.AUTO&&e&&a?e:o.originalSource||"";return((d=n??o.transform)==null?void 0:d(s,t))||s},Lj=(e,t,r)=>{var f,v,g,w;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let o=((v=(f=n==null?void 0:n.parameters)==null?void 0:f.docs)==null?void 0:v.source)||{},{code:i}=e,s=e.format??o.format,c=e.language??o.language??"jsx",d=e.dark??o.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:s,language:c,dark:d};let p=t.getStoryContext(n),m=e.__forceInitialArgs?p.initialArgs:p.unmappedArgs,h=Tj(n.id,m,r);return s=h.format??((w=(g=n.parameters.docs)==null?void 0:g.source)==null?void 0:w.format)??!1,{code:zj({snippet:h.code,storyContext:{...p,args:m},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:c,dark:d}};function Oj(e,t){let r=Mj([e],t);return r&&r[0]}function Mj(e,t){let[r,n]=l.useState({});return l.useEffect(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var Pj=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},$j=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,o=a.story||{};if(a.disable)return null;if(e.inline??o.inline??!1){let s=e.height??o.height,c=e.autoplay??o.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:c,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??o.height??o.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},Nj=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(Kt),r=Pj(e,t),n=Oj(r,t);if(!n)return y.createElement(q9,null);let a=$j(e,n,t);return a?y.createElement(ZO,{...a}):null},Hj=e=>{var h,f,v,g,w,x,D,E,b,C;let t=l.useContext(Kt),r=l.useContext(Mx),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:o}=An(n||"story",["story"]),i=Lj({...a,...n&&{of:n}},t,r),s=e.layout??o.parameters.layout??((f=(h=o.parameters.docs)==null?void 0:h.canvas)==null?void 0:f.layout)??"padded",c=e.withToolbar??((g=(v=o.parameters.docs)==null?void 0:v.canvas)==null?void 0:g.withToolbar)??!1,d=e.additionalActions??((x=(w=o.parameters.docs)==null?void 0:w.canvas)==null?void 0:x.additionalActions),p=e.sourceState??((E=(D=o.parameters.docs)==null?void 0:D.canvas)==null?void 0:E.sourceState)??"hidden",m=e.className??((C=(b=o.parameters.docs)==null?void 0:b.canvas)==null?void 0:C.className);return y.createElement(W9,{withSource:p==="none"?void 0:i,isExpanded:p==="shown",withToolbar:c,additionalActions:d,className:m,layout:s},y.createElement(Nj,{of:n||o.moduleExport,meta:e.meta,...e.story}))},jj=(e,t)=>{let r=Vj(e,t);if(!r)throw new Error("No result when story was defined");return r},Vj=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,o]=l.useState(r.args);l.useEffect(()=>{let c=d=>{d.storyId===n&&o(d.args)};return t.channel.on(w4,c),()=>t.channel.off(w4,c)},[n,t.channel]);let i=l.useCallback(c=>t.channel.emit(YL,{storyId:n,updatedArgs:c}),[n,t.channel]),s=l.useCallback(c=>t.channel.emit(KL,{storyId:n,argNames:c}),[n,t.channel]);return e&&[a,i,s]},Uj=(e,t)=>{let r=t.getStoryContext(e),[n,a]=l.useState(r.globals);return l.useEffect(()=>{let o=i=>{a(i.globals)};return t.channel.on(E4,o),()=>t.channel.off(E4,o)},[t.channel]),[n]};function qj(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var Wj=e=>{var b;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=l.useContext(Kt),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:s}=n,c=((b=a.docs)==null?void 0:b.controls)||{},d=e.include??c.include,p=e.exclude??c.exclude,m=e.sort??c.sort,[h,f,v]=jj(n,r),[g]=Uj(n,r),w=b4(o,d,p);if(!(s&&Object.keys(s).length>0))return Object.keys(w).length>0||Object.keys(h).length>0?y.createElement(W1,{rows:w,sort:m,args:h,globals:g,updateArgs:f,resetArgs:v}):null;let x=dN(i),D=Object.fromEntries(Object.entries(s).map(([C,S])=>[C,{rows:b4(qj(S,a),d,p),sort:m}])),E={[x]:{rows:w,sort:m},...D};return y.createElement(lN,{tabs:E,sort:m,args:h,globals:g,updateArgs:f,resetArgs:v})},{document:$x}=globalThis,Nx=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return y.createElement(W8,null,t);let n=e&&e.split("-");return y.createElement(V9,{language:n&&n[1]||"text",format:!1,code:t,...r})};function uh(e,t){e.channel.emit(JL,t)}var G1=IL.a,Gj=({hash:e,children:t})=>{let r=l.useContext(Kt);return y.createElement(G1,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);$x.getElementById(a)&&uh(r,e)}},t)},Hx=e=>{let{href:t,target:r,children:n,...a}=e,o=l.useContext(Kt);return!t||r==="_blank"||/^https?:\/\//.test(t)?y.createElement(G1,{...e}):t.startsWith("#")?y.createElement(Gj,{hash:t},n):y.createElement(G1,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),uh(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},jx=["h1","h2","h3","h4","h5","h6"],Yj=jx.reduce((e,t)=>({...e,[t]:F(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),Kj=F.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),Jj=({as:e,id:t,children:r,...n})=>{let a=l.useContext(Kt),o=Yj[e],i=`#${t}`;return y.createElement(o,{id:t,...n},y.createElement(Kj,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{$x.getElementById(t)&&uh(a,i)}},y.createElement(HL,null)),r)},ch=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return y.createElement(Jj,{as:t,id:r,...a},n);let o=t,{as:i,...s}=e;return y.createElement(o,{...le(s,t)})},Vx=jx.reduce((e,t)=>({...e,[t]:r=>y.createElement(ch,{as:t,...r})}),{}),Zj=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(Kx`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' diff --git a/assets/EmailButton.stories-Dv6QOq1H.js b/assets/EmailButton.stories-D-4EaWBW.js similarity index 97% rename from assets/EmailButton.stories-Dv6QOq1H.js rename to assets/EmailButton.stories-D-4EaWBW.js index 2e72d0c3..b7cce90d 100644 --- a/assets/EmailButton.stories-Dv6QOq1H.js +++ b/assets/EmailButton.stories-D-4EaWBW.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{B as m}from"./Button-_M7GwRMx.js";import{R as p}from"./Row-D-wvv0CV.js";import{u as d}from"./useOpenMailUrl-Blrf_PL9.js";import{a as c}from"./accessibleText-gmNPjmn1.js";import{P as g}from"./index-DSI0shHu.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-kbHxBZ_W.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-BP1Ij_Cs.js";import"./config-BZnShabN.js";import"./Icon-X_MsqpOP.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-Ce74jbsy.js";const v=e=>g.OS==="ios"?e.replaceAll("."," punt ").replaceAll("-"," min "):e,l=({email:e,subject:n,...u})=>{const s=d();return r.jsx(p,{children:r.jsx(m,{...u,accessibilityLabel:c("Stuur een e-mail naar",v(e)),ellipsizeMode:"tail",iconName:"email",label:e,onPress:()=>{s(e,n)}})})};try{l.displayName="EmailButton",l.__docgenInfo={description:"",displayName:"EmailButton",props:{email:{defaultValue:null,description:"",name:"email",required:!0,type:{name:"string"}},subject:{defaultValue:null,description:"",name:"subject",required:!1,type:{name:"string"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},ellipsizeMode:{defaultValue:null,description:"",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"head"'},{value:'"tail"'},{value:'"middle"'},{value:'"clip"'}]}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}}}}}catch{}const $={component:l,argTypes:{onPress:{action:"onPress"}}},a={args:{email:"ontwikkelingzeeburgereiland@amsterdam.nl",subject:"Vraag over zeeburg."}};var t,i,o;a.parameters={...a.parameters,docs:{...(t=a.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{B as m}from"./Button-BgT1eW_K.js";import{R as p}from"./Row-D-wvv0CV.js";import{u as d}from"./useOpenMailUrl-Blrf_PL9.js";import{a as c}from"./accessibleText-gmNPjmn1.js";import{P as g}from"./index-DSI0shHu.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-kbHxBZ_W.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-BP1Ij_Cs.js";import"./config-BZnShabN.js";import"./Icon-DbPHcDCx.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-Ce74jbsy.js";const v=e=>g.OS==="ios"?e.replaceAll("."," punt ").replaceAll("-"," min "):e,l=({email:e,subject:n,...u})=>{const s=d();return r.jsx(p,{children:r.jsx(m,{...u,accessibilityLabel:c("Stuur een e-mail naar",v(e)),ellipsizeMode:"tail",iconName:"email",label:e,onPress:()=>{s(e,n)}})})};try{l.displayName="EmailButton",l.__docgenInfo={description:"",displayName:"EmailButton",props:{email:{defaultValue:null,description:"",name:"email",required:!0,type:{name:"string"}},subject:{defaultValue:null,description:"",name:"subject",required:!1,type:{name:"string"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},ellipsizeMode:{defaultValue:null,description:"",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"head"'},{value:'"tail"'},{value:'"middle"'},{value:'"clip"'}]}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}}}}}catch{}const $={component:l,argTypes:{onPress:{action:"onPress"}}},a={args:{email:"ontwikkelingzeeburgereiland@amsterdam.nl",subject:"Vraag over zeeburg."}};var t,i,o;a.parameters={...a.parameters,docs:{...(t=a.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { email: 'ontwikkelingzeeburgereiland@amsterdam.nl', subject: 'Vraag over zeeburg.' diff --git a/assets/EmptyMessage.stories-BMTx-YEt.js b/assets/EmptyMessage.stories-uY5eBQy_.js similarity index 96% rename from assets/EmptyMessage.stories-BMTx-YEt.js rename to assets/EmptyMessage.stories-uY5eBQy_.js index 00a54dec..f535d385 100644 --- a/assets/EmptyMessage.stories-BMTx-YEt.js +++ b/assets/EmptyMessage.stories-uY5eBQy_.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{S as l}from"./SingleSelectable-BAFROorM.js";import{P as c}from"./Paragraph-ypvGdTJ3.js";import{T as d}from"./Title-DmDbCZFx.js";import{u}from"./useAccessibilityAnnounce-VJH9SmdL.js";import{D as g}from"./duration-A4BOymd5.js";import{a as f}from"./accessibleText-gmNPjmn1.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-kbHxBZ_W.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./useIsScreenReaderEnabled-A65pchNu.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./development-LhlsWDYu.js";import"./index-CDv7s-w8.js";const s=({showTitle:t=!0,testID:p,text:r})=>{const o=t?"Helaas …":"";return u(`${o} ${r}`,g.normal),a.jsxs(l,{accessibilityLabel:f(o,r),accessibilityLanguage:"nl-NL",testID:p,children:[!!t&&a.jsx(d,{level:"h3",text:o}),a.jsx(c,{children:r})]})};try{s.displayName="EmptyMessage",s.__docgenInfo={description:"",displayName:"EmptyMessage",props:{showTitle:{defaultValue:{value:"true"},description:"",name:"showTitle",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const H={component:s},e={args:{text:"We hebben geen werkzaamheden gevonden voor dit adres."}};var i,m,n;e.parameters={...e.parameters,docs:{...(i=e.parameters)==null?void 0:i.docs,source:{originalSource:`{ +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{S as l}from"./SingleSelectable-BAFROorM.js";import{P as c}from"./Paragraph-4J4ihaTP.js";import{T as d}from"./Title-DyZpgX2c.js";import{u}from"./useAccessibilityAnnounce-VJH9SmdL.js";import{D as g}from"./duration-A4BOymd5.js";import{a as f}from"./accessibleText-gmNPjmn1.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-kbHxBZ_W.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./useIsScreenReaderEnabled-A65pchNu.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./development-LhlsWDYu.js";import"./index-CDv7s-w8.js";const s=({showTitle:t=!0,testID:p,text:r})=>{const o=t?"Helaas …":"";return u(`${o} ${r}`,g.normal),a.jsxs(l,{accessibilityLabel:f(o,r),accessibilityLanguage:"nl-NL",testID:p,children:[!!t&&a.jsx(d,{level:"h3",text:o}),a.jsx(c,{children:r})]})};try{s.displayName="EmptyMessage",s.__docgenInfo={description:"",displayName:"EmptyMessage",props:{showTitle:{defaultValue:{value:"true"},description:"",name:"showTitle",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const H={component:s},e={args:{text:"We hebben geen werkzaamheden gevonden voor dit adres."}};var i,m,n;e.parameters={...e.parameters,docs:{...(i=e.parameters)==null?void 0:i.docs,source:{originalSource:`{ args: { text: 'We hebben geen werkzaamheden gevonden voor dit adres.' } diff --git a/assets/FauxButton.stories-DyggrnHw.js b/assets/FauxButton.stories-BuCAOpHm.js similarity index 95% rename from assets/FauxButton.stories-DyggrnHw.js rename to assets/FauxButton.stories-BuCAOpHm.js index 49245c94..445caae9 100644 --- a/assets/FauxButton.stories-DyggrnHw.js +++ b/assets/FauxButton.stories-BuCAOpHm.js @@ -1 +1 @@ -import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{c as p}from"./config-BZnShabN.js";import{P as c}from"./Phrase-D4XuA9hP.js";import{V as m}from"./index-BP1Ij_Cs.js";import{s as u}from"./index-kbHxBZ_W.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./TextAncestorContext-Dg3XKfar.js";const e=({children:o,testID:i})=>r.jsx(m,{style:l.button,children:r.jsx(c,{testID:i,children:o})}),l=u.create({button:{minHeight:p.buttonHeight,flexDirection:"column",justifyContent:"center"}});try{e.displayName="FauxButton",e.__docgenInfo={description:"A faux button is not an actual button, but a helper component for a specific design pattern: when label and a button are horizontally aligned, this component can be used to align the baseline of the label text with the baseline of the button text.",displayName:"FauxButton",props:{testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const w={component:e,args:{children:"Hi!"},argTypes:{onPress:{action:"onPress"}}},t={};var n,a,s;t.parameters={...t.parameters,docs:{...(n=t.parameters)==null?void 0:n.docs,source:{originalSource:"{}",...(s=(a=t.parameters)==null?void 0:a.docs)==null?void 0:s.source}}};const H=["Default"];export{t as Default,H as __namedExportsOrder,w as default}; +import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{c as p}from"./config-BZnShabN.js";import{P as c}from"./Phrase-CZOdtc60.js";import{V as m}from"./index-BP1Ij_Cs.js";import{s as u}from"./index-kbHxBZ_W.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./TextAncestorContext-Dg3XKfar.js";const e=({children:o,testID:i})=>r.jsx(m,{style:l.button,children:r.jsx(c,{testID:i,children:o})}),l=u.create({button:{minHeight:p.buttonHeight,flexDirection:"column",justifyContent:"center"}});try{e.displayName="FauxButton",e.__docgenInfo={description:"A faux button is not an actual button, but a helper component for a specific design pattern: when label and a button are horizontally aligned, this component can be used to align the baseline of the label text with the baseline of the button text.",displayName:"FauxButton",props:{testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const w={component:e,args:{children:"Hi!"},argTypes:{onPress:{action:"onPress"}}},t={};var n,a,s;t.parameters={...t.parameters,docs:{...(n=t.parameters)==null?void 0:n.docs,source:{originalSource:"{}",...(s=(a=t.parameters)==null?void 0:a.docs)==null?void 0:s.source}}};const H=["Default"];export{t as Default,H as __namedExportsOrder,w as default}; diff --git a/assets/FollowButton.stories-CSmGgUAj.js b/assets/FollowButton.stories-Bv5dw7_T.js similarity index 97% rename from assets/FollowButton.stories-CSmGgUAj.js rename to assets/FollowButton.stories-Bv5dw7_T.js index edf80d0c..e9e850be 100644 --- a/assets/FollowButton.stories-CSmGgUAj.js +++ b/assets/FollowButton.stories-Bv5dw7_T.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{r as t}from"./index-mfbfsM12.js";import{B as n}from"./Button-_M7GwRMx.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./config-BZnShabN.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./Icon-X_MsqpOP.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";const l=({followed:o,onPress:e,...u})=>{const v=t.useCallback(()=>e(!1),[e]),m=t.useCallback(()=>e(!0),[e]);return o?r.jsx(n,{iconName:"check-mark",label:"Volgend",onPress:m,variant:"primary",...u}):r.jsx(n,{iconName:"enlarge",label:"Volgen",onPress:v,variant:"secondary",...u})};try{l.displayName="FollowButton",l.__docgenInfo={description:"",displayName:"FollowButton",props:{followed:{defaultValue:null,description:"",name:"followed",required:!0,type:{name:"boolean"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"(followed: boolean) => void"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},iconName:{defaultValue:null,description:"",name:"iconName",required:!1,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},ellipsizeMode:{defaultValue:null,description:"",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"head"'},{value:'"tail"'},{value:'"middle"'},{value:'"clip"'}]}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}}}}}catch{}const J={component:l,argTypes:{onPress:{action:"onPress"}}},a={args:{followed:!1}};var i,s,c;a.parameters={...a.parameters,docs:{...(i=a.parameters)==null?void 0:i.docs,source:{originalSource:`{ +import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{r as t}from"./index-mfbfsM12.js";import{B as n}from"./Button-BgT1eW_K.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./config-BZnShabN.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./Icon-DbPHcDCx.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";const l=({followed:o,onPress:e,...u})=>{const v=t.useCallback(()=>e(!1),[e]),m=t.useCallback(()=>e(!0),[e]);return o?r.jsx(n,{iconName:"check-mark",label:"Volgend",onPress:m,variant:"primary",...u}):r.jsx(n,{iconName:"enlarge",label:"Volgen",onPress:v,variant:"secondary",...u})};try{l.displayName="FollowButton",l.__docgenInfo={description:"",displayName:"FollowButton",props:{followed:{defaultValue:null,description:"",name:"followed",required:!0,type:{name:"boolean"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"(followed: boolean) => void"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},iconName:{defaultValue:null,description:"",name:"iconName",required:!1,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},ellipsizeMode:{defaultValue:null,description:"",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"head"'},{value:'"tail"'},{value:'"middle"'},{value:'"clip"'}]}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}}}}}catch{}const J={component:l,argTypes:{onPress:{action:"onPress"}}},a={args:{followed:!1}};var i,s,c;a.parameters={...a.parameters,docs:{...(i=a.parameters)==null?void 0:i.docs,source:{originalSource:`{ args: { followed: false } diff --git a/assets/HtmlContent-d1LdVFX3.js b/assets/HtmlContent-cfOAoYaH.js similarity index 99% rename from assets/HtmlContent-d1LdVFX3.js rename to assets/HtmlContent-cfOAoYaH.js index af58459b..1464217b 100644 --- a/assets/HtmlContent-d1LdVFX3.js +++ b/assets/HtmlContent-cfOAoYaH.js @@ -1,4 +1,4 @@ -import{j as Qe}from"./jsx-runtime-Bxcv0yjW.js";import{r as L,R as Sr}from"./index-mfbfsM12.js";import{c as I,a as st,g as ip}from"./_commonjsHelpers-BosuxZz1.js";import{r as ie,d as sp,b as cp,I as up}from"./useOpenUrl-BQFKyC8S.js";import{p as Go}from"./index-Dk74W0Oi.js";import{s as rl}from"./index-kbHxBZ_W.js";import{V as Mi}from"./index-BP1Ij_Cs.js";import{T as lp}from"./index-CAyeAlm6.js";import{C as dp}from"./Column-CFK5NdwL.js";import{R as fp}from"./Row-D-wvv0CV.js";import{L as pp}from"./ListItemMarker-DmJOL3FK.js";import{u as hp}from"./useIsScreenReaderEnabled-A65pchNu.js";import{u as gp}from"./useDeviceContext-Cm8FgCCV.js";import{u as Na}from"./useThemable-ua4U8LzO.js";import{P as mp}from"./index-DSI0shHu.js";var Oa=40,La=41,oo=39,Aa=34,qa=92,cr=47,Da=44,Ia=58,ao=42,vp=117,yp=85,_p=43,bp=/^[a-f0-9?-]+$/i,Sp=function(e){for(var t=[],r=e,n,o,i,a,c,l,d,p,v=0,h=r.charCodeAt(v),N=r.length,T=[{nodes:t}],M=0,E,D="",H="",k="";v=48&&l<=57)return!0;var d=a.charCodeAt(2);return l===r&&d>=48&&d<=57}return c===r?(l=a.charCodeAt(1),l>=48&&l<=57):c>=48&&c<=57}return ka=function(a){var c=0,l=a.length,d,p,v;if(l===0||!i(a))return!1;for(d=a.charCodeAt(c),(d===t||d===e)&&c++;c57));)c+=1;if(d=a.charCodeAt(c),p=a.charCodeAt(c+1),d===r&&p>=48&&p<=57)for(c+=2;c57));)c+=1;if(d=a.charCodeAt(c),p=a.charCodeAt(c+1),v=a.charCodeAt(c+2),(d===n||d===o)&&(p>=48&&p<=57||(p===t||p===e)&&v>=48&&v<=57))for(c+=p===t||p===e?3:2;c57));)c+=1;return{number:a.slice(0,c),unit:a.slice(c)}},ka}var Cp=Sp,ol=wp,al=Pp;function Pt(e){return this instanceof Pt?(this.nodes=Cp(e),this):new Pt(e)}Pt.prototype.toString=function(){return Array.isArray(this.nodes)?al(this.nodes):""};Pt.prototype.walk=function(e,t){return ol(this.nodes,e,t),this};Pt.unit=xp();Pt.walk=ol;Pt.stringify=al;var $p=Pt,il={},Ei={},Qo={},Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});Sn.default=void 0;let sl;sl=null;var Tp=sl;Sn.default=Tp;Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=void 0;var fc=Ep(L);Mp(Sn);function Mp(e){return e&&e.__esModule?e:{default:e}}function cl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(cl=function(n){return n?r:t})(e)}function Ep(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=cl(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}const Rp=function(t){return fc.default.createElement(fc.Fragment,null,t.children)};var Np=Rp;Qo.default=Np;var Ie={},Ri={},Xo={},Yo={},Op={},Rr={},ke={};Object.defineProperty(ke,"__esModule",{value:!0});ke.default=ke.HTMLContentModel=void 0;let Oo;ke.HTMLContentModel=Oo;(function(e){e.block="block",e.textual="textual",e.mixed="mixed",e.none="none"})(Oo||(ke.HTMLContentModel=Oo={}));var Lp=Oo;ke.default=Lp;Object.defineProperty(Rr,"__esModule",{value:!0});Rr.default=void 0;var qt=Ap(ke);function Ap(e){return e&&e.__esModule?e:{default:e}}function nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qp=["textual","edits","anchor"],Dp=["tabular","grouping","sectioning"];class fn{constructor({tagName:t,contentModel:r,isOpaque:n,mixedUAStyles:o,isVoid:i,getUADerivedStyleFromAttributes:a,getMixedUAStyles:c,setMarkersForTNode:l,getReactNativeProps:d,reactNativeProps:p}){nt(this,"tagName",void 0),nt(this,"contentModel",void 0),nt(this,"isOpaque",void 0),nt(this,"isVoid",void 0),nt(this,"mixedUAStyles",void 0),nt(this,"reactNativeProps",void 0),nt(this,"getUADerivedStyleFromAttributes",void 0),nt(this,"getMixedUAStyles",void 0),nt(this,"getReactNativeProps",void 0),nt(this,"setMarkersForTNode",void 0),this.tagName=t,this.contentModel=r,this.isOpaque=n||!1,this.isVoid=i,this.mixedUAStyles=o,this.getUADerivedStyleFromAttributes=a,this.getMixedUAStyles=c,this.setMarkersForTNode=l,this.getReactNativeProps=d,this.reactNativeProps=p}static fromCustomModel(t){const{contentModel:r,tagName:n,isOpaque:o=!1,isVoid:i=!1,...a}=t;return new fn({tagName:n,contentModel:r,isOpaque:o,isVoid:i,...a})}static fromNativeModel(t){const{category:r,isOpaque:n,isVoid:o=!1,...i}=t,a=qp.indexOf(r)!==-1,c=a||Dp.indexOf(r)!==-1,l=r==="anchor"||r==="edits"?qt.default.mixed:a?qt.default.textual:c?qt.default.block:qt.default.none;return new fn({isVoid:o,contentModel:l,isOpaque:n??r==="embedded",...i})}isTranslatableBlock(){return this.contentModel===qt.default.block}isTranslatableTextual(){return this.contentModel===qt.default.textual||this.contentModel===qt.default.mixed}extend(t){const r=typeof t=="function"?t(this):t;return new fn({...this,...r})}}Rr.default=fn;var Nr={},Ye={},Xt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(Xt);var Q={},Yt=I&&I.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),pn=I&&I.__assign||function(){return pn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(Ni);Q.NodeWithChildren=Jo;var fl=function(e){Yt(t,e);function t(r){return e.call(this,de.ElementType.Root,r)||this}return t}(Jo);Q.Document=fl;var pl=function(e){Yt(t,e);function t(r,n,o,i){o===void 0&&(o=[]),i===void 0&&(i=r==="script"?de.ElementType.Script:r==="style"?de.ElementType.Style:de.ElementType.Tag);var a=e.call(this,i,o)||this;return a.name=r,a.attribs=n,a}return Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var o,i;return{name:n,value:r.attribs[n],namespace:(o=r["x-attribsNamespace"])===null||o===void 0?void 0:o[n],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[n]}})},enumerable:!1,configurable:!0}),t}(Jo);Q.Element=pl;function hl(e){return(0,de.isTag)(e)}Q.isTag=hl;function gl(e){return e.type===de.ElementType.CDATA}Q.isCDATA=gl;function ml(e){return e.type===de.ElementType.Text}Q.isText=ml;function vl(e){return e.type===de.ElementType.Comment}Q.isComment=vl;function yl(e){return e.type===de.ElementType.Directive}Q.isDirective=yl;function _l(e){return e.type===de.ElementType.Root}Q.isDocument=_l;function kp(e){return Object.prototype.hasOwnProperty.call(e,"children")}Q.hasChildren=kp;function Oi(e,t){t===void 0&&(t=!1);var r;if(ml(e))r=new ul(e.data);else if(vl(e))r=new ll(e.data);else if(hl(e)){var n=t?Fa(e.children):[],o=new pl(e.name,pn({},e.attribs),n);n.forEach(function(l){return l.parent=o}),e.namespace!=null&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=pn({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=pn({},e["x-attribsPrefix"])),r=o}else if(gl(e)){var n=t?Fa(e.children):[],i=new Jo(de.ElementType.CDATA,n);n.forEach(function(d){return d.parent=i}),r=i}else if(_l(e)){var n=t?Fa(e.children):[],a=new fl(n);n.forEach(function(d){return d.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else if(yl(e)){var c=new dl(e.name,e.data);e["x-name"]!=null&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),r=c}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}Q.cloneNode=Oi;function Fa(e){for(var t=e.map(function(n){return Oi(n,!0)}),r=1;r":null}},k=function(g){return function(S){return S.type===g?S.value:null}},F=function(g,S){return S===void 0&&(S=String),function($){if($.type!=="word")return null;var O=$.value.match(g);if(O===null)return null;var W=S(O[1]);return W}},z=H(function(V){return V.type==="space"}),Y=H(function(V){return V.type==="div"&&V.value==="/"}),oe=H(function(V){return V.type==="div"&&V.value===","}),ee=k("word"),_e=F(p),be=F(v),re=F(N,Number),te=F(T,Number),s=F(M),u=F(E,function(V){return V.toLowerCase()}),f=F(D),m=F(h),_=a,w=d,P=F(/^(none|underline|line-through)$/i),x=function(g){var S=g.expect(re);return g.hasTokens()&&(g.expect(Y),S/=g.expect(re)),{aspectRatio:S}},C=F(/^(solid|dashed|dotted)$/),U=1,R="black",X="solid",G=function(g){var S,$,O;if(g.matches(_e))return g.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};for(var W=0;W<3&&g.hasTokens();)W!==0&&g.expect(z),S===void 0&&g.matches(te,s)?S=g.lastValue:$===void 0&&g.matches(w)?$=g.lastValue:O===void 0&&g.matches(C)?O=g.lastValue:g.throw(),W+=1;return g.expectEmpty(),S===void 0&&(S=U),$===void 0&&($=R),O===void 0&&(O=X),{borderWidth:S,borderColor:$,borderStyle:O}},j=function(g){var S=g.types,$=S===void 0?[te,s,f]:S,O=g.directions,W=O===void 0?["Top","Right","Bottom","Left"]:O,Z=g.prefix,Ee=Z===void 0?"":Z,_t=g.suffix,Ea=_t===void 0?"":_t;return function(rt){var sr,At=[];for(At.push(rt.expect.apply(rt,$));At.length<4&&rt.hasTokens();)rt.expect(z),At.push(rt.expect.apply(rt,$));rt.expectEmpty();var Ra=At[0],ic=At[1],sc=ic===void 0?Ra:ic,cc=At[2],np=cc===void 0?Ra:cc,uc=At[3],op=uc===void 0?sc:uc,no=function(ap){return""+Ee+W[ap]+Ea};return sr={},sr[no(0)]=Ra,sr[no(1)]=sc,sr[no(2)]=np,sr[no(3)]=op,sr}},ue=function(g){var S=g.expect(te),$=g.matches(z)?g.expect(te):S;return g.expectEmpty(),{width:S,height:$}},se=function(g){var S,$,O,W;if(g.matches(_e))return g.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};for(var Z=!1;g.hasTokens();)Z&&g.expect(z),S===void 0&&g.matches(te,s)?(S=g.lastValue,g.expect(z),$=g.expect(te,s),g.saveRewindPoint(),g.matches(z)&&g.matches(te,s)?O=g.lastValue:g.rewind()):W===void 0&&g.matches(w)?W=g.lastValue:g.throw(),Z=!0;return S===void 0&&g.throw(),{offset:{width:S,height:$},radius:O!==void 0?O:0,color:W!==void 0?W:"black"}},ce=function(g){var S=se(g),$=S.offset,O=S.radius,W=S.color;return{shadowOffset:$,shadowRadius:O,shadowColor:W,shadowOpacity:1}},He=1,ge=1,Me=0,Le=function(g){var S,$,O;if(g.matches(_e))return g.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(g.saveRewindPoint(),g.matches(be)&&!g.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};g.rewind();for(var W=0;W<2&&g.hasTokens();)W!==0&&g.expect(z),S===void 0&&g.matches(re)?(S=g.lastValue,g.saveRewindPoint(),g.matches(z)&&g.matches(re)?$=g.lastValue:g.rewind()):O===void 0&&g.matches(te,s,f)?O=g.lastValue:O===void 0&&g.matches(be)?O="auto":g.throw(),W+=1;return g.expectEmpty(),S===void 0&&(S=He),$===void 0&&($=ge),O===void 0&&(O=Me),{flexGrow:S,flexShrink:$,flexBasis:O}},tt=F(/(nowrap|wrap|wrap-reverse)/),dt=F(/(row|row-reverse|column|column-reverse)/),Yr="nowrap",h9="row",g9=function(g){for(var S,$,O=0;O<2&&g.hasTokens();)O!==0&&g.expect(z),S===void 0&&g.matches(tt)?S=g.lastValue:$===void 0&&g.matches(dt)?$=g.lastValue:g.throw(),O+=1;return g.expectEmpty(),S===void 0&&(S=Yr),$===void 0&&($=h9),{flexWrap:S,flexDirection:$}},ec=function(g){var S;if(g.matches(_))S=g.lastValue;else for(S=g.expect(m);g.hasTokens();){g.expect(z);var $=g.expect(m);S+=" "+$}return g.expectEmpty(),{fontFamily:S}},m9=F(/^(normal)$/),v9=F(/^(italic)$/),y9=F(/^([1-9]00|bold)$/),_9=F(/^(small-caps)$/),b9="normal",S9="normal",w9=[],P9=function(g){for(var S,$,O,W,Z=0;Z<3&&g.hasTokens();){if(!g.matches(m9))if(S===void 0&&g.matches(v9))S=g.lastValue;else if($===void 0&&g.matches(y9))$=g.lastValue;else if(O===void 0&&g.matches(_9))O=[g.lastValue];else break;g.expect(z),Z+=1}var Ee=g.expect(te,s);g.matches(Y)&&(W=g.expect(te,s)),g.expect(z);var _t=ec(g),Ea=_t.fontFamily;S===void 0&&(S=b9),$===void 0&&($=S9),O===void 0&&(O=w9);var rt={fontStyle:S,fontWeight:$,fontVariant:O,fontSize:Ee,fontFamily:Ea};return W!==void 0&&(rt.lineHeight=W),rt},x9=function(g){for(var S=[g.expect(m)];g.hasTokens();)g.expect(z),S.push(g.expect(m));return{fontVariant:S}},C9=F(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),$9=F(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),T9=function(g){var S=g.expect(C9),$;return g.hasTokens()?(g.expect(z),$=g.expect($9)):$="stretch",g.expectEmpty(),{alignContent:S,justifyContent:$}},M9=F(/^(solid|double|dotted|dashed)$/),E9="none",R9="solid",N9="black",O9=function(g){for(var S,$,O,W=!1;g.hasTokens();){if(W&&g.expect(z),S===void 0&&g.matches(P)){var Z=[g.lastValue.toLowerCase()];g.saveRewindPoint(),Z[0]!=="none"&&g.matches(z)&&g.matches(P)?(Z.push(g.lastValue.toLowerCase()),Z.sort().reverse()):g.rewind(),S=Z.join(" ")}else $===void 0&&g.matches(M9)?$=g.lastValue:O===void 0&&g.matches(w)?O=g.lastValue:g.throw();W=!0}return{textDecorationLine:S!==void 0?S:E9,textDecorationColor:O!==void 0?O:N9,textDecorationStyle:$!==void 0?$:R9}},L9=function(g){for(var S=[],$=!1;g.hasTokens();)$&&g.expect(z),S.push(g.expect(P).toLowerCase()),$=!0;return S.sort().reverse(),{textDecorationLine:S.join(" ")}},A9=function(g){var S=se(g),$=S.offset,O=S.radius,W=S.color;return{textShadowOffset:$,textShadowRadius:O,textShadowColor:W}},Ca=function(g){return function(S){var $=S.expect(g);return S.expectEmpty(),$}},$a=Ca(re),tc=Ca(te),ir=Ca(u),Ta=function(g){return function(S,$){return function(O){var W,Z,Ee=O.expect(g),_t;if(O.hasTokens())O.expect(oe),_t=O.expect(g);else if($!==void 0)_t=$;else return Ee;return O.expectEmpty(),[(W={},W[S+"Y"]=_t,W),(Z={},Z[S+"X"]=Ee,Z)]}}},q9=Ta(re),D9=Ta(te),I9=Ta(u),k9={perspective:$a,scale:q9("scale"),scaleX:$a,scaleY:$a,translate:D9("translate",0),translateX:tc,translateY:tc,rotate:ir,rotateX:ir,rotateY:ir,rotateZ:ir,skewX:ir,skewY:ir,skew:I9("skew","0deg")},F9=function(g){for(var S=[],$=!1;g.hasTokens();){$&&g.expect(z);var O=g.expectFunction(),W=O.functionName,Z=k9[W](O);if(!Array.isArray(Z)){var Ee;Z=[(Ee={},Ee[W]=Z,Ee)]}S=Z.concat(S),$=!0}return{transform:S}},V9=function(g){return{backgroundColor:g.expect(w)}},z9=j({types:[w],prefix:"border",suffix:"Color"}),U9=j({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),B9=j({prefix:"border",suffix:"Width"}),W9=j({types:[te,s,f,be],prefix:"margin"}),H9=j({prefix:"padding"}),j9=function(g){return{fontWeight:g.expect(ee)}},G9=function(g){return{shadowOffset:ue(g)}},Q9=function(g){return{textShadowOffset:ue(g)}},rc={aspectRatio:x,background:V9,border:G,borderColor:z9,borderRadius:U9,borderWidth:B9,boxShadow:ce,flex:Le,flexFlow:g9,font:P9,fontFamily:ec,fontVariant:x9,fontWeight:j9,margin:W9,padding:H9,placeContent:T9,shadowOffset:G9,textShadow:A9,textShadowOffset:Q9,textDecoration:O9,textDecorationLine:L9,transform:F9},Ma="SYMBOL_MATCH",X9=function(){function V(S,$){this.index=0,this.nodes=S,this.functionName=$!=null?$.value:null,this.lastValue=null,this.rewindIndex=-1}var g=V.prototype;return g.hasTokens=function(){return this.index<=this.nodes.length-1},g[Ma]=function(){if(!this.hasTokens())return null;for(var S=this.nodes[this.index],$=0;$c[o][i][a])]);return n}static new(){return new Lo}}Pn.CSSProcessedProps=Lo;Object.defineProperty(wn,"__esModule",{value:!0});wn.CSSParseRun=void 0;var W5=Pn;function gc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class H5{constructor(t){gc(this,"validationMap",void 0),gc(this,"processedProps",void 0),this.validationMap=t,this.processedProps=new W5.CSSProcessedProps}exec(){return this.fillProcessedProps(),this.processedProps}}wn.CSSParseRun=H5;var mt={};Object.defineProperty(mt,"__esModule",{value:!0});mt.ShortMergeRequest=void 0;function j5(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class G5{constructor(t){j5(this,"properties",void 0),this.properties=t}forEach(t){this.entries().forEach(t)}map(t){return this.entries().map(t)}entries(){return this.properties==null?[]:Object.entries(this.properties)}}mt.ShortMergeRequest=G5;Object.defineProperty(r1,"__esModule",{value:!0});r1.CSSInlineParseRun=void 0;var Q5=qi,X5=wn,Y5=mt;function Z5(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class J5 extends X5.CSSParseRun{constructor(t,r){super(r),Z5(this,"rules",void 0),this.rules=this.parseInlineCSS(t),this.normalizeProp=this.normalizeProp.bind(this),this.reduceProps=this.reduceProps.bind(this)}parseInlineCSS(t){return t.split(";").map(r=>r.split(":")).reduce((r,n)=>n.length===2?[...r,[n[0].trim(),n[1].trim()]]:r,[])}normalizeProp(t,r=!1){const n=t[0],o=t[1],i=(0,Q5.getPropertyName)(n);if(!this.validationMap.shouldRegisterInlineProperty(i))return null;const c=this.validationMap.getValidatorForProperty(i).normalizeInlineCSSValue(o);if(c===null){if(r)throw new TypeError;return null}return[i,c]}reduceProps(t,r){if(!r)return t;const[n,o]=r;if(o instanceof Y5.ShortMergeRequest)try{return o.map(i=>this.normalizeProp(i,!0)).reduce(this.reduceProps,t)}catch{return t}return{...t,[n]:o}}fillProcessedProps(){const t=this.rules.map(r=>this.normalizeProp(r)).reduce(this.reduceProps,{});Object.keys(t).forEach(r=>{const n=t[r],o=this.validationMap.getValidatorForProperty(r),i=o.normalizeInlineCSSValue(n);this.processedProps.withProperty(r,i,o)})}}r1.CSSInlineParseRun=J5;var n1={},Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.lookupRecord=K5;function K5(e,t){return!!e[t]}Object.defineProperty(n1,"__esModule",{value:!0});n1.CSSNativeParseRun=void 0;var eh=wn,mc=Cn,th=mt;function rh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nh={borderBottomEndRadius:"block",borderBottomStartRadius:"block",borderEndColor:"block",borderEndWidth:"block",borderStartColor:"block",borderStartWidth:"block",borderTopEndRadius:"block",borderTopStartRadius:"block",end:"block",marginEnd:"block",marginStart:"block",paddingEnd:"block",paddingStart:"block",start:"block"},oh={elevation:"block",overflow:"block",overlayColor:"block",resizeMode:"block",rotation:"block",scaleX:"block",scaleY:"block",shadowColor:"block",shadowOffset:"block",shadowOpacity:"block",shadowRadius:"block",testID:"block",tintColor:"block",transformMatrix:"block",translateX:"block",translateY:"block"},ah={includeFontPadding:"text",textAlignVertical:"text",textShadowColor:"text",textShadowOffset:"text",textShadowRadius:"text",writingDirection:"text"},vc={...ah,...oh};class ih extends eh.CSSParseRun{constructor(t,r){super(r),rh(this,"declaration",void 0),this.declaration=t}fillProp(t,r){const n=this.validationMap.getValidatorForProperty(t);if(n){const o=n.normalizeNativeValue(r);o instanceof th.ShortMergeRequest?o.forEach(([i,a])=>{this.fillProp(i,a)}):this.processedProps.withProperty(t,o,n)}else(0,mc.lookupRecord)(vc,t)?this.processedProps.withProperty(t,r,{compatCategory:"native",displayCategory:vc[t],propagationCategory:"retain"}):(0,mc.lookupRecord)(nh,t)?console.warn(`Native style property "${t}" is a directional style property. These are not yet supported.`):console.warn(`Native style property "${t}" is not supported and has been ignored.`)}fillProcessedProps(){const t=this.declaration;for(const r of Object.keys(t))this.fillProp(r,this.declaration[r])}}n1.CSSNativeParseRun=ih;var o1={},Di={},a1={},Ze={},$n={};Object.defineProperty($n,"__esModule",{value:!0});$n.GenericCSSPropertyValidator=void 0;function Dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class sh{constructor({model:t,config:r,propertyName:n},o){Dt(this,"model",void 0),Dt(this,"config",void 0),Dt(this,"compatCategory",void 0),Dt(this,"propagationCategory",void 0),Dt(this,"displayCategory",void 0),Dt(this,"propertyName",void 0),Dt(this,"_isShorthand",void 0),this.model=t,this.config=r,this.compatCategory=t.translatable?"native":"web",this.propagationCategory=t.inheritable?"flow":"retain",this.displayCategory=t.display,this.propertyName=n,this._isShorthand=o}isShorthand(){return this._isShorthand}}$n.GenericCSSPropertyValidator=sh;Object.defineProperty(Ze,"__esModule",{value:!0});Ze.LongCSSPropertyValidator=void 0;var ch=$n;class uh extends ch.GenericCSSPropertyValidator{constructor(t){super(t,!1)}normalizeInlineCSSValue(t){return typeof t!="string"?t:this.normalizeRawInlineCSSValue(t)}normalizeNativeValue(t){return t}}Ze.LongCSSPropertyValidator=uh;var i1={};Object.defineProperty(i1,"__esModule",{value:!0});i1.default=lh;function lh(e){return e.replace(/["']/g,"").trim()}Object.defineProperty(a1,"__esModule",{value:!0});a1.LongFontFamilyPropertyValidator=void 0;var dh=Ze,fh=ph(i1);function ph(e){return e&&e.__esModule?e:{default:e}}const hh=/,\s*/;class gh extends dh.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=t.split(hh);for(const n of r){const o=(0,fh.default)(n),i=o.length&&this.config.isFontSupported(o);if(i)return typeof i=="string"?i:o}return null}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}a1.LongFontFamilyPropertyValidator=gh;var s1={};Object.defineProperty(s1,"__esModule",{value:!0});s1.LongFloatNumberCSSPropertyValidator=void 0;var mh=Ze;class vh extends mh.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=Number(t);return Number.isNaN(r)?null:r}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}s1.LongFloatNumberCSSPropertyValidator=vh;var c1={},Tn={},Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.LongSizeCSSPropertyValidator=void 0;var yh=Ze;class _h extends yh.LongCSSPropertyValidator{computeSize(t,r){switch(r){case"%":return`${t}%`;case"px":return t;case"cm":case"in":case"mm":case"pc":case"pt":return t*this.config.absoluteLengthUnitsMultiplicators[r];case"em":return this.computeEmSize(t);case"ex":return this.computeEmSize(t*.63);case"rem":return this.config.rootFontSize*t}return null}computeEmSize(t){return this.config.rootFontSize*t}splitValueAndUnit(t){const r=/^(\d*\.?\d*)\s*(cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)$/g.exec(t);return r===null?null:[Number(r[1]),r[2]]}normalizeRawInlineCSSValue(t){if(t==="0")return 0;if(t==="auto")return t;const r=this.splitValueAndUnit(t);return r?this.computeSize(r[0],r[1]):null}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}Ar.LongSizeCSSPropertyValidator=_h;Object.defineProperty(Tn,"__esModule",{value:!0});Tn.LongNonPercentSizeCSSPropertyValidator=void 0;var bh=Ar;class Sh extends bh.LongSizeCSSPropertyValidator{computeSize(t,r){return r==="%"?null:super.computeSize(t,r)}}Tn.LongNonPercentSizeCSSPropertyValidator=Sh;Object.defineProperty(c1,"__esModule",{value:!0});c1.LongBorderWidthCSSPropertyValidator=void 0;var wh=Cn,Ph=Tn;class xh extends Ph.LongNonPercentSizeCSSPropertyValidator{normalizeRawInlineCSSValue(t){return(0,wh.lookupRecord)(this.config.absoluteBorderWidthsPixelMap,t)?this.config.absoluteBorderWidthsPixelMap[t]:super.normalizeRawInlineCSSValue(t)}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}c1.LongBorderWidthCSSPropertyValidator=xh;var u1={};Object.defineProperty(u1,"__esModule",{value:!0});u1.LongFontSizeCSSValidator=void 0;var yc=Cn,Ch=Ar;class $h extends Ch.LongSizeCSSPropertyValidator{computeSize(t,r){return r==="%"?this.computeEmSize(t/100):super.computeSize(t,r)}normalizeRawInlineCSSValue(t){return(0,yc.lookupRecord)(this.config.absoluteFontSizesPixelMap,t)?this.config.absoluteFontSizesPixelMap[t]:(0,yc.lookupRecord)(this.config.relativeFontSizesCoefficientMap,t)?this.computeEmSize(this.config.relativeFontSizesCoefficientMap[t]):super.normalizeRawInlineCSSValue(t)}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}u1.LongFontSizeCSSValidator=$h;var l1={};Object.defineProperty(l1,"__esModule",{value:!0});l1.LongAspectRatioPropertyValidator=void 0;var Th=Ze;const Mh=/^(\d+)\/(\d+)$/;class Eh extends Th.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=Mh.exec(t);if(r){const o=Number(r[1])/Number(r[2]);return Number.isFinite(o)?o:null}const n=Number(t);return Number.isNaN(n)?null:n}normalizeNativeValue(t){return typeof t!="string"?t:this.normalizeRawInlineCSSValue(t)}}l1.LongAspectRatioPropertyValidator=Eh;var d1={};Object.defineProperty(d1,"__esModule",{value:!0});d1.LongEnumerationListCSSPropertyValidator=void 0;var Rh=Ze;function Nh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Oh=/\s+/;class Lh extends Rh.LongCSSPropertyValidator{constructor(t,r){super(t),Nh(this,"allowedList",void 0),this.allowedList=r}normalizeRawInlineCSSValue(t){const r=t.split(Oh),n=[];for(const o of r)this.allowedList.indexOf(o)!==-1&&n.push(o);return n.length>0?n:null}}d1.LongEnumerationListCSSPropertyValidator=Lh;var f1={},Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.LongEnumerationCSSPropertyValidator=void 0;var Ah=Ze;function qh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Dh extends Ah.LongCSSPropertyValidator{constructor(t,r){super(t),qh(this,"allowedList",void 0),this.allowedList=r}normalizeRawInlineCSSValue(t){return this.allowedList.indexOf(t)!==-1?t:null}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}Mn.LongEnumerationCSSPropertyValidator=Dh;Object.defineProperty(f1,"__esModule",{value:!0});f1.LongBorderStyleCSSPropertyValidator=void 0;var Ih=Mn;const kh=/\s+/;class Fh extends Ih.LongEnumerationCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=this.pickFirst(t);return r?super.normalizeRawInlineCSSValue(r):null}normalizeNativeValue(t){return this.pickFirst(t)}pickFirst(t){return t.split(kh)[0]||null}}f1.LongBorderStyleCSSPropertyValidator=Fh;var p1={},En={};Object.defineProperty(En,"__esModule",{value:!0});En.LongForgivingCSSPropertyValidator=void 0;var Vh=Ze;class zh extends Vh.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){return t}}En.LongForgivingCSSPropertyValidator=zh;Object.defineProperty(p1,"__esModule",{value:!0});p1.LongColorCSSPropertyValidator=void 0;var Uh=En;const Bh=/^(rgb|rgba|hsl|hsla)\([\d,%. ]+\)|[#]?\w+$/;class Wh extends Uh.LongForgivingCSSPropertyValidator{normalizeRawInlineCSSValue(t){return t.match(Bh)?t:null}}p1.LongColorCSSPropertyValidator=Wh;var h1={},Rn={},Jt={};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.ShortCSSPropertyValidator=void 0;var Hh=$n;class jh extends Hh.GenericCSSPropertyValidator{constructor(t){super(t,!0)}}Jt.ShortCSSPropertyValidator=jh;var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.default=Qh;var Gh=qi;function Qh(e,t){try{return(0,Gh.getStylesForProperty)(e,t)}catch{}return null}Object.defineProperty(Rn,"__esModule",{value:!0});Rn.ShortCSSToReactNativeValidator=void 0;var Xh=Jt,Yh=Jh(Nn),Zh=mt;function Jh(e){return e&&e.__esModule?e:{default:e}}class Kh extends Xh.ShortCSSPropertyValidator{normalizeInlineCSSValue(t){return new Zh.ShortMergeRequest((0,Yh.default)(this.propertyName,t))}normalizeNativeValue(){return null}}Rn.ShortCSSToReactNativeValidator=Kh;Object.defineProperty(h1,"__esModule",{value:!0});h1.ShortFontCSSValidator=void 0;var e6=Rn,t6=r6(i1);function r6(e){return e&&e.__esModule?e:{default:e}}const n6=/\s+/;class o6 extends e6.ShortCSSToReactNativeValidator{normalizeInlineCSSValue(t){const r=t.split(",");let n=null;if(r.length===1)return super.normalizeInlineCSSValue(r[0]);const o=r.splice(0,1)[0];for(const i of r){const a=(0,t6.default)(i),c=this.config.isFontSupported(a);if(c){n=typeof c=="string"?c:a;break}}return super.normalizeInlineCSSValue(o.split(n6).slice(0,-1).join(" ")+" "+(n||"system"))}}h1.ShortFontCSSValidator=o6;var g1={};Object.defineProperty(g1,"__esModule",{value:!0});g1.ShortFlexCSSPropertyValidator=void 0;var a6=mt,i6=c6(Nn),s6=Jt;function c6(e){return e&&e.__esModule?e:{default:e}}class u6 extends s6.ShortCSSPropertyValidator{constructor(t){super({...t,propertyName:"flex"})}normalizeInlineCSSValue(t){return new a6.ShortMergeRequest((0,i6.default)(this.propertyName,t))}normalizeNativeValue(t){return t}}g1.ShortFlexCSSPropertyValidator=u6;var m1={};Object.defineProperty(m1,"__esModule",{value:!0});m1.LongCSSToReactNativeValidator=void 0;var l6=Ze,d6=f6(Nn);function f6(e){return e&&e.__esModule?e:{default:e}}class p6 extends l6.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=(0,d6.default)(this.propertyName,t);return r?r[this.propertyName]:null}}m1.LongCSSToReactNativeValidator=p6;var v1={};Object.defineProperty(v1,"__esModule",{value:!0});v1.ShortCardinalCSSpropertyValidator=void 0;var Zr=mt,h6=Jt;function g6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const m6=/\s+/;class v6 extends h6.ShortCSSPropertyValidator{constructor(t,r){super(t),g6(this,"directions",void 0),this.directions=r}normalizeInlineCSSValue(t){if(typeof t=="number")return new Zr.ShortMergeRequest({[this.directions.top]:t,[this.directions.right]:t,[this.directions.bottom]:t,[this.directions.left]:t});const r=t.split(m6);return r.length===4?new Zr.ShortMergeRequest({[this.directions.top]:r[0],[this.directions.right]:r[1],[this.directions.bottom]:r[2],[this.directions.left]:r[3]}):r.length===3?new Zr.ShortMergeRequest({[this.directions.top]:r[0],[this.directions.right]:r[1],[this.directions.bottom]:r[2],[this.directions.left]:r[1]}):r.length===2?new Zr.ShortMergeRequest({[this.directions.top]:r[0],[this.directions.right]:r[1],[this.directions.bottom]:r[0],[this.directions.left]:r[1]}):r.length===1?new Zr.ShortMergeRequest({[this.directions.top]:r[0],[this.directions.right]:r[0],[this.directions.bottom]:r[0],[this.directions.left]:r[0]}):null}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}v1.ShortCardinalCSSpropertyValidator=v6;var y1={};Object.defineProperty(y1,"__esModule",{value:!0});y1.ShortDualNativepropertyValidator=void 0;var y6=mt,_6=Jt;function b6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class S6 extends _6.ShortCSSPropertyValidator{constructor(t,r){super(t),b6(this,"directions",void 0),this.directions=r}normalizeInlineCSSValue(){return null}normalizeNativeValue(t){return new y6.ShortMergeRequest({[this.directions[0]]:t,[this.directions[1]]:t})}}y1.ShortDualNativepropertyValidator=S6;Object.defineProperty(Di,"__esModule",{value:!0});Di.default=A6;var w6=a1,io=s1,so=c1,P6=u1,fe=Ar,x6=l1,C6=d1,$6=f1,he=Mn,It=p1,T6=h1,co=Rn,M6=g1,E6=m1,Jr=v1,uo=y1,R6=En,Kr=Tn;const N6={inheritable:!0,native:!0,translatable:!0,display:"block"},q={inheritable:!1,native:!0,translatable:!0,display:"block"},O6={inheritable:!1,native:!0,translatable:!1,display:"block"},je={inheritable:!0,native:!0,translatable:!0,display:"text"},lo={inheritable:!1,native:!0,translatable:!0,display:"text"},Va={inheritable:!0,native:!1,translatable:!1,display:"text"},L6={inheritable:!1,native:!1,translatable:!1,display:"block"};function A6(e){return{background:new co.ShortCSSToReactNativeValidator({config:e,model:q,propertyName:"background"}),border:new co.ShortCSSToReactNativeValidator({config:e,model:q,propertyName:"border"}),borderRadius:new Jr.ShortCardinalCSSpropertyValidator({config:e,model:q,propertyName:"borderRadius"},{top:"borderTopLeftRadius",right:"borderTopRightRadius",bottom:"borderBottomRightRadius",left:"borderBottomLeftRadius"}),borderColor:new Jr.ShortCardinalCSSpropertyValidator({config:e,model:q,propertyName:"borderColor"},{top:"borderTopColor",right:"borderRightColor",bottom:"borderBottomColor",left:"borderLeftColor"}),borderStyle:new $6.LongBorderStyleCSSPropertyValidator({config:e,model:q,propertyName:"borderStyle"},["solid","dotted","dashed"]),borderWidth:new Jr.ShortCardinalCSSpropertyValidator({config:e,propertyName:"borderWidth",model:q},{top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth",left:"borderLeftWidth"}),flex:new M6.ShortFlexCSSPropertyValidator({config:e,propertyName:"flex",model:q}),flexFlow:new co.ShortCSSToReactNativeValidator({config:e,model:q,propertyName:"flexFlow"}),font:new T6.ShortFontCSSValidator({config:e,model:je,propertyName:"font"}),margin:new Jr.ShortCardinalCSSpropertyValidator({config:e,model:q,propertyName:"margin"},{top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"}),objectFit:new he.LongEnumerationCSSPropertyValidator({config:e,model:L6,propertyName:"objectFit"},["fill","contain","cover","none","scale-down"]),padding:new Jr.ShortCardinalCSSpropertyValidator({config:e,model:q,propertyName:"padding"},{top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"}),marginHorizontal:new uo.ShortDualNativepropertyValidator({config:e,model:q,propertyName:"marginHorizontal"},["marginLeft","marginRight"]),marginVertical:new uo.ShortDualNativepropertyValidator({config:e,model:q,propertyName:"marginVertical"},["marginTop","marginBottom"]),paddingHorizontal:new uo.ShortDualNativepropertyValidator({config:e,model:q,propertyName:"paddingHorizontal"},["paddingLeft","paddingRight"]),paddingVertical:new uo.ShortDualNativepropertyValidator({config:e,model:q,propertyName:"paddingVertical"},["paddingTop","paddingBottom"]),textDecoration:new co.ShortCSSToReactNativeValidator({config:e,model:lo,propertyName:"textDecoration"}),textDecorationColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"textDecorationColor",model:lo}),textDecorationLine:new he.LongEnumerationCSSPropertyValidator({config:e,model:lo,propertyName:"textDecorationLine"},["none","underline","line-through","underline line-through"]),textDecorationStyle:new he.LongEnumerationCSSPropertyValidator({config:e,model:lo,propertyName:"textDecorationStyle"},["solid","double","dotted","dashed"]),color:new It.LongColorCSSPropertyValidator({config:e,propertyName:"color",model:je}),fontFamily:new w6.LongFontFamilyPropertyValidator({config:e,propertyName:"fontFamily",model:je}),fontSize:new P6.LongFontSizeCSSValidator({config:e,propertyName:"fontSize",model:je}),fontStyle:new he.LongEnumerationCSSPropertyValidator({config:e,model:je,propertyName:"fontStyle"},["normal","italic"]),fontVariant:new C6.LongEnumerationListCSSPropertyValidator({config:e,model:je,propertyName:"fontVariant"},["small-caps","oldstyle-nums","lining-nums","tabular-nums","proportional-nums"]),fontWeight:new he.LongEnumerationCSSPropertyValidator({config:e,model:je,propertyName:"fontWeight"},["normal","bold","100","200","300","400","500","600","700","800","900"]),letterSpacing:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"letterSpacing",model:je}),lineHeight:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"lineHeight",model:je}),textAlign:new he.LongEnumerationCSSPropertyValidator({config:e,model:je,propertyName:"textAlign"},["auto","left","right","center","justify"]),textTransform:new he.LongEnumerationCSSPropertyValidator({config:e,model:je,propertyName:"textTransform"},["none","capitalize","uppercase","lowercase"]),whiteSpace:new he.LongEnumerationCSSPropertyValidator({config:e,model:Va,propertyName:"whiteSpace"},["normal","pre"]),listStyleType:new R6.LongForgivingCSSPropertyValidator({config:e,model:Va,propertyName:"listStyleType"}),userSelect:new he.LongEnumerationCSSPropertyValidator({config:e,model:Va,propertyName:"userSelect"},["auto","text","none","contain","all"]),alignContent:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"alignContent"},["flex-start","flex-end","center","stretch","space-between","space-around"]),alignItems:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"alignItems"},["flex-start","flex-end","center","stretch","baseline"]),alignSelf:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"alignSelf"},["auto","flex-start","flex-end","center","stretch","baseline"]),aspectRatio:new x6.LongAspectRatioPropertyValidator({config:e,model:q,propertyName:"aspectRatio"}),bottom:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"bottom",model:q}),display:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"display"},["flex","none"]),flexBasis:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"flexBasis",model:q}),flexDirection:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"flexDirection"},["row","column","row-reverse","column-reverse"]),flexGrow:new io.LongFloatNumberCSSPropertyValidator({config:e,propertyName:"flexGrow",model:q}),flexShrink:new io.LongFloatNumberCSSPropertyValidator({config:e,propertyName:"flexShrink",model:q}),flexWrap:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"flexWrap"},["wrap","nowrap","wrap-reverse"]),justifyContent:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"justifyContent"},["flex-start","flex-end","center","space-between","space-around","space-evenly"]),left:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"left",model:q}),position:new he.LongEnumerationCSSPropertyValidator({config:e,model:O6,propertyName:"position"},["absolute","relative"]),right:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"right",model:q}),top:new fe.LongSizeCSSPropertyValidator({config:e,model:q,propertyName:"top"}),backfaceVisibility:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"backfaceVisibility"},["visible","hidden"]),backgroundColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"backgroundColor",model:q}),borderBottomColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"borderBottomColor",model:q}),borderBottomLeftRadius:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"borderBottomLeftRadius",model:q}),borderBottomRightRadius:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"borderBottomRightRadius",model:q}),borderBottomWidth:new so.LongBorderWidthCSSPropertyValidator({config:e,propertyName:"borderBottomWidth",model:q}),borderLeftColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"borderLeftColor",model:q}),borderLeftWidth:new so.LongBorderWidthCSSPropertyValidator({config:e,propertyName:"borderLeftWidth",model:q}),borderRightColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"borderRightColor",model:q}),borderRightWidth:new so.LongBorderWidthCSSPropertyValidator({config:e,propertyName:"borderRightWidth",model:q}),borderTopColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"borderTopColor",model:q}),borderTopLeftRadius:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"borderTopLeftRadius",model:q}),borderTopRightRadius:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"borderTopRightRadius",model:q}),borderTopWidth:new so.LongBorderWidthCSSPropertyValidator({config:e,propertyName:"borderTopWidth",model:q}),height:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"height",model:q}),marginBottom:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"marginBottom",model:q}),marginLeft:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"marginLeft",model:q}),marginRight:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"marginRight",model:q}),marginTop:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"marginTop",model:q}),maxHeight:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"maxHeight",model:q}),maxWidth:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"maxWidth",model:q}),minHeight:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"minHeight",model:q}),minWidth:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"minWidth",model:q}),opacity:new io.LongFloatNumberCSSPropertyValidator({config:e,propertyName:"opacity",model:q}),paddingBottom:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"paddingBottom",model:q}),paddingLeft:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"paddingLeft",model:q}),paddingRight:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"paddingRight",model:q}),paddingTop:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"paddingTop",model:q}),transform:new E6.LongCSSToReactNativeValidator({config:e,propertyName:"transform",model:q}),width:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"width",model:q}),zIndex:new io.LongFloatNumberCSSPropertyValidator({config:e,propertyName:"zIndex",model:q}),direction:new he.LongEnumerationCSSPropertyValidator({config:e,model:N6,propertyName:"direction"},["auto","ltr","rtl"])}}Object.defineProperty(o1,"__esModule",{value:!0});o1.CSSPropertiesValidationRegistry=void 0;var q6=D6(Di);function D6(e){return e&&e.__esModule?e:{default:e}}function za(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _c(e){const t={};return e.forEach(r=>{t[r]=!0}),t}class I6{constructor(t){za(this,"validators",void 0),za(this,"ignoredPropertiesRegistry",void 0),za(this,"allowedPropertiesRegistry",void 0),this.validators=(0,q6.default)(t),this.ignoredPropertiesRegistry=_c(t.inlinePropertiesBlacklist),this.allowedPropertiesRegistry=t.inlinePropertiesWhitelist?_c(t.inlinePropertiesWhitelist):null}isInlinePropertyAllowed(t){return this.allowedPropertiesRegistry?!!this.allowedPropertiesRegistry[t]:!this.ignoredPropertiesRegistry[t]}shouldRegisterInlineProperty(t){return this.isInlinePropertyAllowed(t)&&!!this.validators[t]}getValidatorForProperty(t){return this.validators[t]||null}}o1.CSSPropertiesValidationRegistry=I6;var On={};Object.defineProperty(On,"__esModule",{value:!0});On.defaultCSSProcessorConfig=void 0;const wl=96,Pl=wl*2.54,k6=Pl/10,xl=4/3,F6=12*xl,V6={absoluteLengthUnitsMultiplicators:{cm:Pl,in:wl,mm:k6,pc:F6,pt:xl},absoluteBorderWidthsPixelMap:{medium:2.5,thick:5,thin:1},absoluteFontSizesPixelMap:{medium:14,"xx-small":8.5,"x-small":10,small:12,large:17,"x-large":20,"xx-large":24},relativeFontSizesCoefficientMap:{larger:1.2,smaller:.83},inlinePropertiesBlacklist:[],rootFontSize:16,inlinePropertiesWhitelist:null,isFontSupported(){return!0}};On.defaultCSSProcessorConfig=V6;Object.defineProperty(t1,"__esModule",{value:!0});t1.CSSProcessor=void 0;var z6=r1,U6=n1,B6=o1,W6=On;function H6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class j6{constructor(t){H6(this,"registry",void 0);const r={...W6.defaultCSSProcessorConfig,...t};this.registry=new B6.CSSPropertiesValidationRegistry(r)}compileStyleDeclaration(t){return new U6.CSSNativeParseRun(t,this.registry).exec()}compileInlineCSS(t){return new z6.CSSInlineParseRun(t,this.registry).exec()}}t1.CSSProcessor=j6;var G6={},Q6={},X6={},Y6={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t={CSSProcessor:!0,CSSProcessedProps:!0,mergeProps:!0};Object.defineProperty(e,"CSSProcessor",{enumerable:!0,get:function(){return r.CSSProcessor}}),Object.defineProperty(e,"CSSProcessedProps",{enumerable:!0,get:function(){return n.CSSProcessedProps}}),Object.defineProperty(e,"mergeProps",{enumerable:!0,get:function(){return d.default}}),e.default=void 0;var r=t1,n=Pn,o=G6;Object.keys(o).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===o[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return o[h]}})});var i=On;Object.keys(i).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===i[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return i[h]}})});var a=Q6;Object.keys(a).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===a[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return a[h]}})});var c=X6;Object.keys(c).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===c[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return c[h]}})});var l=Y6;Object.keys(l).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===l[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return l[h]}})});var d=p(xn);function p(h){return h&&h.__esModule?h:{default:h}}var v=r.CSSProcessor;e.default=v})(e1);function Z6(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}var Ii=Z6,J6=Ii;function K6(e){return function t(r){return arguments.length===0||J6(r)?t:e.apply(this,arguments)}}var Kt=K6,e7=Kt,t7=e7(function(t){return t==null}),r7=t7,n7=Kt,o7=n7(function(t){return!t}),a7=o7;function i7(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(r){return t.apply(this,arguments)};case 2:return function(r,n){return t.apply(this,arguments)};case 3:return function(r,n,o){return t.apply(this,arguments)};case 4:return function(r,n,o,i){return t.apply(this,arguments)};case 5:return function(r,n,o,i,a){return t.apply(this,arguments)};case 6:return function(r,n,o,i,a,c){return t.apply(this,arguments)};case 7:return function(r,n,o,i,a,c,l){return t.apply(this,arguments)};case 8:return function(r,n,o,i,a,c,l,d){return t.apply(this,arguments)};case 9:return function(r,n,o,i,a,c,l,d,p){return t.apply(this,arguments)};case 10:return function(r,n,o,i,a,c,l,d,p,v){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var Cl=i7;function s7(e,t){return function(){return t.call(this,e.apply(this,arguments))}}var c7=s7,Ua=Kt,en=Ii;function u7(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return en(r)?t:Ua(function(o){return e(r,o)});default:return en(r)&&en(n)?t:en(r)?Ua(function(o){return e(o,n)}):en(n)?Ua(function(o){return e(r,o)}):e(r,n)}}}var ki=u7,fo=Kt,lr=ki,Se=Ii;function l7(e){return function t(r,n,o){switch(arguments.length){case 0:return t;case 1:return Se(r)?t:lr(function(i,a){return e(r,i,a)});case 2:return Se(r)&&Se(n)?t:Se(r)?lr(function(i,a){return e(i,n,a)}):Se(n)?lr(function(i,a){return e(r,i,a)}):fo(function(i){return e(r,n,i)});default:return Se(r)&&Se(n)&&Se(o)?t:Se(r)&&Se(n)?lr(function(i,a){return e(i,a,o)}):Se(r)&&Se(o)?lr(function(i,a){return e(i,n,a)}):Se(n)&&Se(o)?lr(function(i,a){return e(r,i,a)}):Se(r)?fo(function(i){return e(i,n,o)}):Se(n)?fo(function(i){return e(r,i,o)}):Se(o)?fo(function(i){return e(r,n,i)}):e(r,n,o)}}}var $l=l7,Tl=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function d7(e){return Object.prototype.toString.call(e)==="[object String]"}var Ml=d7,f7=Kt,p7=Tl,h7=Ml,g7=f7(function(t){return p7(t)?!0:!t||typeof t!="object"||h7(t)?!1:t.nodeType===1?!!t.length:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),m7=g7,v7=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,r){return this.f(t,r)},e}();function y7(e){return new v7(e)}var _7=y7,b7=Cl,S7=ki,w7=S7(function(t,r){return b7(t.length,function(){return t.apply(r,arguments)})}),P7=w7,x7=m7,C7=_7,$7=P7;function T7(e,t,r){for(var n=0,o=r.length;n({...r,...n}),Object.prototype)}class Vi{constructor(t,r){dr(this,"nativeTextFlow",void 0),dr(this,"nativeBlockFlow",void 0),dr(this,"nativeTextRet",void 0),dr(this,"nativeBlockRet",void 0),dr(this,"webTextFlow",void 0),dr(this,"webBlockRet",void 0),this.nativeTextFlow=po(r==null?void 0:r.nativeTextFlow,t.native.text.flow),this.nativeBlockFlow=po(r==null?void 0:r.nativeBlockFlow,t.native.block.flow),this.webTextFlow=po(r==null?void 0:r.webTextFlow,t.web.text.flow),this.nativeTextRet=po(r==null?void 0:r.nativeTextRet,t.native.text.retain),this.nativeBlockRet=t.native.block.retain,this.webBlockRet=t.web.block.retain}static empty(){return new Vi(new o3.CSSProcessedProps)}}Or.TStyles=Vi;var _1={};Object.defineProperty(_1,"__esModule",{value:!0});_1.default=void 0;const u3={anchor:!1,edits:"none",lang:"en",olNestLevel:-1,ulNestLevel:-1,direction:"ltr",extend(){return Object.create(this)},toString(){let e=`Markers { +import{j as Qe}from"./jsx-runtime-Bxcv0yjW.js";import{r as L,R as Sr}from"./index-mfbfsM12.js";import{c as I,a as st,g as ip}from"./_commonjsHelpers-BosuxZz1.js";import{r as ie,d as sp,b as cp,I as up}from"./useOpenUrl-DnQVF1wQ.js";import{p as Go}from"./index-Dk74W0Oi.js";import{s as rl}from"./index-kbHxBZ_W.js";import{V as Mi}from"./index-BP1Ij_Cs.js";import{T as lp}from"./index-CAyeAlm6.js";import{C as dp}from"./Column-CFK5NdwL.js";import{R as fp}from"./Row-D-wvv0CV.js";import{L as pp}from"./ListItemMarker-CUNXp5YB.js";import{u as hp}from"./useIsScreenReaderEnabled-A65pchNu.js";import{u as gp}from"./useDeviceContext-Cm8FgCCV.js";import{u as Na}from"./useThemable-ua4U8LzO.js";import{P as mp}from"./index-DSI0shHu.js";var Oa=40,La=41,oo=39,Aa=34,qa=92,cr=47,Da=44,Ia=58,ao=42,vp=117,yp=85,_p=43,bp=/^[a-f0-9?-]+$/i,Sp=function(e){for(var t=[],r=e,n,o,i,a,c,l,d,p,v=0,h=r.charCodeAt(v),N=r.length,T=[{nodes:t}],M=0,E,D="",H="",k="";v=48&&l<=57)return!0;var d=a.charCodeAt(2);return l===r&&d>=48&&d<=57}return c===r?(l=a.charCodeAt(1),l>=48&&l<=57):c>=48&&c<=57}return ka=function(a){var c=0,l=a.length,d,p,v;if(l===0||!i(a))return!1;for(d=a.charCodeAt(c),(d===t||d===e)&&c++;c57));)c+=1;if(d=a.charCodeAt(c),p=a.charCodeAt(c+1),d===r&&p>=48&&p<=57)for(c+=2;c57));)c+=1;if(d=a.charCodeAt(c),p=a.charCodeAt(c+1),v=a.charCodeAt(c+2),(d===n||d===o)&&(p>=48&&p<=57||(p===t||p===e)&&v>=48&&v<=57))for(c+=p===t||p===e?3:2;c57));)c+=1;return{number:a.slice(0,c),unit:a.slice(c)}},ka}var Cp=Sp,ol=wp,al=Pp;function Pt(e){return this instanceof Pt?(this.nodes=Cp(e),this):new Pt(e)}Pt.prototype.toString=function(){return Array.isArray(this.nodes)?al(this.nodes):""};Pt.prototype.walk=function(e,t){return ol(this.nodes,e,t),this};Pt.unit=xp();Pt.walk=ol;Pt.stringify=al;var $p=Pt,il={},Ei={},Qo={},Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});Sn.default=void 0;let sl;sl=null;var Tp=sl;Sn.default=Tp;Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=void 0;var fc=Ep(L);Mp(Sn);function Mp(e){return e&&e.__esModule?e:{default:e}}function cl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(cl=function(n){return n?r:t})(e)}function Ep(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=cl(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}const Rp=function(t){return fc.default.createElement(fc.Fragment,null,t.children)};var Np=Rp;Qo.default=Np;var Ie={},Ri={},Xo={},Yo={},Op={},Rr={},ke={};Object.defineProperty(ke,"__esModule",{value:!0});ke.default=ke.HTMLContentModel=void 0;let Oo;ke.HTMLContentModel=Oo;(function(e){e.block="block",e.textual="textual",e.mixed="mixed",e.none="none"})(Oo||(ke.HTMLContentModel=Oo={}));var Lp=Oo;ke.default=Lp;Object.defineProperty(Rr,"__esModule",{value:!0});Rr.default=void 0;var qt=Ap(ke);function Ap(e){return e&&e.__esModule?e:{default:e}}function nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qp=["textual","edits","anchor"],Dp=["tabular","grouping","sectioning"];class fn{constructor({tagName:t,contentModel:r,isOpaque:n,mixedUAStyles:o,isVoid:i,getUADerivedStyleFromAttributes:a,getMixedUAStyles:c,setMarkersForTNode:l,getReactNativeProps:d,reactNativeProps:p}){nt(this,"tagName",void 0),nt(this,"contentModel",void 0),nt(this,"isOpaque",void 0),nt(this,"isVoid",void 0),nt(this,"mixedUAStyles",void 0),nt(this,"reactNativeProps",void 0),nt(this,"getUADerivedStyleFromAttributes",void 0),nt(this,"getMixedUAStyles",void 0),nt(this,"getReactNativeProps",void 0),nt(this,"setMarkersForTNode",void 0),this.tagName=t,this.contentModel=r,this.isOpaque=n||!1,this.isVoid=i,this.mixedUAStyles=o,this.getUADerivedStyleFromAttributes=a,this.getMixedUAStyles=c,this.setMarkersForTNode=l,this.getReactNativeProps=d,this.reactNativeProps=p}static fromCustomModel(t){const{contentModel:r,tagName:n,isOpaque:o=!1,isVoid:i=!1,...a}=t;return new fn({tagName:n,contentModel:r,isOpaque:o,isVoid:i,...a})}static fromNativeModel(t){const{category:r,isOpaque:n,isVoid:o=!1,...i}=t,a=qp.indexOf(r)!==-1,c=a||Dp.indexOf(r)!==-1,l=r==="anchor"||r==="edits"?qt.default.mixed:a?qt.default.textual:c?qt.default.block:qt.default.none;return new fn({isVoid:o,contentModel:l,isOpaque:n??r==="embedded",...i})}isTranslatableBlock(){return this.contentModel===qt.default.block}isTranslatableTextual(){return this.contentModel===qt.default.textual||this.contentModel===qt.default.mixed}extend(t){const r=typeof t=="function"?t(this):t;return new fn({...this,...r})}}Rr.default=fn;var Nr={},Ye={},Xt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(Xt);var Q={},Yt=I&&I.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),pn=I&&I.__assign||function(){return pn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(Ni);Q.NodeWithChildren=Jo;var fl=function(e){Yt(t,e);function t(r){return e.call(this,de.ElementType.Root,r)||this}return t}(Jo);Q.Document=fl;var pl=function(e){Yt(t,e);function t(r,n,o,i){o===void 0&&(o=[]),i===void 0&&(i=r==="script"?de.ElementType.Script:r==="style"?de.ElementType.Style:de.ElementType.Tag);var a=e.call(this,i,o)||this;return a.name=r,a.attribs=n,a}return Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var o,i;return{name:n,value:r.attribs[n],namespace:(o=r["x-attribsNamespace"])===null||o===void 0?void 0:o[n],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[n]}})},enumerable:!1,configurable:!0}),t}(Jo);Q.Element=pl;function hl(e){return(0,de.isTag)(e)}Q.isTag=hl;function gl(e){return e.type===de.ElementType.CDATA}Q.isCDATA=gl;function ml(e){return e.type===de.ElementType.Text}Q.isText=ml;function vl(e){return e.type===de.ElementType.Comment}Q.isComment=vl;function yl(e){return e.type===de.ElementType.Directive}Q.isDirective=yl;function _l(e){return e.type===de.ElementType.Root}Q.isDocument=_l;function kp(e){return Object.prototype.hasOwnProperty.call(e,"children")}Q.hasChildren=kp;function Oi(e,t){t===void 0&&(t=!1);var r;if(ml(e))r=new ul(e.data);else if(vl(e))r=new ll(e.data);else if(hl(e)){var n=t?Fa(e.children):[],o=new pl(e.name,pn({},e.attribs),n);n.forEach(function(l){return l.parent=o}),e.namespace!=null&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=pn({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=pn({},e["x-attribsPrefix"])),r=o}else if(gl(e)){var n=t?Fa(e.children):[],i=new Jo(de.ElementType.CDATA,n);n.forEach(function(d){return d.parent=i}),r=i}else if(_l(e)){var n=t?Fa(e.children):[],a=new fl(n);n.forEach(function(d){return d.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else if(yl(e)){var c=new dl(e.name,e.data);e["x-name"]!=null&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),r=c}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}Q.cloneNode=Oi;function Fa(e){for(var t=e.map(function(n){return Oi(n,!0)}),r=1;r":null}},k=function(g){return function(S){return S.type===g?S.value:null}},F=function(g,S){return S===void 0&&(S=String),function($){if($.type!=="word")return null;var O=$.value.match(g);if(O===null)return null;var W=S(O[1]);return W}},z=H(function(V){return V.type==="space"}),Y=H(function(V){return V.type==="div"&&V.value==="/"}),oe=H(function(V){return V.type==="div"&&V.value===","}),ee=k("word"),_e=F(p),be=F(v),re=F(N,Number),te=F(T,Number),s=F(M),u=F(E,function(V){return V.toLowerCase()}),f=F(D),m=F(h),_=a,w=d,P=F(/^(none|underline|line-through)$/i),x=function(g){var S=g.expect(re);return g.hasTokens()&&(g.expect(Y),S/=g.expect(re)),{aspectRatio:S}},C=F(/^(solid|dashed|dotted)$/),U=1,R="black",X="solid",G=function(g){var S,$,O;if(g.matches(_e))return g.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};for(var W=0;W<3&&g.hasTokens();)W!==0&&g.expect(z),S===void 0&&g.matches(te,s)?S=g.lastValue:$===void 0&&g.matches(w)?$=g.lastValue:O===void 0&&g.matches(C)?O=g.lastValue:g.throw(),W+=1;return g.expectEmpty(),S===void 0&&(S=U),$===void 0&&($=R),O===void 0&&(O=X),{borderWidth:S,borderColor:$,borderStyle:O}},j=function(g){var S=g.types,$=S===void 0?[te,s,f]:S,O=g.directions,W=O===void 0?["Top","Right","Bottom","Left"]:O,Z=g.prefix,Ee=Z===void 0?"":Z,_t=g.suffix,Ea=_t===void 0?"":_t;return function(rt){var sr,At=[];for(At.push(rt.expect.apply(rt,$));At.length<4&&rt.hasTokens();)rt.expect(z),At.push(rt.expect.apply(rt,$));rt.expectEmpty();var Ra=At[0],ic=At[1],sc=ic===void 0?Ra:ic,cc=At[2],np=cc===void 0?Ra:cc,uc=At[3],op=uc===void 0?sc:uc,no=function(ap){return""+Ee+W[ap]+Ea};return sr={},sr[no(0)]=Ra,sr[no(1)]=sc,sr[no(2)]=np,sr[no(3)]=op,sr}},ue=function(g){var S=g.expect(te),$=g.matches(z)?g.expect(te):S;return g.expectEmpty(),{width:S,height:$}},se=function(g){var S,$,O,W;if(g.matches(_e))return g.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};for(var Z=!1;g.hasTokens();)Z&&g.expect(z),S===void 0&&g.matches(te,s)?(S=g.lastValue,g.expect(z),$=g.expect(te,s),g.saveRewindPoint(),g.matches(z)&&g.matches(te,s)?O=g.lastValue:g.rewind()):W===void 0&&g.matches(w)?W=g.lastValue:g.throw(),Z=!0;return S===void 0&&g.throw(),{offset:{width:S,height:$},radius:O!==void 0?O:0,color:W!==void 0?W:"black"}},ce=function(g){var S=se(g),$=S.offset,O=S.radius,W=S.color;return{shadowOffset:$,shadowRadius:O,shadowColor:W,shadowOpacity:1}},He=1,ge=1,Me=0,Le=function(g){var S,$,O;if(g.matches(_e))return g.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(g.saveRewindPoint(),g.matches(be)&&!g.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};g.rewind();for(var W=0;W<2&&g.hasTokens();)W!==0&&g.expect(z),S===void 0&&g.matches(re)?(S=g.lastValue,g.saveRewindPoint(),g.matches(z)&&g.matches(re)?$=g.lastValue:g.rewind()):O===void 0&&g.matches(te,s,f)?O=g.lastValue:O===void 0&&g.matches(be)?O="auto":g.throw(),W+=1;return g.expectEmpty(),S===void 0&&(S=He),$===void 0&&($=ge),O===void 0&&(O=Me),{flexGrow:S,flexShrink:$,flexBasis:O}},tt=F(/(nowrap|wrap|wrap-reverse)/),dt=F(/(row|row-reverse|column|column-reverse)/),Yr="nowrap",h9="row",g9=function(g){for(var S,$,O=0;O<2&&g.hasTokens();)O!==0&&g.expect(z),S===void 0&&g.matches(tt)?S=g.lastValue:$===void 0&&g.matches(dt)?$=g.lastValue:g.throw(),O+=1;return g.expectEmpty(),S===void 0&&(S=Yr),$===void 0&&($=h9),{flexWrap:S,flexDirection:$}},ec=function(g){var S;if(g.matches(_))S=g.lastValue;else for(S=g.expect(m);g.hasTokens();){g.expect(z);var $=g.expect(m);S+=" "+$}return g.expectEmpty(),{fontFamily:S}},m9=F(/^(normal)$/),v9=F(/^(italic)$/),y9=F(/^([1-9]00|bold)$/),_9=F(/^(small-caps)$/),b9="normal",S9="normal",w9=[],P9=function(g){for(var S,$,O,W,Z=0;Z<3&&g.hasTokens();){if(!g.matches(m9))if(S===void 0&&g.matches(v9))S=g.lastValue;else if($===void 0&&g.matches(y9))$=g.lastValue;else if(O===void 0&&g.matches(_9))O=[g.lastValue];else break;g.expect(z),Z+=1}var Ee=g.expect(te,s);g.matches(Y)&&(W=g.expect(te,s)),g.expect(z);var _t=ec(g),Ea=_t.fontFamily;S===void 0&&(S=b9),$===void 0&&($=S9),O===void 0&&(O=w9);var rt={fontStyle:S,fontWeight:$,fontVariant:O,fontSize:Ee,fontFamily:Ea};return W!==void 0&&(rt.lineHeight=W),rt},x9=function(g){for(var S=[g.expect(m)];g.hasTokens();)g.expect(z),S.push(g.expect(m));return{fontVariant:S}},C9=F(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),$9=F(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),T9=function(g){var S=g.expect(C9),$;return g.hasTokens()?(g.expect(z),$=g.expect($9)):$="stretch",g.expectEmpty(),{alignContent:S,justifyContent:$}},M9=F(/^(solid|double|dotted|dashed)$/),E9="none",R9="solid",N9="black",O9=function(g){for(var S,$,O,W=!1;g.hasTokens();){if(W&&g.expect(z),S===void 0&&g.matches(P)){var Z=[g.lastValue.toLowerCase()];g.saveRewindPoint(),Z[0]!=="none"&&g.matches(z)&&g.matches(P)?(Z.push(g.lastValue.toLowerCase()),Z.sort().reverse()):g.rewind(),S=Z.join(" ")}else $===void 0&&g.matches(M9)?$=g.lastValue:O===void 0&&g.matches(w)?O=g.lastValue:g.throw();W=!0}return{textDecorationLine:S!==void 0?S:E9,textDecorationColor:O!==void 0?O:N9,textDecorationStyle:$!==void 0?$:R9}},L9=function(g){for(var S=[],$=!1;g.hasTokens();)$&&g.expect(z),S.push(g.expect(P).toLowerCase()),$=!0;return S.sort().reverse(),{textDecorationLine:S.join(" ")}},A9=function(g){var S=se(g),$=S.offset,O=S.radius,W=S.color;return{textShadowOffset:$,textShadowRadius:O,textShadowColor:W}},Ca=function(g){return function(S){var $=S.expect(g);return S.expectEmpty(),$}},$a=Ca(re),tc=Ca(te),ir=Ca(u),Ta=function(g){return function(S,$){return function(O){var W,Z,Ee=O.expect(g),_t;if(O.hasTokens())O.expect(oe),_t=O.expect(g);else if($!==void 0)_t=$;else return Ee;return O.expectEmpty(),[(W={},W[S+"Y"]=_t,W),(Z={},Z[S+"X"]=Ee,Z)]}}},q9=Ta(re),D9=Ta(te),I9=Ta(u),k9={perspective:$a,scale:q9("scale"),scaleX:$a,scaleY:$a,translate:D9("translate",0),translateX:tc,translateY:tc,rotate:ir,rotateX:ir,rotateY:ir,rotateZ:ir,skewX:ir,skewY:ir,skew:I9("skew","0deg")},F9=function(g){for(var S=[],$=!1;g.hasTokens();){$&&g.expect(z);var O=g.expectFunction(),W=O.functionName,Z=k9[W](O);if(!Array.isArray(Z)){var Ee;Z=[(Ee={},Ee[W]=Z,Ee)]}S=Z.concat(S),$=!0}return{transform:S}},V9=function(g){return{backgroundColor:g.expect(w)}},z9=j({types:[w],prefix:"border",suffix:"Color"}),U9=j({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),B9=j({prefix:"border",suffix:"Width"}),W9=j({types:[te,s,f,be],prefix:"margin"}),H9=j({prefix:"padding"}),j9=function(g){return{fontWeight:g.expect(ee)}},G9=function(g){return{shadowOffset:ue(g)}},Q9=function(g){return{textShadowOffset:ue(g)}},rc={aspectRatio:x,background:V9,border:G,borderColor:z9,borderRadius:U9,borderWidth:B9,boxShadow:ce,flex:Le,flexFlow:g9,font:P9,fontFamily:ec,fontVariant:x9,fontWeight:j9,margin:W9,padding:H9,placeContent:T9,shadowOffset:G9,textShadow:A9,textShadowOffset:Q9,textDecoration:O9,textDecorationLine:L9,transform:F9},Ma="SYMBOL_MATCH",X9=function(){function V(S,$){this.index=0,this.nodes=S,this.functionName=$!=null?$.value:null,this.lastValue=null,this.rewindIndex=-1}var g=V.prototype;return g.hasTokens=function(){return this.index<=this.nodes.length-1},g[Ma]=function(){if(!this.hasTokens())return null;for(var S=this.nodes[this.index],$=0;$c[o][i][a])]);return n}static new(){return new Lo}}Pn.CSSProcessedProps=Lo;Object.defineProperty(wn,"__esModule",{value:!0});wn.CSSParseRun=void 0;var W5=Pn;function gc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class H5{constructor(t){gc(this,"validationMap",void 0),gc(this,"processedProps",void 0),this.validationMap=t,this.processedProps=new W5.CSSProcessedProps}exec(){return this.fillProcessedProps(),this.processedProps}}wn.CSSParseRun=H5;var mt={};Object.defineProperty(mt,"__esModule",{value:!0});mt.ShortMergeRequest=void 0;function j5(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class G5{constructor(t){j5(this,"properties",void 0),this.properties=t}forEach(t){this.entries().forEach(t)}map(t){return this.entries().map(t)}entries(){return this.properties==null?[]:Object.entries(this.properties)}}mt.ShortMergeRequest=G5;Object.defineProperty(r1,"__esModule",{value:!0});r1.CSSInlineParseRun=void 0;var Q5=qi,X5=wn,Y5=mt;function Z5(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class J5 extends X5.CSSParseRun{constructor(t,r){super(r),Z5(this,"rules",void 0),this.rules=this.parseInlineCSS(t),this.normalizeProp=this.normalizeProp.bind(this),this.reduceProps=this.reduceProps.bind(this)}parseInlineCSS(t){return t.split(";").map(r=>r.split(":")).reduce((r,n)=>n.length===2?[...r,[n[0].trim(),n[1].trim()]]:r,[])}normalizeProp(t,r=!1){const n=t[0],o=t[1],i=(0,Q5.getPropertyName)(n);if(!this.validationMap.shouldRegisterInlineProperty(i))return null;const c=this.validationMap.getValidatorForProperty(i).normalizeInlineCSSValue(o);if(c===null){if(r)throw new TypeError;return null}return[i,c]}reduceProps(t,r){if(!r)return t;const[n,o]=r;if(o instanceof Y5.ShortMergeRequest)try{return o.map(i=>this.normalizeProp(i,!0)).reduce(this.reduceProps,t)}catch{return t}return{...t,[n]:o}}fillProcessedProps(){const t=this.rules.map(r=>this.normalizeProp(r)).reduce(this.reduceProps,{});Object.keys(t).forEach(r=>{const n=t[r],o=this.validationMap.getValidatorForProperty(r),i=o.normalizeInlineCSSValue(n);this.processedProps.withProperty(r,i,o)})}}r1.CSSInlineParseRun=J5;var n1={},Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.lookupRecord=K5;function K5(e,t){return!!e[t]}Object.defineProperty(n1,"__esModule",{value:!0});n1.CSSNativeParseRun=void 0;var eh=wn,mc=Cn,th=mt;function rh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nh={borderBottomEndRadius:"block",borderBottomStartRadius:"block",borderEndColor:"block",borderEndWidth:"block",borderStartColor:"block",borderStartWidth:"block",borderTopEndRadius:"block",borderTopStartRadius:"block",end:"block",marginEnd:"block",marginStart:"block",paddingEnd:"block",paddingStart:"block",start:"block"},oh={elevation:"block",overflow:"block",overlayColor:"block",resizeMode:"block",rotation:"block",scaleX:"block",scaleY:"block",shadowColor:"block",shadowOffset:"block",shadowOpacity:"block",shadowRadius:"block",testID:"block",tintColor:"block",transformMatrix:"block",translateX:"block",translateY:"block"},ah={includeFontPadding:"text",textAlignVertical:"text",textShadowColor:"text",textShadowOffset:"text",textShadowRadius:"text",writingDirection:"text"},vc={...ah,...oh};class ih extends eh.CSSParseRun{constructor(t,r){super(r),rh(this,"declaration",void 0),this.declaration=t}fillProp(t,r){const n=this.validationMap.getValidatorForProperty(t);if(n){const o=n.normalizeNativeValue(r);o instanceof th.ShortMergeRequest?o.forEach(([i,a])=>{this.fillProp(i,a)}):this.processedProps.withProperty(t,o,n)}else(0,mc.lookupRecord)(vc,t)?this.processedProps.withProperty(t,r,{compatCategory:"native",displayCategory:vc[t],propagationCategory:"retain"}):(0,mc.lookupRecord)(nh,t)?console.warn(`Native style property "${t}" is a directional style property. These are not yet supported.`):console.warn(`Native style property "${t}" is not supported and has been ignored.`)}fillProcessedProps(){const t=this.declaration;for(const r of Object.keys(t))this.fillProp(r,this.declaration[r])}}n1.CSSNativeParseRun=ih;var o1={},Di={},a1={},Ze={},$n={};Object.defineProperty($n,"__esModule",{value:!0});$n.GenericCSSPropertyValidator=void 0;function Dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class sh{constructor({model:t,config:r,propertyName:n},o){Dt(this,"model",void 0),Dt(this,"config",void 0),Dt(this,"compatCategory",void 0),Dt(this,"propagationCategory",void 0),Dt(this,"displayCategory",void 0),Dt(this,"propertyName",void 0),Dt(this,"_isShorthand",void 0),this.model=t,this.config=r,this.compatCategory=t.translatable?"native":"web",this.propagationCategory=t.inheritable?"flow":"retain",this.displayCategory=t.display,this.propertyName=n,this._isShorthand=o}isShorthand(){return this._isShorthand}}$n.GenericCSSPropertyValidator=sh;Object.defineProperty(Ze,"__esModule",{value:!0});Ze.LongCSSPropertyValidator=void 0;var ch=$n;class uh extends ch.GenericCSSPropertyValidator{constructor(t){super(t,!1)}normalizeInlineCSSValue(t){return typeof t!="string"?t:this.normalizeRawInlineCSSValue(t)}normalizeNativeValue(t){return t}}Ze.LongCSSPropertyValidator=uh;var i1={};Object.defineProperty(i1,"__esModule",{value:!0});i1.default=lh;function lh(e){return e.replace(/["']/g,"").trim()}Object.defineProperty(a1,"__esModule",{value:!0});a1.LongFontFamilyPropertyValidator=void 0;var dh=Ze,fh=ph(i1);function ph(e){return e&&e.__esModule?e:{default:e}}const hh=/,\s*/;class gh extends dh.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=t.split(hh);for(const n of r){const o=(0,fh.default)(n),i=o.length&&this.config.isFontSupported(o);if(i)return typeof i=="string"?i:o}return null}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}a1.LongFontFamilyPropertyValidator=gh;var s1={};Object.defineProperty(s1,"__esModule",{value:!0});s1.LongFloatNumberCSSPropertyValidator=void 0;var mh=Ze;class vh extends mh.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=Number(t);return Number.isNaN(r)?null:r}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}s1.LongFloatNumberCSSPropertyValidator=vh;var c1={},Tn={},Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.LongSizeCSSPropertyValidator=void 0;var yh=Ze;class _h extends yh.LongCSSPropertyValidator{computeSize(t,r){switch(r){case"%":return`${t}%`;case"px":return t;case"cm":case"in":case"mm":case"pc":case"pt":return t*this.config.absoluteLengthUnitsMultiplicators[r];case"em":return this.computeEmSize(t);case"ex":return this.computeEmSize(t*.63);case"rem":return this.config.rootFontSize*t}return null}computeEmSize(t){return this.config.rootFontSize*t}splitValueAndUnit(t){const r=/^(\d*\.?\d*)\s*(cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)$/g.exec(t);return r===null?null:[Number(r[1]),r[2]]}normalizeRawInlineCSSValue(t){if(t==="0")return 0;if(t==="auto")return t;const r=this.splitValueAndUnit(t);return r?this.computeSize(r[0],r[1]):null}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}Ar.LongSizeCSSPropertyValidator=_h;Object.defineProperty(Tn,"__esModule",{value:!0});Tn.LongNonPercentSizeCSSPropertyValidator=void 0;var bh=Ar;class Sh extends bh.LongSizeCSSPropertyValidator{computeSize(t,r){return r==="%"?null:super.computeSize(t,r)}}Tn.LongNonPercentSizeCSSPropertyValidator=Sh;Object.defineProperty(c1,"__esModule",{value:!0});c1.LongBorderWidthCSSPropertyValidator=void 0;var wh=Cn,Ph=Tn;class xh extends Ph.LongNonPercentSizeCSSPropertyValidator{normalizeRawInlineCSSValue(t){return(0,wh.lookupRecord)(this.config.absoluteBorderWidthsPixelMap,t)?this.config.absoluteBorderWidthsPixelMap[t]:super.normalizeRawInlineCSSValue(t)}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}c1.LongBorderWidthCSSPropertyValidator=xh;var u1={};Object.defineProperty(u1,"__esModule",{value:!0});u1.LongFontSizeCSSValidator=void 0;var yc=Cn,Ch=Ar;class $h extends Ch.LongSizeCSSPropertyValidator{computeSize(t,r){return r==="%"?this.computeEmSize(t/100):super.computeSize(t,r)}normalizeRawInlineCSSValue(t){return(0,yc.lookupRecord)(this.config.absoluteFontSizesPixelMap,t)?this.config.absoluteFontSizesPixelMap[t]:(0,yc.lookupRecord)(this.config.relativeFontSizesCoefficientMap,t)?this.computeEmSize(this.config.relativeFontSizesCoefficientMap[t]):super.normalizeRawInlineCSSValue(t)}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}u1.LongFontSizeCSSValidator=$h;var l1={};Object.defineProperty(l1,"__esModule",{value:!0});l1.LongAspectRatioPropertyValidator=void 0;var Th=Ze;const Mh=/^(\d+)\/(\d+)$/;class Eh extends Th.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=Mh.exec(t);if(r){const o=Number(r[1])/Number(r[2]);return Number.isFinite(o)?o:null}const n=Number(t);return Number.isNaN(n)?null:n}normalizeNativeValue(t){return typeof t!="string"?t:this.normalizeRawInlineCSSValue(t)}}l1.LongAspectRatioPropertyValidator=Eh;var d1={};Object.defineProperty(d1,"__esModule",{value:!0});d1.LongEnumerationListCSSPropertyValidator=void 0;var Rh=Ze;function Nh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Oh=/\s+/;class Lh extends Rh.LongCSSPropertyValidator{constructor(t,r){super(t),Nh(this,"allowedList",void 0),this.allowedList=r}normalizeRawInlineCSSValue(t){const r=t.split(Oh),n=[];for(const o of r)this.allowedList.indexOf(o)!==-1&&n.push(o);return n.length>0?n:null}}d1.LongEnumerationListCSSPropertyValidator=Lh;var f1={},Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.LongEnumerationCSSPropertyValidator=void 0;var Ah=Ze;function qh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Dh extends Ah.LongCSSPropertyValidator{constructor(t,r){super(t),qh(this,"allowedList",void 0),this.allowedList=r}normalizeRawInlineCSSValue(t){return this.allowedList.indexOf(t)!==-1?t:null}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}Mn.LongEnumerationCSSPropertyValidator=Dh;Object.defineProperty(f1,"__esModule",{value:!0});f1.LongBorderStyleCSSPropertyValidator=void 0;var Ih=Mn;const kh=/\s+/;class Fh extends Ih.LongEnumerationCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=this.pickFirst(t);return r?super.normalizeRawInlineCSSValue(r):null}normalizeNativeValue(t){return this.pickFirst(t)}pickFirst(t){return t.split(kh)[0]||null}}f1.LongBorderStyleCSSPropertyValidator=Fh;var p1={},En={};Object.defineProperty(En,"__esModule",{value:!0});En.LongForgivingCSSPropertyValidator=void 0;var Vh=Ze;class zh extends Vh.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){return t}}En.LongForgivingCSSPropertyValidator=zh;Object.defineProperty(p1,"__esModule",{value:!0});p1.LongColorCSSPropertyValidator=void 0;var Uh=En;const Bh=/^(rgb|rgba|hsl|hsla)\([\d,%. ]+\)|[#]?\w+$/;class Wh extends Uh.LongForgivingCSSPropertyValidator{normalizeRawInlineCSSValue(t){return t.match(Bh)?t:null}}p1.LongColorCSSPropertyValidator=Wh;var h1={},Rn={},Jt={};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.ShortCSSPropertyValidator=void 0;var Hh=$n;class jh extends Hh.GenericCSSPropertyValidator{constructor(t){super(t,!0)}}Jt.ShortCSSPropertyValidator=jh;var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.default=Qh;var Gh=qi;function Qh(e,t){try{return(0,Gh.getStylesForProperty)(e,t)}catch{}return null}Object.defineProperty(Rn,"__esModule",{value:!0});Rn.ShortCSSToReactNativeValidator=void 0;var Xh=Jt,Yh=Jh(Nn),Zh=mt;function Jh(e){return e&&e.__esModule?e:{default:e}}class Kh extends Xh.ShortCSSPropertyValidator{normalizeInlineCSSValue(t){return new Zh.ShortMergeRequest((0,Yh.default)(this.propertyName,t))}normalizeNativeValue(){return null}}Rn.ShortCSSToReactNativeValidator=Kh;Object.defineProperty(h1,"__esModule",{value:!0});h1.ShortFontCSSValidator=void 0;var e6=Rn,t6=r6(i1);function r6(e){return e&&e.__esModule?e:{default:e}}const n6=/\s+/;class o6 extends e6.ShortCSSToReactNativeValidator{normalizeInlineCSSValue(t){const r=t.split(",");let n=null;if(r.length===1)return super.normalizeInlineCSSValue(r[0]);const o=r.splice(0,1)[0];for(const i of r){const a=(0,t6.default)(i),c=this.config.isFontSupported(a);if(c){n=typeof c=="string"?c:a;break}}return super.normalizeInlineCSSValue(o.split(n6).slice(0,-1).join(" ")+" "+(n||"system"))}}h1.ShortFontCSSValidator=o6;var g1={};Object.defineProperty(g1,"__esModule",{value:!0});g1.ShortFlexCSSPropertyValidator=void 0;var a6=mt,i6=c6(Nn),s6=Jt;function c6(e){return e&&e.__esModule?e:{default:e}}class u6 extends s6.ShortCSSPropertyValidator{constructor(t){super({...t,propertyName:"flex"})}normalizeInlineCSSValue(t){return new a6.ShortMergeRequest((0,i6.default)(this.propertyName,t))}normalizeNativeValue(t){return t}}g1.ShortFlexCSSPropertyValidator=u6;var m1={};Object.defineProperty(m1,"__esModule",{value:!0});m1.LongCSSToReactNativeValidator=void 0;var l6=Ze,d6=f6(Nn);function f6(e){return e&&e.__esModule?e:{default:e}}class p6 extends l6.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=(0,d6.default)(this.propertyName,t);return r?r[this.propertyName]:null}}m1.LongCSSToReactNativeValidator=p6;var v1={};Object.defineProperty(v1,"__esModule",{value:!0});v1.ShortCardinalCSSpropertyValidator=void 0;var Zr=mt,h6=Jt;function g6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const m6=/\s+/;class v6 extends h6.ShortCSSPropertyValidator{constructor(t,r){super(t),g6(this,"directions",void 0),this.directions=r}normalizeInlineCSSValue(t){if(typeof t=="number")return new Zr.ShortMergeRequest({[this.directions.top]:t,[this.directions.right]:t,[this.directions.bottom]:t,[this.directions.left]:t});const r=t.split(m6);return r.length===4?new Zr.ShortMergeRequest({[this.directions.top]:r[0],[this.directions.right]:r[1],[this.directions.bottom]:r[2],[this.directions.left]:r[3]}):r.length===3?new Zr.ShortMergeRequest({[this.directions.top]:r[0],[this.directions.right]:r[1],[this.directions.bottom]:r[2],[this.directions.left]:r[1]}):r.length===2?new Zr.ShortMergeRequest({[this.directions.top]:r[0],[this.directions.right]:r[1],[this.directions.bottom]:r[0],[this.directions.left]:r[1]}):r.length===1?new Zr.ShortMergeRequest({[this.directions.top]:r[0],[this.directions.right]:r[0],[this.directions.bottom]:r[0],[this.directions.left]:r[0]}):null}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}v1.ShortCardinalCSSpropertyValidator=v6;var y1={};Object.defineProperty(y1,"__esModule",{value:!0});y1.ShortDualNativepropertyValidator=void 0;var y6=mt,_6=Jt;function b6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class S6 extends _6.ShortCSSPropertyValidator{constructor(t,r){super(t),b6(this,"directions",void 0),this.directions=r}normalizeInlineCSSValue(){return null}normalizeNativeValue(t){return new y6.ShortMergeRequest({[this.directions[0]]:t,[this.directions[1]]:t})}}y1.ShortDualNativepropertyValidator=S6;Object.defineProperty(Di,"__esModule",{value:!0});Di.default=A6;var w6=a1,io=s1,so=c1,P6=u1,fe=Ar,x6=l1,C6=d1,$6=f1,he=Mn,It=p1,T6=h1,co=Rn,M6=g1,E6=m1,Jr=v1,uo=y1,R6=En,Kr=Tn;const N6={inheritable:!0,native:!0,translatable:!0,display:"block"},q={inheritable:!1,native:!0,translatable:!0,display:"block"},O6={inheritable:!1,native:!0,translatable:!1,display:"block"},je={inheritable:!0,native:!0,translatable:!0,display:"text"},lo={inheritable:!1,native:!0,translatable:!0,display:"text"},Va={inheritable:!0,native:!1,translatable:!1,display:"text"},L6={inheritable:!1,native:!1,translatable:!1,display:"block"};function A6(e){return{background:new co.ShortCSSToReactNativeValidator({config:e,model:q,propertyName:"background"}),border:new co.ShortCSSToReactNativeValidator({config:e,model:q,propertyName:"border"}),borderRadius:new Jr.ShortCardinalCSSpropertyValidator({config:e,model:q,propertyName:"borderRadius"},{top:"borderTopLeftRadius",right:"borderTopRightRadius",bottom:"borderBottomRightRadius",left:"borderBottomLeftRadius"}),borderColor:new Jr.ShortCardinalCSSpropertyValidator({config:e,model:q,propertyName:"borderColor"},{top:"borderTopColor",right:"borderRightColor",bottom:"borderBottomColor",left:"borderLeftColor"}),borderStyle:new $6.LongBorderStyleCSSPropertyValidator({config:e,model:q,propertyName:"borderStyle"},["solid","dotted","dashed"]),borderWidth:new Jr.ShortCardinalCSSpropertyValidator({config:e,propertyName:"borderWidth",model:q},{top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth",left:"borderLeftWidth"}),flex:new M6.ShortFlexCSSPropertyValidator({config:e,propertyName:"flex",model:q}),flexFlow:new co.ShortCSSToReactNativeValidator({config:e,model:q,propertyName:"flexFlow"}),font:new T6.ShortFontCSSValidator({config:e,model:je,propertyName:"font"}),margin:new Jr.ShortCardinalCSSpropertyValidator({config:e,model:q,propertyName:"margin"},{top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"}),objectFit:new he.LongEnumerationCSSPropertyValidator({config:e,model:L6,propertyName:"objectFit"},["fill","contain","cover","none","scale-down"]),padding:new Jr.ShortCardinalCSSpropertyValidator({config:e,model:q,propertyName:"padding"},{top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"}),marginHorizontal:new uo.ShortDualNativepropertyValidator({config:e,model:q,propertyName:"marginHorizontal"},["marginLeft","marginRight"]),marginVertical:new uo.ShortDualNativepropertyValidator({config:e,model:q,propertyName:"marginVertical"},["marginTop","marginBottom"]),paddingHorizontal:new uo.ShortDualNativepropertyValidator({config:e,model:q,propertyName:"paddingHorizontal"},["paddingLeft","paddingRight"]),paddingVertical:new uo.ShortDualNativepropertyValidator({config:e,model:q,propertyName:"paddingVertical"},["paddingTop","paddingBottom"]),textDecoration:new co.ShortCSSToReactNativeValidator({config:e,model:lo,propertyName:"textDecoration"}),textDecorationColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"textDecorationColor",model:lo}),textDecorationLine:new he.LongEnumerationCSSPropertyValidator({config:e,model:lo,propertyName:"textDecorationLine"},["none","underline","line-through","underline line-through"]),textDecorationStyle:new he.LongEnumerationCSSPropertyValidator({config:e,model:lo,propertyName:"textDecorationStyle"},["solid","double","dotted","dashed"]),color:new It.LongColorCSSPropertyValidator({config:e,propertyName:"color",model:je}),fontFamily:new w6.LongFontFamilyPropertyValidator({config:e,propertyName:"fontFamily",model:je}),fontSize:new P6.LongFontSizeCSSValidator({config:e,propertyName:"fontSize",model:je}),fontStyle:new he.LongEnumerationCSSPropertyValidator({config:e,model:je,propertyName:"fontStyle"},["normal","italic"]),fontVariant:new C6.LongEnumerationListCSSPropertyValidator({config:e,model:je,propertyName:"fontVariant"},["small-caps","oldstyle-nums","lining-nums","tabular-nums","proportional-nums"]),fontWeight:new he.LongEnumerationCSSPropertyValidator({config:e,model:je,propertyName:"fontWeight"},["normal","bold","100","200","300","400","500","600","700","800","900"]),letterSpacing:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"letterSpacing",model:je}),lineHeight:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"lineHeight",model:je}),textAlign:new he.LongEnumerationCSSPropertyValidator({config:e,model:je,propertyName:"textAlign"},["auto","left","right","center","justify"]),textTransform:new he.LongEnumerationCSSPropertyValidator({config:e,model:je,propertyName:"textTransform"},["none","capitalize","uppercase","lowercase"]),whiteSpace:new he.LongEnumerationCSSPropertyValidator({config:e,model:Va,propertyName:"whiteSpace"},["normal","pre"]),listStyleType:new R6.LongForgivingCSSPropertyValidator({config:e,model:Va,propertyName:"listStyleType"}),userSelect:new he.LongEnumerationCSSPropertyValidator({config:e,model:Va,propertyName:"userSelect"},["auto","text","none","contain","all"]),alignContent:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"alignContent"},["flex-start","flex-end","center","stretch","space-between","space-around"]),alignItems:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"alignItems"},["flex-start","flex-end","center","stretch","baseline"]),alignSelf:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"alignSelf"},["auto","flex-start","flex-end","center","stretch","baseline"]),aspectRatio:new x6.LongAspectRatioPropertyValidator({config:e,model:q,propertyName:"aspectRatio"}),bottom:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"bottom",model:q}),display:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"display"},["flex","none"]),flexBasis:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"flexBasis",model:q}),flexDirection:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"flexDirection"},["row","column","row-reverse","column-reverse"]),flexGrow:new io.LongFloatNumberCSSPropertyValidator({config:e,propertyName:"flexGrow",model:q}),flexShrink:new io.LongFloatNumberCSSPropertyValidator({config:e,propertyName:"flexShrink",model:q}),flexWrap:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"flexWrap"},["wrap","nowrap","wrap-reverse"]),justifyContent:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"justifyContent"},["flex-start","flex-end","center","space-between","space-around","space-evenly"]),left:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"left",model:q}),position:new he.LongEnumerationCSSPropertyValidator({config:e,model:O6,propertyName:"position"},["absolute","relative"]),right:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"right",model:q}),top:new fe.LongSizeCSSPropertyValidator({config:e,model:q,propertyName:"top"}),backfaceVisibility:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"backfaceVisibility"},["visible","hidden"]),backgroundColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"backgroundColor",model:q}),borderBottomColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"borderBottomColor",model:q}),borderBottomLeftRadius:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"borderBottomLeftRadius",model:q}),borderBottomRightRadius:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"borderBottomRightRadius",model:q}),borderBottomWidth:new so.LongBorderWidthCSSPropertyValidator({config:e,propertyName:"borderBottomWidth",model:q}),borderLeftColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"borderLeftColor",model:q}),borderLeftWidth:new so.LongBorderWidthCSSPropertyValidator({config:e,propertyName:"borderLeftWidth",model:q}),borderRightColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"borderRightColor",model:q}),borderRightWidth:new so.LongBorderWidthCSSPropertyValidator({config:e,propertyName:"borderRightWidth",model:q}),borderTopColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"borderTopColor",model:q}),borderTopLeftRadius:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"borderTopLeftRadius",model:q}),borderTopRightRadius:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"borderTopRightRadius",model:q}),borderTopWidth:new so.LongBorderWidthCSSPropertyValidator({config:e,propertyName:"borderTopWidth",model:q}),height:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"height",model:q}),marginBottom:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"marginBottom",model:q}),marginLeft:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"marginLeft",model:q}),marginRight:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"marginRight",model:q}),marginTop:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"marginTop",model:q}),maxHeight:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"maxHeight",model:q}),maxWidth:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"maxWidth",model:q}),minHeight:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"minHeight",model:q}),minWidth:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"minWidth",model:q}),opacity:new io.LongFloatNumberCSSPropertyValidator({config:e,propertyName:"opacity",model:q}),paddingBottom:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"paddingBottom",model:q}),paddingLeft:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"paddingLeft",model:q}),paddingRight:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"paddingRight",model:q}),paddingTop:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"paddingTop",model:q}),transform:new E6.LongCSSToReactNativeValidator({config:e,propertyName:"transform",model:q}),width:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"width",model:q}),zIndex:new io.LongFloatNumberCSSPropertyValidator({config:e,propertyName:"zIndex",model:q}),direction:new he.LongEnumerationCSSPropertyValidator({config:e,model:N6,propertyName:"direction"},["auto","ltr","rtl"])}}Object.defineProperty(o1,"__esModule",{value:!0});o1.CSSPropertiesValidationRegistry=void 0;var q6=D6(Di);function D6(e){return e&&e.__esModule?e:{default:e}}function za(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _c(e){const t={};return e.forEach(r=>{t[r]=!0}),t}class I6{constructor(t){za(this,"validators",void 0),za(this,"ignoredPropertiesRegistry",void 0),za(this,"allowedPropertiesRegistry",void 0),this.validators=(0,q6.default)(t),this.ignoredPropertiesRegistry=_c(t.inlinePropertiesBlacklist),this.allowedPropertiesRegistry=t.inlinePropertiesWhitelist?_c(t.inlinePropertiesWhitelist):null}isInlinePropertyAllowed(t){return this.allowedPropertiesRegistry?!!this.allowedPropertiesRegistry[t]:!this.ignoredPropertiesRegistry[t]}shouldRegisterInlineProperty(t){return this.isInlinePropertyAllowed(t)&&!!this.validators[t]}getValidatorForProperty(t){return this.validators[t]||null}}o1.CSSPropertiesValidationRegistry=I6;var On={};Object.defineProperty(On,"__esModule",{value:!0});On.defaultCSSProcessorConfig=void 0;const wl=96,Pl=wl*2.54,k6=Pl/10,xl=4/3,F6=12*xl,V6={absoluteLengthUnitsMultiplicators:{cm:Pl,in:wl,mm:k6,pc:F6,pt:xl},absoluteBorderWidthsPixelMap:{medium:2.5,thick:5,thin:1},absoluteFontSizesPixelMap:{medium:14,"xx-small":8.5,"x-small":10,small:12,large:17,"x-large":20,"xx-large":24},relativeFontSizesCoefficientMap:{larger:1.2,smaller:.83},inlinePropertiesBlacklist:[],rootFontSize:16,inlinePropertiesWhitelist:null,isFontSupported(){return!0}};On.defaultCSSProcessorConfig=V6;Object.defineProperty(t1,"__esModule",{value:!0});t1.CSSProcessor=void 0;var z6=r1,U6=n1,B6=o1,W6=On;function H6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class j6{constructor(t){H6(this,"registry",void 0);const r={...W6.defaultCSSProcessorConfig,...t};this.registry=new B6.CSSPropertiesValidationRegistry(r)}compileStyleDeclaration(t){return new U6.CSSNativeParseRun(t,this.registry).exec()}compileInlineCSS(t){return new z6.CSSInlineParseRun(t,this.registry).exec()}}t1.CSSProcessor=j6;var G6={},Q6={},X6={},Y6={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t={CSSProcessor:!0,CSSProcessedProps:!0,mergeProps:!0};Object.defineProperty(e,"CSSProcessor",{enumerable:!0,get:function(){return r.CSSProcessor}}),Object.defineProperty(e,"CSSProcessedProps",{enumerable:!0,get:function(){return n.CSSProcessedProps}}),Object.defineProperty(e,"mergeProps",{enumerable:!0,get:function(){return d.default}}),e.default=void 0;var r=t1,n=Pn,o=G6;Object.keys(o).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===o[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return o[h]}})});var i=On;Object.keys(i).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===i[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return i[h]}})});var a=Q6;Object.keys(a).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===a[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return a[h]}})});var c=X6;Object.keys(c).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===c[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return c[h]}})});var l=Y6;Object.keys(l).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===l[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return l[h]}})});var d=p(xn);function p(h){return h&&h.__esModule?h:{default:h}}var v=r.CSSProcessor;e.default=v})(e1);function Z6(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}var Ii=Z6,J6=Ii;function K6(e){return function t(r){return arguments.length===0||J6(r)?t:e.apply(this,arguments)}}var Kt=K6,e7=Kt,t7=e7(function(t){return t==null}),r7=t7,n7=Kt,o7=n7(function(t){return!t}),a7=o7;function i7(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(r){return t.apply(this,arguments)};case 2:return function(r,n){return t.apply(this,arguments)};case 3:return function(r,n,o){return t.apply(this,arguments)};case 4:return function(r,n,o,i){return t.apply(this,arguments)};case 5:return function(r,n,o,i,a){return t.apply(this,arguments)};case 6:return function(r,n,o,i,a,c){return t.apply(this,arguments)};case 7:return function(r,n,o,i,a,c,l){return t.apply(this,arguments)};case 8:return function(r,n,o,i,a,c,l,d){return t.apply(this,arguments)};case 9:return function(r,n,o,i,a,c,l,d,p){return t.apply(this,arguments)};case 10:return function(r,n,o,i,a,c,l,d,p,v){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var Cl=i7;function s7(e,t){return function(){return t.call(this,e.apply(this,arguments))}}var c7=s7,Ua=Kt,en=Ii;function u7(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return en(r)?t:Ua(function(o){return e(r,o)});default:return en(r)&&en(n)?t:en(r)?Ua(function(o){return e(o,n)}):en(n)?Ua(function(o){return e(r,o)}):e(r,n)}}}var ki=u7,fo=Kt,lr=ki,Se=Ii;function l7(e){return function t(r,n,o){switch(arguments.length){case 0:return t;case 1:return Se(r)?t:lr(function(i,a){return e(r,i,a)});case 2:return Se(r)&&Se(n)?t:Se(r)?lr(function(i,a){return e(i,n,a)}):Se(n)?lr(function(i,a){return e(r,i,a)}):fo(function(i){return e(r,n,i)});default:return Se(r)&&Se(n)&&Se(o)?t:Se(r)&&Se(n)?lr(function(i,a){return e(i,a,o)}):Se(r)&&Se(o)?lr(function(i,a){return e(i,n,a)}):Se(n)&&Se(o)?lr(function(i,a){return e(r,i,a)}):Se(r)?fo(function(i){return e(i,n,o)}):Se(n)?fo(function(i){return e(r,i,o)}):Se(o)?fo(function(i){return e(r,n,i)}):e(r,n,o)}}}var $l=l7,Tl=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function d7(e){return Object.prototype.toString.call(e)==="[object String]"}var Ml=d7,f7=Kt,p7=Tl,h7=Ml,g7=f7(function(t){return p7(t)?!0:!t||typeof t!="object"||h7(t)?!1:t.nodeType===1?!!t.length:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),m7=g7,v7=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,r){return this.f(t,r)},e}();function y7(e){return new v7(e)}var _7=y7,b7=Cl,S7=ki,w7=S7(function(t,r){return b7(t.length,function(){return t.apply(r,arguments)})}),P7=w7,x7=m7,C7=_7,$7=P7;function T7(e,t,r){for(var n=0,o=r.length;n({...r,...n}),Object.prototype)}class Vi{constructor(t,r){dr(this,"nativeTextFlow",void 0),dr(this,"nativeBlockFlow",void 0),dr(this,"nativeTextRet",void 0),dr(this,"nativeBlockRet",void 0),dr(this,"webTextFlow",void 0),dr(this,"webBlockRet",void 0),this.nativeTextFlow=po(r==null?void 0:r.nativeTextFlow,t.native.text.flow),this.nativeBlockFlow=po(r==null?void 0:r.nativeBlockFlow,t.native.block.flow),this.webTextFlow=po(r==null?void 0:r.webTextFlow,t.web.text.flow),this.nativeTextRet=po(r==null?void 0:r.nativeTextRet,t.native.text.retain),this.nativeBlockRet=t.native.block.retain,this.webBlockRet=t.web.block.retain}static empty(){return new Vi(new o3.CSSProcessedProps)}}Or.TStyles=Vi;var _1={};Object.defineProperty(_1,"__esModule",{value:!0});_1.default=void 0;const u3={anchor:!1,edits:"none",lang:"en",olNestLevel:-1,ulNestLevel:-1,direction:"ltr",extend(){return Object.create(this)},toString(){let e=`Markers { `;for(const t in this){const r=this[t];typeof r!="function"&&(e+=` ${t}: ${JSON.stringify(r)} `)}return e+"}"}};var l3=u3;_1.default=l3;var zi={};Object.defineProperty(zi,"__esModule",{value:!0});zi.default=Nl;function Pc(e){return Object.entries(e).reduce((r,[n,o])=>`${r}${r?",":""} ${n}: ${JSON.stringify(o)}`,"")}function d3(e,{withNodeIndex:t,withStyles:r}){var n;const o=e.tagName?`tagName="${e.tagName}"`:"anonymous",i=e.isUnregistered?"unregistered":null,a=t?`nodeIndex={${e.nodeIndex}}`:null,c=e.id?`id=${e.id}`:null,l=(n=e.classes)!==null&&n!==void 0&&n.length?`classes={[${e.classes.join(", ")}]}`:null,d=e.type==="text"?`data=${JSON.stringify(e.data)}`:null,p=typeof e.attributes.href=="string"?`href=${JSON.stringify(e.attributes.href)}`:null,v=typeof e.attributes.src=="string"?`src=${JSON.stringify(e.attributes.src)}`:null,h=r?Pc(e.getNativeStyles()):null,N=h?`nativeStyles={{${h} }}`:null,T=r?Pc(e.getWebStyles()):null,M=T?`webStyles={{${T}}}`:null,E=[o,i,a,c,l,d,p,v,N,M].filter(D=>D!==null).join(" ");return`<${e.displayName} ${E}`}function Nl(e,t){const{parentLeftPrefix:r="",isChild:n=!1,isLast:o=!0,withStyles:i,withNodeIndex:a}=t,c=n?" ":"",l=r+c,d=e.children.map((p,v)=>Nl(p,{parentLeftPrefix:r+"".padStart(c.length," "),isChild:!0,isLast:v===e.children.length-1,withStyles:i,withNodeIndex:a})).join("");return`${l}${d3(e,{withStyles:i,withNodeIndex:a})}${d?`> ${d} diff --git a/assets/HtmlContent.stories-DYaJeNgF.js b/assets/HtmlContent.stories-BaK6654Z.js similarity index 90% rename from assets/HtmlContent.stories-DYaJeNgF.js rename to assets/HtmlContent.stories-BaK6654Z.js index 4ed3088a..58d78e1b 100644 --- a/assets/HtmlContent.stories-DYaJeNgF.js +++ b/assets/HtmlContent.stories-BaK6654Z.js @@ -1 +1 @@ -import{j as m}from"./jsx-runtime-Bxcv0yjW.js";import{H as i}from"./HtmlContent-d1LdVFX3.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useOpenUrl-BQFKyC8S.js";import"./index-kbHxBZ_W.js";import"./index-DEfxrPnc.js";import"./index-DFkxGuuM.js";import"./client-BGlHIwA3.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-CDv7s-w8.js";import"./index-Ce74jbsy.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./index-CkqLweLe.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./index-k6NSpe5t.js";import"./index-DZxzYa9i.js";import"./index-BW2XZOZc.js";import"./index-BXDkY5MO.js";import"./Phrase-D4XuA9hP.js";import"./useThemable-ua4U8LzO.js";import"./base-color-B2rPH-Aj.js";import"./useOpenMailUrl-Blrf_PL9.js";import"./useOpenPhoneUrl-TB9t0oDt.js";import"./index-Dk74W0Oi.js";import"./Column-CFK5NdwL.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Row-D-wvv0CV.js";import"./ListItemMarker-DmJOL3FK.js";import"./config-BZnShabN.js";import"./useDeviceContext-Cm8FgCCV.js";import"./useIsScreenReaderEnabled-A65pchNu.js";const Y={component:i},e=n=>m.jsx(i,{...n});e.args={content:'

Bullebak (brug 149)

De Bullebak verbindt de Marnixstraat met de Korte Marnixstraat, richting het Haarlemmerplein. De brug kende al lange tijd problemen met openen en sluiten. In de zomer 2018 sprong hij zelfs ineens open. We vervangen nu de monumentale brug helemaal. Dit is een ingewikkelde klus, omdat de brug is ingeklemd tussen kwetsbare kademuren en omgeven door kabels en leidingen. De Bullebak is tijdens de werkzaamheden afgesloten voor trams, bussen en auto’s. Alleen fietsers, voetgangers en de brandweer houden hun doorgang via een tijdelijke hulpbrug. De vervanging van de bruggen is onderdeel van het project Binnenring.

Wanneer

De werkzaamheden zijn 12 augustus 2020 gestart en duren tot juni 2023.

',isIntro:!1};var t,r,o;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:"args => ",...(o=(r=e.parameters)==null?void 0:r.docs)==null?void 0:o.source}}};const Z=["Default"];export{e as Default,Z as __namedExportsOrder,Y as default}; +import{j as m}from"./jsx-runtime-Bxcv0yjW.js";import{H as i}from"./HtmlContent-cfOAoYaH.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useOpenUrl-DnQVF1wQ.js";import"./index-kbHxBZ_W.js";import"./index-DEfxrPnc.js";import"./index-DFkxGuuM.js";import"./client-BGlHIwA3.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-CDv7s-w8.js";import"./index-Ce74jbsy.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./index-CkqLweLe.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./index-k6NSpe5t.js";import"./index-DZxzYa9i.js";import"./index-BW2XZOZc.js";import"./index-BXDkY5MO.js";import"./Phrase-CZOdtc60.js";import"./useThemable-ua4U8LzO.js";import"./base-color-B2rPH-Aj.js";import"./useOpenMailUrl-Blrf_PL9.js";import"./useOpenPhoneUrl-TB9t0oDt.js";import"./index-Dk74W0Oi.js";import"./Column-CFK5NdwL.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Row-D-wvv0CV.js";import"./ListItemMarker-CUNXp5YB.js";import"./config-BZnShabN.js";import"./useDeviceContext-Cm8FgCCV.js";import"./useIsScreenReaderEnabled-A65pchNu.js";const Y={component:i},e=n=>m.jsx(i,{...n});e.args={content:'

Bullebak (brug 149)

De Bullebak verbindt de Marnixstraat met de Korte Marnixstraat, richting het Haarlemmerplein. De brug kende al lange tijd problemen met openen en sluiten. In de zomer 2018 sprong hij zelfs ineens open. We vervangen nu de monumentale brug helemaal. Dit is een ingewikkelde klus, omdat de brug is ingeklemd tussen kwetsbare kademuren en omgeven door kabels en leidingen. De Bullebak is tijdens de werkzaamheden afgesloten voor trams, bussen en auto’s. Alleen fietsers, voetgangers en de brandweer houden hun doorgang via een tijdelijke hulpbrug. De vervanging van de bruggen is onderdeel van het project Binnenring.

Wanneer

De werkzaamheden zijn 12 augustus 2020 gestart en duren tot juni 2023.

',isIntro:!1};var t,r,o;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:"args => ",...(o=(r=e.parameters)==null?void 0:r.docs)==null?void 0:o.source}}};const Z=["Default"];export{e as Default,Z as __namedExportsOrder,Y as default}; diff --git a/assets/Icon-X_MsqpOP.js b/assets/Icon-DbPHcDCx.js similarity index 99% rename from assets/Icon-X_MsqpOP.js rename to assets/Icon-DbPHcDCx.js index 468847ea..ea541d8e 100644 --- a/assets/Icon-X_MsqpOP.js +++ b/assets/Icon-DbPHcDCx.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{r as V}from"./index-mfbfsM12.js";import{S as p,P as m}from"./index-BtN4QjYR.js";import{R as z}from"./Row-D-wvv0CV.js";import{A as h,E as L}from"./Animated-CFNSbqHF.js";import{I as Z}from"./types-BJ_48vsK.js";import{u as d}from"./useDeviceContext-Cm8FgCCV.js";import{u as g}from"./useTheme-ChTiG3MC.js";import{V as f}from"./index-BP1Ij_Cs.js";const r=({children:e})=>{const t=V.useRef(new h.Value(0));return V.useEffect(()=>{const{start:l,stop:v}=h.loop(h.timing(t.current,{toValue:360,duration:1e3,easing:L.linear,useNativeDriver:!0}));return l(),v},[]),a.jsx(z,{align:"center",children:a.jsx(h.View,{accessibilityLabel:"Bezig …",accessible:!0,style:{transform:[{rotate:t.current.interpolate({inputRange:[0,360],outputRange:["0deg","360deg"]})}]},children:e})})};try{r.displayName="Rotator",r.__docgenInfo={description:"Indicates activity, often while performing network tasks.\nBest used through `PleaseWait` rather than by itself.",displayName:"Rotator",props:{}}}catch{}const k={accessCode:{path:"M1 10H5V14H1V10ZM7 10H11V14H7V10ZM13 10H17V14H13V10ZM19 10H23V14H19V10ZM2 2H4V8H2V2ZM2 16H4V22H2V16ZM20 2H22V8H20V2ZM20 16H22V22H20V16ZM22 2V4H2V2H22ZM22 20V22H2V20H22Z",viewBox:"0 0 24 24"},alarm:{path:"M22.5 52.5H0L0 45H1.875C6.01714 45 9.375 41.6421 9.375 37.5V18.75C9.375 10.4657 16.0907 3.75 24.375 3.75H26.25C26.25 1.67893 27.9289 0 30 0C32.0711 0 33.75 1.67893 33.75 3.75H35.625C43.9093 3.75 50.625 10.4657 50.625 18.75V37.5C50.625 41.6421 53.9829 45 58.125 45H60V52.5H37.5C37.5 56.6421 34.1421 60 30 60C25.8579 60 22.5 56.6421 22.5 52.5ZM26.25 52.5C26.25 54.5711 27.9289 56.25 30 56.25C32.0711 56.25 33.75 54.5711 33.75 52.5H26.25ZM16.875 18.75V37.5C16.875 40.2322 16.1445 42.7937 14.8683 45H45.1317C43.8555 42.7937 43.125 40.2322 43.125 37.5V18.75C43.125 14.6079 39.7671 11.25 35.625 11.25H24.375C20.2329 11.25 16.875 14.6079 16.875 18.75Z",viewBox:"0 0 60 60"},alarmFilled:{path:"M15 23a3 3 0 0 1-6 0h6ZM0 21h24v-3h-.75a3 3 0 0 1-3-3v-7.5a6 6 0 0 0-6-6h-.75a1.5 1.5 0 0 0-3 0h-.75a6 6 0 0 0-6 6V15a3 3 0 0 1-3 3H0v3Z",viewBox:"0 0 26 26"},alert:{path:"m15.9 2.3-16 28.6h32l-16-28.6zm0 8.4 9 16.1h-18l9-16.1zm-1 5.9h2v5.1h-2v-5.1zm2 8.1v-2h-2v2h2z"},announcement:{path:"M23 0v11.6c1.8.6 3 2.3 3 4.2s-1.2 3.6-3 4.2v11.6L12.6 26l-5.2 5.2-2.8-2.8 4.3-4.3-1.5-.8H0v-15h7.4L23 0zM4 12.3v7h4v-7H4zM19 25l-9-4.8v-8.7l9-4.8V25zM29.4 8.1l-3.1 3.1 1.4 1.4 3.1-3.1-1.4-1.4zm-1.7 11-1.4 1.4 3.1 2.9 1.4-1.4-3.1-2.9zm.3-4.3h4v2h-4v-2z"},api:{path:"M18.593 17.812a.938.938 0 0 1 0 1.326l-2.217 2.216 2.12 2.12L16.975 25H9.126l-5 5L2 27.879l4.99-4.99V15.01l1.521-1.521 2.12 2.12 2.217-2.217a.937.937 0 1 1 1.325 1.326l-2.216 2.217 3.093 3.093 2.217-2.216a.938.938 0 0 1 1.326 0zM30 4.121 27.879 2l-4.907 4.907-.9-.9h-6l-3.1 3 10 10 3.1-3v-6l-.982-.982z"},asterisk:{path:"M9.01453 0.564453C10.1815 0.564453 11.4263 0.875651 12.2821 1.22575L10.0648 7.60535L15.3163 3.59865C15.8998 4.22105 16.5611 5.34915 16.9501 6.36055C17.3002 7.41085 17.4169 8.65565 17.3002 9.55035L10.6872 9.51145L16.1721 13.3626C15.7053 14.2184 14.8495 15.1131 13.9159 15.7744C12.9823 16.4746 11.8153 16.9025 10.8428 17.097L9.01453 10.7174L7.18623 17.097C6.29153 16.9025 5.12453 16.4746 4.11313 15.7744C3.17953 15.1131 2.36263 14.2184 1.89583 13.3626L7.34183 9.51145L0.806629 9.55035C0.612129 8.65565 0.728829 7.41085 1.11783 6.36055C1.46793 5.34915 2.16813 4.22105 2.71273 3.59865L8.00313 7.60535L5.74693 1.22575C6.60273 0.875651 7.84753 0.564453 9.01453 0.564453Z",viewBox:"0 0 18 18"},attachment:{path:"M19.9997 7.99967C19.9997 4.31778 17.0149 1.33301 13.333 1.33301C9.65111 1.33301 6.66634 4.31778 6.66634 7.99967V14.6663V17.333V21.333C6.66634 26.4877 10.845 30.6663 15.9997 30.6663C21.1543 30.6663 25.333 26.4877 25.333 21.333V10.6663H22.6663V21.333C22.6663 25.0149 19.6816 27.9997 15.9997 27.9997C12.3178 27.9997 9.33301 25.0149 9.33301 21.333V17.333V14.6663V7.99967C9.33301 5.79054 11.1239 3.99967 13.333 3.99967C15.5421 3.99967 17.333 5.79054 17.333 7.99967V17.333V21.333C17.333 22.0694 16.7361 22.6663 15.9997 22.6663C15.2633 22.6663 14.6663 22.0694 14.6663 21.333V10.6663H11.9997V21.333C11.9997 23.5421 13.7905 25.333 15.9997 25.333C18.2088 25.333 19.9997 23.5421 19.9997 21.333V17.333V7.99967Z"},chat:{path:"M23.5 12.5H6.5V10.5H23.5V12.5ZM19.5 14.5H6.5V16.5H19.5V14.5ZM31.5 5V22H20.5V27L15.5 22H0.5V5H31.5ZM29.5 7H2.5V20H29.5V7Z"},"circle-check-mark":{path:"m7.07 9.88 2.64 2.89 5.91-6.08 1.43 1.4-7.38 7.6-4.07-4.46 1.47-1.35ZM0 11C0 4.92 4.92 0 11 0s11 4.92 11 11-4.92 11-11 11S0 17.08 0 11Zm2 0c0 4.96 4.04 9 9 9s9-4.04 9-9-4.04-9-9-9-9 4.04-9 9Z",viewBox:"0 0 22 22"},backspace:{path:"M3.30599 16L10.866 7H29V25H10.866L3.30599 16Z M23.7279 11.7423L15.2426 20.2275 M15.2426 11.7431L23.7278 20.2284"},camera:{path:"M30 6.25V3.75H10V6.25H0V37.5H40V6.25H30ZM35 32.5H5V11.25H35V32.5ZM20 30C24.4873 30 28.125 26.3623 28.125 21.875C28.125 17.3877 24.4873 13.75 20 13.75C15.5127 13.75 11.875 17.3877 11.875 21.875C11.875 26.3623 15.5127 30 20 30ZM20 16.25C23.1066 16.25 25.625 18.7684 25.625 21.875C25.625 24.9816 23.1066 27.5 20 27.5C16.8934 27.5 14.375 24.9816 14.375 21.875C14.375 18.7684 16.8934 16.25 20 16.25ZM32.5 16.25H30V13.75H32.5V16.25Z",viewBox:"0 0 40 40"},car:{path:"M24 20a3 3 0 1 1 0 6 3 3 0 0 1 0-6zM7 20a3 3 0 1 1 0 6 3 3 0 0 1 0-6zM19 7l7 7h6v9h-3a5 5 0 0 0-10 0h-7a5 5 0 0 0-10 0H0v-9l7-7h12zm-1 2h-5v5h9.962L18 9zm-7 0H8l-5 5h8V9z"},card:{path:"M30.223 26.668H1.777V5.332h28.446ZM5.332 23.109h21.336V8.891H5.332Zm8.535-6.043H8.891a1.78 1.78 0 0 0-1.782 1.778v2.488h8.536v-2.488a1.78 1.78 0 0 0-1.778-1.778Zm11.024-1.957h-2.668v-2.664h-1.778v2.664h-2.668v1.782h2.668v2.664h1.778V16.89h2.668ZM8.523 13.52a2.854 2.854 0 1 0 5.709.003 2.854 2.854 0 0 0-5.709-.002"},chatting:{path:"M23.4 7h-15V5.5h15V7zm-4 1.5h-11V10h11V8.5zm10-7v13h-9v5l-5-5h-13v-13h27zm-2 2h-23v9h23v-9zm-2.5 24h-3.7c-2.1 0-3.6.9-3.6 3.6v.9h11v-.9c0-2.7-1.6-3.6-3.7-3.6zm.9-3.7c.2-1.1-.3-2.2-1.2-2.9-.9-.6-2.2-.6-3.1 0s-1.4 1.8-1.2 2.9c.3 1.3 1.4 2.3 2.8 2.3s2.4-1 2.7-2.3zm-14.9 3.7H7.2c-2.1 0-3.6.9-3.6 3.6v.9h11v-.9c0-2.7-1.6-3.6-3.7-3.6zm.9-3.7c.2-1.1-.3-2.2-1.2-2.9s-2.2-.6-3.1 0-1.4 1.8-1.2 2.9c0 .7.3 1.4.8 1.9s1.2.8 2 .8c1.5 0 2.7-1.2 2.7-2.7z"},"check-mark":{path:"M12.1 27-.1 14.2l2.9-2.8 9.3 9.8L29 4l2.9 2.8L12.1 27z"},"chevron-down":{path:"m15.9 25.8-16-16 2.9-2.9L15.9 20 29 6.9l2.9 2.9-16 16z"},"chevron-left":{path:"m23.237 32-16-16 16-16 2.9 2.91L13.057 16l13.08 13.09-2.9 2.91Z"},"chevron-right":{path:"m9.6 32-2.9-2.9L19.8 16 6.7 2.9 9.6 0l16 16-16 16z"},"chevron-up":{path:"M29 25.8 15.9 12.7 2.8 25.8l-2.9-2.9 16-16 16 16-2.9 2.9z"},child:{path:"M20.7777 8.07237C20.3489 4.64873 17.4277 2 13.8879 2C10.0529 2 6.94394 5.10891 6.94394 8.94394C6.99381 12.7581 10.0737 15.838 13.8879 15.8879C14.3533 15.8818 14.8078 15.8306 15.2472 15.7384C15.2039 15.4404 15.1796 15.1362 15.1756 14.8271L15.1754 14.815V14.8029C15.1754 11.4474 17.5907 8.65594 20.7777 8.07237ZM10.1844 29.7758H0V27.4611C0 20.5172 3.88861 18.2025 9.25859 18.2025H16.1059C16.4217 18.7463 16.8097 19.243 17.2566 19.6796C15.5916 19.8588 13.9819 20.3883 12.6926 21.5233C10.9893 23.0226 10.1844 25.2734 10.1844 28.1121V29.7758ZM32.0003 29.7758H12.0365V28.1122C12.0365 23.1212 14.8314 21.4576 18.6911 21.4576H25.3457C29.2054 21.4576 32.0003 23.1212 32.0003 28.1122V29.7758ZM22.0184 19.7939C24.7598 19.7581 26.9735 17.5444 27.0093 14.803C27.0093 12.0465 24.7748 9.81201 22.0184 9.81201C19.2619 9.81201 17.0274 12.0465 17.0274 14.803C17.0633 17.5444 19.2769 19.7581 22.0184 19.7939Z"},circle:{path:"M4 16c0 6.6 5.4 12 12 12s12-5.4 12-12S22.6 4 16 4 4 9.4 4 16"},"city-office":{path:"M16 8c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zm16 9v2h-2v13h-2v-2H4v2H2V19H0v-2h32zm-4 9v-5H4v5h24zM8 15V12.2c.1-1.7 1.5-3.1 3.2-3.2H20.5c1.8 0 3.3 1.4 3.4 3.2V15H8z"},"city-pass-pass":{path:"M4 6C1.79086 6 0 7.79086 0 10V22C0 24.2091 1.79086 26 4 26H28C30.2091 26 32 24.2091 32 22V10C32 7.79086 30.2091 6 28 6H4ZM18.1818 10.5H11.0909V14.3182H15.4545L10 19.7727L12.6999 22.4726L18.1818 16.9906V21.4091H22V14.3182V10.5H18.1818Z"},"city-pass":{path:"M5.44005 0.461548H26.6331L26.6331 21.7238H18.4154V15.96L6.87457 27.5385L0.0769043 20.7186L12.0504 8.70608H5.44005V0.461548Z"},clock:{path:"M15.9 0C7 0-.1 7.2-.1 16s7.2 16 16 16 16-7.2 16-16c0-4.2-1.7-8.3-4.7-11.3S20.1 0 15.9 0zm.9 28v-2h-2v1.9C9 27.4 4.4 22.8 4 17h1.9v-2H4C4.4 9.2 9 4.5 14.9 4.1V6h2V4.1c5.8.4 10.4 5.1 10.9 10.9h-1.9v2h1.9c-.5 5.9-5.1 10.6-11 11zm.1-13h4v2h-6V9h2v6z"},close:{path:"M29.333 5.47 26.53 2.668 16 13.187 5.47 2.666 2.668 5.47 13.187 16 2.666 26.53l2.804 2.803L16 18.813l10.53 10.52 2.803-2.804L18.813 16z"},collaborate:{path:"m26.3 18.3 5.3-5.3L19.9 1.4l-4.2 4.2-3.8-3.8L.5 13.2l5.4 5.4-1.2 1.2a2.9 2.9 0 0 0 0 4.2 2.9 2.9 0 0 0 2.1.9 3.1 3.1 0 0 0 .9 2.2 3.3 3.3 0 0 0 2.2.8 3.3 3.3 0 0 0 .8 2.2 3.1 3.1 0 0 0 2.2.9 2.7 2.7 0 0 0 2.1-.9l1.2-1.2.9.9a3.3 3.3 0 0 0 2.1.9 3.4 3.4 0 0 0 2.2-.9 3.1 3.1 0 0 0 .9-2.2 2.9 2.9 0 0 0 2.1-.9 2.7 2.7 0 0 0 .9-2.1 3.1 3.1 0 0 0 3-3 3.1 3.1 0 0 0-.9-2.2l-1.1-1.1zM19.9 4.2l8.8 8.8-3.5 3.6-.3.3-7.2-7.2-2.4 2.4a1.2 1.2 0 0 1-1.6 0 1.2 1.2 0 0 1 0-1.7l6.2-6.2zM7.6 22.6a1.1 1.1 0 0 1-1.5 0 1 1 0 0 1 0-1.4L7.3 20l1.5 1.4-1.2 1.2zm3 3a1.1 1.1 0 0 1-1.5 0 .9.9 0 0 1-.3-.7 1.1 1.1 0 0 1 .3-.7l1.2-1.2 1.5 1.5-1.2 1.1zm3 3.1a1 1 0 0 1-1.4 0 1.1 1.1 0 0 1-.3-.8 1.1 1.1 0 0 1 .3-.7l1.1-1.2 1.5 1.5-1.2 1.2zM26 22.3a1 1 0 0 1-1.4 0L21.3 19l-1.6 1.6 3.3 3.3a1 1 0 0 1 0 1.4 1.1 1.1 0 0 1-.7.3 1.1 1.1 0 0 1-.8-.3l-3.2-3.2-1.6 1.5 3.3 3.3a1.1 1.1 0 0 1 0 1.5 1.1 1.1 0 0 1-.8.3 1.1 1.1 0 0 1-.7-.3L3.3 13.2l.2-.2 8.4-8.4L14.3 7l-2 2a3.1 3.1 0 0 0 0 4.5 3.3 3.3 0 0 0 4.5 0l.9-.9 8.3 8.3a1 1 0 0 1 0 1.4z"},"construction-work":{path:"m31.2 26.7-2.3-2.4-1.6 1.5-3.2-3.2-4-12.8c-.2-.7-.5-1.3-1.1-1.8l-3.8-3.7-.4-.4L13 2.1l-.3-.3L7 7.9l2.4 2.4 2.2 2.2-2.7 3.9L0 31.7h4l7-12.1 4.2 4.4v7.7h3.5v-9.1L15 18.8l1.2-1.7L26 27l-1.6 1.4 2.2 2.5c.6.6 1.4.9 2.2 1 .8.1 1.7-.2 2.3-.9.6-.6 1-1.3 1-2.2 0-.7-.3-1.5-.9-2.1zM10.6 9.1l2.2-2.3 1.7 1.7-1.8 2.5-2.1-1.9zm7.7 4.8 1.3 4-2.4-2.4 1.1-1.6z M17.5,4a3.2,3.2 0 1,0 6.4,0a3.2,3.2 0 1,0 -6.4,0"},copy:{path:"M14 2H6V4H12V12H14V2ZM4 0V4H3.5H0V18H12V14H16V0H4ZM3.5 6H2V16H10V6H4.5H3.5Z",viewBox:"0 0 16 18"},document:{path:"M25.5014 0H5.71387V40H35.7139V10.2125L25.5014 0ZM10.7139 35V5H23.2139V12.5H30.7139V35H10.7139Z",viewBox:"0 0 40 40"},"document-text":{path:"m17.6 5 5.4 5.4V27H9V5h8.6m1.3-3H6v28h20V9.1L18.9 2zM11 16h10v-2H11v2zm0 4h10v-2H11v2zm0 4h10v-2H11v2z"},download:{path:"M12.125 11.4858L14.85 8.75821L16.6187 10.5224L10.875 16.2778L5.13125 10.5224L6.9 8.75821L9.625 11.4858V0H12.125V11.4858ZM20.875 20V17.4977H0.875V20H20.875Z",viewBox:"0 0 20 20"},edit:{path:"M24.5 1 4.2 21.3 1 31l9.7-3.2L31 7.5 24.5 1zM6.3 27.1 5 25.7 6 23l3 3.1-2.7 1z"},email:{path:"M-.1 4.6v24h32v-24h-32zM16 16.9 5.9 8.6H26l-10 8.3zm-4.8-1.3-7.3 6.8V9.5l7.3 6.1zm1.6 1.3 3.2 2.7 3.1-2.6 8.2 7.6H4.4l8.4-7.7zm7.8-1.2 7.2-6.1v12.8l-7.2-6.7z"},enlarge:{path:"M17.9 14V0h-4v14h-14v4h14v14h4V18h14v-4h-14z"},error:{path:"M16.1399 6.91003L17.5099 8.36003L13.5099 12.14L17.5099 15.91L16.1399 17.36L12.0599 13.51L7.97986 17.36L6.60986 15.91L10.5999 12.14L6.60986 8.36003L7.97986 6.91003L12.0599 10.76L16.1399 6.91003ZM1 12C1 5.92 5.92 1 12 1C18.08 1 23 5.92 23 12C23 18.08 18.08 23 12 23C5.92 23 1 18.08 1 12ZM21 12C21 7.04 16.96 3 12 3C7.04 3 3 7.04 3 12C3 16.96 7.04 21 12 21C16.96 21 21 16.96 21 12Z",viewBox:"0 0 24 24"},"external-link":{path:"M19.006 0H32.01v12.992h-4.002V6.826L14.434 20.417l-2.83-2.818L25.187 3.998h-6.182V0zm7.002 13.991L26.018 32H.01V6.016h17.975l-3.98 3.978.02.02H4.01v17.988h18.006l-.01-10.013 4-3.998z"},eye:{path:"M16 5C8.72727 5 2.51636 9.53853 0 15.945C2.51636 22.3515 8.72727 26.89 16 26.89C23.2727 26.89 29.4836 22.3515 32 15.945C29.4836 9.53853 23.2727 5 16 5ZM16 23.2417C11.9855 23.2417 8.72727 19.9728 8.72727 15.945C8.72727 11.9172 11.9855 8.64833 16 8.64833C20.0145 8.64833 23.2727 11.9172 23.2727 15.945C23.2727 19.9728 20.0145 23.2417 16 23.2417ZM16 11.567C13.5855 11.567 11.6364 13.5225 11.6364 15.945C11.6364 18.3675 13.5855 20.323 16 20.323C18.4145 20.323 20.3636 18.3675 20.3636 15.945C20.3636 13.5225 18.4145 11.567 16 11.567Z"},facade:{path:"M22.6 9.5V7.8h-1.1V6.4h-1V4.9h-.9V3.5h-1.1V2.2h-1V1h-2.9v1.2h-1v1.3h-1V4.9h-1v1.5h-1v1.4h-1v1.7h-1V31h15.3V9.5h-1.3zM13.7 6h4.6v4h-4.6V6zm1.2 22.9h-4v-8h4v8zm0-9.9h-4v-7h4v7zm6.2 9.9h-4v-8h4v8zm0-9.9h-4v-7h4v7z"},housing:{path:"M14 28h4.008v-8H14v8zm-2 0V18h8.008v10H28V12.98L16 5 4 13.516V28h8zM0 32V11.022L16 0l16 11.022V32H0z"},"park-sign":{path:"M4 0H28V32H4V0ZM24 4H8V28H24V4ZM6 2V30H26V2H6ZM12 8V19.7H14.79V15.884H16.626C19.002 15.884 20.676 14.21 20.676 11.942C20.676 9.674 18.984 8 16.626 8H12ZM16.392 13.67H14.79V10.214H16.392C17.238 10.214 17.85 10.934 17.85 11.942C17.85 12.986 17.238 13.67 16.392 13.67Z"},info:{path:"M15.9 2c-7.7 0-14 6.3-14 14s6.3 14 14 14 14-6.3 14-14-6.3-14-14-14zm0 24c-5.5 0-10-4.5-10-10s4.5-10 10-10 10 4.5 10 10-4.5 10-10 10zm-1-15h2V9h-2v2zm0 12h2V13h-2v10z"},keyboard:{path:"M2 6h28v20H2z M0 4h32v24H0z M7 10h3v3H7zM7 15h3v3H7zM12 10h3v3h-3zM12 15h3v3h-3zM10 20h12v2H10zM17 10h3v3h-3zM17 15h3v3h-3zM22 10h3v3h-3zM22 15h3v3h-3z"},list:{path:"M32.0064 22V26H9.69577V22H32.0064ZM5.52556 22V26H1.35535V22H5.52556ZM32.0064 14V18H9.69577V14H32.0064ZM5.52556 14V18H1.35535V14H5.52556ZM32.0064 6V10H9.69577V6H32.0064ZM5.52556 6V10H1.35535V6H5.52556Z"},location:{path:"m16.679 32-1.23-1.086c-.45-.369-10.878-9.68-10.878-18.806C4.571 5.42 9.992 0 16.68 0s12.108 5.42 12.108 12.108c0 9.126-10.428 18.438-10.879 18.806L16.68 32Zm0-28.271A8.39 8.39 0 0 0 8.3 12.108c0 5.387 5.244 11.728 8.369 14.842 2.591-2.55 8.389-9.034 8.389-14.842a8.39 8.39 0 0 0-8.379-8.38Zm0 12.476a4.097 4.097 0 1 0 0-8.195 4.097 4.097 0 0 0 0 8.195Z"},lock:{path:"M12 3C9.79086 3 8 4.79086 8 7V13H6V7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7V13H16V7C16 4.79086 14.2091 3 12 3Z",viewBox:"0 0 24 24"},login:{path:"M17.777 1.777v3.555h8.891v21.336h-8.89v3.555h12.445V1.777ZM16.73 7.832l-2.507 2.516 3.875 3.875H1.778v3.554h16.32l-3.875 3.875 2.507 2.516L24.906 16Zm0 0"},"organic-waste-container":{path:"M23.2 4.8C22.9 2.1 19.6 0 15.7 0S8.5 2.2 8.1 4.8H7V30H3.9v2h24v-2h-3.2V4.8h-1.5zM12.3 2.4h6.9v6.9h-6.9V2.4zM22.7 29H9V12.6h13.7V29z"},person:{path:"M31 32H1v-2.5c0-7.5 4.2-10 10-10h10c5.8 0 10 2.5 10 10V32ZM16 17a7.6 7.6 0 0 0 7.5-7.5 7.5 7.5 0 0 0-15 0A7.6 7.6 0 0 0 16 17Z"},"person-desk":{path:"M30 16v2h-2v12h-2v-2H6v2H4V18H2v-2h28zm-4 4H6v4h20v-4zM18 8.98c2.3 0 4 1 4 4v1H10v-1c0-3 1.69-4 4-4zM16 2a2.99 2.99 0 1 1 0 5.98A2.99 2.99 0 0 1 16 2z"},phone:{path:"M30.4 26.9s-3.1 3.4-5.6 3.6-9.2-3.2-14.7-8.7c-5.5-5.5-9-11.4-8.7-14.7S5 1.5 5 1.5l7.1 7.1-2.8 2.8 11.2 11.2 2.8-2.8 7.1 7.1z"},picture:{path:"M0 3.75V36.25H40V3.75H0ZM35 22L27.875 14.625L22.5 20.125L24.125 21.75L27.875 18L35 25.375V31.25H6L16.625 20.5L19.25 23.25L21 25L24.5 28.75L26.125 27.25L16.25 17.375L5 28.875V8.75H35V22ZM7.5 13.75C7.5 12.3693 8.61929 11.25 10 11.25C11.3807 11.25 12.5 12.3693 12.5 13.75C12.5 15.1307 11.3807 16.25 10 16.25C8.61929 16.25 7.5 15.1307 7.5 13.75Z",viewBox:"0 0 40 40"},pointer:{path:"M29.18 14C28.3576 8.41126 23.9687 4.02245 18.38 3.2V0H14.38V3.2C8.77561 3.99119 4.3712 8.3956 3.58 14H0.380005V18H3.58C4.3712 23.6044 8.77561 28.0088 14.38 28.8V32H18.38V28.8C23.9534 27.947 28.327 23.5734 29.18 18H32.38V14H29.18ZM16.38 25C11.4094 25 7.38 20.9706 7.38 16C7.38 11.0294 11.4094 7 16.38 7C21.3506 7 25.38 11.0294 25.38 16C25.38 18.3869 24.4318 20.6761 22.744 22.364C21.0561 24.0518 18.767 25 16.38 25ZM21.38 16C21.38 18.7614 19.1414 21 16.38 21C13.6186 21 11.38 18.7614 11.38 16C11.38 13.2386 13.6186 11 16.38 11C19.1414 11 21.38 13.2386 21.38 16Z"},"question-mark-solid":{path:"M16 0C7.2 0 0 7.2 0 16s7.2 16 16 16 16-7.2 16-16S24.8 0 16 0zm-.4 24.3c-1.1 0-1.9-.8-1.9-1.9s.8-1.9 1.9-1.9 1.9.8 1.9 1.9c.1 1.1-.7 1.9-1.9 1.9zm3.3-8.7c-.9.9-1.9 1.9-1.9 2.9v.8h-2.7v-1.2c0-1.6.8-2.4 1.5-3.1.7-.7 1.5-1.2 1.5-2.4 0-.9-.7-1.3-1.7-1.3-.8 0-1.5.4-2 1.2l-2.3-2C12.4 9 13.7 8.4 16 8.4c2.8 0 4.5 1.5 4.5 3.7.2 1.5-.8 2.6-1.6 3.5z"},"question-mark-circle":{path:"M17.7234 24V22H15.6383V24H17.7234ZM12.5106 13C12.5106 10.79 14.3768 9 16.6808 9C18.9849 9 20.851 10.79 20.851 13C20.851 14.2829 20.0274 14.9733 19.2255 15.6455C18.4647 16.2833 17.7234 16.9046 17.7234 18V19.9919H15.6383V18C15.6383 16.1787 16.6205 15.4566 17.4841 14.8217C18.1615 14.3236 18.7659 13.8792 18.7659 13C18.7659 11.9 17.8276 11 16.6808 11C15.534 11 14.5957 11.9 14.5957 13H12.5106ZM16.6808 2C8.65317 2 2.08508 8.3 2.08508 16C2.08508 23.7 8.65317 30 16.6808 30C24.7085 30 31.2766 23.7 31.2766 16C31.2766 8.3 24.7085 2 16.6808 2ZM16.6808 26C10.9468 26 6.2553 21.5 6.2553 16C6.2553 10.5 10.9468 6 16.6808 6C22.4149 6 27.1064 10.5 27.1064 16C27.1064 21.5 22.4149 26 16.6808 26Z"},search:{path:"m32 29.119-9.825-9.825a12.217 12.217 0 1 0-2.88 2.881L29.118 32 32 29.119Zm-19.771-8.745a8.145 8.145 0 1 1 0-16.29 8.145 8.145 0 0 1 0 16.29Z"},settings:{path:"M0 18.6v-5.1H1.4c2.1-.4 3.5-2.3 3.1-4.4-.1-.6-.3-1.1-.6-1.6l-1-1 3.6-3.6V3l.9.9c1.7 1.2 4.1.8 5.3-.9.3-.4.5-.9.6-1.5V0h5.1V1.4c.4 2.1 2.3 3.5 4.4 3.1.5-.1 1-.3 1.5-.6l1-1 3.6 3.6h-.1l-.9.9c-1.1 1.5-.9 3.6.4 4.9.5.5 1.2.9 2 1.1H32v5.1H30.6c-2.1.4-3.5 2.4-3.1 4.4.1.5.3 1 .6 1.5l1 1-3.6 3.6v-.1l-.9-.9c-1.7-1.2-4.1-.8-5.3.9-.3.4-.5.9-.6 1.5V32h-5.1V30.6c-.4-2.1-2.3-3.5-4.4-3.1-.5.1-1 .3-1.5.6l-1 1-3.6-3.6h.1l.9-.9c1.2-1.7.8-4.1-.9-5.3-.4-.3-.9-.5-1.5-.6H0zM16 22c3.3 0 6-2.7 6-6s-2.7-6-6-6-6 2.7-6 6 2.7 6 6 6z"},spinner:{path:"M16.3 5c2.2 0 4.3.7 6.1 1.9 1.8 1.2 3.2 3 4 5 .8 2 1 4.2.6 6.4-.4 2.1-1.5 4.1-3.1 5.6s-3.5 2.6-5.7 3c-2.1.4-4.3.2-6.3-.7-2-.9-3.7-2.3-4.9-4.1-1.2-1.8-1.8-4-1.8-6.1"},"trash-bin":{path:"M21,4h8v4h-2v24H5V8H3V4h8V0h10V4z M19,2h-6v2h6V2z M23,28H9V8h14V28z M13,12h-2v12h2V12z M15,12h2v12h-2V12z M21,12h-2v12h2V12z"},"two-persons":{path:"M9.1 13.7c2.4 0 4.3-1.9 4.3-4.3s-1.9-4.3-4.3-4.3S4.8 7 4.8 9.4c.1 2.4 2 4.3 4.3 4.3zM25.7 20.5H20c-.8 0-1.6.1-2.3.3 0-4.2-2.4-5.6-5.7-5.6H6.3C3 15.2.6 16.6.6 20.9v1.4h14.8c-.7.9-1.1 2.2-1.1 3.9v1.4h17.1v-1.4c0-4.3-2.4-5.7-5.7-5.7z M22.9 19c2.4 0 4.3-1.9 4.3-4.3s-1.9-4.3-4.3-4.3-4.3 1.9-4.3 4.3 1.9 4.3 4.3 4.3z"},vote:{path:"m 20.533999,22.34317 v 9.689243 H 0.13559322 V 11.634006 H 11.099736 L 9.5698561,13.163887 A 8.7968127,8.7968127 0 1 0 18.749139,24.12803 Z M 17.856709,16.606118 29.330812,5.1320143 27.545952,3.3471538 16.071848,14.821257 Z M 30.350732,6.1519347 18.621649,18.008508 15.561888,18.645959 14.032007,17.116078 14.541968,14.311297 26.526031,2.3272335 24.741171,0.54237288 12.502127,12.908907 10.462286,22.21568 19.641569,20.685799 32.135593,7.9367952 Z"},whatsapp:{path:"m0 32 2.2-8.2C.8 21.4.1 18.7.1 15.9.1 7.1 7.3 0 16 0c4.2 0 8.2 1.7 11.2 4.7s4.6 7 4.6 11.2c0 8.7-7.1 15.9-15.9 15.9-2.7 0-5.3-.7-7.6-1.9L0 32zm8.8-5.1C11 28.3 13.2 29 16 29c7.3 0 13.2-5.9 13.2-13.2 0-7.3-5.9-13.2-13.2-13.2-7.3.1-13.2 6-13.2 13.3 0 3 .9 5.2 2.3 7.5l-1.3 4.9 5-1.4zM24 19.6c-.1-.2-.4-.3-.8-.5s-2.3-1.2-2.7-1.3c-.4-.1-.6-.2-.9.2-.3.4-1 1.3-1.3 1.6s-.5.3-.9.1c-.4-.2-1.7-.6-3.2-2-1.2-1.1-2-2.3-2.2-2.7-.2-.4 0-.6.2-.8.2-.2.4-.5.6-.7.2-.2.3-.4.4-.7.1-.3.1-.5 0-.7-.1-.1-.8-2.1-1.2-2.9-.3-.8-.6-.7-.9-.7h-.8c-.3 0-.7.1-1.1.5-.2.4-1.3 1.4-1.3 3.3 0 2 1.4 3.8 1.6 4.1.2.3 2.8 4.3 6.8 6 .9.4 1.7.7 2.3.8.9.3 1.8.3 2.5.2.8-.1 2.3-1 2.7-1.9.3-.9.3-1.7.2-1.9z"},"wifi-disconnect":{path:"M6.5 7.41421L23.5 24.4142L24.9142 23L22.4426 20.5284L23.7 19.3144C22.2375 17.6153 20.2337 16.5013 18.0541 16.1399L14.5768 12.6626C15.2092 12.5673 15.8518 12.5185 16.5 12.5185C20.2155 12.5185 23.7506 14.1206 26.2 16.9144L29 14.1144C25.8 10.5939 21.2575 8.59512 16.5 8.6144C14.7252 8.60721 12.9803 8.88087 11.3238 9.40962L7.91421 6L6.5 7.41421ZM10.3501 14.0788L7.47339 11.2021C6.20136 12.0038 5.031 12.9801 4 14.1144L6.8 16.9144C7.81762 15.7537 9.02263 14.7987 10.3501 14.0788ZM16.318 20.0467L12.9654 16.694C11.5669 17.2546 10.3055 18.1462 9.3 19.3144L12.2 22.1144C13.2057 20.8534 14.712 20.0998 16.318 20.0467ZM16.5 22.9144C15.607 22.9033 14.7882 23.4101 14.4 24.2144L16.5 26.2144L18.6 24.2144C18.2118 23.4101 17.393 22.9033 16.5 22.9144Z"}},w=3,x={backspace:{stroke:!0,strokeWidth:2},spinner:{Wrapper:r,stroke:!0}},y="0 0 32 32",s=({color:e="default",name:t,size:l="md",testID:v,"logging-label":H})=>{const{color:i}=g(),{fontScale:u}=d(),n=Z[l]*u,c=k[t],{Wrapper:C=V.Fragment,stroke:o,strokeWidth:M=w}=x[t]??{};return a.jsx(f,{"logging-label":H,testID:v,children:a.jsx(C,{children:a.jsx(p,{fillRule:"evenodd",height:n,viewBox:"viewBox"in c?c.viewBox:y,width:n,children:a.jsx(m,{d:c.path,fill:o?"none":i.text[e],stroke:o?i.text[e]:void 0,strokeWidth:o?M:void 0})})})})};try{s.displayName="Icon",s.__docgenInfo={description:"",displayName:"Icon",props:{color:{defaultValue:{value:"default"},description:"The color of the icon to display.",name:"color",required:!1,type:{name:"enum",value:[{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"default"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"inverse"'},{value:'"warning"'}]}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"The name of the icon to display.",name:"name",required:!0,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},size:{defaultValue:{value:"md"},description:"The size of the icon.",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'},{value:'"ml"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{s as I}; +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{r as V}from"./index-mfbfsM12.js";import{S as p,P as m}from"./index-BtN4QjYR.js";import{R as z}from"./Row-D-wvv0CV.js";import{A as h,E as L}from"./Animated-CFNSbqHF.js";import{I as Z}from"./types-BJ_48vsK.js";import{u as d}from"./useDeviceContext-Cm8FgCCV.js";import{u as g}from"./useTheme-ChTiG3MC.js";import{V as f}from"./index-BP1Ij_Cs.js";const r=({children:e})=>{const t=V.useRef(new h.Value(0));return V.useEffect(()=>{const{start:l,stop:v}=h.loop(h.timing(t.current,{toValue:360,duration:1e3,easing:L.linear,useNativeDriver:!0}));return l(),v},[]),a.jsx(z,{align:"center",children:a.jsx(h.View,{accessibilityLabel:"Bezig …",accessible:!0,style:{transform:[{rotate:t.current.interpolate({inputRange:[0,360],outputRange:["0deg","360deg"]})}]},children:e})})};try{r.displayName="Rotator",r.__docgenInfo={description:"Indicates activity, often while performing network tasks.\nBest used through `PleaseWait` rather than by itself.",displayName:"Rotator",props:{}}}catch{}const k={accessCode:{path:"M1 10H5V14H1V10ZM7 10H11V14H7V10ZM13 10H17V14H13V10ZM19 10H23V14H19V10ZM2 2H4V8H2V2ZM2 16H4V22H2V16ZM20 2H22V8H20V2ZM20 16H22V22H20V16ZM22 2V4H2V2H22ZM22 20V22H2V20H22Z",viewBox:"0 0 24 24"},alarm:{path:"M22.5 52.5H0L0 45H1.875C6.01714 45 9.375 41.6421 9.375 37.5V18.75C9.375 10.4657 16.0907 3.75 24.375 3.75H26.25C26.25 1.67893 27.9289 0 30 0C32.0711 0 33.75 1.67893 33.75 3.75H35.625C43.9093 3.75 50.625 10.4657 50.625 18.75V37.5C50.625 41.6421 53.9829 45 58.125 45H60V52.5H37.5C37.5 56.6421 34.1421 60 30 60C25.8579 60 22.5 56.6421 22.5 52.5ZM26.25 52.5C26.25 54.5711 27.9289 56.25 30 56.25C32.0711 56.25 33.75 54.5711 33.75 52.5H26.25ZM16.875 18.75V37.5C16.875 40.2322 16.1445 42.7937 14.8683 45H45.1317C43.8555 42.7937 43.125 40.2322 43.125 37.5V18.75C43.125 14.6079 39.7671 11.25 35.625 11.25H24.375C20.2329 11.25 16.875 14.6079 16.875 18.75Z",viewBox:"0 0 60 60"},alarmFilled:{path:"M15 23a3 3 0 0 1-6 0h6ZM0 21h24v-3h-.75a3 3 0 0 1-3-3v-7.5a6 6 0 0 0-6-6h-.75a1.5 1.5 0 0 0-3 0h-.75a6 6 0 0 0-6 6V15a3 3 0 0 1-3 3H0v3Z",viewBox:"0 0 26 26"},alert:{path:"m15.9 2.3-16 28.6h32l-16-28.6zm0 8.4 9 16.1h-18l9-16.1zm-1 5.9h2v5.1h-2v-5.1zm2 8.1v-2h-2v2h2z"},announcement:{path:"M23 0v11.6c1.8.6 3 2.3 3 4.2s-1.2 3.6-3 4.2v11.6L12.6 26l-5.2 5.2-2.8-2.8 4.3-4.3-1.5-.8H0v-15h7.4L23 0zM4 12.3v7h4v-7H4zM19 25l-9-4.8v-8.7l9-4.8V25zM29.4 8.1l-3.1 3.1 1.4 1.4 3.1-3.1-1.4-1.4zm-1.7 11-1.4 1.4 3.1 2.9 1.4-1.4-3.1-2.9zm.3-4.3h4v2h-4v-2z"},api:{path:"M18.593 17.812a.938.938 0 0 1 0 1.326l-2.217 2.216 2.12 2.12L16.975 25H9.126l-5 5L2 27.879l4.99-4.99V15.01l1.521-1.521 2.12 2.12 2.217-2.217a.937.937 0 1 1 1.325 1.326l-2.216 2.217 3.093 3.093 2.217-2.216a.938.938 0 0 1 1.326 0zM30 4.121 27.879 2l-4.907 4.907-.9-.9h-6l-3.1 3 10 10 3.1-3v-6l-.982-.982z"},asterisk:{path:"M9.01453 0.564453C10.1815 0.564453 11.4263 0.875651 12.2821 1.22575L10.0648 7.60535L15.3163 3.59865C15.8998 4.22105 16.5611 5.34915 16.9501 6.36055C17.3002 7.41085 17.4169 8.65565 17.3002 9.55035L10.6872 9.51145L16.1721 13.3626C15.7053 14.2184 14.8495 15.1131 13.9159 15.7744C12.9823 16.4746 11.8153 16.9025 10.8428 17.097L9.01453 10.7174L7.18623 17.097C6.29153 16.9025 5.12453 16.4746 4.11313 15.7744C3.17953 15.1131 2.36263 14.2184 1.89583 13.3626L7.34183 9.51145L0.806629 9.55035C0.612129 8.65565 0.728829 7.41085 1.11783 6.36055C1.46793 5.34915 2.16813 4.22105 2.71273 3.59865L8.00313 7.60535L5.74693 1.22575C6.60273 0.875651 7.84753 0.564453 9.01453 0.564453Z",viewBox:"0 0 18 18"},attachment:{path:"M19.9997 7.99967C19.9997 4.31778 17.0149 1.33301 13.333 1.33301C9.65111 1.33301 6.66634 4.31778 6.66634 7.99967V14.6663V17.333V21.333C6.66634 26.4877 10.845 30.6663 15.9997 30.6663C21.1543 30.6663 25.333 26.4877 25.333 21.333V10.6663H22.6663V21.333C22.6663 25.0149 19.6816 27.9997 15.9997 27.9997C12.3178 27.9997 9.33301 25.0149 9.33301 21.333V17.333V14.6663V7.99967C9.33301 5.79054 11.1239 3.99967 13.333 3.99967C15.5421 3.99967 17.333 5.79054 17.333 7.99967V17.333V21.333C17.333 22.0694 16.7361 22.6663 15.9997 22.6663C15.2633 22.6663 14.6663 22.0694 14.6663 21.333V10.6663H11.9997V21.333C11.9997 23.5421 13.7905 25.333 15.9997 25.333C18.2088 25.333 19.9997 23.5421 19.9997 21.333V17.333V7.99967Z"},chat:{path:"M23.5 12.5H6.5V10.5H23.5V12.5ZM19.5 14.5H6.5V16.5H19.5V14.5ZM31.5 5V22H20.5V27L15.5 22H0.5V5H31.5ZM29.5 7H2.5V20H29.5V7Z"},"circle-check-mark":{path:"m7.07 9.88 2.64 2.89 5.91-6.08 1.43 1.4-7.38 7.6-4.07-4.46 1.47-1.35ZM0 11C0 4.92 4.92 0 11 0s11 4.92 11 11-4.92 11-11 11S0 17.08 0 11Zm2 0c0 4.96 4.04 9 9 9s9-4.04 9-9-4.04-9-9-9-9 4.04-9 9Z",viewBox:"0 0 22 22"},backspace:{path:"M3.30599 16L10.866 7H29V25H10.866L3.30599 16Z M23.7279 11.7423L15.2426 20.2275 M15.2426 11.7431L23.7278 20.2284"},camera:{path:"M30 6.25V3.75H10V6.25H0V37.5H40V6.25H30ZM35 32.5H5V11.25H35V32.5ZM20 30C24.4873 30 28.125 26.3623 28.125 21.875C28.125 17.3877 24.4873 13.75 20 13.75C15.5127 13.75 11.875 17.3877 11.875 21.875C11.875 26.3623 15.5127 30 20 30ZM20 16.25C23.1066 16.25 25.625 18.7684 25.625 21.875C25.625 24.9816 23.1066 27.5 20 27.5C16.8934 27.5 14.375 24.9816 14.375 21.875C14.375 18.7684 16.8934 16.25 20 16.25ZM32.5 16.25H30V13.75H32.5V16.25Z",viewBox:"0 0 40 40"},car:{path:"M24 20a3 3 0 1 1 0 6 3 3 0 0 1 0-6zM7 20a3 3 0 1 1 0 6 3 3 0 0 1 0-6zM19 7l7 7h6v9h-3a5 5 0 0 0-10 0h-7a5 5 0 0 0-10 0H0v-9l7-7h12zm-1 2h-5v5h9.962L18 9zm-7 0H8l-5 5h8V9z"},card:{path:"M30.223 26.668H1.777V5.332h28.446ZM5.332 23.109h21.336V8.891H5.332Zm8.535-6.043H8.891a1.78 1.78 0 0 0-1.782 1.778v2.488h8.536v-2.488a1.78 1.78 0 0 0-1.778-1.778Zm11.024-1.957h-2.668v-2.664h-1.778v2.664h-2.668v1.782h2.668v2.664h1.778V16.89h2.668ZM8.523 13.52a2.854 2.854 0 1 0 5.709.003 2.854 2.854 0 0 0-5.709-.002"},chatting:{path:"M23.4 7h-15V5.5h15V7zm-4 1.5h-11V10h11V8.5zm10-7v13h-9v5l-5-5h-13v-13h27zm-2 2h-23v9h23v-9zm-2.5 24h-3.7c-2.1 0-3.6.9-3.6 3.6v.9h11v-.9c0-2.7-1.6-3.6-3.7-3.6zm.9-3.7c.2-1.1-.3-2.2-1.2-2.9-.9-.6-2.2-.6-3.1 0s-1.4 1.8-1.2 2.9c.3 1.3 1.4 2.3 2.8 2.3s2.4-1 2.7-2.3zm-14.9 3.7H7.2c-2.1 0-3.6.9-3.6 3.6v.9h11v-.9c0-2.7-1.6-3.6-3.7-3.6zm.9-3.7c.2-1.1-.3-2.2-1.2-2.9s-2.2-.6-3.1 0-1.4 1.8-1.2 2.9c0 .7.3 1.4.8 1.9s1.2.8 2 .8c1.5 0 2.7-1.2 2.7-2.7z"},"check-mark":{path:"M12.1 27-.1 14.2l2.9-2.8 9.3 9.8L29 4l2.9 2.8L12.1 27z"},"chevron-down":{path:"m15.9 25.8-16-16 2.9-2.9L15.9 20 29 6.9l2.9 2.9-16 16z"},"chevron-left":{path:"m23.237 32-16-16 16-16 2.9 2.91L13.057 16l13.08 13.09-2.9 2.91Z"},"chevron-right":{path:"m9.6 32-2.9-2.9L19.8 16 6.7 2.9 9.6 0l16 16-16 16z"},"chevron-up":{path:"M29 25.8 15.9 12.7 2.8 25.8l-2.9-2.9 16-16 16 16-2.9 2.9z"},child:{path:"M20.7777 8.07237C20.3489 4.64873 17.4277 2 13.8879 2C10.0529 2 6.94394 5.10891 6.94394 8.94394C6.99381 12.7581 10.0737 15.838 13.8879 15.8879C14.3533 15.8818 14.8078 15.8306 15.2472 15.7384C15.2039 15.4404 15.1796 15.1362 15.1756 14.8271L15.1754 14.815V14.8029C15.1754 11.4474 17.5907 8.65594 20.7777 8.07237ZM10.1844 29.7758H0V27.4611C0 20.5172 3.88861 18.2025 9.25859 18.2025H16.1059C16.4217 18.7463 16.8097 19.243 17.2566 19.6796C15.5916 19.8588 13.9819 20.3883 12.6926 21.5233C10.9893 23.0226 10.1844 25.2734 10.1844 28.1121V29.7758ZM32.0003 29.7758H12.0365V28.1122C12.0365 23.1212 14.8314 21.4576 18.6911 21.4576H25.3457C29.2054 21.4576 32.0003 23.1212 32.0003 28.1122V29.7758ZM22.0184 19.7939C24.7598 19.7581 26.9735 17.5444 27.0093 14.803C27.0093 12.0465 24.7748 9.81201 22.0184 9.81201C19.2619 9.81201 17.0274 12.0465 17.0274 14.803C17.0633 17.5444 19.2769 19.7581 22.0184 19.7939Z"},circle:{path:"M4 16c0 6.6 5.4 12 12 12s12-5.4 12-12S22.6 4 16 4 4 9.4 4 16"},"city-office":{path:"M16 8c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zm16 9v2h-2v13h-2v-2H4v2H2V19H0v-2h32zm-4 9v-5H4v5h24zM8 15V12.2c.1-1.7 1.5-3.1 3.2-3.2H20.5c1.8 0 3.3 1.4 3.4 3.2V15H8z"},"city-pass-pass":{path:"M4 6C1.79086 6 0 7.79086 0 10V22C0 24.2091 1.79086 26 4 26H28C30.2091 26 32 24.2091 32 22V10C32 7.79086 30.2091 6 28 6H4ZM18.1818 10.5H11.0909V14.3182H15.4545L10 19.7727L12.6999 22.4726L18.1818 16.9906V21.4091H22V14.3182V10.5H18.1818Z"},"city-pass":{path:"M5.44005 0.461548H26.6331L26.6331 21.7238H18.4154V15.96L6.87457 27.5385L0.0769043 20.7186L12.0504 8.70608H5.44005V0.461548Z"},clock:{path:"M15.9 0C7 0-.1 7.2-.1 16s7.2 16 16 16 16-7.2 16-16c0-4.2-1.7-8.3-4.7-11.3S20.1 0 15.9 0zm.9 28v-2h-2v1.9C9 27.4 4.4 22.8 4 17h1.9v-2H4C4.4 9.2 9 4.5 14.9 4.1V6h2V4.1c5.8.4 10.4 5.1 10.9 10.9h-1.9v2h1.9c-.5 5.9-5.1 10.6-11 11zm.1-13h4v2h-6V9h2v6z"},close:{path:"M29.333 5.47 26.53 2.668 16 13.187 5.47 2.666 2.668 5.47 13.187 16 2.666 26.53l2.804 2.803L16 18.813l10.53 10.52 2.803-2.804L18.813 16z"},collaborate:{path:"m26.3 18.3 5.3-5.3L19.9 1.4l-4.2 4.2-3.8-3.8L.5 13.2l5.4 5.4-1.2 1.2a2.9 2.9 0 0 0 0 4.2 2.9 2.9 0 0 0 2.1.9 3.1 3.1 0 0 0 .9 2.2 3.3 3.3 0 0 0 2.2.8 3.3 3.3 0 0 0 .8 2.2 3.1 3.1 0 0 0 2.2.9 2.7 2.7 0 0 0 2.1-.9l1.2-1.2.9.9a3.3 3.3 0 0 0 2.1.9 3.4 3.4 0 0 0 2.2-.9 3.1 3.1 0 0 0 .9-2.2 2.9 2.9 0 0 0 2.1-.9 2.7 2.7 0 0 0 .9-2.1 3.1 3.1 0 0 0 3-3 3.1 3.1 0 0 0-.9-2.2l-1.1-1.1zM19.9 4.2l8.8 8.8-3.5 3.6-.3.3-7.2-7.2-2.4 2.4a1.2 1.2 0 0 1-1.6 0 1.2 1.2 0 0 1 0-1.7l6.2-6.2zM7.6 22.6a1.1 1.1 0 0 1-1.5 0 1 1 0 0 1 0-1.4L7.3 20l1.5 1.4-1.2 1.2zm3 3a1.1 1.1 0 0 1-1.5 0 .9.9 0 0 1-.3-.7 1.1 1.1 0 0 1 .3-.7l1.2-1.2 1.5 1.5-1.2 1.1zm3 3.1a1 1 0 0 1-1.4 0 1.1 1.1 0 0 1-.3-.8 1.1 1.1 0 0 1 .3-.7l1.1-1.2 1.5 1.5-1.2 1.2zM26 22.3a1 1 0 0 1-1.4 0L21.3 19l-1.6 1.6 3.3 3.3a1 1 0 0 1 0 1.4 1.1 1.1 0 0 1-.7.3 1.1 1.1 0 0 1-.8-.3l-3.2-3.2-1.6 1.5 3.3 3.3a1.1 1.1 0 0 1 0 1.5 1.1 1.1 0 0 1-.8.3 1.1 1.1 0 0 1-.7-.3L3.3 13.2l.2-.2 8.4-8.4L14.3 7l-2 2a3.1 3.1 0 0 0 0 4.5 3.3 3.3 0 0 0 4.5 0l.9-.9 8.3 8.3a1 1 0 0 1 0 1.4z"},"construction-work":{path:"m31.2 26.7-2.3-2.4-1.6 1.5-3.2-3.2-4-12.8c-.2-.7-.5-1.3-1.1-1.8l-3.8-3.7-.4-.4L13 2.1l-.3-.3L7 7.9l2.4 2.4 2.2 2.2-2.7 3.9L0 31.7h4l7-12.1 4.2 4.4v7.7h3.5v-9.1L15 18.8l1.2-1.7L26 27l-1.6 1.4 2.2 2.5c.6.6 1.4.9 2.2 1 .8.1 1.7-.2 2.3-.9.6-.6 1-1.3 1-2.2 0-.7-.3-1.5-.9-2.1zM10.6 9.1l2.2-2.3 1.7 1.7-1.8 2.5-2.1-1.9zm7.7 4.8 1.3 4-2.4-2.4 1.1-1.6z M17.5,4a3.2,3.2 0 1,0 6.4,0a3.2,3.2 0 1,0 -6.4,0"},copy:{path:"M14 2H6V4H12V12H14V2ZM4 0V4H3.5H0V18H12V14H16V0H4ZM3.5 6H2V16H10V6H4.5H3.5Z",viewBox:"0 0 16 18"},document:{path:"M25.5014 0H5.71387V40H35.7139V10.2125L25.5014 0ZM10.7139 35V5H23.2139V12.5H30.7139V35H10.7139Z",viewBox:"0 0 40 40"},"document-text":{path:"m17.6 5 5.4 5.4V27H9V5h8.6m1.3-3H6v28h20V9.1L18.9 2zM11 16h10v-2H11v2zm0 4h10v-2H11v2zm0 4h10v-2H11v2z"},download:{path:"M12.125 11.4858L14.85 8.75821L16.6187 10.5224L10.875 16.2778L5.13125 10.5224L6.9 8.75821L9.625 11.4858V0H12.125V11.4858ZM20.875 20V17.4977H0.875V20H20.875Z",viewBox:"0 0 20 20"},edit:{path:"M24.5 1 4.2 21.3 1 31l9.7-3.2L31 7.5 24.5 1zM6.3 27.1 5 25.7 6 23l3 3.1-2.7 1z"},email:{path:"M-.1 4.6v24h32v-24h-32zM16 16.9 5.9 8.6H26l-10 8.3zm-4.8-1.3-7.3 6.8V9.5l7.3 6.1zm1.6 1.3 3.2 2.7 3.1-2.6 8.2 7.6H4.4l8.4-7.7zm7.8-1.2 7.2-6.1v12.8l-7.2-6.7z"},enlarge:{path:"M17.9 14V0h-4v14h-14v4h14v14h4V18h14v-4h-14z"},error:{path:"M16.1399 6.91003L17.5099 8.36003L13.5099 12.14L17.5099 15.91L16.1399 17.36L12.0599 13.51L7.97986 17.36L6.60986 15.91L10.5999 12.14L6.60986 8.36003L7.97986 6.91003L12.0599 10.76L16.1399 6.91003ZM1 12C1 5.92 5.92 1 12 1C18.08 1 23 5.92 23 12C23 18.08 18.08 23 12 23C5.92 23 1 18.08 1 12ZM21 12C21 7.04 16.96 3 12 3C7.04 3 3 7.04 3 12C3 16.96 7.04 21 12 21C16.96 21 21 16.96 21 12Z",viewBox:"0 0 24 24"},"external-link":{path:"M19.006 0H32.01v12.992h-4.002V6.826L14.434 20.417l-2.83-2.818L25.187 3.998h-6.182V0zm7.002 13.991L26.018 32H.01V6.016h17.975l-3.98 3.978.02.02H4.01v17.988h18.006l-.01-10.013 4-3.998z"},eye:{path:"M16 5C8.72727 5 2.51636 9.53853 0 15.945C2.51636 22.3515 8.72727 26.89 16 26.89C23.2727 26.89 29.4836 22.3515 32 15.945C29.4836 9.53853 23.2727 5 16 5ZM16 23.2417C11.9855 23.2417 8.72727 19.9728 8.72727 15.945C8.72727 11.9172 11.9855 8.64833 16 8.64833C20.0145 8.64833 23.2727 11.9172 23.2727 15.945C23.2727 19.9728 20.0145 23.2417 16 23.2417ZM16 11.567C13.5855 11.567 11.6364 13.5225 11.6364 15.945C11.6364 18.3675 13.5855 20.323 16 20.323C18.4145 20.323 20.3636 18.3675 20.3636 15.945C20.3636 13.5225 18.4145 11.567 16 11.567Z"},facade:{path:"M22.6 9.5V7.8h-1.1V6.4h-1V4.9h-.9V3.5h-1.1V2.2h-1V1h-2.9v1.2h-1v1.3h-1V4.9h-1v1.5h-1v1.4h-1v1.7h-1V31h15.3V9.5h-1.3zM13.7 6h4.6v4h-4.6V6zm1.2 22.9h-4v-8h4v8zm0-9.9h-4v-7h4v7zm6.2 9.9h-4v-8h4v8zm0-9.9h-4v-7h4v7z"},housing:{path:"M14 28h4.008v-8H14v8zm-2 0V18h8.008v10H28V12.98L16 5 4 13.516V28h8zM0 32V11.022L16 0l16 11.022V32H0z"},"park-sign":{path:"M4 0H28V32H4V0ZM24 4H8V28H24V4ZM6 2V30H26V2H6ZM12 8V19.7H14.79V15.884H16.626C19.002 15.884 20.676 14.21 20.676 11.942C20.676 9.674 18.984 8 16.626 8H12ZM16.392 13.67H14.79V10.214H16.392C17.238 10.214 17.85 10.934 17.85 11.942C17.85 12.986 17.238 13.67 16.392 13.67Z"},info:{path:"M15.9 2c-7.7 0-14 6.3-14 14s6.3 14 14 14 14-6.3 14-14-6.3-14-14-14zm0 24c-5.5 0-10-4.5-10-10s4.5-10 10-10 10 4.5 10 10-4.5 10-10 10zm-1-15h2V9h-2v2zm0 12h2V13h-2v10z"},keyboard:{path:"M2 6h28v20H2z M0 4h32v24H0z M7 10h3v3H7zM7 15h3v3H7zM12 10h3v3h-3zM12 15h3v3h-3zM10 20h12v2H10zM17 10h3v3h-3zM17 15h3v3h-3zM22 10h3v3h-3zM22 15h3v3h-3z"},list:{path:"M32.0064 22V26H9.69577V22H32.0064ZM5.52556 22V26H1.35535V22H5.52556ZM32.0064 14V18H9.69577V14H32.0064ZM5.52556 14V18H1.35535V14H5.52556ZM32.0064 6V10H9.69577V6H32.0064ZM5.52556 6V10H1.35535V6H5.52556Z"},location:{path:"m16.679 32-1.23-1.086c-.45-.369-10.878-9.68-10.878-18.806C4.571 5.42 9.992 0 16.68 0s12.108 5.42 12.108 12.108c0 9.126-10.428 18.438-10.879 18.806L16.68 32Zm0-28.271A8.39 8.39 0 0 0 8.3 12.108c0 5.387 5.244 11.728 8.369 14.842 2.591-2.55 8.389-9.034 8.389-14.842a8.39 8.39 0 0 0-8.379-8.38Zm0 12.476a4.097 4.097 0 1 0 0-8.195 4.097 4.097 0 0 0 0 8.195Z"},lock:{path:"M12 3C9.79086 3 8 4.79086 8 7V13H6V7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7V13H16V7C16 4.79086 14.2091 3 12 3Z",viewBox:"0 0 24 24"},login:{path:"M17.777 1.777v3.555h8.891v21.336h-8.89v3.555h12.445V1.777ZM16.73 7.832l-2.507 2.516 3.875 3.875H1.778v3.554h16.32l-3.875 3.875 2.507 2.516L24.906 16Zm0 0"},"organic-waste-container":{path:"M23.2 4.8C22.9 2.1 19.6 0 15.7 0S8.5 2.2 8.1 4.8H7V30H3.9v2h24v-2h-3.2V4.8h-1.5zM12.3 2.4h6.9v6.9h-6.9V2.4zM22.7 29H9V12.6h13.7V29z"},person:{path:"M31 32H1v-2.5c0-7.5 4.2-10 10-10h10c5.8 0 10 2.5 10 10V32ZM16 17a7.6 7.6 0 0 0 7.5-7.5 7.5 7.5 0 0 0-15 0A7.6 7.6 0 0 0 16 17Z"},"person-desk":{path:"M30 16v2h-2v12h-2v-2H6v2H4V18H2v-2h28zm-4 4H6v4h20v-4zM18 8.98c2.3 0 4 1 4 4v1H10v-1c0-3 1.69-4 4-4zM16 2a2.99 2.99 0 1 1 0 5.98A2.99 2.99 0 0 1 16 2z"},phone:{path:"M30.4 26.9s-3.1 3.4-5.6 3.6-9.2-3.2-14.7-8.7c-5.5-5.5-9-11.4-8.7-14.7S5 1.5 5 1.5l7.1 7.1-2.8 2.8 11.2 11.2 2.8-2.8 7.1 7.1z"},picture:{path:"M0 3.75V36.25H40V3.75H0ZM35 22L27.875 14.625L22.5 20.125L24.125 21.75L27.875 18L35 25.375V31.25H6L16.625 20.5L19.25 23.25L21 25L24.5 28.75L26.125 27.25L16.25 17.375L5 28.875V8.75H35V22ZM7.5 13.75C7.5 12.3693 8.61929 11.25 10 11.25C11.3807 11.25 12.5 12.3693 12.5 13.75C12.5 15.1307 11.3807 16.25 10 16.25C8.61929 16.25 7.5 15.1307 7.5 13.75Z",viewBox:"0 0 40 40"},pointer:{path:"M29.18 14C28.3576 8.41126 23.9687 4.02245 18.38 3.2V0H14.38V3.2C8.77561 3.99119 4.3712 8.3956 3.58 14H0.380005V18H3.58C4.3712 23.6044 8.77561 28.0088 14.38 28.8V32H18.38V28.8C23.9534 27.947 28.327 23.5734 29.18 18H32.38V14H29.18ZM16.38 25C11.4094 25 7.38 20.9706 7.38 16C7.38 11.0294 11.4094 7 16.38 7C21.3506 7 25.38 11.0294 25.38 16C25.38 18.3869 24.4318 20.6761 22.744 22.364C21.0561 24.0518 18.767 25 16.38 25ZM21.38 16C21.38 18.7614 19.1414 21 16.38 21C13.6186 21 11.38 18.7614 11.38 16C11.38 13.2386 13.6186 11 16.38 11C19.1414 11 21.38 13.2386 21.38 16Z"},"question-mark-solid":{path:"M16 0C7.2 0 0 7.2 0 16s7.2 16 16 16 16-7.2 16-16S24.8 0 16 0zm-.4 24.3c-1.1 0-1.9-.8-1.9-1.9s.8-1.9 1.9-1.9 1.9.8 1.9 1.9c.1 1.1-.7 1.9-1.9 1.9zm3.3-8.7c-.9.9-1.9 1.9-1.9 2.9v.8h-2.7v-1.2c0-1.6.8-2.4 1.5-3.1.7-.7 1.5-1.2 1.5-2.4 0-.9-.7-1.3-1.7-1.3-.8 0-1.5.4-2 1.2l-2.3-2C12.4 9 13.7 8.4 16 8.4c2.8 0 4.5 1.5 4.5 3.7.2 1.5-.8 2.6-1.6 3.5z"},"question-mark-circle":{path:"M17.7234 24V22H15.6383V24H17.7234ZM12.5106 13C12.5106 10.79 14.3768 9 16.6808 9C18.9849 9 20.851 10.79 20.851 13C20.851 14.2829 20.0274 14.9733 19.2255 15.6455C18.4647 16.2833 17.7234 16.9046 17.7234 18V19.9919H15.6383V18C15.6383 16.1787 16.6205 15.4566 17.4841 14.8217C18.1615 14.3236 18.7659 13.8792 18.7659 13C18.7659 11.9 17.8276 11 16.6808 11C15.534 11 14.5957 11.9 14.5957 13H12.5106ZM16.6808 2C8.65317 2 2.08508 8.3 2.08508 16C2.08508 23.7 8.65317 30 16.6808 30C24.7085 30 31.2766 23.7 31.2766 16C31.2766 8.3 24.7085 2 16.6808 2ZM16.6808 26C10.9468 26 6.2553 21.5 6.2553 16C6.2553 10.5 10.9468 6 16.6808 6C22.4149 6 27.1064 10.5 27.1064 16C27.1064 21.5 22.4149 26 16.6808 26Z"},search:{path:"m32 29.119-9.825-9.825a12.217 12.217 0 1 0-2.88 2.881L29.118 32 32 29.119Zm-19.771-8.745a8.145 8.145 0 1 1 0-16.29 8.145 8.145 0 0 1 0 16.29Z"},settings:{path:"M0 18.6v-5.1H1.4c2.1-.4 3.5-2.3 3.1-4.4-.1-.6-.3-1.1-.6-1.6l-1-1 3.6-3.6V3l.9.9c1.7 1.2 4.1.8 5.3-.9.3-.4.5-.9.6-1.5V0h5.1V1.4c.4 2.1 2.3 3.5 4.4 3.1.5-.1 1-.3 1.5-.6l1-1 3.6 3.6h-.1l-.9.9c-1.1 1.5-.9 3.6.4 4.9.5.5 1.2.9 2 1.1H32v5.1H30.6c-2.1.4-3.5 2.4-3.1 4.4.1.5.3 1 .6 1.5l1 1-3.6 3.6v-.1l-.9-.9c-1.7-1.2-4.1-.8-5.3.9-.3.4-.5.9-.6 1.5V32h-5.1V30.6c-.4-2.1-2.3-3.5-4.4-3.1-.5.1-1 .3-1.5.6l-1 1-3.6-3.6h.1l.9-.9c1.2-1.7.8-4.1-.9-5.3-.4-.3-.9-.5-1.5-.6H0zM16 22c3.3 0 6-2.7 6-6s-2.7-6-6-6-6 2.7-6 6 2.7 6 6 6z"},spinner:{path:"M16.3 5c2.2 0 4.3.7 6.1 1.9 1.8 1.2 3.2 3 4 5 .8 2 1 4.2.6 6.4-.4 2.1-1.5 4.1-3.1 5.6s-3.5 2.6-5.7 3c-2.1.4-4.3.2-6.3-.7-2-.9-3.7-2.3-4.9-4.1-1.2-1.8-1.8-4-1.8-6.1"},"trash-bin":{path:"M21,4h8v4h-2v24H5V8H3V4h8V0h10V4z M19,2h-6v2h6V2z M23,28H9V8h14V28z M13,12h-2v12h2V12z M15,12h2v12h-2V12z M21,12h-2v12h2V12z"},"two-persons":{path:"M9.1 13.7c2.4 0 4.3-1.9 4.3-4.3s-1.9-4.3-4.3-4.3S4.8 7 4.8 9.4c.1 2.4 2 4.3 4.3 4.3zM25.7 20.5H20c-.8 0-1.6.1-2.3.3 0-4.2-2.4-5.6-5.7-5.6H6.3C3 15.2.6 16.6.6 20.9v1.4h14.8c-.7.9-1.1 2.2-1.1 3.9v1.4h17.1v-1.4c0-4.3-2.4-5.7-5.7-5.7z M22.9 19c2.4 0 4.3-1.9 4.3-4.3s-1.9-4.3-4.3-4.3-4.3 1.9-4.3 4.3 1.9 4.3 4.3 4.3z"},vote:{path:"m 20.533999,22.34317 v 9.689243 H 0.13559322 V 11.634006 H 11.099736 L 9.5698561,13.163887 A 8.7968127,8.7968127 0 1 0 18.749139,24.12803 Z M 17.856709,16.606118 29.330812,5.1320143 27.545952,3.3471538 16.071848,14.821257 Z M 30.350732,6.1519347 18.621649,18.008508 15.561888,18.645959 14.032007,17.116078 14.541968,14.311297 26.526031,2.3272335 24.741171,0.54237288 12.502127,12.908907 10.462286,22.21568 19.641569,20.685799 32.135593,7.9367952 Z"},whatsapp:{path:"m0 32 2.2-8.2C.8 21.4.1 18.7.1 15.9.1 7.1 7.3 0 16 0c4.2 0 8.2 1.7 11.2 4.7s4.6 7 4.6 11.2c0 8.7-7.1 15.9-15.9 15.9-2.7 0-5.3-.7-7.6-1.9L0 32zm8.8-5.1C11 28.3 13.2 29 16 29c7.3 0 13.2-5.9 13.2-13.2 0-7.3-5.9-13.2-13.2-13.2-7.3.1-13.2 6-13.2 13.3 0 3 .9 5.2 2.3 7.5l-1.3 4.9 5-1.4zM24 19.6c-.1-.2-.4-.3-.8-.5s-2.3-1.2-2.7-1.3c-.4-.1-.6-.2-.9.2-.3.4-1 1.3-1.3 1.6s-.5.3-.9.1c-.4-.2-1.7-.6-3.2-2-1.2-1.1-2-2.3-2.2-2.7-.2-.4 0-.6.2-.8.2-.2.4-.5.6-.7.2-.2.3-.4.4-.7.1-.3.1-.5 0-.7-.1-.1-.8-2.1-1.2-2.9-.3-.8-.6-.7-.9-.7h-.8c-.3 0-.7.1-1.1.5-.2.4-1.3 1.4-1.3 3.3 0 2 1.4 3.8 1.6 4.1.2.3 2.8 4.3 6.8 6 .9.4 1.7.7 2.3.8.9.3 1.8.3 2.5.2.8-.1 2.3-1 2.7-1.9.3-.9.3-1.7.2-1.9z"},"wifi-disconnect":{path:"M6.5 7.41421L23.5 24.4142L24.9142 23L22.4426 20.5284L23.7 19.3144C22.2375 17.6153 20.2337 16.5013 18.0541 16.1399L14.5768 12.6626C15.2092 12.5673 15.8518 12.5185 16.5 12.5185C20.2155 12.5185 23.7506 14.1206 26.2 16.9144L29 14.1144C25.8 10.5939 21.2575 8.59512 16.5 8.6144C14.7252 8.60721 12.9803 8.88087 11.3238 9.40962L7.91421 6L6.5 7.41421ZM10.3501 14.0788L7.47339 11.2021C6.20136 12.0038 5.031 12.9801 4 14.1144L6.8 16.9144C7.81762 15.7537 9.02263 14.7987 10.3501 14.0788ZM16.318 20.0467L12.9654 16.694C11.5669 17.2546 10.3055 18.1462 9.3 19.3144L12.2 22.1144C13.2057 20.8534 14.712 20.0998 16.318 20.0467ZM16.5 22.9144C15.607 22.9033 14.7882 23.4101 14.4 24.2144L16.5 26.2144L18.6 24.2144C18.2118 23.4101 17.393 22.9033 16.5 22.9144Z"}},w=3,x={backspace:{stroke:!0,strokeWidth:2},spinner:{Wrapper:r,stroke:!0}},y="0 0 32 32",s=({color:e="default",name:t,size:l="md",testID:v,"logging-label":H})=>{const{color:i}=g(),{fontScale:u}=d(),n=Z[l]*u,c=k[t],{Wrapper:C=V.Fragment,stroke:o,strokeWidth:M=w}=x[t]??{};return a.jsx(f,{"logging-label":H,testID:v,children:a.jsx(C,{children:a.jsx(p,{fillRule:"evenodd",height:n,viewBox:"viewBox"in c?c.viewBox:y,width:n,children:a.jsx(m,{d:c.path,fill:o?"none":i.text[e],stroke:o?i.text[e]:void 0,strokeWidth:o?M:void 0})})})})};try{s.displayName="Icon",s.__docgenInfo={description:"",displayName:"Icon",props:{color:{defaultValue:{value:"default"},description:"The color of the icon to display.",name:"color",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"inverse"'},{value:'"warning"'}]}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"The name of the icon to display.",name:"name",required:!0,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},size:{defaultValue:{value:"md"},description:"The size of the icon.",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'},{value:'"ml"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{s as I}; diff --git a/assets/Icon.stories-dn0r3e0-.js b/assets/Icon.stories-DhVEjSmF.js similarity index 95% rename from assets/Icon.stories-dn0r3e0-.js rename to assets/Icon.stories-DhVEjSmF.js index 8ca6aa79..789d5c31 100644 --- a/assets/Icon.stories-dn0r3e0-.js +++ b/assets/Icon.stories-DhVEjSmF.js @@ -1,4 +1,4 @@ -import{I as p}from"./Icon-X_MsqpOP.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./index-kbHxBZ_W.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./Animated-CFNSbqHF.js";import"./index-DSI0shHu.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";const A={component:p},o={args:{color:"default",name:"announcement",size:"lg"}};var r,t,m;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{I as p}from"./Icon-DbPHcDCx.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./index-kbHxBZ_W.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./Animated-CFNSbqHF.js";import"./index-DSI0shHu.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";const A={component:p},o={args:{color:"default",name:"announcement",size:"lg"}};var r,t,m;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { color: 'default', name: 'announcement', diff --git a/assets/IconButton-CciMcnyz.js b/assets/IconButton-S0EpSLVW.js similarity index 98% rename from assets/IconButton-CciMcnyz.js rename to assets/IconButton-S0EpSLVW.js index d48038a5..d0f9691d 100644 --- a/assets/IconButton-CciMcnyz.js +++ b/assets/IconButton-S0EpSLVW.js @@ -1 +1 @@ -import{j as l}from"./jsx-runtime-Bxcv0yjW.js";import{r}from"./index-mfbfsM12.js";import{P as s}from"./Pressable-0Of7HZos.js";import{c as m}from"./config-BZnShabN.js";import{B as d}from"./Badge-gxv3290q.js";import{R as c}from"./Row-D-wvv0CV.js";import{I as v}from"./types-BJ_48vsK.js";import{u as p}from"./useThemable-ua4U8LzO.js";import{V as g}from"./index-BP1Ij_Cs.js";import{s as f}from"./index-kbHxBZ_W.js";const n=r.forwardRef(({badgeValue:a,icon:e,...t},o)=>{const u=p(h),i=(m.minTouchSize-v[e.props.size??"md"])/2;return l.jsx(c,{align:"start",valign:"center",children:l.jsxs(s,{accessibilityLanguage:"nl-NL",accessibilityRole:"button",hitSlop:i,ref:o,variant:"transparent",...t,children:[e,a?l.jsx(g,{style:u.badgePosition,children:l.jsx(d,{testID:`${t.testID}Badge`,value:a,variant:"on-icon"})}):null]})})}),h=({size:a})=>{const e=a.spacing.sm;return f.create({badgePosition:{position:"absolute",top:-e,right:-e,left:-e,alignItems:"flex-end"}})};try{n.displayName="IconButton",n.__docgenInfo={description:"",displayName:"IconButton",props:{badgeValue:{defaultValue:null,description:"The value for a badge to be displayed on top of the icon.",name:"badgeValue",required:!1,type:{name:"number"}},icon:{defaultValue:null,description:"The icon component to use for the button.",name:"icon",required:!0,type:{name:"ReactElement>"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"tertiary"'},{value:'"transparent"'}]}},inset:{defaultValue:null,description:"The amount of inner spacing.",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetHorizontal:{defaultValue:null,description:"The amount of inner spacing at the left and right.",name:"insetHorizontal",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetVertical:{defaultValue:null,description:"The amount of inner spacing at the top and bottom.",name:"insetVertical",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}}}}}catch{}export{n as I}; +import{j as l}from"./jsx-runtime-Bxcv0yjW.js";import{r}from"./index-mfbfsM12.js";import{P as s}from"./Pressable-0Of7HZos.js";import{c as m}from"./config-BZnShabN.js";import{B as d}from"./Badge-BAkGihjF.js";import{R as c}from"./Row-D-wvv0CV.js";import{I as v}from"./types-BJ_48vsK.js";import{u as p}from"./useThemable-ua4U8LzO.js";import{V as g}from"./index-BP1Ij_Cs.js";import{s as f}from"./index-kbHxBZ_W.js";const n=r.forwardRef(({badgeValue:a,icon:e,...t},o)=>{const u=p(h),i=(m.minTouchSize-v[e.props.size??"md"])/2;return l.jsx(c,{align:"start",valign:"center",children:l.jsxs(s,{accessibilityLanguage:"nl-NL",accessibilityRole:"button",hitSlop:i,ref:o,variant:"transparent",...t,children:[e,a?l.jsx(g,{style:u.badgePosition,children:l.jsx(d,{testID:`${t.testID}Badge`,value:a,variant:"on-icon"})}):null]})})}),h=({size:a})=>{const e=a.spacing.sm;return f.create({badgePosition:{position:"absolute",top:-e,right:-e,left:-e,alignItems:"flex-end"}})};try{n.displayName="IconButton",n.__docgenInfo={description:"",displayName:"IconButton",props:{badgeValue:{defaultValue:null,description:"The value for a badge to be displayed on top of the icon.",name:"badgeValue",required:!1,type:{name:"number"}},icon:{defaultValue:null,description:"The icon component to use for the button.",name:"icon",required:!0,type:{name:"ReactElement>"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"tertiary"'},{value:'"transparent"'}]}},inset:{defaultValue:null,description:"The amount of inner spacing.",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetHorizontal:{defaultValue:null,description:"The amount of inner spacing at the left and right.",name:"insetHorizontal",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetVertical:{defaultValue:null,description:"The amount of inner spacing at the top and bottom.",name:"insetVertical",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}}}}}catch{}export{n as I}; diff --git a/assets/IconButton.stories-CA1OhUIy.js b/assets/IconButton.stories-DO0GJg2W.js similarity index 92% rename from assets/IconButton.stories-CA1OhUIy.js rename to assets/IconButton.stories-DO0GJg2W.js index 1a1a606e..63f755cc 100644 --- a/assets/IconButton.stories-CA1OhUIy.js +++ b/assets/IconButton.stories-DO0GJg2W.js @@ -1,4 +1,4 @@ -import{j as p}from"./jsx-runtime-Bxcv0yjW.js";import{I as i}from"./IconButton-CciMcnyz.js";import{I as e}from"./Icon-X_MsqpOP.js";import{p as s}from"./pressable-arg-types-CJIMfHep.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Pressable-0Of7HZos.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./config-BZnShabN.js";import"./Badge-gxv3290q.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./useTheme-ChTiG3MC.js";const Q={component:i,argTypes:s},o={args:{icon:p.jsx(e,{name:"person",size:"lg",testID:"Icon"}),badgeValue:7}};var r,t,m;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{j as p}from"./jsx-runtime-Bxcv0yjW.js";import{I as i}from"./IconButton-S0EpSLVW.js";import{I as e}from"./Icon-DbPHcDCx.js";import{p as s}from"./pressable-arg-types-CJIMfHep.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Pressable-0Of7HZos.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./config-BZnShabN.js";import"./Badge-BAkGihjF.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./useTheme-ChTiG3MC.js";const Q={component:i,argTypes:s},o={args:{icon:p.jsx(e,{name:"person",size:"lg",testID:"Icon"}),badgeValue:7}};var r,t,m;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { icon: , badgeValue: 7 diff --git a/assets/InformationButton.stories-BafFkCfd.js b/assets/InformationButton.stories-7neX6tsq.js similarity index 98% rename from assets/InformationButton.stories-BafFkCfd.js rename to assets/InformationButton.stories-7neX6tsq.js index 2580ffcc..3d5e83f6 100644 --- a/assets/InformationButton.stories-BafFkCfd.js +++ b/assets/InformationButton.stories-7neX6tsq.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{P as g}from"./Pressable-0Of7HZos.js";import{C as f}from"./Column-CFK5NdwL.js";import{R as u}from"./Row-D-wvv0CV.js";import{I as h}from"./Icon-X_MsqpOP.js";import{P as y}from"./Paragraph-ypvGdTJ3.js";import{T as x}from"./Title-DmDbCZFx.js";import{a as b}from"./accessibleText-gmNPjmn1.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";const i=({iconName:r,onPress:c,text:t,title:o,testID:a,accessibilityRole:p="button",variant:n,...d})=>e.jsx(g,{accessibilityLabel:b(o,typeof t=="string"?t:""),accessibilityLanguage:"nl-NL",accessibilityRole:p,onPress:c,testID:a,...d,insetHorizontal:"md",insetVertical:"sm",variant:"transparent",children:e.jsxs(u,{gutter:"md",children:[e.jsx(h,{color:n==="inverse"?"inverse":"link",name:r,size:"xl",testID:`${a}Icon`}),e.jsxs(f,{align:"center",grow:1,gutter:"xs",shrink:1,children:[e.jsx(u,{valign:"center",children:e.jsx(x,{color:n==="inverse"?"inverse":"link",level:"h4",testID:`${a}Title`,text:o,underline:!0})}),e.jsx(y,{color:n==="inverse"?"inverse":void 0,testID:`${a}Text`,variant:"small",children:t})]})]})});try{i.displayName="InformationButton",i.__docgenInfo={description:"",displayName:"InformationButton",props:{iconName:{defaultValue:null,description:"",name:"iconName",required:!0,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"inverse"'}]}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},inset:{defaultValue:null,description:"The amount of inner spacing.",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetHorizontal:{defaultValue:null,description:"The amount of inner spacing at the left and right.",name:"insetHorizontal",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetVertical:{defaultValue:null,description:"The amount of inner spacing at the top and bottom.",name:"insetVertical",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}}}}}catch{}const re={component:i,argTypes:{onPress:{action:"onPress"}}},l={args:{iconName:"email",text:"Reactie binnen 1 werkdag",title:"Contactformulier"}};var s,v,m;l.parameters={...l.parameters,docs:{...(s=l.parameters)==null?void 0:s.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{P as g}from"./Pressable-0Of7HZos.js";import{C as f}from"./Column-CFK5NdwL.js";import{R as u}from"./Row-D-wvv0CV.js";import{I as h}from"./Icon-DbPHcDCx.js";import{P as y}from"./Paragraph-4J4ihaTP.js";import{T as x}from"./Title-DyZpgX2c.js";import{a as b}from"./accessibleText-gmNPjmn1.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";const i=({iconName:r,onPress:c,text:t,title:o,testID:a,accessibilityRole:p="button",variant:n,...d})=>e.jsx(g,{accessibilityLabel:b(o,typeof t=="string"?t:""),accessibilityLanguage:"nl-NL",accessibilityRole:p,onPress:c,testID:a,...d,insetHorizontal:"md",insetVertical:"sm",variant:"transparent",children:e.jsxs(u,{gutter:"md",children:[e.jsx(h,{color:n==="inverse"?"inverse":"link",name:r,size:"xl",testID:`${a}Icon`}),e.jsxs(f,{align:"center",grow:1,gutter:"xs",shrink:1,children:[e.jsx(u,{valign:"center",children:e.jsx(x,{color:n==="inverse"?"inverse":"link",level:"h4",testID:`${a}Title`,text:o,underline:!0})}),e.jsx(y,{color:n==="inverse"?"inverse":void 0,testID:`${a}Text`,variant:"small",children:t})]})]})});try{i.displayName="InformationButton",i.__docgenInfo={description:"",displayName:"InformationButton",props:{iconName:{defaultValue:null,description:"",name:"iconName",required:!0,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"inverse"'}]}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},inset:{defaultValue:null,description:"The amount of inner spacing.",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetHorizontal:{defaultValue:null,description:"The amount of inner spacing at the left and right.",name:"insetHorizontal",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetVertical:{defaultValue:null,description:"The amount of inner spacing at the top and bottom.",name:"insetVertical",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}}}}}catch{}const re={component:i,argTypes:{onPress:{action:"onPress"}}},l={args:{iconName:"email",text:"Reactie binnen 1 werkdag",title:"Contactformulier"}};var s,v,m;l.parameters={...l.parameters,docs:{...(s=l.parameters)==null?void 0:s.docs,source:{originalSource:`{ args: { iconName: 'email', text: 'Reactie binnen 1 werkdag', diff --git a/assets/Label-Bawop_Qs.js b/assets/Label-DxHoN9jC.js similarity index 89% rename from assets/Label-Bawop_Qs.js rename to assets/Label-DxHoN9jC.js index c800c7a0..f268437a 100644 --- a/assets/Label-Bawop_Qs.js +++ b/assets/Label-DxHoN9jC.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{P as r}from"./Paragraph-ypvGdTJ3.js";import{V as s}from"./index-BP1Ij_Cs.js";const i=({isAccessible:e,text:t})=>a.jsx(s,{accessibilityElementsHidden:!e,accessibilityLanguage:"nl-NL",importantForAccessibility:e?"auto":"no-hide-descendants",children:a.jsx(r,{children:t})});try{i.displayName="Label",i.__docgenInfo={description:"",displayName:"Label",props:{isAccessible:{defaultValue:null,description:"",name:"isAccessible",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}}}}}catch{}export{i as L}; +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{P as r}from"./Paragraph-4J4ihaTP.js";import{V as s}from"./index-BP1Ij_Cs.js";const i=({isAccessible:e,text:t})=>a.jsx(s,{accessibilityElementsHidden:!e,accessibilityLanguage:"nl-NL",importantForAccessibility:e?"auto":"no-hide-descendants",children:a.jsx(r,{children:t})});try{i.displayName="Label",i.__docgenInfo={description:"",displayName:"Label",props:{isAccessible:{defaultValue:null,description:"",name:"isAccessible",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}}}}}catch{}export{i as L}; diff --git a/assets/Label.stories-DcuqWR9Q.js b/assets/Label.stories-D02SEO0v.js similarity index 84% rename from assets/Label.stories-DcuqWR9Q.js rename to assets/Label.stories-D02SEO0v.js index 55e188e3..8eeccda0 100644 --- a/assets/Label.stories-DcuqWR9Q.js +++ b/assets/Label.stories-D02SEO0v.js @@ -1,4 +1,4 @@ -import{L as a}from"./Label-Bawop_Qs.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Paragraph-ypvGdTJ3.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./index-kbHxBZ_W.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-BP1Ij_Cs.js";const L={component:a},t={args:{text:"Wat is de titel van je bericht?"}};var r,e,o;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{L as a}from"./Label-DxHoN9jC.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Paragraph-4J4ihaTP.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./index-kbHxBZ_W.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-BP1Ij_Cs.js";const L={component:a},t={args:{text:"Wat is de titel van je bericht?"}};var r,e,o;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { text: 'Wat is de titel van je bericht?' } diff --git a/assets/Link.stories-BxpM6sWc.js b/assets/Link.stories-Bt73J5Hq.js similarity index 95% rename from assets/Link.stories-BxpM6sWc.js rename to assets/Link.stories-Bt73J5Hq.js index 56034e26..f1c7e478 100644 --- a/assets/Link.stories-BxpM6sWc.js +++ b/assets/Link.stories-Bt73J5Hq.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{P as f}from"./Pressable-0Of7HZos.js";import{c as x}from"./config-BZnShabN.js";import{R as h}from"./Row-D-wvv0CV.js";import{S as g}from"./Size-ByzkQpGs.js";import{I as k}from"./Icon-X_MsqpOP.js";import{P as j}from"./Phrase-D4XuA9hP.js";import{D as a}from"./types-BJ_48vsK.js";import{u}from"./useTheme-ChTiG3MC.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";const n=({direction:r,external:m,testID:t})=>{const{text:o}=u(),l=m?"external-link":r===a.left?"chevron-left":"chevron-right";return e.jsx(g,{height:o.lineHeight.body,children:e.jsx(k,{color:"link",name:l,testID:t})})},s=({label:r,onPress:m,testID:t,variant:o="default"})=>{const{text:l}=u();return e.jsx(f,{accessibilityLabel:o==="external"?r+", opent in webbrowser":r,accessibilityRole:"link",hitSlop:(x.minTouchSize-l.lineHeight.body)/2,onPress:m,testID:t,children:e.jsxs(h,{gutter:"sm",valign:o!=="external"?"center":void 0,children:[o==="external"&&e.jsx(n,{external:!0,testID:`${t}Icon`}),o==="backward"&&e.jsx(n,{direction:a.left,testID:`${t}Icon`}),o==="default"&&e.jsx(n,{direction:a.right,testID:`${t}Icon`}),e.jsx(j,{color:"link",testID:`${t}Phrase`,children:r}),o==="forward"&&e.jsx(n,{direction:a.right,testID:`${t}Icon`})]})})};try{s.displayName="Link",s.__docgenInfo={description:"",displayName:"Link",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"() => void"}},variant:{defaultValue:{value:"default"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"backward"'},{value:'"forward"'},{value:'"external"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const ie={component:s},i=r=>e.jsx(s,{...r});i.args={label:"Klik mij ik ben een link",variant:"default"};var p,c,d;i.parameters={...i.parameters,docs:{...(p=i.parameters)==null?void 0:p.docs,source:{originalSource:"args => ",...(d=(c=i.parameters)==null?void 0:c.docs)==null?void 0:d.source}}};const ne=["Default"];export{i as Default,ne as __namedExportsOrder,ie as default}; +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{P as f}from"./Pressable-0Of7HZos.js";import{c as x}from"./config-BZnShabN.js";import{R as h}from"./Row-D-wvv0CV.js";import{S as g}from"./Size-ByzkQpGs.js";import{I as k}from"./Icon-DbPHcDCx.js";import{P as j}from"./Phrase-CZOdtc60.js";import{D as a}from"./types-BJ_48vsK.js";import{u}from"./useTheme-ChTiG3MC.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";const n=({direction:r,external:m,testID:t})=>{const{text:o}=u(),l=m?"external-link":r===a.left?"chevron-left":"chevron-right";return e.jsx(g,{height:o.lineHeight.body,children:e.jsx(k,{color:"link",name:l,testID:t})})},s=({label:r,onPress:m,testID:t,variant:o="default"})=>{const{text:l}=u();return e.jsx(f,{accessibilityLabel:o==="external"?r+", opent in webbrowser":r,accessibilityRole:"link",hitSlop:(x.minTouchSize-l.lineHeight.body)/2,onPress:m,testID:t,children:e.jsxs(h,{gutter:"sm",valign:o!=="external"?"center":void 0,children:[o==="external"&&e.jsx(n,{external:!0,testID:`${t}Icon`}),o==="backward"&&e.jsx(n,{direction:a.left,testID:`${t}Icon`}),o==="default"&&e.jsx(n,{direction:a.right,testID:`${t}Icon`}),e.jsx(j,{color:"link",testID:`${t}Phrase`,children:r}),o==="forward"&&e.jsx(n,{direction:a.right,testID:`${t}Icon`})]})})};try{s.displayName="Link",s.__docgenInfo={description:"",displayName:"Link",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"() => void"}},variant:{defaultValue:{value:"default"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"backward"'},{value:'"forward"'},{value:'"external"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const ie={component:s},i=r=>e.jsx(s,{...r});i.args={label:"Klik mij ik ben een link",variant:"default"};var p,c,d;i.parameters={...i.parameters,docs:{...(p=i.parameters)==null?void 0:p.docs,source:{originalSource:"args => ",...(d=(c=i.parameters)==null?void 0:c.docs)==null?void 0:d.source}}};const ne=["Default"];export{i as Default,ne as __namedExportsOrder,ie as default}; diff --git a/assets/List.stories-DOhyway4.js b/assets/List.stories-Bqm09YO1.js similarity index 95% rename from assets/List.stories-DOhyway4.js rename to assets/List.stories-Bqm09YO1.js index 068a0d50..1c383686 100644 --- a/assets/List.stories-DOhyway4.js +++ b/assets/List.stories-Bqm09YO1.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{r as y}from"./index-mfbfsM12.js";import{S as g}from"./SingleSelectable-BAFROorM.js";import{C as _}from"./Column-CFK5NdwL.js";import{R as x}from"./Row-D-wvv0CV.js";import{P as I}from"./Phrase-D4XuA9hP.js";import{L}from"./ListItemMarker-DmJOL3FK.js";import{a as h}from"./accessibleText-gmNPjmn1.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-kbHxBZ_W.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./config-BZnShabN.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./index-BXDkY5MO.js";const m=({text:e,marker:r,testID:t})=>a.jsxs(x,{children:[a.jsx(L,{marker:r,testID:`${t}Marker`}),a.jsx(I,{testID:t,children:e})]});try{m.displayName="ListItem",m.__docgenInfo={description:"",displayName:"ListItem",props:{text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},marker:{defaultValue:null,description:"",name:"marker",required:!0,type:{name:"enum",value:[{value:'"check-mark"'},{value:'"square"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const b=e=>{const r=[],t=[];for(const s of e)typeof s=="string"?(r.push(s),t.push(s)):(r.push(s.text),t.push(s.accessibilityLabel));return{textItems:r,accessibilityLabelItems:t}},o=({items:e,marker:r="square",testID:t,accessibilityLanguage:s})=>{const{textItems:c,accessibilityLabelItems:d}=y.useMemo(()=>b(e),[e]);return a.jsx(g,{accessibilityLabel:h(...d),accessibilityLanguage:s,testID:t,children:a.jsx(_,{gutter:"md",children:c.map((p,f)=>a.jsx(m,{marker:r,testID:`${t}${f}Item`,text:p},p))})})};try{o.displayName="List",o.__docgenInfo={description:"",displayName:"List",props:{accessibilityLanguage:{defaultValue:null,description:"",name:"accessibilityLanguage",required:!1,type:{name:"string"}},items:{defaultValue:null,description:"",name:"items",required:!0,type:{name:"Item[]"}},marker:{defaultValue:{value:"square"},description:"",name:"marker",required:!1,type:{name:"enum",value:[{value:'"check-mark"'},{value:'"square"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const J={component:o},i=e=>a.jsx(o,{...e});i.args={items:["Centrum","Nieuw-West","Noord","Oost","West","Zuid","Zuidoost","Weesp"],marker:"square"};var n,u,l;i.parameters={...i.parameters,docs:{...(n=i.parameters)==null?void 0:n.docs,source:{originalSource:"args => ",...(l=(u=i.parameters)==null?void 0:u.docs)==null?void 0:l.source}}};const K=["Default"];export{i as Default,K as __namedExportsOrder,J as default}; +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{r as y}from"./index-mfbfsM12.js";import{S as g}from"./SingleSelectable-BAFROorM.js";import{C as _}from"./Column-CFK5NdwL.js";import{R as x}from"./Row-D-wvv0CV.js";import{P as I}from"./Phrase-CZOdtc60.js";import{L}from"./ListItemMarker-CUNXp5YB.js";import{a as h}from"./accessibleText-gmNPjmn1.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-kbHxBZ_W.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./config-BZnShabN.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./index-BXDkY5MO.js";const m=({text:e,marker:r,testID:t})=>a.jsxs(x,{children:[a.jsx(L,{marker:r,testID:`${t}Marker`}),a.jsx(I,{testID:t,children:e})]});try{m.displayName="ListItem",m.__docgenInfo={description:"",displayName:"ListItem",props:{text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},marker:{defaultValue:null,description:"",name:"marker",required:!0,type:{name:"enum",value:[{value:'"check-mark"'},{value:'"square"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const b=e=>{const r=[],t=[];for(const s of e)typeof s=="string"?(r.push(s),t.push(s)):(r.push(s.text),t.push(s.accessibilityLabel));return{textItems:r,accessibilityLabelItems:t}},o=({items:e,marker:r="square",testID:t,accessibilityLanguage:s})=>{const{textItems:c,accessibilityLabelItems:d}=y.useMemo(()=>b(e),[e]);return a.jsx(g,{accessibilityLabel:h(...d),accessibilityLanguage:s,testID:t,children:a.jsx(_,{gutter:"md",children:c.map((p,f)=>a.jsx(m,{marker:r,testID:`${t}${f}Item`,text:p},p))})})};try{o.displayName="List",o.__docgenInfo={description:"",displayName:"List",props:{accessibilityLanguage:{defaultValue:null,description:"",name:"accessibilityLanguage",required:!1,type:{name:"string"}},items:{defaultValue:null,description:"",name:"items",required:!0,type:{name:"Item[]"}},marker:{defaultValue:{value:"square"},description:"",name:"marker",required:!1,type:{name:"enum",value:[{value:'"check-mark"'},{value:'"square"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const J={component:o},i=e=>a.jsx(o,{...e});i.args={items:["Centrum","Nieuw-West","Noord","Oost","West","Zuid","Zuidoost","Weesp"],marker:"square"};var n,u,l;i.parameters={...i.parameters,docs:{...(n=i.parameters)==null?void 0:n.docs,source:{originalSource:"args => ",...(l=(u=i.parameters)==null?void 0:u.docs)==null?void 0:l.source}}};const K=["Default"];export{i as Default,K as __namedExportsOrder,J as default}; diff --git a/assets/ListItemMarker-DmJOL3FK.js b/assets/ListItemMarker-CUNXp5YB.js similarity index 94% rename from assets/ListItemMarker-DmJOL3FK.js rename to assets/ListItemMarker-CUNXp5YB.js index f2e5c42a..eb0b75e3 100644 --- a/assets/ListItemMarker-DmJOL3FK.js +++ b/assets/ListItemMarker-CUNXp5YB.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{r as m}from"./index-mfbfsM12.js";import{c as n}from"./config-BZnShabN.js";import{P as c}from"./Phrase-D4XuA9hP.js";import{u}from"./useDeviceContext-Cm8FgCCV.js";import{V as d}from"./index-BP1Ij_Cs.js";import{s as p}from"./index-kbHxBZ_W.js";var s=(e=>(e["check-mark"]="√",e.square="•",e))(s||{});const a=({additionalStyles:e,marker:i,testID:o})=>{const{fontScale:r}=u(),l=m.useMemo(()=>f(r),[r]);return t.jsx(d,{style:[l.marker,e],children:t.jsx(c,{accessible:!1,importantForAccessibility:"no",testID:o,children:s[i]})})},f=e=>p.create({marker:{width:n.listItemMarkerBoxWidth*e,alignItems:"center",alignSelf:"flex-start"}});try{a.displayName="ListItemMarker",a.__docgenInfo={description:"",displayName:"ListItemMarker",props:{additionalStyles:{defaultValue:null,description:"",name:"additionalStyles",required:!1,type:{name:"ViewStyle"}},marker:{defaultValue:null,description:"",name:"marker",required:!0,type:{name:"enum",value:[{value:'"check-mark"'},{value:'"square"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{a as L}; +import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{r as m}from"./index-mfbfsM12.js";import{c as n}from"./config-BZnShabN.js";import{P as c}from"./Phrase-CZOdtc60.js";import{u}from"./useDeviceContext-Cm8FgCCV.js";import{V as d}from"./index-BP1Ij_Cs.js";import{s as p}from"./index-kbHxBZ_W.js";var s=(e=>(e["check-mark"]="√",e.square="•",e))(s||{});const a=({additionalStyles:e,marker:i,testID:o})=>{const{fontScale:r}=u(),l=m.useMemo(()=>f(r),[r]);return t.jsx(d,{style:[l.marker,e],children:t.jsx(c,{accessible:!1,importantForAccessibility:"no",testID:o,children:s[i]})})},f=e=>p.create({marker:{width:n.listItemMarkerBoxWidth*e,alignItems:"center",alignSelf:"flex-start"}});try{a.displayName="ListItemMarker",a.__docgenInfo={description:"",displayName:"ListItemMarker",props:{additionalStyles:{defaultValue:null,description:"",name:"additionalStyles",required:!1,type:{name:"ViewStyle"}},marker:{defaultValue:null,description:"",name:"marker",required:!0,type:{name:"enum",value:[{value:'"check-mark"'},{value:'"square"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{a as L}; diff --git a/assets/NavigationButton.stories-DVafOVYy.js b/assets/NavigationButton.stories-Vj66KkpA.js similarity index 98% rename from assets/NavigationButton.stories-DVafOVYy.js rename to assets/NavigationButton.stories-Vj66KkpA.js index 222bf76b..e9c22da5 100644 --- a/assets/NavigationButton.stories-DVafOVYy.js +++ b/assets/NavigationButton.stories-Vj66KkpA.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{P as L}from"./Pressable-0Of7HZos.js";import{B as N}from"./Box-CEQ9kk6v.js";import{R as m}from"./Row-D-wvv0CV.js";import{I as n}from"./Icon-X_MsqpOP.js";import{P as B}from"./Phrase-D4XuA9hP.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./layoutStyles-hLwHoe51.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";const s=({direction:i="forward",emphasis:q="strong",icon:u,iconSize:c="lg",label:I,onPress:_,testID:a,accessibilityRole:j="link",accessibilityLanguage:P="nl-NL"})=>e.jsx(L,{accessibilityLanguage:P,accessibilityRole:j,onPress:_,testID:a,children:e.jsx(N,{insetHorizontal:"md",insetVertical:"sm",children:e.jsxs(m,{align:"between",gutter:"md",valign:"center",children:[i==="backward"&&e.jsx(n,{color:"link",name:"chevron-left",size:c,testID:`${a}Icon`}),e.jsxs(m,{gutter:"md",valign:"center",children:[!!u&&e.jsx(n,{color:"link",name:u,size:"lg",testID:`${a}Icon`}),e.jsx(B,{color:"link",emphasis:q,testID:"NavigationButtonLabel",children:I})]}),i==="forward"&&e.jsx(n,{color:"link",name:"chevron-right",size:c,testID:`${a}Icon`})]})})});try{s.displayName="NavigationButton",s.__docgenInfo={description:"",displayName:"NavigationButton",props:{accessibilityLanguage:{defaultValue:{value:"nl-NL"},description:"",name:"accessibilityLanguage",required:!1,type:{name:"string"}},accessibilityRole:{defaultValue:{value:"link"},description:"",name:"accessibilityRole",required:!1,type:{name:"enum",value:[{value:'"button"'},{value:'"link"'}]}},direction:{defaultValue:{value:"forward"},description:"",name:"direction",required:!1,type:{name:"enum",value:[{value:'"backward"'},{value:'"forward"'}]}},emphasis:{defaultValue:{value:"strong"},description:"",name:"emphasis",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"strong"'}]}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},iconSize:{defaultValue:{value:"lg"},description:"",name:"iconSize",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'},{value:'"ml"'}]}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"() => void"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const de={component:s,argTypes:{onPress:{action:"onPress"}}},r={args:{label:"Label"}},l={args:{icon:"alert",label:"Met icoon"}},o={args:{emphasis:"default",label:"Minder nadruk"}},t={args:{direction:"backward",label:"Vorige"}};var p,v,d;r.parameters={...r.parameters,docs:{...(p=r.parameters)==null?void 0:p.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{P as L}from"./Pressable-0Of7HZos.js";import{B as N}from"./Box-CEQ9kk6v.js";import{R as m}from"./Row-D-wvv0CV.js";import{I as n}from"./Icon-DbPHcDCx.js";import{P as B}from"./Phrase-CZOdtc60.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./layoutStyles-hLwHoe51.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";const s=({direction:i="forward",emphasis:q="strong",icon:u,iconSize:c="lg",label:I,onPress:_,testID:a,accessibilityRole:j="link",accessibilityLanguage:P="nl-NL"})=>e.jsx(L,{accessibilityLanguage:P,accessibilityRole:j,onPress:_,testID:a,children:e.jsx(N,{insetHorizontal:"md",insetVertical:"sm",children:e.jsxs(m,{align:"between",gutter:"md",valign:"center",children:[i==="backward"&&e.jsx(n,{color:"link",name:"chevron-left",size:c,testID:`${a}Icon`}),e.jsxs(m,{gutter:"md",valign:"center",children:[!!u&&e.jsx(n,{color:"link",name:u,size:"lg",testID:`${a}Icon`}),e.jsx(B,{color:"link",emphasis:q,testID:"NavigationButtonLabel",children:I})]}),i==="forward"&&e.jsx(n,{color:"link",name:"chevron-right",size:c,testID:`${a}Icon`})]})})});try{s.displayName="NavigationButton",s.__docgenInfo={description:"",displayName:"NavigationButton",props:{accessibilityLanguage:{defaultValue:{value:"nl-NL"},description:"",name:"accessibilityLanguage",required:!1,type:{name:"string"}},accessibilityRole:{defaultValue:{value:"link"},description:"",name:"accessibilityRole",required:!1,type:{name:"enum",value:[{value:'"button"'},{value:'"link"'}]}},direction:{defaultValue:{value:"forward"},description:"",name:"direction",required:!1,type:{name:"enum",value:[{value:'"backward"'},{value:'"forward"'}]}},emphasis:{defaultValue:{value:"strong"},description:"",name:"emphasis",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"strong"'}]}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},iconSize:{defaultValue:{value:"lg"},description:"",name:"iconSize",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'},{value:'"ml"'}]}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"() => void"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const de={component:s,argTypes:{onPress:{action:"onPress"}}},r={args:{label:"Label"}},l={args:{icon:"alert",label:"Met icoon"}},o={args:{emphasis:"default",label:"Minder nadruk"}},t={args:{direction:"backward",label:"Vorige"}};var p,v,d;r.parameters={...r.parameters,docs:{...(p=r.parameters)==null?void 0:p.docs,source:{originalSource:`{ args: { label: 'Label' } diff --git a/assets/NotificationHistoryEmpty.stories-fR52zbG5.js b/assets/NotificationHistoryEmpty.stories-BTI9bg8L.js similarity index 98% rename from assets/NotificationHistoryEmpty.stories-fR52zbG5.js rename to assets/NotificationHistoryEmpty.stories-BTI9bg8L.js index a4ab982f..83263c24 100644 --- a/assets/NotificationHistoryEmpty.stories-fR52zbG5.js +++ b/assets/NotificationHistoryEmpty.stories-BTI9bg8L.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{r as e}from"./index-mfbfsM12.js";import{B as a}from"./Box-CEQ9kk6v.js";import{S as s}from"./SingleSelectable-BAFROorM.js";import{C as r}from"./Column-CFK5NdwL.js";import{G as p}from"./Gutter-BrZ2VZou.js";import{F as h}from"./FigureWithFacadesBackground-BWm7kzMv.js";import{P as o}from"./Paragraph-ypvGdTJ3.js";import{T as d}from"./Title-DmDbCZFx.js";import"./_commonjsHelpers-BosuxZz1.js";import"./layoutStyles-hLwHoe51.js";import"./index-kbHxBZ_W.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-DbcoTUCW.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./index-BXDkY5MO.js";import"./index-CAyeAlm6.js";const f=n=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 235 251",...n},e.createElement("g",{clipPath:"url(#a)"},e.createElement("mask",{id:"b",width:235,height:251,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},e.createElement("path",{fill:"#fff",d:"M0 0h235v251H0V0Z"})),e.createElement("g",{mask:"url(#b)"},e.createElement("path",{fill:"#161112",d:"m32.733 251.441 24.109.04.012-7.658a6.163 6.163 0 0 0-6.147-6.177 6.098 6.098 0 0 0-2.599.578l-.002.001-7.962 2.879a11.246 11.246 0 0 0-7.411 10.337Z"}),e.createElement("path",{fill:"#161112",d:"m43.138 199.137-.003-.128a9.037 9.037 0 0 1 .003-.577c.195-4.943 4.355-8.794 9.293-8.599 4.938.196 8.781 4.363 8.586 9.306a9.26 9.26 0 0 1-.024.387l-.003.038a3.139 3.139 0 0 1-.007.08l-4.114 44.914a6.163 6.163 0 0 1-6.378 5.645 6.164 6.164 0 0 1-5.91-5.912v-.033l-1.443-45.121Z"}),e.createElement("path",{fill:"#161112",d:"M41.696 154.042a11.79 11.79 0 0 1 .003-.851c.256-6.484 5.707-11.529 12.182-11.273 6.474.256 11.511 5.715 11.256 12.2-.01.239-.026.476-.05.711l-4.094 44.697c-.39 4.757-4.46 8.404-9.268 8.214-4.745-.188-8.48-4.043-8.591-8.732l-1.436-44.911-.002-.055ZM94.835 240.081l-7.987-2.808-.002-.001a6.101 6.101 0 0 0-2.604-.554 6.164 6.164 0 0 0-6.092 6.231l.08 7.658 24.108-.256a11.248 11.248 0 0 0-7.503-10.27Z"}),e.createElement("path",{fill:"#161112",d:"m84.752 197.516-.017-.127a8.611 8.611 0 0 0-.093-.568c-.967-4.852-5.678-8.002-10.525-7.034-4.846.968-7.99 5.688-7.023 10.539.026.128.054.254.084.379l.01.037.019.077L78.3 244.532a6.158 6.158 0 0 0 7.183 4.573 6.167 6.167 0 0 0 4.911-6.766l-.001-.012-.003-.021-5.639-44.79Z"}),e.createElement("path",{fill:"#161112",d:"M79.117 152.753c-.036-.279-.081-.56-.137-.84-1.268-6.365-7.441-10.491-13.795-9.221-6.355 1.27-10.475 7.452-9.207 13.817.047.234.1.466.16.694l11.04 43.502c1.13 4.636 5.72 7.599 10.44 6.656 4.657-.931 7.741-5.324 7.118-9.972l-5.613-44.582-.006-.054Z"}),e.createElement("path",{fill:"#161112",d:"M79.197 154.675c.408-10.37-7.653-19.11-18.008-19.519-10.355-.41-19.08 7.665-19.49 18.035l37.498 1.484ZM4.174 28.366c5.337 1.13 8.805 6.314 7.816 11.687l-.932 4.927c-.01.048-.018.097-.029.145A5.277 5.277 0 1 1 .734 42.8l3.44-14.434Z"}),e.createElement("path",{fill:"#161112",d:"M3.46 39.327a5.273 5.273 0 0 1 7.047 2.19l15.737 28.848.076.144a6.172 6.172 0 0 1-2.676 8.302 6.153 6.153 0 0 1-8.36-2.825L1.114 46.332a5.288 5.288 0 0 1 2.347-7.005Z"}),e.createElement("path",{fill:"#00AEEF",d:"M17.79 67.96a6.153 6.153 0 0 1 8.318 2.168L43.02 98.104a7.052 7.052 0 0 1-2.529 9.79c-3.378 1.927 1.396 16.798-.528 13.414-.034-.06-9.135-16.172-9.167-16.233L15.407 76.23a6.172 6.172 0 0 1 2.383-8.27Z"}),e.createElement("path",{fill:"#161112",d:"M98.168 26.994c-5.273 1.401-8.471 6.756-7.21 12.072l1.182 4.872.036.143a5.276 5.276 0 0 0 6.454 3.754 5.287 5.287 0 0 0 3.709-6.602l-4.171-14.239Z"}),e.createElement("path",{fill:"#161112",d:"M97.191 37.44A5.28 5.28 0 0 0 92 42.692l-.344 32.873v.162a6.162 6.162 0 0 0 6.26 6.066 6.163 6.163 0 0 0 6.057-6.268l-.006-.162-1.417-32.844a5.28 5.28 0 0 0-5.359-5.077Z"}),e.createElement("path",{fill:"#00AEEF",d:"M102.227 71.323a6.15 6.15 0 0 0-8.592-.23L69.631 93.265l-.15.142a7.054 7.054 0 0 0-.135 9.966c2.712 2.791-7.59 18.257-4.804 15.542.05-.048 14.853-15.504 14.9-15.554l22.782-23.43h-.001a6.172 6.172 0 0 0 .004-8.608Z"}),e.createElement("g",{style:{mixBlendMode:"multiply"}},e.createElement("mask",{id:"c",width:34,height:34,x:38,y:56,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},e.createElement("path",{fill:"#fff",d:"M38.974 89.125h32.853V56.221H38.974v32.904Z"})),e.createElement("g",{mask:"url(#c)"},e.createElement("path",{fill:"#161112",d:"M38.98 73.112c-.242-9.082 6.914-16.642 15.982-16.885 9.07-.242 16.617 6.926 16.859 16.008.242 9.083-6.914 16.642-15.983 16.884-9.068.243-16.616-6.924-16.858-16.007Z"}))),e.createElement("path",{fill:"#00AEEF",d:"M80.72 95.38a7.03 7.03 0 0 0-6.95-3.937v-.006L36.502 94.74c-.019 0-.037.003-.055.005l-.06.005v.002a7.038 7.038 0 0 0-6.236 5.43c-.875 3.794 1.483 7.577 5.271 8.455a7.008 7.008 0 0 0 2.206.153l4.173 47.266c.434 4.912 4.762 8.543 9.667 8.108l19.62-1.738c4.904-.435 8.53-4.769 8.096-9.682l-4.174-47.271a6.996 6.996 0 0 0 2.453-.674 7.052 7.052 0 0 0 3.257-9.418Z"})),e.createElement("mask",{id:"d",width:235,height:251,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},e.createElement("path",{fill:"#fff",d:"M0 0h235v251H0V0Z"})),e.createElement("g",{mask:"url(#d)"},e.createElement("path",{fill:"#161112",d:"m219.075 224.583-8.407-22.629-7.166 2.67a6.17 6.17 0 0 0-3.623 7.93 6.127 6.127 0 0 0 1.45 2.236l.001.001 5.483 6.461a11.216 11.216 0 0 0 12.262 3.331Z"}),e.createElement("path",{fill:"#161112",d:"M160.69 203.578a9.703 9.703 0 0 1-.668-.22c-4.626-1.733-6.977-6.895-5.247-11.531 1.731-4.636 6.886-6.988 11.512-5.256.122.046.241.094.36.144l.034.015.074.032 41.305 17.967a6.174 6.174 0 0 1 3.358 7.834 6.156 6.156 0 0 1-7.456 3.771l-.011-.003-.021-.006-43.24-12.747Z"}),e.createElement("path",{fill:"#161112",d:"M129.885 163.345c-.162-.23-.318-.467-.465-.712-3.353-5.554-1.578-12.771 3.967-16.128 5.545-3.358 12.752-1.58 16.105 3.973.123.205.239.412.349.62l21.162 39.566c2.29 4.186.899 9.475-3.219 11.969-4.063 2.46-9.3 1.302-11.972-2.55l-25.896-36.693-.031-.045ZM225.828 193.906l-7.658-3.613-.002-.001a6.09 6.09 0 0 0-2.533-.819 6.163 6.163 0 0 0-6.698 5.574l-.702 7.626 24.006 2.219a11.248 11.248 0 0 0-6.413-10.986Z"}),e.createElement("path",{fill:"#161112",d:"m206.336 150.917-.042-.121a8.854 8.854 0 0 0-.206-.538c-1.926-4.555-7.176-6.686-11.727-4.757-4.551 1.93-6.676 7.189-4.75 11.745.05.12.104.237.159.353l.016.034.034.072 19.692 40.563a6.155 6.155 0 0 0 7.957 3.025 6.172 6.172 0 0 0 3.443-7.622l-.003-.011-.007-.02-14.566-42.723Z"}),e.createElement("path",{fill:"#161112",d:"M153.966 140.395c-.28-.027-.563-.045-.848-.053-6.478-.176-11.866 4.934-12.042 11.421-.177 6.488 4.926 11.886 11.404 12.062.238.007.475.006.711-.002l44.801-1.112c4.765-.073 8.67-3.897 8.801-8.715.128-4.754-3.463-8.743-8.126-9.168L154.02 140.4l-.054-.005Z"}),e.createElement("path",{fill:"#161112",d:"M163.921 148.357c-3.289-9.843-13.92-15.151-23.748-11.858-9.826 3.293-15.127 13.942-11.839 23.784l35.587-11.926Z"}),e.createElement("path",{fill:"#00AEEF",d:"m166.615 137.428-37.357-3.627-5.589 54.194c10.498 2.59 52.904-9.474 74.998-43.166l-32.052-7.401Z"}),e.createElement("path",{fill:"#161112",d:"M117.808 28.295c4.863 2.477 6.869 8.384 4.523 13.318l-2.176 4.516a5.273 5.273 0 0 1-7.162 2.447 5.29 5.29 0 0 1-2.245-7.234l7.06-13.047Z"}),e.createElement("path",{fill:"#161112",d:"M116.412 38.68a5.285 5.285 0 0 1 4.173 6.093L115.07 77.18l-.03.16a6.158 6.158 0 0 1-7.239 4.851 6.167 6.167 0 0 1-4.81-7.409l7.243-32.063a5.277 5.277 0 0 1 6.178-4.04Z"}),e.createElement("path",{fill:"#161112",d:"M104.54 71.882a6.151 6.151 0 0 1 8.589-.32l24.232 21.923.152.14a7.055 7.055 0 0 1 .238 9.965 7.028 7.028 0 0 1-9.949.238c-.049-.048-.099-.096-.147-.145L104.633 80.49a6.174 6.174 0 0 1-.093-8.608ZM197.712 27.115c-5.437.45-9.525 5.158-9.216 10.614l.308 5.004.01.147a5.279 5.279 0 0 0 5.695 4.832 5.282 5.282 0 0 0 4.81-5.845l-1.607-14.752Z"}),e.createElement("path",{fill:"#161112",d:"M195.135 37.267a5.277 5.277 0 0 0-6.206 3.995l-7.464 32.013a6.167 6.167 0 0 0 4.759 7.442 6.157 6.157 0 0 0 7.303-4.96l5.739-32.368a5.285 5.285 0 0 0-4.131-6.122Z"}),e.createElement("path",{fill:"#161112",d:"M190.752 69.46a6.152 6.152 0 0 0-8.408 1.785l-18.172 27.172a7.053 7.053 0 0 0 2.079 9.896 7.028 7.028 0 0 0 9.814-2.372l16.69-28.11a6.174 6.174 0 0 0-2.003-8.371Z"}),e.createElement("g",{style:{mixBlendMode:"multiply"}},e.createElement("mask",{id:"e",width:34,height:34,x:135,y:56,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},e.createElement("path",{fill:"#fff",d:"M135.959 89.578h32.854V56.673h-32.854v32.905Z"})),e.createElement("g",{mask:"url(#e)"},e.createElement("path",{fill:"#161112",d:"M135.98 72.298c.457-9.074 8.173-16.06 17.233-15.603 9.06.457 16.035 8.185 15.578 17.259-.456 9.074-8.171 16.06-17.232 15.603-9.06-.457-16.036-8.184-15.579-17.26Z"}))),e.createElement("path",{fill:"#161112",d:"M135.98 72.298c.447-8.874 7.838-15.748 16.638-15.618a13.164 13.164 0 0 0-9.483-4.745c-7.288-.37-13.495 5.252-13.862 12.553-.013.25-.016.5-.015.75-.025.177-.041.349-.049.515-.242 4.808 3.324 17.353-6.441 19.162 7.68 5.535 14.974 2.06 16.256-2.226a16.398 16.398 0 0 1-3.044-10.391Z"}),e.createElement("path",{fill:"#00AEEF",d:"m126.998 102.96 10.014 12.741 1.074-7.63-11.088-5.111ZM175.848 106.4l-10.921 17.434.727-12.707 10.194-4.727Z"}),e.createElement("path",{fill:"#00AEEF",d:"M176.797 100.492a7.037 7.037 0 0 0-6.109-5.148l.001-.006-10.267-.997c-1.47 2.357-5.289 3.795-9.594 3.369-4.283-.424-7.734-2.565-8.733-5.148l-8.646-.84-.055-.004-.059-.006v.002a7.034 7.034 0 0 0-7.127 4.19 7.052 7.052 0 0 0 3.63 9.281c.699.306 1.42.485 2.139.556l-4.57 47.229c-.475 4.909 3.113 9.274 8.014 9.75l19.604 1.903c4.901.475 9.26-3.118 9.735-8.027l4.571-47.234a6.996 6.996 0 0 0 2.536-.211c3.75-1.028 5.956-4.903 4.93-8.659Z"})),e.createElement("path",{stroke:"#161112",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:3,d:"M97.773 15.116 91.91 8.46M105.059 12.519l-1.18-8.798M112.468 14.374l4.004-7.92"}),e.createElement("mask",{id:"f",width:235,height:251,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},e.createElement("path",{fill:"#fff",d:"M0 0h235v251H0V0Z"})),e.createElement("g",{fill:"#B6B8BA",mask:"url(#f)"},e.createElement("path",{d:"M150.703 247.809h70.218a.912.912 0 0 0 0-1.827h-70.218a.912.912 0 0 0 0 1.827ZM163.934 251.008h70.218a.913.913 0 0 0 .912-.914.913.913 0 0 0-.912-.914h-70.218a.914.914 0 0 0 0 1.828Z"}))),e.createElement("defs",null,e.createElement("clipPath",{id:"a"},e.createElement("path",{fill:"#fff",d:"M0 0h235v251H0z"})))),E=()=>t.jsxs(a,{grow:!0,inset:"no",testID:"NotificationHistoryEmptyContainer",children:[t.jsxs(a,{children:[t.jsx(p,{height:"xxl"}),t.jsx(s,{children:t.jsxs(r,{halign:"center",children:[t.jsx(d,{level:"h2",text:"U heeft geen meldingen"}),t.jsx(o,{variant:"intro",children:"In de afgelopen 30 dagen"})]})})]}),t.jsx(r,{align:"center",grow:1,children:t.jsx(h,{testID:"NotificationHistoryEmptyImage",children:t.jsx(f,{})})})]}),W={component:E},l={};var m,i,c;l.parameters={...l.parameters,docs:{...(m=l.parameters)==null?void 0:m.docs,source:{originalSource:"{}",...(c=(i=l.parameters)==null?void 0:i.docs)==null?void 0:c.source}}};const _=["Default"];export{l as Default,_ as __namedExportsOrder,W as default}; +import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{r as e}from"./index-mfbfsM12.js";import{B as a}from"./Box-CEQ9kk6v.js";import{S as s}from"./SingleSelectable-BAFROorM.js";import{C as r}from"./Column-CFK5NdwL.js";import{G as p}from"./Gutter-BrZ2VZou.js";import{F as h}from"./FigureWithFacadesBackground-BWm7kzMv.js";import{P as o}from"./Paragraph-4J4ihaTP.js";import{T as d}from"./Title-DyZpgX2c.js";import"./_commonjsHelpers-BosuxZz1.js";import"./layoutStyles-hLwHoe51.js";import"./index-kbHxBZ_W.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-DbcoTUCW.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./index-BXDkY5MO.js";import"./index-CAyeAlm6.js";const f=n=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 235 251",...n},e.createElement("g",{clipPath:"url(#a)"},e.createElement("mask",{id:"b",width:235,height:251,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},e.createElement("path",{fill:"#fff",d:"M0 0h235v251H0V0Z"})),e.createElement("g",{mask:"url(#b)"},e.createElement("path",{fill:"#161112",d:"m32.733 251.441 24.109.04.012-7.658a6.163 6.163 0 0 0-6.147-6.177 6.098 6.098 0 0 0-2.599.578l-.002.001-7.962 2.879a11.246 11.246 0 0 0-7.411 10.337Z"}),e.createElement("path",{fill:"#161112",d:"m43.138 199.137-.003-.128a9.037 9.037 0 0 1 .003-.577c.195-4.943 4.355-8.794 9.293-8.599 4.938.196 8.781 4.363 8.586 9.306a9.26 9.26 0 0 1-.024.387l-.003.038a3.139 3.139 0 0 1-.007.08l-4.114 44.914a6.163 6.163 0 0 1-6.378 5.645 6.164 6.164 0 0 1-5.91-5.912v-.033l-1.443-45.121Z"}),e.createElement("path",{fill:"#161112",d:"M41.696 154.042a11.79 11.79 0 0 1 .003-.851c.256-6.484 5.707-11.529 12.182-11.273 6.474.256 11.511 5.715 11.256 12.2-.01.239-.026.476-.05.711l-4.094 44.697c-.39 4.757-4.46 8.404-9.268 8.214-4.745-.188-8.48-4.043-8.591-8.732l-1.436-44.911-.002-.055ZM94.835 240.081l-7.987-2.808-.002-.001a6.101 6.101 0 0 0-2.604-.554 6.164 6.164 0 0 0-6.092 6.231l.08 7.658 24.108-.256a11.248 11.248 0 0 0-7.503-10.27Z"}),e.createElement("path",{fill:"#161112",d:"m84.752 197.516-.017-.127a8.611 8.611 0 0 0-.093-.568c-.967-4.852-5.678-8.002-10.525-7.034-4.846.968-7.99 5.688-7.023 10.539.026.128.054.254.084.379l.01.037.019.077L78.3 244.532a6.158 6.158 0 0 0 7.183 4.573 6.167 6.167 0 0 0 4.911-6.766l-.001-.012-.003-.021-5.639-44.79Z"}),e.createElement("path",{fill:"#161112",d:"M79.117 152.753c-.036-.279-.081-.56-.137-.84-1.268-6.365-7.441-10.491-13.795-9.221-6.355 1.27-10.475 7.452-9.207 13.817.047.234.1.466.16.694l11.04 43.502c1.13 4.636 5.72 7.599 10.44 6.656 4.657-.931 7.741-5.324 7.118-9.972l-5.613-44.582-.006-.054Z"}),e.createElement("path",{fill:"#161112",d:"M79.197 154.675c.408-10.37-7.653-19.11-18.008-19.519-10.355-.41-19.08 7.665-19.49 18.035l37.498 1.484ZM4.174 28.366c5.337 1.13 8.805 6.314 7.816 11.687l-.932 4.927c-.01.048-.018.097-.029.145A5.277 5.277 0 1 1 .734 42.8l3.44-14.434Z"}),e.createElement("path",{fill:"#161112",d:"M3.46 39.327a5.273 5.273 0 0 1 7.047 2.19l15.737 28.848.076.144a6.172 6.172 0 0 1-2.676 8.302 6.153 6.153 0 0 1-8.36-2.825L1.114 46.332a5.288 5.288 0 0 1 2.347-7.005Z"}),e.createElement("path",{fill:"#00AEEF",d:"M17.79 67.96a6.153 6.153 0 0 1 8.318 2.168L43.02 98.104a7.052 7.052 0 0 1-2.529 9.79c-3.378 1.927 1.396 16.798-.528 13.414-.034-.06-9.135-16.172-9.167-16.233L15.407 76.23a6.172 6.172 0 0 1 2.383-8.27Z"}),e.createElement("path",{fill:"#161112",d:"M98.168 26.994c-5.273 1.401-8.471 6.756-7.21 12.072l1.182 4.872.036.143a5.276 5.276 0 0 0 6.454 3.754 5.287 5.287 0 0 0 3.709-6.602l-4.171-14.239Z"}),e.createElement("path",{fill:"#161112",d:"M97.191 37.44A5.28 5.28 0 0 0 92 42.692l-.344 32.873v.162a6.162 6.162 0 0 0 6.26 6.066 6.163 6.163 0 0 0 6.057-6.268l-.006-.162-1.417-32.844a5.28 5.28 0 0 0-5.359-5.077Z"}),e.createElement("path",{fill:"#00AEEF",d:"M102.227 71.323a6.15 6.15 0 0 0-8.592-.23L69.631 93.265l-.15.142a7.054 7.054 0 0 0-.135 9.966c2.712 2.791-7.59 18.257-4.804 15.542.05-.048 14.853-15.504 14.9-15.554l22.782-23.43h-.001a6.172 6.172 0 0 0 .004-8.608Z"}),e.createElement("g",{style:{mixBlendMode:"multiply"}},e.createElement("mask",{id:"c",width:34,height:34,x:38,y:56,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},e.createElement("path",{fill:"#fff",d:"M38.974 89.125h32.853V56.221H38.974v32.904Z"})),e.createElement("g",{mask:"url(#c)"},e.createElement("path",{fill:"#161112",d:"M38.98 73.112c-.242-9.082 6.914-16.642 15.982-16.885 9.07-.242 16.617 6.926 16.859 16.008.242 9.083-6.914 16.642-15.983 16.884-9.068.243-16.616-6.924-16.858-16.007Z"}))),e.createElement("path",{fill:"#00AEEF",d:"M80.72 95.38a7.03 7.03 0 0 0-6.95-3.937v-.006L36.502 94.74c-.019 0-.037.003-.055.005l-.06.005v.002a7.038 7.038 0 0 0-6.236 5.43c-.875 3.794 1.483 7.577 5.271 8.455a7.008 7.008 0 0 0 2.206.153l4.173 47.266c.434 4.912 4.762 8.543 9.667 8.108l19.62-1.738c4.904-.435 8.53-4.769 8.096-9.682l-4.174-47.271a6.996 6.996 0 0 0 2.453-.674 7.052 7.052 0 0 0 3.257-9.418Z"})),e.createElement("mask",{id:"d",width:235,height:251,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},e.createElement("path",{fill:"#fff",d:"M0 0h235v251H0V0Z"})),e.createElement("g",{mask:"url(#d)"},e.createElement("path",{fill:"#161112",d:"m219.075 224.583-8.407-22.629-7.166 2.67a6.17 6.17 0 0 0-3.623 7.93 6.127 6.127 0 0 0 1.45 2.236l.001.001 5.483 6.461a11.216 11.216 0 0 0 12.262 3.331Z"}),e.createElement("path",{fill:"#161112",d:"M160.69 203.578a9.703 9.703 0 0 1-.668-.22c-4.626-1.733-6.977-6.895-5.247-11.531 1.731-4.636 6.886-6.988 11.512-5.256.122.046.241.094.36.144l.034.015.074.032 41.305 17.967a6.174 6.174 0 0 1 3.358 7.834 6.156 6.156 0 0 1-7.456 3.771l-.011-.003-.021-.006-43.24-12.747Z"}),e.createElement("path",{fill:"#161112",d:"M129.885 163.345c-.162-.23-.318-.467-.465-.712-3.353-5.554-1.578-12.771 3.967-16.128 5.545-3.358 12.752-1.58 16.105 3.973.123.205.239.412.349.62l21.162 39.566c2.29 4.186.899 9.475-3.219 11.969-4.063 2.46-9.3 1.302-11.972-2.55l-25.896-36.693-.031-.045ZM225.828 193.906l-7.658-3.613-.002-.001a6.09 6.09 0 0 0-2.533-.819 6.163 6.163 0 0 0-6.698 5.574l-.702 7.626 24.006 2.219a11.248 11.248 0 0 0-6.413-10.986Z"}),e.createElement("path",{fill:"#161112",d:"m206.336 150.917-.042-.121a8.854 8.854 0 0 0-.206-.538c-1.926-4.555-7.176-6.686-11.727-4.757-4.551 1.93-6.676 7.189-4.75 11.745.05.12.104.237.159.353l.016.034.034.072 19.692 40.563a6.155 6.155 0 0 0 7.957 3.025 6.172 6.172 0 0 0 3.443-7.622l-.003-.011-.007-.02-14.566-42.723Z"}),e.createElement("path",{fill:"#161112",d:"M153.966 140.395c-.28-.027-.563-.045-.848-.053-6.478-.176-11.866 4.934-12.042 11.421-.177 6.488 4.926 11.886 11.404 12.062.238.007.475.006.711-.002l44.801-1.112c4.765-.073 8.67-3.897 8.801-8.715.128-4.754-3.463-8.743-8.126-9.168L154.02 140.4l-.054-.005Z"}),e.createElement("path",{fill:"#161112",d:"M163.921 148.357c-3.289-9.843-13.92-15.151-23.748-11.858-9.826 3.293-15.127 13.942-11.839 23.784l35.587-11.926Z"}),e.createElement("path",{fill:"#00AEEF",d:"m166.615 137.428-37.357-3.627-5.589 54.194c10.498 2.59 52.904-9.474 74.998-43.166l-32.052-7.401Z"}),e.createElement("path",{fill:"#161112",d:"M117.808 28.295c4.863 2.477 6.869 8.384 4.523 13.318l-2.176 4.516a5.273 5.273 0 0 1-7.162 2.447 5.29 5.29 0 0 1-2.245-7.234l7.06-13.047Z"}),e.createElement("path",{fill:"#161112",d:"M116.412 38.68a5.285 5.285 0 0 1 4.173 6.093L115.07 77.18l-.03.16a6.158 6.158 0 0 1-7.239 4.851 6.167 6.167 0 0 1-4.81-7.409l7.243-32.063a5.277 5.277 0 0 1 6.178-4.04Z"}),e.createElement("path",{fill:"#161112",d:"M104.54 71.882a6.151 6.151 0 0 1 8.589-.32l24.232 21.923.152.14a7.055 7.055 0 0 1 .238 9.965 7.028 7.028 0 0 1-9.949.238c-.049-.048-.099-.096-.147-.145L104.633 80.49a6.174 6.174 0 0 1-.093-8.608ZM197.712 27.115c-5.437.45-9.525 5.158-9.216 10.614l.308 5.004.01.147a5.279 5.279 0 0 0 5.695 4.832 5.282 5.282 0 0 0 4.81-5.845l-1.607-14.752Z"}),e.createElement("path",{fill:"#161112",d:"M195.135 37.267a5.277 5.277 0 0 0-6.206 3.995l-7.464 32.013a6.167 6.167 0 0 0 4.759 7.442 6.157 6.157 0 0 0 7.303-4.96l5.739-32.368a5.285 5.285 0 0 0-4.131-6.122Z"}),e.createElement("path",{fill:"#161112",d:"M190.752 69.46a6.152 6.152 0 0 0-8.408 1.785l-18.172 27.172a7.053 7.053 0 0 0 2.079 9.896 7.028 7.028 0 0 0 9.814-2.372l16.69-28.11a6.174 6.174 0 0 0-2.003-8.371Z"}),e.createElement("g",{style:{mixBlendMode:"multiply"}},e.createElement("mask",{id:"e",width:34,height:34,x:135,y:56,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},e.createElement("path",{fill:"#fff",d:"M135.959 89.578h32.854V56.673h-32.854v32.905Z"})),e.createElement("g",{mask:"url(#e)"},e.createElement("path",{fill:"#161112",d:"M135.98 72.298c.457-9.074 8.173-16.06 17.233-15.603 9.06.457 16.035 8.185 15.578 17.259-.456 9.074-8.171 16.06-17.232 15.603-9.06-.457-16.036-8.184-15.579-17.26Z"}))),e.createElement("path",{fill:"#161112",d:"M135.98 72.298c.447-8.874 7.838-15.748 16.638-15.618a13.164 13.164 0 0 0-9.483-4.745c-7.288-.37-13.495 5.252-13.862 12.553-.013.25-.016.5-.015.75-.025.177-.041.349-.049.515-.242 4.808 3.324 17.353-6.441 19.162 7.68 5.535 14.974 2.06 16.256-2.226a16.398 16.398 0 0 1-3.044-10.391Z"}),e.createElement("path",{fill:"#00AEEF",d:"m126.998 102.96 10.014 12.741 1.074-7.63-11.088-5.111ZM175.848 106.4l-10.921 17.434.727-12.707 10.194-4.727Z"}),e.createElement("path",{fill:"#00AEEF",d:"M176.797 100.492a7.037 7.037 0 0 0-6.109-5.148l.001-.006-10.267-.997c-1.47 2.357-5.289 3.795-9.594 3.369-4.283-.424-7.734-2.565-8.733-5.148l-8.646-.84-.055-.004-.059-.006v.002a7.034 7.034 0 0 0-7.127 4.19 7.052 7.052 0 0 0 3.63 9.281c.699.306 1.42.485 2.139.556l-4.57 47.229c-.475 4.909 3.113 9.274 8.014 9.75l19.604 1.903c4.901.475 9.26-3.118 9.735-8.027l4.571-47.234a6.996 6.996 0 0 0 2.536-.211c3.75-1.028 5.956-4.903 4.93-8.659Z"})),e.createElement("path",{stroke:"#161112",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:3,d:"M97.773 15.116 91.91 8.46M105.059 12.519l-1.18-8.798M112.468 14.374l4.004-7.92"}),e.createElement("mask",{id:"f",width:235,height:251,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},e.createElement("path",{fill:"#fff",d:"M0 0h235v251H0V0Z"})),e.createElement("g",{fill:"#B6B8BA",mask:"url(#f)"},e.createElement("path",{d:"M150.703 247.809h70.218a.912.912 0 0 0 0-1.827h-70.218a.912.912 0 0 0 0 1.827ZM163.934 251.008h70.218a.913.913 0 0 0 .912-.914.913.913 0 0 0-.912-.914h-70.218a.914.914 0 0 0 0 1.828Z"}))),e.createElement("defs",null,e.createElement("clipPath",{id:"a"},e.createElement("path",{fill:"#fff",d:"M0 0h235v251H0z"})))),E=()=>t.jsxs(a,{grow:!0,inset:"no",testID:"NotificationHistoryEmptyContainer",children:[t.jsxs(a,{children:[t.jsx(p,{height:"xxl"}),t.jsx(s,{children:t.jsxs(r,{halign:"center",children:[t.jsx(d,{level:"h2",text:"U heeft geen meldingen"}),t.jsx(o,{variant:"intro",children:"In de afgelopen 30 dagen"})]})})]}),t.jsx(r,{align:"center",grow:1,children:t.jsx(h,{testID:"NotificationHistoryEmptyImage",children:t.jsx(f,{})})})]}),W={component:E},l={};var m,i,c;l.parameters={...l.parameters,docs:{...(m=l.parameters)==null?void 0:m.docs,source:{originalSource:"{}",...(c=(i=l.parameters)==null?void 0:i.docs)==null?void 0:c.source}}};const _=["Default"];export{l as Default,_ as __namedExportsOrder,W as default}; diff --git a/assets/NotificationHistoryItem.stories-CzBWuwvF.js b/assets/NotificationHistoryItem.stories-CHGXW53v.js similarity index 88% rename from assets/NotificationHistoryItem.stories-CzBWuwvF.js rename to assets/NotificationHistoryItem.stories-CHGXW53v.js index 0b0cea59..06c283a2 100644 --- a/assets/NotificationHistoryItem.stories-CzBWuwvF.js +++ b/assets/NotificationHistoryItem.stories-CHGXW53v.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-Bxcv0yjW.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import{L as C,g as $,a as N,c as D,d as h}from"./modules-DWXNg6GW.js";import"./development-LhlsWDYu.js";import{P as _}from"./PressableBase-DhkKVuqd.js";import{B as M}from"./Box-CEQ9kk6v.js";import{B as k}from"./Badge-gxv3290q.js";import{C as H}from"./Column-CFK5NdwL.js";import{R as p}from"./Row-D-wvv0CV.js";import{I as S}from"./Icon-X_MsqpOP.js";import{P as T}from"./Paragraph-ypvGdTJ3.js";import{P as B}from"./Phrase-D4XuA9hP.js";import{T as W}from"./Title-DmDbCZFx.js";import{u as E}from"./useThemable-ua4U8LzO.js";import{a as z}from"./accessibleText-gmNPjmn1.js";import{r as l}from"./index-mfbfsM12.js";import{N as F}from"./Tooltip-6N6xDP0A.js";import"./index-8JwjhRSi.js";import{V as L}from"./index-BP1Ij_Cs.js";import{s as R}from"./index-kbHxBZ_W.js";import{M as U}from"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useOpenUrl-BQFKyC8S.js";import"./index-DEfxrPnc.js";import"./index-DFkxGuuM.js";import"./client-BGlHIwA3.js";import"./index-CDv7s-w8.js";import"./index-Ce74jbsy.js";import"./extends-CF3RwP-h.js";import"./index-CkqLweLe.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./index-CIcog7m4.js";import"./index-k6NSpe5t.js";import"./index-DZxzYa9i.js";import"./index-BW2XZOZc.js";import"./index-BXDkY5MO.js";import"./useOpenMailUrl-Blrf_PL9.js";import"./useOpenPhoneUrl-TB9t0oDt.js";import"./useTheme-ChTiG3MC.js";import"./index-DbcoTUCW.js";import"./useDeviceContext-Cm8FgCCV.js";import"./useAccessibilityFocus-jeKlJ74P.js";import"./useIsScreenReaderEnabled-A65pchNu.js";import"./duration-A4BOymd5.js";import"./Pressable-0Of7HZos.js";import"./Size-ByzkQpGs.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./IconButton-CciMcnyz.js";import"./config-BZnShabN.js";import"./types-BJ_48vsK.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Gutter-BrZ2VZou.js";import"./ChatSystemEntry-DUcFLRjf.js";import"./Button-_M7GwRMx.js";import"./Center-2_hcwEx9.js";import"./layoutStyles-hLwHoe51.js";import"./HideFromAccessibility-B6TCA_vV.js";import"./PleaseWait-B-bOq08A.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./base-color-B2rPH-Aj.js";import"./Triangle-rmeRPZtY.js";import"./SingleSelectable-BAFROorM.js";import"./Fader-CBhy3bI5.js";function O(){const t=l.useContext(F),o=l.useContext(C);return l.useCallback(r=>{if(t===void 0)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");if(typeof r!="string"){t.navigate(r.screen,r.params);return}if(!r.startsWith("/"))throw new Error(`The path must start with '/' (${r}).`);const{options:e}=o,i=e!=null&&e.getStateFromPath?e.getStateFromPath(r,e.config):$(r,e==null?void 0:e.config);if(i){const s=N(i,e==null?void 0:e.config);s!==void 0?t.dispatch(s):t.reset(i)}else throw new Error("Failed to parse the path to a navigation state.")},[o,t])}(()=>{const t={};return D.forEach(({linking:o,slug:a})=>{o&&(t[a]={screens:o})}),t})();const y="amsterdam://",V={NewsUpdatedByProjectManager:{id:"NewsUpdatedByProjectManager",route:"/news",routeWithPrefix:`${y}news`},ProjectWarningCreatedByProjectManager:{id:"ProjectWarningCreatedByProjectManager",route:"/warning",routeWithPrefix:`${y}warning`}},q=({data:t,title:o="",body:a=""},r=!0)=>{const e=(t==null?void 0:t.type)&&V[t.type];if(!(e!=null&&e.routeWithPrefix)||!(t!=null&&t.linkSourceid))return;const i=encodeURIComponent(`${o} - ${a}`),s=`/${t.linkSourceid}/${encodeURIComponent(o)}/${i}/${r}`;return r?`${e.routeWithPrefix}${s}`:`${e.route}${s}`},A=["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],Y=t=>{if(t==null||t==="")return"";const o=h(t),a=h(),r=o.startOf("day").diff(a.startOf("day"),"days"),e=r===0,i=r===-1,s=r>-7&&r<-1;return e?o.format("HH:mm"):i?"gisteren":s?A[o.get("day")]:o.format("D MMMM")},d=({item:{title:t,body:o,module_slug:a,created_at:r,is_read:e,id:i,context:s},enabledModules:v=[]})=>{const f=v.find(({slug:m})=>m===a),w=E(G),P=O();if(!f)return null;const{icon:b}=f,g=Y(r);return n.jsx(_,{accessibilityLabel:z(e?void 0:"Ongelezen bericht: ",t,o,`ontvangen: ${g}`),onPress:()=>{const m=q({title:t,body:o,data:s},!1);m&&P(m)},testID:`NotificationHistoryItem${i}Button`,children:n.jsx(M,{insetHorizontal:"md",insetVertical:"smd",children:n.jsxs(p,{gutter:"sm",children:[n.jsx(L,{style:w.iconContainer,children:n.jsx(S,{color:"inverse",name:b,size:"xl",testID:`NotificationHistoryItem${i}Icon`})}),n.jsxs(H,{grow:1,shrink:1,children:[n.jsxs(p,{align:"between",flex:1,gutter:"sm",valign:"start",children:[n.jsx(W,{level:"h5",testID:`NotificationHistoryItem${i}Title`,text:t}),n.jsxs(p,{gutter:"sm",valign:"center",children:[n.jsx(B,{color:"secondary",numberOfLines:1,testID:`NotificationHistoryItem${i}CreationDate`,variant:"body",children:g}),!e&&n.jsx(k,{testID:`NotificationHistoryItem${i}IsUnreadBadge`,variant:"extraSmall"})]})]}),n.jsx(T,{testID:`NotificationHistoryItem${i}Description`,children:o})]})]})})})},G=({color:t,size:o})=>R.create({iconContainer:{backgroundColor:t.notificationHistory.itemIcon.background,justifyContent:"center",alignItems:"center",width:o.iconContainer.xl,height:o.iconContainer.xl}});try{d.displayName="NotificationHistoryItem",d.__docgenInfo={description:"",displayName:"NotificationHistoryItem",props:{enabledModules:{defaultValue:{value:"[]"},description:"",name:"enabledModules",required:!1,type:{name:"Module[]"}},item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"Notification"}}}}}catch{}const u=U["construction-work"],ue={component:d},c={args:{enabledModules:[{moduleSlug:u,title:"Werkzaamheden",icon:"announcement",slug:u,status:1,description:"",version:"1.0.0"}],item:{title:"De nieuwe brug is geplaatst",module_slug:u,created_at:"2022-01-15 10:30:00",pushed_at:"2022-01-15 10:30:00",is_read:!1,id:"1",context:{},body:"De nieuwe brug is geplaatst"}}};var x,I,j;c.parameters={...c.parameters,docs:{...(x=c.parameters)==null?void 0:x.docs,source:{originalSource:`{ +import{j as n}from"./jsx-runtime-Bxcv0yjW.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import{L as C,g as $,a as N,c as D,d as h}from"./modules-hTTKIr_p.js";import"./development-LhlsWDYu.js";import{P as _}from"./PressableBase-DhkKVuqd.js";import{B as M}from"./Box-CEQ9kk6v.js";import{B as k}from"./Badge-BAkGihjF.js";import{C as H}from"./Column-CFK5NdwL.js";import{R as p}from"./Row-D-wvv0CV.js";import{I as S}from"./Icon-DbPHcDCx.js";import{P as T}from"./Paragraph-4J4ihaTP.js";import{P as B}from"./Phrase-CZOdtc60.js";import{T as W}from"./Title-DyZpgX2c.js";import{u as E}from"./useThemable-ua4U8LzO.js";import{a as z}from"./accessibleText-gmNPjmn1.js";import{r as l}from"./index-mfbfsM12.js";import{N as F}from"./Tooltip-CFX6LweZ.js";import"./index-8JwjhRSi.js";import{V as L}from"./index-BP1Ij_Cs.js";import{s as R}from"./index-kbHxBZ_W.js";import{M as U}from"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useOpenUrl-DnQVF1wQ.js";import"./index-DEfxrPnc.js";import"./index-DFkxGuuM.js";import"./client-BGlHIwA3.js";import"./index-CDv7s-w8.js";import"./index-Ce74jbsy.js";import"./extends-CF3RwP-h.js";import"./index-CkqLweLe.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./index-CIcog7m4.js";import"./index-k6NSpe5t.js";import"./index-DZxzYa9i.js";import"./index-BW2XZOZc.js";import"./index-BXDkY5MO.js";import"./useOpenMailUrl-Blrf_PL9.js";import"./useOpenPhoneUrl-TB9t0oDt.js";import"./useTheme-ChTiG3MC.js";import"./index-DbcoTUCW.js";import"./useDeviceContext-Cm8FgCCV.js";import"./useAccessibilityFocus-jeKlJ74P.js";import"./useIsScreenReaderEnabled-A65pchNu.js";import"./duration-A4BOymd5.js";import"./Pressable-0Of7HZos.js";import"./Size-ByzkQpGs.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./IconButton-S0EpSLVW.js";import"./config-BZnShabN.js";import"./types-BJ_48vsK.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Gutter-BrZ2VZou.js";import"./ChatSystemEntry-CUUCUyCa.js";import"./Button-BgT1eW_K.js";import"./Center-2_hcwEx9.js";import"./layoutStyles-hLwHoe51.js";import"./HideFromAccessibility-B6TCA_vV.js";import"./PleaseWait-CKlP_x4g.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./base-color-B2rPH-Aj.js";import"./Triangle-rmeRPZtY.js";import"./SingleSelectable-BAFROorM.js";import"./Fader-CBhy3bI5.js";function O(){const t=l.useContext(F),o=l.useContext(C);return l.useCallback(r=>{if(t===void 0)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");if(typeof r!="string"){t.navigate(r.screen,r.params);return}if(!r.startsWith("/"))throw new Error(`The path must start with '/' (${r}).`);const{options:e}=o,i=e!=null&&e.getStateFromPath?e.getStateFromPath(r,e.config):$(r,e==null?void 0:e.config);if(i){const s=N(i,e==null?void 0:e.config);s!==void 0?t.dispatch(s):t.reset(i)}else throw new Error("Failed to parse the path to a navigation state.")},[o,t])}(()=>{const t={};return D.forEach(({linking:o,slug:a})=>{o&&(t[a]={screens:o})}),t})();const y="amsterdam://",V={NewsUpdatedByProjectManager:{id:"NewsUpdatedByProjectManager",route:"/news",routeWithPrefix:`${y}news`},ProjectWarningCreatedByProjectManager:{id:"ProjectWarningCreatedByProjectManager",route:"/warning",routeWithPrefix:`${y}warning`}},q=({data:t,title:o="",body:a=""},r=!0)=>{const e=(t==null?void 0:t.type)&&V[t.type];if(!(e!=null&&e.routeWithPrefix)||!(t!=null&&t.linkSourceid))return;const i=encodeURIComponent(`${o} - ${a}`),s=`/${t.linkSourceid}/${encodeURIComponent(o)}/${i}/${r}`;return r?`${e.routeWithPrefix}${s}`:`${e.route}${s}`},A=["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],Y=t=>{if(t==null||t==="")return"";const o=h(t),a=h(),r=o.startOf("day").diff(a.startOf("day"),"days"),e=r===0,i=r===-1,s=r>-7&&r<-1;return e?o.format("HH:mm"):i?"gisteren":s?A[o.get("day")]:o.format("D MMMM")},d=({item:{title:t,body:o,module_slug:a,created_at:r,is_read:e,id:i,context:s},enabledModules:v=[]})=>{const f=v.find(({slug:m})=>m===a),w=E(G),P=O();if(!f)return null;const{icon:b}=f,g=Y(r);return n.jsx(_,{accessibilityLabel:z(e?void 0:"Ongelezen bericht: ",t,o,`ontvangen: ${g}`),onPress:()=>{const m=q({title:t,body:o,data:s},!1);m&&P(m)},testID:`NotificationHistoryItem${i}Button`,children:n.jsx(M,{insetHorizontal:"md",insetVertical:"smd",children:n.jsxs(p,{gutter:"sm",children:[n.jsx(L,{style:w.iconContainer,children:n.jsx(S,{color:"inverse",name:b,size:"xl",testID:`NotificationHistoryItem${i}Icon`})}),n.jsxs(H,{grow:1,shrink:1,children:[n.jsxs(p,{align:"between",flex:1,gutter:"sm",valign:"start",children:[n.jsx(W,{level:"h5",testID:`NotificationHistoryItem${i}Title`,text:t}),n.jsxs(p,{gutter:"sm",valign:"center",children:[n.jsx(B,{color:"secondary",numberOfLines:1,testID:`NotificationHistoryItem${i}CreationDate`,variant:"body",children:g}),!e&&n.jsx(k,{testID:`NotificationHistoryItem${i}IsUnreadBadge`,variant:"extraSmall"})]})]}),n.jsx(T,{testID:`NotificationHistoryItem${i}Description`,children:o})]})]})})})},G=({color:t,size:o})=>R.create({iconContainer:{backgroundColor:t.notificationHistory.itemIcon.background,justifyContent:"center",alignItems:"center",width:o.iconContainer.xl,height:o.iconContainer.xl}});try{d.displayName="NotificationHistoryItem",d.__docgenInfo={description:"",displayName:"NotificationHistoryItem",props:{enabledModules:{defaultValue:{value:"[]"},description:"",name:"enabledModules",required:!1,type:{name:"Module[]"}},item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"Notification"}}}}}catch{}const u=U["construction-work"],ue={component:d},c={args:{enabledModules:[{moduleSlug:u,title:"Werkzaamheden",icon:"announcement",slug:u,status:1,description:"",version:"1.0.0"}],item:{title:"De nieuwe brug is geplaatst",module_slug:u,created_at:"2022-01-15 10:30:00",pushed_at:"2022-01-15 10:30:00",is_read:!1,id:"1",context:{},body:"De nieuwe brug is geplaatst"}}};var x,I,j;c.parameters={...c.parameters,docs:{...(x=c.parameters)==null?void 0:x.docs,source:{originalSource:`{ args: { enabledModules: [{ moduleSlug: slug, diff --git a/assets/NotificationHistoryListFooter.stories-B42d-CBu.js b/assets/NotificationHistoryListFooter.stories-NzvM2Qxs.js similarity index 93% rename from assets/NotificationHistoryListFooter.stories-B42d-CBu.js rename to assets/NotificationHistoryListFooter.stories-NzvM2Qxs.js index d4ab9403..01ac6831 100644 --- a/assets/NotificationHistoryListFooter.stories-B42d-CBu.js +++ b/assets/NotificationHistoryListFooter.stories-NzvM2Qxs.js @@ -1 +1 @@ -import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{B as a}from"./Box-CEQ9kk6v.js";import{P as m}from"./Paragraph-ypvGdTJ3.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./layoutStyles-hLwHoe51.js";import"./index-kbHxBZ_W.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-CAyeAlm6.js";const s=()=>r.jsx(a,{inset:"xl",children:r.jsx(m,{color:"secondary",textAlign:"center",children:"Dit zijn alle meldingen van de afgelopen 30 dagen"})}),E={component:s},o={};var t,e,i;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:"{}",...(i=(e=o.parameters)==null?void 0:e.docs)==null?void 0:i.source}}};const P=["Default"];export{o as Default,P as __namedExportsOrder,E as default}; +import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{B as a}from"./Box-CEQ9kk6v.js";import{P as m}from"./Paragraph-4J4ihaTP.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./layoutStyles-hLwHoe51.js";import"./index-kbHxBZ_W.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-CAyeAlm6.js";const s=()=>r.jsx(a,{inset:"xl",children:r.jsx(m,{color:"secondary",textAlign:"center",children:"Dit zijn alle meldingen van de afgelopen 30 dagen"})}),E={component:s},o={};var t,e,i;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:"{}",...(i=(e=o.parameters)==null?void 0:e.docs)==null?void 0:i.source}}};const P=["Default"];export{o as Default,P as __namedExportsOrder,E as default}; diff --git a/assets/Paragraph-ypvGdTJ3.js b/assets/Paragraph-4J4ihaTP.js similarity index 92% rename from assets/Paragraph-ypvGdTJ3.js rename to assets/Paragraph-4J4ihaTP.js index 1e7c8ff1..dfcd79e6 100644 --- a/assets/Paragraph-ypvGdTJ3.js +++ b/assets/Paragraph-4J4ihaTP.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-Bxcv0yjW.js";import{r as u}from"./index-mfbfsM12.js";import{u as p}from"./useThemable-ua4U8LzO.js";import{T as c}from"./index-CAyeAlm6.js";import{s as m}from"./index-kbHxBZ_W.js";const o=({children:l,color:a="default",textAlign:e="left",variant:r="body",...t})=>{const i=u.useMemo(()=>d({color:a,textAlign:e,variant:r}),[a,e,r]),n=p(i);return s.jsx(c,{accessibilityLanguage:"nl-NL",accessibilityRole:a==="warning"?"alert":"none",style:n.text,...t,children:l})},d=({color:l,textAlign:a,variant:e})=>({color:r,text:t})=>m.create({text:{flexShrink:1,color:r.text[l],fontFamily:t.fontFamily[e==="quote"?"bold":"regular"],fontSize:t.fontSize[e],lineHeight:t.lineHeight[e],textAlign:a}});try{o.displayName="Paragraph",o.__docgenInfo={description:"",displayName:"Paragraph",props:{color:{defaultValue:{value:"default"},description:"Provides an inverse text color to allow a paragraph on a dark background.",name:"color",required:!1,type:{name:"enum",value:[{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"default"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"inverse"'},{value:'"warning"'}]}},textAlign:{defaultValue:{value:"left"},description:"Defines the alignment of the text. Maps with the textAlign style prop options.",name:"textAlign",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"center"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'}]}},variant:{defaultValue:{value:"body"},description:"Which variation of a paragraph to display.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"body"'},{value:'"intro"'},{value:'"quote"'},{value:'"extraSmall"'}]}}}}}catch{}export{o as P}; +import{j as s}from"./jsx-runtime-Bxcv0yjW.js";import{r as u}from"./index-mfbfsM12.js";import{u as p}from"./useThemable-ua4U8LzO.js";import{T as c}from"./index-CAyeAlm6.js";import{s as m}from"./index-kbHxBZ_W.js";const o=({children:l,color:a="default",textAlign:e="left",variant:r="body",...t})=>{const i=u.useMemo(()=>d({color:a,textAlign:e,variant:r}),[a,e,r]),n=p(i);return s.jsx(c,{accessibilityLanguage:"nl-NL",accessibilityRole:a==="warning"?"alert":"none",style:n.text,...t,children:l})},d=({color:l,textAlign:a,variant:e})=>({color:r,text:t})=>m.create({text:{flexShrink:1,color:r.text[l],fontFamily:t.fontFamily[e==="quote"?"bold":"regular"],fontSize:t.fontSize[e],lineHeight:t.lineHeight[e],textAlign:a}});try{o.displayName="Paragraph",o.__docgenInfo={description:"",displayName:"Paragraph",props:{color:{defaultValue:{value:"default"},description:"Provides an inverse text color to allow a paragraph on a dark background.",name:"color",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"inverse"'},{value:'"warning"'}]}},textAlign:{defaultValue:{value:"left"},description:"Defines the alignment of the text. Maps with the textAlign style prop options.",name:"textAlign",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"center"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'}]}},variant:{defaultValue:{value:"body"},description:"Which variation of a paragraph to display.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"body"'},{value:'"intro"'},{value:'"quote"'},{value:'"extraSmall"'}]}}}}}catch{}export{o as P}; diff --git a/assets/Paragraph.stories-ClAT69lo.js b/assets/Paragraph.stories-C__TajjU.js similarity index 92% rename from assets/Paragraph.stories-ClAT69lo.js rename to assets/Paragraph.stories-C__TajjU.js index d3fae511..b5b42f1a 100644 --- a/assets/Paragraph.stories-ClAT69lo.js +++ b/assets/Paragraph.stories-C__TajjU.js @@ -1,3 +1,3 @@ -import{j as p}from"./jsx-runtime-Bxcv0yjW.js";import{P as t}from"./Paragraph-ypvGdTJ3.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./index-kbHxBZ_W.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./TextAncestorContext-Dg3XKfar.js";const j={component:t},r=s=>p.jsx(t,{...s,children:"Jouw typograaf biedt mij zulke exquise schreven!"});r.args={color:"default",variant:"body"};var a,o,e;r.parameters={...r.parameters,docs:{...(a=r.parameters)==null?void 0:a.docs,source:{originalSource:`args => +import{j as p}from"./jsx-runtime-Bxcv0yjW.js";import{P as t}from"./Paragraph-4J4ihaTP.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./index-kbHxBZ_W.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./TextAncestorContext-Dg3XKfar.js";const j={component:t},r=s=>p.jsx(t,{...s,children:"Jouw typograaf biedt mij zulke exquise schreven!"});r.args={color:"default",variant:"body"};var a,o,e;r.parameters={...r.parameters,docs:{...(a=r.parameters)==null?void 0:a.docs,source:{originalSource:`args => Jouw typograaf biedt mij zulke exquise schreven! `,...(e=(o=r.parameters)==null?void 0:o.docs)==null?void 0:e.source}}};const P=["Default"];export{r as Default,P as __namedExportsOrder,j as default}; diff --git a/assets/PhoneButton-DlW_KxTb.js b/assets/PhoneButton-DL5UxKqg.js similarity index 98% rename from assets/PhoneButton-DlW_KxTb.js rename to assets/PhoneButton-DL5UxKqg.js index 74c632c9..0302f17e 100644 --- a/assets/PhoneButton-DlW_KxTb.js +++ b/assets/PhoneButton-DL5UxKqg.js @@ -1 +1 @@ -import{j as l}from"./jsx-runtime-Bxcv0yjW.js";import{B as u}from"./Button-_M7GwRMx.js";import{R as r}from"./Row-D-wvv0CV.js";import{u as o}from"./useOpenPhoneUrl-TB9t0oDt.js";import{a as d}from"./accessibleText-gmNPjmn1.js";const c=["010","013","014","015","020","023","024","026","030","033","035","036","038","040","043","044","045","046","050","053","055","058","070","071","072","073","074","075","076","077","078","079"],t=e=>{var a;if(e.startsWith("+31")&&(e=e.replace("+31","0")),e==="14020")return"14 020";if(e==="0202515020")return"020 25 15 020";if(e.length===10)return e.startsWith("06")?[e.substring(0,2),e.substring(2,6),e.substring(6,10)].join(" "):c.includes(e.substring(0,3))?[e.substring(0,3),e.substring(3,6),e.substring(6,10)].join(" "):[e.substring(0,4),e.substring(4,7),e.substring(7,10)].join(" ");if(e.startsWith("0800")||e.startsWith("0900")){if(e.length===8)return(a=e.match(/.{4}/g))==null?void 0:a.join(" ");if(e.length===11)return[e.substring(0,4),e.substring(4,7),e.substring(7,11)].join(" ")}return e},i=({accessibilityLabel:e,phoneNumber:a,...n})=>{const s=o();return l.jsx(r,{children:l.jsx(u,{accessibilityLanguage:"nl-NL",...n,accessibilityLabel:e||d("Bel",...(t(a)??"").split(" ")),iconName:"phone",label:t(a),onPress:()=>{s(a)}})})};try{i.displayName="PhoneButton",i.__docgenInfo={description:"",displayName:"PhoneButton",props:{phoneNumber:{defaultValue:null,description:"",name:"phoneNumber",required:!0,type:{name:"string"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},ellipsizeMode:{defaultValue:null,description:"",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"head"'},{value:'"tail"'},{value:'"middle"'},{value:'"clip"'}]}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}}}}}catch{}export{i as P}; +import{j as l}from"./jsx-runtime-Bxcv0yjW.js";import{B as u}from"./Button-BgT1eW_K.js";import{R as r}from"./Row-D-wvv0CV.js";import{u as o}from"./useOpenPhoneUrl-TB9t0oDt.js";import{a as d}from"./accessibleText-gmNPjmn1.js";const c=["010","013","014","015","020","023","024","026","030","033","035","036","038","040","043","044","045","046","050","053","055","058","070","071","072","073","074","075","076","077","078","079"],t=e=>{var a;if(e.startsWith("+31")&&(e=e.replace("+31","0")),e==="14020")return"14 020";if(e==="0202515020")return"020 25 15 020";if(e.length===10)return e.startsWith("06")?[e.substring(0,2),e.substring(2,6),e.substring(6,10)].join(" "):c.includes(e.substring(0,3))?[e.substring(0,3),e.substring(3,6),e.substring(6,10)].join(" "):[e.substring(0,4),e.substring(4,7),e.substring(7,10)].join(" ");if(e.startsWith("0800")||e.startsWith("0900")){if(e.length===8)return(a=e.match(/.{4}/g))==null?void 0:a.join(" ");if(e.length===11)return[e.substring(0,4),e.substring(4,7),e.substring(7,11)].join(" ")}return e},i=({accessibilityLabel:e,phoneNumber:a,...n})=>{const s=o();return l.jsx(r,{children:l.jsx(u,{accessibilityLanguage:"nl-NL",...n,accessibilityLabel:e||d("Bel",...(t(a)??"").split(" ")),iconName:"phone",label:t(a),onPress:()=>{s(a)}})})};try{i.displayName="PhoneButton",i.__docgenInfo={description:"",displayName:"PhoneButton",props:{phoneNumber:{defaultValue:null,description:"",name:"phoneNumber",required:!0,type:{name:"string"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},ellipsizeMode:{defaultValue:null,description:"",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"head"'},{value:'"tail"'},{value:'"middle"'},{value:'"clip"'}]}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}}}}}catch{}export{i as P}; diff --git a/assets/PhoneButton.stories-DZPKLonu.js b/assets/PhoneButton.stories-CDViBSUm.js similarity index 88% rename from assets/PhoneButton.stories-DZPKLonu.js rename to assets/PhoneButton.stories-CDViBSUm.js index 29054d9a..043aade7 100644 --- a/assets/PhoneButton.stories-DZPKLonu.js +++ b/assets/PhoneButton.stories-CDViBSUm.js @@ -1,4 +1,4 @@ -import{P as m}from"./PhoneButton-DlW_KxTb.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Button-_M7GwRMx.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./config-BZnShabN.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./Icon-X_MsqpOP.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./useOpenPhoneUrl-TB9t0oDt.js";import"./index-Ce74jbsy.js";import"./accessibleText-gmNPjmn1.js";const L={component:m,argTypes:{onPress:{action:"onPress"}}},o={args:{phoneNumber:"0610000000"}};var r,t,p;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{P as m}from"./PhoneButton-DL5UxKqg.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Button-BgT1eW_K.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./config-BZnShabN.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./Icon-DbPHcDCx.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./useOpenPhoneUrl-TB9t0oDt.js";import"./index-Ce74jbsy.js";import"./accessibleText-gmNPjmn1.js";const L={component:m,argTypes:{onPress:{action:"onPress"}}},o={args:{phoneNumber:"0610000000"}};var r,t,p;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { phoneNumber: '0610000000' } diff --git a/assets/PhoneHQButton.stories-BOhBot6W.js b/assets/PhoneHQButton.stories-hyNo0Yvi.js similarity index 90% rename from assets/PhoneHQButton.stories-BOhBot6W.js rename to assets/PhoneHQButton.stories-hyNo0Yvi.js index 62ea0723..e1315dbe 100644 --- a/assets/PhoneHQButton.stories-BOhBot6W.js +++ b/assets/PhoneHQButton.stories-hyNo0Yvi.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{P as n}from"./PhoneButton-DlW_KxTb.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Button-_M7GwRMx.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./config-BZnShabN.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./Icon-X_MsqpOP.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./useOpenPhoneUrl-TB9t0oDt.js";import"./index-Ce74jbsy.js";import"./accessibleText-gmNPjmn1.js";const r=({testID:o,variant:m="primary"})=>a.jsx(n,{accessibilityLabel:"Bel veertien nul twintig",phoneNumber:"14020",testID:o,variant:m});try{r.displayName="PhoneHQButton",r.__docgenInfo={description:"",displayName:"PhoneHQButton",props:{variant:{defaultValue:{value:"primary"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const M={component:r,argTypes:{onPress:{action:"onPress"}}},t={};var e,i,p;t.parameters={...t.parameters,docs:{...(e=t.parameters)==null?void 0:e.docs,source:{originalSource:"{}",...(p=(i=t.parameters)==null?void 0:i.docs)==null?void 0:p.source}}};const U=["Default"];export{t as Default,U as __namedExportsOrder,M as default}; +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{P as n}from"./PhoneButton-DL5UxKqg.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Button-BgT1eW_K.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./config-BZnShabN.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./Icon-DbPHcDCx.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./useOpenPhoneUrl-TB9t0oDt.js";import"./index-Ce74jbsy.js";import"./accessibleText-gmNPjmn1.js";const r=({testID:o,variant:m="primary"})=>a.jsx(n,{accessibilityLabel:"Bel veertien nul twintig",phoneNumber:"14020",testID:o,variant:m});try{r.displayName="PhoneHQButton",r.__docgenInfo={description:"",displayName:"PhoneHQButton",props:{variant:{defaultValue:{value:"primary"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const M={component:r,argTypes:{onPress:{action:"onPress"}}},t={};var e,i,p;t.parameters={...t.parameters,docs:{...(e=t.parameters)==null?void 0:e.docs,source:{originalSource:"{}",...(p=(i=t.parameters)==null?void 0:i.docs)==null?void 0:p.source}}};const U=["Default"];export{t as Default,U as __namedExportsOrder,M as default}; diff --git a/assets/Phrase-D4XuA9hP.js b/assets/Phrase-CZOdtc60.js similarity index 95% rename from assets/Phrase-D4XuA9hP.js rename to assets/Phrase-CZOdtc60.js index 2200126b..e1794ba2 100644 --- a/assets/Phrase-D4XuA9hP.js +++ b/assets/Phrase-CZOdtc60.js @@ -1 +1 @@ -import{j as h}from"./jsx-runtime-Bxcv0yjW.js";import{r as m}from"./index-mfbfsM12.js";import{u as c,E as v}from"./useThemable-ua4U8LzO.js";import{T as g}from"./index-CAyeAlm6.js";import{s as y}from"./index-kbHxBZ_W.js";const u=({children:t,color:l="default",emphasis:r="default",flexShrink:s=1,underline:e=!1,variant:n="body",testID:i,"logging-label":a,textAlign:o="left",...p})=>{const d=m.useMemo(()=>x({color:l,emphasis:r,flexShrink:s,underline:e,variant:n,textAlign:o}),[l,r,s,e,n,o]),f=c(d);return h.jsx(g,{accessibilityLanguage:"nl-NL","logging-label":a,style:f.text,testID:i,...p,children:t})},x=({color:t,emphasis:l,flexShrink:r,underline:s,variant:e,textAlign:n})=>({color:i,text:a})=>y.create({text:{flexShrink:r,color:i.text[t],fontFamily:a.fontFamily[l===v.strong?"bold":"regular"],fontSize:a.fontSize[e],lineHeight:a.lineHeight[e],textDecorationLine:s?"underline":"none",textAlign:n}});try{u.displayName="Phrase",u.__docgenInfo={description:"Displays (very) short text phrases.\nOffers the three sizing variants, and bold text.\nFor sentences, use `Paragraph` instead.",displayName:"Phrase",props:{color:{defaultValue:{value:"default"},description:"Defines the color of the phrase. Maps with the text color tokens.",name:"color",required:!1,type:{name:"enum",value:[{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"default"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"inverse"'},{value:'"warning"'}]}},emphasis:{defaultValue:{value:"default"},description:"Allows the phrase to convey more emphasis.",name:"emphasis",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"strong"'}]}},flexShrink:{defaultValue:{value:"1"},description:"Defines how to shrink the phrase in case the parent container is smaller than the phrase.",name:"flexShrink",required:!1,type:{name:"number"}},"logging-label":{defaultValue:null,description:"Label used for logging to Piwik and AppInsights.",name:"logging-label",required:!1,type:{name:"string"}},textAlign:{defaultValue:{value:"left"},description:"Defines the alignment of the text. Maps with the textAlign style prop options.",name:"textAlign",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"center"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'}]}},underline:{defaultValue:{value:"false"},description:"Whether the phrase is underlined. Use this for a link only.",name:"underline",required:!1,type:{name:"boolean"}},variant:{defaultValue:{value:"body"},description:"Which variation of a phrase to display.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"body"'},{value:'"intro"'},{value:'"quote"'},{value:'"extraSmall"'}]}}}}}catch{}export{u as P}; +import{j as h}from"./jsx-runtime-Bxcv0yjW.js";import{r as m}from"./index-mfbfsM12.js";import{u as c,E as v}from"./useThemable-ua4U8LzO.js";import{T as g}from"./index-CAyeAlm6.js";import{s as y}from"./index-kbHxBZ_W.js";const u=({children:t,color:l="default",emphasis:r="default",flexShrink:s=1,underline:e=!1,variant:n="body",testID:i,"logging-label":a,textAlign:o="left",...p})=>{const d=m.useMemo(()=>x({color:l,emphasis:r,flexShrink:s,underline:e,variant:n,textAlign:o}),[l,r,s,e,n,o]),f=c(d);return h.jsx(g,{accessibilityLanguage:"nl-NL","logging-label":a,style:f.text,testID:i,...p,children:t})},x=({color:t,emphasis:l,flexShrink:r,underline:s,variant:e,textAlign:n})=>({color:i,text:a})=>y.create({text:{flexShrink:r,color:i.text[t],fontFamily:a.fontFamily[l===v.strong?"bold":"regular"],fontSize:a.fontSize[e],lineHeight:a.lineHeight[e],textDecorationLine:s?"underline":"none",textAlign:n}});try{u.displayName="Phrase",u.__docgenInfo={description:"Displays (very) short text phrases.\nOffers the three sizing variants, and bold text.\nFor sentences, use `Paragraph` instead.",displayName:"Phrase",props:{color:{defaultValue:{value:"default"},description:"Defines the color of the phrase. Maps with the text color tokens.",name:"color",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"inverse"'},{value:'"warning"'}]}},emphasis:{defaultValue:{value:"default"},description:"Allows the phrase to convey more emphasis.",name:"emphasis",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"strong"'}]}},flexShrink:{defaultValue:{value:"1"},description:"Defines how to shrink the phrase in case the parent container is smaller than the phrase.",name:"flexShrink",required:!1,type:{name:"number"}},"logging-label":{defaultValue:null,description:"Label used for logging to Piwik and AppInsights.",name:"logging-label",required:!1,type:{name:"string"}},textAlign:{defaultValue:{value:"left"},description:"Defines the alignment of the text. Maps with the textAlign style prop options.",name:"textAlign",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"center"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'}]}},underline:{defaultValue:{value:"false"},description:"Whether the phrase is underlined. Use this for a link only.",name:"underline",required:!1,type:{name:"boolean"}},variant:{defaultValue:{value:"body"},description:"Which variation of a phrase to display.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"body"'},{value:'"intro"'},{value:'"quote"'},{value:'"extraSmall"'}]}}}}}catch{}export{u as P}; diff --git a/assets/Phrase.stories-BWshaq1G.js b/assets/Phrase.stories-CtPdUNVT.js similarity index 95% rename from assets/Phrase.stories-BWshaq1G.js rename to assets/Phrase.stories-CtPdUNVT.js index 68140b1d..e9575dd2 100644 --- a/assets/Phrase.stories-BWshaq1G.js +++ b/assets/Phrase.stories-CtPdUNVT.js @@ -1,4 +1,4 @@ -import{j as s}from"./jsx-runtime-Bxcv0yjW.js";import{P as a}from"./Phrase-D4XuA9hP.js";import{V as c}from"./index-BP1Ij_Cs.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./index-kbHxBZ_W.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./TextAncestorContext-Dg3XKfar.js";const V={component:a},r={args:{children:"Phrase content",color:"default",emphasis:"default",variant:"body"}},e=()=>s.jsxs(c,{children:[s.jsx(a,{emphasis:"strong",testID:"Phrase",variant:"small",children:"14"}),s.jsx(a,{testID:"Phrase",variant:"small",children:"volgers"})]});var t,o,n;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{j as s}from"./jsx-runtime-Bxcv0yjW.js";import{P as a}from"./Phrase-CZOdtc60.js";import{V as c}from"./index-BP1Ij_Cs.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./index-kbHxBZ_W.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./TextAncestorContext-Dg3XKfar.js";const V={component:a},r={args:{children:"Phrase content",color:"default",emphasis:"default",variant:"body"}},e=()=>s.jsxs(c,{children:[s.jsx(a,{emphasis:"strong",testID:"Phrase",variant:"small",children:"14"}),s.jsx(a,{testID:"Phrase",variant:"small",children:"volgers"})]});var t,o,n;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { children: 'Phrase content', color: 'default', diff --git a/assets/PleaseWait-B-bOq08A.js b/assets/PleaseWait-CKlP_x4g.js similarity index 89% rename from assets/PleaseWait-B-bOq08A.js rename to assets/PleaseWait-CKlP_x4g.js index 37fcba49..2f889ac2 100644 --- a/assets/PleaseWait-B-bOq08A.js +++ b/assets/PleaseWait-CKlP_x4g.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{B as o}from"./Box-CEQ9kk6v.js";import{C as s}from"./Center-2_hcwEx9.js";import{I as i}from"./Icon-X_MsqpOP.js";const t=({grow:r,testID:a})=>e.jsx(s,{grow:r,children:e.jsx(o,{children:e.jsx(i,{color:"link",name:"spinner",size:"lg",testID:a})})});try{t.displayName="PleaseWait",t.__docgenInfo={description:"",displayName:"PleaseWait",props:{grow:{defaultValue:null,description:"",name:"grow",required:!1,type:{name:"boolean"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{t as P}; +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{B as o}from"./Box-CEQ9kk6v.js";import{C as s}from"./Center-2_hcwEx9.js";import{I as i}from"./Icon-DbPHcDCx.js";const t=({grow:r,testID:a})=>e.jsx(s,{grow:r,children:e.jsx(o,{children:e.jsx(i,{color:"link",name:"spinner",size:"lg",testID:a})})});try{t.displayName="PleaseWait",t.__docgenInfo={description:"",displayName:"PleaseWait",props:{grow:{defaultValue:null,description:"",name:"grow",required:!1,type:{name:"boolean"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{t as P}; diff --git a/assets/PleaseWait.stories-Dwu2SZAJ.js b/assets/PleaseWait.stories-B-xLH4LE.js similarity index 91% rename from assets/PleaseWait.stories-Dwu2SZAJ.js rename to assets/PleaseWait.stories-B-xLH4LE.js index a8c67412..e837e9b8 100644 --- a/assets/PleaseWait.stories-Dwu2SZAJ.js +++ b/assets/PleaseWait.stories-B-xLH4LE.js @@ -1,4 +1,4 @@ -import{j as p}from"./jsx-runtime-Bxcv0yjW.js";import{P as e}from"./PleaseWait-B-bOq08A.js";import"./Block-B9hfeL6e.js";import{C as s}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./index-kbHxBZ_W.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./Center-2_hcwEx9.js";import"./Icon-X_MsqpOP.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Animated-CFNSbqHF.js";import"./index-DSI0shHu.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";const J={component:e,decorators:[m=>p.jsx(s,{height:"256px",highlight:!0,maxWidth:"512px",children:m()})]},r={args:{grow:!0}};var t,o,i;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{j as p}from"./jsx-runtime-Bxcv0yjW.js";import{P as e}from"./PleaseWait-CKlP_x4g.js";import"./Block-B9hfeL6e.js";import{C as s}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./index-kbHxBZ_W.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-BP1Ij_Cs.js";import"./TextAncestorContext-Dg3XKfar.js";import"./Center-2_hcwEx9.js";import"./Icon-DbPHcDCx.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Animated-CFNSbqHF.js";import"./index-DSI0shHu.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";const J={component:e,decorators:[m=>p.jsx(s,{height:"256px",highlight:!0,maxWidth:"512px",children:m()})]},r={args:{grow:!0}};var t,o,i;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { grow: true } diff --git a/assets/Pressable.stories-PEU3VA2P.js b/assets/Pressable.stories-_OR-FgCC.js similarity index 90% rename from assets/Pressable.stories-PEU3VA2P.js rename to assets/Pressable.stories-_OR-FgCC.js index 5a0a754f..39789fbf 100644 --- a/assets/Pressable.stories-PEU3VA2P.js +++ b/assets/Pressable.stories-_OR-FgCC.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{P as i}from"./Pressable-0Of7HZos.js";import{P as m}from"./Paragraph-ypvGdTJ3.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";const k={component:i,argTypes:{onPress:{action:"onPress"}}},r={args:{children:e.jsx(m,{children:"Press me"}),insetHorizontal:"lg"}};var o,t,s;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{P as i}from"./Pressable-0Of7HZos.js";import{P as m}from"./Paragraph-4J4ihaTP.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";const k={component:i,argTypes:{onPress:{action:"onPress"}}},r={args:{children:e.jsx(m,{children:"Press me"}),insetHorizontal:"lg"}};var o,t,s;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{ args: { children: Press me, insetHorizontal: 'lg' diff --git a/assets/RadioGroup.stories-DXe4_xqf.js b/assets/RadioGroup.stories-Bg5q3_5Z.js similarity index 99% rename from assets/RadioGroup.stories-DXe4_xqf.js rename to assets/RadioGroup.stories-Bg5q3_5Z.js index c0cb7d26..736d80b7 100644 --- a/assets/RadioGroup.stories-DXe4_xqf.js +++ b/assets/RadioGroup.stories-Bg5q3_5Z.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{S as w,a as p}from"./index-BtN4QjYR.js";import{P as V}from"./PressableBase-DhkKVuqd.js";import{R}from"./Row-D-wvv0CV.js";import{P as q}from"./Phrase-D4XuA9hP.js";import{u as P}from"./useTheme-ChTiG3MC.js";import{C as _}from"./Column-CFK5NdwL.js";import{u as x,P as k,a as N}from"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-Dk74W0Oi.js";import"./index-kbHxBZ_W.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-BP1Ij_Cs.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./development-LhlsWDYu.js";const A=({checked:t})=>{const{color:a}=P();return e.jsxs(w,{height:24,viewBox:"0 0 24 24",width:24,children:[e.jsx(p,{cx:12,cy:12,fill:a.control.default.background,r:11,stroke:a.control.checked.border,strokeWidth:2}),!!t&&e.jsx(p,{cx:12,cy:12,fill:a.control.checked.border,r:8})]})},s=({label:t,isSelected:a,onPress:o,testID:i,...n})=>e.jsx(V,{...n,accessibilityLanguage:"nl-NL",accessibilityRole:"radio",accessibilityState:{selected:a},onPress:o,testID:i,children:e.jsxs(R,{gutter:"sm",valign:"center",children:[e.jsx(A,{checked:a}),e.jsx(q,{testID:`${i}Phrase`,children:t})]})});try{s.displayName="Radio",s.__docgenInfo={description:"",displayName:"Radio",props:{isSelected:{defaultValue:null,description:"",name:"isSelected",required:!0,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"Called when a single tap gesture is detected.",name:"onPress",required:!1,type:{name:"(() => void) & ((event: GestureResponderEvent) => void)"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}const u=({options:t=[],onChange:a,testID:o,value:i,logAction:n=N.radioChange,useOptionValuesForLogging:d=!1,logDimensions:h={},...y})=>{const b=x({...y,logAction:n,logDimensions:h,onEvent:a,testID:o});return e.jsx(_,{gutter:"md",children:t.map(({label:c,value:l},C)=>{const m=`${o}${d?l.toString():C}RadioButton`;return e.jsx(s,{isSelected:i===l,label:c,"logging-label":m,logName:m,onPress:()=>b(l,d?{dimensions:{[k.newState]:l.toString()}}:{}),testID:`${o}${l.toString()}RadioButton`},c)})})};try{u.displayName="RadioGroup",u.__docgenInfo={description:"",displayName:"RadioGroup",props:{onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(value: T) => void"}},options:{defaultValue:{value:"[]"},description:"",name:"options",required:!1,type:{name:"RadioGroupOption[]"}},useOptionValuesForLogging:{defaultValue:{value:"false"},description:"Log value to analytics service as new state when the selected value changes and as name on the button press event of the option.",name:"useOptionValuesForLogging",required:!1,type:{name:"boolean"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"RadioValue"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}},logAction:{defaultValue:{value:"PiwikAction.radioChange"},description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:{value:"{}"},description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}const re={component:u},D=[{label:"Heldhaftig",value:"valiant"},{label:"Vastberaden",value:"steadfast"},{label:"Barmhartig",value:"compassionate"}],r={args:{options:D,value:"valiant"}};var v,g,f;r.parameters={...r.parameters,docs:{...(v=r.parameters)==null?void 0:v.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{S as w,a as p}from"./index-BtN4QjYR.js";import{P as V}from"./PressableBase-DhkKVuqd.js";import{R}from"./Row-D-wvv0CV.js";import{P as q}from"./Phrase-CZOdtc60.js";import{u as P}from"./useTheme-ChTiG3MC.js";import{C as _}from"./Column-CFK5NdwL.js";import{u as x,P as k,a as N}from"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-Dk74W0Oi.js";import"./index-kbHxBZ_W.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-BP1Ij_Cs.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./development-LhlsWDYu.js";const A=({checked:t})=>{const{color:a}=P();return e.jsxs(w,{height:24,viewBox:"0 0 24 24",width:24,children:[e.jsx(p,{cx:12,cy:12,fill:a.control.default.background,r:11,stroke:a.control.checked.border,strokeWidth:2}),!!t&&e.jsx(p,{cx:12,cy:12,fill:a.control.checked.border,r:8})]})},s=({label:t,isSelected:a,onPress:o,testID:i,...n})=>e.jsx(V,{...n,accessibilityLanguage:"nl-NL",accessibilityRole:"radio",accessibilityState:{selected:a},onPress:o,testID:i,children:e.jsxs(R,{gutter:"sm",valign:"center",children:[e.jsx(A,{checked:a}),e.jsx(q,{testID:`${i}Phrase`,children:t})]})});try{s.displayName="Radio",s.__docgenInfo={description:"",displayName:"Radio",props:{isSelected:{defaultValue:null,description:"",name:"isSelected",required:!0,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"Called when a single tap gesture is detected.",name:"onPress",required:!1,type:{name:"(() => void) & ((event: GestureResponderEvent) => void)"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}const u=({options:t=[],onChange:a,testID:o,value:i,logAction:n=N.radioChange,useOptionValuesForLogging:d=!1,logDimensions:h={},...y})=>{const b=x({...y,logAction:n,logDimensions:h,onEvent:a,testID:o});return e.jsx(_,{gutter:"md",children:t.map(({label:c,value:l},C)=>{const m=`${o}${d?l.toString():C}RadioButton`;return e.jsx(s,{isSelected:i===l,label:c,"logging-label":m,logName:m,onPress:()=>b(l,d?{dimensions:{[k.newState]:l.toString()}}:{}),testID:`${o}${l.toString()}RadioButton`},c)})})};try{u.displayName="RadioGroup",u.__docgenInfo={description:"",displayName:"RadioGroup",props:{onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(value: T) => void"}},options:{defaultValue:{value:"[]"},description:"",name:"options",required:!1,type:{name:"RadioGroupOption[]"}},useOptionValuesForLogging:{defaultValue:{value:"false"},description:"Log value to analytics service as new state when the selected value changes and as name on the button press event of the option.",name:"useOptionValuesForLogging",required:!1,type:{name:"boolean"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"RadioValue"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}},logAction:{defaultValue:{value:"PiwikAction.radioChange"},description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:{value:"{}"},description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}const re={component:u},D=[{label:"Heldhaftig",value:"valiant"},{label:"Vastberaden",value:"steadfast"},{label:"Barmhartig",value:"compassionate"}],r={args:{options:D,value:"valiant"}};var v,g,f;r.parameters={...r.parameters,docs:{...(v=r.parameters)==null?void 0:v.docs,source:{originalSource:`{ args: { options, value: 'valiant' diff --git a/assets/Row.stories-Dfaep2m-.js b/assets/Row.stories-DaInerHC.js similarity index 93% rename from assets/Row.stories-Dfaep2m-.js rename to assets/Row.stories-DaInerHC.js index d4cca35f..5bc44f5f 100644 --- a/assets/Row.stories-Dfaep2m-.js +++ b/assets/Row.stories-DaInerHC.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{B as a}from"./Button-_M7GwRMx.js";import{R as i}from"./Row-D-wvv0CV.js";import{B as s}from"./Block-B9hfeL6e.js";import{C as c}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./config-BZnShabN.js";import"./Icon-X_MsqpOP.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";const U={component:i},r=o=>t.jsx(c,{highlight:!0,children:t.jsxs(i,{...o,children:[t.jsx(s,{label:"A"}),t.jsx(s,{label:"B"}),t.jsx(s,{label:"C"})]})});r.args={align:"start",gutter:"md",wrap:!1};const e=o=>t.jsx(c,{highlight:!0,maxWidth:"24rem",children:t.jsxs(i,{...o,children:[t.jsx(a,{label:"Wijzig adres",testID:"Button"}),t.jsx(a,{label:"Voeg adres toe",testID:"Button",variant:"secondary"}),t.jsx(a,{label:"Verwijder adres",testID:"Button",variant:"secondary"})]})});e.args={gutter:"md",wrap:!0};var n,m,p;r.parameters={...r.parameters,docs:{...(n=r.parameters)==null?void 0:n.docs,source:{originalSource:`args => +import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{B as a}from"./Button-BgT1eW_K.js";import{R as i}from"./Row-D-wvv0CV.js";import{B as s}from"./Block-B9hfeL6e.js";import{C as c}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./config-BZnShabN.js";import"./Icon-DbPHcDCx.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";const U={component:i},r=o=>t.jsx(c,{highlight:!0,children:t.jsxs(i,{...o,children:[t.jsx(s,{label:"A"}),t.jsx(s,{label:"B"}),t.jsx(s,{label:"C"})]})});r.args={align:"start",gutter:"md",wrap:!1};const e=o=>t.jsx(c,{highlight:!0,maxWidth:"24rem",children:t.jsxs(i,{...o,children:[t.jsx(a,{label:"Wijzig adres",testID:"Button"}),t.jsx(a,{label:"Voeg adres toe",testID:"Button",variant:"secondary"}),t.jsx(a,{label:"Verwijder adres",testID:"Button",variant:"secondary"})]})});e.args={gutter:"md",wrap:!0};var n,m,p;r.parameters={...r.parameters,docs:{...(n=r.parameters)==null?void 0:n.docs,source:{originalSource:`args => diff --git a/assets/Size.stories-C6bEUiWk.js b/assets/Size.stories-CvrrRT1P.js similarity index 94% rename from assets/Size.stories-C6bEUiWk.js rename to assets/Size.stories-CvrrRT1P.js index c7a16719..9feb358f 100644 --- a/assets/Size.stories-C6bEUiWk.js +++ b/assets/Size.stories-CvrrRT1P.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{S as i}from"./Size-ByzkQpGs.js";import{P as m}from"./Phrase-D4XuA9hP.js";import"./Block-B9hfeL6e.js";import{C as p}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-BP1Ij_Cs.js";import"./index-kbHxBZ_W.js";import"./TextAncestorContext-Dg3XKfar.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";const v={component:i},r=o=>e.jsx(i,{...o,children:e.jsx(p,{highlight:!0,children:e.jsx(m,{testID:"Phrase",children:"Ik accepteer afmetingen"})})});r.args={maxWidth:128,minHeight:128};var t,s,a;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`args => +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{S as i}from"./Size-ByzkQpGs.js";import{P as m}from"./Phrase-CZOdtc60.js";import"./Block-B9hfeL6e.js";import{C as p}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-BP1Ij_Cs.js";import"./index-kbHxBZ_W.js";import"./TextAncestorContext-Dg3XKfar.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";const v={component:i},r=o=>e.jsx(i,{...o,children:e.jsx(p,{highlight:!0,children:e.jsx(m,{testID:"Phrase",children:"Ik accepteer afmetingen"})})});r.args={maxWidth:128,minHeight:128};var t,s,a;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`args => Ik accepteer afmetingen diff --git a/assets/SomethingWentWrong.stories-DiTzvhpy.js b/assets/SomethingWentWrong.stories-MVJbPO6R.js similarity index 94% rename from assets/SomethingWentWrong.stories-DiTzvhpy.js rename to assets/SomethingWentWrong.stories-MVJbPO6R.js index 7504a595..98c31927 100644 --- a/assets/SomethingWentWrong.stories-DiTzvhpy.js +++ b/assets/SomethingWentWrong.stories-MVJbPO6R.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{P as d}from"./Pressable-0Of7HZos.js";import{A as c,a as v}from"./AlertBase-o37gkLL_.js";import{u as f}from"./useAccessibilityAnnounce-VJH9SmdL.js";import{V as g}from"./index-BP1Ij_Cs.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./SingleSelectable-BAFROorM.js";import"./Column-CFK5NdwL.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Row-D-wvv0CV.js";import"./Icon-X_MsqpOP.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./Paragraph-ypvGdTJ3.js";import"./Title-DmDbCZFx.js";import"./useAccessibilityFocus-jeKlJ74P.js";import"./index-DEfxrPnc.js";import"./index-CDv7s-w8.js";import"./useIsScreenReaderEnabled-A65pchNu.js";import"./duration-A4BOymd5.js";import"./accessibleText-gmNPjmn1.js";const o=e=>t.jsx(c,{...e,variant:v.negative});try{o.displayName="AlertNegative",o.__docgenInfo={description:"",displayName:"AlertNegative",props:{inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},hasCloseIcon:{defaultValue:null,description:"",name:"hasCloseIcon",required:!1,type:{name:"boolean"}},hasIcon:{defaultValue:null,description:"",name:"hasIcon",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"information"'},{value:'"negative"'},{value:'"positive"'},{value:'"warning"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const y=({children:e,retryFn:a,testID:r})=>a?t.jsx(d,{onPress:a,testID:r,children:e}):t.jsx(g,{testID:r,children:e}),n=({retryFn:e,testID:a,text:r="Er ging iets mis.",title:l="Sorry …",...p})=>(f(`${l} ${r}`),t.jsx(y,{retryFn:e,testID:a,children:t.jsx(o,{...p,testID:"SomethingWentWrong",text:r,title:l})}));try{n.displayName="SomethingWentWrong",n.__docgenInfo={description:"",displayName:"SomethingWentWrong",props:{testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"information"'},{value:'"negative"'},{value:'"positive"'},{value:'"warning"'}]}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},title:{defaultValue:{value:"Sorry …"},description:"",name:"title",required:!1,type:{name:"string"}},hasCloseIcon:{defaultValue:null,description:"",name:"hasCloseIcon",required:!1,type:{name:"boolean"}},hasIcon:{defaultValue:null,description:"",name:"hasIcon",required:!1,type:{name:"boolean"}},retryFn:{defaultValue:null,description:"",name:"retryFn",required:!1,type:{name:"(() => void)"}},text:{defaultValue:{value:"Er ging iets mis."},description:"",name:"text",required:!1,type:{name:"string"}}}}}catch{}const pe={component:n},i=()=>t.jsx(n,{testID:""});var s,m,u;i.parameters={...i.parameters,docs:{...(s=i.parameters)==null?void 0:s.docs,source:{originalSource:'() => ',...(u=(m=i.parameters)==null?void 0:m.docs)==null?void 0:u.source}}};const de=["Default"];export{i as Default,de as __namedExportsOrder,pe as default}; +import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{P as d}from"./Pressable-0Of7HZos.js";import{A as c,a as v}from"./AlertBase-Cd_Tv8LG.js";import{u as f}from"./useAccessibilityAnnounce-VJH9SmdL.js";import{V as g}from"./index-BP1Ij_Cs.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./SingleSelectable-BAFROorM.js";import"./Column-CFK5NdwL.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Row-D-wvv0CV.js";import"./Icon-DbPHcDCx.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./Paragraph-4J4ihaTP.js";import"./Title-DyZpgX2c.js";import"./useAccessibilityFocus-jeKlJ74P.js";import"./index-DEfxrPnc.js";import"./index-CDv7s-w8.js";import"./useIsScreenReaderEnabled-A65pchNu.js";import"./duration-A4BOymd5.js";import"./accessibleText-gmNPjmn1.js";const o=e=>t.jsx(c,{...e,variant:v.negative});try{o.displayName="AlertNegative",o.__docgenInfo={description:"",displayName:"AlertNegative",props:{inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},hasCloseIcon:{defaultValue:null,description:"",name:"hasCloseIcon",required:!1,type:{name:"boolean"}},hasIcon:{defaultValue:null,description:"",name:"hasIcon",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"information"'},{value:'"negative"'},{value:'"positive"'},{value:'"warning"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const y=({children:e,retryFn:a,testID:r})=>a?t.jsx(d,{onPress:a,testID:r,children:e}):t.jsx(g,{testID:r,children:e}),n=({retryFn:e,testID:a,text:r="Er ging iets mis.",title:l="Sorry …",...p})=>(f(`${l} ${r}`),t.jsx(y,{retryFn:e,testID:a,children:t.jsx(o,{...p,testID:"SomethingWentWrong",text:r,title:l})}));try{n.displayName="SomethingWentWrong",n.__docgenInfo={description:"",displayName:"SomethingWentWrong",props:{testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"information"'},{value:'"negative"'},{value:'"positive"'},{value:'"warning"'}]}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},title:{defaultValue:{value:"Sorry …"},description:"",name:"title",required:!1,type:{name:"string"}},hasCloseIcon:{defaultValue:null,description:"",name:"hasCloseIcon",required:!1,type:{name:"boolean"}},hasIcon:{defaultValue:null,description:"",name:"hasIcon",required:!1,type:{name:"boolean"}},retryFn:{defaultValue:null,description:"",name:"retryFn",required:!1,type:{name:"(() => void)"}},text:{defaultValue:{value:"Er ging iets mis."},description:"",name:"text",required:!1,type:{name:"string"}}}}}catch{}const pe={component:n},i=()=>t.jsx(n,{testID:""});var s,m,u;i.parameters={...i.parameters,docs:{...(s=i.parameters)==null?void 0:s.docs,source:{originalSource:'() => ',...(u=(m=i.parameters)==null?void 0:m.docs)==null?void 0:u.source}}};const de=["Default"];export{i as Default,de as __namedExportsOrder,pe as default}; diff --git a/assets/Tag.stories-CzFZNLeZ.js b/assets/Tag.stories-C0zI_bID.js similarity index 94% rename from assets/Tag.stories-CzFZNLeZ.js rename to assets/Tag.stories-C0zI_bID.js index a9bf2567..7d09c494 100644 --- a/assets/Tag.stories-CzFZNLeZ.js +++ b/assets/Tag.stories-C0zI_bID.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-Bxcv0yjW.js";import{P as m}from"./Paragraph-ypvGdTJ3.js";import{u as c}from"./useThemable-ua4U8LzO.js";import{V as n}from"./index-BP1Ij_Cs.js";import{s as l}from"./index-kbHxBZ_W.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-CAyeAlm6.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";const a=({label:r})=>{const e=c(d);return o.jsx(n,{style:e.tag,children:o.jsx(m,{children:r})})},d=({color:r,size:e})=>l.create({tag:{backgroundColor:r.tag.background,paddingHorizontal:e.spacing.sm,paddingVertical:e.spacing.xs}});try{a.displayName="Tag",a.__docgenInfo={description:"",displayName:"Tag",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}}}}}catch{}const D={component:a},t={};var s,p,i;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:"{}",...(i=(p=t.parameters)==null?void 0:p.docs)==null?void 0:i.source}}};const E=["Default"];export{t as Default,E as __namedExportsOrder,D as default}; +import{j as o}from"./jsx-runtime-Bxcv0yjW.js";import{P as m}from"./Paragraph-4J4ihaTP.js";import{u as c}from"./useThemable-ua4U8LzO.js";import{V as n}from"./index-BP1Ij_Cs.js";import{s as l}from"./index-kbHxBZ_W.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-CAyeAlm6.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";const a=({label:r})=>{const e=c(d);return o.jsx(n,{style:e.tag,children:o.jsx(m,{children:r})})},d=({color:r,size:e})=>l.create({tag:{backgroundColor:r.tag.background,paddingHorizontal:e.spacing.sm,paddingVertical:e.spacing.xs}});try{a.displayName="Tag",a.__docgenInfo={description:"",displayName:"Tag",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}}}}}catch{}const D={component:a},t={};var s,p,i;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:"{}",...(i=(p=t.parameters)==null?void 0:p.docs)==null?void 0:i.source}}};const E=["Default"];export{t as Default,E as __namedExportsOrder,D as default}; diff --git a/assets/TextInput.stories-C76CVPWW.js b/assets/TextInput.stories-BeRQD_qo.js similarity index 93% rename from assets/TextInput.stories-C76CVPWW.js rename to assets/TextInput.stories-BeRQD_qo.js index db20909f..f5731844 100644 --- a/assets/TextInput.stories-C76CVPWW.js +++ b/assets/TextInput.stories-BeRQD_qo.js @@ -1,4 +1,4 @@ -import{j as i}from"./jsx-runtime-Bxcv0yjW.js";import{r as m}from"./index-mfbfsM12.js";import{I as B}from"./IconButton-CciMcnyz.js";import{L as D}from"./Label-Bawop_Qs.js";import{C as F}from"./Column-CFK5NdwL.js";import{I as N}from"./Icon-X_MsqpOP.js";import{u as v}from"./useThemable-ua4U8LzO.js";import{V as I}from"./index-BP1Ij_Cs.js";import{T as z}from"./index-DZxzYa9i.js";import{s as M}from"./index-kbHxBZ_W.js";import{P as k}from"./index-DSI0shHu.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Pressable-0Of7HZos.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./TextAncestorContext-Dg3XKfar.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./config-BZnShabN.js";import"./Badge-gxv3290q.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./Paragraph-ypvGdTJ3.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./useTheme-ChTiG3MC.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";const f=m.forwardRef(({label:r,numberOfLines:a,onChangeText:e,onFocus:t,placeholder:p="",warning:n,value:o="",testID:l="",accessibilityLanguage:s="nl-NL",...b},q)=>{const[C,h]=m.useState(!1),[x,u]=m.useState(o),g=v($({hasFocus:C,numberOfLines:a,warning:n})),E=v(A);m.useEffect(()=>{u(o)},[o]);const L=()=>h(!1),O=y=>{u(y),e==null||e(y)},H=()=>{u(""),e==null||e("")},W=()=>{h(!0),t==null||t()};return i.jsxs(F,{gutter:"sm",children:[i.jsx(D,{isAccessible:!b.accessibilityLabel,text:r}),i.jsxs(I,{style:g.frame,children:[i.jsx(z,{...b,...E,accessibilityLanguage:s,numberOfLines:k.OS==="ios"?void 0:a,onBlur:L,onChangeText:O,onFocus:W,placeholder:p,ref:q,style:g.textInput,testID:l,textAlignVertical:"top",value:x}),x?i.jsx(I,{children:i.jsx(B,{accessibilityHint:"Maak dit tekstveld leeg",accessibilityLanguage:s,icon:i.jsx(N,{name:"close",size:"lg",testID:`${l}ClearIcon`}),onPress:H,testID:`${l}ClearButton`})}):null]})]})}),$=({hasFocus:r,numberOfLines:a,warning:e})=>({color:t,size:p,text:n})=>{const o=r||e?2:1,l=p.spacing.md-(o-1),s=p.spacing.sm-(o-1);return M.create({frame:{flexDirection:"row",paddingHorizontal:l,paddingVertical:s,backgroundColor:t.textInput.container.background,borderStyle:"solid",borderColor:e?t.control.warning.border:r?t.control.focus.border:t.control.default.border,borderWidth:o},textInput:{minHeight:k.OS==="ios"&&a?a*n.lineHeight.body+2*s:"auto",flex:1,padding:0,paddingTop:0,color:t.text.default,fontFamily:n.fontFamily.regular,fontSize:n.fontSize.body}})},A=({color:r})=>({placeholderTextColor:r.text.secondary});try{f.displayName="TextInput",f.__docgenInfo={description:"",displayName:"TextInput",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},numberOfLines:{defaultValue:null,description:`Sets the number of lines for a TextInput. +import{j as i}from"./jsx-runtime-Bxcv0yjW.js";import{r as m}from"./index-mfbfsM12.js";import{I as B}from"./IconButton-S0EpSLVW.js";import{L as D}from"./Label-DxHoN9jC.js";import{C as F}from"./Column-CFK5NdwL.js";import{I as N}from"./Icon-DbPHcDCx.js";import{u as v}from"./useThemable-ua4U8LzO.js";import{V as I}from"./index-BP1Ij_Cs.js";import{T as z}from"./index-DZxzYa9i.js";import{s as M}from"./index-kbHxBZ_W.js";import{P as k}from"./index-DSI0shHu.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Pressable-0Of7HZos.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./TextAncestorContext-Dg3XKfar.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./config-BZnShabN.js";import"./Badge-BAkGihjF.js";import"./Row-D-wvv0CV.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./Paragraph-4J4ihaTP.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./useTheme-ChTiG3MC.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";const f=m.forwardRef(({label:r,numberOfLines:a,onChangeText:e,onFocus:t,placeholder:p="",warning:n,value:o="",testID:l="",accessibilityLanguage:s="nl-NL",...b},q)=>{const[C,h]=m.useState(!1),[x,u]=m.useState(o),g=v($({hasFocus:C,numberOfLines:a,warning:n})),E=v(A);m.useEffect(()=>{u(o)},[o]);const L=()=>h(!1),O=y=>{u(y),e==null||e(y)},H=()=>{u(""),e==null||e("")},W=()=>{h(!0),t==null||t()};return i.jsxs(F,{gutter:"sm",children:[i.jsx(D,{isAccessible:!b.accessibilityLabel,text:r}),i.jsxs(I,{style:g.frame,children:[i.jsx(z,{...b,...E,accessibilityLanguage:s,numberOfLines:k.OS==="ios"?void 0:a,onBlur:L,onChangeText:O,onFocus:W,placeholder:p,ref:q,style:g.textInput,testID:l,textAlignVertical:"top",value:x}),x?i.jsx(I,{children:i.jsx(B,{accessibilityHint:"Maak dit tekstveld leeg",accessibilityLanguage:s,icon:i.jsx(N,{name:"close",size:"lg",testID:`${l}ClearIcon`}),onPress:H,testID:`${l}ClearButton`})}):null]})]})}),$=({hasFocus:r,numberOfLines:a,warning:e})=>({color:t,size:p,text:n})=>{const o=r||e?2:1,l=p.spacing.md-(o-1),s=p.spacing.sm-(o-1);return M.create({frame:{flexDirection:"row",paddingHorizontal:l,paddingVertical:s,backgroundColor:t.textInput.container.background,borderStyle:"solid",borderColor:e?t.control.warning.border:r?t.control.focus.border:t.control.default.border,borderWidth:o},textInput:{minHeight:k.OS==="ios"&&a?a*n.lineHeight.body+2*s:"auto",flex:1,padding:0,paddingTop:0,color:t.text.default,fontFamily:n.fontFamily.regular,fontSize:n.fontSize.body}})},A=({color:r})=>({placeholderTextColor:r.text.secondary});try{f.displayName="TextInput",f.__docgenInfo={description:"",displayName:"TextInput",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},numberOfLines:{defaultValue:null,description:`Sets the number of lines for a TextInput. Use it with multiline set to true to be able to fill the lines.`,name:"numberOfLines",required:!1,type:{name:"number"}},onChangeText:{defaultValue:null,description:`Callback that is called when the text input's text changes. Changed text is passed as an argument to the callback handler.`,name:"onChangeText",required:!1,type:{name:"(((event: string) => void) & ((text: string) => void))"}},onFocus:{defaultValue:null,description:"Callback that is called when the text input is focused",name:"onFocus",required:!1,type:{name:"((() => void) & ((e: NativeSyntheticEvent) => void))"}},placeholder:{defaultValue:{value:""},description:"The string that will be rendered before text input has been entered",name:"placeholder",required:!1,type:{name:"string"}},warning:{defaultValue:null,description:"",name:"warning",required:!1,type:{name:"boolean"}}}}}catch{}const Le={component:f},c={args:{label:"Wat is de titel van je bericht?",placeholder:"Voer een titel in...",value:""}},d={args:{label:"Wat is de titel van je bericht?",multiline:!0,numberOfLines:5,placeholder:"Voer een titel in...",value:""}};var V,j,S;c.parameters={...c.parameters,docs:{...(V=c.parameters)==null?void 0:V.docs,source:{originalSource:`{ args: { diff --git a/assets/Timeline.stories-CY1lvcnH.js b/assets/Timeline.stories-B0g3WnXT.js similarity index 93% rename from assets/Timeline.stories-CY1lvcnH.js rename to assets/Timeline.stories-B0g3WnXT.js index 2557db5e..574349a9 100644 --- a/assets/Timeline.stories-CY1lvcnH.js +++ b/assets/Timeline.stories-B0g3WnXT.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-Bxcv0yjW.js";import{_ as A}from"./useTrackException-Cm6KdDpO.js";import{r as x}from"./index-mfbfsM12.js";import{A as C}from"./Accordion-Bb_aoL0d.js";import{s as v}from"./index-kbHxBZ_W.js";import{R as E}from"./Row-D-wvv0CV.js";import{I as w}from"./Icon-X_MsqpOP.js";import{H as b}from"./HtmlContent-d1LdVFX3.js";import{T as R}from"./Title-DmDbCZFx.js";import{u as k}from"./useDeviceContext-Cm8FgCCV.js";import{u as z}from"./useTheme-ChTiG3MC.js";import{V as y}from"./index-BP1Ij_Cs.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./_commonjsHelpers-BosuxZz1.js";import"./development-LhlsWDYu.js";import"./Pressable-0Of7HZos.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./Column-CFK5NdwL.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Gutter-BrZ2VZou.js";import"./Size-ByzkQpGs.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useOpenUrl-BQFKyC8S.js";import"./index-DEfxrPnc.js";import"./client-BGlHIwA3.js";import"./index-CDv7s-w8.js";import"./index-Ce74jbsy.js";import"./index-CkqLweLe.js";import"./index-k6NSpe5t.js";import"./index-DZxzYa9i.js";import"./index-BW2XZOZc.js";import"./index-BXDkY5MO.js";import"./Phrase-D4XuA9hP.js";import"./useOpenMailUrl-Blrf_PL9.js";import"./useOpenPhoneUrl-TB9t0oDt.js";import"./ListItemMarker-DmJOL3FK.js";import"./config-BZnShabN.js";import"./useIsScreenReaderEnabled-A65pchNu.js";function V(r){return r.toLowerCase()}var $=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],S=/[^A-Z0-9]+/gi;function q(r,t){t===void 0&&(t={});for(var e=t.splitRegexp,i=e===void 0?$:e,n=t.stripRegexp,u=n===void 0?S:n,m=t.transform,p=m===void 0?V:m,d=t.delimiter,s=d===void 0?" ":d,l=D(D(r,i,"$1\0$2"),u,"\0"),c=0,a=l.length;l.charAt(c)==="\0";)c++;for(;l.charAt(a-1)==="\0";)a--;return l.slice(c,a).split("\0").map(p).join(s)}function D(r,t,e){return t instanceof RegExp?r.replace(t,e):t.reduce(function(i,n){return i.replace(n,e)},r)}function H(r,t){var e=r.charAt(0),i=r.substr(1).toLowerCase();return t>0&&e>="0"&&e<="9"?"_"+e+i:""+e.toUpperCase()+i}function j(r,t){return t===void 0&&(t={}),q(r,A({delimiter:"",transform:H},t))}const P=(r,t,e,i,n,u)=>{const{color:m,size:p,z:d}=r,s={indicator:{size:p.spacing.lg*t},line:{width:4*t}};return v.create({indicator:{flexShrink:0,position:"relative",width:s.indicator.size,aspectRatio:1,justifyContent:"center",alignItems:"center",top:p.spacing.md,backgroundColor:i?m.timeline.future:m.timeline.past,borderRadius:s.indicator.size/2},line:{position:"absolute",top:p.spacing.md+s.indicator.size,left:(s.indicator.size-s.line.width)/2,zIndex:d.timelineLine,width:s.line.width,height:u&&!n?0:"100%",backgroundColor:i||e?m.timeline.future:m.timeline.past}})},h=({isBeforeUpcoming:r,isLast:t,item:e,testID:i})=>{var l,c;const n=!e.collapsed,[u,m]=x.useState(n),p=z(),{fontScale:d}=k(),s=P(p,d,r,e.progress==="Aankomend",u,t);return o.jsxs(y,{children:[o.jsxs(E,{children:[o.jsx(y,{style:s.indicator,children:e.progress==="Afgelopen"&&o.jsx(w,{color:"inverse",name:"check-mark",size:"sm",testID:`${i}Icon`})}),o.jsxs(C,{grow:1,initiallyExpanded:!!n,isExpandable:!!e.body||!!((l=e.items)!=null&&l.length),onChangeExpanded:a=>m(a),shrink:1,testID:i,title:e.title,children:[!!e.body&&o.jsx(b,{content:e.body,testID:`${i}BodyHtmlContent`}),(c=e.items)==null?void 0:c.map(({title:a,body:g})=>o.jsxs(x.Fragment,{children:[!!a&&o.jsx(R,{level:"h5",text:a}),!!g&&o.jsx(b,{content:g,testID:`${i}ItemBody${j(a??g??"")}HtmlContent`})]},a))]},e.title)]}),o.jsx(y,{style:s.line})]})};try{h.displayName="TimelineItem",h.__docgenInfo={description:"",displayName:"TimelineItem",props:{isBeforeUpcoming:{defaultValue:null,description:"",name:"isBeforeUpcoming",required:!0,type:{name:"boolean"}},isLast:{defaultValue:null,description:"",name:"isLast",required:!0,type:{name:"boolean"}},item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"ProjectTimelineItem"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const _=({items:r,testID:t})=>o.jsx(o.Fragment,{children:r.map((e,i)=>{var n;return o.jsx(h,{isBeforeUpcoming:((n=r[i+1])==null?void 0:n.progress)==="Aankomend",isLast:i===r.length-1,item:e,testID:`${t}${j(e.title)}TimelineItem`},e.title+i.toString())})});try{_.displayName="Timeline",_.__docgenInfo={description:"",displayName:"Timeline",props:{items:{defaultValue:null,description:"",name:"items",required:!0,type:{name:"ProjectTimelineItem[]"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const Fe={component:_},f={args:{items:[{collapsed:!1,body:"

Dolor sit amet 1

",date:"",items:[{title:"Lorem ipsum 1.1",body:"

Dolor sit amet 1.1

",date:""},{title:"Lorem ipsum 1.2",body:"

Dolor sit amet 1.2

",date:""}],progress:"Afgelopen",title:"Titel 1"},{collapsed:!0,body:"

Dolor sit amet 2

",date:"",items:[{title:"Lorem ipsum 2.1",body:"

Dolor sit amet 2.1

",date:""}],progress:"Huidig",title:"Titel 2"},{collapsed:!0,body:"

Dolor sit amet 3

",date:"",items:[{title:"Lorem ipsum 3.1",body:"

Dolor sit amet 3.1

",date:""},{title:"Lorem ipsum 3.2",body:"

Dolor sit amet 3.2

",date:""}],progress:"Aankomend",title:"Titel 3"}]}};var T,I,L;f.parameters={...f.parameters,docs:{...(T=f.parameters)==null?void 0:T.docs,source:{originalSource:`{ +import{j as o}from"./jsx-runtime-Bxcv0yjW.js";import{_ as A}from"./useTrackException-Cm6KdDpO.js";import{r as x}from"./index-mfbfsM12.js";import{A as C}from"./Accordion-CWJYEZYY.js";import{s as v}from"./index-kbHxBZ_W.js";import{R as E}from"./Row-D-wvv0CV.js";import{I as w}from"./Icon-DbPHcDCx.js";import{H as b}from"./HtmlContent-cfOAoYaH.js";import{T as R}from"./Title-DyZpgX2c.js";import{u as k}from"./useDeviceContext-Cm8FgCCV.js";import{u as z}from"./useTheme-ChTiG3MC.js";import{V as y}from"./index-BP1Ij_Cs.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./_commonjsHelpers-BosuxZz1.js";import"./development-LhlsWDYu.js";import"./Pressable-0Of7HZos.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./Column-CFK5NdwL.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Gutter-BrZ2VZou.js";import"./Size-ByzkQpGs.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useOpenUrl-DnQVF1wQ.js";import"./index-DEfxrPnc.js";import"./client-BGlHIwA3.js";import"./index-CDv7s-w8.js";import"./index-Ce74jbsy.js";import"./index-CkqLweLe.js";import"./index-k6NSpe5t.js";import"./index-DZxzYa9i.js";import"./index-BW2XZOZc.js";import"./index-BXDkY5MO.js";import"./Phrase-CZOdtc60.js";import"./useOpenMailUrl-Blrf_PL9.js";import"./useOpenPhoneUrl-TB9t0oDt.js";import"./ListItemMarker-CUNXp5YB.js";import"./config-BZnShabN.js";import"./useIsScreenReaderEnabled-A65pchNu.js";function V(r){return r.toLowerCase()}var $=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],S=/[^A-Z0-9]+/gi;function q(r,t){t===void 0&&(t={});for(var e=t.splitRegexp,i=e===void 0?$:e,n=t.stripRegexp,u=n===void 0?S:n,m=t.transform,p=m===void 0?V:m,d=t.delimiter,s=d===void 0?" ":d,l=D(D(r,i,"$1\0$2"),u,"\0"),c=0,a=l.length;l.charAt(c)==="\0";)c++;for(;l.charAt(a-1)==="\0";)a--;return l.slice(c,a).split("\0").map(p).join(s)}function D(r,t,e){return t instanceof RegExp?r.replace(t,e):t.reduce(function(i,n){return i.replace(n,e)},r)}function H(r,t){var e=r.charAt(0),i=r.substr(1).toLowerCase();return t>0&&e>="0"&&e<="9"?"_"+e+i:""+e.toUpperCase()+i}function j(r,t){return t===void 0&&(t={}),q(r,A({delimiter:"",transform:H},t))}const P=(r,t,e,i,n,u)=>{const{color:m,size:p,z:d}=r,s={indicator:{size:p.spacing.lg*t},line:{width:4*t}};return v.create({indicator:{flexShrink:0,position:"relative",width:s.indicator.size,aspectRatio:1,justifyContent:"center",alignItems:"center",top:p.spacing.md,backgroundColor:i?m.timeline.future:m.timeline.past,borderRadius:s.indicator.size/2},line:{position:"absolute",top:p.spacing.md+s.indicator.size,left:(s.indicator.size-s.line.width)/2,zIndex:d.timelineLine,width:s.line.width,height:u&&!n?0:"100%",backgroundColor:i||e?m.timeline.future:m.timeline.past}})},h=({isBeforeUpcoming:r,isLast:t,item:e,testID:i})=>{var l,c;const n=!e.collapsed,[u,m]=x.useState(n),p=z(),{fontScale:d}=k(),s=P(p,d,r,e.progress==="Aankomend",u,t);return o.jsxs(y,{children:[o.jsxs(E,{children:[o.jsx(y,{style:s.indicator,children:e.progress==="Afgelopen"&&o.jsx(w,{color:"inverse",name:"check-mark",size:"sm",testID:`${i}Icon`})}),o.jsxs(C,{grow:1,initiallyExpanded:!!n,isExpandable:!!e.body||!!((l=e.items)!=null&&l.length),onChangeExpanded:a=>m(a),shrink:1,testID:i,title:e.title,children:[!!e.body&&o.jsx(b,{content:e.body,testID:`${i}BodyHtmlContent`}),(c=e.items)==null?void 0:c.map(({title:a,body:g})=>o.jsxs(x.Fragment,{children:[!!a&&o.jsx(R,{level:"h5",text:a}),!!g&&o.jsx(b,{content:g,testID:`${i}ItemBody${j(a??g??"")}HtmlContent`})]},a))]},e.title)]}),o.jsx(y,{style:s.line})]})};try{h.displayName="TimelineItem",h.__docgenInfo={description:"",displayName:"TimelineItem",props:{isBeforeUpcoming:{defaultValue:null,description:"",name:"isBeforeUpcoming",required:!0,type:{name:"boolean"}},isLast:{defaultValue:null,description:"",name:"isLast",required:!0,type:{name:"boolean"}},item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"ProjectTimelineItem"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const _=({items:r,testID:t})=>o.jsx(o.Fragment,{children:r.map((e,i)=>{var n;return o.jsx(h,{isBeforeUpcoming:((n=r[i+1])==null?void 0:n.progress)==="Aankomend",isLast:i===r.length-1,item:e,testID:`${t}${j(e.title)}TimelineItem`},e.title+i.toString())})});try{_.displayName="Timeline",_.__docgenInfo={description:"",displayName:"Timeline",props:{items:{defaultValue:null,description:"",name:"items",required:!0,type:{name:"ProjectTimelineItem[]"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const Fe={component:_},f={args:{items:[{collapsed:!1,body:"

Dolor sit amet 1

",date:"",items:[{title:"Lorem ipsum 1.1",body:"

Dolor sit amet 1.1

",date:""},{title:"Lorem ipsum 1.2",body:"

Dolor sit amet 1.2

",date:""}],progress:"Afgelopen",title:"Titel 1"},{collapsed:!0,body:"

Dolor sit amet 2

",date:"",items:[{title:"Lorem ipsum 2.1",body:"

Dolor sit amet 2.1

",date:""}],progress:"Huidig",title:"Titel 2"},{collapsed:!0,body:"

Dolor sit amet 3

",date:"",items:[{title:"Lorem ipsum 3.1",body:"

Dolor sit amet 3.1

",date:""},{title:"Lorem ipsum 3.2",body:"

Dolor sit amet 3.2

",date:""}],progress:"Aankomend",title:"Titel 3"}]}};var T,I,L;f.parameters={...f.parameters,docs:{...(T=f.parameters)==null?void 0:T.docs,source:{originalSource:`{ args: { items: [{ collapsed: false, diff --git a/assets/Title-DmDbCZFx.js b/assets/Title-DyZpgX2c.js similarity index 89% rename from assets/Title-DmDbCZFx.js rename to assets/Title-DyZpgX2c.js index 5a75e384..6d2c2264 100644 --- a/assets/Title-DmDbCZFx.js +++ b/assets/Title-DyZpgX2c.js @@ -1 +1 @@ -import{j as c}from"./jsx-runtime-Bxcv0yjW.js";import{r as n}from"./index-mfbfsM12.js";import{u as d}from"./useThemable-ua4U8LzO.js";import{T as m}from"./index-CAyeAlm6.js";import{s as p}from"./index-kbHxBZ_W.js";const u=n.forwardRef(({color:e="default",level:t="h1",text:r,textAlign:l="left",underline:i=!1,...a},o)=>{const s=n.useMemo(()=>v({color:e,level:t,textAlign:l,underline:i}),[e,t,l,i]),f=d(s);return c.jsx(m,{accessibilityLanguage:"nl-NL",...a,accessibilityRole:"header",ref:o,style:f.title,children:r})}),v=({color:e,level:t,textAlign:r,underline:l})=>({color:i,text:a})=>p.create({title:{flexShrink:1,color:i.text[e],fontFamily:a.fontFamily.bold,fontSize:a.fontSize[t],lineHeight:a.lineHeight[t],textAlign:r,textDecorationLine:l?"underline":void 0}});try{u.displayName="Title",u.__docgenInfo={description:"",displayName:"Title",props:{color:{defaultValue:{value:"default"},description:"",name:"color",required:!1,type:{name:"enum",value:[{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"default"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"inverse"'},{value:'"warning"'}]}},level:{defaultValue:{value:"h1"},description:"",name:"level",required:!1,type:{name:"enum",value:[{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'}]}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},textAlign:{defaultValue:{value:"left"},description:"Defines the alignment of the text. Maps with the textAlign style prop options.",name:"textAlign",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"center"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'}]}},underline:{defaultValue:{value:"false"},description:"",name:"underline",required:!1,type:{name:"boolean"}}}}}catch{}export{u as T}; +import{j as c}from"./jsx-runtime-Bxcv0yjW.js";import{r as n}from"./index-mfbfsM12.js";import{u as d}from"./useThemable-ua4U8LzO.js";import{T as m}from"./index-CAyeAlm6.js";import{s as p}from"./index-kbHxBZ_W.js";const u=n.forwardRef(({color:e="default",level:t="h1",text:r,textAlign:l="left",underline:i=!1,...a},o)=>{const s=n.useMemo(()=>v({color:e,level:t,textAlign:l,underline:i}),[e,t,l,i]),f=d(s);return c.jsx(m,{accessibilityLanguage:"nl-NL",...a,accessibilityRole:"header",ref:o,style:f.title,children:r})}),v=({color:e,level:t,textAlign:r,underline:l})=>({color:i,text:a})=>p.create({title:{flexShrink:1,color:i.text[e],fontFamily:a.fontFamily.bold,fontSize:a.fontSize[t],lineHeight:a.lineHeight[t],textAlign:r,textDecorationLine:l?"underline":void 0}});try{u.displayName="Title",u.__docgenInfo={description:"",displayName:"Title",props:{color:{defaultValue:{value:"default"},description:"",name:"color",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"inverse"'},{value:'"warning"'}]}},level:{defaultValue:{value:"h1"},description:"",name:"level",required:!1,type:{name:"enum",value:[{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'}]}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},textAlign:{defaultValue:{value:"left"},description:"Defines the alignment of the text. Maps with the textAlign style prop options.",name:"textAlign",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"center"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'}]}},underline:{defaultValue:{value:"false"},description:"",name:"underline",required:!1,type:{name:"boolean"}}}}}catch{}export{u as T}; diff --git a/assets/Title.stories-C3V45TKe.js b/assets/Title.stories-CrDEaVfK.js similarity index 91% rename from assets/Title.stories-C3V45TKe.js rename to assets/Title.stories-CrDEaVfK.js index ce74769d..66b74ca5 100644 --- a/assets/Title.stories-C3V45TKe.js +++ b/assets/Title.stories-CrDEaVfK.js @@ -1 +1 @@ -import{j as i}from"./jsx-runtime-Bxcv0yjW.js";import{T as s}from"./Title-DmDbCZFx.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./index-kbHxBZ_W.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./TextAncestorContext-Dg3XKfar.js";const T={component:s},r=a=>i.jsx(s,{...a});r.args={color:"default",level:"h1",text:"Jouw typograaf biedt mij zulke exquise schreven!"};var t,e,o;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:"args => ",...(o=(e=r.parameters)==null?void 0:e.docs)==null?void 0:o.source}}};const _=["Default"];export{r as Default,_ as __namedExportsOrder,T as default}; +import{j as i}from"./jsx-runtime-Bxcv0yjW.js";import{T as s}from"./Title-DyZpgX2c.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./index-kbHxBZ_W.js";import"./base-color-B2rPH-Aj.js";import"./index-CAyeAlm6.js";import"./TextAncestorContext-Dg3XKfar.js";const T={component:s},r=a=>i.jsx(s,{...a});r.args={color:"default",level:"h1",text:"Jouw typograaf biedt mij zulke exquise schreven!"};var t,e,o;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:"args => <Title {...args} />",...(o=(e=r.parameters)==null?void 0:e.docs)==null?void 0:o.source}}};const _=["Default"];export{r as Default,_ as __namedExportsOrder,T as default}; diff --git a/assets/Tooltip-6N6xDP0A.js b/assets/Tooltip-CFX6LweZ.js similarity index 99% rename from assets/Tooltip-6N6xDP0A.js rename to assets/Tooltip-CFX6LweZ.js index 7e093987..cb776b69 100644 --- a/assets/Tooltip-6N6xDP0A.js +++ b/assets/Tooltip-CFX6LweZ.js @@ -1 +1 @@ -import{j as i}from"./jsx-runtime-Bxcv0yjW.js";import{r as l}from"./index-mfbfsM12.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import{u as L}from"./useDeviceContext-Cm8FgCCV.js";import{u as T}from"./index-BXDkY5MO.js";import{P as W}from"./PressableBase-DhkKVuqd.js";import{T as $,P as k}from"./Triangle-rmeRPZtY.js";import{C as A}from"./Center-2_hcwEx9.js";import{P as p,D as y}from"./types-BJ_48vsK.js";import{u as _}from"./useThemable-ua4U8LzO.js";import{V as I}from"./index-BP1Ij_Cs.js";import{s as v}from"./index-kbHxBZ_W.js";import{S as B}from"./SingleSelectable-BAFROorM.js";import{C as q}from"./Column-CFK5NdwL.js";import{P as H}from"./Paragraph-ypvGdTJ3.js";import{F as M}from"./Fader-CBhy3bI5.js";import{R as Y}from"./Row-D-wvv0CV.js";import{u as z}from"./useAccessibilityFocus-jeKlJ74P.js";import{I as G}from"./Animated-CFNSbqHF.js";const J=l.createContext(void 0),K=l.createContext(void 0);function j(){const e=l.useContext(J),t=l.useContext(K);if(t===void 0&&e===void 0)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");return t??e}function O(){const e=j(),[t,o]=l.useState(e.isFocused),a=e.isFocused();return t!==a&&o(a),l.useEffect(()=>{const r=e.addListener("focus",()=>o(!0)),n=e.addListener("blur",()=>o(!1));return()=>{r(),n()}},[e]),l.useDebugValue(a),a}const Q=e=>new Promise((t,o)=>{e?e.measureInWindow((a,r,n,s)=>{t({x:a,height:s,width:n,y:r})}):o(new Error("Element is not defined"))}),De=(e,t)=>{const{height:o,y:a}=e,{height:r,y:n}=t;return n>a&&n+r<a+o},U=e=>{const t=O(),o=T(),[a,r]=l.useState(),n=l.useRef({x:0,y:0,width:0,height:0}),s=l.useCallback(()=>{t&&Q(e.current).then(({x:c,y:u,width:m,height:d})=>{if(c===0&&u===0&&m===0&&d===0){setTimeout(s,300);return}n.current.height!==d||n.current.width!==m||n.current.x!==c||n.current.y!==u?setTimeout(s,300):r({x:c,y:u,width:m,height:d}),n.current={x:c,y:u,width:m,height:d}},()=>setTimeout(s,200))},[t,e,n]),{isPortrait:f}=L();return l.useEffect(()=>{r(void 0),s(),setTimeout(s,200)},[f,s,t,o]),{layout:a,measureTarget:s}},X=e=>({[p.above]:y.down,[p.below]:y.up,[p.before]:y.right,[p.after]:y.left})[e],Z=e=>e?e.x+e.width/2:0,ee=({children:e,direction:t,productTourTipTargetLayout:o})=>t===y.left||t===y.right||!o?i.jsx(A,{children:e}):i.jsx(i.Fragment,{children:e}),x=({placement:e,productTourTipTargetLayout:t})=>{const o=X(e),a=_(te(Z(t)));return i.jsx(ee,{direction:o,productTourTipTargetLayout:t,children:i.jsx(I,{style:a.pointer,children:i.jsx($,{direction:o})})})},te=e=>({size:t})=>v.create({pointer:{marginLeft:e?e-k.width/2-t.spacing.xl:void 0}});try{x.displayName="Pointer",x.__docgenInfo={description:"",displayName:"Pointer",props:{placement:{defaultValue:null,description:"",name:"placement",required:!0,type:{name:"enum",value:[{value:'"above"'},{value:'"after"'},{value:'"before"'},{value:'"below"'}]}},productTourTipTargetLayout:{defaultValue:null,description:"",name:"productTourTipTargetLayout",required:!1,type:{name:"LayoutRectangle"}}}}}catch{}const h=({testID:e,text:t})=>{const o=_(ne),a=typeof t=="string"?[t]:t;return i.jsx(B,{accessibilityRole:"text",accessible:!1,style:o.tooltip,testID:`${e}Content`,children:i.jsx(q,{gutter:"sm",children:a.map((r,n)=>i.jsx(H,{color:"inverse",testID:`${e}Paragraph${n}`,variant:"small",children:r},r))})})},ne=({color:e,size:t})=>v.create({tooltip:{padding:t.spacing.md,backgroundColor:e.tooltip.background}});try{h.displayName="TooltipContent",h.__docgenInfo={description:"",displayName:"TooltipContent",props:{text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string | string[]"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const w=l.forwardRef(({extraSpace:e,isPositioned:t,leftPosition:o,placement:a,productTourTipTargetLayout:r,fadeIn:n,fadeInDuration:s,startFadeIn:f,...c},u)=>{const{width:m}=T(),d=_(oe({extraSpace:e,isPositioned:t,leftPosition:o,placement:a,productTourTipTargetLayout:r,windowWidth:m}));return n?i.jsx(M,{...c,duration:s,ref:u,shouldAnimate:f,style:d.tooltipWrapper}):i.jsx(I,{...c,ref:u,style:d.tooltipWrapper})}),oe=({extraSpace:e,isPositioned:t,leftPosition:o,placement:a,productTourTipTargetLayout:r,windowWidth:n})=>({size:s,z:f})=>{const c=()=>{if(!r)return{position:"relative"};const u=r.height+(e?s.spacing[e]:0);return{left:-o,right:0,position:"absolute",...a===p.above?{bottom:u}:{top:u}}};return v.create({tooltipWrapper:{display:t?"flex":"none",width:r?n:void 0,paddingHorizontal:r?s.spacing.xl:void 0,...c(),zIndex:f.tooltip}})};try{w.displayName="TooltipWrapper",w.__docgenInfo={description:"",displayName:"TooltipWrapper",props:{extraSpace:{defaultValue:null,description:"Extra space to set between target and tooltip",name:"extraSpace",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},fadeIn:{defaultValue:null,description:"Determines whether the tooltip fades in and out. Default is 300 ms.",name:"fadeIn",required:!1,type:{name:"boolean"}},fadeInDuration:{defaultValue:null,description:"Duration of the fade-in animation in milliseconds, only works when fade = true",name:"fadeInDuration",required:!1,type:{name:"number"}},isPositioned:{defaultValue:null,description:"",name:"isPositioned",required:!0,type:{name:"boolean"}},leftPosition:{defaultValue:null,description:"",name:"leftPosition",required:!0,type:{name:"number"}},placement:{defaultValue:null,description:"",name:"placement",required:!0,type:{name:"enum",value:[{value:'"above"'},{value:'"after"'},{value:'"before"'},{value:'"below"'}]}},productTourTipTargetLayout:{defaultValue:null,description:"",name:"productTourTipTargetLayout",required:!1,type:{name:"LayoutRectangle"}},startFadeIn:{defaultValue:null,description:"",name:"startFadeIn",required:!1,type:{name:"boolean"}}}}}catch{}const ae=()=>j(),re=e=>{const t=ae();l.useEffect(()=>t.addListener("blur",e),[e,t])},D=l.forwardRef(({accessibilityLabel:e,accessibilityLanguage:t="nl-NL",extraSpace:o,fadeIn:a,fadeInDuration:r,placement:n,productTourTipTargetLayout:s,onPress:f,startFadeIn:c,testID:u,text:m},d)=>{const P=z(),[F,N]=l.useState(0),[E,V]=l.useState(!1),R=se(!!s),C=l.useRef(null),{layout:b,measureTarget:S}=U(C);l.useEffect(()=>{b&&G.runAfterInteractions(()=>{N(b.x),V(!0)})},[b]),re(()=>V(!1));const g=i.jsx(x,{placement:n,productTourTipTargetLayout:s});return i.jsx(I,{collapsable:!1,onLayout:S,ref:C,style:R.container,children:i.jsx(w,{extraSpace:o,fadeIn:a,fadeInDuration:r,isPositioned:E,leftPosition:F,placement:n,productTourTipTargetLayout:s,ref:d,startFadeIn:c,children:i.jsx(W,{accessibilityLabel:e,accessibilityLanguage:t,accessibilityRole:"alert",onPress:f,ref:P,testID:u,children:i.jsxs(Y,{children:[n===p.after&&g,i.jsxs(q,{grow:1,children:[n===p.below&&g,i.jsx(h,{testID:u,text:m}),n===p.above&&g]}),n===p.before&&g]})})})})}),se=e=>v.create({container:{position:e?"absolute":void 0}});try{D.displayName="Tooltip",D.__docgenInfo={description:"",displayName:"Tooltip",props:{onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"() => void"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string | string[]"}},extraSpace:{defaultValue:null,description:"Extra space to set between target and tooltip",name:"extraSpace",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},fadeIn:{defaultValue:null,description:"Determines whether the tooltip fades in and out. Default is 300 ms.",name:"fadeIn",required:!1,type:{name:"boolean"}},fadeInDuration:{defaultValue:null,description:"Duration of the fade-in animation in milliseconds, only works when fade = true",name:"fadeInDuration",required:!1,type:{name:"number"}},placement:{defaultValue:null,description:"",name:"placement",required:!0,type:{name:"enum",value:[{value:'"above"'},{value:'"after"'},{value:'"before"'},{value:'"below"'}]}},productTourTipTargetLayout:{defaultValue:null,description:"",name:"productTourTipTargetLayout",required:!1,type:{name:"LayoutRectangle"}},startFadeIn:{defaultValue:null,description:"",name:"startFadeIn",required:!1,type:{name:"boolean"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{J as N,D as T,K as a,U as b,De as c,re as d,ae as e,Q as m,j as u}; +import{j as i}from"./jsx-runtime-Bxcv0yjW.js";import{r as l}from"./index-mfbfsM12.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import{u as L}from"./useDeviceContext-Cm8FgCCV.js";import{u as T}from"./index-BXDkY5MO.js";import{P as W}from"./PressableBase-DhkKVuqd.js";import{T as $,P as k}from"./Triangle-rmeRPZtY.js";import{C as A}from"./Center-2_hcwEx9.js";import{P as p,D as y}from"./types-BJ_48vsK.js";import{u as _}from"./useThemable-ua4U8LzO.js";import{V as I}from"./index-BP1Ij_Cs.js";import{s as v}from"./index-kbHxBZ_W.js";import{S as B}from"./SingleSelectable-BAFROorM.js";import{C as q}from"./Column-CFK5NdwL.js";import{P as H}from"./Paragraph-4J4ihaTP.js";import{F as M}from"./Fader-CBhy3bI5.js";import{R as Y}from"./Row-D-wvv0CV.js";import{u as z}from"./useAccessibilityFocus-jeKlJ74P.js";import{I as G}from"./Animated-CFNSbqHF.js";const J=l.createContext(void 0),K=l.createContext(void 0);function j(){const e=l.useContext(J),t=l.useContext(K);if(t===void 0&&e===void 0)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");return t??e}function O(){const e=j(),[t,o]=l.useState(e.isFocused),a=e.isFocused();return t!==a&&o(a),l.useEffect(()=>{const r=e.addListener("focus",()=>o(!0)),n=e.addListener("blur",()=>o(!1));return()=>{r(),n()}},[e]),l.useDebugValue(a),a}const Q=e=>new Promise((t,o)=>{e?e.measureInWindow((a,r,n,s)=>{t({x:a,height:s,width:n,y:r})}):o(new Error("Element is not defined"))}),De=(e,t)=>{const{height:o,y:a}=e,{height:r,y:n}=t;return n>a&&n+r<a+o},U=e=>{const t=O(),o=T(),[a,r]=l.useState(),n=l.useRef({x:0,y:0,width:0,height:0}),s=l.useCallback(()=>{t&&Q(e.current).then(({x:c,y:u,width:m,height:d})=>{if(c===0&&u===0&&m===0&&d===0){setTimeout(s,300);return}n.current.height!==d||n.current.width!==m||n.current.x!==c||n.current.y!==u?setTimeout(s,300):r({x:c,y:u,width:m,height:d}),n.current={x:c,y:u,width:m,height:d}},()=>setTimeout(s,200))},[t,e,n]),{isPortrait:f}=L();return l.useEffect(()=>{r(void 0),s(),setTimeout(s,200)},[f,s,t,o]),{layout:a,measureTarget:s}},X=e=>({[p.above]:y.down,[p.below]:y.up,[p.before]:y.right,[p.after]:y.left})[e],Z=e=>e?e.x+e.width/2:0,ee=({children:e,direction:t,productTourTipTargetLayout:o})=>t===y.left||t===y.right||!o?i.jsx(A,{children:e}):i.jsx(i.Fragment,{children:e}),x=({placement:e,productTourTipTargetLayout:t})=>{const o=X(e),a=_(te(Z(t)));return i.jsx(ee,{direction:o,productTourTipTargetLayout:t,children:i.jsx(I,{style:a.pointer,children:i.jsx($,{direction:o})})})},te=e=>({size:t})=>v.create({pointer:{marginLeft:e?e-k.width/2-t.spacing.xl:void 0}});try{x.displayName="Pointer",x.__docgenInfo={description:"",displayName:"Pointer",props:{placement:{defaultValue:null,description:"",name:"placement",required:!0,type:{name:"enum",value:[{value:'"above"'},{value:'"after"'},{value:'"before"'},{value:'"below"'}]}},productTourTipTargetLayout:{defaultValue:null,description:"",name:"productTourTipTargetLayout",required:!1,type:{name:"LayoutRectangle"}}}}}catch{}const h=({testID:e,text:t})=>{const o=_(ne),a=typeof t=="string"?[t]:t;return i.jsx(B,{accessibilityRole:"text",accessible:!1,style:o.tooltip,testID:`${e}Content`,children:i.jsx(q,{gutter:"sm",children:a.map((r,n)=>i.jsx(H,{color:"inverse",testID:`${e}Paragraph${n}`,variant:"small",children:r},r))})})},ne=({color:e,size:t})=>v.create({tooltip:{padding:t.spacing.md,backgroundColor:e.tooltip.background}});try{h.displayName="TooltipContent",h.__docgenInfo={description:"",displayName:"TooltipContent",props:{text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string | string[]"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const w=l.forwardRef(({extraSpace:e,isPositioned:t,leftPosition:o,placement:a,productTourTipTargetLayout:r,fadeIn:n,fadeInDuration:s,startFadeIn:f,...c},u)=>{const{width:m}=T(),d=_(oe({extraSpace:e,isPositioned:t,leftPosition:o,placement:a,productTourTipTargetLayout:r,windowWidth:m}));return n?i.jsx(M,{...c,duration:s,ref:u,shouldAnimate:f,style:d.tooltipWrapper}):i.jsx(I,{...c,ref:u,style:d.tooltipWrapper})}),oe=({extraSpace:e,isPositioned:t,leftPosition:o,placement:a,productTourTipTargetLayout:r,windowWidth:n})=>({size:s,z:f})=>{const c=()=>{if(!r)return{position:"relative"};const u=r.height+(e?s.spacing[e]:0);return{left:-o,right:0,position:"absolute",...a===p.above?{bottom:u}:{top:u}}};return v.create({tooltipWrapper:{display:t?"flex":"none",width:r?n:void 0,paddingHorizontal:r?s.spacing.xl:void 0,...c(),zIndex:f.tooltip}})};try{w.displayName="TooltipWrapper",w.__docgenInfo={description:"",displayName:"TooltipWrapper",props:{extraSpace:{defaultValue:null,description:"Extra space to set between target and tooltip",name:"extraSpace",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},fadeIn:{defaultValue:null,description:"Determines whether the tooltip fades in and out. Default is 300 ms.",name:"fadeIn",required:!1,type:{name:"boolean"}},fadeInDuration:{defaultValue:null,description:"Duration of the fade-in animation in milliseconds, only works when fade = true",name:"fadeInDuration",required:!1,type:{name:"number"}},isPositioned:{defaultValue:null,description:"",name:"isPositioned",required:!0,type:{name:"boolean"}},leftPosition:{defaultValue:null,description:"",name:"leftPosition",required:!0,type:{name:"number"}},placement:{defaultValue:null,description:"",name:"placement",required:!0,type:{name:"enum",value:[{value:'"above"'},{value:'"after"'},{value:'"before"'},{value:'"below"'}]}},productTourTipTargetLayout:{defaultValue:null,description:"",name:"productTourTipTargetLayout",required:!1,type:{name:"LayoutRectangle"}},startFadeIn:{defaultValue:null,description:"",name:"startFadeIn",required:!1,type:{name:"boolean"}}}}}catch{}const ae=()=>j(),re=e=>{const t=ae();l.useEffect(()=>t.addListener("blur",e),[e,t])},D=l.forwardRef(({accessibilityLabel:e,accessibilityLanguage:t="nl-NL",extraSpace:o,fadeIn:a,fadeInDuration:r,placement:n,productTourTipTargetLayout:s,onPress:f,startFadeIn:c,testID:u,text:m},d)=>{const P=z(),[F,N]=l.useState(0),[E,V]=l.useState(!1),R=se(!!s),C=l.useRef(null),{layout:b,measureTarget:S}=U(C);l.useEffect(()=>{b&&G.runAfterInteractions(()=>{N(b.x),V(!0)})},[b]),re(()=>V(!1));const g=i.jsx(x,{placement:n,productTourTipTargetLayout:s});return i.jsx(I,{collapsable:!1,onLayout:S,ref:C,style:R.container,children:i.jsx(w,{extraSpace:o,fadeIn:a,fadeInDuration:r,isPositioned:E,leftPosition:F,placement:n,productTourTipTargetLayout:s,ref:d,startFadeIn:c,children:i.jsx(W,{accessibilityLabel:e,accessibilityLanguage:t,accessibilityRole:"alert",onPress:f,ref:P,testID:u,children:i.jsxs(Y,{children:[n===p.after&&g,i.jsxs(q,{grow:1,children:[n===p.below&&g,i.jsx(h,{testID:u,text:m}),n===p.above&&g]}),n===p.before&&g]})})})})}),se=e=>v.create({container:{position:e?"absolute":void 0}});try{D.displayName="Tooltip",D.__docgenInfo={description:"",displayName:"Tooltip",props:{onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"() => void"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string | string[]"}},extraSpace:{defaultValue:null,description:"Extra space to set between target and tooltip",name:"extraSpace",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},fadeIn:{defaultValue:null,description:"Determines whether the tooltip fades in and out. Default is 300 ms.",name:"fadeIn",required:!1,type:{name:"boolean"}},fadeInDuration:{defaultValue:null,description:"Duration of the fade-in animation in milliseconds, only works when fade = true",name:"fadeInDuration",required:!1,type:{name:"number"}},placement:{defaultValue:null,description:"",name:"placement",required:!0,type:{name:"enum",value:[{value:'"above"'},{value:'"after"'},{value:'"before"'},{value:'"below"'}]}},productTourTipTargetLayout:{defaultValue:null,description:"",name:"productTourTipTargetLayout",required:!1,type:{name:"LayoutRectangle"}},startFadeIn:{defaultValue:null,description:"",name:"startFadeIn",required:!1,type:{name:"boolean"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{J as N,D as T,K as a,U as b,De as c,re as d,ae as e,Q as m,j as u}; diff --git a/assets/Tooltip.stories-9N6FLrAC.js b/assets/Tooltip.stories-6PB1oCmF.js similarity index 94% rename from assets/Tooltip.stories-9N6FLrAC.js rename to assets/Tooltip.stories-6PB1oCmF.js index f84dabbe..ad86a7ab 100644 --- a/assets/Tooltip.stories-9N6FLrAC.js +++ b/assets/Tooltip.stories-6PB1oCmF.js @@ -1,4 +1,4 @@ -import{T as s}from"./Tooltip-6N6xDP0A.js";import{P as a}from"./types-BJ_48vsK.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./PressableBase-DhkKVuqd.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./Triangle-rmeRPZtY.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./Center-2_hcwEx9.js";import"./layoutStyles-hLwHoe51.js";import"./SingleSelectable-BAFROorM.js";import"./Column-CFK5NdwL.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Paragraph-ypvGdTJ3.js";import"./index-CAyeAlm6.js";import"./Fader-CBhy3bI5.js";import"./index-CkqLweLe.js";import"./index-CDv7s-w8.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./Row-D-wvv0CV.js";import"./useAccessibilityFocus-jeKlJ74P.js";import"./index-DEfxrPnc.js";import"./useIsScreenReaderEnabled-A65pchNu.js";import"./duration-A4BOymd5.js";const ee={component:s},e={args:{placement:a.below,text:"We gebruiken het adres alleen in de app om u de juiste informatie te tonen. Uw gegevens worden niet gedeeld."}},r={args:{placement:a.below,text:["Tip!","Vul het formulier in en win een parkeervergunning."]}};var t,o,i;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{T as s}from"./Tooltip-CFX6LweZ.js";import{P as a}from"./types-BJ_48vsK.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./development-LhlsWDYu.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./PressableBase-DhkKVuqd.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./index-BP1Ij_Cs.js";import"./Triangle-rmeRPZtY.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";import"./Center-2_hcwEx9.js";import"./layoutStyles-hLwHoe51.js";import"./SingleSelectable-BAFROorM.js";import"./Column-CFK5NdwL.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Paragraph-4J4ihaTP.js";import"./index-CAyeAlm6.js";import"./Fader-CBhy3bI5.js";import"./index-CkqLweLe.js";import"./index-CDv7s-w8.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./Row-D-wvv0CV.js";import"./useAccessibilityFocus-jeKlJ74P.js";import"./index-DEfxrPnc.js";import"./useIsScreenReaderEnabled-A65pchNu.js";import"./duration-A4BOymd5.js";const ee={component:s},e={args:{placement:a.below,text:"We gebruiken het adres alleen in de app om u de juiste informatie te tonen. Uw gegevens worden niet gedeeld."}},r={args:{placement:a.below,text:["Tip!","Vul het formulier in en win een parkeervergunning."]}};var t,o,i;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { placement: Placement.below, text: 'We gebruiken het adres alleen in de app om u de juiste informatie te tonen. Uw gegevens worden niet gedeeld.' diff --git a/assets/TopTaskButton.stories-DDCfiwvk.js b/assets/TopTaskButton.stories-B0qDl5ll.js similarity index 97% rename from assets/TopTaskButton.stories-DDCfiwvk.js rename to assets/TopTaskButton.stories-B0qDl5ll.js index 07e2b2d5..0859c5b7 100644 --- a/assets/TopTaskButton.stories-DDCfiwvk.js +++ b/assets/TopTaskButton.stories-B0qDl5ll.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{H as y}from"./HideFromAccessibility-B6TCA_vV.js";import{P as k}from"./Pressable-0Of7HZos.js";import{C as x}from"./Column-CFK5NdwL.js";import{R as o}from"./Row-D-wvv0CV.js";import{I as s}from"./Icon-X_MsqpOP.js";import{P as b}from"./Paragraph-ypvGdTJ3.js";import{T as w}from"./Title-DmDbCZFx.js";import{u as V}from"./useThemable-ua4U8LzO.js";import{a as T}from"./accessibleText-gmNPjmn1.js";import{V as q}from"./index-BP1Ij_Cs.js";import{s as C}from"./index-kbHxBZ_W.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";const r=({isError:a=!1,iconName:p,onPress:d,text:l,title:i,titleIconName:n,testID:t,accessibilityRole:g="button",...h})=>{const f=V(j);return e.jsx(k,{accessibilityLabel:T(i,typeof l=="string"?l:""),accessibilityLanguage:"nl-NL",accessibilityRole:g,onPress:d,testID:t,...h,insetHorizontal:"md",insetVertical:"sm",children:e.jsxs(o,{gutter:"md",children:[e.jsx(q,{style:f.height,children:e.jsx(y,{children:e.jsx(s,{color:"link",name:p,size:"xl",testID:`${t}Icon`})})}),e.jsxs(x,{align:"center",grow:1,shrink:1,children:[e.jsxs(o,{gutter:"sm",valign:"center",children:[e.jsx(w,{color:"link",level:"h5",testID:`${t}Title`,text:i}),!!n&&e.jsx(s,{color:"link",name:n,testID:`${t}TitleIcon`})]}),typeof l=="string"?e.jsx(b,{color:a?"warning":void 0,testID:`${t}Text`,variant:"small",children:l}):l]})]})})},j=({text:a})=>C.create({height:{justifyContent:"center",height:a.lineHeight.h5+a.lineHeight.small}});try{r.displayName="TopTaskButton",r.__docgenInfo={description:"",displayName:"TopTaskButton",props:{iconName:{defaultValue:null,description:"",name:"iconName",required:!0,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},isError:{defaultValue:{value:"false"},description:"",name:"isError",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"ReactNode"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},titleIconName:{defaultValue:null,description:"",name:"titleIconName",required:!1,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial<Record<CustomDimensionKeys, string>>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"tertiary"'},{value:'"transparent"'}]}},inset:{defaultValue:null,description:"The amount of inner spacing.",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetHorizontal:{defaultValue:null,description:"The amount of inner spacing at the left and right.",name:"insetHorizontal",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetVertical:{defaultValue:null,description:"The amount of inner spacing at the top and bottom.",name:"insetVertical",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}}}}}catch{}const de={component:r,argTypes:{onPress:{action:"onPress"}}},u={args:{iconName:"email",text:"Reactie binnen 1 werkdag",title:"Contactformulier"}};var v,c,m;u.parameters={...u.parameters,docs:{...(v=u.parameters)==null?void 0:v.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{H as y}from"./HideFromAccessibility-B6TCA_vV.js";import{P as k}from"./Pressable-0Of7HZos.js";import{C as x}from"./Column-CFK5NdwL.js";import{R as o}from"./Row-D-wvv0CV.js";import{I as s}from"./Icon-DbPHcDCx.js";import{P as b}from"./Paragraph-4J4ihaTP.js";import{T as w}from"./Title-DyZpgX2c.js";import{u as V}from"./useThemable-ua4U8LzO.js";import{a as T}from"./accessibleText-gmNPjmn1.js";import{V as q}from"./index-BP1Ij_Cs.js";import{s as C}from"./index-kbHxBZ_W.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-DhkKVuqd.js";import"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import"./index-8JwjhRSi.js";import"./useTrackException-Cm6KdDpO.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./development-LhlsWDYu.js";import"./index-CIcog7m4.js";import"./extends-CF3RwP-h.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./index-2SHDvLR_.js";import"./index-CAyeAlm6.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BXDkY5MO.js";import"./useTheme-ChTiG3MC.js";import"./index-DFkxGuuM.js";import"./base-color-B2rPH-Aj.js";const r=({isError:a=!1,iconName:p,onPress:d,text:l,title:i,titleIconName:n,testID:t,accessibilityRole:g="button",...h})=>{const f=V(j);return e.jsx(k,{accessibilityLabel:T(i,typeof l=="string"?l:""),accessibilityLanguage:"nl-NL",accessibilityRole:g,onPress:d,testID:t,...h,insetHorizontal:"md",insetVertical:"sm",children:e.jsxs(o,{gutter:"md",children:[e.jsx(q,{style:f.height,children:e.jsx(y,{children:e.jsx(s,{color:"link",name:p,size:"xl",testID:`${t}Icon`})})}),e.jsxs(x,{align:"center",grow:1,shrink:1,children:[e.jsxs(o,{gutter:"sm",valign:"center",children:[e.jsx(w,{color:"link",level:"h5",testID:`${t}Title`,text:i}),!!n&&e.jsx(s,{color:"link",name:n,testID:`${t}TitleIcon`})]}),typeof l=="string"?e.jsx(b,{color:a?"warning":void 0,testID:`${t}Text`,variant:"small",children:l}):l]})]})})},j=({text:a})=>C.create({height:{justifyContent:"center",height:a.lineHeight.h5+a.lineHeight.small}});try{r.displayName="TopTaskButton",r.__docgenInfo={description:"",displayName:"TopTaskButton",props:{iconName:{defaultValue:null,description:"",name:"iconName",required:!0,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},isError:{defaultValue:{value:"false"},description:"",name:"isError",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"ReactNode"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},titleIconName:{defaultValue:null,description:"",name:"titleIconName",required:!1,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial<Record<CustomDimensionKeys, string>>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"tertiary"'},{value:'"transparent"'}]}},inset:{defaultValue:null,description:"The amount of inner spacing.",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetHorizontal:{defaultValue:null,description:"The amount of inner spacing at the left and right.",name:"insetHorizontal",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetVertical:{defaultValue:null,description:"The amount of inner spacing at the top and bottom.",name:"insetVertical",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}}}}}catch{}const de={component:r,argTypes:{onPress:{action:"onPress"}}},u={args:{iconName:"email",text:"Reactie binnen 1 werkdag",title:"Contactformulier"}};var v,c,m;u.parameters={...u.parameters,docs:{...(v=u.parameters)==null?void 0:v.docs,source:{originalSource:`{ args: { iconName: 'email', text: 'Reactie binnen 1 werkdag', diff --git a/assets/Trait.stories-B0TmfqFg.js b/assets/Trait.stories-mFmZ36SD.js similarity index 95% rename from assets/Trait.stories-B0TmfqFg.js rename to assets/Trait.stories-mFmZ36SD.js index 99f6d738..04b75f76 100644 --- a/assets/Trait.stories-B0TmfqFg.js +++ b/assets/Trait.stories-mFmZ36SD.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{B as g}from"./Badge-gxv3290q.js";import{R as f}from"./Row-D-wvv0CV.js";import{I as y}from"./Icon-X_MsqpOP.js";import{P as b}from"./Phrase-D4XuA9hP.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./index-BXDkY5MO.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-BP1Ij_Cs.js";import"./index-CAyeAlm6.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./extends-CF3RwP-h.js";import"./index-2SHDvLR_.js";import"./types-BJ_48vsK.js";import"./useTheme-ChTiG3MC.js";const t=({accessibilityLabel:r,accessibilityLanguage:v="nl-NL",children:d,iconName:i,label:h,testID:o})=>a.jsxs(f,{gutter:"sm",valign:"center",children:[i?a.jsx(y,{name:i,testID:`${o}Icon`}):d,a.jsx(b,{accessibilityLabel:r,accessibilityLanguage:v,testID:`${o}Label`,variant:"small",children:h})]});try{t.displayName="Trait",t.__docgenInfo={description:"",displayName:"Trait",props:{accessibilityLabel:{defaultValue:null,description:"",name:"accessibilityLabel",required:!1,type:{name:"string"}},accessibilityLanguage:{defaultValue:{value:"nl-NL"},description:"",name:"accessibilityLanguage",required:!1,type:{name:"string"}},children:{defaultValue:null,description:`Allows a custom visualization for the trait. +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{B as g}from"./Badge-BAkGihjF.js";import{R as f}from"./Row-D-wvv0CV.js";import{I as y}from"./Icon-DbPHcDCx.js";import{P as b}from"./Phrase-CZOdtc60.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useDeviceContext-Cm8FgCCV.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./index-BXDkY5MO.js";import"./useThemable-ua4U8LzO.js";import"./index-DFkxGuuM.js";import"./index-8JwjhRSi.js";import"./base-color-B2rPH-Aj.js";import"./index-BP1Ij_Cs.js";import"./index-CAyeAlm6.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Animated-CFNSbqHF.js";import"./extends-CF3RwP-h.js";import"./index-2SHDvLR_.js";import"./types-BJ_48vsK.js";import"./useTheme-ChTiG3MC.js";const t=({accessibilityLabel:r,accessibilityLanguage:v="nl-NL",children:d,iconName:i,label:h,testID:o})=>a.jsxs(f,{gutter:"sm",valign:"center",children:[i?a.jsx(y,{name:i,testID:`${o}Icon`}):d,a.jsx(b,{accessibilityLabel:r,accessibilityLanguage:v,testID:`${o}Label`,variant:"small",children:h})]});try{t.displayName="Trait",t.__docgenInfo={description:"",displayName:"Trait",props:{accessibilityLabel:{defaultValue:null,description:"",name:"accessibilityLabel",required:!1,type:{name:"string"}},accessibilityLanguage:{defaultValue:{value:"nl-NL"},description:"",name:"accessibilityLanguage",required:!1,type:{name:"string"}},children:{defaultValue:null,description:`Allows a custom visualization for the trait. Use a small component here. Not rendered if an icon name is provided.`,name:"children",required:!1,type:{name:"ReactNode"}},iconName:{defaultValue:null,description:"The name of the icon to visually support the trait label.",name:"iconName",required:!1,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},label:{defaultValue:null,description:`The label identifying the trait. Should be one or a few words.`,name:"label",required:!0,type:{name:"string"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const M={component:t},e=r=>a.jsx(t,{...r,iconName:"location"});e.args={label:"123 meter"};const l={args:{children:a.jsx(g,{testID:"Badge",value:7}),label:"berichten"}};var s,u,n;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:'args => <Trait {...args} iconName="location" />',...(n=(u=e.parameters)==null?void 0:u.docs)==null?void 0:n.source}}};var c,m,p;l.parameters={...l.parameters,docs:{...(c=l.parameters)==null?void 0:c.docs,source:{originalSource:`{ args: { diff --git a/assets/entry-preview-CLR5VOOm.js b/assets/entry-preview-mM74NShd.js similarity index 99% rename from assets/entry-preview-CLR5VOOm.js rename to assets/entry-preview-mM74NShd.js index bf9f3695..c5e77cef 100644 --- a/assets/entry-preview-CLR5VOOm.js +++ b/assets/entry-preview-mM74NShd.js @@ -1,5 +1,5 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./react-18-ClY32pUF.js","./index-mfbfsM12.js","./_commonjsHelpers-BosuxZz1.js","./client-BGlHIwA3.js","./index-DFkxGuuM.js"])))=>i.map(i=>d[i]); -import{_ as tr}from"./iframe-4y4VsLB1.js";import{_ as sr,a as nr,b as L}from"./chunk-XP5HYGXS-BGCqD1aY.js";import{r as Y,R as re}from"./index-mfbfsM12.js";import{r as ar}from"./index-DFkxGuuM.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-BosuxZz1.js";var b={};/** +import{_ as tr}from"./iframe-Cclg9cWs.js";import{_ as sr,a as nr,b as L}from"./chunk-XP5HYGXS-BGCqD1aY.js";import{r as Y,R as re}from"./index-mfbfsM12.js";import{r as ar}from"./index-DFkxGuuM.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-BosuxZz1.js";var b={};/** * @license React * react-dom-test-utils.production.min.js * diff --git a/assets/iframe-4y4VsLB1.js b/assets/iframe-Cclg9cWs.js similarity index 71% rename from assets/iframe-4y4VsLB1.js rename to assets/iframe-Cclg9cWs.js index 9eb17482..ec35df13 100644 --- a/assets/iframe-4y4VsLB1.js +++ b/assets/iframe-Cclg9cWs.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Fader.stories-C1pDZoDs.js","./jsx-runtime-Bxcv0yjW.js","./index-mfbfsM12.js","./_commonjsHelpers-BosuxZz1.js","./Fader-CBhy3bI5.js","./NativeEventEmitter-MQ3wzVGe.js","./index-DSI0shHu.js","./TextAncestorContext-Dg3XKfar.js","./index-kbHxBZ_W.js","./index-CkqLweLe.js","./index-CDv7s-w8.js","./Animated-CFNSbqHF.js","./extends-CF3RwP-h.js","./index-BP1Ij_Cs.js","./index-2SHDvLR_.js","./index-CAyeAlm6.js","./Block-B9hfeL6e.js","./base-color-B2rPH-Aj.js","./Button.stories-lunSqU3S.js","./Button-_M7GwRMx.js","./PressableBase-DhkKVuqd.js","./usePiwikTrackCustomEventFromProps-CT_KpUEz.js","./index-8JwjhRSi.js","./useTrackException-Cm6KdDpO.js","./index-BowPbij1.js","./development-LhlsWDYu.js","./index-CIcog7m4.js","./config-BZnShabN.js","./Row-D-wvv0CV.js","./mapCrossAxisAlignment-DpnuLLqj.js","./mapMainAxisAlignment-BOa0GzUh.js","./useThemable-ua4U8LzO.js","./index-DFkxGuuM.js","./Icon-X_MsqpOP.js","./index-BtN4QjYR.js","./index-Dk74W0Oi.js","./types-BJ_48vsK.js","./useDeviceContext-Cm8FgCCV.js","./index-BXDkY5MO.js","./useTheme-ChTiG3MC.js","./pressable-arg-types-CJIMfHep.js","./EmailButton.stories-Dv6QOq1H.js","./useOpenMailUrl-Blrf_PL9.js","./index-Ce74jbsy.js","./accessibleText-gmNPjmn1.js","./FauxButton.stories-DyggrnHw.js","./Phrase-D4XuA9hP.js","./FollowButton.stories-CSmGgUAj.js","./IconButton.stories-CA1OhUIy.js","./IconButton-CciMcnyz.js","./Pressable-0Of7HZos.js","./Box-CEQ9kk6v.js","./layoutStyles-hLwHoe51.js","./Badge-gxv3290q.js","./InformationButton.stories-BafFkCfd.js","./Column-CFK5NdwL.js","./Paragraph-ypvGdTJ3.js","./Title-DmDbCZFx.js","./NavigationButton.stories-DVafOVYy.js","./PhoneButton.stories-DZPKLonu.js","./PhoneButton-DlW_KxTb.js","./useOpenPhoneUrl-TB9t0oDt.js","./PhoneHQButton.stories-BOhBot6W.js","./Pressable.stories-PEU3VA2P.js","./PressableBase.stories-USPKU3bj.js","./TopTaskButton.stories-DDCfiwvk.js","./HideFromAccessibility-B6TCA_vV.js","./Accordion.stories-W2S0Bevf.js","./Accordion-Bb_aoL0d.js","./Gutter-BrZ2VZou.js","./Size-ByzkQpGs.js","./Box.stories-DS_CBNZ5.js","./Timeline.stories-CY1lvcnH.js","./HtmlContent-d1LdVFX3.js","./useOpenUrl-BQFKyC8S.js","./index-DEfxrPnc.js","./client-BGlHIwA3.js","./index-k6NSpe5t.js","./index-DZxzYa9i.js","./index-BW2XZOZc.js","./ListItemMarker-DmJOL3FK.js","./useIsScreenReaderEnabled-A65pchNu.js","./Badge.stories-BFHvS6t2.js","./EmptyMessage.stories-BMTx-YEt.js","./SingleSelectable-BAFROorM.js","./useAccessibilityAnnounce-VJH9SmdL.js","./duration-A4BOymd5.js","./PleaseWait.stories-Dwu2SZAJ.js","./PleaseWait-B-bOq08A.js","./Center-2_hcwEx9.js","./Canvas-CCRWbH08.js","./SomethingWentWrong.stories-DiTzvhpy.js","./AlertBase-o37gkLL_.js","./useAccessibilityFocus-jeKlJ74P.js","./Trait.stories-B0TmfqFg.js","./Triangle.stories-CHLJOVzJ.js","./Triangle-rmeRPZtY.js","./Alert.stories-YhUjSp4y.js","./Tooltip.stories-9N6FLrAC.js","./Tooltip-6N6xDP0A.js","./CharactersLeftDisplay.stories-kvfTujVC.js","./Checkbox.stories-Dpkjr6dW.js","./FormField-BhsBdiWh.js","./Label.stories-DcuqWR9Q.js","./Label-Bawop_Qs.js","./RadioGroup.stories-DXe4_xqf.js","./Switch.stories-BS9spyxO.js","./TextInput.stories-C76CVPWW.js","./AspectRatio.stories-WZAYpz98.js","./Center.stories-Cnqg3jM5.js","./Column.stories-DS4YoCOS.js","./Row.stories-Dfaep2m-.js","./Size.stories-C6bEUiWk.js","./Figure.stories-C9T-Wx5E.js","./household-waste-to-container-gxPFJly2.js","./FigureWithFacadesBackground.stories-DTHzVLBl.js","./FigureWithFacadesBackground-BWm7kzMv.js","./index-DbcoTUCW.js","./Icon.stories-dn0r3e0-.js","./Image.stories-CQMT5qhX.js","./ImageFallback.stories-BVhTocuT.js","./ConstructionWorkDetailFigure.stories-DHQNrmJY.js","./ConstructionWorkFigure.stories-CM2lGYsP.js","./ModulesFigure.stories-Dv3DNx_H.js","./ReportProblemFigure.stories-BPSoT1pJ.js","./UpdateFigure.stories-q3aIP9ZA.js","./WasteGuideFigure.stories-CWI-i9ew.js","./HtmlContent.stories-DYaJeNgF.js","./Link.stories-BxpM6sWc.js","./Paragraph.stories-ClAT69lo.js","./Phrase.stories-BWshaq1G.js","./Tag.stories-CzFZNLeZ.js","./Title.stories-C3V45TKe.js","./List.stories-DOhyway4.js","./ChatSystemEntry.stories-SeIE7jUV.js","./ChatSystemEntry-DUcFLRjf.js","./CityPassCard.stories-Bvrq-rIJ.js","./NotificationHistoryEmpty.stories-fR52zbG5.js","./NotificationHistoryItem.stories-CzBWuwvF.js","./modules-DWXNg6GW.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./NotificationHistoryListFooter.stories-B42d-CBu.js","./entry-preview-CLR5VOOm.js","./chunk-XP5HYGXS-BGCqD1aY.js","./entry-preview-docs-SlKtvMf0.js","./index-kifaGmES.js","./preview-D77C14du.js","./index-DrFu-skq.js","./preview-BWzBA1C2.js","./preview-BWv0N7lx.js","./preview-CPnNvsyl.css"])))=>i.map(i=>d[i]); -import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const e of o)if(e.type==="childList")for(const i of e.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&u(i)}).observe(document,{childList:!0,subtree:!0});function c(o){const e={};return o.integrity&&(e.integrity=o.integrity),o.referrerPolicy&&(e.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?e.credentials="include":o.crossOrigin==="anonymous"?e.credentials="omit":e.credentials="same-origin",e}function u(o){if(o.ep)return;o.ep=!0;const e=c(o);fetch(o.href,e)}})();const y="modulepreload",T=function(r,_){return new URL(r,_).href},O={},t=function(_,c,u){let o=Promise.resolve();if(c&&c.length>0){const i=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),d=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.allSettled(c.map(n=>{if(n=T(n,u),n in O)return;O[n]=!0;const a=n.endsWith(".css"),R=a?'[rel="stylesheet"]':"";if(!!u)for(let p=i.length-1;p>=0;p--){const E=i[p];if(E.href===n&&(!a||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${R}`))return;const m=document.createElement("link");if(m.rel=a?"stylesheet":y,a||(m.as="script"),m.crossOrigin="",m.href=n,d&&m.setAttribute("nonce",d),document.head.appendChild(m),a)return new Promise((p,E)=>{m.addEventListener("load",p),m.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${n}`)))})}))}function e(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return o.then(i=>{for(const s of i||[])s.status==="rejected"&&e(s.reason);return _().catch(e)})},{createBrowserChannel:L}=__STORYBOOK_MODULE_CHANNELS__,{addons:P}=__STORYBOOK_MODULE_PREVIEW_API__,l=L({page:"preview"});P.setChannel(l);window.__STORYBOOK_ADDONS_CHANNEL__=l;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=l);const I={"./src/components/ui/animations/Fader.stories.tsx":async()=>t(()=>import("./Fader.stories-C1pDZoDs.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),"./src/components/ui/buttons/Button.stories.tsx":async()=>t(()=>import("./Button.stories-lunSqU3S.js"),__vite__mapDeps([18,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,40]),import.meta.url),"./src/components/ui/buttons/EmailButton.stories.tsx":async()=>t(()=>import("./EmailButton.stories-Dv6QOq1H.js"),__vite__mapDeps([41,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,42,43,44]),import.meta.url),"./src/components/ui/buttons/FauxButton.stories.tsx":async()=>t(()=>import("./FauxButton.stories-DyggrnHw.js"),__vite__mapDeps([45,1,2,3,27,46,31,32,22,8,17,15,7,13]),import.meta.url),"./src/components/ui/buttons/FollowButton.stories.tsx":async()=>t(()=>import("./FollowButton.stories-CSmGgUAj.js"),__vite__mapDeps([47,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39]),import.meta.url),"./src/components/ui/buttons/IconButton.stories.tsx":async()=>t(()=>import("./IconButton.stories-CA1OhUIy.js"),__vite__mapDeps([48,1,2,3,49,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,27,53,28,29,30,37,38,15,36,33,34,35,11,14,39,40]),import.meta.url),"./src/components/ui/buttons/InformationButton.stories.tsx":async()=>t(()=>import("./InformationButton.stories-BafFkCfd.js"),__vite__mapDeps([54,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,55,29,30,28,33,34,35,11,14,15,36,37,38,39,56,57,44]),import.meta.url),"./src/components/ui/buttons/NavigationButton.stories.tsx":async()=>t(()=>import("./NavigationButton.stories-DVafOVYy.js"),__vite__mapDeps([58,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,28,29,30,33,34,35,11,14,15,36,37,38,39,46]),import.meta.url),"./src/components/ui/buttons/PhoneButton.stories.tsx":async()=>t(()=>import("./PhoneButton.stories-DZPKLonu.js"),__vite__mapDeps([59,60,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,61,43,44]),import.meta.url),"./src/components/ui/buttons/PhoneHQButton.stories.tsx":async()=>t(()=>import("./PhoneHQButton.stories-BOhBot6W.js"),__vite__mapDeps([62,1,2,3,60,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,61,43,44]),import.meta.url),"./src/components/ui/buttons/Pressable.stories.tsx":async()=>t(()=>import("./Pressable.stories-PEU3VA2P.js"),__vite__mapDeps([63,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,56,15]),import.meta.url),"./src/components/ui/buttons/PressableBase.stories.tsx":async()=>t(()=>import("./PressableBase.stories-USPKU3bj.js"),__vite__mapDeps([64,20,1,2,3,21,22,23,24,5,6,7,8,25,26,12,13,40]),import.meta.url),"./src/components/ui/buttons/TopTaskButton.stories.tsx":async()=>t(()=>import("./TopTaskButton.stories-DDCfiwvk.js"),__vite__mapDeps([65,1,2,3,66,13,8,7,50,20,21,22,23,24,5,6,25,26,12,51,52,31,32,17,55,29,30,28,33,34,35,11,14,15,36,37,38,39,56,57,44]),import.meta.url),"./src/components/ui/containers/Accordion.stories.tsx":async()=>t(()=>import("./Accordion.stories-W2S0Bevf.js"),__vite__mapDeps([67,1,2,3,68,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,55,29,30,69,28,70,33,34,35,11,14,15,36,37,38,39,57,56]),import.meta.url),"./src/components/ui/containers/Box.stories.tsx":async()=>t(()=>import("./Box.stories-DS_CBNZ5.js"),__vite__mapDeps([71,1,2,3,51,52,8,31,32,22,17,13,7,46,15]),import.meta.url),"./src/components/ui/containers/Timeline.stories.tsx":async()=>t(()=>import("./Timeline.stories-CY1lvcnH.js"),__vite__mapDeps([72,1,2,3,23,24,5,6,7,8,25,68,50,20,21,22,26,12,13,51,52,31,32,17,55,29,30,69,28,70,33,34,35,11,14,15,36,37,38,39,57,73,74,75,76,10,43,9,77,78,79,46,42,61,80,27,81]),import.meta.url),"./src/components/ui/feedback/Badge.stories.tsx":async()=>t(()=>import("./Badge.stories-BFHvS6t2.js"),__vite__mapDeps([82,53,1,2,3,28,29,30,31,32,22,8,17,13,7,37,24,5,6,38,15]),import.meta.url),"./src/components/ui/feedback/EmptyMessage.stories.tsx":async()=>t(()=>import("./EmptyMessage.stories-BMTx-YEt.js"),__vite__mapDeps([83,1,2,3,84,8,13,7,56,31,32,22,17,15,57,85,81,23,24,5,6,25,10,86,44]),import.meta.url),"./src/components/ui/feedback/PleaseWait.stories.tsx":async()=>t(()=>import("./PleaseWait.stories-Dwu2SZAJ.js"),__vite__mapDeps([87,1,2,3,88,51,52,8,31,32,22,17,13,7,89,33,34,35,28,29,30,11,6,12,5,14,15,36,37,24,38,39,16,90]),import.meta.url),"./src/components/ui/feedback/SomethingWentWrong.stories.tsx":async()=>t(()=>import("./SomethingWentWrong.stories-DiTzvhpy.js"),__vite__mapDeps([91,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,92,84,55,29,30,28,33,34,35,11,14,15,36,37,38,39,56,57,93,75,10,81,86,44,85]),import.meta.url),"./src/components/ui/feedback/Trait.stories.tsx":async()=>t(()=>import("./Trait.stories-B0TmfqFg.js"),__vite__mapDeps([94,1,2,3,53,28,29,30,31,32,22,8,17,13,7,37,24,5,6,38,15,33,34,35,11,12,14,36,39,46]),import.meta.url),"./src/components/ui/feedback/Triangle.stories.tsx":async()=>t(()=>import("./Triangle.stories-CHLJOVzJ.js"),__vite__mapDeps([95,96,1,2,3,34,35,8,36,31,32,22,17]),import.meta.url),"./src/components/ui/feedback/alert/Alert.stories.tsx":async()=>t(()=>import("./Alert.stories-YhUjSp4y.js"),__vite__mapDeps([97,92,1,2,3,51,52,8,31,32,22,17,13,7,84,55,29,30,28,33,34,35,11,6,12,5,14,15,36,37,24,38,39,56,57,93,23,25,75,10,81,86,44]),import.meta.url),"./src/components/ui/feedback/tooltip/Tooltip.stories.tsx":async()=>t(()=>import("./Tooltip.stories-9N6FLrAC.js"),__vite__mapDeps([98,99,1,2,3,21,22,23,24,5,6,7,8,25,37,38,20,26,12,13,96,34,35,36,31,32,17,89,52,84,55,29,30,56,15,4,9,10,11,14,28,93,75,81,86]),import.meta.url),"./src/components/ui/forms/CharactersLeftDisplay.stories.tsx":async()=>t(()=>import("./CharactersLeftDisplay.stories-kvfTujVC.js"),__vite__mapDeps([100,1,2,3,56,31,32,22,8,17,15,7]),import.meta.url),"./src/components/ui/forms/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-Dpkjr6dW.js"),__vite__mapDeps([101,1,2,3,102,66,13,8,7,28,29,30,31,32,22,17,52,33,34,35,11,6,12,5,14,15,36,37,24,38,39,21,23,25,79]),import.meta.url),"./src/components/ui/forms/Label.stories.tsx":async()=>t(()=>import("./Label.stories-DcuqWR9Q.js"),__vite__mapDeps([103,104,1,2,3,56,31,32,22,8,17,15,7,13]),import.meta.url),"./src/components/ui/forms/RadioGroup.stories.tsx":async()=>t(()=>import("./RadioGroup.stories-DXe4_xqf.js"),__vite__mapDeps([105,1,2,3,34,35,8,20,21,22,23,24,5,6,7,25,26,12,13,28,29,30,31,32,17,46,15,39,55]),import.meta.url),"./src/components/ui/forms/Switch.stories.tsx":async()=>t(()=>import("./Switch.stories-BS9spyxO.js"),__vite__mapDeps([106,1,2,3,20,21,22,23,24,5,6,7,8,25,26,12,13,102,66,28,29,30,31,32,17,52,39,77,15]),import.meta.url),"./src/components/ui/forms/TextInput.stories.tsx":async()=>t(()=>import("./TextInput.stories-C76CVPWW.js"),__vite__mapDeps([107,1,2,3,49,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,27,53,28,29,30,37,38,15,36,104,56,55,33,34,35,11,14,39,78]),import.meta.url),"./src/components/ui/layout/AspectRatio.stories.tsx":async()=>t(()=>import("./AspectRatio.stories-WZAYpz98.js"),__vite__mapDeps([108,1,2,3,36,31,32,22,8,17,13,7,46,15,16,90]),import.meta.url),"./src/components/ui/layout/Center.stories.tsx":async()=>t(()=>import("./Center.stories-Cnqg3jM5.js"),__vite__mapDeps([109,1,2,3,89,52,8,13,7,46,31,32,22,17,15,16,90]),import.meta.url),"./src/components/ui/layout/Column.stories.tsx":async()=>t(()=>import("./Column.stories-DS4YoCOS.js"),__vite__mapDeps([110,1,2,3,55,29,30,31,32,22,8,17,13,7,16,90]),import.meta.url),"./src/components/ui/layout/Row.stories.tsx":async()=>t(()=>import("./Row.stories-Dfaep2m-.js"),__vite__mapDeps([111,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,16,90]),import.meta.url),"./src/components/ui/layout/Size.stories.tsx":async()=>t(()=>import("./Size.stories-C6bEUiWk.js"),__vite__mapDeps([112,1,2,3,70,30,13,8,7,46,31,32,22,17,15,16,90]),import.meta.url),"./src/components/ui/media/Figure.stories.tsx":async()=>t(()=>import("./Figure.stories-C9T-Wx5E.js"),__vite__mapDeps([113,1,2,3,31,32,22,8,17,13,7,114]),import.meta.url),"./src/components/ui/media/FigureWithFacadesBackground.stories.tsx":async()=>t(()=>import("./FigureWithFacadesBackground.stories-DTHzVLBl.js"),__vite__mapDeps([115,1,2,3,116,117,37,24,5,6,7,8,38,31,32,22,17,13,114]),import.meta.url),"./src/components/ui/media/Icon.stories.tsx":async()=>t(()=>import("./Icon.stories-dn0r3e0-.js"),__vite__mapDeps([118,33,1,2,3,34,35,8,28,29,30,31,32,22,17,13,7,11,6,12,5,14,15,36,37,24,38,39]),import.meta.url),"./src/components/ui/media/Image.stories.tsx":async()=>t(()=>import("./Image.stories-CQMT5qhX.js"),__vite__mapDeps([119,1,2,3,25,6,7,8,14,12,13,31,32,22,17,38]),import.meta.url),"./src/components/ui/media/ImageFallback.stories.tsx":async()=>t(()=>import("./ImageFallback.stories-BVhTocuT.js"),__vite__mapDeps([120,1,2,3,31,32,22,8,17,13,7]),import.meta.url),"./src/components/ui/media/errors/ConstructionWorkDetailFigure.stories.tsx":async()=>t(()=>import("./ConstructionWorkDetailFigure.stories-DHQNrmJY.js"),__vite__mapDeps([121,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/ConstructionWorkFigure.stories.tsx":async()=>t(()=>import("./ConstructionWorkFigure.stories-CM2lGYsP.js"),__vite__mapDeps([122,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/ModulesFigure.stories.tsx":async()=>t(()=>import("./ModulesFigure.stories-Dv3DNx_H.js"),__vite__mapDeps([123,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/ReportProblemFigure.stories.tsx":async()=>t(()=>import("./ReportProblemFigure.stories-BPSoT1pJ.js"),__vite__mapDeps([124,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/UpdateFigure.stories.tsx":async()=>t(()=>import("./UpdateFigure.stories-q3aIP9ZA.js"),__vite__mapDeps([125,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/WasteGuideFigure.stories.tsx":async()=>t(()=>import("./WasteGuideFigure.stories-CWI-i9ew.js"),__vite__mapDeps([126,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/text/HtmlContent.stories.tsx":async()=>t(()=>import("./HtmlContent.stories-DYaJeNgF.js"),__vite__mapDeps([127,1,2,3,73,74,8,75,32,76,6,7,10,43,12,13,9,5,11,14,15,21,22,23,24,25,26,77,78,79,38,46,31,17,42,61,35,55,29,30,28,80,27,37,81]),import.meta.url),"./src/components/ui/text/Link.stories.tsx":async()=>t(()=>import("./Link.stories-BxpM6sWc.js"),__vite__mapDeps([128,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,27,28,29,30,70,33,34,35,11,14,15,36,37,38,39,46]),import.meta.url),"./src/components/ui/text/Paragraph.stories.tsx":async()=>t(()=>import("./Paragraph.stories-ClAT69lo.js"),__vite__mapDeps([129,1,2,3,56,31,32,22,8,17,15,7]),import.meta.url),"./src/components/ui/text/Phrase.stories.tsx":async()=>t(()=>import("./Phrase.stories-BWshaq1G.js"),__vite__mapDeps([130,1,2,3,46,31,32,22,8,17,15,7,13]),import.meta.url),"./src/components/ui/text/Tag.stories.tsx":async()=>t(()=>import("./Tag.stories-CzFZNLeZ.js"),__vite__mapDeps([131,1,2,3,56,31,32,22,8,17,15,7,13]),import.meta.url),"./src/components/ui/text/Title.stories.tsx":async()=>t(()=>import("./Title.stories-C3V45TKe.js"),__vite__mapDeps([132,1,2,3,57,31,32,22,8,17,15,7]),import.meta.url),"./src/components/ui/text/list/List.stories.tsx":async()=>t(()=>import("./List.stories-DOhyway4.js"),__vite__mapDeps([133,1,2,3,84,8,13,7,55,29,30,31,32,22,17,28,46,15,80,27,37,24,5,6,38,44]),import.meta.url),"./src/modules/chat/components/ChatSystemEntry.stories.tsx":async()=>t(()=>import("./ChatSystemEntry.stories-SeIE7jUV.js"),__vite__mapDeps([134,135,1,2,3,28,29,30,31,32,22,8,17,13,7,33,34,35,11,6,12,5,14,15,36,37,24,38,39,46]),import.meta.url),"./src/modules/city-pass/components/card-display/CityPassCard.stories.tsx":async()=>t(()=>import("./CityPassCard.stories-Bvrq-rIJ.js"),__vite__mapDeps([136,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,55,29,30,28,33,34,35,11,14,15,36,37,38,39,56,57,44]),import.meta.url),"./src/modules/notification-history/components/NotificationHistoryEmpty.stories.tsx":async()=>t(()=>import("./NotificationHistoryEmpty.stories-fR52zbG5.js"),__vite__mapDeps([137,1,2,3,51,52,8,31,32,22,17,13,7,84,55,29,30,69,116,117,37,24,5,6,38,56,15,57]),import.meta.url),"./src/modules/notification-history/components/NotificationHistoryItem.stories.tsx":async()=>t(()=>import("./NotificationHistoryItem.stories-CzBWuwvF.js"),__vite__mapDeps([138,1,2,3,21,22,23,24,5,6,7,8,25,139,31,32,17,74,75,76,10,43,12,13,9,11,14,15,26,77,78,79,38,46,42,61,39,117,37,55,29,30,93,81,86,50,20,51,52,70,49,27,53,28,36,33,34,35,57,69,135,19,89,99,96,84,56,4,66,88,140,44]),import.meta.url),"./src/modules/notification-history/components/NotificationHistoryListFooter.stories.tsx":async()=>t(()=>import("./NotificationHistoryListFooter.stories-B42d-CBu.js"),__vite__mapDeps([141,1,2,3,51,52,8,31,32,22,17,13,7,56,15]),import.meta.url)};async function D(r){return I[r]()}const{composeConfigs:V,PreviewWeb:v,ClientApi:g}=__STORYBOOK_MODULE_PREVIEW_API__,f=async(r=[])=>{const _=await Promise.all([r[0]??t(()=>import("./entry-preview-CLR5VOOm.js"),__vite__mapDeps([142,143,2,3,32]),import.meta.url),r[1]??t(()=>import("./entry-preview-docs-SlKtvMf0.js"),__vite__mapDeps([144,143,145,3,2]),import.meta.url),r[2]??t(()=>import("./preview-DsjGcuSR.js"),[],import.meta.url),r[3]??t(()=>import("./preview-aVwhiz9X.js"),[],import.meta.url),r[4]??t(()=>import("./preview-D77C14du.js"),__vite__mapDeps([146,147]),import.meta.url),r[5]??t(()=>import("./preview-DFmD0pui.js"),[],import.meta.url),r[6]??t(()=>import("./preview-CFgKly6U.js"),[],import.meta.url),r[7]??t(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([148,147]),import.meta.url),r[8]??t(()=>import("./preview-DGUiP6tS.js"),[],import.meta.url),r[9]??t(()=>import("./preview-BAAlSrTu.js"),[],import.meta.url),r[10]??t(()=>import("./preview-BWv0N7lx.js"),__vite__mapDeps([149,1,2,3,37,24,5,6,7,8,38,31,32,22,17,139,21,23,25,74,75,76,10,43,12,13,9,11,14,15,26,77,78,79,46,42,61,39,117,55,29,30,93,81,86,50,20,51,52,70,49,27,53,28,36,33,34,35,57,69,135,19,89,99,96,84,56,4,66,88,140,150]),import.meta.url)]);return V(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new v(D,f);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Fader.stories-C1pDZoDs.js","./jsx-runtime-Bxcv0yjW.js","./index-mfbfsM12.js","./_commonjsHelpers-BosuxZz1.js","./Fader-CBhy3bI5.js","./NativeEventEmitter-MQ3wzVGe.js","./index-DSI0shHu.js","./TextAncestorContext-Dg3XKfar.js","./index-kbHxBZ_W.js","./index-CkqLweLe.js","./index-CDv7s-w8.js","./Animated-CFNSbqHF.js","./extends-CF3RwP-h.js","./index-BP1Ij_Cs.js","./index-2SHDvLR_.js","./index-CAyeAlm6.js","./Block-B9hfeL6e.js","./base-color-B2rPH-Aj.js","./Button.stories-fTRm7p5g.js","./Button-BgT1eW_K.js","./PressableBase-DhkKVuqd.js","./usePiwikTrackCustomEventFromProps-CT_KpUEz.js","./index-8JwjhRSi.js","./useTrackException-Cm6KdDpO.js","./index-BowPbij1.js","./development-LhlsWDYu.js","./index-CIcog7m4.js","./config-BZnShabN.js","./Row-D-wvv0CV.js","./mapCrossAxisAlignment-DpnuLLqj.js","./mapMainAxisAlignment-BOa0GzUh.js","./useThemable-ua4U8LzO.js","./index-DFkxGuuM.js","./Icon-DbPHcDCx.js","./index-BtN4QjYR.js","./index-Dk74W0Oi.js","./types-BJ_48vsK.js","./useDeviceContext-Cm8FgCCV.js","./index-BXDkY5MO.js","./useTheme-ChTiG3MC.js","./pressable-arg-types-CJIMfHep.js","./EmailButton.stories-D-4EaWBW.js","./useOpenMailUrl-Blrf_PL9.js","./index-Ce74jbsy.js","./accessibleText-gmNPjmn1.js","./FauxButton.stories-BuCAOpHm.js","./Phrase-CZOdtc60.js","./FollowButton.stories-Bv5dw7_T.js","./IconButton.stories-DO0GJg2W.js","./IconButton-S0EpSLVW.js","./Pressable-0Of7HZos.js","./Box-CEQ9kk6v.js","./layoutStyles-hLwHoe51.js","./Badge-BAkGihjF.js","./InformationButton.stories-7neX6tsq.js","./Column-CFK5NdwL.js","./Paragraph-4J4ihaTP.js","./Title-DyZpgX2c.js","./NavigationButton.stories-Vj66KkpA.js","./PhoneButton.stories-CDViBSUm.js","./PhoneButton-DL5UxKqg.js","./useOpenPhoneUrl-TB9t0oDt.js","./PhoneHQButton.stories-hyNo0Yvi.js","./Pressable.stories-_OR-FgCC.js","./PressableBase.stories-USPKU3bj.js","./TopTaskButton.stories-B0qDl5ll.js","./HideFromAccessibility-B6TCA_vV.js","./Accordion.stories-DOPvYEOF.js","./Accordion-CWJYEZYY.js","./Gutter-BrZ2VZou.js","./Size-ByzkQpGs.js","./Box.stories-CgtawHVf.js","./Timeline.stories-B0g3WnXT.js","./HtmlContent-cfOAoYaH.js","./useOpenUrl-DnQVF1wQ.js","./index-DEfxrPnc.js","./client-BGlHIwA3.js","./index-k6NSpe5t.js","./index-DZxzYa9i.js","./index-BW2XZOZc.js","./ListItemMarker-CUNXp5YB.js","./useIsScreenReaderEnabled-A65pchNu.js","./Badge.stories-6dAHUh_M.js","./EmptyMessage.stories-uY5eBQy_.js","./SingleSelectable-BAFROorM.js","./useAccessibilityAnnounce-VJH9SmdL.js","./duration-A4BOymd5.js","./PleaseWait.stories-B-xLH4LE.js","./PleaseWait-CKlP_x4g.js","./Center-2_hcwEx9.js","./Canvas-CCRWbH08.js","./SomethingWentWrong.stories-MVJbPO6R.js","./AlertBase-Cd_Tv8LG.js","./useAccessibilityFocus-jeKlJ74P.js","./Trait.stories-mFmZ36SD.js","./Triangle.stories-CHLJOVzJ.js","./Triangle-rmeRPZtY.js","./Alert.stories-Ce3R7kZr.js","./Tooltip.stories-6PB1oCmF.js","./Tooltip-CFX6LweZ.js","./CharactersLeftDisplay.stories-YA-KrHnU.js","./Checkbox.stories-DZ7pmtuf.js","./FormField-BhsBdiWh.js","./Label.stories-D02SEO0v.js","./Label-DxHoN9jC.js","./RadioGroup.stories-Bg5q3_5Z.js","./Switch.stories-BS9spyxO.js","./TextInput.stories-BeRQD_qo.js","./AspectRatio.stories-CxrkzDXX.js","./Center.stories-D_o2M5AZ.js","./Column.stories-DS4YoCOS.js","./Row.stories-DaInerHC.js","./Size.stories-CvrrRT1P.js","./Figure.stories-C9T-Wx5E.js","./household-waste-to-container-gxPFJly2.js","./FigureWithFacadesBackground.stories-DTHzVLBl.js","./FigureWithFacadesBackground-BWm7kzMv.js","./index-DbcoTUCW.js","./Icon.stories-DhVEjSmF.js","./Image.stories-CQMT5qhX.js","./ImageFallback.stories-BVhTocuT.js","./ConstructionWorkDetailFigure.stories-DHQNrmJY.js","./ConstructionWorkFigure.stories-CM2lGYsP.js","./ModulesFigure.stories-Dv3DNx_H.js","./ReportProblemFigure.stories-BPSoT1pJ.js","./UpdateFigure.stories-q3aIP9ZA.js","./WasteGuideFigure.stories-CWI-i9ew.js","./HtmlContent.stories-BaK6654Z.js","./Link.stories-Bt73J5Hq.js","./Paragraph.stories-C__TajjU.js","./Phrase.stories-CtPdUNVT.js","./Tag.stories-C0zI_bID.js","./Title.stories-CrDEaVfK.js","./List.stories-Bqm09YO1.js","./ChatSystemEntry.stories-DJgr7mdM.js","./ChatSystemEntry-CUUCUyCa.js","./CityPassCard.stories-Bf3yBmSj.js","./NotificationHistoryEmpty.stories-BTI9bg8L.js","./NotificationHistoryItem.stories-CHGXW53v.js","./modules-hTTKIr_p.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./NotificationHistoryListFooter.stories-NzvM2Qxs.js","./entry-preview-mM74NShd.js","./chunk-XP5HYGXS-BGCqD1aY.js","./entry-preview-docs-SlKtvMf0.js","./index-kifaGmES.js","./preview-D77C14du.js","./index-DrFu-skq.js","./preview-BWzBA1C2.js","./preview-CEwHxKlx.js","./preview-CPnNvsyl.css"])))=>i.map(i=>d[i]); +import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const e of o)if(e.type==="childList")for(const i of e.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&u(i)}).observe(document,{childList:!0,subtree:!0});function c(o){const e={};return o.integrity&&(e.integrity=o.integrity),o.referrerPolicy&&(e.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?e.credentials="include":o.crossOrigin==="anonymous"?e.credentials="omit":e.credentials="same-origin",e}function u(o){if(o.ep)return;o.ep=!0;const e=c(o);fetch(o.href,e)}})();const y="modulepreload",T=function(r,_){return new URL(r,_).href},O={},t=function(_,c,u){let o=Promise.resolve();if(c&&c.length>0){const i=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),d=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.allSettled(c.map(n=>{if(n=T(n,u),n in O)return;O[n]=!0;const a=n.endsWith(".css"),R=a?'[rel="stylesheet"]':"";if(!!u)for(let p=i.length-1;p>=0;p--){const E=i[p];if(E.href===n&&(!a||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${R}`))return;const m=document.createElement("link");if(m.rel=a?"stylesheet":y,a||(m.as="script"),m.crossOrigin="",m.href=n,d&&m.setAttribute("nonce",d),document.head.appendChild(m),a)return new Promise((p,E)=>{m.addEventListener("load",p),m.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${n}`)))})}))}function e(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return o.then(i=>{for(const s of i||[])s.status==="rejected"&&e(s.reason);return _().catch(e)})},{createBrowserChannel:L}=__STORYBOOK_MODULE_CHANNELS__,{addons:P}=__STORYBOOK_MODULE_PREVIEW_API__,l=L({page:"preview"});P.setChannel(l);window.__STORYBOOK_ADDONS_CHANNEL__=l;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=l);const I={"./src/components/ui/animations/Fader.stories.tsx":async()=>t(()=>import("./Fader.stories-C1pDZoDs.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),"./src/components/ui/buttons/Button.stories.tsx":async()=>t(()=>import("./Button.stories-fTRm7p5g.js"),__vite__mapDeps([18,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,40]),import.meta.url),"./src/components/ui/buttons/EmailButton.stories.tsx":async()=>t(()=>import("./EmailButton.stories-D-4EaWBW.js"),__vite__mapDeps([41,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,42,43,44]),import.meta.url),"./src/components/ui/buttons/FauxButton.stories.tsx":async()=>t(()=>import("./FauxButton.stories-BuCAOpHm.js"),__vite__mapDeps([45,1,2,3,27,46,31,32,22,8,17,15,7,13]),import.meta.url),"./src/components/ui/buttons/FollowButton.stories.tsx":async()=>t(()=>import("./FollowButton.stories-Bv5dw7_T.js"),__vite__mapDeps([47,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39]),import.meta.url),"./src/components/ui/buttons/IconButton.stories.tsx":async()=>t(()=>import("./IconButton.stories-DO0GJg2W.js"),__vite__mapDeps([48,1,2,3,49,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,27,53,28,29,30,37,38,15,36,33,34,35,11,14,39,40]),import.meta.url),"./src/components/ui/buttons/InformationButton.stories.tsx":async()=>t(()=>import("./InformationButton.stories-7neX6tsq.js"),__vite__mapDeps([54,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,55,29,30,28,33,34,35,11,14,15,36,37,38,39,56,57,44]),import.meta.url),"./src/components/ui/buttons/NavigationButton.stories.tsx":async()=>t(()=>import("./NavigationButton.stories-Vj66KkpA.js"),__vite__mapDeps([58,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,28,29,30,33,34,35,11,14,15,36,37,38,39,46]),import.meta.url),"./src/components/ui/buttons/PhoneButton.stories.tsx":async()=>t(()=>import("./PhoneButton.stories-CDViBSUm.js"),__vite__mapDeps([59,60,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,61,43,44]),import.meta.url),"./src/components/ui/buttons/PhoneHQButton.stories.tsx":async()=>t(()=>import("./PhoneHQButton.stories-hyNo0Yvi.js"),__vite__mapDeps([62,1,2,3,60,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,61,43,44]),import.meta.url),"./src/components/ui/buttons/Pressable.stories.tsx":async()=>t(()=>import("./Pressable.stories-_OR-FgCC.js"),__vite__mapDeps([63,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,56,15]),import.meta.url),"./src/components/ui/buttons/PressableBase.stories.tsx":async()=>t(()=>import("./PressableBase.stories-USPKU3bj.js"),__vite__mapDeps([64,20,1,2,3,21,22,23,24,5,6,7,8,25,26,12,13,40]),import.meta.url),"./src/components/ui/buttons/TopTaskButton.stories.tsx":async()=>t(()=>import("./TopTaskButton.stories-B0qDl5ll.js"),__vite__mapDeps([65,1,2,3,66,13,8,7,50,20,21,22,23,24,5,6,25,26,12,51,52,31,32,17,55,29,30,28,33,34,35,11,14,15,36,37,38,39,56,57,44]),import.meta.url),"./src/components/ui/containers/Accordion.stories.tsx":async()=>t(()=>import("./Accordion.stories-DOPvYEOF.js"),__vite__mapDeps([67,1,2,3,68,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,55,29,30,69,28,70,33,34,35,11,14,15,36,37,38,39,57,56]),import.meta.url),"./src/components/ui/containers/Box.stories.tsx":async()=>t(()=>import("./Box.stories-CgtawHVf.js"),__vite__mapDeps([71,1,2,3,51,52,8,31,32,22,17,13,7,46,15]),import.meta.url),"./src/components/ui/containers/Timeline.stories.tsx":async()=>t(()=>import("./Timeline.stories-B0g3WnXT.js"),__vite__mapDeps([72,1,2,3,23,24,5,6,7,8,25,68,50,20,21,22,26,12,13,51,52,31,32,17,55,29,30,69,28,70,33,34,35,11,14,15,36,37,38,39,57,73,74,75,76,10,43,9,77,78,79,46,42,61,80,27,81]),import.meta.url),"./src/components/ui/feedback/Badge.stories.tsx":async()=>t(()=>import("./Badge.stories-6dAHUh_M.js"),__vite__mapDeps([82,53,1,2,3,28,29,30,31,32,22,8,17,13,7,37,24,5,6,38,15]),import.meta.url),"./src/components/ui/feedback/EmptyMessage.stories.tsx":async()=>t(()=>import("./EmptyMessage.stories-uY5eBQy_.js"),__vite__mapDeps([83,1,2,3,84,8,13,7,56,31,32,22,17,15,57,85,81,23,24,5,6,25,10,86,44]),import.meta.url),"./src/components/ui/feedback/PleaseWait.stories.tsx":async()=>t(()=>import("./PleaseWait.stories-B-xLH4LE.js"),__vite__mapDeps([87,1,2,3,88,51,52,8,31,32,22,17,13,7,89,33,34,35,28,29,30,11,6,12,5,14,15,36,37,24,38,39,16,90]),import.meta.url),"./src/components/ui/feedback/SomethingWentWrong.stories.tsx":async()=>t(()=>import("./SomethingWentWrong.stories-MVJbPO6R.js"),__vite__mapDeps([91,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,92,84,55,29,30,28,33,34,35,11,14,15,36,37,38,39,56,57,93,75,10,81,86,44,85]),import.meta.url),"./src/components/ui/feedback/Trait.stories.tsx":async()=>t(()=>import("./Trait.stories-mFmZ36SD.js"),__vite__mapDeps([94,1,2,3,53,28,29,30,31,32,22,8,17,13,7,37,24,5,6,38,15,33,34,35,11,12,14,36,39,46]),import.meta.url),"./src/components/ui/feedback/Triangle.stories.tsx":async()=>t(()=>import("./Triangle.stories-CHLJOVzJ.js"),__vite__mapDeps([95,96,1,2,3,34,35,8,36,31,32,22,17]),import.meta.url),"./src/components/ui/feedback/alert/Alert.stories.tsx":async()=>t(()=>import("./Alert.stories-Ce3R7kZr.js"),__vite__mapDeps([97,92,1,2,3,51,52,8,31,32,22,17,13,7,84,55,29,30,28,33,34,35,11,6,12,5,14,15,36,37,24,38,39,56,57,93,23,25,75,10,81,86,44]),import.meta.url),"./src/components/ui/feedback/tooltip/Tooltip.stories.tsx":async()=>t(()=>import("./Tooltip.stories-6PB1oCmF.js"),__vite__mapDeps([98,99,1,2,3,21,22,23,24,5,6,7,8,25,37,38,20,26,12,13,96,34,35,36,31,32,17,89,52,84,55,29,30,56,15,4,9,10,11,14,28,93,75,81,86]),import.meta.url),"./src/components/ui/forms/CharactersLeftDisplay.stories.tsx":async()=>t(()=>import("./CharactersLeftDisplay.stories-YA-KrHnU.js"),__vite__mapDeps([100,1,2,3,56,31,32,22,8,17,15,7]),import.meta.url),"./src/components/ui/forms/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-DZ7pmtuf.js"),__vite__mapDeps([101,1,2,3,102,66,13,8,7,28,29,30,31,32,22,17,52,33,34,35,11,6,12,5,14,15,36,37,24,38,39,21,23,25,79]),import.meta.url),"./src/components/ui/forms/Label.stories.tsx":async()=>t(()=>import("./Label.stories-D02SEO0v.js"),__vite__mapDeps([103,104,1,2,3,56,31,32,22,8,17,15,7,13]),import.meta.url),"./src/components/ui/forms/RadioGroup.stories.tsx":async()=>t(()=>import("./RadioGroup.stories-Bg5q3_5Z.js"),__vite__mapDeps([105,1,2,3,34,35,8,20,21,22,23,24,5,6,7,25,26,12,13,28,29,30,31,32,17,46,15,39,55]),import.meta.url),"./src/components/ui/forms/Switch.stories.tsx":async()=>t(()=>import("./Switch.stories-BS9spyxO.js"),__vite__mapDeps([106,1,2,3,20,21,22,23,24,5,6,7,8,25,26,12,13,102,66,28,29,30,31,32,17,52,39,77,15]),import.meta.url),"./src/components/ui/forms/TextInput.stories.tsx":async()=>t(()=>import("./TextInput.stories-BeRQD_qo.js"),__vite__mapDeps([107,1,2,3,49,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,27,53,28,29,30,37,38,15,36,104,56,55,33,34,35,11,14,39,78]),import.meta.url),"./src/components/ui/layout/AspectRatio.stories.tsx":async()=>t(()=>import("./AspectRatio.stories-CxrkzDXX.js"),__vite__mapDeps([108,1,2,3,36,31,32,22,8,17,13,7,46,15,16,90]),import.meta.url),"./src/components/ui/layout/Center.stories.tsx":async()=>t(()=>import("./Center.stories-D_o2M5AZ.js"),__vite__mapDeps([109,1,2,3,89,52,8,13,7,46,31,32,22,17,15,16,90]),import.meta.url),"./src/components/ui/layout/Column.stories.tsx":async()=>t(()=>import("./Column.stories-DS4YoCOS.js"),__vite__mapDeps([110,1,2,3,55,29,30,31,32,22,8,17,13,7,16,90]),import.meta.url),"./src/components/ui/layout/Row.stories.tsx":async()=>t(()=>import("./Row.stories-DaInerHC.js"),__vite__mapDeps([111,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,16,90]),import.meta.url),"./src/components/ui/layout/Size.stories.tsx":async()=>t(()=>import("./Size.stories-CvrrRT1P.js"),__vite__mapDeps([112,1,2,3,70,30,13,8,7,46,31,32,22,17,15,16,90]),import.meta.url),"./src/components/ui/media/Figure.stories.tsx":async()=>t(()=>import("./Figure.stories-C9T-Wx5E.js"),__vite__mapDeps([113,1,2,3,31,32,22,8,17,13,7,114]),import.meta.url),"./src/components/ui/media/FigureWithFacadesBackground.stories.tsx":async()=>t(()=>import("./FigureWithFacadesBackground.stories-DTHzVLBl.js"),__vite__mapDeps([115,1,2,3,116,117,37,24,5,6,7,8,38,31,32,22,17,13,114]),import.meta.url),"./src/components/ui/media/Icon.stories.tsx":async()=>t(()=>import("./Icon.stories-DhVEjSmF.js"),__vite__mapDeps([118,33,1,2,3,34,35,8,28,29,30,31,32,22,17,13,7,11,6,12,5,14,15,36,37,24,38,39]),import.meta.url),"./src/components/ui/media/Image.stories.tsx":async()=>t(()=>import("./Image.stories-CQMT5qhX.js"),__vite__mapDeps([119,1,2,3,25,6,7,8,14,12,13,31,32,22,17,38]),import.meta.url),"./src/components/ui/media/ImageFallback.stories.tsx":async()=>t(()=>import("./ImageFallback.stories-BVhTocuT.js"),__vite__mapDeps([120,1,2,3,31,32,22,8,17,13,7]),import.meta.url),"./src/components/ui/media/errors/ConstructionWorkDetailFigure.stories.tsx":async()=>t(()=>import("./ConstructionWorkDetailFigure.stories-DHQNrmJY.js"),__vite__mapDeps([121,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/ConstructionWorkFigure.stories.tsx":async()=>t(()=>import("./ConstructionWorkFigure.stories-CM2lGYsP.js"),__vite__mapDeps([122,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/ModulesFigure.stories.tsx":async()=>t(()=>import("./ModulesFigure.stories-Dv3DNx_H.js"),__vite__mapDeps([123,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/ReportProblemFigure.stories.tsx":async()=>t(()=>import("./ReportProblemFigure.stories-BPSoT1pJ.js"),__vite__mapDeps([124,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/UpdateFigure.stories.tsx":async()=>t(()=>import("./UpdateFigure.stories-q3aIP9ZA.js"),__vite__mapDeps([125,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/WasteGuideFigure.stories.tsx":async()=>t(()=>import("./WasteGuideFigure.stories-CWI-i9ew.js"),__vite__mapDeps([126,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/text/HtmlContent.stories.tsx":async()=>t(()=>import("./HtmlContent.stories-BaK6654Z.js"),__vite__mapDeps([127,1,2,3,73,74,8,75,32,76,6,7,10,43,12,13,9,5,11,14,15,21,22,23,24,25,26,77,78,79,38,46,31,17,42,61,35,55,29,30,28,80,27,37,81]),import.meta.url),"./src/components/ui/text/Link.stories.tsx":async()=>t(()=>import("./Link.stories-Bt73J5Hq.js"),__vite__mapDeps([128,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,27,28,29,30,70,33,34,35,11,14,15,36,37,38,39,46]),import.meta.url),"./src/components/ui/text/Paragraph.stories.tsx":async()=>t(()=>import("./Paragraph.stories-C__TajjU.js"),__vite__mapDeps([129,1,2,3,56,31,32,22,8,17,15,7]),import.meta.url),"./src/components/ui/text/Phrase.stories.tsx":async()=>t(()=>import("./Phrase.stories-CtPdUNVT.js"),__vite__mapDeps([130,1,2,3,46,31,32,22,8,17,15,7,13]),import.meta.url),"./src/components/ui/text/Tag.stories.tsx":async()=>t(()=>import("./Tag.stories-C0zI_bID.js"),__vite__mapDeps([131,1,2,3,56,31,32,22,8,17,15,7,13]),import.meta.url),"./src/components/ui/text/Title.stories.tsx":async()=>t(()=>import("./Title.stories-CrDEaVfK.js"),__vite__mapDeps([132,1,2,3,57,31,32,22,8,17,15,7]),import.meta.url),"./src/components/ui/text/list/List.stories.tsx":async()=>t(()=>import("./List.stories-Bqm09YO1.js"),__vite__mapDeps([133,1,2,3,84,8,13,7,55,29,30,31,32,22,17,28,46,15,80,27,37,24,5,6,38,44]),import.meta.url),"./src/modules/chat/components/ChatSystemEntry.stories.tsx":async()=>t(()=>import("./ChatSystemEntry.stories-DJgr7mdM.js"),__vite__mapDeps([134,135,1,2,3,28,29,30,31,32,22,8,17,13,7,33,34,35,11,6,12,5,14,15,36,37,24,38,39,46]),import.meta.url),"./src/modules/city-pass/components/card-display/CityPassCard.stories.tsx":async()=>t(()=>import("./CityPassCard.stories-Bf3yBmSj.js"),__vite__mapDeps([136,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,55,29,30,28,33,34,35,11,14,15,36,37,38,39,56,57,44]),import.meta.url),"./src/modules/notification-history/components/NotificationHistoryEmpty.stories.tsx":async()=>t(()=>import("./NotificationHistoryEmpty.stories-BTI9bg8L.js"),__vite__mapDeps([137,1,2,3,51,52,8,31,32,22,17,13,7,84,55,29,30,69,116,117,37,24,5,6,38,56,15,57]),import.meta.url),"./src/modules/notification-history/components/NotificationHistoryItem.stories.tsx":async()=>t(()=>import("./NotificationHistoryItem.stories-CHGXW53v.js"),__vite__mapDeps([138,1,2,3,21,22,23,24,5,6,7,8,25,139,31,32,17,74,75,76,10,43,12,13,9,11,14,15,26,77,78,79,38,46,42,61,39,117,37,55,29,30,93,81,86,50,20,51,52,70,49,27,53,28,36,33,34,35,57,69,135,19,89,99,96,84,56,4,66,88,140,44]),import.meta.url),"./src/modules/notification-history/components/NotificationHistoryListFooter.stories.tsx":async()=>t(()=>import("./NotificationHistoryListFooter.stories-NzvM2Qxs.js"),__vite__mapDeps([141,1,2,3,51,52,8,31,32,22,17,13,7,56,15]),import.meta.url)};async function D(r){return I[r]()}const{composeConfigs:V,PreviewWeb:v,ClientApi:g}=__STORYBOOK_MODULE_PREVIEW_API__,f=async(r=[])=>{const _=await Promise.all([r[0]??t(()=>import("./entry-preview-mM74NShd.js"),__vite__mapDeps([142,143,2,3,32]),import.meta.url),r[1]??t(()=>import("./entry-preview-docs-SlKtvMf0.js"),__vite__mapDeps([144,143,145,3,2]),import.meta.url),r[2]??t(()=>import("./preview-D1ht1gPi.js"),[],import.meta.url),r[3]??t(()=>import("./preview-aVwhiz9X.js"),[],import.meta.url),r[4]??t(()=>import("./preview-D77C14du.js"),__vite__mapDeps([146,147]),import.meta.url),r[5]??t(()=>import("./preview-DFmD0pui.js"),[],import.meta.url),r[6]??t(()=>import("./preview-CFgKly6U.js"),[],import.meta.url),r[7]??t(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([148,147]),import.meta.url),r[8]??t(()=>import("./preview-DGUiP6tS.js"),[],import.meta.url),r[9]??t(()=>import("./preview-D56AvWTj.js"),[],import.meta.url),r[10]??t(()=>import("./preview-CEwHxKlx.js"),__vite__mapDeps([149,1,2,3,37,24,5,6,7,8,38,31,32,22,17,139,21,23,25,74,75,76,10,43,12,13,9,11,14,15,26,77,78,79,46,42,61,39,117,55,29,30,93,81,86,50,20,51,52,70,49,27,53,28,36,33,34,35,57,69,135,19,89,99,96,84,56,4,66,88,140,150]),import.meta.url)]);return V(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new v(D,f);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; diff --git a/assets/index-BcJ7ghs7.js b/assets/index-Bf3JXswA.js similarity index 93% rename from assets/index-BcJ7ghs7.js rename to assets/index-Bf3JXswA.js index dc796918..c09339c1 100644 --- a/assets/index-BcJ7ghs7.js +++ b/assets/index-Bf3JXswA.js @@ -1 +1 @@ -import{m as b,a as d,G as S,K as B,P as L,g as C,L as H,b as u,v as g,w as y,c as I,E as h,$ as k,y as P,d as W,N as A,e as F,D as x,x as D,C as R,f,S as v,R as E,I as M,h as N,i as q,A as w,F as O,j as U,k as Z,l as j,W as z,n as G,T as J,t as K,o as Q,p as V,q as X,r as Y,s as _,u as $,z as aa,B as sa,H as oa,J as ta,M as ea,V as ra,O as pa,Q as ia,U as na,X as ma,Y as la,Z as ca,_ as Ta,a0 as ba,a1 as da,a2 as Sa,a3 as Ba,a4 as La,a5 as Ca,a6 as Ha,a7 as ua,a8 as ga,a9 as ya,aa as Ia,ab as ha,ac as ka,ad as Pa}from"./DocsRenderer-CFRXHY34-VG-WbEUv.js";import"./iframe-4y4VsLB1.js";import"../sb-preview/runtime.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-DFkxGuuM.js";import"./index-kifaGmES.js";import"./index-DrFu-skq.js";import"./react-18-ClY32pUF.js";import"./client-BGlHIwA3.js";export{b as A,d as ActionBar,S as AddonPanel,B as Badge,L as Bar,C as Blockquote,H as Button,u as ClipboardCode,g as Code,y as DL,I as Div,h as DocumentWrapper,k as EmptyTabContent,P as ErrorFormatter,W as FlexBar,A as Form,F as H1,x as H2,D as H3,R as H4,f as H5,v as H6,E as HR,M as IconButton,N as IconButtonSkeleton,q as Icons,w as Img,O as LI,U as Link,Z as ListItem,j as Loader,z as Modal,G as OL,J as P,K as Placeholder,Q as Pre,V as ResetWrapper,X as ScrollArea,Y as Separator,_ as Spaced,$ as Span,aa as StorybookIcon,sa as StorybookLogo,oa as Symbols,ta as SyntaxHighlighter,ea as TT,ra as TabBar,pa as TabButton,ia as TabWrapper,na as Table,ma as Tabs,la as TabsState,ca as TooltipLinkList,Ta as TooltipMessage,ba as TooltipNote,da as UL,Sa as WithTooltip,Ba as WithTooltipPure,La as Zoom,Ca as codeCommon,Ha as components,ua as createCopyToClipboardFunction,ga as getStoryHref,ya as icons,Ia as interleaveSeparators,ha as nameSpaceClassNames,ka as resetComponents,Pa as withReset}; +import{m as b,a as d,G as S,K as B,P as L,g as C,L as H,b as u,v as g,w as y,c as I,E as h,$ as k,y as P,d as W,N as A,e as F,D as x,x as D,C as R,f,S as v,R as E,I as M,h as N,i as q,A as w,F as O,j as U,k as Z,l as j,W as z,n as G,T as J,t as K,o as Q,p as V,q as X,r as Y,s as _,u as $,z as aa,B as sa,H as oa,J as ta,M as ea,V as ra,O as pa,Q as ia,U as na,X as ma,Y as la,Z as ca,_ as Ta,a0 as ba,a1 as da,a2 as Sa,a3 as Ba,a4 as La,a5 as Ca,a6 as Ha,a7 as ua,a8 as ga,a9 as ya,aa as Ia,ab as ha,ac as ka,ad as Pa}from"./DocsRenderer-CFRXHY34-Bq5B5d5_.js";import"./iframe-Cclg9cWs.js";import"../sb-preview/runtime.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-DFkxGuuM.js";import"./index-kifaGmES.js";import"./index-DrFu-skq.js";import"./react-18-ClY32pUF.js";import"./client-BGlHIwA3.js";export{b as A,d as ActionBar,S as AddonPanel,B as Badge,L as Bar,C as Blockquote,H as Button,u as ClipboardCode,g as Code,y as DL,I as Div,h as DocumentWrapper,k as EmptyTabContent,P as ErrorFormatter,W as FlexBar,A as Form,F as H1,x as H2,D as H3,R as H4,f as H5,v as H6,E as HR,M as IconButton,N as IconButtonSkeleton,q as Icons,w as Img,O as LI,U as Link,Z as ListItem,j as Loader,z as Modal,G as OL,J as P,K as Placeholder,Q as Pre,V as ResetWrapper,X as ScrollArea,Y as Separator,_ as Spaced,$ as Span,aa as StorybookIcon,sa as StorybookLogo,oa as Symbols,ta as SyntaxHighlighter,ea as TT,ra as TabBar,pa as TabButton,ia as TabWrapper,na as Table,ma as Tabs,la as TabsState,ca as TooltipLinkList,Ta as TooltipMessage,ba as TooltipNote,da as UL,Sa as WithTooltip,Ba as WithTooltipPure,La as Zoom,Ca as codeCommon,Ha as components,ua as createCopyToClipboardFunction,ga as getStoryHref,ya as icons,Ia as interleaveSeparators,ha as nameSpaceClassNames,ka as resetComponents,Pa as withReset}; diff --git a/assets/modules-DWXNg6GW.js b/assets/modules-hTTKIr_p.js similarity index 81% rename from assets/modules-DWXNg6GW.js rename to assets/modules-hTTKIr_p.js index dcc3156e..bc7018cd 100644 --- a/assets/modules-DWXNg6GW.js +++ b/assets/modules-hTTKIr_p.js @@ -1,13 +1,13 @@ -var _y=Object.defineProperty;var Uh=t=>{throw TypeError(t)};var Dy=(t,e,n)=>e in t?_y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var F=(t,e,n)=>Dy(t,typeof e!="symbol"?e+"":e,n),Wh=(t,e,n)=>e.has(t)||Uh("Cannot "+n);var ke=(t,e,n)=>(Wh(t,e,"read from private field"),n?n.call(t):e.get(t)),Hi=(t,e,n)=>e.has(t)?Uh("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),qr=(t,e,n,r)=>(Wh(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);import{g as Ur,a as Gs,c as K}from"./_commonjsHelpers-BosuxZz1.js";import{q as Ty,d as nn,V as Oy}from"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import{r as _,R as _t}from"./index-mfbfsM12.js";import{M as Ke,f as ky,g as Jr,h as My,C as Py,i as Fy,j as Ry,k as Ny,l as By,m as Gy,n as Ly,o as Vy,p as Hy,q as Uy,r as Wy,s as Xy,t as Yy,u as Hc,E as Zn,G as Wo}from"./useTrackException-Cm6KdDpO.js";import{R as Xo,f as zy,h as qy,c as He,b as le,C as tt,j as ge,P as Om,k as km,a as et,l as Mm,n as Ky,T as $y,m as Ea,o as Xh,S as js,p as Ta,q as Pm,i as bf,r as xa,v as Yh,e as jy,w as Qy,x as Fm,y as du,z as Rm,A as Nm,B as Sf,D as Zy,F as Jy,G as bi,H as zh,I as e1,u as On,J as t1}from"./useThemable-ua4U8LzO.js";import{P as ue,N as Bm}from"./index-DSI0shHu.js";import{j as k}from"./jsx-runtime-Bxcv0yjW.js";import{N as _f,R as Xd}from"./NativeEventEmitter-MQ3wzVGe.js";import{a as n1,u as Gm,K as ua,M as r1,I as Df,b as i1,c as a1,r as Uc,d as Yd,S as qh,U as s1}from"./useOpenUrl-BQFKyC8S.js";import{f as o1,h as l1,s as he,p as Tf}from"./index-kbHxBZ_W.js";import{T as c1}from"./index-CAyeAlm6.js";import{V as pe}from"./index-BP1Ij_Cs.js";import{a as ya,F as Lm,A as Ae,E as Kh}from"./Animated-CFNSbqHF.js";import{I as fs,P as u1}from"./index-2SHDvLR_.js";import{u as Nn}from"./useTheme-ChTiG3MC.js";import{u as Ls}from"./index-DbcoTUCW.js";import{u as Vm}from"./useDeviceContext-Cm8FgCCV.js";import{C as Dn}from"./Column-CFK5NdwL.js";import{u as Hm,a as d1}from"./useAccessibilityFocus-jeKlJ74P.js";import{P as Of}from"./Pressable-0Of7HZos.js";import{B as hr}from"./Box-CEQ9kk6v.js";import{S as A1}from"./Size-ByzkQpGs.js";import{P as kn}from"./Phrase-D4XuA9hP.js";import{i as Um,e as Wc,d as kf,f as $h}from"./development-LhlsWDYu.js";import{A as Jn}from"./index-Ce74jbsy.js";import{r as f1}from"./index-DFkxGuuM.js";import{D as Mf}from"./duration-A4BOymd5.js";import{I as Si}from"./IconButton-CciMcnyz.js";import{R as ln}from"./Row-D-wvv0CV.js";import{I as Mn}from"./Icon-X_MsqpOP.js";import{T as Wm}from"./Title-DmDbCZFx.js";import{S as Pf,P as _r,a as Xm}from"./index-BtN4QjYR.js";import{B as Ym}from"./Badge-gxv3290q.js";import{M as h1}from"./index-CIcog7m4.js";import{G as Xc}from"./Gutter-BrZ2VZou.js";import{C as Yc}from"./ChatSystemEntry-DUcFLRjf.js";import{B as zd}from"./Button-_M7GwRMx.js";import{P as zm}from"./PressableBase-DhkKVuqd.js";import{u as Ff}from"./useIsScreenReaderEnabled-A65pchNu.js";import{T as Rf}from"./index-DZxzYa9i.js";import{C as p1}from"./Center-2_hcwEx9.js";import{u as g1,m as jh,c as v1,b as m1,d as C1,T as E1,e as x1}from"./Tooltip-6N6xDP0A.js";import{P as y1}from"./types-BJ_48vsK.js";import{f as I1}from"./index-DEfxrPnc.js";import{U as w1}from"./TextAncestorContext-Dg3XKfar.js";import{S as b1}from"./index-k6NSpe5t.js";import{H as Qh}from"./HideFromAccessibility-B6TCA_vV.js";import{P as S1}from"./PleaseWait-B-bOq08A.js";import{l as _1}from"./layoutStyles-hLwHoe51.js";import{P as D1}from"./Paragraph-ypvGdTJ3.js";import"./index-8JwjhRSi.js";import{u as qm}from"./index-BXDkY5MO.js";import{A as T1}from"./index-CDv7s-w8.js";import{c as O1}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{c as k1}from"./index-BowPbij1.js";function M1(t){var e,n;let r=t;for(;((i=r)===null||i===void 0?void 0:i.routes[r.index??0].state)!=null;){var i;r=r.routes[r.index??0].state}return(e=r)===null||e===void 0?void 0:e.routes[((n=r)===null||n===void 0?void 0:n.index)??0]}function V6(t,e){var n;const r=e?Km(e):{},i=t.index!=null?t.routes.slice(0,t.index+1):t.routes;if(i.length===0)return;if(!(i.length===1&&i[0].key===void 0||i.length===2&&i[0].key===void 0&&i[0].name===(r==null?void 0:r.initialRouteName)&&i[1].key===void 0))return{type:"RESET",payload:t};const a=t.routes[t.index??t.routes.length-1];let s=a==null?void 0:a.state,o=r==null||(n=r.screens)===null||n===void 0?void 0:n[a==null?void 0:a.name],l={...a.params},c=a?{name:a.name,path:a.path,params:l}:void 0;for(;s;){var u,A,d;if(s.routes.length===0)return;const f=s.index!=null?s.routes.slice(0,s.index+1):s.routes,p=f[f.length-1];if(Object.assign(l,{initial:void 0,screen:void 0,params:void 0,state:void 0}),f.length===1&&f[0].key===void 0)l.initial=!0,l.screen=p.name;else if(f.length===2&&f[0].key===void 0&&f[0].name===((u=o)===null||u===void 0?void 0:u.initialRouteName)&&f[1].key===void 0)l.initial=!1,l.screen=p.name;else{l.state=s;break}p.state?(l.params={...p.params},l=l.params):(l.path=p.path,l.params=p.params),s=p.state,o=(A=o)===null||A===void 0||(d=A.screens)===null||d===void 0?void 0:d[p.name]}if(c)return{type:"NAVIGATE",payload:c}}const Km=t=>typeof t=="object"&&t!=null?{initialRouteName:t.initialRouteName,screens:t.screens!=null?P1(t.screens):void 0}:{},P1=t=>Object.entries(t).reduce((e,n)=>{let[r,i]=n;return e[r]=Km(i),e},{}),F1=Symbol("CHILD_STATE");function R1(t){const e=t[F1]??t.state,n=t.params;return e?e.routes[e.index??(typeof e.type=="string"&&e.type!=="stack"?0:e.routes.length-1)].name:typeof(n==null?void 0:n.screen)=="string"?n.screen:void 0}const Zh=t=>t.map(e=>`- ${e}`).join(` +var _y=Object.defineProperty;var Wh=t=>{throw TypeError(t)};var Dy=(t,e,n)=>e in t?_y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var F=(t,e,n)=>Dy(t,typeof e!="symbol"?e+"":e,n),Xh=(t,e,n)=>e.has(t)||Wh("Cannot "+n);var ke=(t,e,n)=>(Xh(t,e,"read from private field"),n?n.call(t):e.get(t)),Hi=(t,e,n)=>e.has(t)?Wh("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),qr=(t,e,n,r)=>(Xh(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);import{g as Ur,a as Gs,c as K}from"./_commonjsHelpers-BosuxZz1.js";import{q as Ty,d as nn,V as Oy}from"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import{r as _,R as _t}from"./index-mfbfsM12.js";import{M as $e,f as ky,g as Jr,h as My,C as Py,i as Fy,j as Ry,k as Ny,l as By,m as Gy,n as Ly,o as Vy,p as Hy,q as Uy,r as Wy,s as Xy,t as Yy,u as Uc,E as Zn,G as Xo}from"./useTrackException-Cm6KdDpO.js";import{R as Yo,f as zy,h as qy,c as He,b as le,C as Ke,j as ge,P as Xd,k as km,a as tt,l as Mm,n as Ky,T as $y,m as Ea,o as Yh,S as Qs,p as Ta,q as Pm,i as Sf,r as xa,v as zh,e as jy,w as Qy,x as Fm,y as du,z as Rm,A as Nm,B as _f,D as Zy,F as Jy,G as bi,H as qh,I as e1,u as On,J as t1}from"./useThemable-ua4U8LzO.js";import{P as ue,N as Bm}from"./index-DSI0shHu.js";import{j as k}from"./jsx-runtime-Bxcv0yjW.js";import{N as Df,R as Yd}from"./NativeEventEmitter-MQ3wzVGe.js";import{a as n1,u as Gm,K as ua,M as r1,I as Tf,b as i1,c as a1,r as Wc,d as zd,S as Kh,U as s1}from"./useOpenUrl-DnQVF1wQ.js";import{f as o1,h as l1,s as he,p as Of}from"./index-kbHxBZ_W.js";import{T as c1}from"./index-CAyeAlm6.js";import{V as pe}from"./index-BP1Ij_Cs.js";import{a as ya,F as Lm,A as Ae,E as $h}from"./Animated-CFNSbqHF.js";import{I as fs,P as u1}from"./index-2SHDvLR_.js";import{u as Nn}from"./useTheme-ChTiG3MC.js";import{u as Ls}from"./index-DbcoTUCW.js";import{u as Vm}from"./useDeviceContext-Cm8FgCCV.js";import{C as Dn}from"./Column-CFK5NdwL.js";import{u as Hm,a as d1}from"./useAccessibilityFocus-jeKlJ74P.js";import{P as kf}from"./Pressable-0Of7HZos.js";import{B as hr}from"./Box-CEQ9kk6v.js";import{S as A1}from"./Size-ByzkQpGs.js";import{P as kn}from"./Phrase-CZOdtc60.js";import{i as Um,e as Xc,d as Mf,f as jh}from"./development-LhlsWDYu.js";import{A as Jn}from"./index-Ce74jbsy.js";import{r as f1}from"./index-DFkxGuuM.js";import{D as Pf}from"./duration-A4BOymd5.js";import{I as Si}from"./IconButton-S0EpSLVW.js";import{R as ln}from"./Row-D-wvv0CV.js";import{I as Mn}from"./Icon-DbPHcDCx.js";import{T as Wm}from"./Title-DyZpgX2c.js";import{S as Ff,P as _r,a as Xm}from"./index-BtN4QjYR.js";import{B as Ym}from"./Badge-BAkGihjF.js";import{M as h1}from"./index-CIcog7m4.js";import{G as Yc}from"./Gutter-BrZ2VZou.js";import{C as zc}from"./ChatSystemEntry-CUUCUyCa.js";import{B as qd}from"./Button-BgT1eW_K.js";import{P as zm}from"./PressableBase-DhkKVuqd.js";import{u as Rf}from"./useIsScreenReaderEnabled-A65pchNu.js";import{T as Nf}from"./index-DZxzYa9i.js";import{C as p1}from"./Center-2_hcwEx9.js";import{u as g1,m as Qh,c as v1,b as m1,d as C1,T as E1,e as x1}from"./Tooltip-CFX6LweZ.js";import{P as y1}from"./types-BJ_48vsK.js";import{f as I1}from"./index-DEfxrPnc.js";import{U as w1}from"./TextAncestorContext-Dg3XKfar.js";import{S as b1}from"./index-k6NSpe5t.js";import{H as Zh}from"./HideFromAccessibility-B6TCA_vV.js";import{P as S1}from"./PleaseWait-CKlP_x4g.js";import{l as _1}from"./layoutStyles-hLwHoe51.js";import{P as D1}from"./Paragraph-4J4ihaTP.js";import"./index-8JwjhRSi.js";import{u as qm}from"./index-BXDkY5MO.js";import{A as T1}from"./index-CDv7s-w8.js";import{c as O1}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{c as k1}from"./index-BowPbij1.js";function M1(t){var e,n;let r=t;for(;((i=r)===null||i===void 0?void 0:i.routes[r.index??0].state)!=null;){var i;r=r.routes[r.index??0].state}return(e=r)===null||e===void 0?void 0:e.routes[((n=r)===null||n===void 0?void 0:n.index)??0]}function V6(t,e){var n;const r=e?Km(e):{},i=t.index!=null?t.routes.slice(0,t.index+1):t.routes;if(i.length===0)return;if(!(i.length===1&&i[0].key===void 0||i.length===2&&i[0].key===void 0&&i[0].name===(r==null?void 0:r.initialRouteName)&&i[1].key===void 0))return{type:"RESET",payload:t};const a=t.routes[t.index??t.routes.length-1];let s=a==null?void 0:a.state,o=r==null||(n=r.screens)===null||n===void 0?void 0:n[a==null?void 0:a.name],l={...a.params},c=a?{name:a.name,path:a.path,params:l}:void 0;for(;s;){var u,A,d;if(s.routes.length===0)return;const f=s.index!=null?s.routes.slice(0,s.index+1):s.routes,p=f[f.length-1];if(Object.assign(l,{initial:void 0,screen:void 0,params:void 0,state:void 0}),f.length===1&&f[0].key===void 0)l.initial=!0,l.screen=p.name;else if(f.length===2&&f[0].key===void 0&&f[0].name===((u=o)===null||u===void 0?void 0:u.initialRouteName)&&f[1].key===void 0)l.initial=!1,l.screen=p.name;else{l.state=s;break}p.state?(l.params={...p.params},l=l.params):(l.path=p.path,l.params=p.params),s=p.state,o=(A=o)===null||A===void 0||(d=A.screens)===null||d===void 0?void 0:d[p.name]}if(c)return{type:"NAVIGATE",payload:c}}const Km=t=>typeof t=="object"&&t!=null?{initialRouteName:t.initialRouteName,screens:t.screens!=null?P1(t.screens):void 0}:{},P1=t=>Object.entries(t).reduce((e,n)=>{let[r,i]=n;return e[r]=Km(i),e},{}),F1=Symbol("CHILD_STATE");function R1(t){const e=t[F1]??t.state,n=t.params;return e?e.routes[e.index??(typeof e.type=="string"&&e.type!=="stack"?0:e.routes.length-1)].name:typeof(n==null?void 0:n.screen)=="string"?n.screen:void 0}const Jh=t=>t.map(e=>`- ${e}`).join(` `);function $m(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=["initialRouteName","screens"];e||n.push("path","exact","stringify","parse");const r=Object.keys(t).filter(i=>!n.includes(i));if(r.length)throw new Error(`Found invalid properties in the configuration: -${Zh(r)} +${Jh(r)} Did you forget to specify them under a 'screens' property? You can only specify the following properties: -${Zh(n)} +${Jh(n)} -See https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.`);t.screens&&Object.entries(t.screens).forEach(i=>{let[a,s]=i;typeof s!="string"&&$m(s,!1)})}var N1=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};const jm=Ur(N1);function H6(t,e){e&&$m(e);let n=[];e!=null&&e.initialRouteName&&n.push({initialRouteName:e.initialRouteName,parentScreens:[]});const r=e==null?void 0:e.screens;let i=t.replace(/\/+/g,"/").replace(/^\//,"").replace(/\?.*$/,"");if(i=i.endsWith("/")?i:`${i}/`,r===void 0){const u=i.split("/").filter(Boolean).map(A=>({name:decodeURIComponent(A)}));return u.length?Au(t,u,n):void 0}const a=[].concat(...Object.keys(r).map(u=>Qm(u,r,[],n,[]))).sort((u,A)=>{if(u.pattern===A.pattern)return A.routeNames.join(">").localeCompare(u.routeNames.join(">"));if(u.pattern.startsWith(A.pattern))return-1;if(A.pattern.startsWith(u.pattern))return 1;const d=u.pattern.split("/"),f=A.pattern.split("/");for(let p=0;p<Math.max(d.length,f.length);p++){if(d[p]==null)return 1;if(f[p]==null)return-1;const h=d[p]==="*"||d[p].startsWith(":"),g=f[p]==="*"||f[p].startsWith(":");if(!(h&&g)){if(h)return 1;if(g)return-1}}return f.length-d.length});if(a.reduce((u,A)=>{if(u[A.pattern]){const d=u[A.pattern].routeNames,f=A.routeNames;if(!(d.length>f.length?f.every((h,g)=>d[g]===h):d.every((h,g)=>f[g]===h)))throw new Error(`Found conflicting screens with the same pattern. The pattern '${A.pattern}' resolves to both '${d.join(" > ")}' and '${f.join(" > ")}'. Patterns must be unique and cannot resolve to more than one screen.`)}return Object.assign(u,{[A.pattern]:A})},{}),i==="/"){const u=a.find(A=>A.path===""&&A.routeNames.every(d=>{var f;return!((f=a.find(p=>p.screen===d))!==null&&f!==void 0&&f.path)}));return u?Au(t,u.routeNames.map(A=>({name:A})),n,a):void 0}let s,o;const{routes:l,remainingPath:c}=B1(i,a.map(u=>({...u,regex:u.regex?new RegExp(u.regex.source+"$"):void 0})));if(l!==void 0&&(o=Au(t,l,n,a),i=c,s=o),!(o==null||s==null))return s}const Jh=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return[].concat(...e.map(r=>r.split("/"))).filter(Boolean).join("/")},B1=(t,e)=>{let n,r=t;for(const a of e){if(!a.regex)continue;const s=r.match(a.regex);if(s){var i;const l=((i=a.pattern)===null||i===void 0?void 0:i.split("/").reduce((c,u,A)=>{if(!u.startsWith(":"))return c;c.pos+=1;const d=decodeURIComponent(s[(c.pos+1)*2].replace(/\/$/,""));return Object.assign(c.matchedParams,{[u]:Object.assign(c.matchedParams[u]||{},{[A]:d})}),c},{pos:-1,matchedParams:{}})).matchedParams||{};n=a.routeNames.map(c=>{var u;const A=e.find(h=>h.screen===c&&a.pattern.startsWith(h.pattern)),d=A==null?void 0:A.path.split("/").filter(Boolean).join("/"),f=A==null||(u=A.pattern.replace(new RegExp(`${jm(d)}$`),""))===null||u===void 0?void 0:u.split("/").length,p=d==null?void 0:d.split("/").reduce((h,g,E)=>{var m;if(!g.startsWith(":"))return h;const v=f?f-1:0,C=(m=l[g])===null||m===void 0?void 0:m[E+v];if(C){var y;const x=g.replace(/^:/,"").replace(/\?$/,"");h[x]=A!=null&&(y=A.parse)!==null&&y!==void 0&&y[x]?A.parse[x](C):C}return h},{});return p&&Object.keys(p).length?{name:c,params:p}:{name:c}}),r=r.replace(s[1],"");break}}return{routes:n,remainingPath:r}},Qm=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;const s=[];n.push(t),i.push(t);const o=e[t];if(typeof o=="string"){const l=a?Jh(a,o):o;s.push(ep(t,n,l,o))}else if(typeof o=="object"){let l;if(typeof o.path=="string"){if(o.exact&&o.path===void 0)throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");l=o.exact!==!0?Jh(a||"",o.path||""):o.path||"",s.push(ep(t,n,l,o.path,o.parse))}o.screens&&(o.initialRouteName&&r.push({initialRouteName:o.initialRouteName,parentScreens:i}),Object.keys(o.screens).forEach(c=>{const u=Qm(c,o.screens,n,r,[...i],l??a);s.push(...u)}))}return n.pop(),s},ep=(t,e,n,r,i)=>{n=n.split("/").filter(Boolean).join("/");const a=n?new RegExp(`^(${n.split("/").map(s=>s.startsWith(":")?`(([^/]+\\/)${s.endsWith("?")?"?":""})`:`${s==="*"?".*":jm(s)}\\/`).join("")})`):void 0;return{screen:t,regex:a,pattern:n,path:r,routeNames:[...e],parse:i}},G1=(t,e)=>{for(const n of e)if(t===n.routeNames[n.routeNames.length-1])return n.parse},tp=(t,e,n)=>{for(const r of n)if(e.length===r.parentScreens.length){let i=!0;for(let a=0;a<e.length;a++)if(e[a].localeCompare(r.parentScreens[a])!==0){i=!1;break}if(i)return t!==r.initialRouteName?r.initialRouteName:void 0}},np=(t,e,n)=>n?t?{index:1,routes:[{name:t},e]}:{routes:[e]}:t?{index:1,routes:[{name:t},{...e,state:{routes:[]}}]}:{routes:[{...e,state:{routes:[]}}]},Au=(t,e,n,r)=>{let i,a=e.shift();const s=[];let o=tp(a.name,s,n);if(s.push(a.name),i=np(o,a,e.length===0),e.length>0){let c=i;for(;a=e.shift();){o=tp(a.name,s,n);const u=c.index||c.routes.length-1;c.routes[u].state=np(o,a,e.length===0),e.length>0&&(c=c.routes[u].state),s.push(a.name)}}a=M1(i),a.path=t;const l=L1(t,r?G1(a.name,r):void 0);return l&&(a.params={...a.params,...l}),i},L1=(t,e)=>{const n=t.split("?")[1],r=Ty.parse(n);return e&&Object.keys(r).forEach(i=>{Object.hasOwnProperty.call(e,i)&&typeof r[i]=="string"&&(r[i]=e[i](r[i]))}),Object.keys(r).length?r:void 0};function Zm(t){const e=g1();arguments[1]!==void 0&&console.error(`You passed a second argument to 'useFocusEffect', but it only accepts one argument. If you want to pass a dependency array, you can use 'React.useCallback': +See https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.`);t.screens&&Object.entries(t.screens).forEach(i=>{let[a,s]=i;typeof s!="string"&&$m(s,!1)})}var N1=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};const jm=Ur(N1);function H6(t,e){e&&$m(e);let n=[];e!=null&&e.initialRouteName&&n.push({initialRouteName:e.initialRouteName,parentScreens:[]});const r=e==null?void 0:e.screens;let i=t.replace(/\/+/g,"/").replace(/^\//,"").replace(/\?.*$/,"");if(i=i.endsWith("/")?i:`${i}/`,r===void 0){const u=i.split("/").filter(Boolean).map(A=>({name:decodeURIComponent(A)}));return u.length?Au(t,u,n):void 0}const a=[].concat(...Object.keys(r).map(u=>Qm(u,r,[],n,[]))).sort((u,A)=>{if(u.pattern===A.pattern)return A.routeNames.join(">").localeCompare(u.routeNames.join(">"));if(u.pattern.startsWith(A.pattern))return-1;if(A.pattern.startsWith(u.pattern))return 1;const d=u.pattern.split("/"),f=A.pattern.split("/");for(let p=0;p<Math.max(d.length,f.length);p++){if(d[p]==null)return 1;if(f[p]==null)return-1;const h=d[p]==="*"||d[p].startsWith(":"),g=f[p]==="*"||f[p].startsWith(":");if(!(h&&g)){if(h)return 1;if(g)return-1}}return f.length-d.length});if(a.reduce((u,A)=>{if(u[A.pattern]){const d=u[A.pattern].routeNames,f=A.routeNames;if(!(d.length>f.length?f.every((h,g)=>d[g]===h):d.every((h,g)=>f[g]===h)))throw new Error(`Found conflicting screens with the same pattern. The pattern '${A.pattern}' resolves to both '${d.join(" > ")}' and '${f.join(" > ")}'. Patterns must be unique and cannot resolve to more than one screen.`)}return Object.assign(u,{[A.pattern]:A})},{}),i==="/"){const u=a.find(A=>A.path===""&&A.routeNames.every(d=>{var f;return!((f=a.find(p=>p.screen===d))!==null&&f!==void 0&&f.path)}));return u?Au(t,u.routeNames.map(A=>({name:A})),n,a):void 0}let s,o;const{routes:l,remainingPath:c}=B1(i,a.map(u=>({...u,regex:u.regex?new RegExp(u.regex.source+"$"):void 0})));if(l!==void 0&&(o=Au(t,l,n,a),i=c,s=o),!(o==null||s==null))return s}const ep=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return[].concat(...e.map(r=>r.split("/"))).filter(Boolean).join("/")},B1=(t,e)=>{let n,r=t;for(const a of e){if(!a.regex)continue;const s=r.match(a.regex);if(s){var i;const l=((i=a.pattern)===null||i===void 0?void 0:i.split("/").reduce((c,u,A)=>{if(!u.startsWith(":"))return c;c.pos+=1;const d=decodeURIComponent(s[(c.pos+1)*2].replace(/\/$/,""));return Object.assign(c.matchedParams,{[u]:Object.assign(c.matchedParams[u]||{},{[A]:d})}),c},{pos:-1,matchedParams:{}})).matchedParams||{};n=a.routeNames.map(c=>{var u;const A=e.find(h=>h.screen===c&&a.pattern.startsWith(h.pattern)),d=A==null?void 0:A.path.split("/").filter(Boolean).join("/"),f=A==null||(u=A.pattern.replace(new RegExp(`${jm(d)}$`),""))===null||u===void 0?void 0:u.split("/").length,p=d==null?void 0:d.split("/").reduce((h,g,E)=>{var m;if(!g.startsWith(":"))return h;const v=f?f-1:0,C=(m=l[g])===null||m===void 0?void 0:m[E+v];if(C){var y;const x=g.replace(/^:/,"").replace(/\?$/,"");h[x]=A!=null&&(y=A.parse)!==null&&y!==void 0&&y[x]?A.parse[x](C):C}return h},{});return p&&Object.keys(p).length?{name:c,params:p}:{name:c}}),r=r.replace(s[1],"");break}}return{routes:n,remainingPath:r}},Qm=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;const s=[];n.push(t),i.push(t);const o=e[t];if(typeof o=="string"){const l=a?ep(a,o):o;s.push(tp(t,n,l,o))}else if(typeof o=="object"){let l;if(typeof o.path=="string"){if(o.exact&&o.path===void 0)throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");l=o.exact!==!0?ep(a||"",o.path||""):o.path||"",s.push(tp(t,n,l,o.path,o.parse))}o.screens&&(o.initialRouteName&&r.push({initialRouteName:o.initialRouteName,parentScreens:i}),Object.keys(o.screens).forEach(c=>{const u=Qm(c,o.screens,n,r,[...i],l??a);s.push(...u)}))}return n.pop(),s},tp=(t,e,n,r,i)=>{n=n.split("/").filter(Boolean).join("/");const a=n?new RegExp(`^(${n.split("/").map(s=>s.startsWith(":")?`(([^/]+\\/)${s.endsWith("?")?"?":""})`:`${s==="*"?".*":jm(s)}\\/`).join("")})`):void 0;return{screen:t,regex:a,pattern:n,path:r,routeNames:[...e],parse:i}},G1=(t,e)=>{for(const n of e)if(t===n.routeNames[n.routeNames.length-1])return n.parse},np=(t,e,n)=>{for(const r of n)if(e.length===r.parentScreens.length){let i=!0;for(let a=0;a<e.length;a++)if(e[a].localeCompare(r.parentScreens[a])!==0){i=!1;break}if(i)return t!==r.initialRouteName?r.initialRouteName:void 0}},rp=(t,e,n)=>n?t?{index:1,routes:[{name:t},e]}:{routes:[e]}:t?{index:1,routes:[{name:t},{...e,state:{routes:[]}}]}:{routes:[{...e,state:{routes:[]}}]},Au=(t,e,n,r)=>{let i,a=e.shift();const s=[];let o=np(a.name,s,n);if(s.push(a.name),i=rp(o,a,e.length===0),e.length>0){let c=i;for(;a=e.shift();){o=np(a.name,s,n);const u=c.index||c.routes.length-1;c.routes[u].state=rp(o,a,e.length===0),e.length>0&&(c=c.routes[u].state),s.push(a.name)}}a=M1(i),a.path=t;const l=L1(t,r?G1(a.name,r):void 0);return l&&(a.params={...a.params,...l}),i},L1=(t,e)=>{const n=t.split("?")[1],r=Ty.parse(n);return e&&Object.keys(r).forEach(i=>{Object.hasOwnProperty.call(e,i)&&typeof r[i]=="string"&&(r[i]=e[i](r[i]))}),Object.keys(r).length?r:void 0};function Zm(t){const e=g1();arguments[1]!==void 0&&console.error(`You passed a second argument to 'useFocusEffect', but it only accepts one argument. If you want to pass a dependency array, you can use 'React.useCallback': useFocusEffect( React.useCallback(() => { @@ -15,16 +15,16 @@ useFocusEffect( }, [depA, depB]) ); -See usage guide: https://reactnavigation.org/docs/use-focus-effect`),_.useEffect(()=>{let n=!1,r;const i=()=>{const o=t();if(o===void 0||typeof o=="function")return o};e.isFocused()&&(r=i(),n=!0);const a=e.addListener("focus",()=>{n||(r!==void 0&&r(),r=i(),n=!0)}),s=e.addListener("blur",()=>{r!==void 0&&r(),r=void 0,n=!1});return()=>{r!==void 0&&r(),a(),s()}},[t,e])}function rp(t,e){return t===e?t!==0||e!==0||1/t===1/e:t!==t&&e!==e}function Yo(t,e){if(rp(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(e,n[i])||!rp(t[n[i]],e[n[i]]))return!1;return!0}function Jm(t=Xo){const e=t===Xo?zy:qy(t);return function(){const{store:r}=e();return r}}const eC=Jm();function V1(t=Xo){const e=t===Xo?eC:Jm(t);return function(){return e().dispatch}}const tC=V1();var zo="NOT_FOUND";function H1(t){var e;return{get:function(r){return e&&t(e.key,r)?e.value:zo},put:function(r,i){e={key:r,value:i}},getEntries:function(){return e?[e]:[]},clear:function(){e=void 0}}}function U1(t,e){var n=[];function r(o){var l=n.findIndex(function(u){return e(o,u.key)});if(l>-1){var c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return zo}function i(o,l){r(o)===zo&&(n.unshift({key:o,value:l}),n.length>t&&n.pop())}function a(){return n}function s(){n=[]}return{get:r,put:i,getEntries:a,clear:s}}var W1=function(e,n){return e===n};function X1(t){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var i=n.length,a=0;a<i;a++)if(!t(n[a],r[a]))return!1;return!0}}function qd(t,e){var n=typeof e=="object"?e:{equalityCheck:e},r=n.equalityCheck,i=r===void 0?W1:r,a=n.maxSize,s=a===void 0?1:a,o=n.resultEqualityCheck,l=X1(i),c=s===1?H1(l):U1(s,l);function u(){var A=c.get(arguments);if(A===zo){if(A=t.apply(null,arguments),o){var d=c.getEntries(),f=d.find(function(p){return o(p.value,A)});f&&(A=f.value)}c.put(arguments,A)}return A}return u.clearCache=function(){return c.clear()},u}function Y1(t){var e=Array.isArray(t[0])?t[0]:t;if(!e.every(function(r){return typeof r=="function"})){var n=e.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return e}function z1(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=function(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];var c=0,u,A={memoizeOptions:void 0},d=o.pop();if(typeof d=="object"&&(A=d,d=o.pop()),typeof d!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof d+"]");var f=A,p=f.memoizeOptions,h=p===void 0?n:p,g=Array.isArray(h)?h:[h],E=Y1(o),m=t.apply(void 0,[function(){return c++,d.apply(null,arguments)}].concat(g)),v=t(function(){for(var y=[],x=E.length,w=0;w<x;w++)y.push(E[w].apply(null,arguments));return u=m.apply(null,y),u});return Object.assign(v,{resultFunc:d,memoizedResultFunc:m,dependencies:E,lastResult:function(){return u},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),v};return i}var xi=z1(qd);const q1=_.createContext({options:void 0});q1.displayName="LinkingContext";const K1=()=>({getToken:()=>Promise.resolve()}),$1={alwaysEnabled:!0,name:"AboutModule",slug:Ke.about};var Po=(t=>(t.codeConfirmed="codeConfirmed",t.codeEntered="codeEntered",t.codeSet="codeSet",t))(Po||{});const j1=5,fu={attemptsLeft:j1,[Po.codeEntered]:[],[Po.codeConfirmed]:[],[Po.codeSet]:[],error:"",isCodeSet:!1,isCodeConfirmed:!1,isCodeValid:!1,tempAccessCode:[]},nC=He({name:"accessCode",initialState:fu,reducers:{addDigit:(t,{payload:{digit:e,type:n}})=>{t[n].push(e)},removeDigit:(t,{payload:e})=>{t[e].pop()},reset:()=>fu,setCode:(t,{payload:{code:e,type:n}})=>{t[n]=e},resetAttemptsLeft:t=>{t.attemptsLeft=fu.attemptsLeft},setAttemptsLeft:(t,{payload:e})=>{t.attemptsLeft=e},setError:(t,{payload:e})=>{t.error=e},setIsCodeSet:(t,{payload:e})=>{t.isCodeSet=e},setIsCodeConfirmed:(t,{payload:e})=>{t.isCodeConfirmed=e},setIsCodeValid:(t,{payload:e})=>{t.isCodeValid=e}}});nC.actions;const Q1=["attemptsLeft"],Z1={hiddenInMenu:!0,name:"AccessCodeModule",reduxConfigs:[{key:le.accessCode,persistVersion:0,persistWhitelist:Q1,slice:nC}],slug:Ke["access-code"],alwaysEnabled:!0},J1=(t,e)=>{if(!(!t&&!e))return t||e},eI=(t,e)=>!t||!e?"":`${t.slice(0,4)} ${t.slice(4)} ${e.toUpperCase()}`,tI=(t,e)=>e||(t?{lat:t[1],lon:t[0]}:void 0),nI={0:t=>{const{adres:e,bag_huisletter:n,bag_toevoeging:r,bagNummeraanduidingId:i,woonplaats:a,centroid:s,coordinates:o,huisnummer:l,postcode:c,straatnaam:u}=t;return[e,n,r,i,a,l,c,u].some(d=>d===void 0)?{}:{address:{addition:J1(n,r),additionLetter:n||void 0,additionNumber:r||void 0,addressLine1:e,addressLine2:eI(c,a),bagId:i,city:a,coordinates:tI(s,o),number:l,postcode:c,street:u},locationType:"address"}}};var rC=(t=>(t.PreciseLocationAddressConstructionWork="PreciseLocationAddressConstructionWork",t.PreciseLocationAddressLookup="PreciseLocationAddressLookup",t.PreciseLocationAddressWasteGuide="PreciseLocationAddressWasteGuide",t))(rC||{});const rI={},iI=He({name:le.permissions,initialState:rI,reducers:{setPermission:(t,{payload:{permission:e,granted:n}})=>{t[e]=n}}}),{setPermission:ip}=iI.actions,aI=t=>e=>e[le.permissions][t]??!1,zc=Object.freeze({UNAVAILABLE:"unavailable",BLOCKED:"blocked",DENIED:"denied",GRANTED:"granted",LIMITED:"limited"}),Nf="Only supported by iOS 14 and above";async function sI(){throw new Error(Nf)}async function oI(t){throw new Error(Nf)}async function lI(){throw new Error(Nf)}async function ap(){return zc.UNAVAILABLE}async function sp(){return{status:zc.UNAVAILABLE,settings:{}}}async function op(t){return t.reduce((e,n)=>(e[n]=zc.UNAVAILABLE,e),{})}const iC={check:ap,checkLocationAccuracy:sI,checkMultiple:op,checkNotifications:sp,openPhotoPicker:lI,openSettings:Promise.reject,request:ap,requestLocationAccuracy:oI,requestMultiple:op,requestNotifications:sp},Ui=Object.freeze({ANDROID:{},IOS:{},WINDOWS:{}}),cI=iC.request,uI=iC.requestNotifications,ti={camera:ue.OS==="android"?Ui.ANDROID.CAMERA:Ui.IOS.CAMERA,location:ue.OS==="android"?Ui.ANDROID.ACCESS_FINE_LOCATION:Ui.IOS.LOCATION_WHEN_IN_USE,photos:ue.OS==="android"?Ui.ANDROID.READ_MEDIA_IMAGES:Ui.IOS.PHOTO_LIBRARY,notifications:"PERMISSION_NOTIFICATIONS"};ti.location,nn.hasLocationPermission,ti.camera,nn.hasCameraPermission,ti.photos,nn.hasPhotosPermission,ti.notifications,nn.hasNotificationPermission;const lp={highAccuracyPurposeKey:rC.PreciseLocationAddressLookup,locationType:void 0,startGettingLocation:void 0,getLocationIsError:void 0,isGettingLocation:void 0},aC=He({name:le.address,initialState:lp,reducers:{addAddress:(t,{payload:e})=>({...t,address:e}),addLocation:(t,{payload:e})=>({...t,location:e,getLocationIsError:!1}),removeAddress:({address:t,...e})=>e,setStartGettingLocation:(t,{payload:e})=>({...t,highAccuracyPurposeKey:e??lp.highAccuracyPurposeKey,startGettingLocation:!0,getLocationIsError:!1}),setGetLocationIsError:(t,{payload:e})=>({...t,getLocationIsError:e,...e&&{startGettingLocation:!1}}),setIsGettingLocation:(t,{payload:e})=>({...t,isGettingLocation:e,...e&&{startGettingLocation:!1,getLocationIsError:!1}}),setLocationType:(t,{payload:{locationType:e}})=>({...t,locationType:e})}});aC.actions;const dI=["address","locationType"],AI={name:"AddressModule",slug:Ke.address,reduxConfigs:[{key:le.address,migrations:nI,persistVersion:0,slice:aC,persistWhitelist:dI}]},fI=`The package 'react-native-salesforce-messaging-in-app' doesn't seem to be linked. Make sure: +See usage guide: https://reactnavigation.org/docs/use-focus-effect`),_.useEffect(()=>{let n=!1,r;const i=()=>{const o=t();if(o===void 0||typeof o=="function")return o};e.isFocused()&&(r=i(),n=!0);const a=e.addListener("focus",()=>{n||(r!==void 0&&r(),r=i(),n=!0)}),s=e.addListener("blur",()=>{r!==void 0&&r(),r=void 0,n=!1});return()=>{r!==void 0&&r(),a(),s()}},[t,e])}function ip(t,e){return t===e?t!==0||e!==0||1/t===1/e:t!==t&&e!==e}function zo(t,e){if(ip(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(e,n[i])||!ip(t[n[i]],e[n[i]]))return!1;return!0}function Jm(t=Yo){const e=t===Yo?zy:qy(t);return function(){const{store:r}=e();return r}}const eC=Jm();function V1(t=Yo){const e=t===Yo?eC:Jm(t);return function(){return e().dispatch}}const tC=V1();var qo="NOT_FOUND";function H1(t){var e;return{get:function(r){return e&&t(e.key,r)?e.value:qo},put:function(r,i){e={key:r,value:i}},getEntries:function(){return e?[e]:[]},clear:function(){e=void 0}}}function U1(t,e){var n=[];function r(o){var l=n.findIndex(function(u){return e(o,u.key)});if(l>-1){var c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return qo}function i(o,l){r(o)===qo&&(n.unshift({key:o,value:l}),n.length>t&&n.pop())}function a(){return n}function s(){n=[]}return{get:r,put:i,getEntries:a,clear:s}}var W1=function(e,n){return e===n};function X1(t){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var i=n.length,a=0;a<i;a++)if(!t(n[a],r[a]))return!1;return!0}}function Kd(t,e){var n=typeof e=="object"?e:{equalityCheck:e},r=n.equalityCheck,i=r===void 0?W1:r,a=n.maxSize,s=a===void 0?1:a,o=n.resultEqualityCheck,l=X1(i),c=s===1?H1(l):U1(s,l);function u(){var A=c.get(arguments);if(A===qo){if(A=t.apply(null,arguments),o){var d=c.getEntries(),f=d.find(function(p){return o(p.value,A)});f&&(A=f.value)}c.put(arguments,A)}return A}return u.clearCache=function(){return c.clear()},u}function Y1(t){var e=Array.isArray(t[0])?t[0]:t;if(!e.every(function(r){return typeof r=="function"})){var n=e.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return e}function z1(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=function(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];var c=0,u,A={memoizeOptions:void 0},d=o.pop();if(typeof d=="object"&&(A=d,d=o.pop()),typeof d!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof d+"]");var f=A,p=f.memoizeOptions,h=p===void 0?n:p,g=Array.isArray(h)?h:[h],E=Y1(o),m=t.apply(void 0,[function(){return c++,d.apply(null,arguments)}].concat(g)),v=t(function(){for(var y=[],x=E.length,w=0;w<x;w++)y.push(E[w].apply(null,arguments));return u=m.apply(null,y),u});return Object.assign(v,{resultFunc:d,memoizedResultFunc:m,dependencies:E,lastResult:function(){return u},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),v};return i}var xi=z1(Kd);const q1=_.createContext({options:void 0});q1.displayName="LinkingContext";const K1=()=>({getToken:()=>Promise.resolve()}),$1={alwaysEnabled:!0,name:"AboutModule",slug:$e.about};var Fo=(t=>(t.codeConfirmed="codeConfirmed",t.codeEntered="codeEntered",t.codeSet="codeSet",t))(Fo||{});const j1=5,fu={attemptsLeft:j1,[Fo.codeEntered]:[],[Fo.codeConfirmed]:[],[Fo.codeSet]:[],error:"",isCodeSet:!1,isCodeConfirmed:!1,isCodeValid:!1,tempAccessCode:[]},nC=He({name:"accessCode",initialState:fu,reducers:{addDigit:(t,{payload:{digit:e,type:n}})=>{t[n].push(e)},removeDigit:(t,{payload:e})=>{t[e].pop()},reset:()=>fu,setCode:(t,{payload:{code:e,type:n}})=>{t[n]=e},resetAttemptsLeft:t=>{t.attemptsLeft=fu.attemptsLeft},setAttemptsLeft:(t,{payload:e})=>{t.attemptsLeft=e},setError:(t,{payload:e})=>{t.error=e},setIsCodeSet:(t,{payload:e})=>{t.isCodeSet=e},setIsCodeConfirmed:(t,{payload:e})=>{t.isCodeConfirmed=e},setIsCodeValid:(t,{payload:e})=>{t.isCodeValid=e}}});nC.actions;const Q1=["attemptsLeft"],Z1={hiddenInMenu:!0,name:"AccessCodeModule",reduxConfigs:[{key:le.accessCode,persistVersion:0,persistWhitelist:Q1,slice:nC}],slug:$e["access-code"],alwaysEnabled:!0},J1=(t,e)=>{if(!(!t&&!e))return t||e},eI=(t,e)=>!t||!e?"":`${t.slice(0,4)} ${t.slice(4)} ${e.toUpperCase()}`,tI=(t,e)=>e||(t?{lat:t[1],lon:t[0]}:void 0),nI={0:t=>{const{adres:e,bag_huisletter:n,bag_toevoeging:r,bagNummeraanduidingId:i,woonplaats:a,centroid:s,coordinates:o,huisnummer:l,postcode:c,straatnaam:u}=t;return[e,n,r,i,a,l,c,u].some(d=>d===void 0)?{}:{address:{addition:J1(n,r),additionLetter:n||void 0,additionNumber:r||void 0,addressLine1:e,addressLine2:eI(c,a),bagId:i,city:a,coordinates:tI(s,o),number:l,postcode:c,street:u},locationType:"address"}}};var rC=(t=>(t.PreciseLocationAddressConstructionWork="PreciseLocationAddressConstructionWork",t.PreciseLocationAddressLookup="PreciseLocationAddressLookup",t.PreciseLocationAddressWasteGuide="PreciseLocationAddressWasteGuide",t))(rC||{});const rI={},iI=He({name:le.permissions,initialState:rI,reducers:{setPermission:(t,{payload:{permission:e,granted:n}})=>{t[e]=n}}}),{setPermission:ap}=iI.actions,aI=t=>e=>e[le.permissions][t]??!1,qc=Object.freeze({UNAVAILABLE:"unavailable",BLOCKED:"blocked",DENIED:"denied",GRANTED:"granted",LIMITED:"limited"}),Bf="Only supported by iOS 14 and above";async function sI(){throw new Error(Bf)}async function oI(t){throw new Error(Bf)}async function lI(){throw new Error(Bf)}async function sp(){return qc.UNAVAILABLE}async function op(){return{status:qc.UNAVAILABLE,settings:{}}}async function lp(t){return t.reduce((e,n)=>(e[n]=qc.UNAVAILABLE,e),{})}const iC={check:sp,checkLocationAccuracy:sI,checkMultiple:lp,checkNotifications:op,openPhotoPicker:lI,openSettings:Promise.reject,request:sp,requestLocationAccuracy:oI,requestMultiple:lp,requestNotifications:op},Ui=Object.freeze({ANDROID:{},IOS:{},WINDOWS:{}}),cI=iC.request,uI=iC.requestNotifications,ti={camera:ue.OS==="android"?Ui.ANDROID.CAMERA:Ui.IOS.CAMERA,location:ue.OS==="android"?Ui.ANDROID.ACCESS_FINE_LOCATION:Ui.IOS.LOCATION_WHEN_IN_USE,photos:ue.OS==="android"?Ui.ANDROID.READ_MEDIA_IMAGES:Ui.IOS.PHOTO_LIBRARY,notifications:"PERMISSION_NOTIFICATIONS"};ti.location,nn.hasLocationPermission,ti.camera,nn.hasCameraPermission,ti.photos,nn.hasPhotosPermission,ti.notifications,nn.hasNotificationPermission;const cp={highAccuracyPurposeKey:rC.PreciseLocationAddressLookup,locationType:void 0,startGettingLocation:void 0,getLocationIsError:void 0,isGettingLocation:void 0},aC=He({name:le.address,initialState:cp,reducers:{addAddress:(t,{payload:e})=>({...t,address:e}),addLocation:(t,{payload:e})=>({...t,location:e,getLocationIsError:!1}),removeAddress:({address:t,...e})=>e,setStartGettingLocation:(t,{payload:e})=>({...t,highAccuracyPurposeKey:e??cp.highAccuracyPurposeKey,startGettingLocation:!0,getLocationIsError:!1}),setGetLocationIsError:(t,{payload:e})=>({...t,getLocationIsError:e,...e&&{startGettingLocation:!1}}),setIsGettingLocation:(t,{payload:e})=>({...t,isGettingLocation:e,...e&&{startGettingLocation:!1,getLocationIsError:!1}}),setLocationType:(t,{payload:{locationType:e}})=>({...t,locationType:e})}});aC.actions;const dI=["address","locationType"],AI={name:"AddressModule",slug:$e.address,reduxConfigs:[{key:le.address,migrations:nI,persistVersion:0,slice:aC,persistWhitelist:dI}]},fI=`The package 'react-native-salesforce-messaging-in-app' doesn't seem to be linked. Make sure: `+ue.select({ios:`- You have run 'pod install' `,default:""})+`- You rebuilt the app after installing the package - You are not using Expo Go -`,hI=global.__turboModuleProxy!=null,sC=hI?require("./NativeSalesforceMessagingInApp").default:Bm.SalesforceMessagingInApp,un=sC??new Proxy({},{get:()=>{throw new Error(fI)}}),Oa=new _f(sC),pI=({developerName:t,organizationId:e,url:n})=>un.createCoreClient(n,e,t),gI=t=>un.createConversationClient(t??null),vI=t=>un.sendMessage(t),mI=t=>un.sendReply(t),CI=()=>un.sendTypingEvent(),EI=(t,e)=>un.sendPDF(t,e),cp=(t,e,n)=>un.sendImage(t,e,n),xI=()=>un.retrieveRemoteConfiguration(),yI=()=>un.retrieveTranscript(),II=()=>un.generateUUID(),wI=(t,e)=>un.submitRemoteConfiguration(t,e),bI=({developerName:t,organizationId:e,url:n,conversationId:r=II()})=>{const[i,a]=_.useState(!1),[s,o]=_.useState(r),l=_.useRef(null),c=_.useRef(null),u=_.useRef(null),A=_.useRef(null),d=_.useRef(null),[f,p]=_.useState([]),[h,g]=_.useState(!1),[E,m]=_.useState(),[v,C]=_.useState(null),[y,x]=_.useState([]),[w,S]=_.useState(!1),D=_.useMemo(()=>y.some(I=>I.role===tt.employee),[y]);return _.useEffect(()=>(t&&e&&n&&(x([]),p([]),m(void 0),pI({developerName:t,organizationId:e,url:n}).then(()=>{var I,b,O;xI().then(m),l.current&&(l.current.remove(),l.current=null),c.current&&(c.current.remove(),c.current=null),u.current&&((I=u.current)==null||I.remove(),u.current=null),A.current&&((b=A.current)==null||b.remove(),A.current=null),d.current&&((O=d.current)==null||O.remove(),d.current=null),l.current=Oa.addListener("onNewMessage",T=>{p(M=>[...M,T]),T.format===ge.participantChanged?T.operations.forEach(({participant:M,type:P})=>{P===Om.add?(x(R=>[...R,M]),M.role===tt.employee&&S(!1)):x(R=>R.filter(W=>!(W.displayName===M.displayName&&W.local===M.local&&W.role===M.role)))}):T.format===ge.routingResult&&T.routingType===km.transfer&&S(!0)}),c.current=Oa.addListener("onUpdatedMessage",T=>{p(M=>M.map(P=>P.entryId===T.entryId?T:P))}),u.current=Oa.addListener("onNetworkStatusChanged",T=>{C(T)}),A.current=Oa.addListener("onTypingStarted",T=>{g(T)}),d.current=Oa.addListener("onTypingStopped",T=>{g(!1)}),gI(r??s).then(T=>{o(T),a(!0)})})),()=>{var I,b,O,T,M;(I=l.current)==null||I.remove(),l.current=null,(b=c.current)==null||b.remove(),c.current=null,(O=u.current)==null||O.remove(),u.current=null,(T=A.current)==null||T.remove(),A.current=null,(M=d.current)==null||M.remove(),d.current=null}),[r,t,e,n]),{conversationId:s,isTyping:h,messages:f,networkStatus:v,ready:i,participants:y,employeeInChat:D,remoteConfiguration:E,isWaitingForAgent:w}};function SI(t){return t}var _I={NODE_ENV:'"production"'};function Kt(){return!!_I.JEST_WORKER_ID}function ys(){return(!global.nativeCallSyncHook||!!global.__REMOTEDEV__)&&!global.RN$Bridgeless}function sn(){return ue.OS==="web"}function DI(){return ue.OS==="android"}function TI(){return ue.OS==="windows"}function nt(){return Kt()||ys()||sn()||TI()}function Ct(){return!!global._IS_FABRIC}function Ia(){return typeof window<"u"}function qo(t){"worklet";return typeof t=="function"&&!!t.__workletHash}let Qe=function(t){return t[t.ACCELEROMETER=1]="ACCELEROMETER",t[t.GYROSCOPE=2]="GYROSCOPE",t[t.GRAVITY=3]="GRAVITY",t[t.MAGNETIC_FIELD=4]="MAGNETIC_FIELD",t[t.ROTATION=5]="ROTATION",t}({}),oC=function(t){return t[t.XArbitraryZVertical=0]="XArbitraryZVertical",t[t.XArbitraryCorrectedZVertical=1]="XArbitraryCorrectedZVertical",t[t.XMagneticNorthZVertical=2]="XMagneticNorthZVertical",t[t.XTrueNorthZVertical=3]="XTrueNorthZVertical",t[t.Auto=4]="Auto",t}({}),yi=function(t){return t[t.ROTATION_0=0]="ROTATION_0",t[t.ROTATION_90=90]="ROTATION_90",t[t.ROTATION_180=180]="ROTATION_180",t[t.ROTATION_270=270]="ROTATION_270",t}({}),lC=function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.OPENING=1]="OPENING",t[t.OPEN=2]="OPEN",t[t.CLOSING=3]="CLOSING",t[t.CLOSED=4]="CLOSED",t}({}),on=function(t){return t.System="system",t.Always="always",t.Never="never",t}({});function cC(t){return setTimeout(()=>t(performance.now()),0)}const Qs=n1,OI=()=>{};var Dm;const kI=((Dm=Qs==null?void 0:Qs.addLog)==null?void 0:Dm.bind(Qs))??OI,MI="https://docs.swmansion.com/react-native-reanimated/docs/debugging/logger-configuration",PI=`If you don't want to see this message, you can disable the \`strict\` mode. Refer to: -${MI} for more details.`;let qc=function(t){return t[t.warn=1]="warn",t[t.error=2]="error",t}({});function uC(t){"worklet";switch(t.level){case"warn":console.warn(t.message.content);break;case"error":case"fatal":case"syntax":console.error(t.message.content);break}}const dC={logFunction:uC,level:qc.warn,strict:!0};function FI(t){"worklet";return`[Reanimated] ${t}`}function RI(t,e){"worklet";const n=FI(e);return{level:t,message:{content:n,substitutions:[]},category:n,componentStack:[],componentStackType:null,stack:new Error().stack}}function NI(t){kI(t),uC(t)}function Vs(t){"worklet";global.__reanimatedLoggerConfig=t}function BI(t){"worklet";Vs({...__reanimatedLoggerConfig,logFunction:t})}function up(t){"worklet";Vs({...__reanimatedLoggerConfig,level:(t==null?void 0:t.level)??qc.warn,strict:(t==null?void 0:t.strict)??!1})}function dp(t,e,n){"worklet";const r=__reanimatedLoggerConfig;n.strict&&!r.strict||qc[t]<r.level||(n.strict&&(e+=` +`,hI=global.__turboModuleProxy!=null,sC=hI?require("./NativeSalesforceMessagingInApp").default:Bm.SalesforceMessagingInApp,un=sC??new Proxy({},{get:()=>{throw new Error(fI)}}),Oa=new Df(sC),pI=({developerName:t,organizationId:e,url:n})=>un.createCoreClient(n,e,t),gI=t=>un.createConversationClient(t??null),vI=t=>un.sendMessage(t),mI=t=>un.sendReply(t),CI=()=>un.sendTypingEvent(),EI=(t,e)=>un.sendPDF(t,e),up=(t,e,n)=>un.sendImage(t,e,n),xI=()=>un.retrieveRemoteConfiguration(),yI=()=>un.retrieveTranscript(),II=()=>un.generateUUID(),wI=(t,e)=>un.submitRemoteConfiguration(t,e),bI=({developerName:t,organizationId:e,url:n,conversationId:r=II()})=>{const[i,a]=_.useState(!1),[s,o]=_.useState(r),l=_.useRef(null),c=_.useRef(null),u=_.useRef(null),A=_.useRef(null),d=_.useRef(null),[f,p]=_.useState([]),[h,g]=_.useState(!1),[E,m]=_.useState(),[v,C]=_.useState(null),[y,x]=_.useState([]),[w,S]=_.useState(!1),D=_.useMemo(()=>y.some(I=>I.role===Ke.employee),[y]);return _.useEffect(()=>(t&&e&&n&&(x([]),p([]),m(void 0),pI({developerName:t,organizationId:e,url:n}).then(()=>{var I,b,O;xI().then(m),l.current&&(l.current.remove(),l.current=null),c.current&&(c.current.remove(),c.current=null),u.current&&((I=u.current)==null||I.remove(),u.current=null),A.current&&((b=A.current)==null||b.remove(),A.current=null),d.current&&((O=d.current)==null||O.remove(),d.current=null),l.current=Oa.addListener("onNewMessage",T=>{p(M=>[...M,T]),T.format===ge.participantChanged?T.operations.forEach(({participant:M,type:P})=>{P===Xd.add?(x(R=>[...R,M]),M.role===Ke.employee&&S(!1)):x(R=>R.filter(W=>!(W.displayName===M.displayName&&W.local===M.local&&W.role===M.role)))}):T.format===ge.routingResult&&T.routingType===km.transfer&&S(!0)}),c.current=Oa.addListener("onUpdatedMessage",T=>{p(M=>M.map(P=>P.entryId===T.entryId?T:P))}),u.current=Oa.addListener("onNetworkStatusChanged",T=>{C(T)}),A.current=Oa.addListener("onTypingStarted",T=>{g(T)}),d.current=Oa.addListener("onTypingStopped",T=>{g(!1)}),gI(r??s).then(T=>{o(T),a(!0)})})),()=>{var I,b,O,T,M;(I=l.current)==null||I.remove(),l.current=null,(b=c.current)==null||b.remove(),c.current=null,(O=u.current)==null||O.remove(),u.current=null,(T=A.current)==null||T.remove(),A.current=null,(M=d.current)==null||M.remove(),d.current=null}),[r,t,e,n]),{conversationId:s,isTyping:h,messages:f,networkStatus:v,ready:i,participants:y,employeeInChat:D,remoteConfiguration:E,isWaitingForAgent:w}};function SI(t){return t}var _I={NODE_ENV:'"production"'};function Kt(){return!!_I.JEST_WORKER_ID}function ys(){return(!global.nativeCallSyncHook||!!global.__REMOTEDEV__)&&!global.RN$Bridgeless}function sn(){return ue.OS==="web"}function DI(){return ue.OS==="android"}function TI(){return ue.OS==="windows"}function nt(){return Kt()||ys()||sn()||TI()}function Ct(){return!!global._IS_FABRIC}function Ia(){return typeof window<"u"}function Ko(t){"worklet";return typeof t=="function"&&!!t.__workletHash}let Ze=function(t){return t[t.ACCELEROMETER=1]="ACCELEROMETER",t[t.GYROSCOPE=2]="GYROSCOPE",t[t.GRAVITY=3]="GRAVITY",t[t.MAGNETIC_FIELD=4]="MAGNETIC_FIELD",t[t.ROTATION=5]="ROTATION",t}({}),oC=function(t){return t[t.XArbitraryZVertical=0]="XArbitraryZVertical",t[t.XArbitraryCorrectedZVertical=1]="XArbitraryCorrectedZVertical",t[t.XMagneticNorthZVertical=2]="XMagneticNorthZVertical",t[t.XTrueNorthZVertical=3]="XTrueNorthZVertical",t[t.Auto=4]="Auto",t}({}),yi=function(t){return t[t.ROTATION_0=0]="ROTATION_0",t[t.ROTATION_90=90]="ROTATION_90",t[t.ROTATION_180=180]="ROTATION_180",t[t.ROTATION_270=270]="ROTATION_270",t}({}),lC=function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.OPENING=1]="OPENING",t[t.OPEN=2]="OPEN",t[t.CLOSING=3]="CLOSING",t[t.CLOSED=4]="CLOSED",t}({}),on=function(t){return t.System="system",t.Always="always",t.Never="never",t}({});function cC(t){return setTimeout(()=>t(performance.now()),0)}const Zs=n1,OI=()=>{};var Tm;const kI=((Tm=Zs==null?void 0:Zs.addLog)==null?void 0:Tm.bind(Zs))??OI,MI="https://docs.swmansion.com/react-native-reanimated/docs/debugging/logger-configuration",PI=`If you don't want to see this message, you can disable the \`strict\` mode. Refer to: +${MI} for more details.`;let Kc=function(t){return t[t.warn=1]="warn",t[t.error=2]="error",t}({});function uC(t){"worklet";switch(t.level){case"warn":console.warn(t.message.content);break;case"error":case"fatal":case"syntax":console.error(t.message.content);break}}const dC={logFunction:uC,level:Kc.warn,strict:!0};function FI(t){"worklet";return`[Reanimated] ${t}`}function RI(t,e){"worklet";const n=FI(e);return{level:t,message:{content:n,substitutions:[]},category:n,componentStack:[],componentStackType:null,stack:new Error().stack}}function NI(t){kI(t),uC(t)}function Vs(t){"worklet";global.__reanimatedLoggerConfig=t}function BI(t){"worklet";Vs({...__reanimatedLoggerConfig,logFunction:t})}function dp(t){"worklet";Vs({...__reanimatedLoggerConfig,level:(t==null?void 0:t.level)??Kc.warn,strict:(t==null?void 0:t.strict)??!1})}function Ap(t,e,n){"worklet";const r=__reanimatedLoggerConfig;n.strict&&!r.strict||Kc[t]<r.level||(n.strict&&(e+=` -${PI}`),r.logFunction(RI(t,e)))}const Oe={warn(t,e={}){"worklet";dp("warn",t,e)},error(t,e={}){"worklet";dp("error",t,e)}},oe=function(e){"worklet";const n="[Reanimated]",r=new Error(e?`${n} ${e}`:n);return r.name="ReanimatedError",r};function AC(){"worklet";if(!_WORKLET)throw new Error("[Reanimated] registerReanimatedError() must be called on Worklet runtime");global.ReanimatedError=oe}const GI=new Map;function LI(t){var n,r;const e=(r=(n=t.stack)==null?void 0:n.split(` -`))==null?void 0:r[0];if(e){const i=/@([^@]+):(\d+):(\d+)/.exec(e);if(i){const[,a,s,o]=i;return[a,Number(s),Number(o)]}}return["unknown",0,0]}function VI(t){const e=t.match(/worklet_(\d+):(\d+):(\d+)/g);let n=t;return e==null||e.forEach(r=>{const[,i,a,s]=r.split(/:|_/).map(Number),o=GI.get(i);if(!o)return;const[l,c,u]=o,[A,d,f]=LI(l),p=a+d+c,h=s+f+u;n=n.replace(r,`${A}:${p}:${h}`)}),n}function HI({message:t,stack:e}){const n=new Error;n.message=t,n.stack=e?VI(e):void 0,n.name="ReanimatedError",n.jsEngine="reanimated",global.ErrorUtils.reportFatalError(n)}const UI=Kt()||!globalThis.requestAnimationFrame?cC:globalThis.requestAnimationFrame;class WI{constructor(){F(this,"nextSensorId",0);F(this,"sensors",new Map);F(this,"platform");F(this,"getSensorCallback",(e,n,r)=>{switch(n){case Qe.ACCELEROMETER:case Qe.GRAVITY:return()=>{let{x:i,y:a,z:s}=e;this.platform===Ir.WEB_ANDROID&&([i,a,s]=[-i,-a,-s]),r({x:i,y:a,z:s,interfaceOrientation:0})};case Qe.GYROSCOPE:case Qe.MAGNETIC_FIELD:return()=>{const{x:i,y:a,z:s}=e;r({x:i,y:a,z:s,interfaceOrientation:0})};case Qe.ROTATION:return()=>{let[i,a,s,o]=e.quaternion;this.platform===Ir.WEB_ANDROID&&([s,o]=[o,-s]);const l=-Math.atan2(2*(s*o+i*a),i*i-a*a-s*s+o*o),c=Math.sin(-2*(a*o-i*s)),u=-Math.atan2(2*(a*s+i*o),i*i+a*a-s*s-o*o);r({qw:i,qx:a,qy:s,qz:o,yaw:l,pitch:c,roll:u,interfaceOrientation:0})}}})}makeShareableClone(){throw new oe("makeShareableClone should never be called in JSReanimated.")}scheduleOnUI(e){UI(e)}createWorkletRuntime(e,n){throw new oe("createWorkletRuntime is not available in JSReanimated.")}scheduleOnRuntime(){throw new oe("scheduleOnRuntime is not available in JSReanimated.")}registerEventHandler(e,n,r){throw new oe("registerEventHandler is not available in JSReanimated.")}unregisterEventHandler(e){throw new oe("unregisterEventHandler is not available in JSReanimated.")}enableLayoutAnimations(){sn()?Oe.warn("Layout Animations are not supported on web yet."):Kt()?Oe.warn("Layout Animations are no-ops when using Jest."):ys()?Oe.warn("Layout Animations are no-ops when using Chrome Debugger."):Oe.warn("Layout Animations are not supported on this configuration.")}configureLayoutAnimationBatch(){}setShouldAnimateExitingForTag(){}registerSensor(e,n,r,i){if(!Ia())return-1;if(this.platform===void 0&&this.detectPlatform(),!(this.getSensorName(e)in window))return Oe.warn("Sensor is not available."+(sn()&&location.protocol!=="https:"?" Make sure you use secure origin with `npx expo start --web --https`.":"")+(this.platform===Ir.WEB_IOS?" For iOS web, you will also have to also grant permission in the browser: https://dev.to/li/how-to-requestpermission-for-devicemotion-and-deviceorientation-events-in-ios-13-46g2.":"")),-1;this.platform===void 0&&this.detectPlatform();const a=this.initializeSensor(e,n);return a.addEventListener("reading",this.getSensorCallback(a,e,i)),a.start(),this.sensors.set(this.nextSensorId,a),this.nextSensorId++}unregisterSensor(e){const n=this.sensors.get(e);n!==void 0&&(n.stop(),this.sensors.delete(e))}subscribeForKeyboardEvents(e){return sn()?Oe.warn("useAnimatedKeyboard is not available on web yet."):Kt()?Oe.warn("useAnimatedKeyboard is not available when using Jest."):ys()?Oe.warn("useAnimatedKeyboard is not available when using Chrome Debugger."):Oe.warn("useAnimatedKeyboard is not available on this configuration."),-1}unsubscribeFromKeyboardEvents(e){}initializeSensor(e,n){const r=n<=0?{referenceFrame:"device"}:{frequency:1e3/n};switch(e){case Qe.ACCELEROMETER:return new window.Accelerometer(r);case Qe.GYROSCOPE:return new window.Gyroscope(r);case Qe.GRAVITY:return new window.GravitySensor(r);case Qe.MAGNETIC_FIELD:return new window.Magnetometer(r);case Qe.ROTATION:return new window.AbsoluteOrientationSensor(r)}}getSensorName(e){switch(e){case Qe.ACCELEROMETER:return"Accelerometer";case Qe.GRAVITY:return"GravitySensor";case Qe.GYROSCOPE:return"Gyroscope";case Qe.MAGNETIC_FIELD:return"Magnetometer";case Qe.ROTATION:return"AbsoluteOrientationSensor"}}detectPlatform(){const e=navigator.userAgent||navigator.vendor||window.opera;e===void 0?this.platform=Ir.UNKNOWN:/iPad|iPhone|iPod/.test(e)?this.platform=Ir.WEB_IOS:/android/i.test(e)?this.platform=Ir.WEB_ANDROID:this.platform=Ir.WEB}getViewProp(e,n,r,i){throw new oe("getViewProp is not available in JSReanimated.")}configureProps(){throw new oe("configureProps is not available in JSReanimated.")}executeOnUIRuntimeSync(e){throw new oe("`executeOnUIRuntimeSync` is not available in JSReanimated.")}}var Ir=function(t){return t.WEB_IOS="web iOS",t.WEB_ANDROID="web Android",t.WEB="web",t.UNKNOWN="unknown",t}(Ir||{});const XI=Gs(o1),fC=Gs(l1);let Bf,Kd,$d;try{Bf=XI.default}catch{}try{Kd=fC.createTransformValue}catch{}try{$d=fC.createTextShadowValue}catch{}const Et={UI_THREAD_PROPS_WHITELIST:{opacity:!0,transform:!0,backgroundColor:!0,borderRightColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderStartColor:!0,borderTopColor:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0},NATIVE_THREAD_PROPS_WHITELIST:{borderBottomWidth:!0,borderEndWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderStartWidth:!0,borderTopWidth:!0,borderWidth:!0,bottom:!0,flex:!0,flexGrow:!0,flexShrink:!0,height:!0,left:!0,margin:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,padding:!0,paddingBottom:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,right:!0,start:!0,top:!0,width:!0,zIndex:!0,borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,fontSize:!0,lineHeight:!0,textShadowRadius:!0,textShadowOffset:!0,letterSpacing:!0,aspectRatio:!0,columnGap:!0,end:!0,flexBasis:!0,gap:!0,rowGap:!0,display:!0,backfaceVisibility:!0,overflow:!0,resizeMode:!0,fontStyle:!0,fontWeight:!0,textAlign:!0,textDecorationLine:!0,fontFamily:!0,textAlignVertical:!0,fontVariant:!0,textDecorationStyle:!0,textTransform:!0,writingDirection:!0,alignContent:!0,alignItems:!0,alignSelf:!0,direction:!0,flexDirection:!0,flexWrap:!0,justifyContent:!0,position:!0,color:!0,tintColor:!0,shadowColor:!0,placeholderTextColor:!0}},qe=new WI;global._makeShareableClone=()=>{throw new oe("_makeShareableClone should never be called in JSReanimated.")};global._scheduleHostFunctionOnJS=()=>{throw new oe("_scheduleHostFunctionOnJS should never be called in JSReanimated.")};global._scheduleRemoteFunctionOnJS=()=>{throw new oe("_scheduleHostFunctionOnJS should never be called in JSReanimated.")};global._scheduleOnRuntime=()=>{throw new oe("_scheduleOnRuntime should never be called in JSReanimated.")};const Kc=(t,e,n)=>{if(e){const r=e.getAnimatableRef?e.getAnimatableRef():e,[i]=Object.keys(t).reduce((a,s)=>{const o=t[s],l=typeof o=="function"?1:0;return a[l][s]=o,a},[{},{}]);if(typeof r.setNativeProps=="function")YI(r,i,n);else if(Bf!==void 0&&r.style!==void 0)zI(r,i,n);else if(Object.keys(r.props).length>0)Object.keys(r.props).forEach(a=>{if(!i[a])return;const s=a.replace(/[A-Z]/g,o=>"-"+o.toLowerCase());r._touchableNode.setAttribute(s,i[a])});else{const a="className"in r?r==null?void 0:r.className:"";Oe.warn(`It's not possible to manipulate the component ${a}`)}}},YI=(t,e,n)=>{var a,s;if(n){const o={};for(const l in e)qI(l)&&(o[l]=e[l]);(a=t.setNativeProps)==null||a.call(t,o)}const i={...t.previousStyle?t.previousStyle:{},...e};t.previousStyle=i,(s=t.setNativeProps)==null||s.call(t,{style:i})},zI=(t,e,n)=>{const i={...t.previousStyle?t.previousStyle:{},...e};t.previousStyle=i;const a=Bf(i);Array.isArray(a.transform)&&Kd!==void 0&&(a.transform=Kd(a.transform)),$d!==void 0&&(a.textShadowColor||a.textShadowRadius||a.textShadowOffset)&&(a.textShadow=$d({textShadowColor:a.textShadowColor,textShadowOffset:a.textShadowOffset,textShadowRadius:a.textShadowRadius}));for(const s in a)n?t.setAttribute(s,a[s]):t.style[s]=a[s]};function qI(t){return!!Et.NATIVE_THREAD_PROPS_WHITELIST[t]}const hC=nt(),pC=Symbol("shareable flag"),hu=hC?null:new WeakMap,Xt=hC?{set(){},get(){return null}}:{set(t,e){hu.set(t,e||pC)},get:hu.get.bind(hu)},Gf=nt(),KI="REANIMATED_MAGIC_KEY";function gC(t){"worklet";return KI in t}function Ap(t){return Object.getPrototypeOf(t)===Object.prototype}const $I={__init:()=>{"worklet";return new Proxy({},{get:(t,e)=>{if(e==="_isReanimatedSharedValue"||e==="__remoteFunction")return!1;throw new oe(`Trying to access property \`${String(e)}\` of an object which cannot be sent to the UI runtime.`)},set:()=>{throw new oe("Trying to write to an object which cannot be sent to the UI runtime.")}})}},jI=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array","DataView"],fp=30;let pu;function Ue(t,e=!1,n=0){if(Gf)return t;if(n>=fp){if(n===fp)pu=t;else if(t===pu)throw new oe("Trying to convert a cyclic object to a shareable. This is not supported.")}else pu=void 0;const r=typeof t,i=r==="object",a=r==="function";if((i||a)&&t!==null){const s=Xt.get(t);if(s===pC)return t;if(s!==void 0)return s;{let o;if(Array.isArray(t))o=t.map(c=>Ue(c,e,n+1));else if(a&&!qo(t))o=t;else if(gC(t))o=t;else if(Ap(t)&&t.__workletContextObjectFactory){const c=t.__workletContextObjectFactory,u=Ue({__init:()=>{"worklet";return c()}});return Xt.set(t,u),u}else if(Ap(t)||a){o={},qo(t)&&(t.__stackDetails&&delete t.__stackDetails,o.__initData=Ue(t.__initData,!0,n+1));for(const[c,u]of Object.entries(t))c==="__initData"&&o.__initData!==void 0||(o[c]=Ue(u,e,n+1))}else if(t instanceof RegExp){const c=t.source,u=t.flags,A=Ue({__init:()=>{"worklet";return new RegExp(c,u)}});return Xt.set(t,A),A}else if(t instanceof Error){const{name:c,message:u,stack:A}=t,d=Ue({__init:()=>{"worklet";const f=new Error;return f.name=c,f.message=u,f.stack=A,f}});return Xt.set(t,d),d}else if(t instanceof ArrayBuffer)o=t;else if(ArrayBuffer.isView(t)){const c=t.buffer,u=t.constructor.name,A=Ue({__init:()=>{"worklet";if(!jI.includes(u))throw new oe(`Invalid array view name \`${u}\`.`);const d=global[u];if(d===void 0)throw new oe(`Constructor for \`${u}\` not found.`);return new d(c)}});return Xt.set(t,A),A}else{const c=Ue($I);return Xt.set(t,c),c}const l=qe.makeShareableClone(o,e,t);return Xt.set(t,l),Xt.set(l),l}}return qe.makeShareableClone(t,e,void 0)}function QI(t){"worklet";return!!t.__remoteFunction}function Lf(t){"worklet";if(Gf)return t;function e(n){if(typeof n=="object"&&n!==null||typeof n=="function"){if(gC(n))return global._makeShareableClone(n,void 0);if(QI(n))return n.__remoteFunction;if(Array.isArray(n))return global._makeShareableClone(n.map(e),void 0);const r={};for(const[i,a]of Object.entries(n))r[i]=e(a);return global._makeShareableClone(r,n)}return global._makeShareableClone(n,void 0)}return e(t)}function ZI(t){return t}function JI(t){if(Xt.get(t))return t;const e=Ue({__init:()=>{"worklet";return t}});return Xt.set(t,e),t}const $c=Gf?ZI:JI,ew=Kt(),vC=nt();let Zs=[];function tw(){"worklet";let t=[],e=!1;global.queueMicrotask=n=>{t.push(n)},global.__callMicrotasks=()=>{if(!e)try{e=!0;for(let n=0;n<t.length;n+=1)t[n]();t=[],global._maybeFlushUIUpdatesQueue()}finally{e=!1}}}function nw(){"worklet";global.__callMicrotasks()}const Vf=vC?()=>{}:nw;function ar(t){"worklet";return(...e)=>{if(ew){qe.scheduleOnUI(Ue(()=>{"worklet";t(...e)}));return}Zs.push([t,e]),Zs.length===1&&queueMicrotask(()=>{const n=Zs;Zs=[],qe.scheduleOnUI(Ue(()=>{"worklet";n.forEach(([r,i])=>{r(...i)}),Vf()}))})}}function ra(t){return(...e)=>qe.executeOnUIRuntimeSync(Ue(()=>{"worklet";const n=t(...e);return Lf(n)}))}function Hf(t){"worklet";return(...e)=>{qe.scheduleOnUI(Ue(()=>{"worklet";t(...e)}))}}function rw(t,...e){t(...e)}function En(t){"worklet";if(vC||!_WORKLET)return(...n)=>queueMicrotask(n.length?()=>t(...n):t);if(qo(t))return(...n)=>En(rw)(t,...n);t.__remoteFunction&&(t=t.__remoteFunction);const e=typeof t=="function"?global._scheduleHostFunctionOnJS:global._scheduleRemoteFunctionOnJS;return(...n)=>{e(t,n.length>0?Lf(n):void 0)}}const iw=Kt(),mC=nt(),aw=ys();function CC(){"worklet";BI(t=>{"worklet";En(NI)(t)})}Vs(dC);CC();mC?(global._WORKLET=!1,global._log=console.log,global._getAnimationTimestamp=()=>performance.now()):(ra(AC)(),ra(Vs)(dC),ra(CC)());function sw(t,...e){"worklet";try{return t(...e)}catch(n){if(global.__ErrorUtils)global.__ErrorUtils.reportFatalError(n);else throw n}}function EC(){"worklet";global.__callGuardDEV=sw,global.__ErrorUtils={reportFatalError:t=>{En(HI)({message:t.message,stack:t.stack})}}}function ow(){return Object.fromEntries(Object.entries(console).map(([e,n])=>{const r=function(...a){return n(...a)};return n.name&&Object.defineProperty(r,"name",{value:n.name,writable:!1}),[e,r]}))}const Wi=ow();function xC(){"worklet";aw||(global.console={assert:En(Wi.assert),debug:En(Wi.debug),log:En(Wi.log),warn:En(Wi.warn),error:En(Wi.error),info:En(Wi.info)})}function lw(){"worklet";const t=global.requestAnimationFrame;let e=[],n=!1;global.__flushAnimationFrame=r=>{const i=e;e=[],i.forEach(a=>a(r)),Vf()},global.requestAnimationFrame=r=>(e.push(r),n||(n=!0,t(i=>{n=!1,global.__frameTimestamp=i,global.__flushAnimationFrame(i),global.__frameTimestamp=void 0})),-1)}function cw(){iw&&(globalThis.requestAnimationFrame=cC),Hf(()=>{"worklet";EC(),xC(),mC||(tw(),lw())})()}function Ko(t,e,n=!1){"worklet";const r=t._animation;if(r&&(r.cancelled=!0,t._animation=null),typeof e=="function"||e!==null&&typeof e=="object"&&e.onFrame!==void 0){const i=typeof e=="function"?e():e;if(t._value===i.current&&!i.isHigherOrder&&!n){i.callback&&i.callback(!0);return}const a=l=>{i.onStart(i,t.value,l,r)},s=global.__frameTimestamp||global._getAnimationTimestamp();a(s);const o=l=>{const c=l<(i.timestamp||0)?i.timestamp:l;if(i.cancelled){i.callback&&i.callback(!1);return}const u=i.onFrame(i,c);i.finished=!0,i.timestamp=c,t._value=i.current,u?i.callback&&i.callback(!0):requestAnimationFrame(o)};t._animation=i,o(s)}else{if(t._value===e&&!n)return;t._value=e}}const uw=nt();function Uf(t){"worklet";Object.defineProperties(t,{get:{value(){return t.value},configurable:!1,enumerable:!1},set:{value(e){typeof e=="function"?t.value=e(t.value):t.value=e},configurable:!1,enumerable:!1}})}function Wf(t){"worklet";Object.defineProperty(t,"_value",{configurable:!1,enumerable:!1})}function dw(t){"worklet";const e=new Map;let n=t;const r={get value(){return n},set value(i){Ko(r,i)},get _value(){return n},set _value(i){n=i,e.forEach(a=>{a(i)})},modify:(i,a=!0)=>{Ko(r,i!==void 0?i(n):n,a)},addListener:(i,a)=>{e.set(i,a)},removeListener:i=>{e.delete(i)},_animation:null,_isReanimatedSharedValue:!0};return Wf(r),Uf(r),r}function Aw(t){const e=Ue({__init:()=>{"worklet";return dw(t)}}),n={get value(){return ra(i=>i.value)(n)},set value(r){ar(()=>{n.value=r})()},get _value(){throw new oe("Reading from `_value` directly is only possible on the UI runtime. Perhaps you passed an Animated Style to a non-animated component?")},set _value(r){throw new oe("Setting `_value` directly is only possible on the UI runtime. Perhaps you want to assign to `value` instead?")},modify:(r,i=!0)=>{ar(()=>{n.modify(r,i)})()},addListener:()=>{throw new oe("Adding listeners is only possible on the UI runtime.")},removeListener:()=>{throw new oe("Removing listeners is only possible on the UI runtime.")},_isReanimatedSharedValue:!0};return Wf(n),Uf(n),Xt.set(n,e),n}function fw(t){let e=t;const n=new Map,r={get value(){return e},set value(i){Ko(r,i)},get _value(){return e},set _value(i){e=i,n.forEach(a=>{a(i)})},modify:(i,a=!0)=>{Ko(r,i!==void 0?i(r.value):r.value,a)},addListener:(i,a)=>{n.set(i,a)},removeListener:i=>{n.delete(i)},_isReanimatedSharedValue:!0};return Wf(r),Uf(r),r}const Pn=uw?fw:Aw;function hw(t){return t===Qe.ROTATION?Pn({qw:0,qx:0,qy:0,qz:0,yaw:0,pitch:0,roll:0,interfaceOrientation:0}):Pn({x:0,y:0,z:0,interfaceOrientation:0})}class pw{constructor(e,n){F(this,"listenersNumber",0);F(this,"sensorId",null);this.sensorType=e,this.config=n,this.data=hw(e)}register(e){const n=this.config,r=this.sensorType;return this.sensorId=qe.registerSensor(r,n.interval==="auto"?-1:n.interval,n.iosReferenceFrame,e),this.sensorId!==-1}isRunning(){return this.sensorId!==-1&&this.sensorId!==null}isAvailable(){return this.sensorId!==-1}getSharedValue(){return this.data}unregister(){this.sensorId!==null&&this.sensorId!==-1&&qe.unregisterSensor(this.sensorId),this.sensorId=null}}class gw{constructor(){F(this,"nativeSensors",new Map)}getSensorId(e,n){return e*100+n.iosReferenceFrame*10+Number(n.adjustToInterfaceOrientation)}initializeSensor(e,n){const r=this.getSensorId(e,n);if(!this.nativeSensors.has(r)){const a=new pw(e,n);this.nativeSensors.set(r,a)}return this.nativeSensors.get(r).getSharedValue()}registerSensor(e,n,r){const i=this.getSensorId(e,n);if(!this.nativeSensors.has(i))return-1;const a=this.nativeSensors.get(i);return a&&a.isAvailable()&&(a.isRunning()||a.register(r))?(a.listenersNumber++,i):-1}unregisterSensor(e){if(this.nativeSensors.has(e)){const n=this.nativeSensors.get(e);n&&n.isRunning()&&(n.listenersNumber--,n.listenersNumber===0&&n.unregister())}}}function Rr(t){"worklet";return(t==null?void 0:t._isReanimatedSharedValue)===!0}const vw=Kt();function mw(){"worklet";const t=new Map;let e=[],n=!1,r=!1;function i(){const l=new Map;t.forEach(d=>{if(d.outputs)for(const f of d.outputs){const p=l.get(f);p===void 0?l.set(f,[d]):p.push(d)}});const c=new Set,u=[];function A(d){c.add(d);for(const f of d.inputs){const p=l.get(f);if(p)for(const h of p)c.has(h)||A(h)}u.push(d)}t.forEach(d=>{c.has(d)||A(d)}),e=u}function a(){if(n=!1,!r)try{r=!0,t.size!==e.length&&i();for(const l of e)l.dirty&&(l.dirty=!1,l.worklet())}finally{r=!1}}function s(){vw?a():n||(r?requestAnimationFrame(a):queueMicrotask(a),n=!0)}function o(l,c){if(Array.isArray(l))for(const u of l)u&&o(u,c);else if(Rr(l))c.push(l);else if(Object.getPrototypeOf(l)===Object.prototype)for(const u of Object.values(l))u&&o(u,c);return c}return{start:(l,c,u,A)=>{const d={id:l,dirty:!0,worklet:c,inputs:o(u,[]),outputs:A};t.set(d.id,d),e=[];for(const f of d.inputs)f.addListener(d.id,()=>{d.dirty=!0,s()});s()},stop:l=>{const c=t.get(l);if(c){t.delete(c.id),e=[];for(const u of c.inputs)u.removeListener(c.id)}}}}let Cw=9999;function Hs(t,e=[],n=[]){const r=Cw+=1;return ar(()=>{let i=global.__mapperRegistry;i===void 0&&(i=global.__mapperRegistry=mw()),i.start(r,t,e,n)})(),r}function da(t){ar(()=>{const e=global.__mapperRegistry;e==null||e.stop(t)})()}nt();function Ew(t,e){const n=__reanimatedLoggerConfig;return qe.createWorkletRuntime(t,Ue(()=>{"worklet";AC(),Vs(n),EC(),xC(),e==null||e()}))}function xw(t,e){"worklet";return _WORKLET?(...n)=>global._scheduleOnRuntime(t,Lf(()=>{"worklet";e(...n)})):(...n)=>qe.scheduleOnRuntime(t,Ue(()=>{"worklet";e(...n)}))}const yw=nt(),yC=()=>!0,Iw=yC;function ww(t,e,n){if(Ct()&&!n)throw new oe("Function `getViewProp` requires a component to be passed as an argument on Fabric.");return new Promise((r,i)=>qe.getViewProp(t,e,n,a=>{typeof a=="string"&&a.substr(0,6)==="error:"?i(a):r(a)}))}function Xf(){return global.__sensorContainer||(global.__sensorContainer=new gw),global.__sensorContainer}function gu(t,e,n=-1){function r(i,a){"worklet";global.__frameTimestamp=i,t(a),global.__flushAnimationFrame(i),global.__frameTimestamp=void 0}return qe.registerEventHandler(Ue(r),e,n)}function hp(t){return qe.unregisterEventHandler(t)}function pp(t,e){function n(r,i){"worklet";const a=global._getAnimationTimestamp();global.__frameTimestamp=a,t(r,i),global.__flushAnimationFrame(a),global.__frameTimestamp=void 0}return qe.subscribeForKeyboardEvents(Ue(n),e.isStatusBarTranslucentAndroid??!1,e.isNavigationBarTranslucentAndroid??!1)}function bw(t){return qe.unsubscribeFromKeyboardEvents(t)}function Sw(t,e,n){return Xf().registerSensor(t,e,Ue(n))}function gp(t,e){return Xf().initializeSensor(t,e)}function _w(t){return Xf().unregisterSensor(t)}sn()||cw();let Js={enableLayoutAnimations:!1,setByUser:!1};function IC(t,e=!0){e?(Js={enableLayoutAnimations:t,setByUser:!0},qe.enableLayoutAnimations(t)):!Js.setByUser&&Js.enableLayoutAnimations!==t&&(Js.enableLayoutAnimations=t,qe.enableLayoutAnimations(t))}function Dw(t){qe.configureLayoutAnimationBatch(t)}function Tw(t,e){qe.setShouldAnimateExitingForTag(t,e)}function Ow(t,e){yw||qe.configureProps(t,e)}const $e="[-+]?\\d*\\.?\\d+",mr=$e+"%";function vu(...t){return"\\(\\s*("+t.join(")\\s*,?\\s*(")+")\\s*\\)"}function vp(...t){return"\\(\\s*("+t.slice(0,t.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+t[t.length-1]+")\\s*\\)"}function mp(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const Ln={rgb:new RegExp("rgb"+vu($e,$e,$e)),rgba:new RegExp("rgba("+mp($e,$e,$e,$e)+"|"+vp($e,$e,$e,$e)+")"),hsl:new RegExp("hsl"+vu($e,mr,mr)),hsla:new RegExp("hsla("+mp($e,mr,mr,$e)+"|"+vp($e,mr,mr,$e)+")"),hwb:new RegExp("hwb"+vu($e,mr,mr)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/};function ia(t,e,n){"worklet";return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function mu(t,e,n){"worklet";const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,a=ia(i,r,t+1/3),s=ia(i,r,t),o=ia(i,r,t-1/3);return Math.round(a*255)<<24|Math.round(s*255)<<16|Math.round(o*255)<<8}function kw(t,e,n){"worklet";if(e+n>=1){const s=Math.round(e*255/(e+n));return s<<24|s<<16|s<<8}const r=ia(0,1,t+1/3)*(1-e-n)+e,i=ia(0,1,t)*(1-e-n)+e,a=ia(0,1,t-1/3)*(1-e-n)+e;return Math.round(r*255)<<24|Math.round(i*255)<<16|Math.round(a*255)<<8}function Vn(t){"worklet";const e=Number.parseInt(t,10);return e<0?0:e>255?255:e}function eo(t){"worklet";return(Number.parseFloat(t)%360+360)%360/360}function to(t){"worklet";const e=Number.parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Cr(t){"worklet";const e=Number.parseFloat(t);return e<0?0:e>100?1:e/100}const Cp=$c({transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}),Mw=$c(["backgroundColor","borderBottomColor","borderColor","borderLeftColor","borderRightColor","borderTopColor","borderStartColor","borderEndColor","borderBlockColor","borderBlockEndColor","borderBlockStartColor","color","outlineColor","shadowColor","textDecorationColor","tintColor","textShadowColor","overlayColor","fill","floodColor","lightingColor","stopColor","stroke"]);function Pw(t){"worklet";if(typeof t=="number")return t>>>0===t&&t>=0&&t<=4294967295?t:null;if(typeof t!="string")return null;let e;return(e=Ln.hex6.exec(t))?Number.parseInt(e[1]+"ff",16)>>>0:Cp[t]!==void 0?Cp[t]:(e=Ln.rgb.exec(t))?(Vn(e[1])<<24|Vn(e[2])<<16|Vn(e[3])<<8|255)>>>0:(e=Ln.rgba.exec(t))?e[6]!==void 0?(Vn(e[6])<<24|Vn(e[7])<<16|Vn(e[8])<<8|to(e[9]))>>>0:(Vn(e[2])<<24|Vn(e[3])<<16|Vn(e[4])<<8|to(e[5]))>>>0:(e=Ln.hex3.exec(t))?Number.parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Ln.hex8.exec(t))?Number.parseInt(e[1],16)>>>0:(e=Ln.hex4.exec(t))?Number.parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=Ln.hsl.exec(t))?(mu(eo(e[1]),Cr(e[2]),Cr(e[3]))|255)>>>0:(e=Ln.hsla.exec(t))?e[6]!==void 0?(mu(eo(e[6]),Cr(e[7]),Cr(e[8]))|to(e[9]))>>>0:(mu(eo(e[2]),Cr(e[3]),Cr(e[4]))|to(e[5]))>>>0:(e=Ln.hwb.exec(t))?(kw(eo(e[1]),Cr(e[2]),Cr(e[3]))|255)>>>0:null}const wC=t=>{"worklet";return(t>>24&255)/255},bC=t=>{"worklet";return t>>16&255},SC=t=>{"worklet";return t>>8&255},_C=t=>{"worklet";return t&255},jd=(t,e,n,r=1)=>{"worklet";const i=r<.001?0:r;return`rgba(${t}, ${e}, ${n}, ${i})`};function Fw(t,e,n){"worklet";const r=Math.max(t,e,n),i=Math.min(t,e,n),a=r-i,s=r===0?0:a/r,o=r/255;let l=0;switch(r){case i:break;case t:l=e-n+a*(e<n?6:0),l/=6*a;break;case e:l=n-t+a*2,l/=6*a;break;case n:l=t-e+a*4,l/=6*a;break}return{h:l,s,v:o}}function Rw(t,e,n){"worklet";let r,i,a;const s=Math.floor(t*6),o=t*6-s,l=n*(1-e),c=n*(1-o*e),u=n*(1-(1-o)*e);switch(s%6){case 0:[r,i,a]=[n,u,l];break;case 1:[r,i,a]=[c,n,l];break;case 2:[r,i,a]=[l,n,u];break;case 3:[r,i,a]=[l,c,n];break;case 4:[r,i,a]=[u,l,n];break;case 5:[r,i,a]=[n,l,c];break}return{r:Math.round(r*255),g:Math.round(i*255),b:Math.round(a*255)}}const Nw=(t,e,n,r)=>{"worklet";const{r:i,g:a,b:s}=Rw(t,e,n);return jd(i,a,s,r)};function Yf(t){"worklet";if(t==null||typeof t=="number")return t;let e=Pw(t);if(e!=null)return typeof e!="number"?null:(e=(e<<24|e>>>8)>>>0,e)}function Qd(t){"worklet";return typeof t!="string"?!1:Yf(t)!=null}const Bw=DI();function jc(t){"worklet";let e=Yf(t);if(e!=null)return typeof e!="number"?null:(Bw&&(e=e|0),e)}function Gw(t){"worklet";for(const e in t)Mw.includes(e)&&(t[e]=jc(t[e]))}function Ja(t){"worklet";const e=Yf(t),n=(e>>>24)/255,r=(e<<8>>>24)/255,i=(e<<16>>>24)/255,a=(e<<24>>>24)/255;return[r,i,a,n]}function Ep(t){"worklet";const e=t[3]<.001?0:t[3];return`rgba(${Math.round(t[0]*255)}, ${Math.round(t[1]*255)}, ${Math.round(t[2]*255)}, ${e})`}function no(t,e=2.2){"worklet";const n=[];for(let r=0;r<3;++r)n.push(Math.pow(t[r],e));return n.push(t[3]),n}function xp(t,e=2.2){"worklet";const n=[];for(let r=0;r<3;++r)n.push(Math.pow(t[r],1/e));return n.push(t[3]),n}function Qc(t){"worklet";return Array.isArray(t)&&t.length===16&&t.every(e=>typeof e=="number"&&!isNaN(e))}function Lw(t){"worklet";return Array.isArray(t)&&t.length===4&&t.every(e=>Array.isArray(e)&&e.length===4&&e.every(n=>typeof n=="number"&&!isNaN(n)))}function zf(t){"worklet";return t.flat()}function qf(t){"worklet";return[[t[0],t[1],t[2],t[3]],[t[4],t[5],t[6],t[7]],[t[8],t[9],t[10],t[11]],[t[12],t[13],t[14],t[15]]]}function Aa(t){"worklet";return Lw(t)?zf(t):t}function ka(t,e){"worklet";return[[t[0][0]*e[0][0]+t[0][1]*e[1][0]+t[0][2]*e[2][0]+t[0][3]*e[3][0],t[0][0]*e[0][1]+t[0][1]*e[1][1]+t[0][2]*e[2][1]+t[0][3]*e[3][1],t[0][0]*e[0][2]+t[0][1]*e[1][2]+t[0][2]*e[2][2]+t[0][3]*e[3][2],t[0][0]*e[0][3]+t[0][1]*e[1][3]+t[0][2]*e[2][3]+t[0][3]*e[3][3]],[t[1][0]*e[0][0]+t[1][1]*e[1][0]+t[1][2]*e[2][0]+t[1][3]*e[3][0],t[1][0]*e[0][1]+t[1][1]*e[1][1]+t[1][2]*e[2][1]+t[1][3]*e[3][1],t[1][0]*e[0][2]+t[1][1]*e[1][2]+t[1][2]*e[2][2]+t[1][3]*e[3][2],t[1][0]*e[0][3]+t[1][1]*e[1][3]+t[1][2]*e[2][3]+t[1][3]*e[3][3]],[t[2][0]*e[0][0]+t[2][1]*e[1][0]+t[2][2]*e[2][0]+t[2][3]*e[3][0],t[2][0]*e[0][1]+t[2][1]*e[1][1]+t[2][2]*e[2][1]+t[2][3]*e[3][1],t[2][0]*e[0][2]+t[2][1]*e[1][2]+t[2][2]*e[2][2]+t[2][3]*e[3][2],t[2][0]*e[0][3]+t[2][1]*e[1][3]+t[2][2]*e[2][3]+t[2][3]*e[3][3]],[t[3][0]*e[0][0]+t[3][1]*e[1][0]+t[3][2]*e[2][0]+t[3][3]*e[3][0],t[3][0]*e[0][1]+t[3][1]*e[1][1]+t[3][2]*e[2][1]+t[3][3]*e[3][1],t[3][0]*e[0][2]+t[3][1]*e[1][2]+t[3][2]*e[2][2]+t[3][3]*e[3][2],t[3][0]*e[0][3]+t[3][1]*e[1][3]+t[3][2]*e[2][3]+t[3][3]*e[3][3]]]}function Vw(t,e){"worklet";const n=Qc(t),r=Aa(t),i=Aa(e),a=r.map((s,o)=>r[o]-i[o]);return n?a:qf(a)}function Hw(t,e){"worklet";const n=Qc(t),r=Aa(t),i=Aa(e),a=r.map((s,o)=>r[o]+i[o]);return n?a:qf(a)}function Uw(t,e){"worklet";const n=Qc(t),i=Aa(t).map(a=>a*e);return n?i:qf(i)}function Ww(t,e="z"){"worklet";const n=Math.cos(t),r=Math.sin(t);switch(e){case"z":return[[n,r,0,0],[-r,n,0,0],[0,0,1,0],[0,0,0,1]];case"y":return[[n,0,-r,0],[0,1,0,0],[r,0,n,0],[0,0,0,1]];case"x":return[[1,0,0,0],[0,n,r,0],[0,-r,n,0],[0,0,0,1]]}}function Cu(t,e,n){"worklet";return Math.sqrt(t*t+e*e+n*n)}function yp(t){"worklet";const e=zf(t);return[[e[0],e[4],e[8],e[12]],[e[1],e[5],e[9],e[13]],[e[2],e[6],e[10],e[14]],[e[3],e[7],e[11],e[15]]]}function Rt(t,e){"worklet";return t.reduce((n,r,i)=>n+t[i]*e[i],0)}function Xi(t,e){"worklet";const n=Rt(t,e)/Rt(t,t);return t.map(r=>r*n)}function Yi(t,e){"worklet";return t.map((n,r)=>t[r]-e[r])}function Xw(t,e){"worklet";return t.map(n=>n*e)}function Yw(t){"worklet";const[e,n,r,i]=t,a=e,s=Yi(n,Xi(a,n)),o=Yi(Yi(r,Xi(a,r)),Xi(s,r)),l=Yi(Yi(Yi(i,Xi(a,i)),Xi(s,i)),Xi(o,i)),[c,u,A,d]=[a,s,o,l].map(h=>Xw(h,1/Math.sqrt(Rt(h,h)))),f=[[c[0],u[0],A[0],d[0]],[c[1],u[1],A[1],d[1]],[c[2],u[2],A[2],d[2]],[c[3],u[3],A[3],d[3]]],p=[[Rt(c,e),Rt(c,n),Rt(c,r),Rt(c,i)],[0,Rt(u,n),Rt(u,r),Rt(u,i)],[0,0,Rt(A,r),Rt(A,i)],[0,0,0,Rt(d,i)]];return{rotationMatrix:yp(f),skewMatrix:yp(p)}}function zw(t){"worklet";const e=Aa(t);if(e[15]===0)throw new oe("Invalid transform matrix.");e.forEach((u,A)=>e[A]/=e[15]);const n=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[e[12],e[13],e[14],1]],r=e[15]*Cu(e[0],e[4],e[8]),i=e[15]*Cu(e[1],e[5],e[9]),a=e[15]*Cu(e[2],e[6],e[10]),s=[[r,0,0,0],[0,i,0,0],[0,0,a,0],[0,0,0,1]],o=[[e[0]/r,e[1]/r,e[2]/r,0],[e[4]/i,e[5]/i,e[6]/i,0],[e[8]/a,e[9]/a,e[10]/a,0],[0,0,0,1]],{rotationMatrix:l,skewMatrix:c}=Yw(o);return{translationMatrix:n,scaleMatrix:s,rotationMatrix:l,skewMatrix:c}}function Ip(t){"worklet";const{scaleMatrix:e,rotationMatrix:n,translationMatrix:r,skewMatrix:i}=zw(t),a=-n[0][2],s=Math.asin(a);let o,l;return a===1||a===-1?(l=0,o=Math.atan2(a*n[0][1],a*n[0][2])):(l=Math.atan2(n[0][1],n[0][0]),o=Math.atan2(n[1][2],n[2][2])),{scaleMatrix:e,rotationMatrix:n,translationMatrix:r,skewMatrix:i,rx:o||0,ry:s||0,rz:l||0}}function Kf(){return sn()?Ia()?window.matchMedia("(prefers-reduced-motion: reduce)").matches:!1:!!global._REANIMATED_IS_REDUCED_MOTION}const wp=Kf(),yn={jsValue:wp,uiValue:Pn(wp),setEnabled(t){yn.jsValue=t,yn.uiValue.value=t}};let Zd=!1;const qw=nt();function $f(t){Zd=!0;const e=t();return Zd=!1,e}function aa(t){"worklet";if(typeof t=="string"){const e=t.match(/([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/);if(!e)throw new oe("Couldn't parse animation value.");const n=e[1],r=e[4],i=e[2]+(e[3]??"");return{prefix:n,suffix:r,strippedValue:parseFloat(i)}}else return{strippedValue:t}}const Kw=yn.uiValue;function tr(t){"worklet";return!t||t===on.System?Kw.value:t===on.Always}function Nr(t){"worklet";if(t)return tr(t)}function $w(t,e,n){"worklet";return Hw(e,Uw(Vw(n,e),t))}function jw(t,e,n){"worklet";return e+t*(n-e)}function Qw(t){"worklet";const e=t.onStart,n=t.onFrame;if(t.isHigherOrder){t.onStart=(h,g,E,m)=>(h.reduceMotion===void 0&&(h.reduceMotion=tr()),e(h,g,E,m));return}const r=Object.assign({},t);delete r.callback;const i=(h,g,E,m)=>{const{prefix:v,suffix:C,strippedValue:y}=aa(g);h.__prefix=v,h.__suffix=C,h.strippedCurrent=y;const{strippedValue:x}=aa(h.toValue);if(h.current=y,h.startValue=y,h.toValue=x,m&&m!==h){const{prefix:w,suffix:S,strippedValue:D}=aa(m.current);m.current=D,m.__prefix=w,m.__suffix=S}e(h,y,E,m),h.current=(h.__prefix??"")+h.current+(h.__suffix??""),m&&m!==h&&(m.current=(m.__prefix??"")+m.current+(m.__suffix??""))},a=(h,g)=>{h.current=h.strippedCurrent;const E=n(h,g);return h.strippedCurrent=h.current,h.current=(h.__prefix??"")+h.current+(h.__suffix??""),E},s=["R","G","B","A"],o=(h,g,E,m)=>{let v,C,y;const x=[];Qd(g)&&(C=no(Ja(h.current)),v=no(Ja(g)),h.toValue&&(y=no(Ja(h.toValue)))),s.forEach((w,S)=>{h[w]=Object.assign({},r),h[w].current=C[S],h[w].toValue=y?y[S]:void 0,h[w].onStart(h[w],v[S],E,m?m[w]:void 0),x.push(h[w].current)}),h.current=Ep(xp(x))},l=(h,g)=>{const E=no(Ja(h.current)),m=[];let v=!0;return s.forEach((C,y)=>{h[C].current=E[y];const x=h[C].onFrame(h[C],g);v=v&&x,m.push(h[C].current)}),h.current=Ep(xp(m)),v},c=(h,g,E,m)=>{const v=h.toValue;h.startMatrices=Ip(g),h.stopMatrices=Ip(v),h[0]=Object.assign({},r),h[0].current=0,h[0].toValue=100,h[0].onStart(h[0],0,E,m?m[0]:void 0),h.current=g},u=(h,g)=>{let E=!0;const m=h[0].onFrame(h[0],g);E=E&&m;const v=h[0].current/100,C=["translationMatrix","scaleMatrix","skewMatrix"],y=[];C.forEach((R,W)=>y.push($w(v,h.startMatrices[R],h.stopMatrices[R])));const[x,w,S]=y,D=["x","y","z"],I=[];D.forEach((R,W)=>{const N=jw(v,h.startMatrices["r"+R],h.stopMatrices["r"+R]);I.push(Ww(N,R))});const[b,O,T]=I,M=ka(b,ka(O,T)),P=zf(ka(ka(w,ka(S,M)),x));return h.current=P,E},A=(h,g,E,m)=>{g.forEach((v,C)=>{h[C]=Object.assign({},r),h[C].current=v,h[C].toValue=h.toValue[C],h[C].onStart(h[C],v,E,m?m[C]:void 0)}),h.current=g},d=(h,g)=>{let E=!0;return h.current.forEach((m,v)=>{const C=h[v].onFrame(h[v],g);E=E&&C,h.current[v]=h[v].current}),E},f=(h,g,E,m)=>{for(const v in g)h[v]=Object.assign({},r),h[v].onStart=h.onStart,h[v].current=g[v],h[v].toValue=h.toValue[v],h[v].onStart(h[v],g[v],E,m?m[v]:void 0);h.current=g},p=(h,g)=>{let E=!0;const m={};for(const v in h.current){const C=h[v].onFrame(h[v],g);E=E&&C,m[v]=h[v].current}return h.current=m,E};t.onStart=(h,g,E,m)=>{if(h.reduceMotion===void 0&&(h.reduceMotion=tr()),h.reduceMotion){h.toValue!==void 0?h.current=h.toValue:e(h,g,E,m),h.startTime=0,h.onFrame=()=>!0;return}if(Qd(g)){o(h,g,E,m),h.onFrame=l;return}else if(Qc(g)){c(h,g,E,m),h.onFrame=u;return}else if(Array.isArray(g)){A(h,g,E,m),h.onFrame=d;return}else if(typeof g=="string"){i(h,g,E,m),h.onFrame=a;return}else if(typeof g=="object"&&g!==null){f(h,g,E,m),h.onFrame=p;return}e(h,g,E,m)}}function Ar(t,e){"worklet";if(Zd)return t;const n=()=>{"worklet";const r=e();return Qw(r),r};return _WORKLET||qw?n():n}function DC(t){"worklet";t.value=t.value}const Zw=4,Jw=.001,eb=1e-7,tb=10,Fo=11,ro=1/(Fo-1);function TC(t,e){"worklet";return 1-3*e+3*t}function OC(t,e){"worklet";return 3*e-6*t}function kC(t){"worklet";return 3*t}function $o(t,e,n){"worklet";return((TC(e,n)*t+OC(e,n))*t+kC(e))*t}function MC(t,e,n){"worklet";return 3*TC(e,n)*t*t+2*OC(e,n)*t+kC(e)}function nb(t,e,n,r,i){"worklet";let a,s,o=0;do s=e+(n-e)/2,a=$o(s,r,i)-t,a>0?n=s:e=s;while(Math.abs(a)>eb&&++o<tb);return s}function rb(t,e,n,r){"worklet";for(let i=0;i<Zw;++i){const a=MC(e,n,r);if(a===0)return e;const s=$o(e,n,r)-t;e-=s/a}return e}function jf(t,e,n,r){"worklet";function i(o){"worklet";return o}if(!(t>=0&&t<=1&&n>=0&&n<=1))throw new oe("Bezier x values must be in [0, 1] range.");if(t===e&&n===r)return i;const a=new Array(Fo);for(let o=0;o<Fo;++o)a[o]=$o(o*ro,t,n);function s(o){"worklet";let l=0,c=1;const u=Fo-1;for(;c!==u&&a[c]<=o;++c)l+=ro;--c;const A=(o-a[c])/(a[c+1]-a[c]),d=l+A*ro,f=MC(d,t,n);return f>=Jw?rb(o,d,t,n):f===0?d:nb(o,l,l+ro,t,n)}return function(l){"worklet";return t===e&&n===r?l:l===0?0:l===1?1:$o(s(l),e,r)}}function ib(t){"worklet";return t}function ab(t){"worklet";return jf(.42,0,1,1)(t)}function sb(t){"worklet";return t*t}function ob(t){"worklet";return t*t*t}function lb(t){"worklet";return e=>{"worklet";return Math.pow(e,t)}}function cb(t){"worklet";return 1-Math.cos(t*Math.PI/2)}function ub(t){"worklet";return 1-Math.sqrt(1-t*t)}function db(t){"worklet";return Math.pow(2,10*(t-1))}function Ab(t=1){"worklet";const e=t*Math.PI;return n=>{"worklet";return 1-Math.pow(Math.cos(n*Math.PI/2),3)*Math.cos(n*e)}}function fb(t=1.70158){"worklet";return e=>{"worklet";return e*e*((t+1)*e-t)}}function hb(t){"worklet";if(t<1/2.75)return 7.5625*t*t;if(t<2/2.75){const n=t-.5454545454545454;return 7.5625*n*n+.75}if(t<2.5/2.75){const n=t-.8181818181818182;return 7.5625*n*n+.9375}const e=t-2.625/2.75;return 7.5625*e*e+.984375}function pb(t,e,n,r){"worklet";return{factory:()=>{"worklet";return jf(t,e,n,r)}}}function gb(t,e,n,r){"worklet";return jf(t,e,n,r)}function vb(t){"worklet";return t}function mb(t){"worklet";return e=>{"worklet";return 1-t(1-e)}}function Cb(t){"worklet";return e=>{"worklet";return e<.5?t(e*2)/2:1-t((1-e)*2)/2}}function Eb(t=10,e=!0){"worklet";return n=>{"worklet";const r=Math.min(Math.max(n,0),1)*t;return e?Math.ceil(r)/t:Math.floor(r)/t}}const PC={linear:ib,ease:ab,quad:sb,cubic:ob,poly:lb,sin:cb,circle:ub,exp:db,elastic:Ab,back:fb,bounce:hb,bezier:pb,bezierFn:gb,steps:Eb,in:vb,out:mb,inOut:Cb},jo=Symbol("easingName");for(const[t,e]of Object.entries(PC))Object.defineProperty(e,jo,{value:t,configurable:!1,enumerable:!1,writable:!1});const Ze=PC,j=function(t,e,n){"worklet";return Ar(t,()=>{"worklet";const r={duration:300,easing:Ze.inOut(Ze.quad)};e&&Object.keys(e).forEach(s=>r[s]=e[s]);function i(s,o){const{toValue:l,startTime:c,startValue:u}=s,A=o-c;if(A>=r.duration)return s.startTime=0,s.current=l,!0;const d=s.easing(A/r.duration);return s.current=u+(l-u)*d,!1}function a(s,o,l,c){c&&c.type==="timing"&&c.toValue===t&&c.startTime?(s.startTime=c.startTime,s.startValue=c.startValue):(s.startTime=l,s.startValue=o),s.current=o,typeof r.easing=="object"?s.easing=r.easing.factory():s.easing=r.easing}return{type:"timing",onFrame:i,onStart:a,progress:0,toValue:t,startValue:0,startTime:0,easing:()=>0,current:t,callback:n,reduceMotion:Nr(e==null?void 0:e.reduceMotion)}})};function xb(t){"worklet";var n,r;let e="";return["stiffness","damping","dampingRatio","restDisplacementThreshold","restSpeedThreshold","mass"].forEach(i=>{const a=t[i];a<=0&&(e+=`, ${i} must be grater than zero but got ${a}`)}),t.duration<0&&(e+=`, duration can't be negative, got ${t.duration}`),(n=t.clamp)!=null&&n.min&&((r=t.clamp)!=null&&r.max)&&t.clamp.min>t.clamp.max&&(e+=`, clamp.min should be lower than clamp.max, got clamp: {min: ${t.clamp.min}, max: ${t.clamp.max}} `),e!==""&&Oe.warn("Invalid spring config"+e),e===""}function yb({min:t,max:e,func:n,maxIterations:r=20}){"worklet";let a=r,s=(e+t)/2;for(;Math.abs(n(s))>5e-5&&a>0;)a-=1,n(s)<0?t=s:e=s,s=(t+e)/2;return s}function Ib(t=0,e){"worklet";if(e.skipAnimation)return{zeta:0,omega0:0,omega1:0};if(e.useDuration){const{stiffness:n,dampingRatio:r}=e,i=Math.sqrt(n/t),a=i*Math.sqrt(1-r**2);return{zeta:r,omega0:i,omega1:a}}else{const{damping:n,mass:r,stiffness:i}=e,a=n/(2*Math.sqrt(i*r)),s=Math.sqrt(i/r),o=s*Math.sqrt(1-a**2);return{zeta:a,omega0:s,omega1:o}}}function wb(t,e){"worklet";const{zeta:n,toValue:r,startValue:i}=t,a=Number(r);if(a===i)return n;const[s,o]=a-i>0?[e.min,e.max]:[e.max,e.min],l=o!==void 0?Math.abs((o-a)/(a-i)):void 0,c=s!==void 0?Math.abs((s-a)/(a-i)):void 0,u=l!==void 0?Math.abs(Math.log(l)/Math.PI):void 0,A=c!==void 0?Math.abs(Math.log(c)/(2*Math.PI)):void 0,d=[u,A].filter(f=>f!==void 0);return Math.max(...d,n)}function bb(t,e,n){"worklet";if(e.skipAnimation)return 0;const{stiffness:r,dampingRatio:i,restSpeedThreshold:a,duration:s}=e;return yb({min:0,max:100,func:l=>{"worklet";const c=(l*n*n+r*t*t)/(Math.exp(1-.5*i)*r),u=i*2*Math.sqrt(r*l);return 1e3*(-2*l/u)*Math.log(a*.01/c)-s}})}function Sb(t,e){"worklet";const{toValue:n}=t,{v0:r,x0:i,omega0:a,t:s}=e,o=Math.exp(-a*s),l=n-o*(i+(r+a*i)*s),c=o*(r*(s*a-1)+s*i*a*a);return{position:l,velocity:c}}function _b(t,e){"worklet";const{toValue:n,current:r,velocity:i}=t,{zeta:a,t:s,omega0:o,omega1:l}=e,c=-i,u=n-r,A=Math.sin(l*s),d=Math.cos(l*s),f=Math.exp(-a*o*s),p=f*(A*((c+a*o*u)/l)+u*d),h=n-p,g=a*o*p-f*(d*(c+a*o*u)-l*u*A);return{position:h,velocity:g}}function Db(t,e){"worklet";const{toValue:n,velocity:r,startValue:i,current:a}=t,s=e.overshootClamping?a>n&&i<n||a<n&&i>n:!1,o=Math.abs(r)<e.restSpeedThreshold,l=Math.abs(n-a)<e.restDisplacementThreshold;return{isOvershooting:s,isVelocity:o,isDisplacement:l}}const Qf=(t,e,n)=>{"worklet";return Ar(t,()=>{"worklet";const i={...{damping:10,mass:1,stiffness:100,overshootClamping:!1,restDisplacementThreshold:.01,restSpeedThreshold:2,velocity:0,duration:2e3,dampingRatio:.5,reduceMotion:void 0,clamp:void 0},...e,useDuration:!!(e!=null&&e.duration||e!=null&&e.dampingRatio),skipAnimation:!1};i.skipAnimation=!xb(i),i.duration===0&&(i.skipAnimation=!0);function a(l,c){const{toValue:u,startTimestamp:A,current:d}=l,f=c-A;if(i.useDuration&&f>=i.duration||i.skipAnimation)return l.current=u,l.lastTimestamp=0,!0;const{lastTimestamp:p,velocity:h}=l,g=Math.min(c-p,64);l.lastTimestamp=c;const E=g/1e3,m=-h,v=u-d,{zeta:C,omega0:y,omega1:x}=l,{position:w,velocity:S}=C<1?_b(l,{zeta:C,v0:m,x0:v,omega0:y,omega1:x,t:E}):Sb(l,{v0:m,x0:v,omega0:y,t:E});l.current=w,l.velocity=S;const{isOvershooting:D,isVelocity:I,isDisplacement:b}=Db(l,i),O=D||I&&b;return!i.useDuration&&O?(l.velocity=0,l.current=u,l.lastTimestamp=0,!0):!1}function s(l,c){return(l==null?void 0:l.lastTimestamp)&&(l==null?void 0:l.startTimestamp)&&(l==null?void 0:l.toValue)===c.toValue&&(l==null?void 0:l.duration)===c.duration&&(l==null?void 0:l.dampingRatio)===c.dampingRatio}function o(l,c,u,A){l.current=c,l.startValue=c;let d=i.mass;const f=s(A,l),p=i.duration,h=f?A==null?void 0:A.startValue:Number(l.toValue)-c;if(A?l.velocity=(f?A==null?void 0:A.velocity:(A==null?void 0:A.velocity)+i.velocity)||0:l.velocity=i.velocity||0,f)l.zeta=(A==null?void 0:A.zeta)||0,l.omega0=(A==null?void 0:A.omega0)||0,l.omega1=(A==null?void 0:A.omega1)||0;else{if(i.useDuration){const v=f?p-(((A==null?void 0:A.lastTimestamp)||0)-((A==null?void 0:A.startTimestamp)||0)):p;i.duration=v,d=bb(h,i,l.velocity)}const{zeta:g,omega0:E,omega1:m}=Ib(d,i);l.zeta=g,l.omega0=E,l.omega1=m,i.clamp!==void 0&&(l.zeta=wb(l,i.clamp))}l.lastTimestamp=(A==null?void 0:A.lastTimestamp)||u,l.startTimestamp=f&&(A==null?void 0:A.startTimestamp)||u}return{onFrame:a,onStart:o,toValue:t,velocity:i.velocity||0,current:t,startValue:0,callback:n,lastTimestamp:0,startTimestamp:0,zeta:0,omega0:0,omega1:0,reduceMotion:Nr(i.reduceMotion)}})},Tb=sn(),FC=Tb?1/20:1,RC=.1;function Ob(t){"worklet";return!!t.rubberBandEffect&&Array.isArray(t.clamp)&&t.clamp.length===2}const kb=.1;function Mb(t,e,n){"worklet";const{lastTimestamp:r,startTimestamp:i,current:a,velocity:s}=t,o=Math.min(e-r,64),l=Math.abs(a-n.clamp[0])<Math.abs(a-n.clamp[1])?0:1;let c=0;(a<n.clamp[0]||a>n.clamp[1])&&(c=a-n.clamp[l]);const u=s*Math.exp(-(1-n.deceleration)*(e-i)*RC)-c*n.rubberBandFactor;if(Math.abs(c)>kb)t.springActive=!0;else{if(t.springActive)return t.current=n.clamp[l],!0;if(Math.abs(u)<FC)return!0}return t.current=a+u*n.velocityFactor*o/1e3,t.velocity=u,t.lastTimestamp=e,!1}function Pb(t,e,n){"worklet";const{lastTimestamp:r,startTimestamp:i,initialVelocity:a,current:s,velocity:o}=t,l=Math.min(e-r,64),c=o*Math.exp(-(1-n.deceleration)*(e-i)*RC);if(t.current=s+c*n.velocityFactor*l/1e3,t.velocity=c,t.lastTimestamp=e,n.clamp){if(a<0&&t.current<=n.clamp[0])return t.current=n.clamp[0],!0;if(a>0&&t.current>=n.clamp[1])return t.current=n.clamp[1],!0}return Math.abs(c)<FC}function Fb(t){"worklet";if(t.clamp){if(!Array.isArray(t.clamp))throw new oe(`\`config.clamp\` must be an array but is ${typeof t.clamp}.`);if(t.clamp.length!==2)throw new oe(`\`clamp array\` must contain 2 items but is given ${t.clamp.length}.`)}if(t.velocityFactor<=0)throw new oe(`\`config.velocityFactor\` must be greater then 0 but is ${t.velocityFactor}.`);if(t.rubberBandEffect&&!t.clamp)throw new oe("You need to set `clamp` property when using `rubberBandEffect`.")}const Rb=function(t,e){"worklet";return Ar(0,()=>{"worklet";const n={deceleration:.998,velocityFactor:1,velocity:0,rubberBandFactor:.6};t&&Object.keys(t).forEach(a=>n[a]=t[a]);const r=Ob(n)?(a,s)=>Mb(a,s,n):(a,s)=>Pb(a,s,n);function i(a,s,o){a.current=s,a.lastTimestamp=o,a.startTimestamp=o,a.initialVelocity=n.velocity,Fb(n),a.reduceMotion&&n.clamp&&(s<n.clamp[0]?a.current=n.clamp[0]:s>n.clamp[1]&&(a.current=n.clamp[1]))}return{onFrame:r,onStart:i,callback:e,velocity:n.velocity??0,initialVelocity:0,current:0,lastTimestamp:0,startTimestamp:0,reduceMotion:Nr(n.reduceMotion)}})},Nb=function(t,e){"worklet";return Ar(e,()=>{"worklet";const n=typeof e=="function"?e():e,r=t.min===void 0?void 0:aa(t.min).strippedValue,i=t.max===void 0?void 0:aa(t.max).strippedValue;function a(l,c){const u=n.onFrame(n,c);if(n.current===void 0)return Oe.warn("Error inside 'withClamp' animation, the inner animation has invalid current value"),!0;{const{prefix:A,strippedValue:d,suffix:f}=aa(n.current);let p;i!==void 0&&i<d?p=i:r!==void 0&&r>d?p=r:p=d,l.current=typeof n.current=="number"?p:`${A===void 0?"":A}${p}${f===void 0?"":f}`}return u}function s(l,c,u,A){l.current=c,l.previousAnimation=n;const d=A==null?void 0:A.previousAnimation;t.max!==void 0&&t.min!==void 0&&t.max<t.min&&Oe.warn("Wrong config was provided to withClamp. Min value is bigger than max"),n.onStart(n,(d==null?void 0:d.current)||c,u,d)}const o=l=>{n.callback&&n.callback(l)};return{isHigherOrder:!0,onFrame:a,onStart:s,current:n.current,callback:o,previousAnimation:null,reduceMotion:Nr(t.reduceMotion)}})},ni=function(t,e,n){"worklet";return Ar(e,()=>{"worklet";const r=typeof e=="function"?e():e;function i(o,l){const{startTime:c,started:u,previousAnimation:A}=o,d=o.current;if(l-c>=t||o.reduceMotion){u||(r.onStart(r,d,l,A),o.previousAnimation=null,o.started=!0);const f=r.onFrame(r,l);return o.current=r.current,f}else if(A){const f=A.finished||A.onFrame(A,l);o.current=A.current,f&&(o.previousAnimation=null)}return!1}function a(o,l,c,u){o.startTime=c,o.started=!1,o.current=l,u===o?o.previousAnimation=u.previousAnimation:o.previousAnimation=u,r.reduceMotion===void 0&&(r.reduceMotion=o.reduceMotion)}const s=o=>{r.callback&&r.callback(o)};return{isHigherOrder:!0,onFrame:i,onStart:a,current:r.current,callback:s,previousAnimation:null,startTime:0,started:!1,reduceMotion:Nr(n)}})},Zf=function(t,e=2,n=!1,r,i){"worklet";return Ar(t,()=>{"worklet";const a=typeof t=="function"?t():t;function s(c,u){const A=a.onFrame(a,u);if(c.current=a.current,A){if(c.reps+=1,a.callback&&a.callback(!0,c.current),c.reduceMotion||e>0&&c.reps>=e)return!0;const d=n?a.current:c.startValue;return n&&(a.toValue=c.startValue,c.startValue=d),a.onStart(a,d,u,a.previousAnimation),!1}return!1}const o=c=>{r&&r(c),!c&&a.callback&&a.callback(!1)};function l(c,u,A,d){c.startValue=u,c.reps=0,a.reduceMotion===void 0&&(a.reduceMotion=c.reduceMotion),c.reduceMotion&&n&&(e<=0||e%2===0)?(c.current=c.startValue,c.onFrame=()=>!0):a.onStart(a,u,A,d)}return{isHigherOrder:!0,onFrame:s,onStart:l,reps:0,current:a.current,callback:o,startValue:0,reduceMotion:Nr(i)}})};function Fe(t,...e){"worklet";let n;return t&&(typeof t=="string"?n=t:e.unshift(t)),e.length===0?(Oe.warn("No animation was provided for the sequence"),Ar(0,()=>{"worklet";return{onStart:(r,i)=>r.current=i,onFrame:()=>!0,current:0,animationIndex:0,reduceMotion:Nr(n)}})):Ar(e[0],()=>{"worklet";const r=e.map(l=>{const c=typeof l=="function"?l():l;return c.finished=!1,c});function i(l){for(;l<r.length-1&&r[l].reduceMotion;)l++;return l}const a=l=>{l||r.forEach(c=>{typeof c.callback=="function"&&!c.finished&&c.callback(l)})};function s(l,c){const u=r[l.animationIndex],A=u.onFrame(u,c);if(l.current=u.current,A){if(u.callback&&u.callback(!0),u.finished=!0,l.animationIndex=i(l.animationIndex+1),l.animationIndex<r.length){const d=r[l.animationIndex];return d.onStart(d,u.current,c,u),!1}return!0}return!1}function o(l,c,u,A){r.forEach(f=>{f.reduceMotion===void 0&&(f.reduceMotion=l.reduceMotion)}),l.animationIndex=i(0),A===void 0&&(A=r[r.length-1]);const d=r[l.animationIndex];d.onStart(d,c,u,A)}return{isHigherOrder:!0,onFrame:s,onStart:o,animationIndex:0,current:r[0].current,callback:a,reduceMotion:Nr(n)}})}class Pi{constructor(){F(this,"reduceMotionV",on.System);F(this,"randomizeDelay",!1);F(this,"build",()=>{throw new oe("Unimplemented method in child class.")})}static duration(e){return this.createInstance().duration(e)}duration(e){return this.durationV=e,this}static delay(e){return this.createInstance().delay(e)}delay(e){return this.delayV=e,this}static withCallback(e){return this.createInstance().withCallback(e)}withCallback(e){return this.callbackV=e,this}static reduceMotion(e){return this.createInstance().reduceMotion(e)}reduceMotion(e){return this.reduceMotionV=e,this}static getDuration(){return 300}getDuration(){return this.durationV??300}static randomDelay(){return this.createInstance().randomDelay()}randomDelay(){return this.randomizeDelay=!0,this}getDelay(){return this.randomizeDelay?Math.random()*(this.delayV??1e3):this.delayV??0}getReduceMotion(){return this.reduceMotionV}getDelayFunction(){const e=this.randomizeDelay||this.delayV,n=this.getReduceMotion();return e?(r,i)=>{"worklet";return ni(r,i,n)}:(r,i)=>{"worklet";return i.reduceMotion=tr(n),i}}static build(){return this.createInstance().build()}}class ee extends Pi{static easing(e){return this.createInstance().easing(e)}easing(e){return this.easingV=e,this}static rotate(e){return this.createInstance().rotate(e)}rotate(e){return this.rotateV=e,this}static springify(e){return this.createInstance().springify(e)}springify(e){return this.durationV=e,this.type=Qf,this}static dampingRatio(e){return this.createInstance().dampingRatio(e)}dampingRatio(e){return this.dampingRatioV=e,this}static damping(e){return this.createInstance().damping(e)}damping(e){return this.dampingV=e,this}static mass(e){return this.createInstance().mass(e)}mass(e){return this.massV=e,this}static stiffness(e){return this.createInstance().stiffness(e)}stiffness(e){return this.stiffnessV=e,this}static overshootClamping(e){return this.createInstance().overshootClamping(e)}overshootClamping(e){return this.overshootClampingV=e,this}static restDisplacementThreshold(e){return this.createInstance().restDisplacementThreshold(e)}restDisplacementThreshold(e){return this.restDisplacementThresholdV=e,this}static restSpeedThreshold(e){return this.createInstance().restSpeedThreshold(e)}restSpeedThreshold(e){return this.restSpeedThresholdV=e,this}static withInitialValues(e){return this.createInstance().withInitialValues(e)}withInitialValues(e){return this.initialValues=e,this}getAnimationAndConfig(){const e=this.durationV,n=this.easingV,r=this.rotateV,i=this.type?this.type:j,a=this.dampingV,s=this.dampingRatioV,o=this.massV,l=this.stiffnessV,c=this.overshootClampingV,u=this.restDisplacementThresholdV,A=this.restSpeedThresholdV,d=i,f={};function p(h,g){h&&(f[g]=h)}return i===j&&p(n,"easing"),[{variableName:"damping",value:a},{variableName:"dampingRatio",value:s},{variableName:"mass",value:o},{variableName:"stiffness",value:l},{variableName:"overshootClamping",value:c},{variableName:"restDisplacementThreshold",value:u},{variableName:"restSpeedThreshold",value:A},{variableName:"duration",value:e},{variableName:"rotate",value:r}].forEach(({value:h,variableName:g})=>p(h,g)),[d,f]}}class Bb{constructor(e){F(this,"reduceMotionV",on.System);F(this,"build",()=>{const e=this.delayV,n=this.getDelayFunction(),{keyframes:r,initialValues:i}=this.parseDefinitions(),a=this.callbackV;return()=>{"worklet";const s={},o=l=>{const c=r[l];if(c.length===0)return;const u=n(e,c.length===1?j(c[0].value,{duration:c[0].duration,easing:c[0].easing?c[0].easing:Ze.linear}):Fe(...c.map(A=>j(A.value,{duration:A.duration,easing:A.easing?A.easing:Ze.linear}))));l.includes("transform")?("transform"in s||(s.transform=[]),s.transform.push({[l.split(":")[1]]:u})):s[l]=u};return Object.keys(i).forEach(l=>{l.includes("transform")?i[l].forEach((c,u)=>{Object.keys(c).forEach(A=>{o(Eu(u,A))})}):o(l)}),{animations:s,initialValues:i,callback:a}}});this.definitions=e}parseDefinitions(){const e={};if(this.definitions.from){if(this.definitions[0])throw new oe("You cannot provide both keyframe 0 and 'from' as they both specified initial values.");this.definitions[0]=this.definitions.from,delete this.definitions.from}if(this.definitions.to){if(this.definitions[100])throw new oe("You cannot provide both keyframe 100 and 'to' as they both specified values at the end of the animation.");this.definitions[100]=this.definitions.to,delete this.definitions.to}if(!this.definitions[0])throw new oe("Please provide 0 or 'from' keyframe with initial state of your object.");const n=this.definitions[0];Object.keys(n).forEach(o=>{if(o==="transform"){if(!Array.isArray(n.transform))return;n.transform.forEach((l,c)=>{Object.keys(l).forEach(u=>{e[Eu(c,u)]=[]})})}else e[o]=[]});const r=this.durationV?this.durationV:500,i=Array.from(Object.keys(this.definitions)).map(Number),a=(o,l)=>{const c=l/100*r,u=e[o].reduce((A,d)=>A+d.duration,0);return c-u},s=({key:o,value:l,currentKeyPoint:c,easing:u})=>{if(!(o in e))throw new oe("Keyframe can contain only that set of properties that were provide with initial values (keyframe 0 or 'from')");e[o].push({duration:a(o,c),value:l,easing:u})};return i.filter(o=>o!==0).sort((o,l)=>o-l).forEach(o=>{if(o<0||o>100)throw new oe("Keyframe should be in between range 0 - 100.");const l=this.definitions[o],c=l.easing;delete l.easing;const u=(A,d)=>s({key:A,value:d,currentKeyPoint:o,easing:c});Object.keys(l).forEach(A=>{if(A==="transform"){if(!Array.isArray(l.transform))return;l.transform.forEach((d,f)=>{Object.keys(d).forEach(p=>{u(Eu(f,p),d[p])})})}else u(A,l[A])})}),{initialValues:n,keyframes:e}}duration(e){return this.durationV=e,this}delay(e){return this.delayV=e,this}withCallback(e){return this.callbackV=e,this}reduceMotion(e){return this.reduceMotionV=e,this}getDelayFunction(){const e=this.delayV,n=this.reduceMotionV;return e?(r,i)=>{"worklet";return ni(r,i,n)}:(r,i)=>{"worklet";return i.reduceMotion=tr(n),i}}}function Eu(t,e){"worklet";return`${t}_transform:${e}`}const Jf=Bb;let Je=function(t){return t[t.ENTERING=1]="ENTERING",t[t.EXITING=2]="EXITING",t[t.LAYOUT=3]="LAYOUT",t[t.SHARED_ELEMENT_TRANSITION=4]="SHARED_ELEMENT_TRANSITION",t[t.SHARED_ELEMENT_TRANSITION_PROGRESS=5]="SHARED_ELEMENT_TRANSITION_PROGRESS",t}({}),Gb=function(t){return t.ANIMATION="animation",t.PROGRESS_ANIMATION="progressAnimation",t}({});var Lb=function(t,e,n,r,i,a,s,o){if(!t){var l;if(e===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,s,o],u=0;l=new Error(e.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},Vb=Lb;const Qo=Ur(Vb),Hb=nt();function Ub(){for(const t in Et.NATIVE_THREAD_PROPS_WHITELIST)if(t in Et.UI_THREAD_PROPS_WHITELIST)throw new oe(`Property \`${t}\` was whitelisted both as UI and native prop. Please remove it from one of the lists.`)}function Zc(){Ub(),Ow(Object.keys(Et.UI_THREAD_PROPS_WHITELIST),Object.keys(Et.NATIVE_THREAD_PROPS_WHITELIST))}function eh(t){const e=Object.keys(Et.NATIVE_THREAD_PROPS_WHITELIST).length;Et.NATIVE_THREAD_PROPS_WHITELIST={...Et.NATIVE_THREAD_PROPS_WHITELIST,...t},e!==Object.keys(Et.NATIVE_THREAD_PROPS_WHITELIST).length&&Zc()}function NC(t){const e=Object.keys(Et.UI_THREAD_PROPS_WHITELIST).length;Et.UI_THREAD_PROPS_WHITELIST={...Et.UI_THREAD_PROPS_WHITELIST,...t},e!==Object.keys(Et.UI_THREAD_PROPS_WHITELIST).length&&Zc()}function Wb(t){up(t),Hb||ra(up)(t)}const bp=new Set;function BC(t){const e=t.uiViewClassName,n=t.validAttributes;if(!bp.has(e)){const r={};Object.keys(n).forEach(i=>{!(i in Et.NATIVE_THREAD_PROPS_WHITELIST)&&!(i in Et.UI_THREAD_PROPS_WHITELIST)&&(r[i]=!0)}),NC(r),bp.add(e)}}Zc();const Xb={},Il=class Il extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateX:"90deg"},{translateY:-l.targetHeight}],...o},animations:{transform:[{perspective:500},{rotateX:n(a,r("0deg",i))},{translateY:n(a,r(0,i))}]},callback:s}}})}static createInstance(){return new Il}};F(Il,"presetName","FlipInXUp");let Jd=Il;const wl=class wl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateY:"-90deg"},{translateX:-l.targetWidth}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateY:n(a,r("0deg",i))},{translateX:n(a,r(0,i))}]},callback:s}}})}static createInstance(){return new wl}};F(wl,"presetName","FlipInYLeft");let e0=wl;const bl=class bl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateX:"-90deg"},{translateY:l.targetHeight}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateX:n(a,r("0deg",i))},{translateY:n(a,r(0,i))}]},callback:s}}})}static createInstance(){return new bl}};F(bl,"presetName","FlipInXDown");let t0=bl;const Sl=class Sl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateY:"90deg"},{translateX:l.targetWidth}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateY:n(a,r("0deg",i))},{translateX:n(a,r(0,i))}]},callback:s}}})}static createInstance(){return new Sl}};F(Sl,"presetName","FlipInYRight");let n0=Sl;const _l=class _l extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateX:"90deg"}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateX:n(a,r("0deg",i))}]},callback:s}}})}static createInstance(){return new _l}};F(_l,"presetName","FlipInEasyX");let r0=_l;const Dl=class Dl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateY:"90deg"}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateY:n(a,r("0deg",i))}]},callback:s}}})}static createInstance(){return new Dl}};F(Dl,"presetName","FlipInEasyY");let i0=Dl;const Tl=class Tl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateX:"0deg"},{translateY:0}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateX:n(a,r("90deg",i))},{translateY:n(a,r(-l.currentHeight,i))}]},callback:s}}})}static createInstance(){return new Tl}};F(Tl,"presetName","FlipOutXUp");let a0=Tl;const Ol=class Ol extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateY:"0deg"},{translateX:0}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateY:n(a,r("-90deg",i))},{translateX:n(a,r(-l.currentWidth,i))}]},callback:s}}})}static createInstance(){return new Ol}};F(Ol,"presetName","FlipOutYLeft");let s0=Ol;const kl=class kl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateX:"0deg"},{translateY:0}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateX:n(a,r("-90deg",i))},{translateY:n(a,r(l.currentHeight,i))}]},callback:s}}})}static createInstance(){return new kl}};F(kl,"presetName","FlipOutXDown");let o0=kl;const Ml=class Ml extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateY:"0deg"},{translateX:0}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateY:n(a,r("90deg",i))},{translateX:n(a,r(l.currentWidth,i))}]},callback:s}}})}static createInstance(){return new Ml}};F(Ml,"presetName","FlipOutYRight");let l0=Ml;const Pl=class Pl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateX:"0deg"}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateX:n(a,r("90deg",i))}]},callback:s}}})}static createInstance(){return new Pl}};F(Pl,"presetName","FlipOutEasyX");let c0=Pl;const Fl=class Fl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateY:"0deg"}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateY:n(a,r("90deg",i))}]},callback:s}}})}static createInstance(){return new Fl}};F(Fl,"presetName","FlipOutEasyY");let u0=Fl;const Rl=class Rl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scaleX:n(a,r(1,i))}]},initialValues:{transform:[{scaleX:0}],...o},callback:s}}})}static createInstance(){return new Rl}};F(Rl,"presetName","StretchInX");let d0=Rl;const Nl=class Nl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scaleY:n(a,r(1,i))}]},initialValues:{transform:[{scaleY:0}],...o},callback:s}}})}static createInstance(){return new Nl}};F(Nl,"presetName","StretchInY");let A0=Nl;const Bl=class Bl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scaleX:n(a,r(0,i))}]},initialValues:{transform:[{scaleX:1}],...o},callback:s}}})}static createInstance(){return new Bl}};F(Bl,"presetName","StretchOutX");let f0=Bl;const Gl=class Gl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scaleY:n(a,r(0,i))}]},initialValues:{transform:[{scaleY:1}],...o},callback:s}}})}static createInstance(){return new Gl}};F(Gl,"presetName","StretchOutY");let h0=Gl;var ci;let th=(ci=class extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(1,i))},initialValues:{opacity:0,...s},callback:a}}})}static createInstance(){return new ci}},F(ci,"presetName","FadeIn"),ci);const Ll=class Ll extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(1,i)),transform:[{translateX:n(o,r(0,i))}]},initialValues:{opacity:0,transform:[{translateX:25}],...s},callback:a}}})}static createInstance(){return new Ll}};F(Ll,"presetName","FadeInRight");let p0=Ll;const Vl=class Vl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(1,i)),transform:[{translateX:n(o,r(0,i))}]},initialValues:{opacity:0,transform:[{translateX:-25}],...s},callback:a}}})}static createInstance(){return new Vl}};F(Vl,"presetName","FadeInLeft");let g0=Vl;const Hl=class Hl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(1,i)),transform:[{translateY:n(o,r(0,i))}]},initialValues:{opacity:0,transform:[{translateY:-25}],...s},callback:a}}})}static createInstance(){return new Hl}};F(Hl,"presetName","FadeInUp");let v0=Hl;const Ul=class Ul extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(1,i)),transform:[{translateY:n(o,r(0,i))}]},initialValues:{opacity:0,transform:[{translateY:25}],...s},callback:a}}})}static createInstance(){return new Ul}};F(Ul,"presetName","FadeInDown");let m0=Ul;var ui;let nh=(ui=class extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(0,i))},initialValues:{opacity:1,...s},callback:a}}})}static createInstance(){return new ui}},F(ui,"presetName","FadeOut"),ui);const Wl=class Wl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(0,i)),transform:[{translateX:n(o,r(25,i))}]},initialValues:{opacity:1,transform:[{translateX:0}],...s},callback:a}}})}static createInstance(){return new Wl}};F(Wl,"presetName","FadeOutRight");let C0=Wl;const Xl=class Xl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(0,i)),transform:[{translateX:n(o,r(-25,i))}]},initialValues:{opacity:1,transform:[{translateX:0}],...s},callback:a}}})}static createInstance(){return new Xl}};F(Xl,"presetName","FadeOutLeft");let E0=Xl;const Yl=class Yl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(0,i)),transform:[{translateY:n(o,r(-25,i))}]},initialValues:{opacity:1,transform:[{translateY:0}],...s},callback:a}}})}static createInstance(){return new Yl}};F(Yl,"presetName","FadeOutUp");let x0=Yl;const zl=class zl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(0,i)),transform:[{translateY:n(o,r(25,i))}]},initialValues:{opacity:1,transform:[{translateY:0}],...s},callback:a}}})}static createInstance(){return new zl}};F(zl,"presetName","FadeOutDown");let y0=zl;const ql=class ql extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{originX:n(a,r(l.targetOriginX,i))},initialValues:{originX:l.targetOriginX+l.windowWidth,...o},callback:s}}})}static createInstance(){return new ql}};F(ql,"presetName","SlideInRight");let I0=ql;const Kl=class Kl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{originX:n(a,r(l.targetOriginX,i))},initialValues:{originX:l.targetOriginX-l.windowWidth,...o},callback:s}}})}static createInstance(){return new Kl}};F(Kl,"presetName","SlideInLeft");let w0=Kl;const $l=class $l extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{originX:n(a,r(Math.max(l.currentOriginX+l.windowWidth,l.windowWidth),i))},initialValues:{originX:l.currentOriginX,...o},callback:s}}})}static createInstance(){return new $l}};F($l,"presetName","SlideOutRight");let b0=$l;const jl=class jl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{originX:n(a,r(Math.min(l.currentOriginX-l.windowWidth,-l.windowWidth),i))},initialValues:{originX:l.currentOriginX,...o},callback:s}}})}static createInstance(){return new jl}};F(jl,"presetName","SlideOutLeft");let S0=jl;const Ql=class Ql extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{originY:n(a,r(l.targetOriginY,i))},initialValues:{originY:-l.windowHeight,...o},callback:s}}})}static createInstance(){return new Ql}};F(Ql,"presetName","SlideInUp");let _0=Ql;const Zl=class Zl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{originY:n(a,r(l.targetOriginY,i))},initialValues:{originY:l.targetOriginY+l.windowHeight,...o},callback:s}}})}static createInstance(){return new Zl}};F(Zl,"presetName","SlideInDown");let _i=Zl;const Jl=class Jl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{originY:n(a,r(Math.min(l.currentOriginY-l.windowHeight,-l.windowHeight),i))},initialValues:{originY:l.currentOriginY,...o},callback:s}}})}static createInstance(){return new Jl}};F(Jl,"presetName","SlideOutUp");let D0=Jl;const ec=class ec extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{originY:n(a,r(Math.max(l.currentOriginY+l.windowHeight,l.windowHeight),i))},initialValues:{originY:l.currentOriginY,...o},callback:s}}})}static createInstance(){return new ec}};F(ec,"presetName","SlideOutDown");let Is=ec;var di;let Yb=(di=class extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scale:n(a,r(1,i))}]},initialValues:{transform:[{scale:0}],...o},callback:s}}})}static createInstance(){return new di}},F(di,"presetName","ZoomIn"),di);const tc=class tc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.rotateV?this.rotateV:"0.3",o=this.callbackV,l=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scale:n(a,r(1,i))},{rotate:n(a,r(0,i))}]},initialValues:{transform:[{scale:0},{rotate:s}],...l},callback:o}}})}static createInstance(){return new tc}};F(tc,"presetName","ZoomInRotate");let T0=tc;const nc=class nc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateX:n(a,r(0,i))},{scale:n(a,r(1,i))}]},initialValues:{transform:[{translateX:-l.windowWidth},{scale:0}],...o},callback:s}}})}static createInstance(){return new nc}};F(nc,"presetName","ZoomInLeft");let O0=nc;const rc=class rc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateX:n(a,r(0,i))},{scale:n(a,r(1,i))}]},initialValues:{transform:[{translateX:l.windowWidth},{scale:0}],...o},callback:s}}})}static createInstance(){return new rc}};F(rc,"presetName","ZoomInRight");let k0=rc;const ic=class ic extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateY:n(a,r(0,i))},{scale:n(a,r(1,i))}]},initialValues:{transform:[{translateY:-l.windowHeight},{scale:0}],...o},callback:s}}})}static createInstance(){return new ic}};F(ic,"presetName","ZoomInUp");let M0=ic;const ac=class ac extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateY:n(a,r(0,i))},{scale:n(a,r(1,i))}]},initialValues:{transform:[{translateY:l.windowHeight},{scale:0}],...o},callback:s}}})}static createInstance(){return new ac}};F(ac,"presetName","ZoomInDown");let P0=ac;const sc=class sc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateY:n(a,r(0,i))},{scale:n(a,r(1,i))}]},initialValues:{transform:[{translateY:-l.targetHeight},{scale:0}],...o},callback:s}}})}static createInstance(){return new sc}};F(sc,"presetName","ZoomInEasyUp");let F0=sc;const oc=class oc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateY:n(a,r(0,i))},{scale:n(a,r(1,i))}]},initialValues:{transform:[{translateY:l.targetHeight},{scale:0}],...o},callback:s}}})}static createInstance(){return new oc}};F(oc,"presetName","ZoomInEasyDown");let R0=oc;var Ai;let zb=(Ai=class extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scale:n(a,r(0,i))}]},initialValues:{transform:[{scale:1}],...o},callback:s}}})}static createInstance(){return new Ai}},F(Ai,"presetName","ZoomOut"),Ai);const lc=class lc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.rotateV?this.rotateV:"0.3",o=this.callbackV,l=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scale:n(a,r(0,i))},{rotate:n(a,r(s,i))}]},initialValues:{transform:[{scale:1},{rotate:"0"}],...l},callback:o}}})}static createInstance(){return new lc}};F(lc,"presetName","ZoomOutRotate");let N0=lc;const cc=class cc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateX:n(a,r(-l.windowWidth,i))},{scale:n(a,r(0,i))}]},initialValues:{transform:[{translateX:0},{scale:1}],...o},callback:s}}})}static createInstance(){return new cc}};F(cc,"presetName","ZoomOutLeft");let B0=cc;const uc=class uc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateX:n(a,r(l.windowWidth,i))},{scale:n(a,r(0,i))}]},initialValues:{transform:[{translateX:0},{scale:1}],...o},callback:s}}})}static createInstance(){return new uc}};F(uc,"presetName","ZoomOutRight");let G0=uc;const dc=class dc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateY:n(a,r(-l.windowHeight,i))},{scale:n(a,r(0,i))}]},initialValues:{transform:[{translateY:0},{scale:1}],...o},callback:s}}})}static createInstance(){return new dc}};F(dc,"presetName","ZoomOutUp");let L0=dc;const Ac=class Ac extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateY:n(a,r(l.windowHeight,i))},{scale:n(a,r(0,i))}]},initialValues:{transform:[{translateY:0},{scale:1}],...o},callback:s}}})}static createInstance(){return new Ac}};F(Ac,"presetName","ZoomOutDown");let V0=Ac;const fc=class fc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateY:n(a,r(-l.currentHeight,i))},{scale:n(a,r(0,i))}]},initialValues:{transform:[{translateY:0},{scale:1}],...o},callback:s}}})}static createInstance(){return new fc}};F(fc,"presetName","ZoomOutEasyUp");let H0=fc;const hc=class hc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateY:n(a,r(l.currentHeight,i))},{scale:n(a,r(0,i))}]},initialValues:{transform:[{translateY:0},{scale:1}],...o},callback:s}}})}static createInstance(){return new hc}};F(hc,"presetName","ZoomOutEasyDown");let U0=hc;var fi;let qb=(fi=class extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scale:n(r,Fe(j(1.2,{duration:i*.55}),j(.9,{duration:i*.15}),j(1.1,{duration:i*.15}),j(1,{duration:i*.15})))}]},initialValues:{transform:[{scale:0}],...s},callback:a}}})}static createInstance(){return new fi}static getDuration(){return 600}getDuration(){return this.durationV??600}},F(fi,"presetName","BounceIn"),fi);const pc=class pc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return o=>{"worklet";return{animations:{transform:[{translateY:n(r,Fe(j(-20,{duration:i*.55}),j(10,{duration:i*.15}),j(-10,{duration:i*.15}),j(0,{duration:i*.15})))}]},initialValues:{transform:[{translateY:o.windowHeight}],...s},callback:a}}})}static createInstance(){return new pc}static getDuration(){return 600}getDuration(){return this.durationV??600}};F(pc,"presetName","BounceInDown");let W0=pc;const gc=class gc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return o=>{"worklet";return{animations:{transform:[{translateY:n(r,Fe(j(20,{duration:i*.55}),j(-10,{duration:i*.15}),j(10,{duration:i*.15}),j(0,{duration:i*.15})))}]},initialValues:{transform:[{translateY:-o.windowHeight}],...s},callback:a}}})}static createInstance(){return new gc}static getDuration(){return 600}getDuration(){return this.durationV??600}};F(gc,"presetName","BounceInUp");let X0=gc;const vc=class vc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return o=>{"worklet";return{animations:{transform:[{translateX:n(r,Fe(j(20,{duration:i*.55}),j(-10,{duration:i*.15}),j(10,{duration:i*.15}),j(0,{duration:i*.15})))}]},initialValues:{transform:[{translateX:-o.windowWidth}],...s},callback:a}}})}static createInstance(){return new vc}static getDuration(){return 600}getDuration(){return this.durationV??600}};F(vc,"presetName","BounceInLeft");let Y0=vc;const mc=class mc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return o=>{"worklet";return{animations:{transform:[{translateX:n(r,Fe(j(-20,{duration:i*.55}),j(10,{duration:i*.15}),j(-10,{duration:i*.15}),j(0,{duration:i*.15})))}]},initialValues:{transform:[{translateX:o.windowWidth}],...s},callback:a}}})}static createInstance(){return new mc}static getDuration(){return 600}getDuration(){return this.durationV??600}};F(mc,"presetName","BounceInRight");let z0=mc;var hi;let Kb=(hi=class extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scale:n(r,Fe(j(1.1,{duration:i*.15}),j(.9,{duration:i*.15}),j(1.2,{duration:i*.15}),j(0,{duration:i*.55})))}]},initialValues:{transform:[{scale:1}],...s},callback:a}}})}static createInstance(){return new hi}static getDuration(){return 600}getDuration(){return this.durationV??600}},F(hi,"presetName","BounceOut"),hi);const Cc=class Cc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return o=>{"worklet";return{animations:{transform:[{translateY:n(r,Fe(j(-10,{duration:i*.15}),j(10,{duration:i*.15}),j(-20,{duration:i*.15}),j(o.windowHeight,{duration:i*.55})))}]},initialValues:{transform:[{translateY:0}],...s},callback:a}}})}static createInstance(){return new Cc}static getDuration(){return 600}getDuration(){return this.durationV??600}};F(Cc,"presetName","BounceOutDown");let q0=Cc;const Ec=class Ec extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return o=>{"worklet";return{animations:{transform:[{translateY:n(r,Fe(j(10,{duration:i*.15}),j(-10,{duration:i*.15}),j(20,{duration:i*.15}),j(-o.windowHeight,{duration:i*.55})))}]},initialValues:{transform:[{translateY:0}],...s},callback:a}}})}static createInstance(){return new Ec}static getDuration(){return 600}getDuration(){return this.durationV??600}};F(Ec,"presetName","BounceOutUp");let K0=Ec;const xc=class xc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return o=>{"worklet";return{animations:{transform:[{translateX:n(r,Fe(j(10,{duration:i*.15}),j(-10,{duration:i*.15}),j(20,{duration:i*.15}),j(-o.windowWidth,{duration:i*.55})))}]},initialValues:{transform:[{translateX:0}],...s},callback:a}}})}static createInstance(){return new xc}static getDuration(){return 600}getDuration(){return this.durationV??600}};F(xc,"presetName","BounceOutLeft");let $0=xc;const yc=class yc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return o=>{"worklet";return{animations:{transform:[{translateX:n(r,Fe(j(-10,{duration:i*.15}),j(10,{duration:i*.15}),j(-20,{duration:i*.15}),j(o.windowWidth,{duration:i*.55})))}]},initialValues:{transform:[{translateX:0}],...s},callback:a}}})}static createInstance(){return new yc}static getDuration(){return 600}getDuration(){return this.durationV??600}};F(yc,"presetName","BounceOutRight");let j0=yc;const Ic=class Ic extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.getDuration(),o=this.callbackV,l=this.initialValues;return c=>{"worklet";return{animations:{opacity:n(a,j(1,{duration:s})),transform:[{translateX:n(a,r(0,{...i,duration:s*.7}))},{skewX:n(a,Fe(j("10deg",{duration:s*.7}),j("-5deg",{duration:s*.15}),j("0deg",{duration:s*.15})))}]},initialValues:{opacity:0,transform:[{translateX:c.windowWidth},{skewX:"-45deg"}],...l},callback:o}}})}static createInstance(){return new Ic}};F(Ic,"presetName","LightSpeedInRight");let Q0=Ic;const wc=class wc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.getDuration(),o=this.callbackV,l=this.initialValues;return c=>{"worklet";return{animations:{opacity:n(a,j(1,{duration:s})),transform:[{translateX:n(a,r(0,{...i,duration:s*.7}))},{skewX:n(a,Fe(j("-10deg",{duration:s*.7}),j("5deg",{duration:s*.15}),j("0deg",{duration:s*.15})))}]},initialValues:{opacity:0,transform:[{translateX:-c.windowWidth},{skewX:"45deg"}],...l},callback:o}}})}static createInstance(){return new wc}};F(wc,"presetName","LightSpeedInLeft");let Z0=wc;const bc=class bc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(0,i)),transform:[{translateX:n(a,r(l.windowWidth,i))},{skewX:n(a,r("-45deg",i))}]},initialValues:{opacity:1,transform:[{translateX:0},{skewX:"0deg"}],...o},callback:s}}})}static createInstance(){return new bc}};F(bc,"presetName","LightSpeedOutRight");let J0=bc;const Sc=class Sc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(0,i)),transform:[{translateX:n(a,r(-l.windowWidth,i))},{skewX:n(a,r("45deg",i))}]},initialValues:{opacity:1,transform:[{translateX:0},{skewX:"0deg"}],...o},callback:s}}})}static createInstance(){return new Sc}};F(Sc,"presetName","LightSpeedOutLeft");let eA=Sc;const _c=class _c extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{animations:{opacity:n(a,r(1,i)),transform:[{scale:n(a,r(1,i))},{rotate:n(a,r("0",i))}]},initialValues:{opacity:0,transform:[{scale:0},{rotate:"5"}],...o},callback:s}}})}static createInstance(){return new _c}};F(_c,"presetName","PinwheelIn");let tA=_c;const Dc=class Dc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{animations:{opacity:n(a,r(0,i)),transform:[{scale:n(a,r(0,i))},{rotate:n(a,r("5",i))}]},initialValues:{opacity:1,transform:[{scale:1},{rotate:"0"}],...o},callback:s}}})}static createInstance(){return new Dc}};F(Dc,"presetName","PinwheelOut");let nA=Dc;const Tc=class Tc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(1,i)),transform:[{rotate:n(a,r("0deg",i))},{translateX:n(a,r(0,i))},{translateY:n(a,r(0,i))}]},initialValues:{opacity:0,transform:[{rotate:"-90deg"},{translateX:l.targetWidth/2-l.targetHeight/2},{translateY:-(l.targetWidth/2-l.targetHeight/2)}],...o},callback:s}}})}static createInstance(){return new Tc}};F(Tc,"presetName","RotateInDownLeft");let rA=Tc;const Oc=class Oc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(1,i)),transform:[{rotate:n(a,r("0deg",i))},{translateX:n(a,r(0,i))},{translateY:n(a,r(0,i))}]},initialValues:{opacity:0,transform:[{rotate:"90deg"},{translateX:-(l.targetWidth/2-l.targetHeight/2)},{translateY:-(l.targetWidth/2-l.targetHeight/2)}],...o},callback:s}}})}static createInstance(){return new Oc}};F(Oc,"presetName","RotateInDownRight");let iA=Oc;const kc=class kc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(1,i)),transform:[{rotate:n(a,r("0deg",i))},{translateX:n(a,r(0,i))},{translateY:n(a,r(0,i))}]},initialValues:{opacity:0,transform:[{rotate:"90deg"},{translateX:l.targetWidth/2-l.targetHeight/2},{translateY:l.targetWidth/2-l.targetHeight/2}],...o},callback:s}}})}static createInstance(){return new kc}};F(kc,"presetName","RotateInUpLeft");let aA=kc;const Mc=class Mc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(1,i)),transform:[{rotate:n(a,r("0deg",i))},{translateX:n(a,r(0,i))},{translateY:n(a,r(0,i))}]},initialValues:{opacity:0,transform:[{rotate:"-90deg"},{translateX:-(l.targetWidth/2-l.targetHeight/2)},{translateY:l.targetWidth/2-l.targetHeight/2}],...o},callback:s}}})}static createInstance(){return new Mc}};F(Mc,"presetName","RotateInUpRight");let sA=Mc;const Pc=class Pc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(0,i)),transform:[{rotate:n(a,r("90deg",i))},{translateX:n(a,r(l.currentWidth/2-l.currentHeight/2,i))},{translateY:n(a,r(l.currentWidth/2-l.currentHeight/2,i))}]},initialValues:{opacity:1,transform:[{rotate:"0deg"},{translateX:0},{translateY:0}],...o},callback:s}}})}static createInstance(){return new Pc}};F(Pc,"presetName","RotateOutDownLeft");let oA=Pc;const Fc=class Fc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(0,i)),transform:[{rotate:n(a,r("-90deg",i))},{translateX:n(a,r(-(l.currentWidth/2-l.currentHeight/2),i))},{translateY:n(a,r(l.currentWidth/2-l.currentHeight/2,i))}]},initialValues:{opacity:1,transform:[{rotate:"0deg"},{translateX:0},{translateY:0}],...o},callback:s}}})}static createInstance(){return new Fc}};F(Fc,"presetName","RotateOutDownRight");let lA=Fc;const Rc=class Rc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(0,i)),transform:[{rotate:n(a,r("-90deg",i))},{translateX:n(a,r(l.currentWidth/2-l.currentHeight/2,i))},{translateY:n(a,r(-(l.currentWidth/2-l.currentHeight/2),i))}]},initialValues:{opacity:1,transform:[{rotate:"0deg"},{translateX:0},{translateY:0}],...o},callback:s}}})}static createInstance(){return new Rc}};F(Rc,"presetName","RotateOutUpLeft");let cA=Rc;const Nc=class Nc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(0,i)),transform:[{rotate:n(a,r("90deg",i))},{translateX:n(a,r(-(l.currentWidth/2-l.currentHeight/2),i))},{translateY:n(a,r(-(l.currentWidth/2-l.currentHeight/2),i))}]},initialValues:{opacity:1,transform:[{rotate:"0deg"},{translateX:0},{translateY:0}],...o},callback:s}}})}static createInstance(){return new Nc}};F(Nc,"presetName","RotateOutUpRight");let uA=Nc;const Bc=class Bc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateX:n(a,r(0,i))},{rotate:n(a,r("0deg",i))}]},initialValues:{transform:[{translateX:-l.windowWidth},{rotate:"-180deg"}],...o},callback:s}}})}static createInstance(){return new Bc}};F(Bc,"presetName","RollInLeft");let dA=Bc;const Gc=class Gc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateX:n(a,r(0,i))},{rotate:n(a,r("0deg",i))}]},initialValues:{transform:[{translateX:l.windowWidth},{rotate:"180deg"}],...o},callback:s}}})}static createInstance(){return new Gc}};F(Gc,"presetName","RollInRight");let AA=Gc;const Lc=class Lc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateX:n(a,r(-l.windowWidth,i))},{rotate:n(a,r("-180deg",i))}]},initialValues:{transform:[{translateX:0},{rotate:"0deg"}],...o},callback:s}}})}static createInstance(){return new Lc}};F(Lc,"presetName","RollOutLeft");let fA=Lc;const Vc=class Vc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateX:n(a,r(l.windowWidth,i))},{rotate:n(a,r("180deg",i))}]},initialValues:{transform:[{translateX:0},{rotate:"0deg"}],...o},callback:s}}})}static createInstance(){return new Vc}};F(Vc,"presetName","RollOutRight");let hA=Vc;var pi;let GC=(pi=class extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.getDelay();return o=>{"worklet";return{initialValues:{originX:o.currentOriginX,originY:o.currentOriginY,width:o.currentWidth,height:o.currentHeight},animations:{originX:n(s,r(o.targetOriginX,i)),originY:n(s,r(o.targetOriginY,i)),width:n(s,r(o.targetWidth,i)),height:n(s,r(o.targetHeight,i))},callback:a}}})}static createInstance(){return new pi}},F(pi,"presetName","LinearTransition"),pi);const $b=GC;var gi;let jb=(gi=class extends Pi{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.callbackV,i=this.getDelay(),a=(this.durationV??500)/2;return s=>{"worklet";return{initialValues:{opacity:1,originX:s.currentOriginX,originY:s.currentOriginY,width:s.currentWidth,height:s.currentHeight},animations:{opacity:n(i,Fe(j(0,{duration:a}),j(1,{duration:a}))),originX:ni(i+a,j(s.targetOriginX,{duration:0})),originY:ni(i+a,j(s.targetOriginY,{duration:0})),width:ni(i+a,j(s.targetWidth,{duration:0})),height:ni(i+a,j(s.targetHeight,{duration:0}))},callback:r}}})}static createInstance(){return new gi}},F(gi,"presetName","FadingTransition"),gi);var Mr;let Qb=(Mr=class extends Pi{constructor(){super(...arguments);F(this,"reversed",!1);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.callbackV,i=this.getDelay(),s={duration:(this.durationV??500)/2},o=this.reversed;return l=>{"worklet";return{initialValues:{originX:l.currentOriginX,originY:l.currentOriginY,width:l.currentWidth,height:l.currentHeight},animations:{originX:n(i,Fe(j(o?l.currentOriginX:l.targetOriginX,s),j(l.targetOriginX,s))),originY:n(i,Fe(j(o?l.targetOriginY:l.currentOriginY,s),j(l.targetOriginY,s))),width:n(i,Fe(j(o?l.currentWidth:l.targetWidth,s),j(l.targetWidth,s))),height:n(i,Fe(j(o?l.targetHeight:l.currentHeight,s),j(l.targetHeight,s)))},callback:r}}})}static createInstance(){return new Mr}static reverse(){return Mr.createInstance().reverse()}reverse(){return this.reversed=!this.reversed,this}},F(Mr,"presetName","SequencedTransition"),Mr);var vi;let Zb=(vi=class extends Pi{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.callbackV,i=this.getDelay(),a=this.durationV??300,s=a/2,o={duration:a};return l=>{"worklet";const c=Math.max(Math.abs(l.targetOriginX-l.currentOriginX),Math.abs(l.targetOriginY-l.currentOriginY));return{initialValues:{originX:l.currentOriginX,originY:l.currentOriginY,width:l.currentWidth,height:l.currentHeight},animations:{originX:n(i,j(l.targetOriginX,o)),originY:n(i,Fe(j(Math.min(l.targetOriginY,l.currentOriginY)-c,{duration:s,easing:Ze.out(Ze.exp)}),j(l.targetOriginY,{...o,duration:s,easing:Ze.bounce}))),width:n(i,j(l.targetWidth,o)),height:n(i,j(l.targetHeight,o))},callback:r}}})}static createInstance(){return new vi}},F(vi,"presetName","JumpingTransition"),vi);var mi;let Jb=(mi=class extends Pi{constructor(){super(...arguments);F(this,"easingXV",Ze.in(Ze.ease));F(this,"easingYV",Ze.out(Ze.ease));F(this,"easingWidthV",Ze.in(Ze.exp));F(this,"easingHeightV",Ze.out(Ze.exp));F(this,"build",()=>{const n=this.getDelayFunction(),r=this.callbackV,i=this.getDelay(),a=this.durationV??300,s={easingX:this.easingXV,easingY:this.easingYV,easingWidth:this.easingWidthV,easingHeight:this.easingHeightV};return o=>{"worklet";return{initialValues:{originX:o.currentOriginX,originY:o.currentOriginY,width:o.currentWidth,height:o.currentHeight},animations:{originX:n(i,j(o.targetOriginX,{duration:a,easing:s.easingX})),originY:n(i,j(o.targetOriginY,{duration:a,easing:s.easingY})),width:n(i,j(o.targetWidth,{duration:a,easing:s.easingWidth})),height:n(i,j(o.targetHeight,{duration:a,easing:s.easingHeight}))},callback:r}}})}static createInstance(){return new mi}static easingX(n){return this.createInstance().easingX(n)}easingX(n){return this.easingXV=n,this}static easingY(n){return this.createInstance().easingY(n)}easingY(n){return this.easingYV=n,this}static easingWidth(n){return this.createInstance().easingWidth(n)}easingWidth(n){return this.easingWidthV=n,this}static easingHeight(n){return this.createInstance().easingHeight(n)}easingHeight(n){return this.easingHeightV=n,this}},F(mi,"presetName","CurvedTransition"),mi);var Ci;let LC=(Ci=class extends Pi{constructor(){super(...arguments);F(this,"enteringV",th);F(this,"exitingV",nh);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.callbackV,i=this.getDelay(),a=this.enteringV.build(),s=this.exitingV.build(),o=this.exitingV.getDuration();return l=>{"worklet";const c=a(l),u=s(l),A={transform:[]};for(const f of Object.keys(u.animations))if(f==="transform"){if(!Array.isArray(u.animations.transform))continue;u.animations.transform.forEach((p,h)=>{for(const g of Object.keys(p))A.transform.push({[g]:n(i,Fe(p[g],j(u.initialValues.transform?u.initialValues.transform[h][g]:0,{duration:0})))})})}else{const p=c.animations[f]!==void 0?[u.animations[f],j(c.initialValues[f],{duration:0}),c.animations[f]]:[u.animations[f],j(Object.keys(l).includes(f)?l[f]:u.initialValues[f],{duration:0})];A[f]=n(i,Fe(...p))}for(const f of Object.keys(c.animations))if(f==="transform"){if(!Array.isArray(c.animations.transform))continue;c.animations.transform.forEach((p,h)=>{for(const g of Object.keys(p))A.transform.push({[g]:n(i+o,Fe(j(c.initialValues.transform?c.initialValues.transform[h][g]:0,{duration:o}),p[g]))})})}else{if(A[f]!==void 0)continue;A[f]=n(i,Fe(j(c.initialValues[f],{duration:0}),c.animations[f]))}const d=(Array.isArray(u.initialValues.transform)?u.initialValues.transform:[]).concat((Array.isArray(c.animations.transform)?c.animations.transform:[]).map(f=>{const p=Object.keys(f);if((p==null?void 0:p.length)<1)return Oe.error("${value} is not a valid Transform object"),f;const h=p[0],g=f[h].current;return typeof g=="string"?g.includes("deg")?{[h]:"0deg"}:{[h]:"0"}:h.includes("translate")?{[h]:0}:{[h]:1}}));return{initialValues:{...u.initialValues,originX:l.currentOriginX,originY:l.currentOriginY,width:l.currentWidth,height:l.currentHeight,transform:d},animations:{originX:n(i+o,j(l.targetOriginX,{duration:o})),originY:n(i+o,j(l.targetOriginY,{duration:o})),width:n(i+o,j(l.targetWidth,{duration:o})),height:n(i+o,j(l.targetHeight,{duration:o})),...A},callback:r}}})}static createInstance(){return new Ci}static entering(n){return this.createInstance().entering(n)}entering(n){return this.enteringV=n,this}static exiting(n){return this.createInstance().exiting(n)}exiting(n){return this.exitingV=n,this}},F(Ci,"presetName","EntryExitTransition"),Ci);function eS(t,e){return LC.entering(e).exiting(t)}class Sr{custom(){return this}progressAnimation(){return this}duration(){return this}reduceMotion(){return this}defaultTransitionType(){return this}registerTransition(){}unregisterTransition(){}getReduceMotion(){return on.System}static custom(){return new Sr}static duration(){return new Sr}static progressAnimation(){return new Sr}static defaultTransitionType(){return new Sr}static reduceMotion(){return new Sr}}function VC(){throw new oe("Trying to call `getShadowNodeWrapperFromRef` on web.")}let Zo=[];function tS(t){Zo.push(t),Zo.length===1&&queueMicrotask(nS)}function nS(){ar(rS)(Zo),Zo=[]}function rS(t){"worklet";global._removeFromPropsRegistry(t)}function Ma(t,e,n){return(i=>"build"in t&&typeof t.build=="function")()?t.build():t}const HC=_.createContext(null);function iS(t){const e=_.useRef(t.shouldSkip);return _.useEffect(()=>{e.current=!1},[e]),k.jsx(HC.Provider,{value:e,children:t.children})}class Jc extends _.Component{getMaybeWrappedChildren(){return _.Children.count(this.props.children)>1&&this.props.skipExiting?_.Children.map(this.props.children,e=>k.jsx(Jc,{skipExiting:!0,children:e})):this.props.children}setShouldAnimateExiting(){if(_.Children.count(this.props.children)===1){const e=this;e&&Tw(e,!this.props.skipExiting)}}componentWillUnmount(){this.props.skipExiting!==void 0&&this.setShouldAnimateExiting()}render(){const e=this.getMaybeWrappedChildren();return this.props.skipEntering===void 0?e:k.jsx(iS,{shouldSkip:this.props.skipEntering,children:e})}}class aS{addOnJSPropsChangeListener(e){}removeOnJSPropsChangeListener(e){}}function rh(t){if(!Array.isArray(t))return[t];const e=[],n=r=>{r.forEach(i=>{Array.isArray(i)?n(i):e.push(i)})};return n(t),e}const pA=(t,e)=>typeof e=="function"||typeof e=="object"?e==null?!1:t in e:!1;function sS({getForwardedRef:t,setLocalRef:e}){return function(r){const i=t();e(r),typeof i=="function"?i(r):typeof i=="object"&&i!=null&&(i.current=r)}}function UC(){const t=Pn([]);return{shareableViewDescriptors:t,add:n=>{t.modify(r=>{"worklet";const i=r.findIndex(a=>a.tag===n.tag);return i!==-1?r[i]=n:r.push(n),r},!1)},remove:n=>{t.modify(r=>{"worklet";const i=r.findIndex(a=>a.tag===n);return i!==-1&&r.splice(i,1),r},!1)}}}let sr;nt()?sr=(t,e,n)=>{"worklet";var r;(r=t.value)==null||r.forEach(i=>{const a=i.tag;Kc(e,a,n)})}:sr=(t,e)=>{"worklet";Gw(e),global.UpdatePropsManager.update(t,e)};const Sp=(t,e,n,r)=>{r.forEach(i=>{i(e)}),n.current.value={...n.current.value,...e},sr(t,e)},oS=Ct()?()=>{"worklet";const t=[];return{update(e,n){e.value.forEach(r=>{t.push({shadowNodeWrapper:r.shadowNodeWrapper,updates:n}),t.length===1&&queueMicrotask(this.flush)})},flush(){global._updatePropsFabric(t),t.length=0}}}:()=>{"worklet";const t=[];return{update(e,n){e.value.forEach(r=>{t.push({tag:r.tag,name:r.name||"RCTView",updates:n}),t.length===1&&queueMicrotask(this.flush)})},flush(){global._updatePropsPaper(t),t.length=0}}};if(nt()){const t=()=>{if(!Kt())throw new oe("`UpdatePropsManager` is not available on non-native platform.")};global.UpdatePropsManager=new Proxy({},{get:t,set:()=>(t(),!1)})}else Hf(()=>{"worklet";global.UpdatePropsManager=oS()})();function ih(t){return Array.isArray(t)?t.some(e=>WC(e)):!1}function lS(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!0;for(const n of Object.keys(t))if(t[n]!==e[n])return!0;return!1}function Jo(t){"worklet";const e={};for(const[n,r]of Object.entries(t))Rr(r)?e[n]=r.value:Array.isArray(r)?e[n]=r.map(i=>Jo(i)):typeof r=="object"?e[n]=Jo(r):e[n]=r;return e}function cS(t){const e={};for(const n in t){const r=t[n];n==="style"?rh(t.style??[]).forEach(a=>{if(a)for(const[s,o]of Object.entries(a))(Rr(o)||s==="transform"&&ih(o))&&(e[s]=o)}):Rr(r)&&(e[n]=r)}return e}function WC(t){return t?Object.keys(t).some(e=>{const n=t[e];return Rr(n)||e==="transform"&&ih(n)}):!1}function uS(t,e){if(e)return Jo(t);const n={};for(const[r,i]of Object.entries(t))!Rr(i)&&!(r==="transform"&&ih(i))&&(n[r]=i);return n}class dS{constructor(){F(this,"_inlinePropsViewDescriptors",null);F(this,"_inlinePropsMapperId",null);F(this,"_inlineProps",{})}attachInlineProps(e,n){const r=cS(e.props);if(lS(r,this._inlineProps)){if(!this._inlinePropsViewDescriptors){this._inlinePropsViewDescriptors=UC();const{viewTag:o,viewName:l,shadowNodeWrapper:c,viewConfig:u}=n;Object.keys(r).length&&u&&BC(u),this._inlinePropsViewDescriptors.add({tag:o,name:l,shadowNodeWrapper:c})}const a=this._inlinePropsViewDescriptors.shareableViewDescriptors,s=()=>{"worklet";const o=Jo(r);sr(a,o)};this._inlineProps=r,this._inlinePropsMapperId&&da(this._inlinePropsMapperId),this._inlinePropsMapperId=null,Object.keys(r).length&&(this._inlinePropsMapperId=Hs(s,Object.values(r)))}}detachInlineProps(){this._inlinePropsMapperId&&da(this._inlinePropsMapperId)}}const AS=nt();function fS(t,e){return n=>{e({...n.nativeEvent,eventName:t})}}var Ei,mn;class hS{constructor(e,n){Hi(this,Ei);Hi(this,mn);this.worklet=e,this.eventNames=n,qr(this,Ei,new Set),qr(this,mn,new Map)}updateEventHandler(e,n){this.worklet=e,this.eventNames=n,ke(this,mn).forEach(r=>{r.forEach(i=>hp(i))}),Array.from(ke(this,Ei)).forEach(r=>{const i=this.eventNames.map(a=>gu(this.worklet,a,r));ke(this,mn).set(r,i)})}registerForEvents(e,n){ke(this,Ei).add(e);const r=this.eventNames.map(i=>gu(this.worklet,i,e));if(ke(this,mn).set(e,r),this.eventNames.length===0&&n){const i=gu(this.worklet,n,e);ke(this,mn).set(e,[i])}}unregisterFromEvents(e){var n;ke(this,Ei).delete(e),(n=ke(this,mn).get(e))==null||n.forEach(r=>{hp(r)}),ke(this,mn).delete(e)}}Ei=new WeakMap,mn=new WeakMap;class pS{constructor(e,n=[]){this.worklet=e,this.eventNames=n,this.listeners={},this.setupWebListeners()}setupWebListeners(){this.listeners={},this.eventNames.forEach(e=>{this.listeners[e]=fS(e,this.worklet)})}updateEventHandler(e,n){this.worklet=e,this.eventNames=n,this.setupWebListeners()}registerForEvents(e,n){}unregisterFromEvents(e){}}const eu=AS?pS:hS;function _p(){}class gS{constructor(){F(this,"_initialStyle",{})}filterNonAnimatedProps(e){const n=e.props,r={};for(const i in n){const a=n[i];if(i==="style"){const s=n.style,l=rh(s??[]).map(c=>c&&c.viewDescriptors?(e._isFirstRender&&(this._initialStyle={...c.initial.value,...this._initialStyle,...$f(c.initial.updater)}),this._initialStyle):WC(c)?uS(c,e._isFirstRender):c);r[i]=he.flatten(l)}else if(i==="animatedProps"){const s=n.animatedProps;s.initial!==void 0&&Object.keys(s.initial.value).forEach(o=>{var l;r[o]=(l=s.initial)==null?void 0:l.value[o]})}else pA("workletEventHandler",a)&&a.workletEventHandler instanceof eu?a.workletEventHandler.eventNames.length>0?a.workletEventHandler.eventNames.forEach(s=>{r[s]=pA("listeners",a.workletEventHandler)?a.workletEventHandler.listeners[s]:_p}):r[i]=_p:Rr(a)?e._isFirstRender&&(r[i]=a.value):(i!=="onGestureHandlerStateChange"||!ys())&&(r[i]=a)}return r}}const hs={linear:[0,0,1,1],ease:[.42,0,1,1],quad:[.11,0,.5,0],cubic:[.32,0,.67,0],sin:[.12,0,.39,0],circle:[.55,0,1,.45],exp:[.7,0,.84,0]};function ps(t){return`cubic-bezier(${hs[t].toString()})`}function J(t){let e=`@keyframes ${t.name} { `;for(const[n,r]of Object.entries(t.style)){e+=`${n==="from"?0:n==="to"?100:n}% { `;for(const[a,s]of Object.entries(r)){if(a==="easing"){let o="linear";s in hs?o=s:s.name in hs&&(o=s.name),e+=`animation-timing-function: cubic-bezier(${hs[o].toString()});`;continue}if(a==="originX"){e+=`left: ${s}px; `;continue}if(a==="originY"){e+=`top: ${s}px; `;continue}if(a!=="transform"){e+=`${a}: ${s}; `;continue}e+="transform:",s.forEach(o=>{for(const[l,c]of Object.entries(o))e+=` ${l}(${c})`}),e+="; "}e+="} "}return e+="} ",e}const In=.6,Zt={BounceIn:{name:"BounceIn",style:{0:{transform:[{scale:0}]},55:{transform:[{scale:1.2}]},70:{transform:[{scale:.9}]},85:{transform:[{scale:1.1}]},100:{transform:[{scale:1}]}},duration:In},BounceInRight:{name:"BounceInRight",style:{0:{transform:[{translateX:"100vw"}]},55:{transform:[{translateX:"-20px"}]},70:{transform:[{translateX:"10px"}]},85:{transform:[{translateX:"-10px"}]},100:{transform:[{translateX:"0px"}]}},duration:In},BounceInLeft:{name:"BounceInLeft",style:{0:{transform:[{translateX:"-100vw"}]},55:{transform:[{translateX:"20px"}]},70:{transform:[{translateX:"-10px"}]},85:{transform:[{translateX:"10px"}]},100:{transform:[{translateX:"0px"}]}},duration:In},BounceInUp:{name:"BounceInUp",style:{0:{transform:[{translateY:"-100vh"}]},55:{transform:[{translateY:"20px"}]},70:{transform:[{translateY:"-10px"}]},85:{transform:[{translateY:"10px"}]},100:{transform:[{translateY:"0px"}]}},duration:In},BounceInDown:{name:"BounceInDown",style:{0:{transform:[{translateY:"100vh"}]},55:{transform:[{translateY:"-20px"}]},70:{transform:[{translateY:"10px"}]},85:{transform:[{translateY:"-10px"}]},100:{transform:[{translateY:"0px"}]}},duration:In}},Jt={BounceOut:{name:"BounceOut",style:{0:{transform:[{scale:1}]},15:{transform:[{scale:1.1}]},30:{transform:[{scale:.9}]},45:{transform:[{scale:1.2}]},100:{transform:[{scale:.1}]}},duration:In},BounceOutRight:{name:"BounceOutRight",style:{0:{transform:[{translateX:"0px"}]},15:{transform:[{translateX:"-10px"}]},30:{transform:[{translateX:"10px"}]},45:{transform:[{translateX:"-20px"}]},100:{transform:[{translateX:"100vh"}]}},duration:In},BounceOutLeft:{name:"BounceOutLeft",style:{0:{transform:[{translateX:"0px"}]},15:{transform:[{translateX:"10px"}]},30:{transform:[{translateX:"-10px"}]},45:{transform:[{translateX:"20px"}]},100:{transform:[{translateX:"-100vh"}]}},duration:In},BounceOutUp:{name:"BounceOutUp",style:{0:{transform:[{translateY:"0px"}]},15:{transform:[{translateY:"10px"}]},30:{transform:[{translateY:"-10px"}]},45:{transform:[{translateY:"20px"}]},100:{transform:[{translateY:"-100vh"}]}},duration:In},BounceOutDown:{name:"BounceOutDown",style:{0:{transform:[{translateY:"0px"}]},15:{transform:[{translateY:"-10px"}]},30:{transform:[{translateY:"10px"}]},45:{transform:[{translateY:"-20px"}]},100:{transform:[{translateY:"100vh"}]}},duration:In}},vS={BounceIn:{style:J(Zt.BounceIn),duration:Zt.BounceIn.duration},BounceInRight:{style:J(Zt.BounceInRight),duration:Zt.BounceInRight.duration},BounceInLeft:{style:J(Zt.BounceInLeft),duration:Zt.BounceInLeft.duration},BounceInUp:{style:J(Zt.BounceInUp),duration:Zt.BounceInUp.duration},BounceInDown:{style:J(Zt.BounceInDown),duration:Zt.BounceInDown.duration}},mS={BounceOut:{style:J(Jt.BounceOut),duration:Jt.BounceOut.duration},BounceOutRight:{style:J(Jt.BounceOutRight),duration:Jt.BounceOutRight.duration},BounceOutLeft:{style:J(Jt.BounceOutLeft),duration:Jt.BounceOutLeft.duration},BounceOutUp:{style:J(Jt.BounceOutUp),duration:Jt.BounceOutUp.duration},BounceOutDown:{style:J(Jt.BounceOutDown),duration:Jt.BounceOutDown.duration}},wn=.3,en={FadeIn:{name:"FadeIn",style:{0:{opacity:0},100:{opacity:1}},duration:wn},FadeInRight:{name:"FadeInRight",style:{0:{opacity:0,transform:[{translateX:"25px"}]},100:{opacity:1,transform:[{translateX:"0px"}]}},duration:wn},FadeInLeft:{name:"FadeInLeft",style:{0:{opacity:0,transform:[{translateX:"-25px"}]},100:{opacity:1,transform:[{translateX:"0px"}]}},duration:wn},FadeInUp:{name:"FadeInUp",style:{0:{opacity:0,transform:[{translateY:"-25px"}]},100:{opacity:1,transform:[{translateY:"0px"}]}},duration:wn},FadeInDown:{name:"FadeInDown",style:{0:{opacity:0,transform:[{translateY:"25px"}]},100:{opacity:1,transform:[{translateY:"0px"}]}},duration:wn}},tn={FadeOut:{name:"FadeOut",style:{0:{opacity:1},100:{opacity:0}},duration:wn},FadeOutRight:{name:"FadeOutRight",style:{0:{opacity:1,transform:[{translateX:"0px"}]},100:{opacity:0,transform:[{translateX:"25px"}]}},duration:wn},FadeOutLeft:{name:"FadeOutLeft",style:{0:{opacity:1,transform:[{translateX:"0px"}]},100:{opacity:0,transform:[{translateX:"-25px"}]}},duration:wn},FadeOutUp:{name:"FadeOutUp",style:{0:{opacity:1,transform:[{translateY:"0px"}]},100:{opacity:0,transform:[{translateY:"-25px"}]}},duration:wn},FadeOutDown:{name:"FadeOutDown",style:{0:{opacity:1,transform:[{translateY:"0px"}]},100:{opacity:0,transform:[{translateY:"25px"}]}},duration:wn}},CS={FadeIn:{style:J(en.FadeIn),duration:en.FadeIn.duration},FadeInRight:{style:J(en.FadeInRight),duration:en.FadeInRight.duration},FadeInLeft:{style:J(en.FadeInLeft),duration:en.FadeInLeft.duration},FadeInUp:{style:J(en.FadeInUp),duration:en.FadeInUp.duration},FadeInDown:{style:J(en.FadeInDown),duration:en.FadeInDown.duration}},ES={FadeOut:{style:J(tn.FadeOut),duration:tn.FadeOut.duration},FadeOutRight:{style:J(tn.FadeOutRight),duration:tn.FadeOutRight.duration},FadeOutLeft:{style:J(tn.FadeOutLeft),duration:tn.FadeOutLeft.duration},FadeOutUp:{style:J(tn.FadeOutUp),duration:tn.FadeOutUp.duration},FadeOutDown:{style:J(tn.FadeOutDown),duration:tn.FadeOutDown.duration}},Yt=.3,Pt={FlipInYRight:{name:"FlipInYRight",style:{0:{transform:[{perspective:"500px",rotateY:"90deg",translateX:"100%"}]},100:{transform:[{perspective:"500px",rotateY:"0deg",translateX:"0%"}]}},duration:Yt},FlipInYLeft:{name:"FlipInYLeft",style:{0:{transform:[{perspective:"500px",rotateY:"-90deg",translateX:"-100%"}]},100:{transform:[{perspective:"500px",rotateY:"0deg",translateX:"0%"}]}},duration:Yt},FlipInXUp:{name:"FlipInXUp",style:{0:{transform:[{perspective:"500px",rotateX:"90deg",translateY:"-100%"}]},100:{transform:[{perspective:"500px",rotateX:"0deg",translateY:"0%"}]}},duration:Yt},FlipInXDown:{name:"FlipInXDown",style:{0:{transform:[{perspective:"500px",rotateX:"-90deg",translateY:"100%"}]},100:{transform:[{perspective:"500px",rotateX:"0deg",translateY:"0%"}]}},duration:Yt},FlipInEasyX:{name:"FlipInEasyX",style:{0:{transform:[{perspective:"500px",rotateX:"90deg"}]},100:{transform:[{perspective:"500px",rotateX:"0deg"}]}},duration:Yt},FlipInEasyY:{name:"FlipInEasyY",style:{0:{transform:[{perspective:"500px",rotateY:"90deg"}]},100:{transform:[{perspective:"500px",rotateY:"0deg"}]}},duration:Yt}},Ft={FlipOutYRight:{name:"FlipOutYRight",style:{0:{transform:[{perspective:"500px",rotateY:"0deg",translateX:"0%"}]},100:{transform:[{perspective:"500px",rotateY:"90deg",translateX:"100%"}]}},duration:Yt},FlipOutYLeft:{name:"FlipOutYLeft",style:{0:{transform:[{perspective:"500px",rotateY:"0deg",translateX:"0%"}]},100:{transform:[{perspective:"500px",rotateY:"-90deg",translateX:"-100%"}]}},duration:Yt},FlipOutXUp:{name:"FlipOutXUp",style:{0:{transform:[{perspective:"500px",rotateX:"0deg",translateY:"0%"}]},100:{transform:[{perspective:"500px",rotateX:"90deg",translateY:"-100%"}]}},duration:Yt},FlipOutXDown:{name:"FlipOutXDown",style:{0:{transform:[{perspective:"500px",rotateX:"0deg",translateY:"0%"}]},100:{transform:[{perspective:"500px",rotateX:"-90deg",translateY:"100%"}]}},duration:Yt},FlipOutEasyX:{name:"FlipOutEasyX",style:{0:{transform:[{perspective:"500px",rotateX:"0deg"}]},100:{transform:[{perspective:"500px",rotateX:"90deg"}]}},duration:Yt},FlipOutEasyY:{name:"FlipOutEasyY",style:{0:{transform:[{perspective:"500px",rotateY:"0deg"}]},100:{transform:[{perspective:"500px",rotateY:"90deg"}]}},duration:Yt}},xS={FlipInYRight:{style:J(Pt.FlipInYRight),duration:Pt.FlipInYRight.duration},FlipInYLeft:{style:J(Pt.FlipInYLeft),duration:Pt.FlipInYLeft.duration},FlipInXUp:{style:J(Pt.FlipInXUp),duration:Pt.FlipInXUp.duration},FlipInXDown:{style:J(Pt.FlipInXDown),duration:Pt.FlipInXDown.duration},FlipInEasyX:{style:J(Pt.FlipInEasyX),duration:Pt.FlipInEasyX.duration},FlipInEasyY:{style:J(Pt.FlipInEasyY),duration:Pt.FlipInEasyY.duration}},yS={FlipOutYRight:{style:J(Ft.FlipOutYRight),duration:Ft.FlipOutYRight.duration},FlipOutYLeft:{style:J(Ft.FlipOutYLeft),duration:Ft.FlipOutYLeft.duration},FlipOutXUp:{style:J(Ft.FlipOutXUp),duration:Ft.FlipOutXUp.duration},FlipOutXDown:{style:J(Ft.FlipOutXDown),duration:Ft.FlipOutXDown.duration},FlipOutEasyX:{style:J(Ft.FlipOutEasyX),duration:Ft.FlipOutEasyX.duration},FlipOutEasyY:{style:J(Ft.FlipOutEasyY),duration:Ft.FlipOutEasyY.duration}},el=.3,es={LightSpeedInRight:{name:"LightSpeedInRight",style:{0:{transform:[{translateX:"100vw",skewX:"-45deg"}],opacity:0},70:{transform:[{skewX:"10deg"}]},85:{transform:[{skewX:"-5deg"}]},100:{transform:[{skewX:"0deg"}]}},duration:el},LightSpeedInLeft:{name:"LightSpeedInLeft",style:{0:{transform:[{translateX:"-100vw",skewX:"45deg"}],opacity:0},70:{transform:[{skewX:"-10deg"}]},85:{transform:[{skewX:"5deg"}]},100:{transform:[{skewX:"0deg"}]}},duration:el}},ts={LightSpeedOutRight:{name:"LightSpeedOutRight",style:{0:{transform:[{translateX:"0vw",skewX:"0deg"}],opacity:1},100:{transform:[{translateX:"100vw",skewX:"-45deg"}],opacity:0}},duration:el},LightSpeedOutLeft:{name:"LightSpeedOutLeft",style:{0:{transform:[{translateX:"0vw",skew:"0deg"}],opacity:1},100:{transform:[{translateX:"-100vw",skew:"45deg"}],opacity:0}},duration:el}},IS={LightSpeedInRight:{style:J(es.LightSpeedInRight),duration:es.LightSpeedInRight.duration},LightSpeedInLeft:{style:J(es.LightSpeedInLeft),duration:es.LightSpeedInLeft.duration}},wS={LightSpeedOutRight:{style:J(ts.LightSpeedOutRight),duration:ts.LightSpeedOutRight.duration},LightSpeedOutLeft:{style:J(ts.LightSpeedOutLeft),duration:ts.LightSpeedOutLeft.duration}},Dp=.3,ns={PinwheelIn:{name:"PinwheelIn",style:{0:{transform:[{rotate:"5rad",scale:0}],opacity:0},100:{transform:[{rotate:"0deg",scale:1}],opacity:1}},duration:Dp},PinwheelOut:{name:"PinwheelOut",style:{0:{transform:[{rotate:"0rad",scale:1}],opacity:1},100:{transform:[{rotate:"5rad",scale:0}],opacity:0}},duration:Dp}},bS={PinwheelIn:{style:J(ns.PinwheelIn),duration:ns.PinwheelIn.duration},PinwheelOut:{style:J(ns.PinwheelOut),duration:ns.PinwheelOut.duration}},tl=.3,rs={RollInLeft:{name:"RollInLeft",style:{0:{transform:[{translateX:"-100vw",rotate:"-180deg"}]},100:{transform:[{translateX:"0vw",rotate:"0deg"}]}},duration:tl},RollInRight:{name:"RollInRight",style:{0:{transform:[{translateX:"100vw",rotate:"180deg"}]},100:{transform:[{translateX:"0vw",rotate:"0deg"}]}},duration:tl}},is={RollOutLeft:{name:"RollOutLeft",style:{0:{transform:[{translateX:"0vw",rotate:"0deg"}]},100:{transform:[{translateX:"-100vw",rotate:"-180deg"}]}},duration:tl},RollOutRight:{name:"RollOutRight",style:{0:{transform:[{translateX:"0vw",rotate:"0deg"}]},100:{transform:[{translateX:"100vw",rotate:"180deg"}]}},duration:tl}},SS={RollInLeft:{style:J(rs.RollInLeft),duration:rs.RollInLeft.duration},RollInRight:{style:J(rs.RollInRight),duration:rs.RollInRight.duration}},_S={RollOutLeft:{style:J(is.RollOutLeft),duration:is.RollOutLeft.duration},RollOutRight:{style:J(is.RollOutRight),duration:is.RollOutRight.duration}},Dr=.3,zn={RotateInDownLeft:{name:"RotateInDownLeft",style:{0:{transform:[{translateX:"-50%",translateY:"-250%",rotate:"-90deg"}],opacity:0},100:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1}},duration:Dr},RotateInDownRight:{name:"RotateInDownRight",style:{0:{transform:[{translateX:"40%",translateY:"-250%",rotate:"90deg"}],opacity:0},100:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1}},duration:Dr},RotateInUpLeft:{name:"RotateInUpLeft",style:{0:{transform:[{translateX:"-40%",translateY:"250%",rotate:"90deg"}],opacity:0},100:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1}},duration:Dr},RotateInUpRight:{name:"RotateInUpRight",style:{0:{transform:[{translateX:"40%",translateY:"250%",rotate:"-90deg"}],opacity:0},100:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1}},duration:Dr}},qn={RotateOutDownLeft:{name:"RotateOutDownLeft",style:{0:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1},100:{transform:[{translateX:"-40%",translateY:"250%",rotate:"90deg"}],opacity:0}},duration:Dr},RotateOutDownRight:{name:"RotateOutDownRight",style:{0:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1},100:{transform:[{translateX:"40%",translateY:"250%",rotate:"-90deg"}],opacity:0}},duration:Dr},RotateOutUpLeft:{name:"RotateOutUpLeft",style:{0:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1},100:{transform:[{translateX:"-40%",translateY:"-250%",rotate:"-90deg"}],opacity:0}},duration:Dr},RotateOutUpRight:{name:"RotateOutUpRight",style:{0:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1},100:{transform:[{translateX:"40%",translateY:"-250%",rotate:"90deg"}],opacity:0}},duration:Dr}},DS={RotateInDownLeft:{style:J(zn.RotateInDownLeft),duration:zn.RotateInDownLeft.duration},RotateInDownRight:{style:J(zn.RotateInDownRight),duration:zn.RotateInDownRight.duration},RotateInUpLeft:{style:J(zn.RotateInUpLeft),duration:zn.RotateInUpLeft.duration},RotateInUpRight:{style:J(zn.RotateInUpRight),duration:zn.RotateInUpRight.duration}},TS={RotateOutDownLeft:{style:J(qn.RotateOutDownLeft),duration:qn.RotateOutDownLeft.duration},RotateOutDownRight:{style:J(qn.RotateOutDownRight),duration:qn.RotateOutDownRight.duration},RotateOutUpLeft:{style:J(qn.RotateOutUpLeft),duration:qn.RotateOutUpLeft.duration},RotateOutUpRight:{style:J(qn.RotateOutUpRight),duration:qn.RotateOutUpRight.duration}},Tr=.3,Kn={SlideInRight:{name:"SlideInRight",style:{0:{transform:[{translateX:"100vw"}]},100:{transform:[{translateX:"0%"}]}},duration:Tr},SlideInLeft:{name:"SlideInLeft",style:{0:{transform:[{translateX:"-100vw"}]},100:{transform:[{translateX:"0%"}]}},duration:Tr},SlideInUp:{name:"SlideInUp",style:{0:{transform:[{translateY:"-100vh"}]},100:{transform:[{translateY:"0%"}]}},duration:Tr},SlideInDown:{name:"SlideInDown",style:{0:{transform:[{translateY:"100vh"}]},100:{transform:[{translateY:"0%"}]}},duration:Tr}},$n={SlideOutRight:{name:"SlideOutRight",style:{0:{transform:[{translateX:"0%"}]},100:{transform:[{translateX:"100vw"}]}},duration:Tr},SlideOutLeft:{name:"SlideOutLeft",style:{0:{transform:[{translateX:"0%"}]},100:{transform:[{translateX:"-100vw"}]}},duration:Tr},SlideOutUp:{name:"SlideOutUp",style:{0:{transform:[{translateY:"0%"}]},100:{transform:[{translateY:"-100vh"}]}},duration:Tr},SlideOutDown:{name:"SlideOutDown",style:{0:{transform:[{translateY:"0%"}]},100:{transform:[{translateY:"100vh"}]}},duration:Tr}},OS={SlideInRight:{style:J(Kn.SlideInRight),duration:Kn.SlideInRight.duration},SlideInLeft:{style:J(Kn.SlideInLeft),duration:Kn.SlideInLeft.duration},SlideInUp:{style:J(Kn.SlideInUp),duration:Kn.SlideInUp.duration},SlideInDown:{style:J(Kn.SlideInDown),duration:Kn.SlideInDown.duration}},kS={SlideOutRight:{style:J($n.SlideOutRight),duration:$n.SlideOutRight.duration},SlideOutLeft:{style:J($n.SlideOutLeft),duration:$n.SlideOutLeft.duration},SlideOutUp:{style:J($n.SlideOutUp),duration:$n.SlideOutUp.duration},SlideOutDown:{style:J($n.SlideOutDown),duration:$n.SlideOutDown.duration}},nl=.3,as={StretchInX:{name:"StretchInX",style:{0:{transform:[{scaleX:0}]},100:{transform:[{scaleX:1}]}},duration:nl},StretchInY:{name:"StretchInY",style:{0:{transform:[{scaleY:0}]},100:{transform:[{scaleY:1}]}},duration:nl}},ss={StretchOutX:{name:"StretchOutX",style:{0:{transform:[{scaleX:1}]},100:{transform:[{scaleX:0}]}},duration:nl},StretchOutY:{name:"StretchOutY",style:{0:{transform:[{scaleY:1}]},100:{transform:[{scaleY:0}]}},duration:nl}},MS={StretchInX:{style:J(as.StretchInX),duration:as.StretchInX.duration},StretchInY:{style:J(as.StretchInY),duration:as.StretchInY.duration}},PS={StretchOutX:{style:J(ss.StretchOutX),duration:ss.StretchOutX.duration},StretchOutY:{style:J(ss.StretchOutY),duration:ss.StretchOutY.duration}},ht=.3,st={ZoomIn:{name:"ZoomIn",style:{0:{transform:[{scale:0}]},100:{transform:[{scale:1}]}},duration:ht},ZoomInRotate:{name:"ZoomInRotate",style:{0:{transform:[{scale:0,rotate:"0.3rad"}]},100:{transform:[{scale:1,rotate:"0deg"}]}},duration:ht},ZoomInRight:{name:"ZoomInRight",style:{0:{transform:[{translateX:"100vw",scale:0}]},100:{transform:[{translateX:"0%",scale:1}]}},duration:ht},ZoomInLeft:{name:"ZoomInLeft",style:{0:{transform:[{translateX:"-100vw",scale:0}]},100:{transform:[{translateX:"0%",scale:1}]}},duration:ht},ZoomInUp:{name:"ZoomInUp",style:{0:{transform:[{translateY:"-100vh",scale:0}]},100:{transform:[{translateY:"0%",scale:1}]}},duration:ht},ZoomInDown:{name:"ZoomInDown",style:{0:{transform:[{translateY:"100vh",scale:0}]},100:{transform:[{translateY:"0%",scale:1}]}},duration:ht},ZoomInEasyUp:{name:"ZoomInEasyUp",style:{0:{transform:[{translateY:"-100%",scale:0}]},100:{transform:[{translateY:"0%",scale:1}]}},duration:ht},ZoomInEasyDown:{name:"ZoomInEasyDown",style:{0:{transform:[{translateY:"100%",scale:0}]},100:{transform:[{translateY:"0%",scale:1}]}},duration:ht}},ot={ZoomOut:{name:"ZoomOut",style:{0:{transform:[{scale:1}]},100:{transform:[{scale:0}]}},duration:ht},ZoomOutRotate:{name:"ZoomOutRotate",style:{0:{transform:[{scale:1,rotate:"0rad"}]},100:{transform:[{scale:0,rotate:"0.3rad"}]}},duration:ht},ZoomOutRight:{name:"ZoomOutRight",style:{0:{transform:[{translateX:"0vw",scale:1}]},100:{transform:[{translateX:"100vw",scale:0}]}},duration:ht},ZoomOutLeft:{name:"ZoomOutLeft",style:{0:{transform:[{translateX:"0vw",scale:1}]},100:{transform:[{translateX:"-100vw",scale:0}]}},duration:ht},ZoomOutUp:{name:"ZoomOutUp",style:{0:{transform:[{translateX:"0vh",scale:1}]},100:{transform:[{translateY:"-100vh",scale:0}]}},duration:ht},ZoomOutDown:{name:"ZoomOutDown",style:{0:{transform:[{translateX:"0vh",scale:1}]},100:{transform:[{translateY:"100vh",scale:0}]}},duration:ht},ZoomOutEasyUp:{name:"ZoomOutEasyUp",style:{0:{transform:[{translateY:"0%",scale:1}]},100:{transform:[{translateY:"-100%",scale:0}]}},duration:ht},ZoomOutEasyDown:{name:"ZoomOutEasyDown",style:{0:{transform:[{translateY:"0%",scale:1}]},100:{transform:[{translateY:"100%",scale:0}]}},duration:ht}},FS={ZoomIn:{style:J(st.ZoomIn),duration:st.ZoomIn.duration},ZoomInRotate:{style:J(st.ZoomInRotate),duration:st.ZoomInRotate.duration},ZoomInRight:{style:J(st.ZoomInRight),duration:st.ZoomInRight.duration},ZoomInLeft:{style:J(st.ZoomInLeft),duration:st.ZoomInLeft.duration},ZoomInUp:{style:J(st.ZoomInUp),duration:st.ZoomInUp.duration},ZoomInDown:{style:J(st.ZoomInDown),duration:st.ZoomInDown.duration},ZoomInEasyUp:{style:J(st.ZoomInEasyUp),duration:st.ZoomInEasyUp.duration},ZoomInEasyDown:{style:J(st.ZoomInEasyDown),duration:st.ZoomInEasyDown.duration}},RS={ZoomOut:{style:J(ot.ZoomOut),duration:ot.ZoomOut.duration},ZoomOutRotate:{style:J(ot.ZoomOutRotate),duration:ot.ZoomOutRotate.duration},ZoomOutRight:{style:J(ot.ZoomOutRight),duration:ot.ZoomOutRight.duration},ZoomOutLeft:{style:J(ot.ZoomOutLeft),duration:ot.ZoomOutLeft.duration},ZoomOutUp:{style:J(ot.ZoomOutUp),duration:ot.ZoomOutUp.duration},ZoomOutDown:{style:J(ot.ZoomOutDown),duration:ot.ZoomOutDown.duration},ZoomOutEasyUp:{style:J(ot.ZoomOutEasyUp),duration:ot.ZoomOutEasyUp.duration},ZoomOutEasyDown:{style:J(ot.ZoomOutEasyDown),duration:ot.ZoomOutEasyDown.duration}};let wt=function(t){return t[t.LINEAR=0]="LINEAR",t[t.SEQUENCED=1]="SEQUENCED",t[t.FADING=2]="FADING",t[t.JUMPING=3]="JUMPING",t[t.CURVED=4]="CURVED",t[t.ENTRY_EXIT=5]="ENTRY_EXIT",t}({});const rl={...en,...tn,...Zt,...Jt,...Pt,...Ft,...as,...ss,...st,...ot,...Kn,...$n,...es,...ts,...ns,...zn,...qn,...rs,...is},Br={...CS,...ES,...vS,...mS,...xS,...yS,...MS,...PS,...FS,...RS,...OS,...kS,...IS,...wS,...bS,...DS,...TS,...SS,..._S};function NS(t,e){const{translateX:n,translateY:r,scaleX:i,scaleY:a}=e;return{name:t,style:{0:{transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${a}`}]}},duration:300}}function BS(t,e){const{translateX:n,translateY:r,scaleX:i,scaleY:a,reversed:s}=e,o=s?`1,${i}`:`${a},1`;return{name:t,style:{0:{transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${a}`}]},50:{transform:[{translateX:s?`${n}px`:"0px",translateY:s?"0px":`${r}px`,scale:o}]},100:{transform:[{translateX:"0px",translateY:"0px",scale:"1,1"}]}},duration:300}}function GS(t,e){const{translateX:n,translateY:r,scaleX:i,scaleY:a}=e;return{name:t,style:{0:{opacity:1,transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${a}`}]},20:{opacity:0,transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${a}`}]},60:{opacity:0,transform:[{translateX:"0px",translateY:"0px",scale:"1,1"}]},100:{opacity:1,transform:[{translateX:"0px",translateY:"0px",scale:"1,1"}]}},duration:300}}function LS(t,e){const{translateX:n,translateY:r,scaleX:i,scaleY:a}=e,s=Math.max(Math.abs(n),Math.abs(r))/2,o=r<=0?r-s:-r+s;return{name:t,style:{0:{transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${a}`}],easing:Ze.exp},50:{transform:[{translateX:`${n/2}px`,translateY:`${o}px`,scale:`${i},${a}`}]},100:{transform:[{translateX:"0px",translateY:"0px",scale:"1,1"}]}},duration:300}}const ws=new WeakMap;function VS(t,e){Kc({visibility:"initial"},t)}function HS(t,e,n){const r=e.getBoundingClientRect(),i=parseInt(getComputedStyle(e).borderTopWidth),a=parseInt(getComputedStyle(e).borderLeftWidth),s=t.getBoundingClientRect();s.top!==n.top&&(t.style.top=`${n.top-r.top-i}px`),s.left!==n.left&&(t.style.left=`${n.left-r.left-a}px`)}function ah(t,e){t.style.transform="",t.style.position="absolute",t.style.top=`${e.top}px`,t.style.left=`${e.left}px`,t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.margin="0px",t.parentElement&&HS(t,t.parentElement,e)}const Tp="ReanimatedPredefinedWebAnimationsStyle",sh="ReanimatedCustomWebAnimationsStyle",ri=new Map,Or=[];let Op=!1;function US(){if(!Ia()||document.getElementById(Tp)!==null)return;const t=document.createElement("style");t.id=Tp,t.onload=()=>{if(!t.sheet){Oe.error("Failed to create layout animations stylesheet.");return}for(const n in Br)t.sheet.insertRule(Br[n].style)};const e=document.createElement("style");e.id=sh,document.head.appendChild(t),document.head.appendChild(e)}function il(t,e){if(!Ia())return;const n=document.getElementById(sh);if(!n.sheet){Oe.error("Failed to create layout animations stylesheet.");return}n.sheet.insertRule(e,0),Or.unshift(t),ri.set(t,0);for(let r=1;r<Or.length;++r){const i=Or[r],a=ri.get(i);if(a===void 0)throw new oe("Failed to obtain animation index.");ri.set(Or[r],a+1)}}function WS(t,e){var i;if(!Ia())return;const n=document.getElementById(sh),r=ri.get(t);if(r===void 0)throw new oe("Failed to obtain animation index.");e(),(i=n.sheet)==null||i.deleteRule(r),Or.splice(r,1),ri.delete(t);for(let a=r;a<Or.length;++a){const s=Or[a],o=ri.get(s);if(o===void 0)throw new oe("Failed to obtain animation index.");ri.set(Or[a],o-1)}}const XS=1.25,YS=16,zS=10;function qS(t,e,n){const r=Math.max(e*XS*1e3,e+YS*zS);setTimeout(()=>WS(t,n),r)}function KS(t,e){const n=ws.get(t);if(!n){Oe.error("Failed to obtain snapshot.");return}t.removedAfterAnimation=!0,e.appendChild(t),ah(t,n);const r=t.onanimationend;t.onanimationend=function(i){e.removeChild(t),r==null||r.call(this,i)}}function XC(t,e){if(!(t instanceof HTMLElement))return;t.reanimatedDummy&&t.removedAfterAnimation===void 0&&KS(t,e);const n=Array.from(t.children);for(let r=0;r<n.length;++r)XC(n[r],e)}function $S(t){var n,r,i;let e="__reactFiber";for(const a of Object.keys(t))if(a.startsWith("__reactFiber")){e=a;break}return((i=(r=(n=t[e])==null?void 0:n.child)==null?void 0:r.memoizedProps)==null?void 0:i.navigation)!==void 0}function jS(){if(Op||!Ia())return;Op=!0,new MutationObserver(e=>{const n=e[e.length-1];if(!$S(n.target))for(let r=0;r<n.removedNodes.length;++r)XC(n.removedNodes[r],n.target)}).observe(document.body,{childList:!0,subtree:!0})}function QS(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function ZS(t){t.style.animationName="",t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.margin="0px",t.style.width="100%",t.style.height="100%"}function kp(t,e,n){for(let r=0;r<t.children.length;++r){const i=t.children[r];n?i.style.display=e.get(i):(e.set(i,i.style.display),i.style.display="none")}}function JS(t,e,n,r){n.easing=ps(r.easingX);const i=new Map;kp(t,i,!1);const a=t.style.backgroundColor;t.style.backgroundColor="transparent";const s=()=>{t.contains(e)&&t.removeChild(e),kp(t,i,!0),t.style.backgroundColor=a},o=()=>{s(),t.removeEventListener("animationcancel",o)},l=()=>{s(),t.removeEventListener("animationend",l)};t.addEventListener("animationend",l),t.addEventListener("animationcancel",o),t.appendChild(e)}function e_(t,e,n,r){const i={animationName:r,animationType:Je.LAYOUT,duration:e.duration,delay:e.delay,easing:ps(n.easingY),callback:null,reversed:!1},a=t.cloneNode(!0);return ZS(a),{dummy:a,dummyAnimationConfig:i}}function t_(t,e,n,r){const{dummy:i,dummyAnimationConfig:a}=e_(t,e,n,r);return JS(t,i,e,n),{dummy:i,dummyAnimationConfig:a}}function n_(t,e,n){const r={name:t,style:{0:{transform:[{translateX:`${n.translateX}px`,scale:`${n.scaleX},${n.scaleY}`}]}},duration:300},i={name:e,style:{0:{transform:[{translateY:`${n.translateY}px`,scale:`${n.scaleX},${n.scaleY}`}]}},duration:300};return{firstKeyframeObj:r,secondKeyframeObj:i}}const r_=49,i_=50;function Mp(t,e,n,r){for(const[i,a]of Object.entries(e)){a.transform!==void 0?a.transform.unshift(n):a.transform=[n];const s=parseInt(i)/2,o=r?Math.min(s,r_):s+i_;t[`${o}`]=a}}function a_(t){const e=new Map;t[0].opacity===void 0&&(e.set(48,1),e.set(49,0)),t[50].opacity===void 0&&(e.set(50,0),e.set(51,1));for(const[n,r]of e)t[n]={...t[n],opacity:r}}function s_(t,e){const n=structuredClone(rl[e.exiting]),r=structuredClone(rl[e.entering]),i={translateX:`${e.translateX}px`,translateY:`${e.translateY}px`,scale:`${e.scaleX},${e.scaleY}`},a={translateX:"0px",translateY:"0px",scale:"1,1"},s={name:t,style:{},duration:300};return Mp(s.style,n.style,i,!0),Mp(s.style,r.style,a,!1),a_(s.style),s}function YC(t){return t.map(n=>{const r={};for(const[i,a]of Object.entries(n))(i.includes("translate")||i.includes("perspective"))&&typeof a=="number"?r[i]=`${a}px`:r[i]=a;return r})}function o_(t){for(const r of Object.values(t))r.transform&&(r.transform=YC(r.transform));const e={name:"",style:t,duration:-1};e.name=al();const n=J(e);return il(e.name,n),e.name}function l_(t,e){const n=structuredClone(rl[t].style),r=n[0],{transform:i,...a}=e,s=YC(i);if(i)if(!r.transform)r.transform=s;else{const u=new Map;for(const A of r.transform)for(const[d,f]of Object.entries(A))u.set(d,f);for(const A of s)for(const[d,f]of Object.entries(A))u.set(d,f);r.transform=Array.from(u,([A,d])=>({[A]:d}))}n[0]={...n[0],...a};const o=al(),l={name:o,style:n,duration:rl[t].duration},c=J(l);return il(o,c),o}let c_=0;function al(){return`REA${c_++}`}function u_(t,e){const n=al();let r,i;switch(t){case wt.LINEAR:i=NS(n,e);break;case wt.SEQUENCED:i=BS(n,e);break;case wt.FADING:i=GS(n,e);break;case wt.JUMPING:i=LS(n,e);break;case wt.CURVED:{r=al();const{firstKeyframeObj:s,secondKeyframeObj:o}=n_(n,r,e);i=s;const l=J(o);il(r,l);break}case wt.ENTRY_EXIT:i=s_(n,e);break}const a=J(i);return il(n,a),{transitionKeyframeName:n,dummyTransitionKeyframeName:r}}function d_(t){if(!t.easingV)return ps("linear");const e=t.easingV[jo];return e in hs?ps(e):(Oe.warn("Selected easing is not currently supported on web."),ps("linear"))}function Pp(t=1e3){return Math.floor(Math.random()*(t+1))/1e3}function A_(t){const e=t.randomizeDelay,n=e?Pp():0;return t.delayV?e?Pp(t.delayV):t.delayV/1e3:n}function io(t){if(!t.reduceMotionV)return yn.jsValue;switch(t.reduceMotionV){case on.Never:return!1;case on.Always:return!0;default:return yn.jsValue}}function f_(t,e){const n=e in Br?Br[e].duration:.3;return t.durationV!==void 0?t.durationV/1e3:n}function h_(t){return t.callbackV!==void 0?t.callbackV:null}function p_(t){return!!t.reversed}function g_(t,e,n){return{animationName:t,animationType:e,duration:f_(n,t),delay:A_(n),easing:d_(n),callback:h_(n),reversed:p_(n)}}function v_(t,e){if(e instanceof Jf){t.style.animationFillMode="forwards";for(const n of Object.values(e.definitions))if("originX"in n||"originY"in n){t.style.position="absolute";return}}}function gA(t){const e=t.getBoundingClientRect(),n={top:e.top,left:e.left,width:e.width,height:e.height,scrollOffsets:zC(t)};ws.set(t,n)}function sl(t,e,n=!1,r=null){const{animationName:i,duration:a,delay:s,easing:o}=e,l=()=>{t.style.animationName=i,t.style.animationDuration=`${a}s`,t.style.animationDelay=`${s}s`,t.style.animationTimingFunction=o};e.animationType===Je.ENTERING?requestAnimationFrame(l):l(),t.onanimationend=()=>{var u;n&&gA(t),r!=null&&r.contains(t)&&(t.removedAfterAnimation=!0,r.removeChild(t)),(u=e.callback)==null||u.call(e,!0),t.removeEventListener("animationcancel",c)};const c=()=>{var u;(u=e.callback)==null||u.call(e,!1),r!=null&&r.contains(t)&&(t.removedAfterAnimation=!0,r.removeChild(t)),t.removeEventListener("animationcancel",c)};t.onanimationstart=()=>{e.animationType===Je.ENTERING&&Kc({visibility:"initial"},t),t.addEventListener("animationcancel",c)},i in Br||qS(i,a+s,()=>{n&&ah(t,ws.get(t))})}function m_(t,e,n){const{animationName:r}=e;let i;switch(r){case"LinearTransition":i=wt.LINEAR;break;case"SequencedTransition":i=wt.SEQUENCED;break;case"FadingTransition":i=wt.FADING;break;case"JumpingTransition":i=wt.JUMPING;break;case"CurvedTransition":i=wt.CURVED;break;case"EntryExitTransition":i=wt.ENTRY_EXIT;break;default:i=wt.LINEAR;break}const{transitionKeyframeName:a,dummyTransitionKeyframeName:s}=u_(i,n);if(e.animationName=a,i===wt.CURVED){const{dummy:o,dummyAnimationConfig:l}=t_(t,e,n,s);sl(o,l)}sl(t,e)}function zC(t){let e=t;const n={scrollTopOffset:0,scrollLeftOffset:0};for(;e;)e.scrollTop!==0&&n.scrollTopOffset===0&&(n.scrollTopOffset=e.scrollTop),e.scrollLeft!==0&&n.scrollLeftOffset===0&&(n.scrollLeftOffset=e.scrollLeft),e=e.parentElement;return n}function C_(t,e){const n=t.offsetParent,r=t.cloneNode();for(r.reanimatedDummy=!0,t.style.animationName="",r.style.animationName="";t.firstChild;)r.appendChild(t.firstChild);n==null||n.appendChild(r);const i=ws.get(t),a=zC(t),s=a.scrollTopOffset,o=i.scrollOffsets.scrollTopOffset;s!==o&&(i.top+=o-s);const l=a.scrollLeftOffset,c=i.scrollOffsets.scrollLeftOffset;l!==c&&(i.left+=c-l),ws.set(r,i),ah(r,i),sl(r,e,!1,n)}function E_(t,e){return t===Je.ENTERING?e.entering:t===Je.EXITING?e.exiting:t===Je.LAYOUT?e.layout:null}function x_(t,e){return t in Br||e?!1:(Oe.warn("Couldn't load entering/exiting animation. Current version supports only predefined animations with modifiers: duration, delay, easing, randomizeDelay, withCallback, reducedMotion."),!0)}function y_(t,e){const n=/([a-zA-Z-]+)(?=:)/g,r=new Set;for(const a of t.matchAll(n))r.add(a[1]);const i=Array.from(e).filter(a=>r.has(a));i.length!==0&&Oe.warn(`${i.length===1?"Property":"Properties"} [${i.join(", ")}] may be overwritten by a layout animation. Please wrap your component with an animated view and apply the layout animation on the wrapper.`)}function I_(t,e,n,r){switch(t){case Je.ENTERING:sl(n,e,!0);break;case Je.LAYOUT:r.reversed=e.reversed,m_(n,e,r);break;case Je.EXITING:C_(n,e);break}}function w_(t,e){const n=E_(e,t);if(!n)return null;const r=e===Je.LAYOUT,i=n instanceof Jf,a=n.initialValues!==void 0;let s;if(i?s=o_(n.definitions):typeof n=="function"?s=n.presetName:s=n.constructor.presetName,a&&(s=l_(s,n.initialValues)),x_(s,r||i||a))return null;if(i){const c=Object.keys(n.definitions);c.includes("100")||c.includes("to")||Oe.warn("Neither '100' nor 'to' was specified in Keyframe definition. This may result in wrong final position of your component. One possible solution is to duplicate last timestamp in definition as '100' (or 'to')")}return g_(s,e,n)}function vA(t,e,n,r){const i=w_(t,n);v_(e,t.entering),(i==null?void 0:i.animationName)in Br&&y_(Br[i==null?void 0:i.animationName].style,e.style),i?I_(n,i,e,r):VS(e)}function b_(t,e,n){var o,l,c,u;if(!t.layout)return;const r=e.getBoundingClientRect();if(QS(r,n))return;const i=(o=t.layout.enteringV)==null?void 0:o.presetName,a=(l=t.layout.exitingV)==null?void 0:l.presetName,s={translateX:n.x-r.x,translateY:n.y-r.y,scaleX:n.width/r.width,scaleY:n.height/r.height,reversed:!1,easingX:((c=t.layout.easingXV)==null?void 0:c[jo])??"ease",easingY:((u=t.layout.easingYV)==null?void 0:u[jo])??"ease",entering:i,exiting:a};vA(t,e,Je.LAYOUT,s)}function S_(){const t=[],e=[];return{update(n,r){r?e.push(n):t.push(n),t.length+e.length===1&&(Ct()?this.flush():setImmediate(this.flush))},flush(){Dw(t.concat(e)),t.length=0,e.length=0}}}let ei;if(nt())ei=()=>{};else{const t=S_();ei=(e,n,r,i,a)=>t.update({viewTag:e,type:n,config:r?Ue(r):void 0,sharedTransitionTag:i},a)}let mA=t=>t._nativeTag!==void 0&&t.__nativeTag!==null?(mA=xu,xu(t)):t.__nativeTag!==void 0&&t.__nativeTag!==null?(mA=Fp,Fp(t)):xu(t);function xu(t){var e;return{viewName:(e=t==null?void 0:t.viewConfig)==null?void 0:e.uiViewClassName,viewTag:t==null?void 0:t._nativeTag,viewConfig:t==null?void 0:t.viewConfig}}function Fp(t){var e;return{viewName:(e=t==null?void 0:t._viewConfig)==null?void 0:e.uiViewClassName,viewTag:t==null?void 0:t.__nativeTag,viewConfig:t==null?void 0:t._viewConfig}}var Cn,Bs,Nt;class __{constructor(e,n){Hi(this,Cn);Hi(this,Bs);Hi(this,Nt,-1);qr(this,Cn,e),qr(this,Bs,n),qr(this,Nt,this.getEventViewTag())}attachEvents(){Pa(ke(this,Cn).props,(e,n)=>{n.registerForEvents(ke(this,Nt),e)})}detachEvents(){Pa(ke(this,Cn).props,(e,n)=>{n.unregisterFromEvents(ke(this,Nt))})}updateEvents(e){const n=this.getEventViewTag();if(ke(this,Nt)!==n){Pa(e,(r,i)=>{i.unregisterFromEvents(ke(this,Nt))}),qr(this,Nt,n),this.attachEvents();return}Pa(e,(r,i)=>{const a=ke(this,Cn).props[r];a?qC(a)&&a.workletEventHandler!==i&&(i.unregisterFromEvents(ke(this,Nt)),a.workletEventHandler.registerForEvents(ke(this,Nt))):i.unregisterFromEvents(ke(this,Nt))}),Pa(ke(this,Cn).props,(r,i)=>{e[r]||i.registerForEvents(ke(this,Nt))})}getEventViewTag(){var r;const e=ke(this,Cn)._component;let n;if(e.getScrollableNode){const i=e.getScrollableNode();n=i??-1}else n=((r=ke(this,Bs))!=null&&r.setNativeProps?ke(this,Cn):e)??-1;return n}}Cn=new WeakMap,Bs=new WeakMap,Nt=new WeakMap;function qC(t){return pA("workletEventHandler",t)&&t.workletEventHandler instanceof eu}function Pa(t,e){for(const n in t){const r=t[n];qC(r)&&e(n,r.workletEventHandler)}}const Wt=sn(),ao=Kt(),Rp=nt();Wt&&US();function D_(t){return t.filter(e=>e==null?void 0:e.viewDescriptors)}let T_=0;function Fi(t,e){Qo(typeof t!="function"||t.prototype&&t.prototype.isReactComponent,`Looks like you're passing a function component \`${t.name}\` to \`createAnimatedComponent\` function which supports only class components. Please wrap your function component with \`React.forwardRef()\` or use a class component instead.`);const r=class r extends _t.Component{constructor(s){var l;super(s);F(this,"_styles",null);F(this,"_componentViewTag",-1);F(this,"_isFirstRender",!0);F(this,"jestAnimatedStyle",{value:{}});F(this,"_component",null);F(this,"_sharedElementTransition",null);F(this,"_jsPropsUpdater",new aS);F(this,"_InlinePropManager",new dS);F(this,"_PropsFilter",new gS);F(this,"reanimatedID",T_++);F(this,"_setComponentRef",sS({getForwardedRef:()=>this.props.forwardedRef,setLocalRef:s=>{var d,f,p;const o=s;o!==null&&(this._componentViewTag=o);const{layout:l,entering:c,exiting:u,sharedTransitionTag:A}=this.props;if((l||c||u||A)&&o!=null){Rp||IC(!0,!1),A&&this._configureSharedTransition(),u&&Ct()&&(("getReduceMotion"in u&&typeof u.getReduceMotion=="function"?tr(u.getReduceMotion()):tr())||ei(o,Je.EXITING,Ma(u,(d=this.props)==null?void 0:d.style,r.displayName)));const h=(f=this.context)==null?void 0:f.current;c&&!h&&!Wt&&ei(o,Je.ENTERING,Ma(c,(p=this.props)==null?void 0:p.style,r.displayName))}s!==this._component&&(this._component=s)}}));ao&&(this.jestAnimatedStyle={value:{}});const o=this.props.entering;o&&Ct()&&ei(this.reanimatedID,Je.ENTERING,Ma(o,(l=this.props)==null?void 0:l.style,r.displayName))}componentDidMount(){var o,l;if(this._componentViewTag=this._getComponentViewTag(),Wt||(this._NativeEventsManager=new __(this,e)),(o=this._NativeEventsManager)==null||o.attachEvents(),this._jsPropsUpdater.addOnJSPropsChangeListener(this),this._attachAnimatedStyles(),this._InlinePropManager.attachInlineProps(this,this._getViewInfo()),this.props.layout&&this._configureLayoutTransition(),Wt){if(this.props.exiting&&gA(this._component),!this.props.entering||io(this.props.entering)){this._isFirstRender=!1;return}((l=this.context)==null?void 0:l.current)?this._component.style.visibility="initial":vA(this.props,this._component,Je.ENTERING)}this._isFirstRender=!1}componentWillUnmount(){var o,l,c;(o=this._NativeEventsManager)==null||o.detachEvents(),this._jsPropsUpdater.removeOnJSPropsChangeListener(this),this._detachStyles(),this._InlinePropManager.detachInlineProps(),this.props.sharedTransitionTag&&this._configureSharedTransition(!0),(l=this._sharedElementTransition)==null||l.unregisterTransition(this._componentViewTag,!0);const s=this.props.exiting;Wt&&this._component&&s&&!io(s)?(jS(),vA(this.props,this._component,Je.EXITING)):s&&!Wt&&!Ct()&&(("getReduceMotion"in s&&typeof s.getReduceMotion=="function"?tr(s.getReduceMotion()):tr())||ei(this._componentViewTag,Je.EXITING,Ma(s,(c=this.props)==null?void 0:c.style,r.displayName)))}_getComponentViewTag(){return this._getViewInfo().viewTag}_detachStyles(){var s;if(this._componentViewTag!==-1&&this._styles!==null){for(const o of this._styles)o.viewDescriptors.remove(this._componentViewTag);(s=this.props.animatedProps)!=null&&s.viewDescriptors&&this.props.animatedProps.viewDescriptors.remove(this._componentViewTag),Ct()&&tS(this._componentViewTag)}}_updateFromNative(s){var o,l;e!=null&&e.setNativeProps?e.setNativeProps(this._component,s):(l=(o=this._component)==null?void 0:o.setNativeProps)==null||l.call(o,s)}_getViewInfo(){var A,d,f;if(this._viewInfo!==void 0)return this._viewInfo;let s,o,l=null,c;const u=(A=this._component)!=null&&A.getAnimatableRef?(f=(d=this._component).getAnimatableRef)==null?void 0:f.call(d):this;if(Rp)s=this._component,o=null,l=null,c=null;else{const p=Xb.findHostInstance_DEPRECATED(u);if(!p)throw new oe("Cannot find host instance for this component. Maybe it renders nothing?");const h=mA(p);s=h.viewTag,o=h.viewName,c=h.viewConfig,l=Ct()?VC():null}return this._viewInfo={viewTag:s,viewName:o,shadowNodeWrapper:l,viewConfig:c},this._viewInfo}_attachAnimatedStyles(){var p,h;const s=this.props.style?D_(rh(this.props.style)):[],o=this._styles;this._styles=s;const l=this._animatedProps;this._animatedProps=this.props.animatedProps;const{viewTag:c,viewName:u,shadowNodeWrapper:A,viewConfig:d}=this._getViewInfo();if((((p=this.props.animatedProps)==null?void 0:p.viewDescriptors)||s.length)&&d&&BC(d),this._componentViewTag=c,o&&!(s.length===1&&o.length===1&&s[0]===o[0]))for(const E of o)s.some(v=>v===E)||E.viewDescriptors.remove(c);s.forEach(g=>{g.viewDescriptors.add({tag:c,name:u,shadowNodeWrapper:A}),ao&&(this.jestAnimatedStyle.value={...this.jestAnimatedStyle.value,...g.initial.value},g.jestAnimatedStyle.current=this.jestAnimatedStyle)}),l&&l!==this.props.animatedProps&&l.viewDescriptors.remove(c),(h=this.props.animatedProps)!=null&&h.viewDescriptors&&this.props.animatedProps.viewDescriptors.add({tag:c,name:u,shadowNodeWrapper:A})}componentDidUpdate(s,o,l){var A;const c=this.props.layout,u=s.layout;c!==u&&this._configureLayoutTransition(),(this.props.sharedTransitionTag!==void 0||s.sharedTransitionTag!==void 0)&&this._configureSharedTransition(),(A=this._NativeEventsManager)==null||A.updateEvents(s),this._attachAnimatedStyles(),this._InlinePropManager.attachInlineProps(this,this._getViewInfo()),Wt&&this.props.exiting&&gA(this._component),Wt&&l!==null&&this.props.layout&&!io(this.props.layout)&&b_(this.props,this._component,l)}_configureLayoutTransition(){if(Wt)return;const s=this.props.layout?Ma(this.props.layout,void 0,r.displayName):void 0;ei(this._componentViewTag,Je.LAYOUT,s)}_configureSharedTransition(s=!1){var c;if(Wt)return;const{sharedTransitionTag:o}=this.props;if(!o){(c=this._sharedElementTransition)==null||c.unregisterTransition(this._componentViewTag,s),this._sharedElementTransition=null;return}const l=this.props.sharedTransitionStyle??this._sharedElementTransition??new Sr;l.registerTransition(this._componentViewTag,o,s),this._sharedElementTransition=l}getSnapshotBeforeUpdate(){var s;return Wt&&((s=this._component)==null?void 0:s.getBoundingClientRect)!==void 0?this._component.getBoundingClientRect():null}render(){var A;const s=this._PropsFilter.filterNonAnimatedProps(this);ao&&(s.jestAnimatedStyle=this.jestAnimatedStyle),this._isFirstRender&&Wt&&s.entering&&!io(s.entering)&&(s.style={...s.style??{},visibility:"hidden"});const o=ue.select({web:{},default:{collapsable:!1}}),c=((A=this.context)==null?void 0:A.current)||!Ct()?void 0:`${this.reanimatedID}`,u=ao?{jestInlineStyle:this.props.style,jestAnimatedStyle:this.jestAnimatedStyle}:{};return k.jsx(t,{nativeID:c,...s,...u,ref:this._setComponentRef,...o})}};F(r,"contextType",HC);let n=r;return n.displayName=`AnimatedComponent(${t.displayName||t.name||"Component"})`,_t.forwardRef((i,a)=>k.jsx(n,{...i,...a===null?null:{forwardedRef:a}}))}const O_=Fi(c1),KC=Fi(pe);function ct(t){const[e]=_.useState(()=>Pn(t));return _.useEffect(()=>()=>{DC(e)},[e]),e}function $C(t){return Object.values(t).reduce((e,n)=>e+n.__workletHash.toString(),"")}function k_(t,e){const n=Object.values(e).filter(r=>r!==void 0);return t?t.push($C(n)):t=n.map(r=>({workletHash:r.__workletHash,closure:r.__closure})),t}function M_(t,e){function n(a,s){return a===s&&(a!==0||1/a===1/s)||Number.isNaN(a)&&Number.isNaN(s)}const r=typeof Object.is=="function"?Object.is:n;function i(a,s){if(!a||!s||s.length!==a.length)return!1;for(let o=0;o<s.length;++o)if(!r(a[o],s[o]))return!1;return!0}return i(t,e)}function bs(t){"worklet";return Array.isArray(t)?t.some(bs):typeof t=="object"&&t!==null?t.onFrame!==void 0?!0:Object.values(t).some(bs):!1}function jC(t,e){"worklet";const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(t[n[i]]!==e[n[i]])return!1;return!0}const P_=nt();function ol(t,e,n,r){"worklet";if(Array.isArray(e)&&e.forEach((i,a)=>{ol(t,i,n&&n[a],r&&r[a])}),typeof e=="object"&&e.onFrame){const i=e;let a=i.current;r!=null&&(typeof r=="object"?r.value!==void 0?a=r.value:r.onFrame!==void 0&&((n==null?void 0:n.current)!==void 0?a=n.current:(r==null?void 0:r.current)!==void 0&&(a=r.current)):a=r),i.callStart=s=>{i.onStart(i,a,s,n)},i.callStart(t),i.callStart=null}else typeof e=="object"&&Object.keys(e).forEach(i=>ol(t,e[i],n&&n[i],r&&r[i]))}function ll(t,e,n,r,i){"worklet";if(!i.value)return!0;if(Array.isArray(t)){r[n]=[];let a=!0;return t.forEach((s,o)=>{ll(s,e,o,r[n],i)||(a=!1)}),a}else if(typeof t=="object"&&t.onFrame){let a=!0;return t.finished||(t.callStart&&(t.callStart(e),t.callStart=null),a=t.onFrame(t,e),t.timestamp=e,a&&(t.finished=!0,t.callback&&t.callback(!0))),r[n]=t.current,a}else if(typeof t=="object"){r[n]={};let a=!0;return Object.keys(t).forEach(s=>{ll(t[s],e,s,r[n],i)||(a=!1)}),a}else return r[n]=t,!0}function F_(t,e,n,r,i=!1){"worklet";const a=n.animations??{},s=e()??{},o=n.last,l={};let c=!1,u,A=!1;for(const d in s){const f=s[d];bs(f)?(u=global.__frameTimestamp||global._getAnimationTimestamp(),ol(u,f,a[d],o[d]),a[d]=f,c=!0):(A=!0,l[d]=f,delete a[d])}if(c){const d=f=>{const{animations:p,last:h,isAnimationCancelled:g}=n;if(g){n.isAnimationRunning=!1;return}const E={};let m=!0;for(const v in p)ll(p[v],f,v,E,r)?(h[v]=E[v],delete p[v]):m=!1;E&&sr(t,E),m?n.isAnimationRunning=!1:requestAnimationFrame(d)};n.animations=a,n.isAnimationRunning||(n.isAnimationCancelled=!1,n.isAnimationRunning=!0,d(u)),A&&sr(t,l)}else n.isAnimationCancelled=!0,n.animations=[],jC(o,s)||sr(t,s,i);n.last=s}function R_(t,e,n,r,i,a){"worklet";const s=n.animations??{},o=e()??{},l=n.last;let c=!1,u;Object.keys(s).forEach(d=>{const f=o[d];bs(f)||delete s[d]}),Object.keys(o).forEach(d=>{const f=o[d];bs(f)&&(u=global.__frameTimestamp||global._getAnimationTimestamp(),ol(u,f,s[d],l[d]),s[d]=f,c=!0)});function A(d){const{animations:f,last:p,isAnimationCancelled:h}=n;if(h){n.isAnimationRunning=!1;return}const g={};let E=!0;Object.keys(f).forEach(m=>{ll(f[m],d,m,g,r)?(p[m]=g[m],delete f[m]):E=!1}),Object.keys(g).length&&Sp(t,g,i,a),E?n.isAnimationRunning=!1:requestAnimationFrame(A)}c?(n.animations=s,n.isAnimationRunning||(n.isAnimationCancelled=!1,n.isAnimationRunning=!0,A(u))):(n.isAnimationCancelled=!0,n.animations=[]),n.last=o,jC(l,o)||Sp(t,o,i,a)}function CA(t,e){if(Array.isArray(t))for(const n of t)CA(n,e);else if(typeof t=="object"&&t!==null&&t.value===void 0)for(const n of Object.keys(t))CA(t[n],n);else if(e!==void 0&&typeof t=="object"&&t!==null&&t.value!==void 0)throw new oe(`Invalid value passed to \`${e}\`, maybe you forgot to use \`.value\`?`)}function Fn(t,e,n,r=!1){const i=_.useRef();let a=Object.values(t.__closure??{});P_&&!a.length&&e!=null&&e.length&&(a=e);const s=n?Array.isArray(n)?n:[n]:[],o=n?$C(s):null,l=ct(!0),c=_.useRef({});if(e?e.push(t.__workletHash):e=[...a,t.__workletHash],o&&e.push(o),!i.current){const h=$f(t);i.current={initial:{value:h,updater:t},remoteState:$c({last:h,animations:{},isAnimationCancelled:!1,isAnimationRunning:!1}),viewDescriptors:UC()}}const{initial:u,remoteState:A,viewDescriptors:d}=i.current,f=d.shareableViewDescriptors;e.push(f),_.useEffect(()=>{let h,g=t;n&&(g=()=>{"worklet";const m=t();return s.forEach(v=>{v(m)}),m}),Kt()?h=()=>{"worklet";R_(f,t,A,l,c,s)}:h=()=>{"worklet";F_(f,g,A,l,r)};const E=Hs(h,a);return()=>{da(E)}},e),_.useEffect(()=>(l.value=!0,()=>{l.value=!1}),[l]),CA(u.value);const p=_.useRef(null);return p.current||(p.current=Kt()?{viewDescriptors:d,initial:u,jestAnimatedStyle:c}:{viewDescriptors:d,initial:u}),p.current}function N_(t,e,n){return Fn(t,e,n,!0)}const B_=Fn,oh=nt()?N_:B_;function G_(t,e){return _.useCallback(t,e??[])}const L_=Kf();function V_(){return L_}function tu(t,e){const n=_.useRef(null);if(n.current===null){const o=$c({});n.current={context:o,savedDependencies:[]}}_.useEffect(()=>()=>{n.current=null},[]);const{context:r,savedDependencies:i}=n.current;e=k_(e,t);const a=!M_(e,i);n.current.savedDependencies=e;const s=sn()||Kt();return{context:r,doDependenciesDiffer:a,useWeb:s}}function Us(t,e=[],n=!1){const r=_.useRef(null);if(r.current===null){const i=new eu(t,e);r.current={workletEventHandler:i}}else if(n){const i=r.current.workletEventHandler;i.updateEventHandler(t,e),r.current={workletEventHandler:i}}return r.current}const It={UNDETERMINED:0,FAILED:1,BEGAN:2,CANCELLED:3,ACTIVE:4,END:5};function H_(t,e){const{context:n,doDependenciesDiffer:r,useWeb:i}=tu(t,e),a=s=>{"worklet";const o=i?s.nativeEvent:s;o.state===It.BEGAN&&t.onStart&&t.onStart(o,n),o.state===It.ACTIVE&&t.onActive&&t.onActive(o,n),o.oldState===It.ACTIVE&&o.state===It.END&&t.onEnd&&t.onEnd(o,n),o.oldState===It.BEGAN&&o.state===It.FAILED&&t.onFail&&t.onFail(o,n),o.oldState===It.ACTIVE&&o.state===It.CANCELLED&&t.onCancel&&t.onCancel(o,n),(o.oldState===It.BEGAN||o.oldState===It.ACTIVE)&&o.state!==It.BEGAN&&o.state!==It.ACTIVE&&t.onFinish&&t.onFinish(o,n,o.state===It.CANCELLED||o.state===It.FAILED)};return i?a:Us(a,["onGestureHandlerStateChange","onGestureHandlerEvent"],r)}function U_(t,e,n){const r=ct(null);let i=Object.values(t.__closure??{});nt()&&!i.length&&n!=null&&n.length&&(i=n),n===void 0?n=[...Object.values(t.__closure??{}),...Object.values(e.__closure??{}),t.__workletHash,e.__workletHash]:n.push(t.__workletHash,e.__workletHash),_.useEffect(()=>{const s=Hs(()=>{"worklet";const o=t();e(o,r.value),r.value=o},i);return()=>{da(s)}},n)}const W_=sn();function yu(t){return Ct()&&t.getNativeScrollRef?t.getNativeScrollRef():!Ct()&&t.getScrollableNode?t.getScrollableNode():t}function QC(){const t=ct(-1),e=ct(null),n=_.useRef();if(!n.current){const r=a=>{var s;if(a){const o=Ct()?VC:SI,l=()=>W_?yu(a):o(yu(a));t.value=l(),r.getTag=Ct()?()=>yu(a):l,r.current=a,ue.OS==="ios"&&!Ct()&&(e.value=((s=a==null?void 0:a.viewConfig)==null?void 0:s.uiViewClassName)||"RCTView")}return t.value};r.current=null;const i=Ue({__init:()=>{"worklet";const a=()=>t.value;return a.viewName=e,a}});Xt.set(r,i),n.current=r}return n.current}function X_(t,e){const n=typeof t=="function"?{onScroll:t}:t,{context:r,doDependenciesDiffer:i}=tu(n,e),a=["onScroll"];return n.onBeginDrag!==void 0&&a.push("onScrollBeginDrag"),n.onEndDrag!==void 0&&a.push("onScrollEndDrag"),n.onMomentumBegin!==void 0&&a.push("onMomentumScrollBegin"),n.onMomentumEnd!==void 0&&a.push("onMomentumScrollEnd"),Us(s=>{"worklet";const{onScroll:o,onBeginDrag:l,onEndDrag:c,onMomentumBegin:u,onMomentumEnd:A}=n;o&&s.eventName.endsWith("onScroll")?o(s,r):l&&s.eventName.endsWith("onScrollBeginDrag")?l(s,r):c&&s.eventName.endsWith("onScrollEndDrag")?c(s,r):u&&s.eventName.endsWith("onMomentumScrollBegin")?u(s,r):A&&s.eventName.endsWith("onMomentumScrollEnd")&&A(s,r)},a,i)}function Y_(t,e){const n=_.useRef(null);let r=Object.values(t.__closure??{});nt()&&!r.length&&e!=null&&e.length&&(r=e),e===void 0?e=[...r,t.__workletHash]:e.push(t.__workletHash),n.current===null&&(n.current=Pn($f(t)));const i=n.current;return _.useEffect(()=>{const s=Hs(()=>{"worklet";i.value=t()},r,[i]);return()=>{da(s)}},e),_.useEffect(()=>()=>{n.current=null},[]),i}function z_(t,e,n){"worklet";const r=Math.cos(t/2),i=Math.sin(t/2),a=Math.cos(e/2),s=Math.sin(e/2),o=Math.cos(n/2),l=Math.sin(n/2);return[i*a*o-r*s*l,r*s*o+i*a*l,r*a*l+i*s*o,r*a*o-i*s*l]}function q_(t){"worklet";const{interfaceOrientation:e,pitch:n,roll:r,yaw:i}=t;e===yi.ROTATION_90?(t.pitch=r,t.roll=-n,t.yaw=i-Math.PI/2):e===yi.ROTATION_270?(t.pitch=-r,t.roll=n,t.yaw=i+Math.PI/2):e===yi.ROTATION_180&&(t.pitch*=-1,t.roll*=-1,t.yaw*=-1);const a=z_(t.pitch,t.roll,t.yaw);return t.qx=a[0],t.qy=a[1],t.qz=a[2],t.qw=a[3],t}function K_(t){"worklet";const{interfaceOrientation:e,x:n,y:r}=t;return e===yi.ROTATION_90?(t.x=-r,t.y=n):e===yi.ROTATION_270?(t.x=r,t.y=-n):e===yi.ROTATION_180&&(t.x*=-1,t.y*=-1),t}function $_(t,e){var s,o,l;const n=_.useRef(e);(((s=n.current)==null?void 0:s.adjustToInterfaceOrientation)!==(e==null?void 0:e.adjustToInterfaceOrientation)||((o=n.current)==null?void 0:o.interval)!==(e==null?void 0:e.interval)||((l=n.current)==null?void 0:l.iosReferenceFrame)!==(e==null?void 0:e.iosReferenceFrame))&&(n.current={...e});const i=_.useMemo(()=>({interval:"auto",adjustToInterfaceOrientation:!0,iosReferenceFrame:oC.Auto,...n.current}),[n.current]),a=_.useRef({sensor:gp(t,i),unregister:()=>{},isAvailable:!1,config:i});return _.useEffect(()=>{a.current={sensor:gp(t,i),unregister:()=>{},isAvailable:!1,config:i};const c=a.current.sensor,u=a.current.config.adjustToInterfaceOrientation,A=Sw(t,i,d=>{"worklet";u&&(t===Qe.ROTATION?d=q_(d):d=K_(d)),c.value=d,Vf()});return A!==-1?(a.current.unregister=()=>_w(A),a.current.isAvailable=!0):(a.current.unregister=()=>{},a.current.isAvailable=!1),()=>{a.current.unregister()}},[t,i]),a.current}const j_=Hf(()=>{"worklet";const t={frameCallbackRegistry:new Map,activeFrameCallbacks:new Set,previousFrameTimestamp:null,nextCallId:0,runCallbacks(e){const n=r=>{if(e!==this.nextCallId)return;this.previousFrameTimestamp===null&&(this.previousFrameTimestamp=r);const i=r-this.previousFrameTimestamp;this.activeFrameCallbacks.forEach(a=>{const s=this.frameCallbackRegistry.get(a),{startTime:o}=s;o===null?(s.startTime=r,s.callback({timestamp:r,timeSincePreviousFrame:null,timeSinceFirstFrame:0})):s.callback({timestamp:r,timeSincePreviousFrame:i,timeSinceFirstFrame:r-o})}),this.activeFrameCallbacks.size>0?(this.previousFrameTimestamp=r,requestAnimationFrame(n)):this.previousFrameTimestamp=null};this.activeFrameCallbacks.size===1&&e===this.nextCallId&&requestAnimationFrame(n)},registerFrameCallback(e,n){this.frameCallbackRegistry.set(n,{callback:e,startTime:null})},unregisterFrameCallback(e){this.manageStateFrameCallback(e,!1),this.frameCallbackRegistry.delete(e)},manageStateFrameCallback(e,n){if(e!==-1)if(n)this.activeFrameCallbacks.add(e),this.runCallbacks(this.nextCallId);else{const r=this.frameCallbackRegistry.get(e);r.startTime=null,this.activeFrameCallbacks.delete(e),this.activeFrameCallbacks.size===0&&(this.nextCallId+=1)}}};global._frameCallbackRegistry=t});class Q_{constructor(){F(this,"nextCallbackId",0);j_()}registerFrameCallback(e){if(!e)return-1;const n=this.nextCallbackId;return this.nextCallbackId++,ar(()=>{global._frameCallbackRegistry.registerFrameCallback(e,n)})(),n}unregisterFrameCallback(e){ar(()=>{global._frameCallbackRegistry.unregisterFrameCallback(e)})()}manageStateFrameCallback(e,n){ar(()=>{global._frameCallbackRegistry.manageStateFrameCallback(e,n)})()}}const Iu=new Q_;function ZC(t,e=!0){const n=_.useRef({setActive:r=>{Iu.manageStateFrameCallback(n.current.callbackId,r),n.current.isActive=r},isActive:e,callbackId:-1});return _.useEffect(()=>{n.current.callbackId=Iu.registerFrameCallback(t);const r=n.current;return n.current.setActive(n.current.isActive),()=>{Iu.unregisterFrameCallback(r.callbackId),r.callbackId=-1}},[t,e]),n.current}function Z_(t={isStatusBarTranslucentAndroid:!1,isNavigationBarTranslucentAndroid:!1}){const e=_.useRef(null),n=_.useRef(-1),r=_.useRef(!1);if(e.current===null){const i={state:Pn(lC.UNKNOWN),height:Pn(0)};n.current=pp((a,s)=>{"worklet";i.state.value=a,i.height.value=s},t),e.current=i,r.current=!0}return _.useEffect(()=>{if(r.current===!1&&e.current!==null){const i=e.current;n.current=pp((a,s)=>{"worklet";i.state.value=a,i.height.value=s},t),r.current=!0}return()=>{bw(n.current),r.current=!1}},[]),e.current}const J_=sn(),JC=J_?eD:tD;function eD(t,e){const n=ct(0),r=_.useRef(e??n).current,i=_.useCallback(()=>{"worklet";if(t){const a=Np(t.current);r.value=a.scrollLeft===0?a.scrollTop:a.scrollLeft}},[t,t==null?void 0:t.current]);return _.useEffect(()=>{const a=t!=null&&t.current?Np(t.current):null;return a&&a.addEventListener("scroll",i),()=>{a&&a.removeEventListener("scroll",i)}},[t,t==null?void 0:t.current,i]),r}function tD(t,e){const n=ct(0),r=_.useRef(e??n).current,i=Us(a=>{"worklet";r.value=a.contentOffset.x===0?a.contentOffset.y:a.contentOffset.x},nD);return _.useEffect(()=>{const a=(t==null?void 0:t.getTag())??null;return a&&i.workletEventHandler.registerForEvents(a),()=>{a&&i.workletEventHandler.unregisterFromEvents(a)}},[t,t==null?void 0:t.current,i]),r}function Np(t){return(t==null?void 0:t.getScrollableNode())??t}const nD=["onScroll","onScrollBeginDrag","onScrollEndDrag","onMomentumScrollBegin","onMomentumScrollEnd"];function rD(t){const e={},n=new Set,r={};t.filter(a=>a!==null).forEach(a=>{const{workletEventHandler:s}=a;s instanceof eu&&s.eventNames.forEach(o=>{n.add(o),r[o]?r[o].push(s.worklet):r[o]=[s.worklet];const l=o+`${r[o].length}`;e[l]=s.worklet})});const{doDependenciesDiffer:i}=tu(e);return Us(a=>{"worklet";r[a.eventName]&&r[a.eventName].forEach(s=>s(a))},Array.from(n),i)}const iD=Fi(ya),aD=_.forwardRef((t,e)=>{const{scrollViewOffset:n,...r}=t,i=e===null?QC():e;return n&&JC(i,n),"scrollEventThrottle"in r||(r.scrollEventThrottle=1),k.jsx(iD,{ref:i,...r})}),sD=Fi(fs),oD=Fi(Lm),lD=t=>n=>k.jsx(KC,{layout:t==null?void 0:t.current,onLayout:n.onLayout,style:n.style,children:n.children}),cD=function(t,e){const{itemLayoutAnimation:n,skipEnteringExitingAnimations:r,...i}=t;"scrollEventThrottle"in i||(i.scrollEventThrottle=1);const a=_.useRef(n);a.current=n;const s=_t.useMemo(()=>lD(a),[a]),o=k.jsx(oD,{ref:e,...i,CellRendererComponent:s});return r===void 0?o:k.jsx(Jc,{skipEntering:!0,skipExiting:!0,children:o})},uD=_.forwardRef(cD),$t=Object.freeze(Object.defineProperty({__proto__:null,FlatList:uD,Image:sD,ScrollView:aD,Text:O_,View:KC,addWhitelistedNativeProps:eh,addWhitelistedUIProps:NC,createAnimatedComponent:Fi},Symbol.toStringTag,{value:"Module"}));let Ye=function(t){return t.IDENTITY="identity",t.CLAMP="clamp",t.EXTEND="extend",t}({});function Bp(t,e,n,r,i,a){"worklet";switch(t){case Ye.IDENTITY:return a;case Ye.CLAMP:return e*n<e*r?r:i;case Ye.EXTEND:default:return n}}function wu(t){"worklet";return t===Ye.EXTEND||t===Ye.CLAMP||t===Ye.IDENTITY}function dD(t){"worklet";const e={extrapolateLeft:Ye.EXTEND,extrapolateRight:Ye.EXTEND};if(!t)return e;if(typeof t=="string"){if(!wu(t))throw new oe(`Unsupported value for "interpolate" +${PI}`),r.logFunction(RI(t,e)))}const Oe={warn(t,e={}){"worklet";Ap("warn",t,e)},error(t,e={}){"worklet";Ap("error",t,e)}},oe=function(e){"worklet";const n="[Reanimated]",r=new Error(e?`${n} ${e}`:n);return r.name="ReanimatedError",r};function AC(){"worklet";if(!_WORKLET)throw new Error("[Reanimated] registerReanimatedError() must be called on Worklet runtime");global.ReanimatedError=oe}const GI=new Map;function LI(t){var n,r;const e=(r=(n=t.stack)==null?void 0:n.split(` +`))==null?void 0:r[0];if(e){const i=/@([^@]+):(\d+):(\d+)/.exec(e);if(i){const[,a,s,o]=i;return[a,Number(s),Number(o)]}}return["unknown",0,0]}function VI(t){const e=t.match(/worklet_(\d+):(\d+):(\d+)/g);let n=t;return e==null||e.forEach(r=>{const[,i,a,s]=r.split(/:|_/).map(Number),o=GI.get(i);if(!o)return;const[l,c,u]=o,[A,d,f]=LI(l),p=a+d+c,h=s+f+u;n=n.replace(r,`${A}:${p}:${h}`)}),n}function HI({message:t,stack:e}){const n=new Error;n.message=t,n.stack=e?VI(e):void 0,n.name="ReanimatedError",n.jsEngine="reanimated",global.ErrorUtils.reportFatalError(n)}const UI=Kt()||!globalThis.requestAnimationFrame?cC:globalThis.requestAnimationFrame;class WI{constructor(){F(this,"nextSensorId",0);F(this,"sensors",new Map);F(this,"platform");F(this,"getSensorCallback",(e,n,r)=>{switch(n){case Ze.ACCELEROMETER:case Ze.GRAVITY:return()=>{let{x:i,y:a,z:s}=e;this.platform===Ir.WEB_ANDROID&&([i,a,s]=[-i,-a,-s]),r({x:i,y:a,z:s,interfaceOrientation:0})};case Ze.GYROSCOPE:case Ze.MAGNETIC_FIELD:return()=>{const{x:i,y:a,z:s}=e;r({x:i,y:a,z:s,interfaceOrientation:0})};case Ze.ROTATION:return()=>{let[i,a,s,o]=e.quaternion;this.platform===Ir.WEB_ANDROID&&([s,o]=[o,-s]);const l=-Math.atan2(2*(s*o+i*a),i*i-a*a-s*s+o*o),c=Math.sin(-2*(a*o-i*s)),u=-Math.atan2(2*(a*s+i*o),i*i+a*a-s*s-o*o);r({qw:i,qx:a,qy:s,qz:o,yaw:l,pitch:c,roll:u,interfaceOrientation:0})}}})}makeShareableClone(){throw new oe("makeShareableClone should never be called in JSReanimated.")}scheduleOnUI(e){UI(e)}createWorkletRuntime(e,n){throw new oe("createWorkletRuntime is not available in JSReanimated.")}scheduleOnRuntime(){throw new oe("scheduleOnRuntime is not available in JSReanimated.")}registerEventHandler(e,n,r){throw new oe("registerEventHandler is not available in JSReanimated.")}unregisterEventHandler(e){throw new oe("unregisterEventHandler is not available in JSReanimated.")}enableLayoutAnimations(){sn()?Oe.warn("Layout Animations are not supported on web yet."):Kt()?Oe.warn("Layout Animations are no-ops when using Jest."):ys()?Oe.warn("Layout Animations are no-ops when using Chrome Debugger."):Oe.warn("Layout Animations are not supported on this configuration.")}configureLayoutAnimationBatch(){}setShouldAnimateExitingForTag(){}registerSensor(e,n,r,i){if(!Ia())return-1;if(this.platform===void 0&&this.detectPlatform(),!(this.getSensorName(e)in window))return Oe.warn("Sensor is not available."+(sn()&&location.protocol!=="https:"?" Make sure you use secure origin with `npx expo start --web --https`.":"")+(this.platform===Ir.WEB_IOS?" For iOS web, you will also have to also grant permission in the browser: https://dev.to/li/how-to-requestpermission-for-devicemotion-and-deviceorientation-events-in-ios-13-46g2.":"")),-1;this.platform===void 0&&this.detectPlatform();const a=this.initializeSensor(e,n);return a.addEventListener("reading",this.getSensorCallback(a,e,i)),a.start(),this.sensors.set(this.nextSensorId,a),this.nextSensorId++}unregisterSensor(e){const n=this.sensors.get(e);n!==void 0&&(n.stop(),this.sensors.delete(e))}subscribeForKeyboardEvents(e){return sn()?Oe.warn("useAnimatedKeyboard is not available on web yet."):Kt()?Oe.warn("useAnimatedKeyboard is not available when using Jest."):ys()?Oe.warn("useAnimatedKeyboard is not available when using Chrome Debugger."):Oe.warn("useAnimatedKeyboard is not available on this configuration."),-1}unsubscribeFromKeyboardEvents(e){}initializeSensor(e,n){const r=n<=0?{referenceFrame:"device"}:{frequency:1e3/n};switch(e){case Ze.ACCELEROMETER:return new window.Accelerometer(r);case Ze.GYROSCOPE:return new window.Gyroscope(r);case Ze.GRAVITY:return new window.GravitySensor(r);case Ze.MAGNETIC_FIELD:return new window.Magnetometer(r);case Ze.ROTATION:return new window.AbsoluteOrientationSensor(r)}}getSensorName(e){switch(e){case Ze.ACCELEROMETER:return"Accelerometer";case Ze.GRAVITY:return"GravitySensor";case Ze.GYROSCOPE:return"Gyroscope";case Ze.MAGNETIC_FIELD:return"Magnetometer";case Ze.ROTATION:return"AbsoluteOrientationSensor"}}detectPlatform(){const e=navigator.userAgent||navigator.vendor||window.opera;e===void 0?this.platform=Ir.UNKNOWN:/iPad|iPhone|iPod/.test(e)?this.platform=Ir.WEB_IOS:/android/i.test(e)?this.platform=Ir.WEB_ANDROID:this.platform=Ir.WEB}getViewProp(e,n,r,i){throw new oe("getViewProp is not available in JSReanimated.")}configureProps(){throw new oe("configureProps is not available in JSReanimated.")}executeOnUIRuntimeSync(e){throw new oe("`executeOnUIRuntimeSync` is not available in JSReanimated.")}}var Ir=function(t){return t.WEB_IOS="web iOS",t.WEB_ANDROID="web Android",t.WEB="web",t.UNKNOWN="unknown",t}(Ir||{});const XI=Gs(o1),fC=Gs(l1);let Gf,$d,jd;try{Gf=XI.default}catch{}try{$d=fC.createTransformValue}catch{}try{jd=fC.createTextShadowValue}catch{}const Et={UI_THREAD_PROPS_WHITELIST:{opacity:!0,transform:!0,backgroundColor:!0,borderRightColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderStartColor:!0,borderTopColor:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0},NATIVE_THREAD_PROPS_WHITELIST:{borderBottomWidth:!0,borderEndWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderStartWidth:!0,borderTopWidth:!0,borderWidth:!0,bottom:!0,flex:!0,flexGrow:!0,flexShrink:!0,height:!0,left:!0,margin:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,padding:!0,paddingBottom:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,right:!0,start:!0,top:!0,width:!0,zIndex:!0,borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,fontSize:!0,lineHeight:!0,textShadowRadius:!0,textShadowOffset:!0,letterSpacing:!0,aspectRatio:!0,columnGap:!0,end:!0,flexBasis:!0,gap:!0,rowGap:!0,display:!0,backfaceVisibility:!0,overflow:!0,resizeMode:!0,fontStyle:!0,fontWeight:!0,textAlign:!0,textDecorationLine:!0,fontFamily:!0,textAlignVertical:!0,fontVariant:!0,textDecorationStyle:!0,textTransform:!0,writingDirection:!0,alignContent:!0,alignItems:!0,alignSelf:!0,direction:!0,flexDirection:!0,flexWrap:!0,justifyContent:!0,position:!0,color:!0,tintColor:!0,shadowColor:!0,placeholderTextColor:!0}},qe=new WI;global._makeShareableClone=()=>{throw new oe("_makeShareableClone should never be called in JSReanimated.")};global._scheduleHostFunctionOnJS=()=>{throw new oe("_scheduleHostFunctionOnJS should never be called in JSReanimated.")};global._scheduleRemoteFunctionOnJS=()=>{throw new oe("_scheduleHostFunctionOnJS should never be called in JSReanimated.")};global._scheduleOnRuntime=()=>{throw new oe("_scheduleOnRuntime should never be called in JSReanimated.")};const $c=(t,e,n)=>{if(e){const r=e.getAnimatableRef?e.getAnimatableRef():e,[i]=Object.keys(t).reduce((a,s)=>{const o=t[s],l=typeof o=="function"?1:0;return a[l][s]=o,a},[{},{}]);if(typeof r.setNativeProps=="function")YI(r,i,n);else if(Gf!==void 0&&r.style!==void 0)zI(r,i,n);else if(Object.keys(r.props).length>0)Object.keys(r.props).forEach(a=>{if(!i[a])return;const s=a.replace(/[A-Z]/g,o=>"-"+o.toLowerCase());r._touchableNode.setAttribute(s,i[a])});else{const a="className"in r?r==null?void 0:r.className:"";Oe.warn(`It's not possible to manipulate the component ${a}`)}}},YI=(t,e,n)=>{var a,s;if(n){const o={};for(const l in e)qI(l)&&(o[l]=e[l]);(a=t.setNativeProps)==null||a.call(t,o)}const i={...t.previousStyle?t.previousStyle:{},...e};t.previousStyle=i,(s=t.setNativeProps)==null||s.call(t,{style:i})},zI=(t,e,n)=>{const i={...t.previousStyle?t.previousStyle:{},...e};t.previousStyle=i;const a=Gf(i);Array.isArray(a.transform)&&$d!==void 0&&(a.transform=$d(a.transform)),jd!==void 0&&(a.textShadowColor||a.textShadowRadius||a.textShadowOffset)&&(a.textShadow=jd({textShadowColor:a.textShadowColor,textShadowOffset:a.textShadowOffset,textShadowRadius:a.textShadowRadius}));for(const s in a)n?t.setAttribute(s,a[s]):t.style[s]=a[s]};function qI(t){return!!Et.NATIVE_THREAD_PROPS_WHITELIST[t]}const hC=nt(),pC=Symbol("shareable flag"),hu=hC?null:new WeakMap,Xt=hC?{set(){},get(){return null}}:{set(t,e){hu.set(t,e||pC)},get:hu.get.bind(hu)},Lf=nt(),KI="REANIMATED_MAGIC_KEY";function gC(t){"worklet";return KI in t}function fp(t){return Object.getPrototypeOf(t)===Object.prototype}const $I={__init:()=>{"worklet";return new Proxy({},{get:(t,e)=>{if(e==="_isReanimatedSharedValue"||e==="__remoteFunction")return!1;throw new oe(`Trying to access property \`${String(e)}\` of an object which cannot be sent to the UI runtime.`)},set:()=>{throw new oe("Trying to write to an object which cannot be sent to the UI runtime.")}})}},jI=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array","DataView"],hp=30;let pu;function Ue(t,e=!1,n=0){if(Lf)return t;if(n>=hp){if(n===hp)pu=t;else if(t===pu)throw new oe("Trying to convert a cyclic object to a shareable. This is not supported.")}else pu=void 0;const r=typeof t,i=r==="object",a=r==="function";if((i||a)&&t!==null){const s=Xt.get(t);if(s===pC)return t;if(s!==void 0)return s;{let o;if(Array.isArray(t))o=t.map(c=>Ue(c,e,n+1));else if(a&&!Ko(t))o=t;else if(gC(t))o=t;else if(fp(t)&&t.__workletContextObjectFactory){const c=t.__workletContextObjectFactory,u=Ue({__init:()=>{"worklet";return c()}});return Xt.set(t,u),u}else if(fp(t)||a){o={},Ko(t)&&(t.__stackDetails&&delete t.__stackDetails,o.__initData=Ue(t.__initData,!0,n+1));for(const[c,u]of Object.entries(t))c==="__initData"&&o.__initData!==void 0||(o[c]=Ue(u,e,n+1))}else if(t instanceof RegExp){const c=t.source,u=t.flags,A=Ue({__init:()=>{"worklet";return new RegExp(c,u)}});return Xt.set(t,A),A}else if(t instanceof Error){const{name:c,message:u,stack:A}=t,d=Ue({__init:()=>{"worklet";const f=new Error;return f.name=c,f.message=u,f.stack=A,f}});return Xt.set(t,d),d}else if(t instanceof ArrayBuffer)o=t;else if(ArrayBuffer.isView(t)){const c=t.buffer,u=t.constructor.name,A=Ue({__init:()=>{"worklet";if(!jI.includes(u))throw new oe(`Invalid array view name \`${u}\`.`);const d=global[u];if(d===void 0)throw new oe(`Constructor for \`${u}\` not found.`);return new d(c)}});return Xt.set(t,A),A}else{const c=Ue($I);return Xt.set(t,c),c}const l=qe.makeShareableClone(o,e,t);return Xt.set(t,l),Xt.set(l),l}}return qe.makeShareableClone(t,e,void 0)}function QI(t){"worklet";return!!t.__remoteFunction}function Vf(t){"worklet";if(Lf)return t;function e(n){if(typeof n=="object"&&n!==null||typeof n=="function"){if(gC(n))return global._makeShareableClone(n,void 0);if(QI(n))return n.__remoteFunction;if(Array.isArray(n))return global._makeShareableClone(n.map(e),void 0);const r={};for(const[i,a]of Object.entries(n))r[i]=e(a);return global._makeShareableClone(r,n)}return global._makeShareableClone(n,void 0)}return e(t)}function ZI(t){return t}function JI(t){if(Xt.get(t))return t;const e=Ue({__init:()=>{"worklet";return t}});return Xt.set(t,e),t}const jc=Lf?ZI:JI,ew=Kt(),vC=nt();let Js=[];function tw(){"worklet";let t=[],e=!1;global.queueMicrotask=n=>{t.push(n)},global.__callMicrotasks=()=>{if(!e)try{e=!0;for(let n=0;n<t.length;n+=1)t[n]();t=[],global._maybeFlushUIUpdatesQueue()}finally{e=!1}}}function nw(){"worklet";global.__callMicrotasks()}const Hf=vC?()=>{}:nw;function ar(t){"worklet";return(...e)=>{if(ew){qe.scheduleOnUI(Ue(()=>{"worklet";t(...e)}));return}Js.push([t,e]),Js.length===1&&queueMicrotask(()=>{const n=Js;Js=[],qe.scheduleOnUI(Ue(()=>{"worklet";n.forEach(([r,i])=>{r(...i)}),Hf()}))})}}function ra(t){return(...e)=>qe.executeOnUIRuntimeSync(Ue(()=>{"worklet";const n=t(...e);return Vf(n)}))}function Uf(t){"worklet";return(...e)=>{qe.scheduleOnUI(Ue(()=>{"worklet";t(...e)}))}}function rw(t,...e){t(...e)}function En(t){"worklet";if(vC||!_WORKLET)return(...n)=>queueMicrotask(n.length?()=>t(...n):t);if(Ko(t))return(...n)=>En(rw)(t,...n);t.__remoteFunction&&(t=t.__remoteFunction);const e=typeof t=="function"?global._scheduleHostFunctionOnJS:global._scheduleRemoteFunctionOnJS;return(...n)=>{e(t,n.length>0?Vf(n):void 0)}}const iw=Kt(),mC=nt(),aw=ys();function CC(){"worklet";BI(t=>{"worklet";En(NI)(t)})}Vs(dC);CC();mC?(global._WORKLET=!1,global._log=console.log,global._getAnimationTimestamp=()=>performance.now()):(ra(AC)(),ra(Vs)(dC),ra(CC)());function sw(t,...e){"worklet";try{return t(...e)}catch(n){if(global.__ErrorUtils)global.__ErrorUtils.reportFatalError(n);else throw n}}function EC(){"worklet";global.__callGuardDEV=sw,global.__ErrorUtils={reportFatalError:t=>{En(HI)({message:t.message,stack:t.stack})}}}function ow(){return Object.fromEntries(Object.entries(console).map(([e,n])=>{const r=function(...a){return n(...a)};return n.name&&Object.defineProperty(r,"name",{value:n.name,writable:!1}),[e,r]}))}const Wi=ow();function xC(){"worklet";aw||(global.console={assert:En(Wi.assert),debug:En(Wi.debug),log:En(Wi.log),warn:En(Wi.warn),error:En(Wi.error),info:En(Wi.info)})}function lw(){"worklet";const t=global.requestAnimationFrame;let e=[],n=!1;global.__flushAnimationFrame=r=>{const i=e;e=[],i.forEach(a=>a(r)),Hf()},global.requestAnimationFrame=r=>(e.push(r),n||(n=!0,t(i=>{n=!1,global.__frameTimestamp=i,global.__flushAnimationFrame(i),global.__frameTimestamp=void 0})),-1)}function cw(){iw&&(globalThis.requestAnimationFrame=cC),Uf(()=>{"worklet";EC(),xC(),mC||(tw(),lw())})()}function $o(t,e,n=!1){"worklet";const r=t._animation;if(r&&(r.cancelled=!0,t._animation=null),typeof e=="function"||e!==null&&typeof e=="object"&&e.onFrame!==void 0){const i=typeof e=="function"?e():e;if(t._value===i.current&&!i.isHigherOrder&&!n){i.callback&&i.callback(!0);return}const a=l=>{i.onStart(i,t.value,l,r)},s=global.__frameTimestamp||global._getAnimationTimestamp();a(s);const o=l=>{const c=l<(i.timestamp||0)?i.timestamp:l;if(i.cancelled){i.callback&&i.callback(!1);return}const u=i.onFrame(i,c);i.finished=!0,i.timestamp=c,t._value=i.current,u?i.callback&&i.callback(!0):requestAnimationFrame(o)};t._animation=i,o(s)}else{if(t._value===e&&!n)return;t._value=e}}const uw=nt();function Wf(t){"worklet";Object.defineProperties(t,{get:{value(){return t.value},configurable:!1,enumerable:!1},set:{value(e){typeof e=="function"?t.value=e(t.value):t.value=e},configurable:!1,enumerable:!1}})}function Xf(t){"worklet";Object.defineProperty(t,"_value",{configurable:!1,enumerable:!1})}function dw(t){"worklet";const e=new Map;let n=t;const r={get value(){return n},set value(i){$o(r,i)},get _value(){return n},set _value(i){n=i,e.forEach(a=>{a(i)})},modify:(i,a=!0)=>{$o(r,i!==void 0?i(n):n,a)},addListener:(i,a)=>{e.set(i,a)},removeListener:i=>{e.delete(i)},_animation:null,_isReanimatedSharedValue:!0};return Xf(r),Wf(r),r}function Aw(t){const e=Ue({__init:()=>{"worklet";return dw(t)}}),n={get value(){return ra(i=>i.value)(n)},set value(r){ar(()=>{n.value=r})()},get _value(){throw new oe("Reading from `_value` directly is only possible on the UI runtime. Perhaps you passed an Animated Style to a non-animated component?")},set _value(r){throw new oe("Setting `_value` directly is only possible on the UI runtime. Perhaps you want to assign to `value` instead?")},modify:(r,i=!0)=>{ar(()=>{n.modify(r,i)})()},addListener:()=>{throw new oe("Adding listeners is only possible on the UI runtime.")},removeListener:()=>{throw new oe("Removing listeners is only possible on the UI runtime.")},_isReanimatedSharedValue:!0};return Xf(n),Wf(n),Xt.set(n,e),n}function fw(t){let e=t;const n=new Map,r={get value(){return e},set value(i){$o(r,i)},get _value(){return e},set _value(i){e=i,n.forEach(a=>{a(i)})},modify:(i,a=!0)=>{$o(r,i!==void 0?i(r.value):r.value,a)},addListener:(i,a)=>{n.set(i,a)},removeListener:i=>{n.delete(i)},_isReanimatedSharedValue:!0};return Xf(r),Wf(r),r}const Pn=uw?fw:Aw;function hw(t){return t===Ze.ROTATION?Pn({qw:0,qx:0,qy:0,qz:0,yaw:0,pitch:0,roll:0,interfaceOrientation:0}):Pn({x:0,y:0,z:0,interfaceOrientation:0})}class pw{constructor(e,n){F(this,"listenersNumber",0);F(this,"sensorId",null);this.sensorType=e,this.config=n,this.data=hw(e)}register(e){const n=this.config,r=this.sensorType;return this.sensorId=qe.registerSensor(r,n.interval==="auto"?-1:n.interval,n.iosReferenceFrame,e),this.sensorId!==-1}isRunning(){return this.sensorId!==-1&&this.sensorId!==null}isAvailable(){return this.sensorId!==-1}getSharedValue(){return this.data}unregister(){this.sensorId!==null&&this.sensorId!==-1&&qe.unregisterSensor(this.sensorId),this.sensorId=null}}class gw{constructor(){F(this,"nativeSensors",new Map)}getSensorId(e,n){return e*100+n.iosReferenceFrame*10+Number(n.adjustToInterfaceOrientation)}initializeSensor(e,n){const r=this.getSensorId(e,n);if(!this.nativeSensors.has(r)){const a=new pw(e,n);this.nativeSensors.set(r,a)}return this.nativeSensors.get(r).getSharedValue()}registerSensor(e,n,r){const i=this.getSensorId(e,n);if(!this.nativeSensors.has(i))return-1;const a=this.nativeSensors.get(i);return a&&a.isAvailable()&&(a.isRunning()||a.register(r))?(a.listenersNumber++,i):-1}unregisterSensor(e){if(this.nativeSensors.has(e)){const n=this.nativeSensors.get(e);n&&n.isRunning()&&(n.listenersNumber--,n.listenersNumber===0&&n.unregister())}}}function Rr(t){"worklet";return(t==null?void 0:t._isReanimatedSharedValue)===!0}const vw=Kt();function mw(){"worklet";const t=new Map;let e=[],n=!1,r=!1;function i(){const l=new Map;t.forEach(d=>{if(d.outputs)for(const f of d.outputs){const p=l.get(f);p===void 0?l.set(f,[d]):p.push(d)}});const c=new Set,u=[];function A(d){c.add(d);for(const f of d.inputs){const p=l.get(f);if(p)for(const h of p)c.has(h)||A(h)}u.push(d)}t.forEach(d=>{c.has(d)||A(d)}),e=u}function a(){if(n=!1,!r)try{r=!0,t.size!==e.length&&i();for(const l of e)l.dirty&&(l.dirty=!1,l.worklet())}finally{r=!1}}function s(){vw?a():n||(r?requestAnimationFrame(a):queueMicrotask(a),n=!0)}function o(l,c){if(Array.isArray(l))for(const u of l)u&&o(u,c);else if(Rr(l))c.push(l);else if(Object.getPrototypeOf(l)===Object.prototype)for(const u of Object.values(l))u&&o(u,c);return c}return{start:(l,c,u,A)=>{const d={id:l,dirty:!0,worklet:c,inputs:o(u,[]),outputs:A};t.set(d.id,d),e=[];for(const f of d.inputs)f.addListener(d.id,()=>{d.dirty=!0,s()});s()},stop:l=>{const c=t.get(l);if(c){t.delete(c.id),e=[];for(const u of c.inputs)u.removeListener(c.id)}}}}let Cw=9999;function Hs(t,e=[],n=[]){const r=Cw+=1;return ar(()=>{let i=global.__mapperRegistry;i===void 0&&(i=global.__mapperRegistry=mw()),i.start(r,t,e,n)})(),r}function da(t){ar(()=>{const e=global.__mapperRegistry;e==null||e.stop(t)})()}nt();function Ew(t,e){const n=__reanimatedLoggerConfig;return qe.createWorkletRuntime(t,Ue(()=>{"worklet";AC(),Vs(n),EC(),xC(),e==null||e()}))}function xw(t,e){"worklet";return _WORKLET?(...n)=>global._scheduleOnRuntime(t,Vf(()=>{"worklet";e(...n)})):(...n)=>qe.scheduleOnRuntime(t,Ue(()=>{"worklet";e(...n)}))}const yw=nt(),yC=()=>!0,Iw=yC;function ww(t,e,n){if(Ct()&&!n)throw new oe("Function `getViewProp` requires a component to be passed as an argument on Fabric.");return new Promise((r,i)=>qe.getViewProp(t,e,n,a=>{typeof a=="string"&&a.substr(0,6)==="error:"?i(a):r(a)}))}function Yf(){return global.__sensorContainer||(global.__sensorContainer=new gw),global.__sensorContainer}function gu(t,e,n=-1){function r(i,a){"worklet";global.__frameTimestamp=i,t(a),global.__flushAnimationFrame(i),global.__frameTimestamp=void 0}return qe.registerEventHandler(Ue(r),e,n)}function pp(t){return qe.unregisterEventHandler(t)}function gp(t,e){function n(r,i){"worklet";const a=global._getAnimationTimestamp();global.__frameTimestamp=a,t(r,i),global.__flushAnimationFrame(a),global.__frameTimestamp=void 0}return qe.subscribeForKeyboardEvents(Ue(n),e.isStatusBarTranslucentAndroid??!1,e.isNavigationBarTranslucentAndroid??!1)}function bw(t){return qe.unsubscribeFromKeyboardEvents(t)}function Sw(t,e,n){return Yf().registerSensor(t,e,Ue(n))}function vp(t,e){return Yf().initializeSensor(t,e)}function _w(t){return Yf().unregisterSensor(t)}sn()||cw();let eo={enableLayoutAnimations:!1,setByUser:!1};function IC(t,e=!0){e?(eo={enableLayoutAnimations:t,setByUser:!0},qe.enableLayoutAnimations(t)):!eo.setByUser&&eo.enableLayoutAnimations!==t&&(eo.enableLayoutAnimations=t,qe.enableLayoutAnimations(t))}function Dw(t){qe.configureLayoutAnimationBatch(t)}function Tw(t,e){qe.setShouldAnimateExitingForTag(t,e)}function Ow(t,e){yw||qe.configureProps(t,e)}const je="[-+]?\\d*\\.?\\d+",mr=je+"%";function vu(...t){return"\\(\\s*("+t.join(")\\s*,?\\s*(")+")\\s*\\)"}function mp(...t){return"\\(\\s*("+t.slice(0,t.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+t[t.length-1]+")\\s*\\)"}function Cp(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const Ln={rgb:new RegExp("rgb"+vu(je,je,je)),rgba:new RegExp("rgba("+Cp(je,je,je,je)+"|"+mp(je,je,je,je)+")"),hsl:new RegExp("hsl"+vu(je,mr,mr)),hsla:new RegExp("hsla("+Cp(je,mr,mr,je)+"|"+mp(je,mr,mr,je)+")"),hwb:new RegExp("hwb"+vu(je,mr,mr)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/};function ia(t,e,n){"worklet";return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function mu(t,e,n){"worklet";const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,a=ia(i,r,t+1/3),s=ia(i,r,t),o=ia(i,r,t-1/3);return Math.round(a*255)<<24|Math.round(s*255)<<16|Math.round(o*255)<<8}function kw(t,e,n){"worklet";if(e+n>=1){const s=Math.round(e*255/(e+n));return s<<24|s<<16|s<<8}const r=ia(0,1,t+1/3)*(1-e-n)+e,i=ia(0,1,t)*(1-e-n)+e,a=ia(0,1,t-1/3)*(1-e-n)+e;return Math.round(r*255)<<24|Math.round(i*255)<<16|Math.round(a*255)<<8}function Vn(t){"worklet";const e=Number.parseInt(t,10);return e<0?0:e>255?255:e}function to(t){"worklet";return(Number.parseFloat(t)%360+360)%360/360}function no(t){"worklet";const e=Number.parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Cr(t){"worklet";const e=Number.parseFloat(t);return e<0?0:e>100?1:e/100}const Ep=jc({transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}),Mw=jc(["backgroundColor","borderBottomColor","borderColor","borderLeftColor","borderRightColor","borderTopColor","borderStartColor","borderEndColor","borderBlockColor","borderBlockEndColor","borderBlockStartColor","color","outlineColor","shadowColor","textDecorationColor","tintColor","textShadowColor","overlayColor","fill","floodColor","lightingColor","stopColor","stroke"]);function Pw(t){"worklet";if(typeof t=="number")return t>>>0===t&&t>=0&&t<=4294967295?t:null;if(typeof t!="string")return null;let e;return(e=Ln.hex6.exec(t))?Number.parseInt(e[1]+"ff",16)>>>0:Ep[t]!==void 0?Ep[t]:(e=Ln.rgb.exec(t))?(Vn(e[1])<<24|Vn(e[2])<<16|Vn(e[3])<<8|255)>>>0:(e=Ln.rgba.exec(t))?e[6]!==void 0?(Vn(e[6])<<24|Vn(e[7])<<16|Vn(e[8])<<8|no(e[9]))>>>0:(Vn(e[2])<<24|Vn(e[3])<<16|Vn(e[4])<<8|no(e[5]))>>>0:(e=Ln.hex3.exec(t))?Number.parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Ln.hex8.exec(t))?Number.parseInt(e[1],16)>>>0:(e=Ln.hex4.exec(t))?Number.parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=Ln.hsl.exec(t))?(mu(to(e[1]),Cr(e[2]),Cr(e[3]))|255)>>>0:(e=Ln.hsla.exec(t))?e[6]!==void 0?(mu(to(e[6]),Cr(e[7]),Cr(e[8]))|no(e[9]))>>>0:(mu(to(e[2]),Cr(e[3]),Cr(e[4]))|no(e[5]))>>>0:(e=Ln.hwb.exec(t))?(kw(to(e[1]),Cr(e[2]),Cr(e[3]))|255)>>>0:null}const wC=t=>{"worklet";return(t>>24&255)/255},bC=t=>{"worklet";return t>>16&255},SC=t=>{"worklet";return t>>8&255},_C=t=>{"worklet";return t&255},Qd=(t,e,n,r=1)=>{"worklet";const i=r<.001?0:r;return`rgba(${t}, ${e}, ${n}, ${i})`};function Fw(t,e,n){"worklet";const r=Math.max(t,e,n),i=Math.min(t,e,n),a=r-i,s=r===0?0:a/r,o=r/255;let l=0;switch(r){case i:break;case t:l=e-n+a*(e<n?6:0),l/=6*a;break;case e:l=n-t+a*2,l/=6*a;break;case n:l=t-e+a*4,l/=6*a;break}return{h:l,s,v:o}}function Rw(t,e,n){"worklet";let r,i,a;const s=Math.floor(t*6),o=t*6-s,l=n*(1-e),c=n*(1-o*e),u=n*(1-(1-o)*e);switch(s%6){case 0:[r,i,a]=[n,u,l];break;case 1:[r,i,a]=[c,n,l];break;case 2:[r,i,a]=[l,n,u];break;case 3:[r,i,a]=[l,c,n];break;case 4:[r,i,a]=[u,l,n];break;case 5:[r,i,a]=[n,l,c];break}return{r:Math.round(r*255),g:Math.round(i*255),b:Math.round(a*255)}}const Nw=(t,e,n,r)=>{"worklet";const{r:i,g:a,b:s}=Rw(t,e,n);return Qd(i,a,s,r)};function zf(t){"worklet";if(t==null||typeof t=="number")return t;let e=Pw(t);if(e!=null)return typeof e!="number"?null:(e=(e<<24|e>>>8)>>>0,e)}function Zd(t){"worklet";return typeof t!="string"?!1:zf(t)!=null}const Bw=DI();function Qc(t){"worklet";let e=zf(t);if(e!=null)return typeof e!="number"?null:(Bw&&(e=e|0),e)}function Gw(t){"worklet";for(const e in t)Mw.includes(e)&&(t[e]=Qc(t[e]))}function Ja(t){"worklet";const e=zf(t),n=(e>>>24)/255,r=(e<<8>>>24)/255,i=(e<<16>>>24)/255,a=(e<<24>>>24)/255;return[r,i,a,n]}function xp(t){"worklet";const e=t[3]<.001?0:t[3];return`rgba(${Math.round(t[0]*255)}, ${Math.round(t[1]*255)}, ${Math.round(t[2]*255)}, ${e})`}function ro(t,e=2.2){"worklet";const n=[];for(let r=0;r<3;++r)n.push(Math.pow(t[r],e));return n.push(t[3]),n}function yp(t,e=2.2){"worklet";const n=[];for(let r=0;r<3;++r)n.push(Math.pow(t[r],1/e));return n.push(t[3]),n}function Zc(t){"worklet";return Array.isArray(t)&&t.length===16&&t.every(e=>typeof e=="number"&&!isNaN(e))}function Lw(t){"worklet";return Array.isArray(t)&&t.length===4&&t.every(e=>Array.isArray(e)&&e.length===4&&e.every(n=>typeof n=="number"&&!isNaN(n)))}function qf(t){"worklet";return t.flat()}function Kf(t){"worklet";return[[t[0],t[1],t[2],t[3]],[t[4],t[5],t[6],t[7]],[t[8],t[9],t[10],t[11]],[t[12],t[13],t[14],t[15]]]}function Aa(t){"worklet";return Lw(t)?qf(t):t}function ka(t,e){"worklet";return[[t[0][0]*e[0][0]+t[0][1]*e[1][0]+t[0][2]*e[2][0]+t[0][3]*e[3][0],t[0][0]*e[0][1]+t[0][1]*e[1][1]+t[0][2]*e[2][1]+t[0][3]*e[3][1],t[0][0]*e[0][2]+t[0][1]*e[1][2]+t[0][2]*e[2][2]+t[0][3]*e[3][2],t[0][0]*e[0][3]+t[0][1]*e[1][3]+t[0][2]*e[2][3]+t[0][3]*e[3][3]],[t[1][0]*e[0][0]+t[1][1]*e[1][0]+t[1][2]*e[2][0]+t[1][3]*e[3][0],t[1][0]*e[0][1]+t[1][1]*e[1][1]+t[1][2]*e[2][1]+t[1][3]*e[3][1],t[1][0]*e[0][2]+t[1][1]*e[1][2]+t[1][2]*e[2][2]+t[1][3]*e[3][2],t[1][0]*e[0][3]+t[1][1]*e[1][3]+t[1][2]*e[2][3]+t[1][3]*e[3][3]],[t[2][0]*e[0][0]+t[2][1]*e[1][0]+t[2][2]*e[2][0]+t[2][3]*e[3][0],t[2][0]*e[0][1]+t[2][1]*e[1][1]+t[2][2]*e[2][1]+t[2][3]*e[3][1],t[2][0]*e[0][2]+t[2][1]*e[1][2]+t[2][2]*e[2][2]+t[2][3]*e[3][2],t[2][0]*e[0][3]+t[2][1]*e[1][3]+t[2][2]*e[2][3]+t[2][3]*e[3][3]],[t[3][0]*e[0][0]+t[3][1]*e[1][0]+t[3][2]*e[2][0]+t[3][3]*e[3][0],t[3][0]*e[0][1]+t[3][1]*e[1][1]+t[3][2]*e[2][1]+t[3][3]*e[3][1],t[3][0]*e[0][2]+t[3][1]*e[1][2]+t[3][2]*e[2][2]+t[3][3]*e[3][2],t[3][0]*e[0][3]+t[3][1]*e[1][3]+t[3][2]*e[2][3]+t[3][3]*e[3][3]]]}function Vw(t,e){"worklet";const n=Zc(t),r=Aa(t),i=Aa(e),a=r.map((s,o)=>r[o]-i[o]);return n?a:Kf(a)}function Hw(t,e){"worklet";const n=Zc(t),r=Aa(t),i=Aa(e),a=r.map((s,o)=>r[o]+i[o]);return n?a:Kf(a)}function Uw(t,e){"worklet";const n=Zc(t),i=Aa(t).map(a=>a*e);return n?i:Kf(i)}function Ww(t,e="z"){"worklet";const n=Math.cos(t),r=Math.sin(t);switch(e){case"z":return[[n,r,0,0],[-r,n,0,0],[0,0,1,0],[0,0,0,1]];case"y":return[[n,0,-r,0],[0,1,0,0],[r,0,n,0],[0,0,0,1]];case"x":return[[1,0,0,0],[0,n,r,0],[0,-r,n,0],[0,0,0,1]]}}function Cu(t,e,n){"worklet";return Math.sqrt(t*t+e*e+n*n)}function Ip(t){"worklet";const e=qf(t);return[[e[0],e[4],e[8],e[12]],[e[1],e[5],e[9],e[13]],[e[2],e[6],e[10],e[14]],[e[3],e[7],e[11],e[15]]]}function Rt(t,e){"worklet";return t.reduce((n,r,i)=>n+t[i]*e[i],0)}function Xi(t,e){"worklet";const n=Rt(t,e)/Rt(t,t);return t.map(r=>r*n)}function Yi(t,e){"worklet";return t.map((n,r)=>t[r]-e[r])}function Xw(t,e){"worklet";return t.map(n=>n*e)}function Yw(t){"worklet";const[e,n,r,i]=t,a=e,s=Yi(n,Xi(a,n)),o=Yi(Yi(r,Xi(a,r)),Xi(s,r)),l=Yi(Yi(Yi(i,Xi(a,i)),Xi(s,i)),Xi(o,i)),[c,u,A,d]=[a,s,o,l].map(h=>Xw(h,1/Math.sqrt(Rt(h,h)))),f=[[c[0],u[0],A[0],d[0]],[c[1],u[1],A[1],d[1]],[c[2],u[2],A[2],d[2]],[c[3],u[3],A[3],d[3]]],p=[[Rt(c,e),Rt(c,n),Rt(c,r),Rt(c,i)],[0,Rt(u,n),Rt(u,r),Rt(u,i)],[0,0,Rt(A,r),Rt(A,i)],[0,0,0,Rt(d,i)]];return{rotationMatrix:Ip(f),skewMatrix:Ip(p)}}function zw(t){"worklet";const e=Aa(t);if(e[15]===0)throw new oe("Invalid transform matrix.");e.forEach((u,A)=>e[A]/=e[15]);const n=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[e[12],e[13],e[14],1]],r=e[15]*Cu(e[0],e[4],e[8]),i=e[15]*Cu(e[1],e[5],e[9]),a=e[15]*Cu(e[2],e[6],e[10]),s=[[r,0,0,0],[0,i,0,0],[0,0,a,0],[0,0,0,1]],o=[[e[0]/r,e[1]/r,e[2]/r,0],[e[4]/i,e[5]/i,e[6]/i,0],[e[8]/a,e[9]/a,e[10]/a,0],[0,0,0,1]],{rotationMatrix:l,skewMatrix:c}=Yw(o);return{translationMatrix:n,scaleMatrix:s,rotationMatrix:l,skewMatrix:c}}function wp(t){"worklet";const{scaleMatrix:e,rotationMatrix:n,translationMatrix:r,skewMatrix:i}=zw(t),a=-n[0][2],s=Math.asin(a);let o,l;return a===1||a===-1?(l=0,o=Math.atan2(a*n[0][1],a*n[0][2])):(l=Math.atan2(n[0][1],n[0][0]),o=Math.atan2(n[1][2],n[2][2])),{scaleMatrix:e,rotationMatrix:n,translationMatrix:r,skewMatrix:i,rx:o||0,ry:s||0,rz:l||0}}function $f(){return sn()?Ia()?window.matchMedia("(prefers-reduced-motion: reduce)").matches:!1:!!global._REANIMATED_IS_REDUCED_MOTION}const bp=$f(),yn={jsValue:bp,uiValue:Pn(bp),setEnabled(t){yn.jsValue=t,yn.uiValue.value=t}};let Jd=!1;const qw=nt();function jf(t){Jd=!0;const e=t();return Jd=!1,e}function aa(t){"worklet";if(typeof t=="string"){const e=t.match(/([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/);if(!e)throw new oe("Couldn't parse animation value.");const n=e[1],r=e[4],i=e[2]+(e[3]??"");return{prefix:n,suffix:r,strippedValue:parseFloat(i)}}else return{strippedValue:t}}const Kw=yn.uiValue;function tr(t){"worklet";return!t||t===on.System?Kw.value:t===on.Always}function Nr(t){"worklet";if(t)return tr(t)}function $w(t,e,n){"worklet";return Hw(e,Uw(Vw(n,e),t))}function jw(t,e,n){"worklet";return e+t*(n-e)}function Qw(t){"worklet";const e=t.onStart,n=t.onFrame;if(t.isHigherOrder){t.onStart=(h,g,E,m)=>(h.reduceMotion===void 0&&(h.reduceMotion=tr()),e(h,g,E,m));return}const r=Object.assign({},t);delete r.callback;const i=(h,g,E,m)=>{const{prefix:v,suffix:C,strippedValue:y}=aa(g);h.__prefix=v,h.__suffix=C,h.strippedCurrent=y;const{strippedValue:x}=aa(h.toValue);if(h.current=y,h.startValue=y,h.toValue=x,m&&m!==h){const{prefix:w,suffix:S,strippedValue:D}=aa(m.current);m.current=D,m.__prefix=w,m.__suffix=S}e(h,y,E,m),h.current=(h.__prefix??"")+h.current+(h.__suffix??""),m&&m!==h&&(m.current=(m.__prefix??"")+m.current+(m.__suffix??""))},a=(h,g)=>{h.current=h.strippedCurrent;const E=n(h,g);return h.strippedCurrent=h.current,h.current=(h.__prefix??"")+h.current+(h.__suffix??""),E},s=["R","G","B","A"],o=(h,g,E,m)=>{let v,C,y;const x=[];Zd(g)&&(C=ro(Ja(h.current)),v=ro(Ja(g)),h.toValue&&(y=ro(Ja(h.toValue)))),s.forEach((w,S)=>{h[w]=Object.assign({},r),h[w].current=C[S],h[w].toValue=y?y[S]:void 0,h[w].onStart(h[w],v[S],E,m?m[w]:void 0),x.push(h[w].current)}),h.current=xp(yp(x))},l=(h,g)=>{const E=ro(Ja(h.current)),m=[];let v=!0;return s.forEach((C,y)=>{h[C].current=E[y];const x=h[C].onFrame(h[C],g);v=v&&x,m.push(h[C].current)}),h.current=xp(yp(m)),v},c=(h,g,E,m)=>{const v=h.toValue;h.startMatrices=wp(g),h.stopMatrices=wp(v),h[0]=Object.assign({},r),h[0].current=0,h[0].toValue=100,h[0].onStart(h[0],0,E,m?m[0]:void 0),h.current=g},u=(h,g)=>{let E=!0;const m=h[0].onFrame(h[0],g);E=E&&m;const v=h[0].current/100,C=["translationMatrix","scaleMatrix","skewMatrix"],y=[];C.forEach((R,W)=>y.push($w(v,h.startMatrices[R],h.stopMatrices[R])));const[x,w,S]=y,D=["x","y","z"],I=[];D.forEach((R,W)=>{const N=jw(v,h.startMatrices["r"+R],h.stopMatrices["r"+R]);I.push(Ww(N,R))});const[b,O,T]=I,M=ka(b,ka(O,T)),P=qf(ka(ka(w,ka(S,M)),x));return h.current=P,E},A=(h,g,E,m)=>{g.forEach((v,C)=>{h[C]=Object.assign({},r),h[C].current=v,h[C].toValue=h.toValue[C],h[C].onStart(h[C],v,E,m?m[C]:void 0)}),h.current=g},d=(h,g)=>{let E=!0;return h.current.forEach((m,v)=>{const C=h[v].onFrame(h[v],g);E=E&&C,h.current[v]=h[v].current}),E},f=(h,g,E,m)=>{for(const v in g)h[v]=Object.assign({},r),h[v].onStart=h.onStart,h[v].current=g[v],h[v].toValue=h.toValue[v],h[v].onStart(h[v],g[v],E,m?m[v]:void 0);h.current=g},p=(h,g)=>{let E=!0;const m={};for(const v in h.current){const C=h[v].onFrame(h[v],g);E=E&&C,m[v]=h[v].current}return h.current=m,E};t.onStart=(h,g,E,m)=>{if(h.reduceMotion===void 0&&(h.reduceMotion=tr()),h.reduceMotion){h.toValue!==void 0?h.current=h.toValue:e(h,g,E,m),h.startTime=0,h.onFrame=()=>!0;return}if(Zd(g)){o(h,g,E,m),h.onFrame=l;return}else if(Zc(g)){c(h,g,E,m),h.onFrame=u;return}else if(Array.isArray(g)){A(h,g,E,m),h.onFrame=d;return}else if(typeof g=="string"){i(h,g,E,m),h.onFrame=a;return}else if(typeof g=="object"&&g!==null){f(h,g,E,m),h.onFrame=p;return}e(h,g,E,m)}}function Ar(t,e){"worklet";if(Jd)return t;const n=()=>{"worklet";const r=e();return Qw(r),r};return _WORKLET||qw?n():n}function DC(t){"worklet";t.value=t.value}const Zw=4,Jw=.001,eb=1e-7,tb=10,Ro=11,io=1/(Ro-1);function TC(t,e){"worklet";return 1-3*e+3*t}function OC(t,e){"worklet";return 3*e-6*t}function kC(t){"worklet";return 3*t}function jo(t,e,n){"worklet";return((TC(e,n)*t+OC(e,n))*t+kC(e))*t}function MC(t,e,n){"worklet";return 3*TC(e,n)*t*t+2*OC(e,n)*t+kC(e)}function nb(t,e,n,r,i){"worklet";let a,s,o=0;do s=e+(n-e)/2,a=jo(s,r,i)-t,a>0?n=s:e=s;while(Math.abs(a)>eb&&++o<tb);return s}function rb(t,e,n,r){"worklet";for(let i=0;i<Zw;++i){const a=MC(e,n,r);if(a===0)return e;const s=jo(e,n,r)-t;e-=s/a}return e}function Qf(t,e,n,r){"worklet";function i(o){"worklet";return o}if(!(t>=0&&t<=1&&n>=0&&n<=1))throw new oe("Bezier x values must be in [0, 1] range.");if(t===e&&n===r)return i;const a=new Array(Ro);for(let o=0;o<Ro;++o)a[o]=jo(o*io,t,n);function s(o){"worklet";let l=0,c=1;const u=Ro-1;for(;c!==u&&a[c]<=o;++c)l+=io;--c;const A=(o-a[c])/(a[c+1]-a[c]),d=l+A*io,f=MC(d,t,n);return f>=Jw?rb(o,d,t,n):f===0?d:nb(o,l,l+io,t,n)}return function(l){"worklet";return t===e&&n===r?l:l===0?0:l===1?1:jo(s(l),e,r)}}function ib(t){"worklet";return t}function ab(t){"worklet";return Qf(.42,0,1,1)(t)}function sb(t){"worklet";return t*t}function ob(t){"worklet";return t*t*t}function lb(t){"worklet";return e=>{"worklet";return Math.pow(e,t)}}function cb(t){"worklet";return 1-Math.cos(t*Math.PI/2)}function ub(t){"worklet";return 1-Math.sqrt(1-t*t)}function db(t){"worklet";return Math.pow(2,10*(t-1))}function Ab(t=1){"worklet";const e=t*Math.PI;return n=>{"worklet";return 1-Math.pow(Math.cos(n*Math.PI/2),3)*Math.cos(n*e)}}function fb(t=1.70158){"worklet";return e=>{"worklet";return e*e*((t+1)*e-t)}}function hb(t){"worklet";if(t<1/2.75)return 7.5625*t*t;if(t<2/2.75){const n=t-.5454545454545454;return 7.5625*n*n+.75}if(t<2.5/2.75){const n=t-.8181818181818182;return 7.5625*n*n+.9375}const e=t-2.625/2.75;return 7.5625*e*e+.984375}function pb(t,e,n,r){"worklet";return{factory:()=>{"worklet";return Qf(t,e,n,r)}}}function gb(t,e,n,r){"worklet";return Qf(t,e,n,r)}function vb(t){"worklet";return t}function mb(t){"worklet";return e=>{"worklet";return 1-t(1-e)}}function Cb(t){"worklet";return e=>{"worklet";return e<.5?t(e*2)/2:1-t((1-e)*2)/2}}function Eb(t=10,e=!0){"worklet";return n=>{"worklet";const r=Math.min(Math.max(n,0),1)*t;return e?Math.ceil(r)/t:Math.floor(r)/t}}const PC={linear:ib,ease:ab,quad:sb,cubic:ob,poly:lb,sin:cb,circle:ub,exp:db,elastic:Ab,back:fb,bounce:hb,bezier:pb,bezierFn:gb,steps:Eb,in:vb,out:mb,inOut:Cb},Qo=Symbol("easingName");for(const[t,e]of Object.entries(PC))Object.defineProperty(e,Qo,{value:t,configurable:!1,enumerable:!1,writable:!1});const Je=PC,j=function(t,e,n){"worklet";return Ar(t,()=>{"worklet";const r={duration:300,easing:Je.inOut(Je.quad)};e&&Object.keys(e).forEach(s=>r[s]=e[s]);function i(s,o){const{toValue:l,startTime:c,startValue:u}=s,A=o-c;if(A>=r.duration)return s.startTime=0,s.current=l,!0;const d=s.easing(A/r.duration);return s.current=u+(l-u)*d,!1}function a(s,o,l,c){c&&c.type==="timing"&&c.toValue===t&&c.startTime?(s.startTime=c.startTime,s.startValue=c.startValue):(s.startTime=l,s.startValue=o),s.current=o,typeof r.easing=="object"?s.easing=r.easing.factory():s.easing=r.easing}return{type:"timing",onFrame:i,onStart:a,progress:0,toValue:t,startValue:0,startTime:0,easing:()=>0,current:t,callback:n,reduceMotion:Nr(e==null?void 0:e.reduceMotion)}})};function xb(t){"worklet";var n,r;let e="";return["stiffness","damping","dampingRatio","restDisplacementThreshold","restSpeedThreshold","mass"].forEach(i=>{const a=t[i];a<=0&&(e+=`, ${i} must be grater than zero but got ${a}`)}),t.duration<0&&(e+=`, duration can't be negative, got ${t.duration}`),(n=t.clamp)!=null&&n.min&&((r=t.clamp)!=null&&r.max)&&t.clamp.min>t.clamp.max&&(e+=`, clamp.min should be lower than clamp.max, got clamp: {min: ${t.clamp.min}, max: ${t.clamp.max}} `),e!==""&&Oe.warn("Invalid spring config"+e),e===""}function yb({min:t,max:e,func:n,maxIterations:r=20}){"worklet";let a=r,s=(e+t)/2;for(;Math.abs(n(s))>5e-5&&a>0;)a-=1,n(s)<0?t=s:e=s,s=(t+e)/2;return s}function Ib(t=0,e){"worklet";if(e.skipAnimation)return{zeta:0,omega0:0,omega1:0};if(e.useDuration){const{stiffness:n,dampingRatio:r}=e,i=Math.sqrt(n/t),a=i*Math.sqrt(1-r**2);return{zeta:r,omega0:i,omega1:a}}else{const{damping:n,mass:r,stiffness:i}=e,a=n/(2*Math.sqrt(i*r)),s=Math.sqrt(i/r),o=s*Math.sqrt(1-a**2);return{zeta:a,omega0:s,omega1:o}}}function wb(t,e){"worklet";const{zeta:n,toValue:r,startValue:i}=t,a=Number(r);if(a===i)return n;const[s,o]=a-i>0?[e.min,e.max]:[e.max,e.min],l=o!==void 0?Math.abs((o-a)/(a-i)):void 0,c=s!==void 0?Math.abs((s-a)/(a-i)):void 0,u=l!==void 0?Math.abs(Math.log(l)/Math.PI):void 0,A=c!==void 0?Math.abs(Math.log(c)/(2*Math.PI)):void 0,d=[u,A].filter(f=>f!==void 0);return Math.max(...d,n)}function bb(t,e,n){"worklet";if(e.skipAnimation)return 0;const{stiffness:r,dampingRatio:i,restSpeedThreshold:a,duration:s}=e;return yb({min:0,max:100,func:l=>{"worklet";const c=(l*n*n+r*t*t)/(Math.exp(1-.5*i)*r),u=i*2*Math.sqrt(r*l);return 1e3*(-2*l/u)*Math.log(a*.01/c)-s}})}function Sb(t,e){"worklet";const{toValue:n}=t,{v0:r,x0:i,omega0:a,t:s}=e,o=Math.exp(-a*s),l=n-o*(i+(r+a*i)*s),c=o*(r*(s*a-1)+s*i*a*a);return{position:l,velocity:c}}function _b(t,e){"worklet";const{toValue:n,current:r,velocity:i}=t,{zeta:a,t:s,omega0:o,omega1:l}=e,c=-i,u=n-r,A=Math.sin(l*s),d=Math.cos(l*s),f=Math.exp(-a*o*s),p=f*(A*((c+a*o*u)/l)+u*d),h=n-p,g=a*o*p-f*(d*(c+a*o*u)-l*u*A);return{position:h,velocity:g}}function Db(t,e){"worklet";const{toValue:n,velocity:r,startValue:i,current:a}=t,s=e.overshootClamping?a>n&&i<n||a<n&&i>n:!1,o=Math.abs(r)<e.restSpeedThreshold,l=Math.abs(n-a)<e.restDisplacementThreshold;return{isOvershooting:s,isVelocity:o,isDisplacement:l}}const Zf=(t,e,n)=>{"worklet";return Ar(t,()=>{"worklet";const i={...{damping:10,mass:1,stiffness:100,overshootClamping:!1,restDisplacementThreshold:.01,restSpeedThreshold:2,velocity:0,duration:2e3,dampingRatio:.5,reduceMotion:void 0,clamp:void 0},...e,useDuration:!!(e!=null&&e.duration||e!=null&&e.dampingRatio),skipAnimation:!1};i.skipAnimation=!xb(i),i.duration===0&&(i.skipAnimation=!0);function a(l,c){const{toValue:u,startTimestamp:A,current:d}=l,f=c-A;if(i.useDuration&&f>=i.duration||i.skipAnimation)return l.current=u,l.lastTimestamp=0,!0;const{lastTimestamp:p,velocity:h}=l,g=Math.min(c-p,64);l.lastTimestamp=c;const E=g/1e3,m=-h,v=u-d,{zeta:C,omega0:y,omega1:x}=l,{position:w,velocity:S}=C<1?_b(l,{zeta:C,v0:m,x0:v,omega0:y,omega1:x,t:E}):Sb(l,{v0:m,x0:v,omega0:y,t:E});l.current=w,l.velocity=S;const{isOvershooting:D,isVelocity:I,isDisplacement:b}=Db(l,i),O=D||I&&b;return!i.useDuration&&O?(l.velocity=0,l.current=u,l.lastTimestamp=0,!0):!1}function s(l,c){return(l==null?void 0:l.lastTimestamp)&&(l==null?void 0:l.startTimestamp)&&(l==null?void 0:l.toValue)===c.toValue&&(l==null?void 0:l.duration)===c.duration&&(l==null?void 0:l.dampingRatio)===c.dampingRatio}function o(l,c,u,A){l.current=c,l.startValue=c;let d=i.mass;const f=s(A,l),p=i.duration,h=f?A==null?void 0:A.startValue:Number(l.toValue)-c;if(A?l.velocity=(f?A==null?void 0:A.velocity:(A==null?void 0:A.velocity)+i.velocity)||0:l.velocity=i.velocity||0,f)l.zeta=(A==null?void 0:A.zeta)||0,l.omega0=(A==null?void 0:A.omega0)||0,l.omega1=(A==null?void 0:A.omega1)||0;else{if(i.useDuration){const v=f?p-(((A==null?void 0:A.lastTimestamp)||0)-((A==null?void 0:A.startTimestamp)||0)):p;i.duration=v,d=bb(h,i,l.velocity)}const{zeta:g,omega0:E,omega1:m}=Ib(d,i);l.zeta=g,l.omega0=E,l.omega1=m,i.clamp!==void 0&&(l.zeta=wb(l,i.clamp))}l.lastTimestamp=(A==null?void 0:A.lastTimestamp)||u,l.startTimestamp=f&&(A==null?void 0:A.startTimestamp)||u}return{onFrame:a,onStart:o,toValue:t,velocity:i.velocity||0,current:t,startValue:0,callback:n,lastTimestamp:0,startTimestamp:0,zeta:0,omega0:0,omega1:0,reduceMotion:Nr(i.reduceMotion)}})},Tb=sn(),FC=Tb?1/20:1,RC=.1;function Ob(t){"worklet";return!!t.rubberBandEffect&&Array.isArray(t.clamp)&&t.clamp.length===2}const kb=.1;function Mb(t,e,n){"worklet";const{lastTimestamp:r,startTimestamp:i,current:a,velocity:s}=t,o=Math.min(e-r,64),l=Math.abs(a-n.clamp[0])<Math.abs(a-n.clamp[1])?0:1;let c=0;(a<n.clamp[0]||a>n.clamp[1])&&(c=a-n.clamp[l]);const u=s*Math.exp(-(1-n.deceleration)*(e-i)*RC)-c*n.rubberBandFactor;if(Math.abs(c)>kb)t.springActive=!0;else{if(t.springActive)return t.current=n.clamp[l],!0;if(Math.abs(u)<FC)return!0}return t.current=a+u*n.velocityFactor*o/1e3,t.velocity=u,t.lastTimestamp=e,!1}function Pb(t,e,n){"worklet";const{lastTimestamp:r,startTimestamp:i,initialVelocity:a,current:s,velocity:o}=t,l=Math.min(e-r,64),c=o*Math.exp(-(1-n.deceleration)*(e-i)*RC);if(t.current=s+c*n.velocityFactor*l/1e3,t.velocity=c,t.lastTimestamp=e,n.clamp){if(a<0&&t.current<=n.clamp[0])return t.current=n.clamp[0],!0;if(a>0&&t.current>=n.clamp[1])return t.current=n.clamp[1],!0}return Math.abs(c)<FC}function Fb(t){"worklet";if(t.clamp){if(!Array.isArray(t.clamp))throw new oe(`\`config.clamp\` must be an array but is ${typeof t.clamp}.`);if(t.clamp.length!==2)throw new oe(`\`clamp array\` must contain 2 items but is given ${t.clamp.length}.`)}if(t.velocityFactor<=0)throw new oe(`\`config.velocityFactor\` must be greater then 0 but is ${t.velocityFactor}.`);if(t.rubberBandEffect&&!t.clamp)throw new oe("You need to set `clamp` property when using `rubberBandEffect`.")}const Rb=function(t,e){"worklet";return Ar(0,()=>{"worklet";const n={deceleration:.998,velocityFactor:1,velocity:0,rubberBandFactor:.6};t&&Object.keys(t).forEach(a=>n[a]=t[a]);const r=Ob(n)?(a,s)=>Mb(a,s,n):(a,s)=>Pb(a,s,n);function i(a,s,o){a.current=s,a.lastTimestamp=o,a.startTimestamp=o,a.initialVelocity=n.velocity,Fb(n),a.reduceMotion&&n.clamp&&(s<n.clamp[0]?a.current=n.clamp[0]:s>n.clamp[1]&&(a.current=n.clamp[1]))}return{onFrame:r,onStart:i,callback:e,velocity:n.velocity??0,initialVelocity:0,current:0,lastTimestamp:0,startTimestamp:0,reduceMotion:Nr(n.reduceMotion)}})},Nb=function(t,e){"worklet";return Ar(e,()=>{"worklet";const n=typeof e=="function"?e():e,r=t.min===void 0?void 0:aa(t.min).strippedValue,i=t.max===void 0?void 0:aa(t.max).strippedValue;function a(l,c){const u=n.onFrame(n,c);if(n.current===void 0)return Oe.warn("Error inside 'withClamp' animation, the inner animation has invalid current value"),!0;{const{prefix:A,strippedValue:d,suffix:f}=aa(n.current);let p;i!==void 0&&i<d?p=i:r!==void 0&&r>d?p=r:p=d,l.current=typeof n.current=="number"?p:`${A===void 0?"":A}${p}${f===void 0?"":f}`}return u}function s(l,c,u,A){l.current=c,l.previousAnimation=n;const d=A==null?void 0:A.previousAnimation;t.max!==void 0&&t.min!==void 0&&t.max<t.min&&Oe.warn("Wrong config was provided to withClamp. Min value is bigger than max"),n.onStart(n,(d==null?void 0:d.current)||c,u,d)}const o=l=>{n.callback&&n.callback(l)};return{isHigherOrder:!0,onFrame:a,onStart:s,current:n.current,callback:o,previousAnimation:null,reduceMotion:Nr(t.reduceMotion)}})},ni=function(t,e,n){"worklet";return Ar(e,()=>{"worklet";const r=typeof e=="function"?e():e;function i(o,l){const{startTime:c,started:u,previousAnimation:A}=o,d=o.current;if(l-c>=t||o.reduceMotion){u||(r.onStart(r,d,l,A),o.previousAnimation=null,o.started=!0);const f=r.onFrame(r,l);return o.current=r.current,f}else if(A){const f=A.finished||A.onFrame(A,l);o.current=A.current,f&&(o.previousAnimation=null)}return!1}function a(o,l,c,u){o.startTime=c,o.started=!1,o.current=l,u===o?o.previousAnimation=u.previousAnimation:o.previousAnimation=u,r.reduceMotion===void 0&&(r.reduceMotion=o.reduceMotion)}const s=o=>{r.callback&&r.callback(o)};return{isHigherOrder:!0,onFrame:i,onStart:a,current:r.current,callback:s,previousAnimation:null,startTime:0,started:!1,reduceMotion:Nr(n)}})},Jf=function(t,e=2,n=!1,r,i){"worklet";return Ar(t,()=>{"worklet";const a=typeof t=="function"?t():t;function s(c,u){const A=a.onFrame(a,u);if(c.current=a.current,A){if(c.reps+=1,a.callback&&a.callback(!0,c.current),c.reduceMotion||e>0&&c.reps>=e)return!0;const d=n?a.current:c.startValue;return n&&(a.toValue=c.startValue,c.startValue=d),a.onStart(a,d,u,a.previousAnimation),!1}return!1}const o=c=>{r&&r(c),!c&&a.callback&&a.callback(!1)};function l(c,u,A,d){c.startValue=u,c.reps=0,a.reduceMotion===void 0&&(a.reduceMotion=c.reduceMotion),c.reduceMotion&&n&&(e<=0||e%2===0)?(c.current=c.startValue,c.onFrame=()=>!0):a.onStart(a,u,A,d)}return{isHigherOrder:!0,onFrame:s,onStart:l,reps:0,current:a.current,callback:o,startValue:0,reduceMotion:Nr(i)}})};function Fe(t,...e){"worklet";let n;return t&&(typeof t=="string"?n=t:e.unshift(t)),e.length===0?(Oe.warn("No animation was provided for the sequence"),Ar(0,()=>{"worklet";return{onStart:(r,i)=>r.current=i,onFrame:()=>!0,current:0,animationIndex:0,reduceMotion:Nr(n)}})):Ar(e[0],()=>{"worklet";const r=e.map(l=>{const c=typeof l=="function"?l():l;return c.finished=!1,c});function i(l){for(;l<r.length-1&&r[l].reduceMotion;)l++;return l}const a=l=>{l||r.forEach(c=>{typeof c.callback=="function"&&!c.finished&&c.callback(l)})};function s(l,c){const u=r[l.animationIndex],A=u.onFrame(u,c);if(l.current=u.current,A){if(u.callback&&u.callback(!0),u.finished=!0,l.animationIndex=i(l.animationIndex+1),l.animationIndex<r.length){const d=r[l.animationIndex];return d.onStart(d,u.current,c,u),!1}return!0}return!1}function o(l,c,u,A){r.forEach(f=>{f.reduceMotion===void 0&&(f.reduceMotion=l.reduceMotion)}),l.animationIndex=i(0),A===void 0&&(A=r[r.length-1]);const d=r[l.animationIndex];d.onStart(d,c,u,A)}return{isHigherOrder:!0,onFrame:s,onStart:o,animationIndex:0,current:r[0].current,callback:a,reduceMotion:Nr(n)}})}class Pi{constructor(){F(this,"reduceMotionV",on.System);F(this,"randomizeDelay",!1);F(this,"build",()=>{throw new oe("Unimplemented method in child class.")})}static duration(e){return this.createInstance().duration(e)}duration(e){return this.durationV=e,this}static delay(e){return this.createInstance().delay(e)}delay(e){return this.delayV=e,this}static withCallback(e){return this.createInstance().withCallback(e)}withCallback(e){return this.callbackV=e,this}static reduceMotion(e){return this.createInstance().reduceMotion(e)}reduceMotion(e){return this.reduceMotionV=e,this}static getDuration(){return 300}getDuration(){return this.durationV??300}static randomDelay(){return this.createInstance().randomDelay()}randomDelay(){return this.randomizeDelay=!0,this}getDelay(){return this.randomizeDelay?Math.random()*(this.delayV??1e3):this.delayV??0}getReduceMotion(){return this.reduceMotionV}getDelayFunction(){const e=this.randomizeDelay||this.delayV,n=this.getReduceMotion();return e?(r,i)=>{"worklet";return ni(r,i,n)}:(r,i)=>{"worklet";return i.reduceMotion=tr(n),i}}static build(){return this.createInstance().build()}}class ee extends Pi{static easing(e){return this.createInstance().easing(e)}easing(e){return this.easingV=e,this}static rotate(e){return this.createInstance().rotate(e)}rotate(e){return this.rotateV=e,this}static springify(e){return this.createInstance().springify(e)}springify(e){return this.durationV=e,this.type=Zf,this}static dampingRatio(e){return this.createInstance().dampingRatio(e)}dampingRatio(e){return this.dampingRatioV=e,this}static damping(e){return this.createInstance().damping(e)}damping(e){return this.dampingV=e,this}static mass(e){return this.createInstance().mass(e)}mass(e){return this.massV=e,this}static stiffness(e){return this.createInstance().stiffness(e)}stiffness(e){return this.stiffnessV=e,this}static overshootClamping(e){return this.createInstance().overshootClamping(e)}overshootClamping(e){return this.overshootClampingV=e,this}static restDisplacementThreshold(e){return this.createInstance().restDisplacementThreshold(e)}restDisplacementThreshold(e){return this.restDisplacementThresholdV=e,this}static restSpeedThreshold(e){return this.createInstance().restSpeedThreshold(e)}restSpeedThreshold(e){return this.restSpeedThresholdV=e,this}static withInitialValues(e){return this.createInstance().withInitialValues(e)}withInitialValues(e){return this.initialValues=e,this}getAnimationAndConfig(){const e=this.durationV,n=this.easingV,r=this.rotateV,i=this.type?this.type:j,a=this.dampingV,s=this.dampingRatioV,o=this.massV,l=this.stiffnessV,c=this.overshootClampingV,u=this.restDisplacementThresholdV,A=this.restSpeedThresholdV,d=i,f={};function p(h,g){h&&(f[g]=h)}return i===j&&p(n,"easing"),[{variableName:"damping",value:a},{variableName:"dampingRatio",value:s},{variableName:"mass",value:o},{variableName:"stiffness",value:l},{variableName:"overshootClamping",value:c},{variableName:"restDisplacementThreshold",value:u},{variableName:"restSpeedThreshold",value:A},{variableName:"duration",value:e},{variableName:"rotate",value:r}].forEach(({value:h,variableName:g})=>p(h,g)),[d,f]}}class Bb{constructor(e){F(this,"reduceMotionV",on.System);F(this,"build",()=>{const e=this.delayV,n=this.getDelayFunction(),{keyframes:r,initialValues:i}=this.parseDefinitions(),a=this.callbackV;return()=>{"worklet";const s={},o=l=>{const c=r[l];if(c.length===0)return;const u=n(e,c.length===1?j(c[0].value,{duration:c[0].duration,easing:c[0].easing?c[0].easing:Je.linear}):Fe(...c.map(A=>j(A.value,{duration:A.duration,easing:A.easing?A.easing:Je.linear}))));l.includes("transform")?("transform"in s||(s.transform=[]),s.transform.push({[l.split(":")[1]]:u})):s[l]=u};return Object.keys(i).forEach(l=>{l.includes("transform")?i[l].forEach((c,u)=>{Object.keys(c).forEach(A=>{o(Eu(u,A))})}):o(l)}),{animations:s,initialValues:i,callback:a}}});this.definitions=e}parseDefinitions(){const e={};if(this.definitions.from){if(this.definitions[0])throw new oe("You cannot provide both keyframe 0 and 'from' as they both specified initial values.");this.definitions[0]=this.definitions.from,delete this.definitions.from}if(this.definitions.to){if(this.definitions[100])throw new oe("You cannot provide both keyframe 100 and 'to' as they both specified values at the end of the animation.");this.definitions[100]=this.definitions.to,delete this.definitions.to}if(!this.definitions[0])throw new oe("Please provide 0 or 'from' keyframe with initial state of your object.");const n=this.definitions[0];Object.keys(n).forEach(o=>{if(o==="transform"){if(!Array.isArray(n.transform))return;n.transform.forEach((l,c)=>{Object.keys(l).forEach(u=>{e[Eu(c,u)]=[]})})}else e[o]=[]});const r=this.durationV?this.durationV:500,i=Array.from(Object.keys(this.definitions)).map(Number),a=(o,l)=>{const c=l/100*r,u=e[o].reduce((A,d)=>A+d.duration,0);return c-u},s=({key:o,value:l,currentKeyPoint:c,easing:u})=>{if(!(o in e))throw new oe("Keyframe can contain only that set of properties that were provide with initial values (keyframe 0 or 'from')");e[o].push({duration:a(o,c),value:l,easing:u})};return i.filter(o=>o!==0).sort((o,l)=>o-l).forEach(o=>{if(o<0||o>100)throw new oe("Keyframe should be in between range 0 - 100.");const l=this.definitions[o],c=l.easing;delete l.easing;const u=(A,d)=>s({key:A,value:d,currentKeyPoint:o,easing:c});Object.keys(l).forEach(A=>{if(A==="transform"){if(!Array.isArray(l.transform))return;l.transform.forEach((d,f)=>{Object.keys(d).forEach(p=>{u(Eu(f,p),d[p])})})}else u(A,l[A])})}),{initialValues:n,keyframes:e}}duration(e){return this.durationV=e,this}delay(e){return this.delayV=e,this}withCallback(e){return this.callbackV=e,this}reduceMotion(e){return this.reduceMotionV=e,this}getDelayFunction(){const e=this.delayV,n=this.reduceMotionV;return e?(r,i)=>{"worklet";return ni(r,i,n)}:(r,i)=>{"worklet";return i.reduceMotion=tr(n),i}}}function Eu(t,e){"worklet";return`${t}_transform:${e}`}const eh=Bb;let et=function(t){return t[t.ENTERING=1]="ENTERING",t[t.EXITING=2]="EXITING",t[t.LAYOUT=3]="LAYOUT",t[t.SHARED_ELEMENT_TRANSITION=4]="SHARED_ELEMENT_TRANSITION",t[t.SHARED_ELEMENT_TRANSITION_PROGRESS=5]="SHARED_ELEMENT_TRANSITION_PROGRESS",t}({}),Gb=function(t){return t.ANIMATION="animation",t.PROGRESS_ANIMATION="progressAnimation",t}({});var Lb=function(t,e,n,r,i,a,s,o){if(!t){var l;if(e===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,s,o],u=0;l=new Error(e.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},Vb=Lb;const Zo=Ur(Vb),Hb=nt();function Ub(){for(const t in Et.NATIVE_THREAD_PROPS_WHITELIST)if(t in Et.UI_THREAD_PROPS_WHITELIST)throw new oe(`Property \`${t}\` was whitelisted both as UI and native prop. Please remove it from one of the lists.`)}function Jc(){Ub(),Ow(Object.keys(Et.UI_THREAD_PROPS_WHITELIST),Object.keys(Et.NATIVE_THREAD_PROPS_WHITELIST))}function th(t){const e=Object.keys(Et.NATIVE_THREAD_PROPS_WHITELIST).length;Et.NATIVE_THREAD_PROPS_WHITELIST={...Et.NATIVE_THREAD_PROPS_WHITELIST,...t},e!==Object.keys(Et.NATIVE_THREAD_PROPS_WHITELIST).length&&Jc()}function NC(t){const e=Object.keys(Et.UI_THREAD_PROPS_WHITELIST).length;Et.UI_THREAD_PROPS_WHITELIST={...Et.UI_THREAD_PROPS_WHITELIST,...t},e!==Object.keys(Et.UI_THREAD_PROPS_WHITELIST).length&&Jc()}function Wb(t){dp(t),Hb||ra(dp)(t)}const Sp=new Set;function BC(t){const e=t.uiViewClassName,n=t.validAttributes;if(!Sp.has(e)){const r={};Object.keys(n).forEach(i=>{!(i in Et.NATIVE_THREAD_PROPS_WHITELIST)&&!(i in Et.UI_THREAD_PROPS_WHITELIST)&&(r[i]=!0)}),NC(r),Sp.add(e)}}Jc();const Xb={},wl=class wl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateX:"90deg"},{translateY:-l.targetHeight}],...o},animations:{transform:[{perspective:500},{rotateX:n(a,r("0deg",i))},{translateY:n(a,r(0,i))}]},callback:s}}})}static createInstance(){return new wl}};F(wl,"presetName","FlipInXUp");let e0=wl;const bl=class bl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateY:"-90deg"},{translateX:-l.targetWidth}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateY:n(a,r("0deg",i))},{translateX:n(a,r(0,i))}]},callback:s}}})}static createInstance(){return new bl}};F(bl,"presetName","FlipInYLeft");let t0=bl;const Sl=class Sl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateX:"-90deg"},{translateY:l.targetHeight}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateX:n(a,r("0deg",i))},{translateY:n(a,r(0,i))}]},callback:s}}})}static createInstance(){return new Sl}};F(Sl,"presetName","FlipInXDown");let n0=Sl;const _l=class _l extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateY:"90deg"},{translateX:l.targetWidth}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateY:n(a,r("0deg",i))},{translateX:n(a,r(0,i))}]},callback:s}}})}static createInstance(){return new _l}};F(_l,"presetName","FlipInYRight");let r0=_l;const Dl=class Dl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateX:"90deg"}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateX:n(a,r("0deg",i))}]},callback:s}}})}static createInstance(){return new Dl}};F(Dl,"presetName","FlipInEasyX");let i0=Dl;const Tl=class Tl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateY:"90deg"}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateY:n(a,r("0deg",i))}]},callback:s}}})}static createInstance(){return new Tl}};F(Tl,"presetName","FlipInEasyY");let a0=Tl;const Ol=class Ol extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateX:"0deg"},{translateY:0}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateX:n(a,r("90deg",i))},{translateY:n(a,r(-l.currentHeight,i))}]},callback:s}}})}static createInstance(){return new Ol}};F(Ol,"presetName","FlipOutXUp");let s0=Ol;const kl=class kl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateY:"0deg"},{translateX:0}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateY:n(a,r("-90deg",i))},{translateX:n(a,r(-l.currentWidth,i))}]},callback:s}}})}static createInstance(){return new kl}};F(kl,"presetName","FlipOutYLeft");let o0=kl;const Ml=class Ml extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateX:"0deg"},{translateY:0}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateX:n(a,r("-90deg",i))},{translateY:n(a,r(l.currentHeight,i))}]},callback:s}}})}static createInstance(){return new Ml}};F(Ml,"presetName","FlipOutXDown");let l0=Ml;const Pl=class Pl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateY:"0deg"},{translateX:0}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateY:n(a,r("90deg",i))},{translateX:n(a,r(l.currentWidth,i))}]},callback:s}}})}static createInstance(){return new Pl}};F(Pl,"presetName","FlipOutYRight");let c0=Pl;const Fl=class Fl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateX:"0deg"}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateX:n(a,r("90deg",i))}]},callback:s}}})}static createInstance(){return new Fl}};F(Fl,"presetName","FlipOutEasyX");let u0=Fl;const Rl=class Rl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{initialValues:{transform:[{perspective:500},{rotateY:"0deg"}],...o},animations:{transform:[{perspective:n(a,r(500,i))},{rotateY:n(a,r("90deg",i))}]},callback:s}}})}static createInstance(){return new Rl}};F(Rl,"presetName","FlipOutEasyY");let d0=Rl;const Nl=class Nl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scaleX:n(a,r(1,i))}]},initialValues:{transform:[{scaleX:0}],...o},callback:s}}})}static createInstance(){return new Nl}};F(Nl,"presetName","StretchInX");let A0=Nl;const Bl=class Bl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scaleY:n(a,r(1,i))}]},initialValues:{transform:[{scaleY:0}],...o},callback:s}}})}static createInstance(){return new Bl}};F(Bl,"presetName","StretchInY");let f0=Bl;const Gl=class Gl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scaleX:n(a,r(0,i))}]},initialValues:{transform:[{scaleX:1}],...o},callback:s}}})}static createInstance(){return new Gl}};F(Gl,"presetName","StretchOutX");let h0=Gl;const Ll=class Ll extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scaleY:n(a,r(0,i))}]},initialValues:{transform:[{scaleY:1}],...o},callback:s}}})}static createInstance(){return new Ll}};F(Ll,"presetName","StretchOutY");let p0=Ll;var ci;let nh=(ci=class extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(1,i))},initialValues:{opacity:0,...s},callback:a}}})}static createInstance(){return new ci}},F(ci,"presetName","FadeIn"),ci);const Vl=class Vl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(1,i)),transform:[{translateX:n(o,r(0,i))}]},initialValues:{opacity:0,transform:[{translateX:25}],...s},callback:a}}})}static createInstance(){return new Vl}};F(Vl,"presetName","FadeInRight");let g0=Vl;const Hl=class Hl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(1,i)),transform:[{translateX:n(o,r(0,i))}]},initialValues:{opacity:0,transform:[{translateX:-25}],...s},callback:a}}})}static createInstance(){return new Hl}};F(Hl,"presetName","FadeInLeft");let v0=Hl;const Ul=class Ul extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(1,i)),transform:[{translateY:n(o,r(0,i))}]},initialValues:{opacity:0,transform:[{translateY:-25}],...s},callback:a}}})}static createInstance(){return new Ul}};F(Ul,"presetName","FadeInUp");let m0=Ul;const Wl=class Wl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(1,i)),transform:[{translateY:n(o,r(0,i))}]},initialValues:{opacity:0,transform:[{translateY:25}],...s},callback:a}}})}static createInstance(){return new Wl}};F(Wl,"presetName","FadeInDown");let C0=Wl;var ui;let rh=(ui=class extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(0,i))},initialValues:{opacity:1,...s},callback:a}}})}static createInstance(){return new ui}},F(ui,"presetName","FadeOut"),ui);const Xl=class Xl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(0,i)),transform:[{translateX:n(o,r(25,i))}]},initialValues:{opacity:1,transform:[{translateX:0}],...s},callback:a}}})}static createInstance(){return new Xl}};F(Xl,"presetName","FadeOutRight");let E0=Xl;const Yl=class Yl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(0,i)),transform:[{translateX:n(o,r(-25,i))}]},initialValues:{opacity:1,transform:[{translateX:0}],...s},callback:a}}})}static createInstance(){return new Yl}};F(Yl,"presetName","FadeOutLeft");let x0=Yl;const zl=class zl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(0,i)),transform:[{translateY:n(o,r(-25,i))}]},initialValues:{opacity:1,transform:[{translateY:0}],...s},callback:a}}})}static createInstance(){return new zl}};F(zl,"presetName","FadeOutUp");let y0=zl;const ql=class ql extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.initialValues,o=this.getDelay();return()=>{"worklet";return{animations:{opacity:n(o,r(0,i)),transform:[{translateY:n(o,r(25,i))}]},initialValues:{opacity:1,transform:[{translateY:0}],...s},callback:a}}})}static createInstance(){return new ql}};F(ql,"presetName","FadeOutDown");let I0=ql;const Kl=class Kl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{originX:n(a,r(l.targetOriginX,i))},initialValues:{originX:l.targetOriginX+l.windowWidth,...o},callback:s}}})}static createInstance(){return new Kl}};F(Kl,"presetName","SlideInRight");let w0=Kl;const $l=class $l extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{originX:n(a,r(l.targetOriginX,i))},initialValues:{originX:l.targetOriginX-l.windowWidth,...o},callback:s}}})}static createInstance(){return new $l}};F($l,"presetName","SlideInLeft");let b0=$l;const jl=class jl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{originX:n(a,r(Math.max(l.currentOriginX+l.windowWidth,l.windowWidth),i))},initialValues:{originX:l.currentOriginX,...o},callback:s}}})}static createInstance(){return new jl}};F(jl,"presetName","SlideOutRight");let S0=jl;const Ql=class Ql extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{originX:n(a,r(Math.min(l.currentOriginX-l.windowWidth,-l.windowWidth),i))},initialValues:{originX:l.currentOriginX,...o},callback:s}}})}static createInstance(){return new Ql}};F(Ql,"presetName","SlideOutLeft");let _0=Ql;const Zl=class Zl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{originY:n(a,r(l.targetOriginY,i))},initialValues:{originY:-l.windowHeight,...o},callback:s}}})}static createInstance(){return new Zl}};F(Zl,"presetName","SlideInUp");let D0=Zl;const Jl=class Jl extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{originY:n(a,r(l.targetOriginY,i))},initialValues:{originY:l.targetOriginY+l.windowHeight,...o},callback:s}}})}static createInstance(){return new Jl}};F(Jl,"presetName","SlideInDown");let _i=Jl;const ec=class ec extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{originY:n(a,r(Math.min(l.currentOriginY-l.windowHeight,-l.windowHeight),i))},initialValues:{originY:l.currentOriginY,...o},callback:s}}})}static createInstance(){return new ec}};F(ec,"presetName","SlideOutUp");let T0=ec;const tc=class tc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{originY:n(a,r(Math.max(l.currentOriginY+l.windowHeight,l.windowHeight),i))},initialValues:{originY:l.currentOriginY,...o},callback:s}}})}static createInstance(){return new tc}};F(tc,"presetName","SlideOutDown");let Is=tc;var di;let Yb=(di=class extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scale:n(a,r(1,i))}]},initialValues:{transform:[{scale:0}],...o},callback:s}}})}static createInstance(){return new di}},F(di,"presetName","ZoomIn"),di);const nc=class nc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.rotateV?this.rotateV:"0.3",o=this.callbackV,l=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scale:n(a,r(1,i))},{rotate:n(a,r(0,i))}]},initialValues:{transform:[{scale:0},{rotate:s}],...l},callback:o}}})}static createInstance(){return new nc}};F(nc,"presetName","ZoomInRotate");let O0=nc;const rc=class rc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateX:n(a,r(0,i))},{scale:n(a,r(1,i))}]},initialValues:{transform:[{translateX:-l.windowWidth},{scale:0}],...o},callback:s}}})}static createInstance(){return new rc}};F(rc,"presetName","ZoomInLeft");let k0=rc;const ic=class ic extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateX:n(a,r(0,i))},{scale:n(a,r(1,i))}]},initialValues:{transform:[{translateX:l.windowWidth},{scale:0}],...o},callback:s}}})}static createInstance(){return new ic}};F(ic,"presetName","ZoomInRight");let M0=ic;const ac=class ac extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateY:n(a,r(0,i))},{scale:n(a,r(1,i))}]},initialValues:{transform:[{translateY:-l.windowHeight},{scale:0}],...o},callback:s}}})}static createInstance(){return new ac}};F(ac,"presetName","ZoomInUp");let P0=ac;const sc=class sc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateY:n(a,r(0,i))},{scale:n(a,r(1,i))}]},initialValues:{transform:[{translateY:l.windowHeight},{scale:0}],...o},callback:s}}})}static createInstance(){return new sc}};F(sc,"presetName","ZoomInDown");let F0=sc;const oc=class oc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateY:n(a,r(0,i))},{scale:n(a,r(1,i))}]},initialValues:{transform:[{translateY:-l.targetHeight},{scale:0}],...o},callback:s}}})}static createInstance(){return new oc}};F(oc,"presetName","ZoomInEasyUp");let R0=oc;const lc=class lc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateY:n(a,r(0,i))},{scale:n(a,r(1,i))}]},initialValues:{transform:[{translateY:l.targetHeight},{scale:0}],...o},callback:s}}})}static createInstance(){return new lc}};F(lc,"presetName","ZoomInEasyDown");let N0=lc;var Ai;let zb=(Ai=class extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scale:n(a,r(0,i))}]},initialValues:{transform:[{scale:1}],...o},callback:s}}})}static createInstance(){return new Ai}},F(Ai,"presetName","ZoomOut"),Ai);const cc=class cc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.rotateV?this.rotateV:"0.3",o=this.callbackV,l=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scale:n(a,r(0,i))},{rotate:n(a,r(s,i))}]},initialValues:{transform:[{scale:1},{rotate:"0"}],...l},callback:o}}})}static createInstance(){return new cc}};F(cc,"presetName","ZoomOutRotate");let B0=cc;const uc=class uc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateX:n(a,r(-l.windowWidth,i))},{scale:n(a,r(0,i))}]},initialValues:{transform:[{translateX:0},{scale:1}],...o},callback:s}}})}static createInstance(){return new uc}};F(uc,"presetName","ZoomOutLeft");let G0=uc;const dc=class dc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateX:n(a,r(l.windowWidth,i))},{scale:n(a,r(0,i))}]},initialValues:{transform:[{translateX:0},{scale:1}],...o},callback:s}}})}static createInstance(){return new dc}};F(dc,"presetName","ZoomOutRight");let L0=dc;const Ac=class Ac extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateY:n(a,r(-l.windowHeight,i))},{scale:n(a,r(0,i))}]},initialValues:{transform:[{translateY:0},{scale:1}],...o},callback:s}}})}static createInstance(){return new Ac}};F(Ac,"presetName","ZoomOutUp");let V0=Ac;const fc=class fc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateY:n(a,r(l.windowHeight,i))},{scale:n(a,r(0,i))}]},initialValues:{transform:[{translateY:0},{scale:1}],...o},callback:s}}})}static createInstance(){return new fc}};F(fc,"presetName","ZoomOutDown");let H0=fc;const hc=class hc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateY:n(a,r(-l.currentHeight,i))},{scale:n(a,r(0,i))}]},initialValues:{transform:[{translateY:0},{scale:1}],...o},callback:s}}})}static createInstance(){return new hc}};F(hc,"presetName","ZoomOutEasyUp");let U0=hc;const pc=class pc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateY:n(a,r(l.currentHeight,i))},{scale:n(a,r(0,i))}]},initialValues:{transform:[{translateY:0},{scale:1}],...o},callback:s}}})}static createInstance(){return new pc}};F(pc,"presetName","ZoomOutEasyDown");let W0=pc;var fi;let qb=(fi=class extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scale:n(r,Fe(j(1.2,{duration:i*.55}),j(.9,{duration:i*.15}),j(1.1,{duration:i*.15}),j(1,{duration:i*.15})))}]},initialValues:{transform:[{scale:0}],...s},callback:a}}})}static createInstance(){return new fi}static getDuration(){return 600}getDuration(){return this.durationV??600}},F(fi,"presetName","BounceIn"),fi);const gc=class gc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return o=>{"worklet";return{animations:{transform:[{translateY:n(r,Fe(j(-20,{duration:i*.55}),j(10,{duration:i*.15}),j(-10,{duration:i*.15}),j(0,{duration:i*.15})))}]},initialValues:{transform:[{translateY:o.windowHeight}],...s},callback:a}}})}static createInstance(){return new gc}static getDuration(){return 600}getDuration(){return this.durationV??600}};F(gc,"presetName","BounceInDown");let X0=gc;const vc=class vc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return o=>{"worklet";return{animations:{transform:[{translateY:n(r,Fe(j(20,{duration:i*.55}),j(-10,{duration:i*.15}),j(10,{duration:i*.15}),j(0,{duration:i*.15})))}]},initialValues:{transform:[{translateY:-o.windowHeight}],...s},callback:a}}})}static createInstance(){return new vc}static getDuration(){return 600}getDuration(){return this.durationV??600}};F(vc,"presetName","BounceInUp");let Y0=vc;const mc=class mc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return o=>{"worklet";return{animations:{transform:[{translateX:n(r,Fe(j(20,{duration:i*.55}),j(-10,{duration:i*.15}),j(10,{duration:i*.15}),j(0,{duration:i*.15})))}]},initialValues:{transform:[{translateX:-o.windowWidth}],...s},callback:a}}})}static createInstance(){return new mc}static getDuration(){return 600}getDuration(){return this.durationV??600}};F(mc,"presetName","BounceInLeft");let z0=mc;const Cc=class Cc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return o=>{"worklet";return{animations:{transform:[{translateX:n(r,Fe(j(-20,{duration:i*.55}),j(10,{duration:i*.15}),j(-10,{duration:i*.15}),j(0,{duration:i*.15})))}]},initialValues:{transform:[{translateX:o.windowWidth}],...s},callback:a}}})}static createInstance(){return new Cc}static getDuration(){return 600}getDuration(){return this.durationV??600}};F(Cc,"presetName","BounceInRight");let q0=Cc;var hi;let Kb=(hi=class extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return()=>{"worklet";return{animations:{transform:[{scale:n(r,Fe(j(1.1,{duration:i*.15}),j(.9,{duration:i*.15}),j(1.2,{duration:i*.15}),j(0,{duration:i*.55})))}]},initialValues:{transform:[{scale:1}],...s},callback:a}}})}static createInstance(){return new hi}static getDuration(){return 600}getDuration(){return this.durationV??600}},F(hi,"presetName","BounceOut"),hi);const Ec=class Ec extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return o=>{"worklet";return{animations:{transform:[{translateY:n(r,Fe(j(-10,{duration:i*.15}),j(10,{duration:i*.15}),j(-20,{duration:i*.15}),j(o.windowHeight,{duration:i*.55})))}]},initialValues:{transform:[{translateY:0}],...s},callback:a}}})}static createInstance(){return new Ec}static getDuration(){return 600}getDuration(){return this.durationV??600}};F(Ec,"presetName","BounceOutDown");let K0=Ec;const xc=class xc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return o=>{"worklet";return{animations:{transform:[{translateY:n(r,Fe(j(10,{duration:i*.15}),j(-10,{duration:i*.15}),j(20,{duration:i*.15}),j(-o.windowHeight,{duration:i*.55})))}]},initialValues:{transform:[{translateY:0}],...s},callback:a}}})}static createInstance(){return new xc}static getDuration(){return 600}getDuration(){return this.durationV??600}};F(xc,"presetName","BounceOutUp");let $0=xc;const yc=class yc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return o=>{"worklet";return{animations:{transform:[{translateX:n(r,Fe(j(10,{duration:i*.15}),j(-10,{duration:i*.15}),j(20,{duration:i*.15}),j(-o.windowWidth,{duration:i*.55})))}]},initialValues:{transform:[{translateX:0}],...s},callback:a}}})}static createInstance(){return new yc}static getDuration(){return 600}getDuration(){return this.durationV??600}};F(yc,"presetName","BounceOutLeft");let j0=yc;const Ic=class Ic extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.getDelay(),i=this.getDuration(),a=this.callbackV,s=this.initialValues;return o=>{"worklet";return{animations:{transform:[{translateX:n(r,Fe(j(-10,{duration:i*.15}),j(10,{duration:i*.15}),j(-20,{duration:i*.15}),j(o.windowWidth,{duration:i*.55})))}]},initialValues:{transform:[{translateX:0}],...s},callback:a}}})}static createInstance(){return new Ic}static getDuration(){return 600}getDuration(){return this.durationV??600}};F(Ic,"presetName","BounceOutRight");let Q0=Ic;const wc=class wc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.getDuration(),o=this.callbackV,l=this.initialValues;return c=>{"worklet";return{animations:{opacity:n(a,j(1,{duration:s})),transform:[{translateX:n(a,r(0,{...i,duration:s*.7}))},{skewX:n(a,Fe(j("10deg",{duration:s*.7}),j("-5deg",{duration:s*.15}),j("0deg",{duration:s*.15})))}]},initialValues:{opacity:0,transform:[{translateX:c.windowWidth},{skewX:"-45deg"}],...l},callback:o}}})}static createInstance(){return new wc}};F(wc,"presetName","LightSpeedInRight");let Z0=wc;const bc=class bc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.getDuration(),o=this.callbackV,l=this.initialValues;return c=>{"worklet";return{animations:{opacity:n(a,j(1,{duration:s})),transform:[{translateX:n(a,r(0,{...i,duration:s*.7}))},{skewX:n(a,Fe(j("-10deg",{duration:s*.7}),j("5deg",{duration:s*.15}),j("0deg",{duration:s*.15})))}]},initialValues:{opacity:0,transform:[{translateX:-c.windowWidth},{skewX:"45deg"}],...l},callback:o}}})}static createInstance(){return new bc}};F(bc,"presetName","LightSpeedInLeft");let J0=bc;const Sc=class Sc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(0,i)),transform:[{translateX:n(a,r(l.windowWidth,i))},{skewX:n(a,r("-45deg",i))}]},initialValues:{opacity:1,transform:[{translateX:0},{skewX:"0deg"}],...o},callback:s}}})}static createInstance(){return new Sc}};F(Sc,"presetName","LightSpeedOutRight");let eA=Sc;const _c=class _c extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(0,i)),transform:[{translateX:n(a,r(-l.windowWidth,i))},{skewX:n(a,r("45deg",i))}]},initialValues:{opacity:1,transform:[{translateX:0},{skewX:"0deg"}],...o},callback:s}}})}static createInstance(){return new _c}};F(_c,"presetName","LightSpeedOutLeft");let tA=_c;const Dc=class Dc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{animations:{opacity:n(a,r(1,i)),transform:[{scale:n(a,r(1,i))},{rotate:n(a,r("0",i))}]},initialValues:{opacity:0,transform:[{scale:0},{rotate:"5"}],...o},callback:s}}})}static createInstance(){return new Dc}};F(Dc,"presetName","PinwheelIn");let nA=Dc;const Tc=class Tc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return()=>{"worklet";return{animations:{opacity:n(a,r(0,i)),transform:[{scale:n(a,r(0,i))},{rotate:n(a,r("5",i))}]},initialValues:{opacity:1,transform:[{scale:1},{rotate:"0"}],...o},callback:s}}})}static createInstance(){return new Tc}};F(Tc,"presetName","PinwheelOut");let rA=Tc;const Oc=class Oc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(1,i)),transform:[{rotate:n(a,r("0deg",i))},{translateX:n(a,r(0,i))},{translateY:n(a,r(0,i))}]},initialValues:{opacity:0,transform:[{rotate:"-90deg"},{translateX:l.targetWidth/2-l.targetHeight/2},{translateY:-(l.targetWidth/2-l.targetHeight/2)}],...o},callback:s}}})}static createInstance(){return new Oc}};F(Oc,"presetName","RotateInDownLeft");let iA=Oc;const kc=class kc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(1,i)),transform:[{rotate:n(a,r("0deg",i))},{translateX:n(a,r(0,i))},{translateY:n(a,r(0,i))}]},initialValues:{opacity:0,transform:[{rotate:"90deg"},{translateX:-(l.targetWidth/2-l.targetHeight/2)},{translateY:-(l.targetWidth/2-l.targetHeight/2)}],...o},callback:s}}})}static createInstance(){return new kc}};F(kc,"presetName","RotateInDownRight");let aA=kc;const Mc=class Mc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(1,i)),transform:[{rotate:n(a,r("0deg",i))},{translateX:n(a,r(0,i))},{translateY:n(a,r(0,i))}]},initialValues:{opacity:0,transform:[{rotate:"90deg"},{translateX:l.targetWidth/2-l.targetHeight/2},{translateY:l.targetWidth/2-l.targetHeight/2}],...o},callback:s}}})}static createInstance(){return new Mc}};F(Mc,"presetName","RotateInUpLeft");let sA=Mc;const Pc=class Pc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(1,i)),transform:[{rotate:n(a,r("0deg",i))},{translateX:n(a,r(0,i))},{translateY:n(a,r(0,i))}]},initialValues:{opacity:0,transform:[{rotate:"-90deg"},{translateX:-(l.targetWidth/2-l.targetHeight/2)},{translateY:l.targetWidth/2-l.targetHeight/2}],...o},callback:s}}})}static createInstance(){return new Pc}};F(Pc,"presetName","RotateInUpRight");let oA=Pc;const Fc=class Fc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(0,i)),transform:[{rotate:n(a,r("90deg",i))},{translateX:n(a,r(l.currentWidth/2-l.currentHeight/2,i))},{translateY:n(a,r(l.currentWidth/2-l.currentHeight/2,i))}]},initialValues:{opacity:1,transform:[{rotate:"0deg"},{translateX:0},{translateY:0}],...o},callback:s}}})}static createInstance(){return new Fc}};F(Fc,"presetName","RotateOutDownLeft");let lA=Fc;const Rc=class Rc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(0,i)),transform:[{rotate:n(a,r("-90deg",i))},{translateX:n(a,r(-(l.currentWidth/2-l.currentHeight/2),i))},{translateY:n(a,r(l.currentWidth/2-l.currentHeight/2,i))}]},initialValues:{opacity:1,transform:[{rotate:"0deg"},{translateX:0},{translateY:0}],...o},callback:s}}})}static createInstance(){return new Rc}};F(Rc,"presetName","RotateOutDownRight");let cA=Rc;const Nc=class Nc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(0,i)),transform:[{rotate:n(a,r("-90deg",i))},{translateX:n(a,r(l.currentWidth/2-l.currentHeight/2,i))},{translateY:n(a,r(-(l.currentWidth/2-l.currentHeight/2),i))}]},initialValues:{opacity:1,transform:[{rotate:"0deg"},{translateX:0},{translateY:0}],...o},callback:s}}})}static createInstance(){return new Nc}};F(Nc,"presetName","RotateOutUpLeft");let uA=Nc;const Bc=class Bc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{opacity:n(a,r(0,i)),transform:[{rotate:n(a,r("90deg",i))},{translateX:n(a,r(-(l.currentWidth/2-l.currentHeight/2),i))},{translateY:n(a,r(-(l.currentWidth/2-l.currentHeight/2),i))}]},initialValues:{opacity:1,transform:[{rotate:"0deg"},{translateX:0},{translateY:0}],...o},callback:s}}})}static createInstance(){return new Bc}};F(Bc,"presetName","RotateOutUpRight");let dA=Bc;const Gc=class Gc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateX:n(a,r(0,i))},{rotate:n(a,r("0deg",i))}]},initialValues:{transform:[{translateX:-l.windowWidth},{rotate:"-180deg"}],...o},callback:s}}})}static createInstance(){return new Gc}};F(Gc,"presetName","RollInLeft");let AA=Gc;const Lc=class Lc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateX:n(a,r(0,i))},{rotate:n(a,r("0deg",i))}]},initialValues:{transform:[{translateX:l.windowWidth},{rotate:"180deg"}],...o},callback:s}}})}static createInstance(){return new Lc}};F(Lc,"presetName","RollInRight");let fA=Lc;const Vc=class Vc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateX:n(a,r(-l.windowWidth,i))},{rotate:n(a,r("-180deg",i))}]},initialValues:{transform:[{translateX:0},{rotate:"0deg"}],...o},callback:s}}})}static createInstance(){return new Vc}};F(Vc,"presetName","RollOutLeft");let hA=Vc;const Hc=class Hc extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.getDelay(),s=this.callbackV,o=this.initialValues;return l=>{"worklet";return{animations:{transform:[{translateX:n(a,r(l.windowWidth,i))},{rotate:n(a,r("180deg",i))}]},initialValues:{transform:[{translateX:0},{rotate:"0deg"}],...o},callback:s}}})}static createInstance(){return new Hc}};F(Hc,"presetName","RollOutRight");let pA=Hc;var pi;let GC=(pi=class extends ee{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),[r,i]=this.getAnimationAndConfig(),a=this.callbackV,s=this.getDelay();return o=>{"worklet";return{initialValues:{originX:o.currentOriginX,originY:o.currentOriginY,width:o.currentWidth,height:o.currentHeight},animations:{originX:n(s,r(o.targetOriginX,i)),originY:n(s,r(o.targetOriginY,i)),width:n(s,r(o.targetWidth,i)),height:n(s,r(o.targetHeight,i))},callback:a}}})}static createInstance(){return new pi}},F(pi,"presetName","LinearTransition"),pi);const $b=GC;var gi;let jb=(gi=class extends Pi{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.callbackV,i=this.getDelay(),a=(this.durationV??500)/2;return s=>{"worklet";return{initialValues:{opacity:1,originX:s.currentOriginX,originY:s.currentOriginY,width:s.currentWidth,height:s.currentHeight},animations:{opacity:n(i,Fe(j(0,{duration:a}),j(1,{duration:a}))),originX:ni(i+a,j(s.targetOriginX,{duration:0})),originY:ni(i+a,j(s.targetOriginY,{duration:0})),width:ni(i+a,j(s.targetWidth,{duration:0})),height:ni(i+a,j(s.targetHeight,{duration:0}))},callback:r}}})}static createInstance(){return new gi}},F(gi,"presetName","FadingTransition"),gi);var Mr;let Qb=(Mr=class extends Pi{constructor(){super(...arguments);F(this,"reversed",!1);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.callbackV,i=this.getDelay(),s={duration:(this.durationV??500)/2},o=this.reversed;return l=>{"worklet";return{initialValues:{originX:l.currentOriginX,originY:l.currentOriginY,width:l.currentWidth,height:l.currentHeight},animations:{originX:n(i,Fe(j(o?l.currentOriginX:l.targetOriginX,s),j(l.targetOriginX,s))),originY:n(i,Fe(j(o?l.targetOriginY:l.currentOriginY,s),j(l.targetOriginY,s))),width:n(i,Fe(j(o?l.currentWidth:l.targetWidth,s),j(l.targetWidth,s))),height:n(i,Fe(j(o?l.targetHeight:l.currentHeight,s),j(l.targetHeight,s)))},callback:r}}})}static createInstance(){return new Mr}static reverse(){return Mr.createInstance().reverse()}reverse(){return this.reversed=!this.reversed,this}},F(Mr,"presetName","SequencedTransition"),Mr);var vi;let Zb=(vi=class extends Pi{constructor(){super(...arguments);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.callbackV,i=this.getDelay(),a=this.durationV??300,s=a/2,o={duration:a};return l=>{"worklet";const c=Math.max(Math.abs(l.targetOriginX-l.currentOriginX),Math.abs(l.targetOriginY-l.currentOriginY));return{initialValues:{originX:l.currentOriginX,originY:l.currentOriginY,width:l.currentWidth,height:l.currentHeight},animations:{originX:n(i,j(l.targetOriginX,o)),originY:n(i,Fe(j(Math.min(l.targetOriginY,l.currentOriginY)-c,{duration:s,easing:Je.out(Je.exp)}),j(l.targetOriginY,{...o,duration:s,easing:Je.bounce}))),width:n(i,j(l.targetWidth,o)),height:n(i,j(l.targetHeight,o))},callback:r}}})}static createInstance(){return new vi}},F(vi,"presetName","JumpingTransition"),vi);var mi;let Jb=(mi=class extends Pi{constructor(){super(...arguments);F(this,"easingXV",Je.in(Je.ease));F(this,"easingYV",Je.out(Je.ease));F(this,"easingWidthV",Je.in(Je.exp));F(this,"easingHeightV",Je.out(Je.exp));F(this,"build",()=>{const n=this.getDelayFunction(),r=this.callbackV,i=this.getDelay(),a=this.durationV??300,s={easingX:this.easingXV,easingY:this.easingYV,easingWidth:this.easingWidthV,easingHeight:this.easingHeightV};return o=>{"worklet";return{initialValues:{originX:o.currentOriginX,originY:o.currentOriginY,width:o.currentWidth,height:o.currentHeight},animations:{originX:n(i,j(o.targetOriginX,{duration:a,easing:s.easingX})),originY:n(i,j(o.targetOriginY,{duration:a,easing:s.easingY})),width:n(i,j(o.targetWidth,{duration:a,easing:s.easingWidth})),height:n(i,j(o.targetHeight,{duration:a,easing:s.easingHeight}))},callback:r}}})}static createInstance(){return new mi}static easingX(n){return this.createInstance().easingX(n)}easingX(n){return this.easingXV=n,this}static easingY(n){return this.createInstance().easingY(n)}easingY(n){return this.easingYV=n,this}static easingWidth(n){return this.createInstance().easingWidth(n)}easingWidth(n){return this.easingWidthV=n,this}static easingHeight(n){return this.createInstance().easingHeight(n)}easingHeight(n){return this.easingHeightV=n,this}},F(mi,"presetName","CurvedTransition"),mi);var Ci;let LC=(Ci=class extends Pi{constructor(){super(...arguments);F(this,"enteringV",nh);F(this,"exitingV",rh);F(this,"build",()=>{const n=this.getDelayFunction(),r=this.callbackV,i=this.getDelay(),a=this.enteringV.build(),s=this.exitingV.build(),o=this.exitingV.getDuration();return l=>{"worklet";const c=a(l),u=s(l),A={transform:[]};for(const f of Object.keys(u.animations))if(f==="transform"){if(!Array.isArray(u.animations.transform))continue;u.animations.transform.forEach((p,h)=>{for(const g of Object.keys(p))A.transform.push({[g]:n(i,Fe(p[g],j(u.initialValues.transform?u.initialValues.transform[h][g]:0,{duration:0})))})})}else{const p=c.animations[f]!==void 0?[u.animations[f],j(c.initialValues[f],{duration:0}),c.animations[f]]:[u.animations[f],j(Object.keys(l).includes(f)?l[f]:u.initialValues[f],{duration:0})];A[f]=n(i,Fe(...p))}for(const f of Object.keys(c.animations))if(f==="transform"){if(!Array.isArray(c.animations.transform))continue;c.animations.transform.forEach((p,h)=>{for(const g of Object.keys(p))A.transform.push({[g]:n(i+o,Fe(j(c.initialValues.transform?c.initialValues.transform[h][g]:0,{duration:o}),p[g]))})})}else{if(A[f]!==void 0)continue;A[f]=n(i,Fe(j(c.initialValues[f],{duration:0}),c.animations[f]))}const d=(Array.isArray(u.initialValues.transform)?u.initialValues.transform:[]).concat((Array.isArray(c.animations.transform)?c.animations.transform:[]).map(f=>{const p=Object.keys(f);if((p==null?void 0:p.length)<1)return Oe.error("${value} is not a valid Transform object"),f;const h=p[0],g=f[h].current;return typeof g=="string"?g.includes("deg")?{[h]:"0deg"}:{[h]:"0"}:h.includes("translate")?{[h]:0}:{[h]:1}}));return{initialValues:{...u.initialValues,originX:l.currentOriginX,originY:l.currentOriginY,width:l.currentWidth,height:l.currentHeight,transform:d},animations:{originX:n(i+o,j(l.targetOriginX,{duration:o})),originY:n(i+o,j(l.targetOriginY,{duration:o})),width:n(i+o,j(l.targetWidth,{duration:o})),height:n(i+o,j(l.targetHeight,{duration:o})),...A},callback:r}}})}static createInstance(){return new Ci}static entering(n){return this.createInstance().entering(n)}entering(n){return this.enteringV=n,this}static exiting(n){return this.createInstance().exiting(n)}exiting(n){return this.exitingV=n,this}},F(Ci,"presetName","EntryExitTransition"),Ci);function eS(t,e){return LC.entering(e).exiting(t)}class Sr{custom(){return this}progressAnimation(){return this}duration(){return this}reduceMotion(){return this}defaultTransitionType(){return this}registerTransition(){}unregisterTransition(){}getReduceMotion(){return on.System}static custom(){return new Sr}static duration(){return new Sr}static progressAnimation(){return new Sr}static defaultTransitionType(){return new Sr}static reduceMotion(){return new Sr}}function VC(){throw new oe("Trying to call `getShadowNodeWrapperFromRef` on web.")}let Jo=[];function tS(t){Jo.push(t),Jo.length===1&&queueMicrotask(nS)}function nS(){ar(rS)(Jo),Jo=[]}function rS(t){"worklet";global._removeFromPropsRegistry(t)}function Ma(t,e,n){return(i=>"build"in t&&typeof t.build=="function")()?t.build():t}const HC=_.createContext(null);function iS(t){const e=_.useRef(t.shouldSkip);return _.useEffect(()=>{e.current=!1},[e]),k.jsx(HC.Provider,{value:e,children:t.children})}class eu extends _.Component{getMaybeWrappedChildren(){return _.Children.count(this.props.children)>1&&this.props.skipExiting?_.Children.map(this.props.children,e=>k.jsx(eu,{skipExiting:!0,children:e})):this.props.children}setShouldAnimateExiting(){if(_.Children.count(this.props.children)===1){const e=this;e&&Tw(e,!this.props.skipExiting)}}componentWillUnmount(){this.props.skipExiting!==void 0&&this.setShouldAnimateExiting()}render(){const e=this.getMaybeWrappedChildren();return this.props.skipEntering===void 0?e:k.jsx(iS,{shouldSkip:this.props.skipEntering,children:e})}}class aS{addOnJSPropsChangeListener(e){}removeOnJSPropsChangeListener(e){}}function ih(t){if(!Array.isArray(t))return[t];const e=[],n=r=>{r.forEach(i=>{Array.isArray(i)?n(i):e.push(i)})};return n(t),e}const gA=(t,e)=>typeof e=="function"||typeof e=="object"?e==null?!1:t in e:!1;function sS({getForwardedRef:t,setLocalRef:e}){return function(r){const i=t();e(r),typeof i=="function"?i(r):typeof i=="object"&&i!=null&&(i.current=r)}}function UC(){const t=Pn([]);return{shareableViewDescriptors:t,add:n=>{t.modify(r=>{"worklet";const i=r.findIndex(a=>a.tag===n.tag);return i!==-1?r[i]=n:r.push(n),r},!1)},remove:n=>{t.modify(r=>{"worklet";const i=r.findIndex(a=>a.tag===n);return i!==-1&&r.splice(i,1),r},!1)}}}let sr;nt()?sr=(t,e,n)=>{"worklet";var r;(r=t.value)==null||r.forEach(i=>{const a=i.tag;$c(e,a,n)})}:sr=(t,e)=>{"worklet";Gw(e),global.UpdatePropsManager.update(t,e)};const _p=(t,e,n,r)=>{r.forEach(i=>{i(e)}),n.current.value={...n.current.value,...e},sr(t,e)},oS=Ct()?()=>{"worklet";const t=[];return{update(e,n){e.value.forEach(r=>{t.push({shadowNodeWrapper:r.shadowNodeWrapper,updates:n}),t.length===1&&queueMicrotask(this.flush)})},flush(){global._updatePropsFabric(t),t.length=0}}}:()=>{"worklet";const t=[];return{update(e,n){e.value.forEach(r=>{t.push({tag:r.tag,name:r.name||"RCTView",updates:n}),t.length===1&&queueMicrotask(this.flush)})},flush(){global._updatePropsPaper(t),t.length=0}}};if(nt()){const t=()=>{if(!Kt())throw new oe("`UpdatePropsManager` is not available on non-native platform.")};global.UpdatePropsManager=new Proxy({},{get:t,set:()=>(t(),!1)})}else Uf(()=>{"worklet";global.UpdatePropsManager=oS()})();function ah(t){return Array.isArray(t)?t.some(e=>WC(e)):!1}function lS(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!0;for(const n of Object.keys(t))if(t[n]!==e[n])return!0;return!1}function el(t){"worklet";const e={};for(const[n,r]of Object.entries(t))Rr(r)?e[n]=r.value:Array.isArray(r)?e[n]=r.map(i=>el(i)):typeof r=="object"?e[n]=el(r):e[n]=r;return e}function cS(t){const e={};for(const n in t){const r=t[n];n==="style"?ih(t.style??[]).forEach(a=>{if(a)for(const[s,o]of Object.entries(a))(Rr(o)||s==="transform"&&ah(o))&&(e[s]=o)}):Rr(r)&&(e[n]=r)}return e}function WC(t){return t?Object.keys(t).some(e=>{const n=t[e];return Rr(n)||e==="transform"&&ah(n)}):!1}function uS(t,e){if(e)return el(t);const n={};for(const[r,i]of Object.entries(t))!Rr(i)&&!(r==="transform"&&ah(i))&&(n[r]=i);return n}class dS{constructor(){F(this,"_inlinePropsViewDescriptors",null);F(this,"_inlinePropsMapperId",null);F(this,"_inlineProps",{})}attachInlineProps(e,n){const r=cS(e.props);if(lS(r,this._inlineProps)){if(!this._inlinePropsViewDescriptors){this._inlinePropsViewDescriptors=UC();const{viewTag:o,viewName:l,shadowNodeWrapper:c,viewConfig:u}=n;Object.keys(r).length&&u&&BC(u),this._inlinePropsViewDescriptors.add({tag:o,name:l,shadowNodeWrapper:c})}const a=this._inlinePropsViewDescriptors.shareableViewDescriptors,s=()=>{"worklet";const o=el(r);sr(a,o)};this._inlineProps=r,this._inlinePropsMapperId&&da(this._inlinePropsMapperId),this._inlinePropsMapperId=null,Object.keys(r).length&&(this._inlinePropsMapperId=Hs(s,Object.values(r)))}}detachInlineProps(){this._inlinePropsMapperId&&da(this._inlinePropsMapperId)}}const AS=nt();function fS(t,e){return n=>{e({...n.nativeEvent,eventName:t})}}var Ei,mn;class hS{constructor(e,n){Hi(this,Ei);Hi(this,mn);this.worklet=e,this.eventNames=n,qr(this,Ei,new Set),qr(this,mn,new Map)}updateEventHandler(e,n){this.worklet=e,this.eventNames=n,ke(this,mn).forEach(r=>{r.forEach(i=>pp(i))}),Array.from(ke(this,Ei)).forEach(r=>{const i=this.eventNames.map(a=>gu(this.worklet,a,r));ke(this,mn).set(r,i)})}registerForEvents(e,n){ke(this,Ei).add(e);const r=this.eventNames.map(i=>gu(this.worklet,i,e));if(ke(this,mn).set(e,r),this.eventNames.length===0&&n){const i=gu(this.worklet,n,e);ke(this,mn).set(e,[i])}}unregisterFromEvents(e){var n;ke(this,Ei).delete(e),(n=ke(this,mn).get(e))==null||n.forEach(r=>{pp(r)}),ke(this,mn).delete(e)}}Ei=new WeakMap,mn=new WeakMap;class pS{constructor(e,n=[]){this.worklet=e,this.eventNames=n,this.listeners={},this.setupWebListeners()}setupWebListeners(){this.listeners={},this.eventNames.forEach(e=>{this.listeners[e]=fS(e,this.worklet)})}updateEventHandler(e,n){this.worklet=e,this.eventNames=n,this.setupWebListeners()}registerForEvents(e,n){}unregisterFromEvents(e){}}const tu=AS?pS:hS;function Dp(){}class gS{constructor(){F(this,"_initialStyle",{})}filterNonAnimatedProps(e){const n=e.props,r={};for(const i in n){const a=n[i];if(i==="style"){const s=n.style,l=ih(s??[]).map(c=>c&&c.viewDescriptors?(e._isFirstRender&&(this._initialStyle={...c.initial.value,...this._initialStyle,...jf(c.initial.updater)}),this._initialStyle):WC(c)?uS(c,e._isFirstRender):c);r[i]=he.flatten(l)}else if(i==="animatedProps"){const s=n.animatedProps;s.initial!==void 0&&Object.keys(s.initial.value).forEach(o=>{var l;r[o]=(l=s.initial)==null?void 0:l.value[o]})}else gA("workletEventHandler",a)&&a.workletEventHandler instanceof tu?a.workletEventHandler.eventNames.length>0?a.workletEventHandler.eventNames.forEach(s=>{r[s]=gA("listeners",a.workletEventHandler)?a.workletEventHandler.listeners[s]:Dp}):r[i]=Dp:Rr(a)?e._isFirstRender&&(r[i]=a.value):(i!=="onGestureHandlerStateChange"||!ys())&&(r[i]=a)}return r}}const hs={linear:[0,0,1,1],ease:[.42,0,1,1],quad:[.11,0,.5,0],cubic:[.32,0,.67,0],sin:[.12,0,.39,0],circle:[.55,0,1,.45],exp:[.7,0,.84,0]};function ps(t){return`cubic-bezier(${hs[t].toString()})`}function J(t){let e=`@keyframes ${t.name} { `;for(const[n,r]of Object.entries(t.style)){e+=`${n==="from"?0:n==="to"?100:n}% { `;for(const[a,s]of Object.entries(r)){if(a==="easing"){let o="linear";s in hs?o=s:s.name in hs&&(o=s.name),e+=`animation-timing-function: cubic-bezier(${hs[o].toString()});`;continue}if(a==="originX"){e+=`left: ${s}px; `;continue}if(a==="originY"){e+=`top: ${s}px; `;continue}if(a!=="transform"){e+=`${a}: ${s}; `;continue}e+="transform:",s.forEach(o=>{for(const[l,c]of Object.entries(o))e+=` ${l}(${c})`}),e+="; "}e+="} "}return e+="} ",e}const In=.6,Zt={BounceIn:{name:"BounceIn",style:{0:{transform:[{scale:0}]},55:{transform:[{scale:1.2}]},70:{transform:[{scale:.9}]},85:{transform:[{scale:1.1}]},100:{transform:[{scale:1}]}},duration:In},BounceInRight:{name:"BounceInRight",style:{0:{transform:[{translateX:"100vw"}]},55:{transform:[{translateX:"-20px"}]},70:{transform:[{translateX:"10px"}]},85:{transform:[{translateX:"-10px"}]},100:{transform:[{translateX:"0px"}]}},duration:In},BounceInLeft:{name:"BounceInLeft",style:{0:{transform:[{translateX:"-100vw"}]},55:{transform:[{translateX:"20px"}]},70:{transform:[{translateX:"-10px"}]},85:{transform:[{translateX:"10px"}]},100:{transform:[{translateX:"0px"}]}},duration:In},BounceInUp:{name:"BounceInUp",style:{0:{transform:[{translateY:"-100vh"}]},55:{transform:[{translateY:"20px"}]},70:{transform:[{translateY:"-10px"}]},85:{transform:[{translateY:"10px"}]},100:{transform:[{translateY:"0px"}]}},duration:In},BounceInDown:{name:"BounceInDown",style:{0:{transform:[{translateY:"100vh"}]},55:{transform:[{translateY:"-20px"}]},70:{transform:[{translateY:"10px"}]},85:{transform:[{translateY:"-10px"}]},100:{transform:[{translateY:"0px"}]}},duration:In}},Jt={BounceOut:{name:"BounceOut",style:{0:{transform:[{scale:1}]},15:{transform:[{scale:1.1}]},30:{transform:[{scale:.9}]},45:{transform:[{scale:1.2}]},100:{transform:[{scale:.1}]}},duration:In},BounceOutRight:{name:"BounceOutRight",style:{0:{transform:[{translateX:"0px"}]},15:{transform:[{translateX:"-10px"}]},30:{transform:[{translateX:"10px"}]},45:{transform:[{translateX:"-20px"}]},100:{transform:[{translateX:"100vh"}]}},duration:In},BounceOutLeft:{name:"BounceOutLeft",style:{0:{transform:[{translateX:"0px"}]},15:{transform:[{translateX:"10px"}]},30:{transform:[{translateX:"-10px"}]},45:{transform:[{translateX:"20px"}]},100:{transform:[{translateX:"-100vh"}]}},duration:In},BounceOutUp:{name:"BounceOutUp",style:{0:{transform:[{translateY:"0px"}]},15:{transform:[{translateY:"10px"}]},30:{transform:[{translateY:"-10px"}]},45:{transform:[{translateY:"20px"}]},100:{transform:[{translateY:"-100vh"}]}},duration:In},BounceOutDown:{name:"BounceOutDown",style:{0:{transform:[{translateY:"0px"}]},15:{transform:[{translateY:"-10px"}]},30:{transform:[{translateY:"10px"}]},45:{transform:[{translateY:"-20px"}]},100:{transform:[{translateY:"100vh"}]}},duration:In}},vS={BounceIn:{style:J(Zt.BounceIn),duration:Zt.BounceIn.duration},BounceInRight:{style:J(Zt.BounceInRight),duration:Zt.BounceInRight.duration},BounceInLeft:{style:J(Zt.BounceInLeft),duration:Zt.BounceInLeft.duration},BounceInUp:{style:J(Zt.BounceInUp),duration:Zt.BounceInUp.duration},BounceInDown:{style:J(Zt.BounceInDown),duration:Zt.BounceInDown.duration}},mS={BounceOut:{style:J(Jt.BounceOut),duration:Jt.BounceOut.duration},BounceOutRight:{style:J(Jt.BounceOutRight),duration:Jt.BounceOutRight.duration},BounceOutLeft:{style:J(Jt.BounceOutLeft),duration:Jt.BounceOutLeft.duration},BounceOutUp:{style:J(Jt.BounceOutUp),duration:Jt.BounceOutUp.duration},BounceOutDown:{style:J(Jt.BounceOutDown),duration:Jt.BounceOutDown.duration}},wn=.3,en={FadeIn:{name:"FadeIn",style:{0:{opacity:0},100:{opacity:1}},duration:wn},FadeInRight:{name:"FadeInRight",style:{0:{opacity:0,transform:[{translateX:"25px"}]},100:{opacity:1,transform:[{translateX:"0px"}]}},duration:wn},FadeInLeft:{name:"FadeInLeft",style:{0:{opacity:0,transform:[{translateX:"-25px"}]},100:{opacity:1,transform:[{translateX:"0px"}]}},duration:wn},FadeInUp:{name:"FadeInUp",style:{0:{opacity:0,transform:[{translateY:"-25px"}]},100:{opacity:1,transform:[{translateY:"0px"}]}},duration:wn},FadeInDown:{name:"FadeInDown",style:{0:{opacity:0,transform:[{translateY:"25px"}]},100:{opacity:1,transform:[{translateY:"0px"}]}},duration:wn}},tn={FadeOut:{name:"FadeOut",style:{0:{opacity:1},100:{opacity:0}},duration:wn},FadeOutRight:{name:"FadeOutRight",style:{0:{opacity:1,transform:[{translateX:"0px"}]},100:{opacity:0,transform:[{translateX:"25px"}]}},duration:wn},FadeOutLeft:{name:"FadeOutLeft",style:{0:{opacity:1,transform:[{translateX:"0px"}]},100:{opacity:0,transform:[{translateX:"-25px"}]}},duration:wn},FadeOutUp:{name:"FadeOutUp",style:{0:{opacity:1,transform:[{translateY:"0px"}]},100:{opacity:0,transform:[{translateY:"-25px"}]}},duration:wn},FadeOutDown:{name:"FadeOutDown",style:{0:{opacity:1,transform:[{translateY:"0px"}]},100:{opacity:0,transform:[{translateY:"25px"}]}},duration:wn}},CS={FadeIn:{style:J(en.FadeIn),duration:en.FadeIn.duration},FadeInRight:{style:J(en.FadeInRight),duration:en.FadeInRight.duration},FadeInLeft:{style:J(en.FadeInLeft),duration:en.FadeInLeft.duration},FadeInUp:{style:J(en.FadeInUp),duration:en.FadeInUp.duration},FadeInDown:{style:J(en.FadeInDown),duration:en.FadeInDown.duration}},ES={FadeOut:{style:J(tn.FadeOut),duration:tn.FadeOut.duration},FadeOutRight:{style:J(tn.FadeOutRight),duration:tn.FadeOutRight.duration},FadeOutLeft:{style:J(tn.FadeOutLeft),duration:tn.FadeOutLeft.duration},FadeOutUp:{style:J(tn.FadeOutUp),duration:tn.FadeOutUp.duration},FadeOutDown:{style:J(tn.FadeOutDown),duration:tn.FadeOutDown.duration}},Yt=.3,Pt={FlipInYRight:{name:"FlipInYRight",style:{0:{transform:[{perspective:"500px",rotateY:"90deg",translateX:"100%"}]},100:{transform:[{perspective:"500px",rotateY:"0deg",translateX:"0%"}]}},duration:Yt},FlipInYLeft:{name:"FlipInYLeft",style:{0:{transform:[{perspective:"500px",rotateY:"-90deg",translateX:"-100%"}]},100:{transform:[{perspective:"500px",rotateY:"0deg",translateX:"0%"}]}},duration:Yt},FlipInXUp:{name:"FlipInXUp",style:{0:{transform:[{perspective:"500px",rotateX:"90deg",translateY:"-100%"}]},100:{transform:[{perspective:"500px",rotateX:"0deg",translateY:"0%"}]}},duration:Yt},FlipInXDown:{name:"FlipInXDown",style:{0:{transform:[{perspective:"500px",rotateX:"-90deg",translateY:"100%"}]},100:{transform:[{perspective:"500px",rotateX:"0deg",translateY:"0%"}]}},duration:Yt},FlipInEasyX:{name:"FlipInEasyX",style:{0:{transform:[{perspective:"500px",rotateX:"90deg"}]},100:{transform:[{perspective:"500px",rotateX:"0deg"}]}},duration:Yt},FlipInEasyY:{name:"FlipInEasyY",style:{0:{transform:[{perspective:"500px",rotateY:"90deg"}]},100:{transform:[{perspective:"500px",rotateY:"0deg"}]}},duration:Yt}},Ft={FlipOutYRight:{name:"FlipOutYRight",style:{0:{transform:[{perspective:"500px",rotateY:"0deg",translateX:"0%"}]},100:{transform:[{perspective:"500px",rotateY:"90deg",translateX:"100%"}]}},duration:Yt},FlipOutYLeft:{name:"FlipOutYLeft",style:{0:{transform:[{perspective:"500px",rotateY:"0deg",translateX:"0%"}]},100:{transform:[{perspective:"500px",rotateY:"-90deg",translateX:"-100%"}]}},duration:Yt},FlipOutXUp:{name:"FlipOutXUp",style:{0:{transform:[{perspective:"500px",rotateX:"0deg",translateY:"0%"}]},100:{transform:[{perspective:"500px",rotateX:"90deg",translateY:"-100%"}]}},duration:Yt},FlipOutXDown:{name:"FlipOutXDown",style:{0:{transform:[{perspective:"500px",rotateX:"0deg",translateY:"0%"}]},100:{transform:[{perspective:"500px",rotateX:"-90deg",translateY:"100%"}]}},duration:Yt},FlipOutEasyX:{name:"FlipOutEasyX",style:{0:{transform:[{perspective:"500px",rotateX:"0deg"}]},100:{transform:[{perspective:"500px",rotateX:"90deg"}]}},duration:Yt},FlipOutEasyY:{name:"FlipOutEasyY",style:{0:{transform:[{perspective:"500px",rotateY:"0deg"}]},100:{transform:[{perspective:"500px",rotateY:"90deg"}]}},duration:Yt}},xS={FlipInYRight:{style:J(Pt.FlipInYRight),duration:Pt.FlipInYRight.duration},FlipInYLeft:{style:J(Pt.FlipInYLeft),duration:Pt.FlipInYLeft.duration},FlipInXUp:{style:J(Pt.FlipInXUp),duration:Pt.FlipInXUp.duration},FlipInXDown:{style:J(Pt.FlipInXDown),duration:Pt.FlipInXDown.duration},FlipInEasyX:{style:J(Pt.FlipInEasyX),duration:Pt.FlipInEasyX.duration},FlipInEasyY:{style:J(Pt.FlipInEasyY),duration:Pt.FlipInEasyY.duration}},yS={FlipOutYRight:{style:J(Ft.FlipOutYRight),duration:Ft.FlipOutYRight.duration},FlipOutYLeft:{style:J(Ft.FlipOutYLeft),duration:Ft.FlipOutYLeft.duration},FlipOutXUp:{style:J(Ft.FlipOutXUp),duration:Ft.FlipOutXUp.duration},FlipOutXDown:{style:J(Ft.FlipOutXDown),duration:Ft.FlipOutXDown.duration},FlipOutEasyX:{style:J(Ft.FlipOutEasyX),duration:Ft.FlipOutEasyX.duration},FlipOutEasyY:{style:J(Ft.FlipOutEasyY),duration:Ft.FlipOutEasyY.duration}},tl=.3,es={LightSpeedInRight:{name:"LightSpeedInRight",style:{0:{transform:[{translateX:"100vw",skewX:"-45deg"}],opacity:0},70:{transform:[{skewX:"10deg"}]},85:{transform:[{skewX:"-5deg"}]},100:{transform:[{skewX:"0deg"}]}},duration:tl},LightSpeedInLeft:{name:"LightSpeedInLeft",style:{0:{transform:[{translateX:"-100vw",skewX:"45deg"}],opacity:0},70:{transform:[{skewX:"-10deg"}]},85:{transform:[{skewX:"5deg"}]},100:{transform:[{skewX:"0deg"}]}},duration:tl}},ts={LightSpeedOutRight:{name:"LightSpeedOutRight",style:{0:{transform:[{translateX:"0vw",skewX:"0deg"}],opacity:1},100:{transform:[{translateX:"100vw",skewX:"-45deg"}],opacity:0}},duration:tl},LightSpeedOutLeft:{name:"LightSpeedOutLeft",style:{0:{transform:[{translateX:"0vw",skew:"0deg"}],opacity:1},100:{transform:[{translateX:"-100vw",skew:"45deg"}],opacity:0}},duration:tl}},IS={LightSpeedInRight:{style:J(es.LightSpeedInRight),duration:es.LightSpeedInRight.duration},LightSpeedInLeft:{style:J(es.LightSpeedInLeft),duration:es.LightSpeedInLeft.duration}},wS={LightSpeedOutRight:{style:J(ts.LightSpeedOutRight),duration:ts.LightSpeedOutRight.duration},LightSpeedOutLeft:{style:J(ts.LightSpeedOutLeft),duration:ts.LightSpeedOutLeft.duration}},Tp=.3,ns={PinwheelIn:{name:"PinwheelIn",style:{0:{transform:[{rotate:"5rad",scale:0}],opacity:0},100:{transform:[{rotate:"0deg",scale:1}],opacity:1}},duration:Tp},PinwheelOut:{name:"PinwheelOut",style:{0:{transform:[{rotate:"0rad",scale:1}],opacity:1},100:{transform:[{rotate:"5rad",scale:0}],opacity:0}},duration:Tp}},bS={PinwheelIn:{style:J(ns.PinwheelIn),duration:ns.PinwheelIn.duration},PinwheelOut:{style:J(ns.PinwheelOut),duration:ns.PinwheelOut.duration}},nl=.3,rs={RollInLeft:{name:"RollInLeft",style:{0:{transform:[{translateX:"-100vw",rotate:"-180deg"}]},100:{transform:[{translateX:"0vw",rotate:"0deg"}]}},duration:nl},RollInRight:{name:"RollInRight",style:{0:{transform:[{translateX:"100vw",rotate:"180deg"}]},100:{transform:[{translateX:"0vw",rotate:"0deg"}]}},duration:nl}},is={RollOutLeft:{name:"RollOutLeft",style:{0:{transform:[{translateX:"0vw",rotate:"0deg"}]},100:{transform:[{translateX:"-100vw",rotate:"-180deg"}]}},duration:nl},RollOutRight:{name:"RollOutRight",style:{0:{transform:[{translateX:"0vw",rotate:"0deg"}]},100:{transform:[{translateX:"100vw",rotate:"180deg"}]}},duration:nl}},SS={RollInLeft:{style:J(rs.RollInLeft),duration:rs.RollInLeft.duration},RollInRight:{style:J(rs.RollInRight),duration:rs.RollInRight.duration}},_S={RollOutLeft:{style:J(is.RollOutLeft),duration:is.RollOutLeft.duration},RollOutRight:{style:J(is.RollOutRight),duration:is.RollOutRight.duration}},Dr=.3,zn={RotateInDownLeft:{name:"RotateInDownLeft",style:{0:{transform:[{translateX:"-50%",translateY:"-250%",rotate:"-90deg"}],opacity:0},100:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1}},duration:Dr},RotateInDownRight:{name:"RotateInDownRight",style:{0:{transform:[{translateX:"40%",translateY:"-250%",rotate:"90deg"}],opacity:0},100:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1}},duration:Dr},RotateInUpLeft:{name:"RotateInUpLeft",style:{0:{transform:[{translateX:"-40%",translateY:"250%",rotate:"90deg"}],opacity:0},100:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1}},duration:Dr},RotateInUpRight:{name:"RotateInUpRight",style:{0:{transform:[{translateX:"40%",translateY:"250%",rotate:"-90deg"}],opacity:0},100:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1}},duration:Dr}},qn={RotateOutDownLeft:{name:"RotateOutDownLeft",style:{0:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1},100:{transform:[{translateX:"-40%",translateY:"250%",rotate:"90deg"}],opacity:0}},duration:Dr},RotateOutDownRight:{name:"RotateOutDownRight",style:{0:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1},100:{transform:[{translateX:"40%",translateY:"250%",rotate:"-90deg"}],opacity:0}},duration:Dr},RotateOutUpLeft:{name:"RotateOutUpLeft",style:{0:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1},100:{transform:[{translateX:"-40%",translateY:"-250%",rotate:"-90deg"}],opacity:0}},duration:Dr},RotateOutUpRight:{name:"RotateOutUpRight",style:{0:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1},100:{transform:[{translateX:"40%",translateY:"-250%",rotate:"90deg"}],opacity:0}},duration:Dr}},DS={RotateInDownLeft:{style:J(zn.RotateInDownLeft),duration:zn.RotateInDownLeft.duration},RotateInDownRight:{style:J(zn.RotateInDownRight),duration:zn.RotateInDownRight.duration},RotateInUpLeft:{style:J(zn.RotateInUpLeft),duration:zn.RotateInUpLeft.duration},RotateInUpRight:{style:J(zn.RotateInUpRight),duration:zn.RotateInUpRight.duration}},TS={RotateOutDownLeft:{style:J(qn.RotateOutDownLeft),duration:qn.RotateOutDownLeft.duration},RotateOutDownRight:{style:J(qn.RotateOutDownRight),duration:qn.RotateOutDownRight.duration},RotateOutUpLeft:{style:J(qn.RotateOutUpLeft),duration:qn.RotateOutUpLeft.duration},RotateOutUpRight:{style:J(qn.RotateOutUpRight),duration:qn.RotateOutUpRight.duration}},Tr=.3,Kn={SlideInRight:{name:"SlideInRight",style:{0:{transform:[{translateX:"100vw"}]},100:{transform:[{translateX:"0%"}]}},duration:Tr},SlideInLeft:{name:"SlideInLeft",style:{0:{transform:[{translateX:"-100vw"}]},100:{transform:[{translateX:"0%"}]}},duration:Tr},SlideInUp:{name:"SlideInUp",style:{0:{transform:[{translateY:"-100vh"}]},100:{transform:[{translateY:"0%"}]}},duration:Tr},SlideInDown:{name:"SlideInDown",style:{0:{transform:[{translateY:"100vh"}]},100:{transform:[{translateY:"0%"}]}},duration:Tr}},$n={SlideOutRight:{name:"SlideOutRight",style:{0:{transform:[{translateX:"0%"}]},100:{transform:[{translateX:"100vw"}]}},duration:Tr},SlideOutLeft:{name:"SlideOutLeft",style:{0:{transform:[{translateX:"0%"}]},100:{transform:[{translateX:"-100vw"}]}},duration:Tr},SlideOutUp:{name:"SlideOutUp",style:{0:{transform:[{translateY:"0%"}]},100:{transform:[{translateY:"-100vh"}]}},duration:Tr},SlideOutDown:{name:"SlideOutDown",style:{0:{transform:[{translateY:"0%"}]},100:{transform:[{translateY:"100vh"}]}},duration:Tr}},OS={SlideInRight:{style:J(Kn.SlideInRight),duration:Kn.SlideInRight.duration},SlideInLeft:{style:J(Kn.SlideInLeft),duration:Kn.SlideInLeft.duration},SlideInUp:{style:J(Kn.SlideInUp),duration:Kn.SlideInUp.duration},SlideInDown:{style:J(Kn.SlideInDown),duration:Kn.SlideInDown.duration}},kS={SlideOutRight:{style:J($n.SlideOutRight),duration:$n.SlideOutRight.duration},SlideOutLeft:{style:J($n.SlideOutLeft),duration:$n.SlideOutLeft.duration},SlideOutUp:{style:J($n.SlideOutUp),duration:$n.SlideOutUp.duration},SlideOutDown:{style:J($n.SlideOutDown),duration:$n.SlideOutDown.duration}},rl=.3,as={StretchInX:{name:"StretchInX",style:{0:{transform:[{scaleX:0}]},100:{transform:[{scaleX:1}]}},duration:rl},StretchInY:{name:"StretchInY",style:{0:{transform:[{scaleY:0}]},100:{transform:[{scaleY:1}]}},duration:rl}},ss={StretchOutX:{name:"StretchOutX",style:{0:{transform:[{scaleX:1}]},100:{transform:[{scaleX:0}]}},duration:rl},StretchOutY:{name:"StretchOutY",style:{0:{transform:[{scaleY:1}]},100:{transform:[{scaleY:0}]}},duration:rl}},MS={StretchInX:{style:J(as.StretchInX),duration:as.StretchInX.duration},StretchInY:{style:J(as.StretchInY),duration:as.StretchInY.duration}},PS={StretchOutX:{style:J(ss.StretchOutX),duration:ss.StretchOutX.duration},StretchOutY:{style:J(ss.StretchOutY),duration:ss.StretchOutY.duration}},ht=.3,st={ZoomIn:{name:"ZoomIn",style:{0:{transform:[{scale:0}]},100:{transform:[{scale:1}]}},duration:ht},ZoomInRotate:{name:"ZoomInRotate",style:{0:{transform:[{scale:0,rotate:"0.3rad"}]},100:{transform:[{scale:1,rotate:"0deg"}]}},duration:ht},ZoomInRight:{name:"ZoomInRight",style:{0:{transform:[{translateX:"100vw",scale:0}]},100:{transform:[{translateX:"0%",scale:1}]}},duration:ht},ZoomInLeft:{name:"ZoomInLeft",style:{0:{transform:[{translateX:"-100vw",scale:0}]},100:{transform:[{translateX:"0%",scale:1}]}},duration:ht},ZoomInUp:{name:"ZoomInUp",style:{0:{transform:[{translateY:"-100vh",scale:0}]},100:{transform:[{translateY:"0%",scale:1}]}},duration:ht},ZoomInDown:{name:"ZoomInDown",style:{0:{transform:[{translateY:"100vh",scale:0}]},100:{transform:[{translateY:"0%",scale:1}]}},duration:ht},ZoomInEasyUp:{name:"ZoomInEasyUp",style:{0:{transform:[{translateY:"-100%",scale:0}]},100:{transform:[{translateY:"0%",scale:1}]}},duration:ht},ZoomInEasyDown:{name:"ZoomInEasyDown",style:{0:{transform:[{translateY:"100%",scale:0}]},100:{transform:[{translateY:"0%",scale:1}]}},duration:ht}},ot={ZoomOut:{name:"ZoomOut",style:{0:{transform:[{scale:1}]},100:{transform:[{scale:0}]}},duration:ht},ZoomOutRotate:{name:"ZoomOutRotate",style:{0:{transform:[{scale:1,rotate:"0rad"}]},100:{transform:[{scale:0,rotate:"0.3rad"}]}},duration:ht},ZoomOutRight:{name:"ZoomOutRight",style:{0:{transform:[{translateX:"0vw",scale:1}]},100:{transform:[{translateX:"100vw",scale:0}]}},duration:ht},ZoomOutLeft:{name:"ZoomOutLeft",style:{0:{transform:[{translateX:"0vw",scale:1}]},100:{transform:[{translateX:"-100vw",scale:0}]}},duration:ht},ZoomOutUp:{name:"ZoomOutUp",style:{0:{transform:[{translateX:"0vh",scale:1}]},100:{transform:[{translateY:"-100vh",scale:0}]}},duration:ht},ZoomOutDown:{name:"ZoomOutDown",style:{0:{transform:[{translateX:"0vh",scale:1}]},100:{transform:[{translateY:"100vh",scale:0}]}},duration:ht},ZoomOutEasyUp:{name:"ZoomOutEasyUp",style:{0:{transform:[{translateY:"0%",scale:1}]},100:{transform:[{translateY:"-100%",scale:0}]}},duration:ht},ZoomOutEasyDown:{name:"ZoomOutEasyDown",style:{0:{transform:[{translateY:"0%",scale:1}]},100:{transform:[{translateY:"100%",scale:0}]}},duration:ht}},FS={ZoomIn:{style:J(st.ZoomIn),duration:st.ZoomIn.duration},ZoomInRotate:{style:J(st.ZoomInRotate),duration:st.ZoomInRotate.duration},ZoomInRight:{style:J(st.ZoomInRight),duration:st.ZoomInRight.duration},ZoomInLeft:{style:J(st.ZoomInLeft),duration:st.ZoomInLeft.duration},ZoomInUp:{style:J(st.ZoomInUp),duration:st.ZoomInUp.duration},ZoomInDown:{style:J(st.ZoomInDown),duration:st.ZoomInDown.duration},ZoomInEasyUp:{style:J(st.ZoomInEasyUp),duration:st.ZoomInEasyUp.duration},ZoomInEasyDown:{style:J(st.ZoomInEasyDown),duration:st.ZoomInEasyDown.duration}},RS={ZoomOut:{style:J(ot.ZoomOut),duration:ot.ZoomOut.duration},ZoomOutRotate:{style:J(ot.ZoomOutRotate),duration:ot.ZoomOutRotate.duration},ZoomOutRight:{style:J(ot.ZoomOutRight),duration:ot.ZoomOutRight.duration},ZoomOutLeft:{style:J(ot.ZoomOutLeft),duration:ot.ZoomOutLeft.duration},ZoomOutUp:{style:J(ot.ZoomOutUp),duration:ot.ZoomOutUp.duration},ZoomOutDown:{style:J(ot.ZoomOutDown),duration:ot.ZoomOutDown.duration},ZoomOutEasyUp:{style:J(ot.ZoomOutEasyUp),duration:ot.ZoomOutEasyUp.duration},ZoomOutEasyDown:{style:J(ot.ZoomOutEasyDown),duration:ot.ZoomOutEasyDown.duration}};let wt=function(t){return t[t.LINEAR=0]="LINEAR",t[t.SEQUENCED=1]="SEQUENCED",t[t.FADING=2]="FADING",t[t.JUMPING=3]="JUMPING",t[t.CURVED=4]="CURVED",t[t.ENTRY_EXIT=5]="ENTRY_EXIT",t}({});const il={...en,...tn,...Zt,...Jt,...Pt,...Ft,...as,...ss,...st,...ot,...Kn,...$n,...es,...ts,...ns,...zn,...qn,...rs,...is},Br={...CS,...ES,...vS,...mS,...xS,...yS,...MS,...PS,...FS,...RS,...OS,...kS,...IS,...wS,...bS,...DS,...TS,...SS,..._S};function NS(t,e){const{translateX:n,translateY:r,scaleX:i,scaleY:a}=e;return{name:t,style:{0:{transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${a}`}]}},duration:300}}function BS(t,e){const{translateX:n,translateY:r,scaleX:i,scaleY:a,reversed:s}=e,o=s?`1,${i}`:`${a},1`;return{name:t,style:{0:{transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${a}`}]},50:{transform:[{translateX:s?`${n}px`:"0px",translateY:s?"0px":`${r}px`,scale:o}]},100:{transform:[{translateX:"0px",translateY:"0px",scale:"1,1"}]}},duration:300}}function GS(t,e){const{translateX:n,translateY:r,scaleX:i,scaleY:a}=e;return{name:t,style:{0:{opacity:1,transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${a}`}]},20:{opacity:0,transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${a}`}]},60:{opacity:0,transform:[{translateX:"0px",translateY:"0px",scale:"1,1"}]},100:{opacity:1,transform:[{translateX:"0px",translateY:"0px",scale:"1,1"}]}},duration:300}}function LS(t,e){const{translateX:n,translateY:r,scaleX:i,scaleY:a}=e,s=Math.max(Math.abs(n),Math.abs(r))/2,o=r<=0?r-s:-r+s;return{name:t,style:{0:{transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${a}`}],easing:Je.exp},50:{transform:[{translateX:`${n/2}px`,translateY:`${o}px`,scale:`${i},${a}`}]},100:{transform:[{translateX:"0px",translateY:"0px",scale:"1,1"}]}},duration:300}}const ws=new WeakMap;function VS(t,e){$c({visibility:"initial"},t)}function HS(t,e,n){const r=e.getBoundingClientRect(),i=parseInt(getComputedStyle(e).borderTopWidth),a=parseInt(getComputedStyle(e).borderLeftWidth),s=t.getBoundingClientRect();s.top!==n.top&&(t.style.top=`${n.top-r.top-i}px`),s.left!==n.left&&(t.style.left=`${n.left-r.left-a}px`)}function sh(t,e){t.style.transform="",t.style.position="absolute",t.style.top=`${e.top}px`,t.style.left=`${e.left}px`,t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.margin="0px",t.parentElement&&HS(t,t.parentElement,e)}const Op="ReanimatedPredefinedWebAnimationsStyle",oh="ReanimatedCustomWebAnimationsStyle",ri=new Map,Or=[];let kp=!1;function US(){if(!Ia()||document.getElementById(Op)!==null)return;const t=document.createElement("style");t.id=Op,t.onload=()=>{if(!t.sheet){Oe.error("Failed to create layout animations stylesheet.");return}for(const n in Br)t.sheet.insertRule(Br[n].style)};const e=document.createElement("style");e.id=oh,document.head.appendChild(t),document.head.appendChild(e)}function al(t,e){if(!Ia())return;const n=document.getElementById(oh);if(!n.sheet){Oe.error("Failed to create layout animations stylesheet.");return}n.sheet.insertRule(e,0),Or.unshift(t),ri.set(t,0);for(let r=1;r<Or.length;++r){const i=Or[r],a=ri.get(i);if(a===void 0)throw new oe("Failed to obtain animation index.");ri.set(Or[r],a+1)}}function WS(t,e){var i;if(!Ia())return;const n=document.getElementById(oh),r=ri.get(t);if(r===void 0)throw new oe("Failed to obtain animation index.");e(),(i=n.sheet)==null||i.deleteRule(r),Or.splice(r,1),ri.delete(t);for(let a=r;a<Or.length;++a){const s=Or[a],o=ri.get(s);if(o===void 0)throw new oe("Failed to obtain animation index.");ri.set(Or[a],o-1)}}const XS=1.25,YS=16,zS=10;function qS(t,e,n){const r=Math.max(e*XS*1e3,e+YS*zS);setTimeout(()=>WS(t,n),r)}function KS(t,e){const n=ws.get(t);if(!n){Oe.error("Failed to obtain snapshot.");return}t.removedAfterAnimation=!0,e.appendChild(t),sh(t,n);const r=t.onanimationend;t.onanimationend=function(i){e.removeChild(t),r==null||r.call(this,i)}}function XC(t,e){if(!(t instanceof HTMLElement))return;t.reanimatedDummy&&t.removedAfterAnimation===void 0&&KS(t,e);const n=Array.from(t.children);for(let r=0;r<n.length;++r)XC(n[r],e)}function $S(t){var n,r,i;let e="__reactFiber";for(const a of Object.keys(t))if(a.startsWith("__reactFiber")){e=a;break}return((i=(r=(n=t[e])==null?void 0:n.child)==null?void 0:r.memoizedProps)==null?void 0:i.navigation)!==void 0}function jS(){if(kp||!Ia())return;kp=!0,new MutationObserver(e=>{const n=e[e.length-1];if(!$S(n.target))for(let r=0;r<n.removedNodes.length;++r)XC(n.removedNodes[r],n.target)}).observe(document.body,{childList:!0,subtree:!0})}function QS(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function ZS(t){t.style.animationName="",t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.margin="0px",t.style.width="100%",t.style.height="100%"}function Mp(t,e,n){for(let r=0;r<t.children.length;++r){const i=t.children[r];n?i.style.display=e.get(i):(e.set(i,i.style.display),i.style.display="none")}}function JS(t,e,n,r){n.easing=ps(r.easingX);const i=new Map;Mp(t,i,!1);const a=t.style.backgroundColor;t.style.backgroundColor="transparent";const s=()=>{t.contains(e)&&t.removeChild(e),Mp(t,i,!0),t.style.backgroundColor=a},o=()=>{s(),t.removeEventListener("animationcancel",o)},l=()=>{s(),t.removeEventListener("animationend",l)};t.addEventListener("animationend",l),t.addEventListener("animationcancel",o),t.appendChild(e)}function e_(t,e,n,r){const i={animationName:r,animationType:et.LAYOUT,duration:e.duration,delay:e.delay,easing:ps(n.easingY),callback:null,reversed:!1},a=t.cloneNode(!0);return ZS(a),{dummy:a,dummyAnimationConfig:i}}function t_(t,e,n,r){const{dummy:i,dummyAnimationConfig:a}=e_(t,e,n,r);return JS(t,i,e,n),{dummy:i,dummyAnimationConfig:a}}function n_(t,e,n){const r={name:t,style:{0:{transform:[{translateX:`${n.translateX}px`,scale:`${n.scaleX},${n.scaleY}`}]}},duration:300},i={name:e,style:{0:{transform:[{translateY:`${n.translateY}px`,scale:`${n.scaleX},${n.scaleY}`}]}},duration:300};return{firstKeyframeObj:r,secondKeyframeObj:i}}const r_=49,i_=50;function Pp(t,e,n,r){for(const[i,a]of Object.entries(e)){a.transform!==void 0?a.transform.unshift(n):a.transform=[n];const s=parseInt(i)/2,o=r?Math.min(s,r_):s+i_;t[`${o}`]=a}}function a_(t){const e=new Map;t[0].opacity===void 0&&(e.set(48,1),e.set(49,0)),t[50].opacity===void 0&&(e.set(50,0),e.set(51,1));for(const[n,r]of e)t[n]={...t[n],opacity:r}}function s_(t,e){const n=structuredClone(il[e.exiting]),r=structuredClone(il[e.entering]),i={translateX:`${e.translateX}px`,translateY:`${e.translateY}px`,scale:`${e.scaleX},${e.scaleY}`},a={translateX:"0px",translateY:"0px",scale:"1,1"},s={name:t,style:{},duration:300};return Pp(s.style,n.style,i,!0),Pp(s.style,r.style,a,!1),a_(s.style),s}function YC(t){return t.map(n=>{const r={};for(const[i,a]of Object.entries(n))(i.includes("translate")||i.includes("perspective"))&&typeof a=="number"?r[i]=`${a}px`:r[i]=a;return r})}function o_(t){for(const r of Object.values(t))r.transform&&(r.transform=YC(r.transform));const e={name:"",style:t,duration:-1};e.name=sl();const n=J(e);return al(e.name,n),e.name}function l_(t,e){const n=structuredClone(il[t].style),r=n[0],{transform:i,...a}=e,s=YC(i);if(i)if(!r.transform)r.transform=s;else{const u=new Map;for(const A of r.transform)for(const[d,f]of Object.entries(A))u.set(d,f);for(const A of s)for(const[d,f]of Object.entries(A))u.set(d,f);r.transform=Array.from(u,([A,d])=>({[A]:d}))}n[0]={...n[0],...a};const o=sl(),l={name:o,style:n,duration:il[t].duration},c=J(l);return al(o,c),o}let c_=0;function sl(){return`REA${c_++}`}function u_(t,e){const n=sl();let r,i;switch(t){case wt.LINEAR:i=NS(n,e);break;case wt.SEQUENCED:i=BS(n,e);break;case wt.FADING:i=GS(n,e);break;case wt.JUMPING:i=LS(n,e);break;case wt.CURVED:{r=sl();const{firstKeyframeObj:s,secondKeyframeObj:o}=n_(n,r,e);i=s;const l=J(o);al(r,l);break}case wt.ENTRY_EXIT:i=s_(n,e);break}const a=J(i);return al(n,a),{transitionKeyframeName:n,dummyTransitionKeyframeName:r}}function d_(t){if(!t.easingV)return ps("linear");const e=t.easingV[Qo];return e in hs?ps(e):(Oe.warn("Selected easing is not currently supported on web."),ps("linear"))}function Fp(t=1e3){return Math.floor(Math.random()*(t+1))/1e3}function A_(t){const e=t.randomizeDelay,n=e?Fp():0;return t.delayV?e?Fp(t.delayV):t.delayV/1e3:n}function ao(t){if(!t.reduceMotionV)return yn.jsValue;switch(t.reduceMotionV){case on.Never:return!1;case on.Always:return!0;default:return yn.jsValue}}function f_(t,e){const n=e in Br?Br[e].duration:.3;return t.durationV!==void 0?t.durationV/1e3:n}function h_(t){return t.callbackV!==void 0?t.callbackV:null}function p_(t){return!!t.reversed}function g_(t,e,n){return{animationName:t,animationType:e,duration:f_(n,t),delay:A_(n),easing:d_(n),callback:h_(n),reversed:p_(n)}}function v_(t,e){if(e instanceof eh){t.style.animationFillMode="forwards";for(const n of Object.values(e.definitions))if("originX"in n||"originY"in n){t.style.position="absolute";return}}}function vA(t){const e=t.getBoundingClientRect(),n={top:e.top,left:e.left,width:e.width,height:e.height,scrollOffsets:zC(t)};ws.set(t,n)}function ol(t,e,n=!1,r=null){const{animationName:i,duration:a,delay:s,easing:o}=e,l=()=>{t.style.animationName=i,t.style.animationDuration=`${a}s`,t.style.animationDelay=`${s}s`,t.style.animationTimingFunction=o};e.animationType===et.ENTERING?requestAnimationFrame(l):l(),t.onanimationend=()=>{var u;n&&vA(t),r!=null&&r.contains(t)&&(t.removedAfterAnimation=!0,r.removeChild(t)),(u=e.callback)==null||u.call(e,!0),t.removeEventListener("animationcancel",c)};const c=()=>{var u;(u=e.callback)==null||u.call(e,!1),r!=null&&r.contains(t)&&(t.removedAfterAnimation=!0,r.removeChild(t)),t.removeEventListener("animationcancel",c)};t.onanimationstart=()=>{e.animationType===et.ENTERING&&$c({visibility:"initial"},t),t.addEventListener("animationcancel",c)},i in Br||qS(i,a+s,()=>{n&&sh(t,ws.get(t))})}function m_(t,e,n){const{animationName:r}=e;let i;switch(r){case"LinearTransition":i=wt.LINEAR;break;case"SequencedTransition":i=wt.SEQUENCED;break;case"FadingTransition":i=wt.FADING;break;case"JumpingTransition":i=wt.JUMPING;break;case"CurvedTransition":i=wt.CURVED;break;case"EntryExitTransition":i=wt.ENTRY_EXIT;break;default:i=wt.LINEAR;break}const{transitionKeyframeName:a,dummyTransitionKeyframeName:s}=u_(i,n);if(e.animationName=a,i===wt.CURVED){const{dummy:o,dummyAnimationConfig:l}=t_(t,e,n,s);ol(o,l)}ol(t,e)}function zC(t){let e=t;const n={scrollTopOffset:0,scrollLeftOffset:0};for(;e;)e.scrollTop!==0&&n.scrollTopOffset===0&&(n.scrollTopOffset=e.scrollTop),e.scrollLeft!==0&&n.scrollLeftOffset===0&&(n.scrollLeftOffset=e.scrollLeft),e=e.parentElement;return n}function C_(t,e){const n=t.offsetParent,r=t.cloneNode();for(r.reanimatedDummy=!0,t.style.animationName="",r.style.animationName="";t.firstChild;)r.appendChild(t.firstChild);n==null||n.appendChild(r);const i=ws.get(t),a=zC(t),s=a.scrollTopOffset,o=i.scrollOffsets.scrollTopOffset;s!==o&&(i.top+=o-s);const l=a.scrollLeftOffset,c=i.scrollOffsets.scrollLeftOffset;l!==c&&(i.left+=c-l),ws.set(r,i),sh(r,i),ol(r,e,!1,n)}function E_(t,e){return t===et.ENTERING?e.entering:t===et.EXITING?e.exiting:t===et.LAYOUT?e.layout:null}function x_(t,e){return t in Br||e?!1:(Oe.warn("Couldn't load entering/exiting animation. Current version supports only predefined animations with modifiers: duration, delay, easing, randomizeDelay, withCallback, reducedMotion."),!0)}function y_(t,e){const n=/([a-zA-Z-]+)(?=:)/g,r=new Set;for(const a of t.matchAll(n))r.add(a[1]);const i=Array.from(e).filter(a=>r.has(a));i.length!==0&&Oe.warn(`${i.length===1?"Property":"Properties"} [${i.join(", ")}] may be overwritten by a layout animation. Please wrap your component with an animated view and apply the layout animation on the wrapper.`)}function I_(t,e,n,r){switch(t){case et.ENTERING:ol(n,e,!0);break;case et.LAYOUT:r.reversed=e.reversed,m_(n,e,r);break;case et.EXITING:C_(n,e);break}}function w_(t,e){const n=E_(e,t);if(!n)return null;const r=e===et.LAYOUT,i=n instanceof eh,a=n.initialValues!==void 0;let s;if(i?s=o_(n.definitions):typeof n=="function"?s=n.presetName:s=n.constructor.presetName,a&&(s=l_(s,n.initialValues)),x_(s,r||i||a))return null;if(i){const c=Object.keys(n.definitions);c.includes("100")||c.includes("to")||Oe.warn("Neither '100' nor 'to' was specified in Keyframe definition. This may result in wrong final position of your component. One possible solution is to duplicate last timestamp in definition as '100' (or 'to')")}return g_(s,e,n)}function mA(t,e,n,r){const i=w_(t,n);v_(e,t.entering),(i==null?void 0:i.animationName)in Br&&y_(Br[i==null?void 0:i.animationName].style,e.style),i?I_(n,i,e,r):VS(e)}function b_(t,e,n){var o,l,c,u;if(!t.layout)return;const r=e.getBoundingClientRect();if(QS(r,n))return;const i=(o=t.layout.enteringV)==null?void 0:o.presetName,a=(l=t.layout.exitingV)==null?void 0:l.presetName,s={translateX:n.x-r.x,translateY:n.y-r.y,scaleX:n.width/r.width,scaleY:n.height/r.height,reversed:!1,easingX:((c=t.layout.easingXV)==null?void 0:c[Qo])??"ease",easingY:((u=t.layout.easingYV)==null?void 0:u[Qo])??"ease",entering:i,exiting:a};mA(t,e,et.LAYOUT,s)}function S_(){const t=[],e=[];return{update(n,r){r?e.push(n):t.push(n),t.length+e.length===1&&(Ct()?this.flush():setImmediate(this.flush))},flush(){Dw(t.concat(e)),t.length=0,e.length=0}}}let ei;if(nt())ei=()=>{};else{const t=S_();ei=(e,n,r,i,a)=>t.update({viewTag:e,type:n,config:r?Ue(r):void 0,sharedTransitionTag:i},a)}let CA=t=>t._nativeTag!==void 0&&t.__nativeTag!==null?(CA=xu,xu(t)):t.__nativeTag!==void 0&&t.__nativeTag!==null?(CA=Rp,Rp(t)):xu(t);function xu(t){var e;return{viewName:(e=t==null?void 0:t.viewConfig)==null?void 0:e.uiViewClassName,viewTag:t==null?void 0:t._nativeTag,viewConfig:t==null?void 0:t.viewConfig}}function Rp(t){var e;return{viewName:(e=t==null?void 0:t._viewConfig)==null?void 0:e.uiViewClassName,viewTag:t==null?void 0:t.__nativeTag,viewConfig:t==null?void 0:t._viewConfig}}var Cn,Bs,Nt;class __{constructor(e,n){Hi(this,Cn);Hi(this,Bs);Hi(this,Nt,-1);qr(this,Cn,e),qr(this,Bs,n),qr(this,Nt,this.getEventViewTag())}attachEvents(){Pa(ke(this,Cn).props,(e,n)=>{n.registerForEvents(ke(this,Nt),e)})}detachEvents(){Pa(ke(this,Cn).props,(e,n)=>{n.unregisterFromEvents(ke(this,Nt))})}updateEvents(e){const n=this.getEventViewTag();if(ke(this,Nt)!==n){Pa(e,(r,i)=>{i.unregisterFromEvents(ke(this,Nt))}),qr(this,Nt,n),this.attachEvents();return}Pa(e,(r,i)=>{const a=ke(this,Cn).props[r];a?qC(a)&&a.workletEventHandler!==i&&(i.unregisterFromEvents(ke(this,Nt)),a.workletEventHandler.registerForEvents(ke(this,Nt))):i.unregisterFromEvents(ke(this,Nt))}),Pa(ke(this,Cn).props,(r,i)=>{e[r]||i.registerForEvents(ke(this,Nt))})}getEventViewTag(){var r;const e=ke(this,Cn)._component;let n;if(e.getScrollableNode){const i=e.getScrollableNode();n=i??-1}else n=((r=ke(this,Bs))!=null&&r.setNativeProps?ke(this,Cn):e)??-1;return n}}Cn=new WeakMap,Bs=new WeakMap,Nt=new WeakMap;function qC(t){return gA("workletEventHandler",t)&&t.workletEventHandler instanceof tu}function Pa(t,e){for(const n in t){const r=t[n];qC(r)&&e(n,r.workletEventHandler)}}const Wt=sn(),so=Kt(),Np=nt();Wt&&US();function D_(t){return t.filter(e=>e==null?void 0:e.viewDescriptors)}let T_=0;function Fi(t,e){Zo(typeof t!="function"||t.prototype&&t.prototype.isReactComponent,`Looks like you're passing a function component \`${t.name}\` to \`createAnimatedComponent\` function which supports only class components. Please wrap your function component with \`React.forwardRef()\` or use a class component instead.`);const r=class r extends _t.Component{constructor(s){var l;super(s);F(this,"_styles",null);F(this,"_componentViewTag",-1);F(this,"_isFirstRender",!0);F(this,"jestAnimatedStyle",{value:{}});F(this,"_component",null);F(this,"_sharedElementTransition",null);F(this,"_jsPropsUpdater",new aS);F(this,"_InlinePropManager",new dS);F(this,"_PropsFilter",new gS);F(this,"reanimatedID",T_++);F(this,"_setComponentRef",sS({getForwardedRef:()=>this.props.forwardedRef,setLocalRef:s=>{var d,f,p;const o=s;o!==null&&(this._componentViewTag=o);const{layout:l,entering:c,exiting:u,sharedTransitionTag:A}=this.props;if((l||c||u||A)&&o!=null){Np||IC(!0,!1),A&&this._configureSharedTransition(),u&&Ct()&&(("getReduceMotion"in u&&typeof u.getReduceMotion=="function"?tr(u.getReduceMotion()):tr())||ei(o,et.EXITING,Ma(u,(d=this.props)==null?void 0:d.style,r.displayName)));const h=(f=this.context)==null?void 0:f.current;c&&!h&&!Wt&&ei(o,et.ENTERING,Ma(c,(p=this.props)==null?void 0:p.style,r.displayName))}s!==this._component&&(this._component=s)}}));so&&(this.jestAnimatedStyle={value:{}});const o=this.props.entering;o&&Ct()&&ei(this.reanimatedID,et.ENTERING,Ma(o,(l=this.props)==null?void 0:l.style,r.displayName))}componentDidMount(){var o,l;if(this._componentViewTag=this._getComponentViewTag(),Wt||(this._NativeEventsManager=new __(this,e)),(o=this._NativeEventsManager)==null||o.attachEvents(),this._jsPropsUpdater.addOnJSPropsChangeListener(this),this._attachAnimatedStyles(),this._InlinePropManager.attachInlineProps(this,this._getViewInfo()),this.props.layout&&this._configureLayoutTransition(),Wt){if(this.props.exiting&&vA(this._component),!this.props.entering||ao(this.props.entering)){this._isFirstRender=!1;return}((l=this.context)==null?void 0:l.current)?this._component.style.visibility="initial":mA(this.props,this._component,et.ENTERING)}this._isFirstRender=!1}componentWillUnmount(){var o,l,c;(o=this._NativeEventsManager)==null||o.detachEvents(),this._jsPropsUpdater.removeOnJSPropsChangeListener(this),this._detachStyles(),this._InlinePropManager.detachInlineProps(),this.props.sharedTransitionTag&&this._configureSharedTransition(!0),(l=this._sharedElementTransition)==null||l.unregisterTransition(this._componentViewTag,!0);const s=this.props.exiting;Wt&&this._component&&s&&!ao(s)?(jS(),mA(this.props,this._component,et.EXITING)):s&&!Wt&&!Ct()&&(("getReduceMotion"in s&&typeof s.getReduceMotion=="function"?tr(s.getReduceMotion()):tr())||ei(this._componentViewTag,et.EXITING,Ma(s,(c=this.props)==null?void 0:c.style,r.displayName)))}_getComponentViewTag(){return this._getViewInfo().viewTag}_detachStyles(){var s;if(this._componentViewTag!==-1&&this._styles!==null){for(const o of this._styles)o.viewDescriptors.remove(this._componentViewTag);(s=this.props.animatedProps)!=null&&s.viewDescriptors&&this.props.animatedProps.viewDescriptors.remove(this._componentViewTag),Ct()&&tS(this._componentViewTag)}}_updateFromNative(s){var o,l;e!=null&&e.setNativeProps?e.setNativeProps(this._component,s):(l=(o=this._component)==null?void 0:o.setNativeProps)==null||l.call(o,s)}_getViewInfo(){var A,d,f;if(this._viewInfo!==void 0)return this._viewInfo;let s,o,l=null,c;const u=(A=this._component)!=null&&A.getAnimatableRef?(f=(d=this._component).getAnimatableRef)==null?void 0:f.call(d):this;if(Np)s=this._component,o=null,l=null,c=null;else{const p=Xb.findHostInstance_DEPRECATED(u);if(!p)throw new oe("Cannot find host instance for this component. Maybe it renders nothing?");const h=CA(p);s=h.viewTag,o=h.viewName,c=h.viewConfig,l=Ct()?VC():null}return this._viewInfo={viewTag:s,viewName:o,shadowNodeWrapper:l,viewConfig:c},this._viewInfo}_attachAnimatedStyles(){var p,h;const s=this.props.style?D_(ih(this.props.style)):[],o=this._styles;this._styles=s;const l=this._animatedProps;this._animatedProps=this.props.animatedProps;const{viewTag:c,viewName:u,shadowNodeWrapper:A,viewConfig:d}=this._getViewInfo();if((((p=this.props.animatedProps)==null?void 0:p.viewDescriptors)||s.length)&&d&&BC(d),this._componentViewTag=c,o&&!(s.length===1&&o.length===1&&s[0]===o[0]))for(const E of o)s.some(v=>v===E)||E.viewDescriptors.remove(c);s.forEach(g=>{g.viewDescriptors.add({tag:c,name:u,shadowNodeWrapper:A}),so&&(this.jestAnimatedStyle.value={...this.jestAnimatedStyle.value,...g.initial.value},g.jestAnimatedStyle.current=this.jestAnimatedStyle)}),l&&l!==this.props.animatedProps&&l.viewDescriptors.remove(c),(h=this.props.animatedProps)!=null&&h.viewDescriptors&&this.props.animatedProps.viewDescriptors.add({tag:c,name:u,shadowNodeWrapper:A})}componentDidUpdate(s,o,l){var A;const c=this.props.layout,u=s.layout;c!==u&&this._configureLayoutTransition(),(this.props.sharedTransitionTag!==void 0||s.sharedTransitionTag!==void 0)&&this._configureSharedTransition(),(A=this._NativeEventsManager)==null||A.updateEvents(s),this._attachAnimatedStyles(),this._InlinePropManager.attachInlineProps(this,this._getViewInfo()),Wt&&this.props.exiting&&vA(this._component),Wt&&l!==null&&this.props.layout&&!ao(this.props.layout)&&b_(this.props,this._component,l)}_configureLayoutTransition(){if(Wt)return;const s=this.props.layout?Ma(this.props.layout,void 0,r.displayName):void 0;ei(this._componentViewTag,et.LAYOUT,s)}_configureSharedTransition(s=!1){var c;if(Wt)return;const{sharedTransitionTag:o}=this.props;if(!o){(c=this._sharedElementTransition)==null||c.unregisterTransition(this._componentViewTag,s),this._sharedElementTransition=null;return}const l=this.props.sharedTransitionStyle??this._sharedElementTransition??new Sr;l.registerTransition(this._componentViewTag,o,s),this._sharedElementTransition=l}getSnapshotBeforeUpdate(){var s;return Wt&&((s=this._component)==null?void 0:s.getBoundingClientRect)!==void 0?this._component.getBoundingClientRect():null}render(){var A;const s=this._PropsFilter.filterNonAnimatedProps(this);so&&(s.jestAnimatedStyle=this.jestAnimatedStyle),this._isFirstRender&&Wt&&s.entering&&!ao(s.entering)&&(s.style={...s.style??{},visibility:"hidden"});const o=ue.select({web:{},default:{collapsable:!1}}),c=((A=this.context)==null?void 0:A.current)||!Ct()?void 0:`${this.reanimatedID}`,u=so?{jestInlineStyle:this.props.style,jestAnimatedStyle:this.jestAnimatedStyle}:{};return k.jsx(t,{nativeID:c,...s,...u,ref:this._setComponentRef,...o})}};F(r,"contextType",HC);let n=r;return n.displayName=`AnimatedComponent(${t.displayName||t.name||"Component"})`,_t.forwardRef((i,a)=>k.jsx(n,{...i,...a===null?null:{forwardedRef:a}}))}const O_=Fi(c1),KC=Fi(pe);function ct(t){const[e]=_.useState(()=>Pn(t));return _.useEffect(()=>()=>{DC(e)},[e]),e}function $C(t){return Object.values(t).reduce((e,n)=>e+n.__workletHash.toString(),"")}function k_(t,e){const n=Object.values(e).filter(r=>r!==void 0);return t?t.push($C(n)):t=n.map(r=>({workletHash:r.__workletHash,closure:r.__closure})),t}function M_(t,e){function n(a,s){return a===s&&(a!==0||1/a===1/s)||Number.isNaN(a)&&Number.isNaN(s)}const r=typeof Object.is=="function"?Object.is:n;function i(a,s){if(!a||!s||s.length!==a.length)return!1;for(let o=0;o<s.length;++o)if(!r(a[o],s[o]))return!1;return!0}return i(t,e)}function bs(t){"worklet";return Array.isArray(t)?t.some(bs):typeof t=="object"&&t!==null?t.onFrame!==void 0?!0:Object.values(t).some(bs):!1}function jC(t,e){"worklet";const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(t[n[i]]!==e[n[i]])return!1;return!0}const P_=nt();function ll(t,e,n,r){"worklet";if(Array.isArray(e)&&e.forEach((i,a)=>{ll(t,i,n&&n[a],r&&r[a])}),typeof e=="object"&&e.onFrame){const i=e;let a=i.current;r!=null&&(typeof r=="object"?r.value!==void 0?a=r.value:r.onFrame!==void 0&&((n==null?void 0:n.current)!==void 0?a=n.current:(r==null?void 0:r.current)!==void 0&&(a=r.current)):a=r),i.callStart=s=>{i.onStart(i,a,s,n)},i.callStart(t),i.callStart=null}else typeof e=="object"&&Object.keys(e).forEach(i=>ll(t,e[i],n&&n[i],r&&r[i]))}function cl(t,e,n,r,i){"worklet";if(!i.value)return!0;if(Array.isArray(t)){r[n]=[];let a=!0;return t.forEach((s,o)=>{cl(s,e,o,r[n],i)||(a=!1)}),a}else if(typeof t=="object"&&t.onFrame){let a=!0;return t.finished||(t.callStart&&(t.callStart(e),t.callStart=null),a=t.onFrame(t,e),t.timestamp=e,a&&(t.finished=!0,t.callback&&t.callback(!0))),r[n]=t.current,a}else if(typeof t=="object"){r[n]={};let a=!0;return Object.keys(t).forEach(s=>{cl(t[s],e,s,r[n],i)||(a=!1)}),a}else return r[n]=t,!0}function F_(t,e,n,r,i=!1){"worklet";const a=n.animations??{},s=e()??{},o=n.last,l={};let c=!1,u,A=!1;for(const d in s){const f=s[d];bs(f)?(u=global.__frameTimestamp||global._getAnimationTimestamp(),ll(u,f,a[d],o[d]),a[d]=f,c=!0):(A=!0,l[d]=f,delete a[d])}if(c){const d=f=>{const{animations:p,last:h,isAnimationCancelled:g}=n;if(g){n.isAnimationRunning=!1;return}const E={};let m=!0;for(const v in p)cl(p[v],f,v,E,r)?(h[v]=E[v],delete p[v]):m=!1;E&&sr(t,E),m?n.isAnimationRunning=!1:requestAnimationFrame(d)};n.animations=a,n.isAnimationRunning||(n.isAnimationCancelled=!1,n.isAnimationRunning=!0,d(u)),A&&sr(t,l)}else n.isAnimationCancelled=!0,n.animations=[],jC(o,s)||sr(t,s,i);n.last=s}function R_(t,e,n,r,i,a){"worklet";const s=n.animations??{},o=e()??{},l=n.last;let c=!1,u;Object.keys(s).forEach(d=>{const f=o[d];bs(f)||delete s[d]}),Object.keys(o).forEach(d=>{const f=o[d];bs(f)&&(u=global.__frameTimestamp||global._getAnimationTimestamp(),ll(u,f,s[d],l[d]),s[d]=f,c=!0)});function A(d){const{animations:f,last:p,isAnimationCancelled:h}=n;if(h){n.isAnimationRunning=!1;return}const g={};let E=!0;Object.keys(f).forEach(m=>{cl(f[m],d,m,g,r)?(p[m]=g[m],delete f[m]):E=!1}),Object.keys(g).length&&_p(t,g,i,a),E?n.isAnimationRunning=!1:requestAnimationFrame(A)}c?(n.animations=s,n.isAnimationRunning||(n.isAnimationCancelled=!1,n.isAnimationRunning=!0,A(u))):(n.isAnimationCancelled=!0,n.animations=[]),n.last=o,jC(l,o)||_p(t,o,i,a)}function EA(t,e){if(Array.isArray(t))for(const n of t)EA(n,e);else if(typeof t=="object"&&t!==null&&t.value===void 0)for(const n of Object.keys(t))EA(t[n],n);else if(e!==void 0&&typeof t=="object"&&t!==null&&t.value!==void 0)throw new oe(`Invalid value passed to \`${e}\`, maybe you forgot to use \`.value\`?`)}function Fn(t,e,n,r=!1){const i=_.useRef();let a=Object.values(t.__closure??{});P_&&!a.length&&e!=null&&e.length&&(a=e);const s=n?Array.isArray(n)?n:[n]:[],o=n?$C(s):null,l=ct(!0),c=_.useRef({});if(e?e.push(t.__workletHash):e=[...a,t.__workletHash],o&&e.push(o),!i.current){const h=jf(t);i.current={initial:{value:h,updater:t},remoteState:jc({last:h,animations:{},isAnimationCancelled:!1,isAnimationRunning:!1}),viewDescriptors:UC()}}const{initial:u,remoteState:A,viewDescriptors:d}=i.current,f=d.shareableViewDescriptors;e.push(f),_.useEffect(()=>{let h,g=t;n&&(g=()=>{"worklet";const m=t();return s.forEach(v=>{v(m)}),m}),Kt()?h=()=>{"worklet";R_(f,t,A,l,c,s)}:h=()=>{"worklet";F_(f,g,A,l,r)};const E=Hs(h,a);return()=>{da(E)}},e),_.useEffect(()=>(l.value=!0,()=>{l.value=!1}),[l]),EA(u.value);const p=_.useRef(null);return p.current||(p.current=Kt()?{viewDescriptors:d,initial:u,jestAnimatedStyle:c}:{viewDescriptors:d,initial:u}),p.current}function N_(t,e,n){return Fn(t,e,n,!0)}const B_=Fn,lh=nt()?N_:B_;function G_(t,e){return _.useCallback(t,e??[])}const L_=$f();function V_(){return L_}function nu(t,e){const n=_.useRef(null);if(n.current===null){const o=jc({});n.current={context:o,savedDependencies:[]}}_.useEffect(()=>()=>{n.current=null},[]);const{context:r,savedDependencies:i}=n.current;e=k_(e,t);const a=!M_(e,i);n.current.savedDependencies=e;const s=sn()||Kt();return{context:r,doDependenciesDiffer:a,useWeb:s}}function Us(t,e=[],n=!1){const r=_.useRef(null);if(r.current===null){const i=new tu(t,e);r.current={workletEventHandler:i}}else if(n){const i=r.current.workletEventHandler;i.updateEventHandler(t,e),r.current={workletEventHandler:i}}return r.current}const It={UNDETERMINED:0,FAILED:1,BEGAN:2,CANCELLED:3,ACTIVE:4,END:5};function H_(t,e){const{context:n,doDependenciesDiffer:r,useWeb:i}=nu(t,e),a=s=>{"worklet";const o=i?s.nativeEvent:s;o.state===It.BEGAN&&t.onStart&&t.onStart(o,n),o.state===It.ACTIVE&&t.onActive&&t.onActive(o,n),o.oldState===It.ACTIVE&&o.state===It.END&&t.onEnd&&t.onEnd(o,n),o.oldState===It.BEGAN&&o.state===It.FAILED&&t.onFail&&t.onFail(o,n),o.oldState===It.ACTIVE&&o.state===It.CANCELLED&&t.onCancel&&t.onCancel(o,n),(o.oldState===It.BEGAN||o.oldState===It.ACTIVE)&&o.state!==It.BEGAN&&o.state!==It.ACTIVE&&t.onFinish&&t.onFinish(o,n,o.state===It.CANCELLED||o.state===It.FAILED)};return i?a:Us(a,["onGestureHandlerStateChange","onGestureHandlerEvent"],r)}function U_(t,e,n){const r=ct(null);let i=Object.values(t.__closure??{});nt()&&!i.length&&n!=null&&n.length&&(i=n),n===void 0?n=[...Object.values(t.__closure??{}),...Object.values(e.__closure??{}),t.__workletHash,e.__workletHash]:n.push(t.__workletHash,e.__workletHash),_.useEffect(()=>{const s=Hs(()=>{"worklet";const o=t();e(o,r.value),r.value=o},i);return()=>{da(s)}},n)}const W_=sn();function yu(t){return Ct()&&t.getNativeScrollRef?t.getNativeScrollRef():!Ct()&&t.getScrollableNode?t.getScrollableNode():t}function QC(){const t=ct(-1),e=ct(null),n=_.useRef();if(!n.current){const r=a=>{var s;if(a){const o=Ct()?VC:SI,l=()=>W_?yu(a):o(yu(a));t.value=l(),r.getTag=Ct()?()=>yu(a):l,r.current=a,ue.OS==="ios"&&!Ct()&&(e.value=((s=a==null?void 0:a.viewConfig)==null?void 0:s.uiViewClassName)||"RCTView")}return t.value};r.current=null;const i=Ue({__init:()=>{"worklet";const a=()=>t.value;return a.viewName=e,a}});Xt.set(r,i),n.current=r}return n.current}function X_(t,e){const n=typeof t=="function"?{onScroll:t}:t,{context:r,doDependenciesDiffer:i}=nu(n,e),a=["onScroll"];return n.onBeginDrag!==void 0&&a.push("onScrollBeginDrag"),n.onEndDrag!==void 0&&a.push("onScrollEndDrag"),n.onMomentumBegin!==void 0&&a.push("onMomentumScrollBegin"),n.onMomentumEnd!==void 0&&a.push("onMomentumScrollEnd"),Us(s=>{"worklet";const{onScroll:o,onBeginDrag:l,onEndDrag:c,onMomentumBegin:u,onMomentumEnd:A}=n;o&&s.eventName.endsWith("onScroll")?o(s,r):l&&s.eventName.endsWith("onScrollBeginDrag")?l(s,r):c&&s.eventName.endsWith("onScrollEndDrag")?c(s,r):u&&s.eventName.endsWith("onMomentumScrollBegin")?u(s,r):A&&s.eventName.endsWith("onMomentumScrollEnd")&&A(s,r)},a,i)}function Y_(t,e){const n=_.useRef(null);let r=Object.values(t.__closure??{});nt()&&!r.length&&e!=null&&e.length&&(r=e),e===void 0?e=[...r,t.__workletHash]:e.push(t.__workletHash),n.current===null&&(n.current=Pn(jf(t)));const i=n.current;return _.useEffect(()=>{const s=Hs(()=>{"worklet";i.value=t()},r,[i]);return()=>{da(s)}},e),_.useEffect(()=>()=>{n.current=null},[]),i}function z_(t,e,n){"worklet";const r=Math.cos(t/2),i=Math.sin(t/2),a=Math.cos(e/2),s=Math.sin(e/2),o=Math.cos(n/2),l=Math.sin(n/2);return[i*a*o-r*s*l,r*s*o+i*a*l,r*a*l+i*s*o,r*a*o-i*s*l]}function q_(t){"worklet";const{interfaceOrientation:e,pitch:n,roll:r,yaw:i}=t;e===yi.ROTATION_90?(t.pitch=r,t.roll=-n,t.yaw=i-Math.PI/2):e===yi.ROTATION_270?(t.pitch=-r,t.roll=n,t.yaw=i+Math.PI/2):e===yi.ROTATION_180&&(t.pitch*=-1,t.roll*=-1,t.yaw*=-1);const a=z_(t.pitch,t.roll,t.yaw);return t.qx=a[0],t.qy=a[1],t.qz=a[2],t.qw=a[3],t}function K_(t){"worklet";const{interfaceOrientation:e,x:n,y:r}=t;return e===yi.ROTATION_90?(t.x=-r,t.y=n):e===yi.ROTATION_270?(t.x=r,t.y=-n):e===yi.ROTATION_180&&(t.x*=-1,t.y*=-1),t}function $_(t,e){var s,o,l;const n=_.useRef(e);(((s=n.current)==null?void 0:s.adjustToInterfaceOrientation)!==(e==null?void 0:e.adjustToInterfaceOrientation)||((o=n.current)==null?void 0:o.interval)!==(e==null?void 0:e.interval)||((l=n.current)==null?void 0:l.iosReferenceFrame)!==(e==null?void 0:e.iosReferenceFrame))&&(n.current={...e});const i=_.useMemo(()=>({interval:"auto",adjustToInterfaceOrientation:!0,iosReferenceFrame:oC.Auto,...n.current}),[n.current]),a=_.useRef({sensor:vp(t,i),unregister:()=>{},isAvailable:!1,config:i});return _.useEffect(()=>{a.current={sensor:vp(t,i),unregister:()=>{},isAvailable:!1,config:i};const c=a.current.sensor,u=a.current.config.adjustToInterfaceOrientation,A=Sw(t,i,d=>{"worklet";u&&(t===Ze.ROTATION?d=q_(d):d=K_(d)),c.value=d,Hf()});return A!==-1?(a.current.unregister=()=>_w(A),a.current.isAvailable=!0):(a.current.unregister=()=>{},a.current.isAvailable=!1),()=>{a.current.unregister()}},[t,i]),a.current}const j_=Uf(()=>{"worklet";const t={frameCallbackRegistry:new Map,activeFrameCallbacks:new Set,previousFrameTimestamp:null,nextCallId:0,runCallbacks(e){const n=r=>{if(e!==this.nextCallId)return;this.previousFrameTimestamp===null&&(this.previousFrameTimestamp=r);const i=r-this.previousFrameTimestamp;this.activeFrameCallbacks.forEach(a=>{const s=this.frameCallbackRegistry.get(a),{startTime:o}=s;o===null?(s.startTime=r,s.callback({timestamp:r,timeSincePreviousFrame:null,timeSinceFirstFrame:0})):s.callback({timestamp:r,timeSincePreviousFrame:i,timeSinceFirstFrame:r-o})}),this.activeFrameCallbacks.size>0?(this.previousFrameTimestamp=r,requestAnimationFrame(n)):this.previousFrameTimestamp=null};this.activeFrameCallbacks.size===1&&e===this.nextCallId&&requestAnimationFrame(n)},registerFrameCallback(e,n){this.frameCallbackRegistry.set(n,{callback:e,startTime:null})},unregisterFrameCallback(e){this.manageStateFrameCallback(e,!1),this.frameCallbackRegistry.delete(e)},manageStateFrameCallback(e,n){if(e!==-1)if(n)this.activeFrameCallbacks.add(e),this.runCallbacks(this.nextCallId);else{const r=this.frameCallbackRegistry.get(e);r.startTime=null,this.activeFrameCallbacks.delete(e),this.activeFrameCallbacks.size===0&&(this.nextCallId+=1)}}};global._frameCallbackRegistry=t});class Q_{constructor(){F(this,"nextCallbackId",0);j_()}registerFrameCallback(e){if(!e)return-1;const n=this.nextCallbackId;return this.nextCallbackId++,ar(()=>{global._frameCallbackRegistry.registerFrameCallback(e,n)})(),n}unregisterFrameCallback(e){ar(()=>{global._frameCallbackRegistry.unregisterFrameCallback(e)})()}manageStateFrameCallback(e,n){ar(()=>{global._frameCallbackRegistry.manageStateFrameCallback(e,n)})()}}const Iu=new Q_;function ZC(t,e=!0){const n=_.useRef({setActive:r=>{Iu.manageStateFrameCallback(n.current.callbackId,r),n.current.isActive=r},isActive:e,callbackId:-1});return _.useEffect(()=>{n.current.callbackId=Iu.registerFrameCallback(t);const r=n.current;return n.current.setActive(n.current.isActive),()=>{Iu.unregisterFrameCallback(r.callbackId),r.callbackId=-1}},[t,e]),n.current}function Z_(t={isStatusBarTranslucentAndroid:!1,isNavigationBarTranslucentAndroid:!1}){const e=_.useRef(null),n=_.useRef(-1),r=_.useRef(!1);if(e.current===null){const i={state:Pn(lC.UNKNOWN),height:Pn(0)};n.current=gp((a,s)=>{"worklet";i.state.value=a,i.height.value=s},t),e.current=i,r.current=!0}return _.useEffect(()=>{if(r.current===!1&&e.current!==null){const i=e.current;n.current=gp((a,s)=>{"worklet";i.state.value=a,i.height.value=s},t),r.current=!0}return()=>{bw(n.current),r.current=!1}},[]),e.current}const J_=sn(),JC=J_?eD:tD;function eD(t,e){const n=ct(0),r=_.useRef(e??n).current,i=_.useCallback(()=>{"worklet";if(t){const a=Bp(t.current);r.value=a.scrollLeft===0?a.scrollTop:a.scrollLeft}},[t,t==null?void 0:t.current]);return _.useEffect(()=>{const a=t!=null&&t.current?Bp(t.current):null;return a&&a.addEventListener("scroll",i),()=>{a&&a.removeEventListener("scroll",i)}},[t,t==null?void 0:t.current,i]),r}function tD(t,e){const n=ct(0),r=_.useRef(e??n).current,i=Us(a=>{"worklet";r.value=a.contentOffset.x===0?a.contentOffset.y:a.contentOffset.x},nD);return _.useEffect(()=>{const a=(t==null?void 0:t.getTag())??null;return a&&i.workletEventHandler.registerForEvents(a),()=>{a&&i.workletEventHandler.unregisterFromEvents(a)}},[t,t==null?void 0:t.current,i]),r}function Bp(t){return(t==null?void 0:t.getScrollableNode())??t}const nD=["onScroll","onScrollBeginDrag","onScrollEndDrag","onMomentumScrollBegin","onMomentumScrollEnd"];function rD(t){const e={},n=new Set,r={};t.filter(a=>a!==null).forEach(a=>{const{workletEventHandler:s}=a;s instanceof tu&&s.eventNames.forEach(o=>{n.add(o),r[o]?r[o].push(s.worklet):r[o]=[s.worklet];const l=o+`${r[o].length}`;e[l]=s.worklet})});const{doDependenciesDiffer:i}=nu(e);return Us(a=>{"worklet";r[a.eventName]&&r[a.eventName].forEach(s=>s(a))},Array.from(n),i)}const iD=Fi(ya),aD=_.forwardRef((t,e)=>{const{scrollViewOffset:n,...r}=t,i=e===null?QC():e;return n&&JC(i,n),"scrollEventThrottle"in r||(r.scrollEventThrottle=1),k.jsx(iD,{ref:i,...r})}),sD=Fi(fs),oD=Fi(Lm),lD=t=>n=>k.jsx(KC,{layout:t==null?void 0:t.current,onLayout:n.onLayout,style:n.style,children:n.children}),cD=function(t,e){const{itemLayoutAnimation:n,skipEnteringExitingAnimations:r,...i}=t;"scrollEventThrottle"in i||(i.scrollEventThrottle=1);const a=_.useRef(n);a.current=n;const s=_t.useMemo(()=>lD(a),[a]),o=k.jsx(oD,{ref:e,...i,CellRendererComponent:s});return r===void 0?o:k.jsx(eu,{skipEntering:!0,skipExiting:!0,children:o})},uD=_.forwardRef(cD),$t=Object.freeze(Object.defineProperty({__proto__:null,FlatList:uD,Image:sD,ScrollView:aD,Text:O_,View:KC,addWhitelistedNativeProps:th,addWhitelistedUIProps:NC,createAnimatedComponent:Fi},Symbol.toStringTag,{value:"Module"}));let Ye=function(t){return t.IDENTITY="identity",t.CLAMP="clamp",t.EXTEND="extend",t}({});function Gp(t,e,n,r,i,a){"worklet";switch(t){case Ye.IDENTITY:return a;case Ye.CLAMP:return e*n<e*r?r:i;case Ye.EXTEND:default:return n}}function wu(t){"worklet";return t===Ye.EXTEND||t===Ye.CLAMP||t===Ye.IDENTITY}function dD(t){"worklet";const e={extrapolateLeft:Ye.EXTEND,extrapolateRight:Ye.EXTEND};if(!t)return e;if(typeof t=="string"){if(!wu(t))throw new oe(`Unsupported value for "interpolate" Supported values: ["extend", "clamp", "identity", Extrapolatation.CLAMP, Extrapolatation.EXTEND, Extrapolatation.IDENTITY] Valid example: interpolate(value, [inputRange], [outputRange], "clamp")`);return e.extrapolateLeft=t,e.extrapolateRight=t,e}if(t.extrapolateLeft&&!wu(t.extrapolateLeft)||t.extrapolateRight&&!wu(t.extrapolateRight))throw new oe(`Unsupported value for "interpolate" @@ -33,21 +33,21 @@ Supported values: ["extend", "clamp", "identity", Extrapolatation.CLAMP, Extrapo interpolate(value, [inputRange], [outputRange], { extrapolateLeft: Extrapolation.CLAMP, extrapolateRight: Extrapolation.IDENTITY - }})`);return Object.assign(e,t),e}function AD(t,e,n){"worklet";const{leftEdgeInput:r,rightEdgeInput:i,leftEdgeOutput:a,rightEdgeOutput:s}=e;if(i-r===0)return a;const o=(t-r)/(i-r),l=a+o*(s-a),c=s>=a?1:-1;return c*l<c*a?Bp(n.extrapolateLeft,c,l,a,s,t):c*l>c*s?Bp(n.extrapolateRight,c,l,a,s,t):l}function Lt(t,e,n,r){"worklet";if(e.length<2||n.length<2)throw new oe("Interpolation input and output ranges should contain at least two values.");const i=dD(r),a=e.length,s={leftEdgeInput:e[0],rightEdgeInput:e[1],leftEdgeOutput:n[0],rightEdgeOutput:n[1]};if(a>2){if(t>e[a-1])s.leftEdgeInput=e[a-2],s.rightEdgeInput=e[a-1],s.leftEdgeOutput=n[a-2],s.rightEdgeOutput=n[a-1];else for(let o=1;o<a;++o)if(t<=e[o]){s.leftEdgeInput=e[o-1],s.rightEdgeInput=e[o],s.leftEdgeOutput=n[o-1],s.rightEdgeOutput=n[o];break}}return AD(t,s,i)}function fD(t,e,n){"worklet";return Math.min(Math.max(t,e),n)}const hD=Ye,pD=(t,e,n,r)=>{"worklet";let i=0;const{useCorrectedHSVInterpolation:a=!0}=r;if(a){const c=[e[0]],u=n.h,A=[u[0]];for(let d=1;d<u.length;++d){const f=u[d]-u[d-1];u[d]>u[d-1]&&f>.5?(c.push(e[d]),c.push(e[d]+1e-5),A.push(u[d]-1),A.push(u[d])):u[d]<u[d-1]&&f<-.5?(c.push(e[d]),c.push(e[d]+1e-5),A.push(u[d]+1),A.push(u[d])):(c.push(e[d]),A.push(u[d]))}i=(Lt(t,c,A,Ye.CLAMP)+1)%1}else i=Lt(t,e,n.h,Ye.CLAMP);const s=Lt(t,e,n.s,Ye.CLAMP),o=Lt(t,e,n.v,Ye.CLAMP),l=Lt(t,e,n.a,Ye.CLAMP);return Nw(i,s,o,l)},bu=(t,e)=>{"worklet";return t.map(n=>Math.pow(n/255,e))},Su=(t,e)=>{"worklet";return Math.round(Math.pow(t,1/e)*255)},gD=(t,e,n,r)=>{"worklet";const{gamma:i=2.2}=r;let{r:a,g:s,b:o}=n;i!==1&&(a=bu(a,i),s=bu(s,i),o=bu(o,i));const l=Lt(t,e,a,Ye.CLAMP),c=Lt(t,e,s,Ye.CLAMP),u=Lt(t,e,o,Ye.CLAMP),A=Lt(t,e,n.a,Ye.CLAMP);return i===1?jd(l,c,u,A):jd(Su(l,i),Su(c,i),Su(u,i),A)},vD=t=>{"worklet";const e=[],n=[],r=[],i=[];for(let a=0;a<t.length;++a){const s=t[a],o=jc(s);o!=null&&(e.push(bC(o)),n.push(SC(o)),r.push(_C(o)),i.push(wC(o)))}return{r:e,g:n,b:r,a:i}},mD=t=>{"worklet";const e=[],n=[],r=[],i=[];for(let a=0;a<t.length;++a){const s=t[a],o=jc(s);if(typeof o=="number"){const l=Fw(bC(o),SC(o),_C(o));e.push(l.h),n.push(l.s),r.push(l.v),i.push(wC(o))}}return{h:e,s:n,v:r,a:i}};function EA(t,e,n,r="RGB",i={}){"worklet";if(r==="HSV")return pD(t,e,mD(n),i);if(r==="RGB")return gD(t,e,vD(n),i);throw new oe(`Invalid color space provided: ${r}. Supported values are: ['RGB', 'HSV'].`)}let eE=function(t){return t[t.RGB=0]="RGB",t[t.HSV=1]="HSV",t}({});function CD(t,e,n=eE.RGB,r={}){return ct({inputRange:t,outputRange:e,colorSpace:n,cache:Pn(null),options:r})}function ED(){Oe.warn("dispatchCommand() is not supported on web.")}function tE(t){const e=t();if(e===-1)return Oe.warn(`The view with tag ${e} is not a valid argument for measure(). This may be because the view is not currently rendered, which may not be a bug (e.g. an off-screen FlatList item).`),null;const n=e.getBoundingClientRect();return{width:e.offsetWidth,height:e.offsetHeight,x:e.offsetLeft,y:e.offsetTop,pageX:n.left,pageY:n.top}}function xD(t,e,n,r){const i=t();if(i!==-1){const a=i;a==null||a.scrollTo({x:e,y:n,animated:r})}}function yD(){Oe.warn("setGestureState() is not available on web.")}function ID(t,e){const n=t();Kc(e,n)}function wD(t,e,n){"worklet";const r=tE(t);return r===null?null:{x:e-r.pageX,y:n-r.pageY}}function bD(t,e){const n={};return e==null||e.forEach(r=>{n[r]=!0}),eh(n),t}function SD(){return"It looks like you might be using shared value's .value inside reanimated inline style. If you want a component to update when shared value changes you should use the shared value directly instead of its current state represented by `.value`. See documentation here: https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary/#animations-in-inline-styling"}function _D(){}function DD(){}function TD(){}function OD(){}function kD(){}function nE(t){"worklet";return{next:0,buffer:new Float32Array(t),size:t,count:0,push(e){const n=this.buffer[this.next],r=this.count;return this.buffer[this.next]=e,this.next=(this.next+1)%this.size,this.count=Math.min(this.size,this.count+1),r===this.size?n:null},front(){if(this.count>0){const n=this.next-1,r=n<0?this.size-1:n;return this.buffer[r]}return null},back(){return this.count>0?this.buffer[this.next]:null}}}const MD=20;eh({text:!0});const rE=Fi(Rf);function PD(t){let e=0;function n(){requestAnimationFrame(r=>{e>0&&t(e,r),e=r,requestAnimationFrame(n)})}n()}function FD(t){"worklet";return 1e3/t}function iE(t,e){"worklet";e=Math.round(e);const n=t.push(e)??e,r=e-n;return FD(r/t.count)}function RD({smoothingFrames:t}){const e=ct(null),n=ct(0),r=_.useRef(nE(t));_.useEffect(()=>{PD((a,s)=>{s=Math.round(s);const o=iE(r.current,s);e.value=(o*2).toFixed(0)})},[e,n]);const i=oh(()=>{const a="JS: "+(e.value??"N/A")+" ";return{text:a,defaultValue:a}});return k.jsx(pe,{style:Ss.container,children:k.jsx(rE,{style:Ss.text,animatedProps:i,editable:!1})})}function ND({smoothingFrames:t}){const e=ct(null),n=ct(null);ZC(({timestamp:i})=>{n.value===null&&(n.value=nE(t)),i=Math.round(i);const a=iE(n.value,i);e.value=a.toFixed(0)});const r=oh(()=>{const i="UI: "+(e.value??"N/A")+" ";return{text:i,defaultValue:i}});return k.jsx(pe,{style:Ss.container,children:k.jsx(rE,{style:Ss.text,animatedProps:r,editable:!1})})}function BD({smoothingFrames:t=MD}){return k.jsxs(pe,{style:Ss.monitor,children:[k.jsx(RD,{smoothingFrames:t}),k.jsx(ND,{smoothingFrames:t})]})}const Ss=he.create({monitor:{flexDirection:"row",position:"absolute",backgroundColor:"#0006",zIndex:1e3},header:{fontSize:14,color:"#ffff",paddingHorizontal:5},text:{fontSize:13,color:"#ffff",fontFamily:"monospace",paddingHorizontal:3},container:{alignItems:"center",justifyContent:"center",flexDirection:"row",flexWrap:"wrap"}});function GD({mode:t}){return _.useEffect(()=>{},[]),_.useEffect(()=>{const e=yn.jsValue;switch(t){case on.System:yn.setEnabled(Kf());break;case on.Always:yn.setEnabled(!0);break;case on.Never:yn.setEnabled(!1);break}return()=>{yn.setEnabled(e)}},[t]),null}const LD=Ct();function VD(t){"worklet";return{tag:t,name:"RCTView"}}function HD(t){"worklet";return{shadowNodeWrapper:t}}const aE=LD?HD:VD;function UD(t,e){"worklet";const{screenDimensions:n,topScreenId:r,screenTransition:i}=t,{topScreenStyle:a}=i,s=a(e,n),o={value:[aE(r)]};sr(o,s,void 0)}function sE(t,e){"worklet";const{screenDimensions:n,belowTopScreenId:r,screenTransition:i}=t,{belowTopScreenStyle:a}=i,s=a(e,n),o={value:[aE(r)]};sr(o,s,void 0)}function xA(t,e){"worklet";UD(t,e),sE(t,e)}function _u(t){return()=>{"worklet";return Oe.warn("RNScreensTurboModule has not been found. Check that you have installed `react-native-screens@3.30.0` or newer in your project and rebuilt your app."),t}}const WD=global.RNScreensTurboModule||{startTransition:_u({topScreenId:-1,belowTopScreenId:-1,canStartTransition:!1}),updateTransition:_u(),finishTransition:_u()},Du=400,XD=400,YD=500,zD=600;function so(t,e,n){"worklet";if(Math.abs(e)<1)return 1;const r=(_getAnimationTimestamp()-t)/1e3;return n*r/e}function oo(t){"worklet";return 1-Math.pow(1-t,5)}function qD(t,e,n){"worklet";const r=t.screenDimensions,i=Math.abs(e.translationX/r.width),a=Math.abs(e.translationY/r.height),s=Math.max(i,a);return n?s/2:s}function Gp(t,e,n,r,i){"worklet";var a;if(e)(a=n.onFinishAnimation)==null||a.call(n);else{const s=n.stackTag,o=qD(n,r,i);WD.updateTransition(s,o),requestAnimationFrame(t)}}function KD(t,e,n){"worklet";const r=e.screenDimensions,i=_getAnimationTimestamp(),{isTransitionCanceled:a}=e,s={x:t.translationX,y:t.translationY},o={x:Math.sign(t.translationX),y:Math.sign(t.translationY)},l=a?{x:0,y:0}:{x:o.x*r.width,y:o.y*r.height},c={x:Math.abs(l.x-s.x),y:Math.abs(l.y-s.y)},u={x:!1,y:!1},A={x:Du,y:Du};if(n==="x")A.y=0,A.x+=XD*c.x/r.width;else if(n==="y")A.x=0,A.y+=YD*c.y/r.height;else{const d=Math.sqrt(c.x**2+c.y**2),f=Math.sqrt(r.width**2+r.height**2),p=Du+zD*d/f;Math.abs(s.x)>Math.abs(s.y)?(A.x=p,A.y=p*Math.abs(s.y/s.x)):(A.x=p*Math.abs(s.x/s.y),A.y=p)}if(a){let d=function(){return n==="x"?u.x:(n==="y"||u.x)&&u.y},f=function(){t.translationX=o.x*r.width,t.translationY=o.y*r.height,sE(e,t)};const p=()=>{const h={x:so(i,c.x,A.x),y:so(i,c.y,A.y)};t.translationX=s.x-o.x*c.x*oo(h.x),t.translationY=s.y-o.y*c.y*oo(h.y),o.x>0?t.translationX<=0&&(u.x=!0,t.translationX=0):t.translationX>=0&&(u.x=!0,t.translationX=0),o.y>0?t.translationY<=0&&(u.y=!0,t.translationY=0):t.translationY>=0&&(u.y=!0,t.translationY=0),xA(e,t);const g=d();g&&f(),Gp(p,g,e,t,a)};return p}else{const d=()=>{const f={x:so(i,c.x,A.x),y:so(i,c.y,A.y)};t.translationX=s.x+o.x*c.x*oo(f.x),t.translationY=s.y+o.y*c.y*oo(f.y),o.x>0?t.translationX>=r.width&&(u.x=!0,t.translationX=r.width):t.translationX<=-r.width&&(u.x=!0,t.translationX=-r.width),o.y>0?t.translationY>=r.height&&(u.y=!0,t.translationY=r.height):t.translationY<=-r.height&&(u.y=!0,t.translationY=-r.height),xA(e,t),Gp(d,u.x||u.y,e,t,a)};return d}}Zc();function $D(t){"worklet";const{stackTag:e,sharedEvent:n}=t;n.addListener(e,()=>{xA(t,n.value)})}function jD(t){"worklet";if(["swipeRight","swipeLeft","horizontalSwipe"].includes(t))return"x";if(["swipeUp","swipeDown","verticalSwipe"].includes(t))return"y"}function QD(t){"worklet";const{stackTag:e,sharedEvent:n,goBackGesture:r}=t;n.removeListener(e);const i=jD(r);KD(n.value,t,i)()}const ZD={topScreenStyle:t=>{"worklet";return{transform:[{translateX:t.translationX}]}},belowTopScreenStyle:(t,e)=>{"worklet";return{transform:[{translateX:(t.translationX-e.width)*.3}]}}},JD={topScreenStyle:t=>{"worklet";return{transform:[{translateX:t.translationX}]}},belowTopScreenStyle:(t,e)=>{"worklet";return{transform:[{translateX:(t.translationX+e.width)*.3}]}}},eT={topScreenStyle:t=>{"worklet";return{transform:[{translateY:t.translationY}]}},belowTopScreenStyle:(t,e)=>{"worklet";return{transform:[{translateY:(t.translationY-e.height)*.3}]}}},tT={topScreenStyle:t=>{"worklet";return{transform:[{translateY:t.translationY}]}},belowTopScreenStyle:(t,e)=>{"worklet";return{transform:[{translateY:(t.translationY+e.height)*.3}]}}},nT={topScreenStyle:(t,e)=>{"worklet";return{transform:[{translateX:t.translationX},{translateY:t.translationY}]}},belowTopScreenStyle:(t,e)=>{"worklet";return{}}},rT={topScreenStyle:(t,e)=>{"worklet";return{transform:[{translateX:t.translationX}]}},belowTopScreenStyle:(t,e)=>{"worklet";return{}}},iT={topScreenStyle:(t,e)=>{"worklet";return{transform:[{translateY:t.translationY}]}},belowTopScreenStyle:(t,e)=>{"worklet";return{}}},aT={topScreenStyle:(t,e)=>{"worklet";return{opacity:1-Math.abs(t.translationX/e.width)}},belowTopScreenStyle:(t,e)=>{"worklet";return{}}},sT={SwipeRight:ZD,SwipeLeft:JD,SwipeDown:eT,SwipeUp:tT,Horizontal:rT,Vertical:iT,TwoDimensional:nT,SwipeRightFade:aT},oT=Object.freeze(Object.defineProperty({__proto__:null,BaseAnimationBuilder:Pi,BounceIn:qb,BounceInDown:W0,BounceInLeft:Y0,BounceInRight:z0,BounceInUp:X0,BounceOut:Kb,BounceOutDown:q0,BounceOutLeft:$0,BounceOutRight:j0,BounceOutUp:K0,ColorSpace:eE,ComplexAnimationBuilder:ee,CurvedTransition:Jb,Easing:Ze,EntryExitTransition:LC,Extrapolate:hD,Extrapolation:Ye,FadeIn:th,FadeInDown:m0,FadeInLeft:g0,FadeInRight:p0,FadeInUp:v0,FadeOut:nh,FadeOutDown:y0,FadeOutLeft:E0,FadeOutRight:C0,FadeOutUp:x0,FadingTransition:jb,FlipInEasyX:r0,FlipInEasyY:i0,FlipInXDown:t0,FlipInXUp:Jd,FlipInYLeft:e0,FlipInYRight:n0,FlipOutEasyX:c0,FlipOutEasyY:u0,FlipOutXDown:o0,FlipOutXUp:a0,FlipOutYLeft:s0,FlipOutYRight:l0,IOSReferenceFrame:oC,InterfaceOrientation:yi,JumpingTransition:Zb,KeyboardState:lC,Keyframe:Jf,Layout:$b,LayoutAnimationConfig:Jc,LightSpeedInLeft:Z0,LightSpeedInRight:Q0,LightSpeedOutLeft:eA,LightSpeedOutRight:J0,LinearTransition:GC,PerformanceMonitor:BD,PinwheelIn:tA,PinwheelOut:nA,ReanimatedLogLevel:qc,ReduceMotion:on,ReducedMotionConfig:GD,RollInLeft:dA,RollInRight:AA,RollOutLeft:fA,RollOutRight:hA,RotateInDownLeft:rA,RotateInDownRight:iA,RotateInUpLeft:aA,RotateInUpRight:sA,RotateOutDownLeft:oA,RotateOutDownRight:lA,RotateOutUpLeft:cA,RotateOutUpRight:uA,ScreenTransition:sT,SensorType:Qe,SequencedTransition:Qb,SharedTransition:Sr,SharedTransitionType:Gb,SlideInDown:_i,SlideInLeft:w0,SlideInRight:I0,SlideInUp:_0,SlideOutDown:Is,SlideOutLeft:S0,SlideOutRight:b0,SlideOutUp:D0,StretchInX:d0,StretchInY:A0,StretchOutX:f0,StretchOutY:h0,ZoomIn:Yb,ZoomInDown:P0,ZoomInEasyDown:R0,ZoomInEasyUp:F0,ZoomInLeft:O0,ZoomInRight:k0,ZoomInRotate:T0,ZoomInUp:M0,ZoomOut:zb,ZoomOutDown:V0,ZoomOutEasyDown:U0,ZoomOutEasyUp:H0,ZoomOutLeft:B0,ZoomOutRight:G0,ZoomOutRotate:N0,ZoomOutUp:L0,advanceAnimationByFrame:TD,advanceAnimationByTime:DD,cancelAnimation:DC,clamp:fD,combineTransition:eS,configureReanimatedLogger:Wb,convertToRGBA:Ja,createAnimatedPropAdapter:bD,createWorkletRuntime:Ew,default:$t,defineAnimation:Ar,dispatchCommand:ED,enableLayoutAnimations:IC,executeOnUIRuntimeSync:ra,finishScreenTransition:QD,getAnimatedStyle:kD,getRelativeCoords:wD,getUseOfValueInStyleWarning:SD,getViewProp:ww,interpolate:Lt,interpolateColor:EA,isColor:Qd,isConfigured:Iw,isReanimated3:yC,isSharedValue:Rr,isWorkletFunction:qo,makeMutable:Pn,makeShareableCloneRecursive:Ue,measure:tE,processColor:jc,runOnJS:En,runOnRuntime:xw,runOnUI:ar,scrollTo:xD,setGestureState:yD,setNativeProps:ID,setUpTests:OD,startMapper:Hs,startScreenTransition:$D,stopMapper:da,useAnimatedGestureHandler:H_,useAnimatedKeyboard:Z_,useAnimatedProps:oh,useAnimatedReaction:U_,useAnimatedRef:QC,useAnimatedScrollHandler:X_,useAnimatedSensor:$_,useAnimatedStyle:Fn,useComposedEventHandler:rD,useDerivedValue:Y_,useEvent:Us,useFrameCallback:ZC,useHandler:tu,useInterpolateConfig:CD,useReducedMotion:V_,useScrollViewOffset:JC,useSharedValue:ct,useWorkletCallback:G_,withClamp:Nb,withDecay:Rb,withDelay:ni,withReanimatedTimer:_D,withRepeat:Zf,withSequence:Fe,withSpring:Qf,withTiming:j},Symbol.toStringTag,{value:"Module"})),Bn=()=>tC();var xn=(t=>(t.maximized="maximized",t.minimized="minimized",t))(xn||{});const lT={headerHeight:0,isMenuOpen:!1,isOpen:!1,minimizedHeight:0,visibility:xn.maximized,conversationId:void 0},oE=He({name:le.chat,initialState:lT,reducers:{closeChat:t=>({...t,isOpen:!1}),maximizeChat:t=>({...t,visibility:xn.maximized}),minimizeChat:t=>({...t,visibility:xn.minimized}),setHeightMinimized:(t,{payload:e})=>({...t,minimizedHeight:e}),openChat:t=>({...t,isOpen:!0,visibility:xn.maximized}),clearChatMessages:t=>({...t,messages:[]}),toggleChatIsOpen:t=>({...t,isOpen:!t.isOpen}),toggleChatVisibility:t=>({...t,visibility:t.visibility===xn.maximized?xn.minimized:xn.maximized}),setChatConversationId:(t,{payload:e})=>({...t,conversationId:e}),setChatHeaderHeight:(t,{payload:e})=>({...t,headerHeight:e}),setIsChatMenuOpen:(t,{payload:e})=>({...t,isMenuOpen:e})}}),{closeChat:cT,openChat:uT,maximizeChat:dT,minimizeChat:AT,setHeightMinimized:fT,toggleChatIsOpen:hT,toggleChatVisibility:pT,setChatConversationId:gT,setChatHeaderHeight:vT,setIsChatMenuOpen:mT}=oE.actions,CT=t=>t[le.chat].isOpen,ET=t=>t[le.chat].visibility,xT=t=>t[le.chat].minimizedHeight,yT=t=>t[le.chat].conversationId,IT=t=>t[le.chat].headerHeight,wT=t=>t[le.chat].isMenuOpen,Ri=()=>{const t=et(CT),e=et(wT),n=et(IT),r=et(yT),i=et(ET),a=i===xn.maximized,s=i===xn.minimized,o=et(xT),l=Bn(),c=_.useCallback(()=>l(uT()),[l]),u=_.useCallback(()=>l(cT()),[l]),A=_.useCallback(()=>l(dT()),[l]),d=_.useCallback(()=>l(AT()),[l]),f=_.useCallback(v=>l(gT(v)),[l]),p=_.useCallback(v=>l(vT(v)),[l]),h=_.useCallback(v=>l(mT(v)),[l]),g=_.useCallback(v=>l(fT(v)),[l]),E=_.useCallback(()=>l(hT()),[l]),m=_.useCallback(()=>l(pT()),[l]);return{close:u,conversationId:r,headerHeight:n,isMaximized:a,isMenuOpen:e,isMinimized:s,isOpen:t,open:c,maximize:A,minimize:d,minimizedHeight:o,setConversationId:f,setMinimizedHeight:g,setHeaderHeight:p,setIsMenuOpen:h,toggleIsOpen:E,toggleVisibility:m,visibility:i}},yA=({children:t})=>{const{isMaximized:e}=Ri(),{duration:n}=Nn(),r=bT(),i=Fn(()=>({opacity:j(e?1:0,{duration:n.transition.short})}));return k.jsx($t.View,{style:[r.container,i],children:t})},bT=()=>he.create({container:{flexGrow:1}});try{yA.displayName="ChatAnimatedContentWrapper",yA.__docgenInfo={description:"",displayName:"ChatAnimatedContentWrapper",props:{}}}catch{}const gs=_.forwardRef(({onPress:t,testID:e,label:n,color:r},i)=>k.jsx(A1,{width:"100%",children:k.jsx(Of,{onPress:t,ref:i,testID:e,children:k.jsx(hr,{insetHorizontal:"md",insetVertical:"sm",children:k.jsx(kn,{color:r,testID:`${e}Phrase`,children:n})})})}));try{gs.displayName="ChatMenuItem",gs.__docgenInfo={description:"",displayName:"ChatMenuItem",props:{color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"enum",value:[{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"default"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"inverse"'},{value:'"warning"'}]}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"() => void"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const lE=(t=!1)=>{const[e,n]=_.useState(t),r=_.useCallback(()=>{n(s=>!s)},[]),i=_.useCallback(()=>{n(!0)},[]),a=_.useCallback(()=>{n(!1)},[]);return{value:e,toggle:r,enable:i,disable:a}},ST=He({name:le.environment,initialState:{custom:ky,environment:Um?Jr.acceptance:Jr.production},reducers:{setEnvironment:(t,{payload:e})=>{t.environment=e},setCustomEnvironment:(t,{payload:e})=>{t.custom={...t.custom,...e}}}});ST.actions;const cE=t=>t[le.environment],_T=(t,e)=>n=>My(n[le.environment].environment,n[le.environment].custom,t,e),DT=()=>{const{environment:t}=et(cE),e={};switch(t){case Jr.development:case Jr.custom:e.developerName=Uy,e.organizationId=Wy,e.url=Xy;break;case Jr.test:e.developerName=Ly,e.organizationId=Vy,e.url=Hy;break;case Jr.acceptance:e.developerName=Ny,e.organizationId=By,e.url=Gy;break;case Jr.production:e.developerName=Py,e.organizationId=Fy,e.url=Ry;break}return e},Lp=t=>t.filter(({format:e})=>e!==ge.deliveryAcknowledgement),TT=t=>t===ge.attachments||t===ge.carousel||t===ge.imageMessage||t===ge.inputs||t===ge.listPicker||t===ge.richLink||t===ge.quickReplies||t===ge.selections||t===ge.text,OT={addDownloadedTranscriptId:()=>null,downloadedTranscriptIds:[],employeeInChat:!1,endChat:()=>null,isEnded:!1,isWaitingForAgent:!1,messages:[],newMessagesCount:0,ready:!1,remoteConfiguration:void 0},kT=(t,e)=>{const n=t.filter(i=>i.format!==ge.transcript),r=n[n.length-1];return(r==null?void 0:r.format)===ge.routingWorkResult&&r.workType===Mm.closed&&!e},MT=(t,e)=>{const{value:n,enable:r}=lE(!1);return{isEnded:n||kT(t,e),endChat:r}},dn=_.createContext(OT),IA=({children:t})=>{const{isMaximized:e,isMinimized:n}=Ri(),[r,i]=_.useState(),[a,s]=_.useState(0),[o,l]=_.useState([]),c=DT(),{messages:u,isTyping:A,conversationId:d,ready:f,employeeInChat:p,remoteConfiguration:h,isWaitingForAgent:g}=bI({...c,conversationId:r}),{isEnded:E,endChat:m}=MT(u,g),v=_.useCallback(y=>{l(x=>[...x,y])},[]);_.useEffect(()=>{var y;n&&TT((y=u[u.length-1])==null?void 0:y.format)&&s(x=>x+1)},[u.length]),_.useEffect(()=>{e&&s(0)},[e]),_.useEffect(()=>{i(d??r)},[r,d,i]),_.useEffect(()=>{var y;if(h){const x=JSON.parse(JSON.stringify(h));(y=x.preChatConfiguration[0])==null||y.hiddenPreChatFields.forEach(w=>{w.name==="Origin"?w.value="App":w.name==="Start_Location"&&(w.value="contact")}),wI(x,!0)}},[h]);const C=_.useMemo(()=>({addDownloadedTranscriptId:v,downloadedTranscriptIds:o,endChat:m,messages:A&&!E?[...Lp(u),A]:Lp(u),newMessagesCount:a,ready:f&&(!!A||u.some(y=>y.format===ge.text)),employeeInChat:p,isEnded:E,remoteConfiguration:h,isWaitingForAgent:g}),[v,o,p,m,A,g,E,u,a,f,h]);return k.jsx(dn.Provider,{value:C,children:t})};try{IA.displayName="ChatProvider",IA.__docgenInfo={description:"",displayName:"ChatProvider",props:{}}}catch{}const Tu="@@nativeEmitterSubscription@@";class uE{constructor(e){F(this,"_listenerCount",0);F(this,"_nativeModule");F(this,"_eventEmitter");if(e.__expo_module_name__)return e;this._nativeModule=e,this._eventEmitter=new _f(e)}addListener(e,n){!this._listenerCount&&ue.OS!=="ios"&&this._nativeModule.startObserving&&this._nativeModule.startObserving(),this._listenerCount++;const r=this._eventEmitter.addListener(e,n),i={[Tu]:r,remove:()=>{this.removeSubscription(i)}};return i}removeAllListeners(e){const n=this._eventEmitter.listenerCount?this._eventEmitter.listenerCount(e):this._eventEmitter.listeners(e).length;this._eventEmitter.removeAllListeners(e),this._listenerCount-=n,Qo(this._listenerCount>=0,"EventEmitter must have a non-negative number of listeners"),!this._listenerCount&&ue.OS!=="ios"&&this._nativeModule.stopObserving&&this._nativeModule.stopObserving()}removeSubscription(e){const n=e[Tu];n&&("remove"in n&&n.remove(),this._listenerCount--,delete e[Tu],e.remove=()=>{},!this._listenerCount&&ue.OS!=="ios"&&this._nativeModule.stopObserving&&this._nativeModule.stopObserving())}emit(e,...n){this._eventEmitter.emit(e,...n)}}const PT={},FT=Object.freeze(Object.defineProperty({__proto__:null,default:PT},Symbol.toStringTag,{value:"Module"})),RT=Gs(FT);class Ro extends Error{constructor(n,r){super(r);F(this,"code");F(this,"info");this.code=n}}var Tm;const lh=typeof window<"u"&&!!((Tm=window.document)!=null&&Tm.createElement),NT=lh&&!!(window.addEventListener||window.attachEvent),BT=lh&&!!window.screen,GT=!1,Di={OS:ue.OS,select:ue.select,isDOMAvailable:lh,canUseEventListeners:NT,canUseViewport:BT,isAsyncDebugging:GT};class lt extends Ro{constructor(e,n){super("ERR_UNAVAILABLE",`The method or property ${e}.${n} is not available on ${Di.OS}, are you sure you've linked all the native dependencies properly?`)}}var wA;(function(t){t.GRANTED="granted",t.UNDETERMINED="undetermined",t.DENIED="denied"})(wA||(wA={}));const Pe={get documentDirectory(){return null},get cacheDirectory(){return null},get bundleDirectory(){return null},addListener(t){},removeListeners(t){}};var bA;(function(t){t[t.BACKGROUND=0]="BACKGROUND",t[t.FOREGROUND=1]="FOREGROUND"})(bA||(bA={}));var Vp;(function(t){t[t.BINARY_CONTENT=0]="BINARY_CONTENT",t[t.MULTIPART=1]="MULTIPART"})(Vp||(Vp={}));var _s;(function(t){t.UTF8="utf8",t.Base64="base64"})(_s||(_s={}));Pe||console.warn("No native ExponentFileSystem module found, are you sure the expo-file-system's module is linked properly?");new uE(Pe);function ch(t){return t!=null?t.replace(/\/*$/,"")+"/":null}const dE=ch(Pe.documentDirectory);ch(Pe.cacheDirectory);ch(Pe.bundleDirectory);async function LT(t,e={}){if(!Pe.readAsStringAsync)throw new lt("expo-file-system","readAsStringAsync");return await Pe.readAsStringAsync(t,e)}async function AE(t,e,n={}){if(!Pe.writeAsStringAsync)throw new lt("expo-file-system","writeAsStringAsync");return await Pe.writeAsStringAsync(t,e,n)}async function VT(t,e={}){if(!Pe.deleteAsync)throw new lt("expo-file-system","deleteAsync");return await Pe.deleteAsync(t,e)}async function HT(t){if(!Pe.moveAsync)throw new lt("expo-file-system","moveAsync");return await Pe.moveAsync(t)}async function UT(t){if(!Pe.copyAsync)throw new lt("expo-file-system","copyAsync");return await Pe.copyAsync(t)}async function WT(t,e,n={}){if(!Pe.downloadAsync)throw new lt("expo-file-system","downloadAsync");return await Pe.downloadAsync(t,e,{sessionType:bA.BACKGROUND,...n})}const XT=LT,YT=AE,zT=VT,qT=HT,KT=UT;var fa;(function(t){function e(s){return`content://com.android.externalstorage.documents/tree/primary:${s}/document/primary:${s}`}t.getUriForDirectoryInRoot=e;async function n(s=null){if(!Pe.requestDirectoryPermissionsAsync)throw new lt("expo-file-system","StorageAccessFramework.requestDirectoryPermissionsAsync");return await Pe.requestDirectoryPermissionsAsync(s)}t.requestDirectoryPermissionsAsync=n;async function r(s){if(!Pe.readSAFDirectoryAsync)throw new lt("expo-file-system","StorageAccessFramework.readDirectoryAsync");return await Pe.readSAFDirectoryAsync(s)}t.readDirectoryAsync=r;async function i(s,o){if(!Pe.makeSAFDirectoryAsync)throw new lt("expo-file-system","StorageAccessFramework.makeDirectoryAsync");return await Pe.makeSAFDirectoryAsync(s,o)}t.makeDirectoryAsync=i;async function a(s,o,l){if(!Pe.createSAFFileAsync)throw new lt("expo-file-system","StorageAccessFramework.createFileAsync");return await Pe.createSAFFileAsync(s,o,l)}t.createFileAsync=a,t.writeAsStringAsync=YT,t.readAsStringAsync=XT,t.deleteAsync=zT,t.moveAsync=qT,t.copyAsync=KT})(fa||(fa={}));const Ou={async isAvailableAsync(){return typeof navigator>"u"?!1:!!navigator.share},async shareAsync(t,e={}){if(navigator.share)await navigator.share({...e,url:t});else throw new lt("navigator","share")}};async function $T(t,e={}){if(!Ou||!Ou.shareAsync)throw new lt("Sharing","shareAsync");return await Ou.shareAsync(t,e)}const jT={"application/pdf":"com.adobe.pdf","image/png":"public.png","image/jpeg":"public.jpeg","image/gif":"com.compuserve.gif","image/bmp":"com.microsoft.bmp","image/svg+xml":"public.svg-image"},QT=async(t,e)=>{const{headers:n,uri:r}=await WT(t,dE+e);return{uri:r,mimeType:n["content-type"]}},ZT={jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",pdf:"application/pdf",txt:"text/plain",mp4:"video/mp4",mp3:"audio/mpeg",json:"application/json"},uh=async({base64:t,downloadUri:e,fileName:n,localUri:r})=>{try{if(e){const{mimeType:i,uri:a}=await QT(e,n),s=await Hp(a);await ku(s,n,i)}else if(t)await ku(t.data,n,t.mimeType);else if(r){const i=await Hp(r);await ku(i,n)}else throw"Give either base64 or downloadUri as an argument to saveFile."}catch(i){throw Wc(i),i}},JT=async()=>{try{const t=await fa.requestDirectoryPermissionsAsync();if(t.granted)return t.directoryUri;throw"Not granted directory permission."}catch{throw"Requesting directory permission failed."}},e2=async(t,e,n="application/pdf")=>{try{return await fa.createFileAsync(t,e,n)}catch{throw"Creating empty file failed."}},Hp=async t=>{try{return await fa.readAsStringAsync(t,{encoding:_s.Base64})}catch{throw"Reading file as base64 string failed."}},t2=async(t,e)=>{try{await fa.writeAsStringAsync(t,e,{encoding:_s.Base64}),Wc(`saved to file ${t}`)}catch{throw"Writing base64 string to file failed."}},fE=async(t,e,n)=>{const r=`${dE}${e}`;try{await AE(r,t,{encoding:_s.Base64}),await $T(r,{mimeType:n,UTI:n?jT[n]:void 0}),Wc(`saved to file ${r}`)}catch{throw"Failed to share file with other applications."}},n2=async(t,e,n)=>{try{const r=await JT(),i=await e2(r,e,n);await t2(i,t)}catch(r){throw await fE(t,e,n),r}},ku=async(t,e,n)=>{const r=ZT[e.split(".").pop()||""]||n;ue.OS==="android"?await n2(t,e,r):await fE(t,e,r)};var hE={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(K,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",u="week",A="month",d="quarter",f="year",p="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var P=["th","st","nd","rd"],R=M%100;return"["+M+(P[(R-20)%10]||P[R]||P[0])+"]"}},v=function(M,P,R){var W=String(M);return!W||W.length>=P?M:""+Array(P+1-W.length).join(R)+M},C={s:v,z:function(M){var P=-M.utcOffset(),R=Math.abs(P),W=Math.floor(R/60),N=R%60;return(P<=0?"+":"-")+v(W,2,"0")+":"+v(N,2,"0")},m:function M(P,R){if(P.date()<R.date())return-M(R,P);var W=12*(R.year()-P.year())+(R.month()-P.month()),N=P.clone().add(W,A),U=R-N<0,Y=P.clone().add(W+(U?-1:1),A);return+(-(W+(R-N)/(U?N-Y:Y-N))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:A,y:f,w:u,d:c,D:p,h:l,m:o,s,ms:a,Q:d}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},y="en",x={};x[y]=m;var w="$isDayjsObject",S=function(M){return M instanceof O||!(!M||!M[w])},D=function M(P,R,W){var N;if(!P)return y;if(typeof P=="string"){var U=P.toLowerCase();x[U]&&(N=U),R&&(x[U]=R,N=U);var Y=P.split("-");if(!N&&Y.length>1)return M(Y[0])}else{var G=P.name;x[G]=P,N=G}return!W&&N&&(y=N),N||!W&&y},I=function(M,P){if(S(M))return M.clone();var R=typeof P=="object"?P:{};return R.date=M,R.args=arguments,new O(R)},b=C;b.l=D,b.i=S,b.w=function(M,P){return I(M,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var O=function(){function M(R){this.$L=D(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[w]=!0}var P=M.prototype;return P.parse=function(R){this.$d=function(W){var N=W.date,U=W.utc;if(N===null)return new Date(NaN);if(b.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var Y=N.match(g);if(Y){var G=Y[2]-1||0,H=(Y[7]||"0").substring(0,3);return U?new Date(Date.UTC(Y[1],G,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,H)):new Date(Y[1],G,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,H)}}return new Date(N)}(R),this.init()},P.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},P.$utils=function(){return b},P.isValid=function(){return this.$d.toString()!==h},P.isSame=function(R,W){var N=I(R);return this.startOf(W)<=N&&N<=this.endOf(W)},P.isAfter=function(R,W){return I(R)<this.startOf(W)},P.isBefore=function(R,W){return this.endOf(W)<I(R)},P.$g=function(R,W,N){return b.u(R)?this[W]:this.set(N,R)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(R,W){var N=this,U=!!b.u(W)||W,Y=b.p(R),G=function(ae,te){var re=b.w(N.$u?Date.UTC(N.$y,te,ae):new Date(N.$y,te,ae),N);return U?re:re.endOf(c)},H=function(ae,te){return b.w(N.toDate()[ae].apply(N.toDate("s"),(U?[0,0,0,0]:[23,59,59,999]).slice(te)),N)},L=this.$W,B=this.$M,X=this.$D,z="set"+(this.$u?"UTC":"");switch(Y){case f:return U?G(1,0):G(31,11);case A:return U?G(1,B):G(0,B+1);case u:var q=this.$locale().weekStart||0,Q=(L<q?L+7:L)-q;return G(U?X-Q:X+(6-Q),B);case c:case p:return H(z+"Hours",0);case l:return H(z+"Minutes",1);case o:return H(z+"Seconds",2);case s:return H(z+"Milliseconds",3);default:return this.clone()}},P.endOf=function(R){return this.startOf(R,!1)},P.$set=function(R,W){var N,U=b.p(R),Y="set"+(this.$u?"UTC":""),G=(N={},N[c]=Y+"Date",N[p]=Y+"Date",N[A]=Y+"Month",N[f]=Y+"FullYear",N[l]=Y+"Hours",N[o]=Y+"Minutes",N[s]=Y+"Seconds",N[a]=Y+"Milliseconds",N)[U],H=U===c?this.$D+(W-this.$W):W;if(U===A||U===f){var L=this.clone().set(p,1);L.$d[G](H),L.init(),this.$d=L.set(p,Math.min(this.$D,L.daysInMonth())).$d}else G&&this.$d[G](H);return this.init(),this},P.set=function(R,W){return this.clone().$set(R,W)},P.get=function(R){return this[b.p(R)]()},P.add=function(R,W){var N,U=this;R=Number(R);var Y=b.p(W),G=function(B){var X=I(U);return b.w(X.date(X.date()+Math.round(B*R)),U)};if(Y===A)return this.set(A,this.$M+R);if(Y===f)return this.set(f,this.$y+R);if(Y===c)return G(1);if(Y===u)return G(7);var H=(N={},N[o]=r,N[l]=i,N[s]=n,N)[Y]||1,L=this.$d.getTime()+R*H;return b.w(L,this)},P.subtract=function(R,W){return this.add(-1*R,W)},P.format=function(R){var W=this,N=this.$locale();if(!this.isValid())return N.invalidDate||h;var U=R||"YYYY-MM-DDTHH:mm:ssZ",Y=b.z(this),G=this.$H,H=this.$m,L=this.$M,B=N.weekdays,X=N.months,z=N.meridiem,q=function(te,re,Z,ie){return te&&(te[re]||te(W,U))||Z[re].slice(0,ie)},Q=function(te){return b.s(G%12||12,te,"0")},ae=z||function(te,re,Z){var ie=te<12?"AM":"PM";return Z?ie.toLowerCase():ie};return U.replace(E,function(te,re){return re||function(Z){switch(Z){case"YY":return String(W.$y).slice(-2);case"YYYY":return b.s(W.$y,4,"0");case"M":return L+1;case"MM":return b.s(L+1,2,"0");case"MMM":return q(N.monthsShort,L,X,3);case"MMMM":return q(X,L);case"D":return W.$D;case"DD":return b.s(W.$D,2,"0");case"d":return String(W.$W);case"dd":return q(N.weekdaysMin,W.$W,B,2);case"ddd":return q(N.weekdaysShort,W.$W,B,3);case"dddd":return B[W.$W];case"H":return String(G);case"HH":return b.s(G,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return ae(G,H,!0);case"A":return ae(G,H,!1);case"m":return String(H);case"mm":return b.s(H,2,"0");case"s":return String(W.$s);case"ss":return b.s(W.$s,2,"0");case"SSS":return b.s(W.$ms,3,"0");case"Z":return Y}return null}(te)||Y.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(R,W,N){var U,Y=this,G=b.p(W),H=I(R),L=(H.utcOffset()-this.utcOffset())*r,B=this-H,X=function(){return b.m(Y,H)};switch(G){case f:U=X()/12;break;case A:U=X();break;case d:U=X()/3;break;case u:U=(B-L)/6048e5;break;case c:U=(B-L)/864e5;break;case l:U=B/i;break;case o:U=B/r;break;case s:U=B/n;break;default:U=B}return N?U:b.a(U)},P.daysInMonth=function(){return this.endOf(A).$D},P.$locale=function(){return x[this.$L]},P.locale=function(R,W){if(!R)return this.$L;var N=this.clone(),U=D(R,W,!0);return U&&(N.$L=U),N},P.clone=function(){return b.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},M}(),T=O.prototype;return I.prototype=T,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",A],["$y",f],["$D",p]].forEach(function(M){T[M[1]]=function(P){return this.$g(P,M[0],M[1])}}),I.extend=function(M,P){return M.$i||(M(P,O,I),M.$i=!0),I},I.locale=D,I.isDayjs=S,I.unix=function(M){return I(1e3*M)},I.en=x[y],I.Ls=x,I.p={},I})})(hE);var pE=hE.exports;const Gr=Ur(pE);var gE={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(K,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,a,s){var o,l=function(d,f,p){p===void 0&&(p={});var h=new Date(d),g=function(E,m){m===void 0&&(m={});var v=m.timeZoneName||"short",C=E+"|"+v,y=r[C];return y||(y=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:E,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:v}),r[C]=y),y}(f,p);return g.formatToParts(h)},c=function(d,f){for(var p=l(d,f),h=[],g=0;g<p.length;g+=1){var E=p[g],m=E.type,v=E.value,C=n[m];C>=0&&(h[C]=parseInt(v,10))}var y=h[3],x=y===24?0:y,w=h[0]+"-"+h[1]+"-"+h[2]+" "+x+":"+h[4]+":"+h[5]+":000",S=+d;return(s.utc(w).valueOf()-(S-=S%1e3))/6e4},u=a.prototype;u.tz=function(d,f){d===void 0&&(d=o);var p,h=this.utcOffset(),g=this.toDate(),E=g.toLocaleString("en-US",{timeZone:d}),m=Math.round((g-new Date(E))/1e3/60),v=15*-Math.round(g.getTimezoneOffset()/15)-m;if(!Number(v))p=this.utcOffset(0,f);else if(p=s(E,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(v,!0),f){var C=p.utcOffset();p=p.add(h-C,"minute")}return p.$x.$timezone=d,p},u.offsetName=function(d){var f=this.$x.$timezone||s.tz.guess(),p=l(this.valueOf(),f,{timeZoneName:d}).find(function(h){return h.type.toLowerCase()==="timezonename"});return p&&p.value};var A=u.startOf;u.startOf=function(d,f){if(!this.$x||!this.$x.$timezone)return A.call(this,d,f);var p=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return A.call(p,d,f).tz(this.$x.$timezone,!0)},s.tz=function(d,f,p){var h=p&&f,g=p||f||o,E=c(+s(),g);if(typeof d!="string")return s(d).tz(g);var m=function(x,w,S){var D=x-60*w*1e3,I=c(D,S);if(w===I)return[D,w];var b=c(D-=60*(I-w)*1e3,S);return I===b?[D,I]:[x-60*Math.min(I,b)*1e3,Math.max(I,b)]}(s.utc(d,h).valueOf(),E,g),v=m[0],C=m[1],y=s(v).utcOffset(C);return y.$x.$timezone=g,y},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(d){o=d}}})})(gE);var r2=gE.exports;const i2=Ur(r2);var vE={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(K,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,s,o){var l=s.prototype;o.utc=function(h){var g={date:h,utc:!0,args:arguments};return new s(g)},l.utc=function(h){var g=o(this.toDate(),{locale:this.$L,utc:!0});return h?g.add(this.utcOffset(),n):g},l.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),c.call(this,h)};var u=l.init;l.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else u.call(this)};var A=l.utcOffset;l.utcOffset=function(h,g){var E=this.$utils().u;if(E(h))return this.$u?0:E(this.$offset)?A.call(this):this.$offset;if(typeof h=="string"&&(h=function(y){y===void 0&&(y="");var x=y.match(r);if(!x)return null;var w=(""+x[0]).match(i)||["-",0,0],S=w[0],D=60*+w[1]+ +w[2];return D===0?0:S==="+"?D:-D}(h),h===null))return this;var m=Math.abs(h)<=16?60*h:h,v=this;if(g)return v.$offset=m,v.$u=h===0,v;if(h!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(v=this.local().add(m+C,n)).$offset=m,v.$x.$localOffset=C}else v=this.utc();return v};var d=l.format;l.format=function(h){var g=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,g)},l.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var f=l.toDate;l.toDate=function(h){return h==="s"&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var p=l.diff;l.diff=function(h,g,E){if(h&&this.$u===h.$u)return p.call(this,h,g,E);var m=this.local(),v=o(h).local();return p.call(m,v,g,E)}}})})(vE);var a2=vE.exports;const s2=Ur(a2);var o2={exports:{}};(function(t,e){(function(n,r){t.exports=r(pE)})(K,function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=r(n),a={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(s){return"["+s+(s===1||s===8||s>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return i.default.locale(a,null,!0),a})})(o2);const l2="Europe/Amsterdam";Gr.extend(s2);Gr.extend(i2);Gr.locale("nl");Gr.tz.setDefault(l2);const nu=t=>{const e=Gr(t).format();return Gr(e)},dh=t=>{const e=Gr.unix(t);return Gr(e)},c2=t=>t==null||t===""?"":nu(t).format("D MMMM YYYY HH:mm:ss"),mE=async()=>{try{const{transcript:t,entryId:e}=await yI(),n=`Chatgeschiedenis ${c2(nu()).replaceAll(":"," ")}.pdf`;return await uh({base64:{data:t,mimeType:"application/pdf"},fileName:n}),e}catch(t){kf(t,JSON.stringify(t)),Jn.alert("Chat downloaden mislukt.")}};var CE=(t=>(t.getRedirectUrls="getRedirectUrls",t))(CE||{}),No=(t=>(t.acknowledgeChild="acknowledgeChild",t.birth="birth",t.chatPrivacy="chatPrivacy",t.cityPassChildBudget="cityPassChildBudget",t.cityPassRequest="cityPassRequest",t.cityPassUsage="cityPassUsage",t.citypass="citypass",t.contactForm="contactForm",t.documents="documents",t.feedbackForm="feedbackForm",t.immigration="immigration",t.income_help="income_help",t.lifelessBirth="lifelessBirth",t.makeAppointMentWeesp="makeAppointMentWeesp",t.marriage="marriage",t.marriagePermission="marriagePermission",t.naturalisation="naturalisation",t.parking="parking",t.parking_visitors="parking_visitors",t.passing="passing",t.passingForFuneralDirectors="passingForFuneralDirectors",t.relocation="relocation",t))(No||{}),ha=function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(u){c=[6,u],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},cl=function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},u2=Object.defineProperty,d2=Object.defineProperties,A2=Object.getOwnPropertyDescriptors,ul=Object.getOwnPropertySymbols,EE=Object.prototype.hasOwnProperty,xE=Object.prototype.propertyIsEnumerable,Up=function(t,e,n){return e in t?u2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},Ne=function(t,e){for(var n in e||(e={}))EE.call(e,n)&&Up(t,n,e[n]);if(ul)for(var r=0,i=ul(e);r<i.length;r++){var n=i[r];xE.call(e,n)&&Up(t,n,e[n])}return t},Sn=function(t,e){return d2(t,A2(e))},Wp=function(t,e){var n={};for(var r in t)EE.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ul)for(var i=0,a=ul(t);i<a.length;i++){var r=a[i];e.indexOf(r)<0&&xE.call(t,r)&&(n[r]=t[r])}return n},pa=function(t,e,n){return new Promise(function(r,i){var a=function(l){try{o(n.next(l))}catch(c){i(c)}},s=function(l){try{o(n.throw(l))}catch(c){i(c)}},o=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(a,s)};o((n=n.apply(t,e)).next())})},Re;(function(t){t.uninitialized="uninitialized",t.pending="pending",t.fulfilled="fulfilled",t.rejected="rejected"})(Re||(Re={}));function f2(t){return{status:t,isUninitialized:t===Re.uninitialized,isLoading:t===Re.pending,isSuccess:t===Re.fulfilled,isError:t===Re.rejected}}function h2(t){return new RegExp("(^|:)//").test(t)}var p2=function(t){return t.replace(/\/$/,"")},g2=function(t){return t.replace(/^\//,"")};function v2(t,e){if(!t)return e;if(!e)return t;if(h2(e))return e;var n=t.endsWith("/")||!e.startsWith("?")?"/":"";return t=p2(t),e=g2(e),""+t+n+e}var Xp=function(t){return[].concat.apply([],t)};function m2(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function C2(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var Yp=bi;function yE(t,e){if(t===e||!(Yp(t)&&Yp(e)||Array.isArray(t)&&Array.isArray(e)))return e;for(var n=Object.keys(e),r=Object.keys(t),i=n.length===r.length,a=Array.isArray(e)?[]:{},s=0,o=n;s<o.length;s++){var l=o[s];a[l]=yE(t[l],e[l]),i&&(i=t[l]===a[l])}return i?t:a}var zp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return fetch.apply(void 0,t)},E2=function(t){return t.status>=200&&t.status<=299},x2=function(t){return/ion\/(vnd\.api\+)?json/.test(t.get("content-type")||"")};function qp(t){if(!bi(t))return t;for(var e=Ne({},t),n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],a=i[0],s=i[1];s===void 0&&delete e[a]}return e}function y2(t){var e=this;t===void 0&&(t={});var n=t,r=n.baseUrl,i=n.prepareHeaders,a=i===void 0?function(v){return v}:i,s=n.fetchFn,o=s===void 0?zp:s,l=n.paramsSerializer,c=n.isJsonContentType,u=c===void 0?x2:c,A=n.jsonContentType,d=A===void 0?"application/json":A,f=n.jsonReplacer,p=n.timeout,h=n.responseHandler,g=n.validateStatus,E=Wp(n,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","responseHandler","validateStatus"]);return typeof fetch>"u"&&o===zp&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(v,C){return pa(e,null,function(){var y,x,w,S,D,I,b,O,T,M,P,R,W,N,U,Y,G,H,L,B,X,z,q,Q,ae,te,re,Z,ie,we,be,Se,ye,ne,Be,ut;return ha(this,function(me){switch(me.label){case 0:return y=C.signal,x=C.getState,w=C.extra,S=C.endpoint,D=C.forced,I=C.type,O=typeof v=="string"?{url:v}:v,T=O.url,M=O.headers,P=M===void 0?new Headers(E.headers):M,R=O.params,W=R===void 0?void 0:R,N=O.responseHandler,U=N===void 0?h??"json":N,Y=O.validateStatus,G=Y===void 0?g??E2:Y,H=O.timeout,L=H===void 0?p:H,B=Wp(O,["url","headers","params","responseHandler","validateStatus","timeout"]),X=Ne(Sn(Ne({},E),{signal:y}),B),P=new Headers(qp(P)),z=X,[4,a(P,{getState:x,extra:w,endpoint:S,forced:D,type:I})];case 1:z.headers=me.sent()||P,q=function(de){return typeof de=="object"&&(bi(de)||Array.isArray(de)||typeof de.toJSON=="function")},!X.headers.has("content-type")&&q(X.body)&&X.headers.set("content-type",d),q(X.body)&&u(X.headers)&&(X.body=JSON.stringify(X.body,f)),W&&(Q=~T.indexOf("?")?"&":"?",ae=l?l(W):new URLSearchParams(qp(W)),T+=Q+ae),T=v2(r,T),te=new Request(T,X),re=new Request(T,X),b={request:re},ie=!1,we=L&&setTimeout(function(){ie=!0,C.abort()},L),me.label=2;case 2:return me.trys.push([2,4,5,6]),[4,o(te)];case 3:return Z=me.sent(),[3,6];case 4:return be=me.sent(),[2,{error:{status:ie?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(be)},meta:b}];case 5:return we&&clearTimeout(we),[7];case 6:Se=Z.clone(),b.response=Se,ne="",me.label=7;case 7:return me.trys.push([7,9,,10]),[4,Promise.all([m(Z,U).then(function(de){return ye=de},function(de){return Be=de}),Se.text().then(function(de){return ne=de},function(){})])];case 8:if(me.sent(),Be)throw Be;return[3,10];case 9:return ut=me.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:Z.status,data:ne,error:String(ut)},meta:b}];case 10:return[2,G(Z,ye)?{data:ye,meta:b}:{error:{status:Z.status,data:ye},meta:b}]}})})};function m(v,C){return pa(this,null,function(){var y;return ha(this,function(x){switch(x.label){case 0:return typeof C=="function"?[2,C(v)]:(C==="content-type"&&(C=u(v.headers)?"json":"text"),C!=="json"?[3,2]:[4,v.text()]);case 1:return y=x.sent(),[2,y.length?JSON.parse(y):null];case 2:return[2,v.text()]}})})}}var sa=function(){function t(e,n){n===void 0&&(n=void 0),this.value=e,this.meta=n}return t}();function I2(t,e){return t===void 0&&(t=0),e===void 0&&(e=5),pa(this,null,function(){var n,r;return ha(this,function(i){switch(i.label){case 0:return n=Math.min(t,e),r=~~((Math.random()+.4)*(300<<n)),[4,new Promise(function(a){return setTimeout(function(s){return a(s)},r)})];case 1:return i.sent(),[2]}})})}function w2(t){throw Object.assign(new sa({error:t}),{throwImmediately:!0})}var Kp={},b2=function(t,e){return function(n,r,i){return pa(void 0,null,function(){var a,s,o,l,c,u,A;return ha(this,function(d){switch(d.label){case 0:a=[5,(e||Kp).maxRetries,(i||Kp).maxRetries].filter(function(f){return f!==void 0}),s=a.slice(-1)[0],o=function(f,p,h){var g=h.attempt;return g<=s},l=Ne(Ne({maxRetries:s,backoff:I2,retryCondition:o},e),i),c=0,d.label=1;case 1:d.label=2;case 2:return d.trys.push([2,4,,6]),[4,t(n,r,i)];case 3:if(u=d.sent(),u.error)throw new sa(u);return[2,u];case 4:if(A=d.sent(),c++,A.throwImmediately){if(A instanceof sa)return[2,A.value];throw A}return A instanceof sa&&!l.retryCondition(A.value.error,n,{attempt:c,baseQueryApi:r,extraOptions:i})?[2,A.value]:[4,l.backoff(c,l.maxRetries)];case 5:return d.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})}},Mu=Object.assign(b2,{fail:w2}),Ah=Ea("__rtkq/focused"),IE=Ea("__rtkq/unfocused"),fh=Ea("__rtkq/online"),wE=Ea("__rtkq/offline"),Rn;(function(t){t.query="query",t.mutation="mutation"})(Rn||(Rn={}));function bE(t){return t.type===Rn.query}function S2(t){return t.type===Rn.mutation}function hh(t,e,n,r,i,a){return _2(t)?t(e,n,r,i).map(SA).map(a):Array.isArray(t)?t.map(SA).map(a):[]}function _2(t){return typeof t=="function"}function SA(t){return typeof t=="string"?{type:t}:t}function Pu(t){return t!=null}var Ds=Symbol("forceQueryFn"),_A=function(t){return typeof t[Ds]=="function"};function D2(t){var e=t.serializeQueryArgs,n=t.queryThunk,r=t.mutationThunk,i=t.api,a=t.context,s=new Map,o=new Map,l=i.internalActions,c=l.unsubscribeQueryResult,u=l.removeMutationResult,A=l.updateSubscriptionOptions;return{buildInitiateQuery:m,buildInitiateMutation:v,getRunningQueryThunk:p,getRunningMutationThunk:h,getRunningQueriesThunk:g,getRunningMutationsThunk:E,getRunningOperationPromises:f,removalWarning:d};function d(){throw new Error(`This method had to be removed due to a conceptual bug in RTK. + }})`);return Object.assign(e,t),e}function AD(t,e,n){"worklet";const{leftEdgeInput:r,rightEdgeInput:i,leftEdgeOutput:a,rightEdgeOutput:s}=e;if(i-r===0)return a;const o=(t-r)/(i-r),l=a+o*(s-a),c=s>=a?1:-1;return c*l<c*a?Gp(n.extrapolateLeft,c,l,a,s,t):c*l>c*s?Gp(n.extrapolateRight,c,l,a,s,t):l}function Lt(t,e,n,r){"worklet";if(e.length<2||n.length<2)throw new oe("Interpolation input and output ranges should contain at least two values.");const i=dD(r),a=e.length,s={leftEdgeInput:e[0],rightEdgeInput:e[1],leftEdgeOutput:n[0],rightEdgeOutput:n[1]};if(a>2){if(t>e[a-1])s.leftEdgeInput=e[a-2],s.rightEdgeInput=e[a-1],s.leftEdgeOutput=n[a-2],s.rightEdgeOutput=n[a-1];else for(let o=1;o<a;++o)if(t<=e[o]){s.leftEdgeInput=e[o-1],s.rightEdgeInput=e[o],s.leftEdgeOutput=n[o-1],s.rightEdgeOutput=n[o];break}}return AD(t,s,i)}function fD(t,e,n){"worklet";return Math.min(Math.max(t,e),n)}const hD=Ye,pD=(t,e,n,r)=>{"worklet";let i=0;const{useCorrectedHSVInterpolation:a=!0}=r;if(a){const c=[e[0]],u=n.h,A=[u[0]];for(let d=1;d<u.length;++d){const f=u[d]-u[d-1];u[d]>u[d-1]&&f>.5?(c.push(e[d]),c.push(e[d]+1e-5),A.push(u[d]-1),A.push(u[d])):u[d]<u[d-1]&&f<-.5?(c.push(e[d]),c.push(e[d]+1e-5),A.push(u[d]+1),A.push(u[d])):(c.push(e[d]),A.push(u[d]))}i=(Lt(t,c,A,Ye.CLAMP)+1)%1}else i=Lt(t,e,n.h,Ye.CLAMP);const s=Lt(t,e,n.s,Ye.CLAMP),o=Lt(t,e,n.v,Ye.CLAMP),l=Lt(t,e,n.a,Ye.CLAMP);return Nw(i,s,o,l)},bu=(t,e)=>{"worklet";return t.map(n=>Math.pow(n/255,e))},Su=(t,e)=>{"worklet";return Math.round(Math.pow(t,1/e)*255)},gD=(t,e,n,r)=>{"worklet";const{gamma:i=2.2}=r;let{r:a,g:s,b:o}=n;i!==1&&(a=bu(a,i),s=bu(s,i),o=bu(o,i));const l=Lt(t,e,a,Ye.CLAMP),c=Lt(t,e,s,Ye.CLAMP),u=Lt(t,e,o,Ye.CLAMP),A=Lt(t,e,n.a,Ye.CLAMP);return i===1?Qd(l,c,u,A):Qd(Su(l,i),Su(c,i),Su(u,i),A)},vD=t=>{"worklet";const e=[],n=[],r=[],i=[];for(let a=0;a<t.length;++a){const s=t[a],o=Qc(s);o!=null&&(e.push(bC(o)),n.push(SC(o)),r.push(_C(o)),i.push(wC(o)))}return{r:e,g:n,b:r,a:i}},mD=t=>{"worklet";const e=[],n=[],r=[],i=[];for(let a=0;a<t.length;++a){const s=t[a],o=Qc(s);if(typeof o=="number"){const l=Fw(bC(o),SC(o),_C(o));e.push(l.h),n.push(l.s),r.push(l.v),i.push(wC(o))}}return{h:e,s:n,v:r,a:i}};function xA(t,e,n,r="RGB",i={}){"worklet";if(r==="HSV")return pD(t,e,mD(n),i);if(r==="RGB")return gD(t,e,vD(n),i);throw new oe(`Invalid color space provided: ${r}. Supported values are: ['RGB', 'HSV'].`)}let eE=function(t){return t[t.RGB=0]="RGB",t[t.HSV=1]="HSV",t}({});function CD(t,e,n=eE.RGB,r={}){return ct({inputRange:t,outputRange:e,colorSpace:n,cache:Pn(null),options:r})}function ED(){Oe.warn("dispatchCommand() is not supported on web.")}function tE(t){const e=t();if(e===-1)return Oe.warn(`The view with tag ${e} is not a valid argument for measure(). This may be because the view is not currently rendered, which may not be a bug (e.g. an off-screen FlatList item).`),null;const n=e.getBoundingClientRect();return{width:e.offsetWidth,height:e.offsetHeight,x:e.offsetLeft,y:e.offsetTop,pageX:n.left,pageY:n.top}}function xD(t,e,n,r){const i=t();if(i!==-1){const a=i;a==null||a.scrollTo({x:e,y:n,animated:r})}}function yD(){Oe.warn("setGestureState() is not available on web.")}function ID(t,e){const n=t();$c(e,n)}function wD(t,e,n){"worklet";const r=tE(t);return r===null?null:{x:e-r.pageX,y:n-r.pageY}}function bD(t,e){const n={};return e==null||e.forEach(r=>{n[r]=!0}),th(n),t}function SD(){return"It looks like you might be using shared value's .value inside reanimated inline style. If you want a component to update when shared value changes you should use the shared value directly instead of its current state represented by `.value`. See documentation here: https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary/#animations-in-inline-styling"}function _D(){}function DD(){}function TD(){}function OD(){}function kD(){}function nE(t){"worklet";return{next:0,buffer:new Float32Array(t),size:t,count:0,push(e){const n=this.buffer[this.next],r=this.count;return this.buffer[this.next]=e,this.next=(this.next+1)%this.size,this.count=Math.min(this.size,this.count+1),r===this.size?n:null},front(){if(this.count>0){const n=this.next-1,r=n<0?this.size-1:n;return this.buffer[r]}return null},back(){return this.count>0?this.buffer[this.next]:null}}}const MD=20;th({text:!0});const rE=Fi(Nf);function PD(t){let e=0;function n(){requestAnimationFrame(r=>{e>0&&t(e,r),e=r,requestAnimationFrame(n)})}n()}function FD(t){"worklet";return 1e3/t}function iE(t,e){"worklet";e=Math.round(e);const n=t.push(e)??e,r=e-n;return FD(r/t.count)}function RD({smoothingFrames:t}){const e=ct(null),n=ct(0),r=_.useRef(nE(t));_.useEffect(()=>{PD((a,s)=>{s=Math.round(s);const o=iE(r.current,s);e.value=(o*2).toFixed(0)})},[e,n]);const i=lh(()=>{const a="JS: "+(e.value??"N/A")+" ";return{text:a,defaultValue:a}});return k.jsx(pe,{style:Ss.container,children:k.jsx(rE,{style:Ss.text,animatedProps:i,editable:!1})})}function ND({smoothingFrames:t}){const e=ct(null),n=ct(null);ZC(({timestamp:i})=>{n.value===null&&(n.value=nE(t)),i=Math.round(i);const a=iE(n.value,i);e.value=a.toFixed(0)});const r=lh(()=>{const i="UI: "+(e.value??"N/A")+" ";return{text:i,defaultValue:i}});return k.jsx(pe,{style:Ss.container,children:k.jsx(rE,{style:Ss.text,animatedProps:r,editable:!1})})}function BD({smoothingFrames:t=MD}){return k.jsxs(pe,{style:Ss.monitor,children:[k.jsx(RD,{smoothingFrames:t}),k.jsx(ND,{smoothingFrames:t})]})}const Ss=he.create({monitor:{flexDirection:"row",position:"absolute",backgroundColor:"#0006",zIndex:1e3},header:{fontSize:14,color:"#ffff",paddingHorizontal:5},text:{fontSize:13,color:"#ffff",fontFamily:"monospace",paddingHorizontal:3},container:{alignItems:"center",justifyContent:"center",flexDirection:"row",flexWrap:"wrap"}});function GD({mode:t}){return _.useEffect(()=>{},[]),_.useEffect(()=>{const e=yn.jsValue;switch(t){case on.System:yn.setEnabled($f());break;case on.Always:yn.setEnabled(!0);break;case on.Never:yn.setEnabled(!1);break}return()=>{yn.setEnabled(e)}},[t]),null}const LD=Ct();function VD(t){"worklet";return{tag:t,name:"RCTView"}}function HD(t){"worklet";return{shadowNodeWrapper:t}}const aE=LD?HD:VD;function UD(t,e){"worklet";const{screenDimensions:n,topScreenId:r,screenTransition:i}=t,{topScreenStyle:a}=i,s=a(e,n),o={value:[aE(r)]};sr(o,s,void 0)}function sE(t,e){"worklet";const{screenDimensions:n,belowTopScreenId:r,screenTransition:i}=t,{belowTopScreenStyle:a}=i,s=a(e,n),o={value:[aE(r)]};sr(o,s,void 0)}function yA(t,e){"worklet";UD(t,e),sE(t,e)}function _u(t){return()=>{"worklet";return Oe.warn("RNScreensTurboModule has not been found. Check that you have installed `react-native-screens@3.30.0` or newer in your project and rebuilt your app."),t}}const WD=global.RNScreensTurboModule||{startTransition:_u({topScreenId:-1,belowTopScreenId:-1,canStartTransition:!1}),updateTransition:_u(),finishTransition:_u()},Du=400,XD=400,YD=500,zD=600;function oo(t,e,n){"worklet";if(Math.abs(e)<1)return 1;const r=(_getAnimationTimestamp()-t)/1e3;return n*r/e}function lo(t){"worklet";return 1-Math.pow(1-t,5)}function qD(t,e,n){"worklet";const r=t.screenDimensions,i=Math.abs(e.translationX/r.width),a=Math.abs(e.translationY/r.height),s=Math.max(i,a);return n?s/2:s}function Lp(t,e,n,r,i){"worklet";var a;if(e)(a=n.onFinishAnimation)==null||a.call(n);else{const s=n.stackTag,o=qD(n,r,i);WD.updateTransition(s,o),requestAnimationFrame(t)}}function KD(t,e,n){"worklet";const r=e.screenDimensions,i=_getAnimationTimestamp(),{isTransitionCanceled:a}=e,s={x:t.translationX,y:t.translationY},o={x:Math.sign(t.translationX),y:Math.sign(t.translationY)},l=a?{x:0,y:0}:{x:o.x*r.width,y:o.y*r.height},c={x:Math.abs(l.x-s.x),y:Math.abs(l.y-s.y)},u={x:!1,y:!1},A={x:Du,y:Du};if(n==="x")A.y=0,A.x+=XD*c.x/r.width;else if(n==="y")A.x=0,A.y+=YD*c.y/r.height;else{const d=Math.sqrt(c.x**2+c.y**2),f=Math.sqrt(r.width**2+r.height**2),p=Du+zD*d/f;Math.abs(s.x)>Math.abs(s.y)?(A.x=p,A.y=p*Math.abs(s.y/s.x)):(A.x=p*Math.abs(s.x/s.y),A.y=p)}if(a){let d=function(){return n==="x"?u.x:(n==="y"||u.x)&&u.y},f=function(){t.translationX=o.x*r.width,t.translationY=o.y*r.height,sE(e,t)};const p=()=>{const h={x:oo(i,c.x,A.x),y:oo(i,c.y,A.y)};t.translationX=s.x-o.x*c.x*lo(h.x),t.translationY=s.y-o.y*c.y*lo(h.y),o.x>0?t.translationX<=0&&(u.x=!0,t.translationX=0):t.translationX>=0&&(u.x=!0,t.translationX=0),o.y>0?t.translationY<=0&&(u.y=!0,t.translationY=0):t.translationY>=0&&(u.y=!0,t.translationY=0),yA(e,t);const g=d();g&&f(),Lp(p,g,e,t,a)};return p}else{const d=()=>{const f={x:oo(i,c.x,A.x),y:oo(i,c.y,A.y)};t.translationX=s.x+o.x*c.x*lo(f.x),t.translationY=s.y+o.y*c.y*lo(f.y),o.x>0?t.translationX>=r.width&&(u.x=!0,t.translationX=r.width):t.translationX<=-r.width&&(u.x=!0,t.translationX=-r.width),o.y>0?t.translationY>=r.height&&(u.y=!0,t.translationY=r.height):t.translationY<=-r.height&&(u.y=!0,t.translationY=-r.height),yA(e,t),Lp(d,u.x||u.y,e,t,a)};return d}}Jc();function $D(t){"worklet";const{stackTag:e,sharedEvent:n}=t;n.addListener(e,()=>{yA(t,n.value)})}function jD(t){"worklet";if(["swipeRight","swipeLeft","horizontalSwipe"].includes(t))return"x";if(["swipeUp","swipeDown","verticalSwipe"].includes(t))return"y"}function QD(t){"worklet";const{stackTag:e,sharedEvent:n,goBackGesture:r}=t;n.removeListener(e);const i=jD(r);KD(n.value,t,i)()}const ZD={topScreenStyle:t=>{"worklet";return{transform:[{translateX:t.translationX}]}},belowTopScreenStyle:(t,e)=>{"worklet";return{transform:[{translateX:(t.translationX-e.width)*.3}]}}},JD={topScreenStyle:t=>{"worklet";return{transform:[{translateX:t.translationX}]}},belowTopScreenStyle:(t,e)=>{"worklet";return{transform:[{translateX:(t.translationX+e.width)*.3}]}}},eT={topScreenStyle:t=>{"worklet";return{transform:[{translateY:t.translationY}]}},belowTopScreenStyle:(t,e)=>{"worklet";return{transform:[{translateY:(t.translationY-e.height)*.3}]}}},tT={topScreenStyle:t=>{"worklet";return{transform:[{translateY:t.translationY}]}},belowTopScreenStyle:(t,e)=>{"worklet";return{transform:[{translateY:(t.translationY+e.height)*.3}]}}},nT={topScreenStyle:(t,e)=>{"worklet";return{transform:[{translateX:t.translationX},{translateY:t.translationY}]}},belowTopScreenStyle:(t,e)=>{"worklet";return{}}},rT={topScreenStyle:(t,e)=>{"worklet";return{transform:[{translateX:t.translationX}]}},belowTopScreenStyle:(t,e)=>{"worklet";return{}}},iT={topScreenStyle:(t,e)=>{"worklet";return{transform:[{translateY:t.translationY}]}},belowTopScreenStyle:(t,e)=>{"worklet";return{}}},aT={topScreenStyle:(t,e)=>{"worklet";return{opacity:1-Math.abs(t.translationX/e.width)}},belowTopScreenStyle:(t,e)=>{"worklet";return{}}},sT={SwipeRight:ZD,SwipeLeft:JD,SwipeDown:eT,SwipeUp:tT,Horizontal:rT,Vertical:iT,TwoDimensional:nT,SwipeRightFade:aT},oT=Object.freeze(Object.defineProperty({__proto__:null,BaseAnimationBuilder:Pi,BounceIn:qb,BounceInDown:X0,BounceInLeft:z0,BounceInRight:q0,BounceInUp:Y0,BounceOut:Kb,BounceOutDown:K0,BounceOutLeft:j0,BounceOutRight:Q0,BounceOutUp:$0,ColorSpace:eE,ComplexAnimationBuilder:ee,CurvedTransition:Jb,Easing:Je,EntryExitTransition:LC,Extrapolate:hD,Extrapolation:Ye,FadeIn:nh,FadeInDown:C0,FadeInLeft:v0,FadeInRight:g0,FadeInUp:m0,FadeOut:rh,FadeOutDown:I0,FadeOutLeft:x0,FadeOutRight:E0,FadeOutUp:y0,FadingTransition:jb,FlipInEasyX:i0,FlipInEasyY:a0,FlipInXDown:n0,FlipInXUp:e0,FlipInYLeft:t0,FlipInYRight:r0,FlipOutEasyX:u0,FlipOutEasyY:d0,FlipOutXDown:l0,FlipOutXUp:s0,FlipOutYLeft:o0,FlipOutYRight:c0,IOSReferenceFrame:oC,InterfaceOrientation:yi,JumpingTransition:Zb,KeyboardState:lC,Keyframe:eh,Layout:$b,LayoutAnimationConfig:eu,LightSpeedInLeft:J0,LightSpeedInRight:Z0,LightSpeedOutLeft:tA,LightSpeedOutRight:eA,LinearTransition:GC,PerformanceMonitor:BD,PinwheelIn:nA,PinwheelOut:rA,ReanimatedLogLevel:Kc,ReduceMotion:on,ReducedMotionConfig:GD,RollInLeft:AA,RollInRight:fA,RollOutLeft:hA,RollOutRight:pA,RotateInDownLeft:iA,RotateInDownRight:aA,RotateInUpLeft:sA,RotateInUpRight:oA,RotateOutDownLeft:lA,RotateOutDownRight:cA,RotateOutUpLeft:uA,RotateOutUpRight:dA,ScreenTransition:sT,SensorType:Ze,SequencedTransition:Qb,SharedTransition:Sr,SharedTransitionType:Gb,SlideInDown:_i,SlideInLeft:b0,SlideInRight:w0,SlideInUp:D0,SlideOutDown:Is,SlideOutLeft:_0,SlideOutRight:S0,SlideOutUp:T0,StretchInX:A0,StretchInY:f0,StretchOutX:h0,StretchOutY:p0,ZoomIn:Yb,ZoomInDown:F0,ZoomInEasyDown:N0,ZoomInEasyUp:R0,ZoomInLeft:k0,ZoomInRight:M0,ZoomInRotate:O0,ZoomInUp:P0,ZoomOut:zb,ZoomOutDown:H0,ZoomOutEasyDown:W0,ZoomOutEasyUp:U0,ZoomOutLeft:G0,ZoomOutRight:L0,ZoomOutRotate:B0,ZoomOutUp:V0,advanceAnimationByFrame:TD,advanceAnimationByTime:DD,cancelAnimation:DC,clamp:fD,combineTransition:eS,configureReanimatedLogger:Wb,convertToRGBA:Ja,createAnimatedPropAdapter:bD,createWorkletRuntime:Ew,default:$t,defineAnimation:Ar,dispatchCommand:ED,enableLayoutAnimations:IC,executeOnUIRuntimeSync:ra,finishScreenTransition:QD,getAnimatedStyle:kD,getRelativeCoords:wD,getUseOfValueInStyleWarning:SD,getViewProp:ww,interpolate:Lt,interpolateColor:xA,isColor:Zd,isConfigured:Iw,isReanimated3:yC,isSharedValue:Rr,isWorkletFunction:Ko,makeMutable:Pn,makeShareableCloneRecursive:Ue,measure:tE,processColor:Qc,runOnJS:En,runOnRuntime:xw,runOnUI:ar,scrollTo:xD,setGestureState:yD,setNativeProps:ID,setUpTests:OD,startMapper:Hs,startScreenTransition:$D,stopMapper:da,useAnimatedGestureHandler:H_,useAnimatedKeyboard:Z_,useAnimatedProps:lh,useAnimatedReaction:U_,useAnimatedRef:QC,useAnimatedScrollHandler:X_,useAnimatedSensor:$_,useAnimatedStyle:Fn,useComposedEventHandler:rD,useDerivedValue:Y_,useEvent:Us,useFrameCallback:ZC,useHandler:nu,useInterpolateConfig:CD,useReducedMotion:V_,useScrollViewOffset:JC,useSharedValue:ct,useWorkletCallback:G_,withClamp:Nb,withDecay:Rb,withDelay:ni,withReanimatedTimer:_D,withRepeat:Jf,withSequence:Fe,withSpring:Zf,withTiming:j},Symbol.toStringTag,{value:"Module"})),Bn=()=>tC();var xn=(t=>(t.maximized="maximized",t.minimized="minimized",t))(xn||{});const lT={headerHeight:0,isMenuOpen:!1,isOpen:!1,minimizedHeight:0,visibility:xn.maximized,conversationId:void 0},oE=He({name:le.chat,initialState:lT,reducers:{closeChat:t=>({...t,isOpen:!1}),maximizeChat:t=>({...t,visibility:xn.maximized}),minimizeChat:t=>({...t,visibility:xn.minimized}),setHeightMinimized:(t,{payload:e})=>({...t,minimizedHeight:e}),openChat:t=>({...t,isOpen:!0,visibility:xn.maximized}),clearChatMessages:t=>({...t,messages:[]}),toggleChatIsOpen:t=>({...t,isOpen:!t.isOpen}),toggleChatVisibility:t=>({...t,visibility:t.visibility===xn.maximized?xn.minimized:xn.maximized}),setChatConversationId:(t,{payload:e})=>({...t,conversationId:e}),setChatHeaderHeight:(t,{payload:e})=>({...t,headerHeight:e}),setIsChatMenuOpen:(t,{payload:e})=>({...t,isMenuOpen:e})}}),{closeChat:cT,openChat:uT,maximizeChat:dT,minimizeChat:AT,setHeightMinimized:fT,toggleChatIsOpen:hT,toggleChatVisibility:pT,setChatConversationId:gT,setChatHeaderHeight:vT,setIsChatMenuOpen:mT}=oE.actions,CT=t=>t[le.chat].isOpen,ET=t=>t[le.chat].visibility,xT=t=>t[le.chat].minimizedHeight,yT=t=>t[le.chat].conversationId,IT=t=>t[le.chat].headerHeight,wT=t=>t[le.chat].isMenuOpen,Ri=()=>{const t=tt(CT),e=tt(wT),n=tt(IT),r=tt(yT),i=tt(ET),a=i===xn.maximized,s=i===xn.minimized,o=tt(xT),l=Bn(),c=_.useCallback(()=>l(uT()),[l]),u=_.useCallback(()=>l(cT()),[l]),A=_.useCallback(()=>l(dT()),[l]),d=_.useCallback(()=>l(AT()),[l]),f=_.useCallback(v=>l(gT(v)),[l]),p=_.useCallback(v=>l(vT(v)),[l]),h=_.useCallback(v=>l(mT(v)),[l]),g=_.useCallback(v=>l(fT(v)),[l]),E=_.useCallback(()=>l(hT()),[l]),m=_.useCallback(()=>l(pT()),[l]);return{close:u,conversationId:r,headerHeight:n,isMaximized:a,isMenuOpen:e,isMinimized:s,isOpen:t,open:c,maximize:A,minimize:d,minimizedHeight:o,setConversationId:f,setMinimizedHeight:g,setHeaderHeight:p,setIsMenuOpen:h,toggleIsOpen:E,toggleVisibility:m,visibility:i}},IA=({children:t})=>{const{isMaximized:e}=Ri(),{duration:n}=Nn(),r=bT(),i=Fn(()=>({opacity:j(e?1:0,{duration:n.transition.short})}));return k.jsx($t.View,{style:[r.container,i],children:t})},bT=()=>he.create({container:{flexGrow:1}});try{IA.displayName="ChatAnimatedContentWrapper",IA.__docgenInfo={description:"",displayName:"ChatAnimatedContentWrapper",props:{}}}catch{}const gs=_.forwardRef(({onPress:t,testID:e,label:n,color:r},i)=>k.jsx(A1,{width:"100%",children:k.jsx(kf,{onPress:t,ref:i,testID:e,children:k.jsx(hr,{insetHorizontal:"md",insetVertical:"sm",children:k.jsx(kn,{color:r,testID:`${e}Phrase`,children:n})})})}));try{gs.displayName="ChatMenuItem",gs.__docgenInfo={description:"",displayName:"ChatMenuItem",props:{color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"inverse"'},{value:'"warning"'}]}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"() => void"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const lE=(t=!1)=>{const[e,n]=_.useState(t),r=_.useCallback(()=>{n(s=>!s)},[]),i=_.useCallback(()=>{n(!0)},[]),a=_.useCallback(()=>{n(!1)},[]);return{value:e,toggle:r,enable:i,disable:a}},ST=He({name:le.environment,initialState:{custom:ky,environment:Um?Jr.acceptance:Jr.production},reducers:{setEnvironment:(t,{payload:e})=>{t.environment=e},setCustomEnvironment:(t,{payload:e})=>{t.custom={...t.custom,...e}}}});ST.actions;const cE=t=>t[le.environment],_T=(t,e)=>n=>My(n[le.environment].environment,n[le.environment].custom,t,e),DT=()=>{const{environment:t}=tt(cE),e={};switch(t){case Jr.development:case Jr.custom:e.developerName=Uy,e.organizationId=Wy,e.url=Xy;break;case Jr.test:e.developerName=Ly,e.organizationId=Vy,e.url=Hy;break;case Jr.acceptance:e.developerName=Ny,e.organizationId=By,e.url=Gy;break;case Jr.production:e.developerName=Py,e.organizationId=Fy,e.url=Ry;break}return e},Vp=t=>t.filter(({format:e})=>e!==ge.deliveryAcknowledgement),TT=t=>t===ge.attachments||t===ge.carousel||t===ge.imageMessage||t===ge.inputs||t===ge.listPicker||t===ge.richLink||t===ge.quickReplies||t===ge.selections||t===ge.text,OT={addDownloadedTranscriptId:()=>null,downloadedTranscriptIds:[],employeeInChat:!1,endChat:()=>null,isEnded:!1,isWaitingForAgent:!1,messages:[],newMessagesCount:0,ready:!1,remoteConfiguration:void 0},kT=(t,e)=>{const n=t.filter(i=>i.format!==ge.transcript),r=n[n.length-1];return(r==null?void 0:r.format)===ge.routingWorkResult&&r.workType===Mm.closed&&!e},MT=(t,e)=>{const{value:n,enable:r}=lE(!1);return{isEnded:n||kT(t,e),endChat:r}},dn=_.createContext(OT),wA=({children:t})=>{const{isMaximized:e,isMinimized:n}=Ri(),[r,i]=_.useState(),[a,s]=_.useState(0),[o,l]=_.useState([]),c=DT(),{messages:u,isTyping:A,conversationId:d,ready:f,employeeInChat:p,remoteConfiguration:h,isWaitingForAgent:g}=bI({...c,conversationId:r}),{isEnded:E,endChat:m}=MT(u,g),v=_.useCallback(y=>{l(x=>[...x,y])},[]);_.useEffect(()=>{var y;n&&TT((y=u[u.length-1])==null?void 0:y.format)&&s(x=>x+1)},[u.length]),_.useEffect(()=>{e&&s(0)},[e]),_.useEffect(()=>{i(d??r)},[r,d,i]),_.useEffect(()=>{var y;if(h){const x=JSON.parse(JSON.stringify(h));(y=x.preChatConfiguration[0])==null||y.hiddenPreChatFields.forEach(w=>{w.name==="Origin"?w.value="App":w.name==="Start_Location"&&(w.value="contact")}),wI(x,!0)}},[h]);const C=_.useMemo(()=>({addDownloadedTranscriptId:v,downloadedTranscriptIds:o,endChat:m,messages:A&&!E?[...Vp(u),A]:Vp(u),newMessagesCount:a,ready:f&&(!!A||u.some(y=>y.format===ge.text)),employeeInChat:p,isEnded:E,remoteConfiguration:h,isWaitingForAgent:g}),[v,o,p,m,A,g,E,u,a,f,h]);return k.jsx(dn.Provider,{value:C,children:t})};try{wA.displayName="ChatProvider",wA.__docgenInfo={description:"",displayName:"ChatProvider",props:{}}}catch{}const Tu="@@nativeEmitterSubscription@@";class uE{constructor(e){F(this,"_listenerCount",0);F(this,"_nativeModule");F(this,"_eventEmitter");if(e.__expo_module_name__)return e;this._nativeModule=e,this._eventEmitter=new Df(e)}addListener(e,n){!this._listenerCount&&ue.OS!=="ios"&&this._nativeModule.startObserving&&this._nativeModule.startObserving(),this._listenerCount++;const r=this._eventEmitter.addListener(e,n),i={[Tu]:r,remove:()=>{this.removeSubscription(i)}};return i}removeAllListeners(e){const n=this._eventEmitter.listenerCount?this._eventEmitter.listenerCount(e):this._eventEmitter.listeners(e).length;this._eventEmitter.removeAllListeners(e),this._listenerCount-=n,Zo(this._listenerCount>=0,"EventEmitter must have a non-negative number of listeners"),!this._listenerCount&&ue.OS!=="ios"&&this._nativeModule.stopObserving&&this._nativeModule.stopObserving()}removeSubscription(e){const n=e[Tu];n&&("remove"in n&&n.remove(),this._listenerCount--,delete e[Tu],e.remove=()=>{},!this._listenerCount&&ue.OS!=="ios"&&this._nativeModule.stopObserving&&this._nativeModule.stopObserving())}emit(e,...n){this._eventEmitter.emit(e,...n)}}const PT={},FT=Object.freeze(Object.defineProperty({__proto__:null,default:PT},Symbol.toStringTag,{value:"Module"})),RT=Gs(FT);class No extends Error{constructor(n,r){super(r);F(this,"code");F(this,"info");this.code=n}}var Om;const ch=typeof window<"u"&&!!((Om=window.document)!=null&&Om.createElement),NT=ch&&!!(window.addEventListener||window.attachEvent),BT=ch&&!!window.screen,GT=!1,Di={OS:ue.OS,select:ue.select,isDOMAvailable:ch,canUseEventListeners:NT,canUseViewport:BT,isAsyncDebugging:GT};class lt extends No{constructor(e,n){super("ERR_UNAVAILABLE",`The method or property ${e}.${n} is not available on ${Di.OS}, are you sure you've linked all the native dependencies properly?`)}}var bA;(function(t){t.GRANTED="granted",t.UNDETERMINED="undetermined",t.DENIED="denied"})(bA||(bA={}));const Pe={get documentDirectory(){return null},get cacheDirectory(){return null},get bundleDirectory(){return null},addListener(t){},removeListeners(t){}};var SA;(function(t){t[t.BACKGROUND=0]="BACKGROUND",t[t.FOREGROUND=1]="FOREGROUND"})(SA||(SA={}));var Hp;(function(t){t[t.BINARY_CONTENT=0]="BINARY_CONTENT",t[t.MULTIPART=1]="MULTIPART"})(Hp||(Hp={}));var _s;(function(t){t.UTF8="utf8",t.Base64="base64"})(_s||(_s={}));Pe||console.warn("No native ExponentFileSystem module found, are you sure the expo-file-system's module is linked properly?");new uE(Pe);function uh(t){return t!=null?t.replace(/\/*$/,"")+"/":null}const dE=uh(Pe.documentDirectory);uh(Pe.cacheDirectory);uh(Pe.bundleDirectory);async function LT(t,e={}){if(!Pe.readAsStringAsync)throw new lt("expo-file-system","readAsStringAsync");return await Pe.readAsStringAsync(t,e)}async function AE(t,e,n={}){if(!Pe.writeAsStringAsync)throw new lt("expo-file-system","writeAsStringAsync");return await Pe.writeAsStringAsync(t,e,n)}async function VT(t,e={}){if(!Pe.deleteAsync)throw new lt("expo-file-system","deleteAsync");return await Pe.deleteAsync(t,e)}async function HT(t){if(!Pe.moveAsync)throw new lt("expo-file-system","moveAsync");return await Pe.moveAsync(t)}async function UT(t){if(!Pe.copyAsync)throw new lt("expo-file-system","copyAsync");return await Pe.copyAsync(t)}async function WT(t,e,n={}){if(!Pe.downloadAsync)throw new lt("expo-file-system","downloadAsync");return await Pe.downloadAsync(t,e,{sessionType:SA.BACKGROUND,...n})}const XT=LT,YT=AE,zT=VT,qT=HT,KT=UT;var fa;(function(t){function e(s){return`content://com.android.externalstorage.documents/tree/primary:${s}/document/primary:${s}`}t.getUriForDirectoryInRoot=e;async function n(s=null){if(!Pe.requestDirectoryPermissionsAsync)throw new lt("expo-file-system","StorageAccessFramework.requestDirectoryPermissionsAsync");return await Pe.requestDirectoryPermissionsAsync(s)}t.requestDirectoryPermissionsAsync=n;async function r(s){if(!Pe.readSAFDirectoryAsync)throw new lt("expo-file-system","StorageAccessFramework.readDirectoryAsync");return await Pe.readSAFDirectoryAsync(s)}t.readDirectoryAsync=r;async function i(s,o){if(!Pe.makeSAFDirectoryAsync)throw new lt("expo-file-system","StorageAccessFramework.makeDirectoryAsync");return await Pe.makeSAFDirectoryAsync(s,o)}t.makeDirectoryAsync=i;async function a(s,o,l){if(!Pe.createSAFFileAsync)throw new lt("expo-file-system","StorageAccessFramework.createFileAsync");return await Pe.createSAFFileAsync(s,o,l)}t.createFileAsync=a,t.writeAsStringAsync=YT,t.readAsStringAsync=XT,t.deleteAsync=zT,t.moveAsync=qT,t.copyAsync=KT})(fa||(fa={}));const Ou={async isAvailableAsync(){return typeof navigator>"u"?!1:!!navigator.share},async shareAsync(t,e={}){if(navigator.share)await navigator.share({...e,url:t});else throw new lt("navigator","share")}};async function $T(t,e={}){if(!Ou||!Ou.shareAsync)throw new lt("Sharing","shareAsync");return await Ou.shareAsync(t,e)}const jT={"application/pdf":"com.adobe.pdf","image/png":"public.png","image/jpeg":"public.jpeg","image/gif":"com.compuserve.gif","image/bmp":"com.microsoft.bmp","image/svg+xml":"public.svg-image"},QT=async(t,e)=>{const{headers:n,uri:r}=await WT(t,dE+e);return{uri:r,mimeType:n["content-type"]}},ZT={jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",pdf:"application/pdf",txt:"text/plain",mp4:"video/mp4",mp3:"audio/mpeg",json:"application/json"},dh=async({base64:t,downloadUri:e,fileName:n,localUri:r})=>{try{if(e){const{mimeType:i,uri:a}=await QT(e,n),s=await Up(a);await ku(s,n,i)}else if(t)await ku(t.data,n,t.mimeType);else if(r){const i=await Up(r);await ku(i,n)}else throw"Give either base64 or downloadUri as an argument to saveFile."}catch(i){throw Xc(i),i}},JT=async()=>{try{const t=await fa.requestDirectoryPermissionsAsync();if(t.granted)return t.directoryUri;throw"Not granted directory permission."}catch{throw"Requesting directory permission failed."}},e2=async(t,e,n="application/pdf")=>{try{return await fa.createFileAsync(t,e,n)}catch{throw"Creating empty file failed."}},Up=async t=>{try{return await fa.readAsStringAsync(t,{encoding:_s.Base64})}catch{throw"Reading file as base64 string failed."}},t2=async(t,e)=>{try{await fa.writeAsStringAsync(t,e,{encoding:_s.Base64}),Xc(`saved to file ${t}`)}catch{throw"Writing base64 string to file failed."}},fE=async(t,e,n)=>{const r=`${dE}${e}`;try{await AE(r,t,{encoding:_s.Base64}),await $T(r,{mimeType:n,UTI:n?jT[n]:void 0}),Xc(`saved to file ${r}`)}catch{throw"Failed to share file with other applications."}},n2=async(t,e,n)=>{try{const r=await JT(),i=await e2(r,e,n);await t2(i,t)}catch(r){throw await fE(t,e,n),r}},ku=async(t,e,n)=>{const r=ZT[e.split(".").pop()||""]||n;ue.OS==="android"?await n2(t,e,r):await fE(t,e,r)};var hE={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(K,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",u="week",A="month",d="quarter",f="year",p="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var P=["th","st","nd","rd"],R=M%100;return"["+M+(P[(R-20)%10]||P[R]||P[0])+"]"}},v=function(M,P,R){var W=String(M);return!W||W.length>=P?M:""+Array(P+1-W.length).join(R)+M},C={s:v,z:function(M){var P=-M.utcOffset(),R=Math.abs(P),W=Math.floor(R/60),N=R%60;return(P<=0?"+":"-")+v(W,2,"0")+":"+v(N,2,"0")},m:function M(P,R){if(P.date()<R.date())return-M(R,P);var W=12*(R.year()-P.year())+(R.month()-P.month()),N=P.clone().add(W,A),U=R-N<0,Y=P.clone().add(W+(U?-1:1),A);return+(-(W+(R-N)/(U?N-Y:Y-N))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:A,y:f,w:u,d:c,D:p,h:l,m:o,s,ms:a,Q:d}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},y="en",x={};x[y]=m;var w="$isDayjsObject",S=function(M){return M instanceof O||!(!M||!M[w])},D=function M(P,R,W){var N;if(!P)return y;if(typeof P=="string"){var U=P.toLowerCase();x[U]&&(N=U),R&&(x[U]=R,N=U);var Y=P.split("-");if(!N&&Y.length>1)return M(Y[0])}else{var G=P.name;x[G]=P,N=G}return!W&&N&&(y=N),N||!W&&y},I=function(M,P){if(S(M))return M.clone();var R=typeof P=="object"?P:{};return R.date=M,R.args=arguments,new O(R)},b=C;b.l=D,b.i=S,b.w=function(M,P){return I(M,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var O=function(){function M(R){this.$L=D(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[w]=!0}var P=M.prototype;return P.parse=function(R){this.$d=function(W){var N=W.date,U=W.utc;if(N===null)return new Date(NaN);if(b.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var Y=N.match(g);if(Y){var G=Y[2]-1||0,H=(Y[7]||"0").substring(0,3);return U?new Date(Date.UTC(Y[1],G,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,H)):new Date(Y[1],G,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,H)}}return new Date(N)}(R),this.init()},P.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},P.$utils=function(){return b},P.isValid=function(){return this.$d.toString()!==h},P.isSame=function(R,W){var N=I(R);return this.startOf(W)<=N&&N<=this.endOf(W)},P.isAfter=function(R,W){return I(R)<this.startOf(W)},P.isBefore=function(R,W){return this.endOf(W)<I(R)},P.$g=function(R,W,N){return b.u(R)?this[W]:this.set(N,R)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(R,W){var N=this,U=!!b.u(W)||W,Y=b.p(R),G=function(ae,te){var re=b.w(N.$u?Date.UTC(N.$y,te,ae):new Date(N.$y,te,ae),N);return U?re:re.endOf(c)},H=function(ae,te){return b.w(N.toDate()[ae].apply(N.toDate("s"),(U?[0,0,0,0]:[23,59,59,999]).slice(te)),N)},L=this.$W,B=this.$M,X=this.$D,z="set"+(this.$u?"UTC":"");switch(Y){case f:return U?G(1,0):G(31,11);case A:return U?G(1,B):G(0,B+1);case u:var q=this.$locale().weekStart||0,Q=(L<q?L+7:L)-q;return G(U?X-Q:X+(6-Q),B);case c:case p:return H(z+"Hours",0);case l:return H(z+"Minutes",1);case o:return H(z+"Seconds",2);case s:return H(z+"Milliseconds",3);default:return this.clone()}},P.endOf=function(R){return this.startOf(R,!1)},P.$set=function(R,W){var N,U=b.p(R),Y="set"+(this.$u?"UTC":""),G=(N={},N[c]=Y+"Date",N[p]=Y+"Date",N[A]=Y+"Month",N[f]=Y+"FullYear",N[l]=Y+"Hours",N[o]=Y+"Minutes",N[s]=Y+"Seconds",N[a]=Y+"Milliseconds",N)[U],H=U===c?this.$D+(W-this.$W):W;if(U===A||U===f){var L=this.clone().set(p,1);L.$d[G](H),L.init(),this.$d=L.set(p,Math.min(this.$D,L.daysInMonth())).$d}else G&&this.$d[G](H);return this.init(),this},P.set=function(R,W){return this.clone().$set(R,W)},P.get=function(R){return this[b.p(R)]()},P.add=function(R,W){var N,U=this;R=Number(R);var Y=b.p(W),G=function(B){var X=I(U);return b.w(X.date(X.date()+Math.round(B*R)),U)};if(Y===A)return this.set(A,this.$M+R);if(Y===f)return this.set(f,this.$y+R);if(Y===c)return G(1);if(Y===u)return G(7);var H=(N={},N[o]=r,N[l]=i,N[s]=n,N)[Y]||1,L=this.$d.getTime()+R*H;return b.w(L,this)},P.subtract=function(R,W){return this.add(-1*R,W)},P.format=function(R){var W=this,N=this.$locale();if(!this.isValid())return N.invalidDate||h;var U=R||"YYYY-MM-DDTHH:mm:ssZ",Y=b.z(this),G=this.$H,H=this.$m,L=this.$M,B=N.weekdays,X=N.months,z=N.meridiem,q=function(te,re,Z,ie){return te&&(te[re]||te(W,U))||Z[re].slice(0,ie)},Q=function(te){return b.s(G%12||12,te,"0")},ae=z||function(te,re,Z){var ie=te<12?"AM":"PM";return Z?ie.toLowerCase():ie};return U.replace(E,function(te,re){return re||function(Z){switch(Z){case"YY":return String(W.$y).slice(-2);case"YYYY":return b.s(W.$y,4,"0");case"M":return L+1;case"MM":return b.s(L+1,2,"0");case"MMM":return q(N.monthsShort,L,X,3);case"MMMM":return q(X,L);case"D":return W.$D;case"DD":return b.s(W.$D,2,"0");case"d":return String(W.$W);case"dd":return q(N.weekdaysMin,W.$W,B,2);case"ddd":return q(N.weekdaysShort,W.$W,B,3);case"dddd":return B[W.$W];case"H":return String(G);case"HH":return b.s(G,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return ae(G,H,!0);case"A":return ae(G,H,!1);case"m":return String(H);case"mm":return b.s(H,2,"0");case"s":return String(W.$s);case"ss":return b.s(W.$s,2,"0");case"SSS":return b.s(W.$ms,3,"0");case"Z":return Y}return null}(te)||Y.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(R,W,N){var U,Y=this,G=b.p(W),H=I(R),L=(H.utcOffset()-this.utcOffset())*r,B=this-H,X=function(){return b.m(Y,H)};switch(G){case f:U=X()/12;break;case A:U=X();break;case d:U=X()/3;break;case u:U=(B-L)/6048e5;break;case c:U=(B-L)/864e5;break;case l:U=B/i;break;case o:U=B/r;break;case s:U=B/n;break;default:U=B}return N?U:b.a(U)},P.daysInMonth=function(){return this.endOf(A).$D},P.$locale=function(){return x[this.$L]},P.locale=function(R,W){if(!R)return this.$L;var N=this.clone(),U=D(R,W,!0);return U&&(N.$L=U),N},P.clone=function(){return b.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},M}(),T=O.prototype;return I.prototype=T,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",A],["$y",f],["$D",p]].forEach(function(M){T[M[1]]=function(P){return this.$g(P,M[0],M[1])}}),I.extend=function(M,P){return M.$i||(M(P,O,I),M.$i=!0),I},I.locale=D,I.isDayjs=S,I.unix=function(M){return I(1e3*M)},I.en=x[y],I.Ls=x,I.p={},I})})(hE);var pE=hE.exports;const Gr=Ur(pE);var gE={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(K,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,a,s){var o,l=function(d,f,p){p===void 0&&(p={});var h=new Date(d),g=function(E,m){m===void 0&&(m={});var v=m.timeZoneName||"short",C=E+"|"+v,y=r[C];return y||(y=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:E,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:v}),r[C]=y),y}(f,p);return g.formatToParts(h)},c=function(d,f){for(var p=l(d,f),h=[],g=0;g<p.length;g+=1){var E=p[g],m=E.type,v=E.value,C=n[m];C>=0&&(h[C]=parseInt(v,10))}var y=h[3],x=y===24?0:y,w=h[0]+"-"+h[1]+"-"+h[2]+" "+x+":"+h[4]+":"+h[5]+":000",S=+d;return(s.utc(w).valueOf()-(S-=S%1e3))/6e4},u=a.prototype;u.tz=function(d,f){d===void 0&&(d=o);var p,h=this.utcOffset(),g=this.toDate(),E=g.toLocaleString("en-US",{timeZone:d}),m=Math.round((g-new Date(E))/1e3/60),v=15*-Math.round(g.getTimezoneOffset()/15)-m;if(!Number(v))p=this.utcOffset(0,f);else if(p=s(E,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(v,!0),f){var C=p.utcOffset();p=p.add(h-C,"minute")}return p.$x.$timezone=d,p},u.offsetName=function(d){var f=this.$x.$timezone||s.tz.guess(),p=l(this.valueOf(),f,{timeZoneName:d}).find(function(h){return h.type.toLowerCase()==="timezonename"});return p&&p.value};var A=u.startOf;u.startOf=function(d,f){if(!this.$x||!this.$x.$timezone)return A.call(this,d,f);var p=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return A.call(p,d,f).tz(this.$x.$timezone,!0)},s.tz=function(d,f,p){var h=p&&f,g=p||f||o,E=c(+s(),g);if(typeof d!="string")return s(d).tz(g);var m=function(x,w,S){var D=x-60*w*1e3,I=c(D,S);if(w===I)return[D,w];var b=c(D-=60*(I-w)*1e3,S);return I===b?[D,I]:[x-60*Math.min(I,b)*1e3,Math.max(I,b)]}(s.utc(d,h).valueOf(),E,g),v=m[0],C=m[1],y=s(v).utcOffset(C);return y.$x.$timezone=g,y},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(d){o=d}}})})(gE);var r2=gE.exports;const i2=Ur(r2);var vE={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(K,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,s,o){var l=s.prototype;o.utc=function(h){var g={date:h,utc:!0,args:arguments};return new s(g)},l.utc=function(h){var g=o(this.toDate(),{locale:this.$L,utc:!0});return h?g.add(this.utcOffset(),n):g},l.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),c.call(this,h)};var u=l.init;l.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else u.call(this)};var A=l.utcOffset;l.utcOffset=function(h,g){var E=this.$utils().u;if(E(h))return this.$u?0:E(this.$offset)?A.call(this):this.$offset;if(typeof h=="string"&&(h=function(y){y===void 0&&(y="");var x=y.match(r);if(!x)return null;var w=(""+x[0]).match(i)||["-",0,0],S=w[0],D=60*+w[1]+ +w[2];return D===0?0:S==="+"?D:-D}(h),h===null))return this;var m=Math.abs(h)<=16?60*h:h,v=this;if(g)return v.$offset=m,v.$u=h===0,v;if(h!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(v=this.local().add(m+C,n)).$offset=m,v.$x.$localOffset=C}else v=this.utc();return v};var d=l.format;l.format=function(h){var g=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,g)},l.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var f=l.toDate;l.toDate=function(h){return h==="s"&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var p=l.diff;l.diff=function(h,g,E){if(h&&this.$u===h.$u)return p.call(this,h,g,E);var m=this.local(),v=o(h).local();return p.call(m,v,g,E)}}})})(vE);var a2=vE.exports;const s2=Ur(a2);var o2={exports:{}};(function(t,e){(function(n,r){t.exports=r(pE)})(K,function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=r(n),a={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(s){return"["+s+(s===1||s===8||s>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return i.default.locale(a,null,!0),a})})(o2);const l2="Europe/Amsterdam";Gr.extend(s2);Gr.extend(i2);Gr.locale("nl");Gr.tz.setDefault(l2);const Ah=t=>{const e=Gr(t).format();return Gr(e)},Ws=t=>{const e=Gr.unix(t);return Gr(e)},c2=t=>t==null||t===""?"":Ah(t).format("D MMMM YYYY HH:mm:ss"),mE=async()=>{try{const{transcript:t,entryId:e}=await yI(),n=`Chatgeschiedenis ${c2(Ah()).replaceAll(":"," ")}.pdf`;return await dh({base64:{data:t,mimeType:"application/pdf"},fileName:n}),e}catch(t){Mf(t,JSON.stringify(t)),Jn.alert("Chat downloaden mislukt.")}};var CE=(t=>(t.getRedirectUrls="getRedirectUrls",t))(CE||{}),Bo=(t=>(t.acknowledgeChild="acknowledgeChild",t.birth="birth",t.chatPrivacy="chatPrivacy",t.cityPassChildBudget="cityPassChildBudget",t.cityPassRequest="cityPassRequest",t.cityPassUsage="cityPassUsage",t.citypass="citypass",t.contactForm="contactForm",t.documents="documents",t.feedbackForm="feedbackForm",t.immigration="immigration",t.income_help="income_help",t.lifelessBirth="lifelessBirth",t.makeAppointMentWeesp="makeAppointMentWeesp",t.marriage="marriage",t.marriagePermission="marriagePermission",t.naturalisation="naturalisation",t.parking="parking",t.parking_visitors="parking_visitors",t.passing="passing",t.passingForFuneralDirectors="passingForFuneralDirectors",t.relocation="relocation",t))(Bo||{}),ha=function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(u){c=[6,u],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ul=function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},u2=Object.defineProperty,d2=Object.defineProperties,A2=Object.getOwnPropertyDescriptors,dl=Object.getOwnPropertySymbols,EE=Object.prototype.hasOwnProperty,xE=Object.prototype.propertyIsEnumerable,Wp=function(t,e,n){return e in t?u2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},Ne=function(t,e){for(var n in e||(e={}))EE.call(e,n)&&Wp(t,n,e[n]);if(dl)for(var r=0,i=dl(e);r<i.length;r++){var n=i[r];xE.call(e,n)&&Wp(t,n,e[n])}return t},Sn=function(t,e){return d2(t,A2(e))},Xp=function(t,e){var n={};for(var r in t)EE.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&dl)for(var i=0,a=dl(t);i<a.length;i++){var r=a[i];e.indexOf(r)<0&&xE.call(t,r)&&(n[r]=t[r])}return n},pa=function(t,e,n){return new Promise(function(r,i){var a=function(l){try{o(n.next(l))}catch(c){i(c)}},s=function(l){try{o(n.throw(l))}catch(c){i(c)}},o=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(a,s)};o((n=n.apply(t,e)).next())})},Re;(function(t){t.uninitialized="uninitialized",t.pending="pending",t.fulfilled="fulfilled",t.rejected="rejected"})(Re||(Re={}));function f2(t){return{status:t,isUninitialized:t===Re.uninitialized,isLoading:t===Re.pending,isSuccess:t===Re.fulfilled,isError:t===Re.rejected}}function h2(t){return new RegExp("(^|:)//").test(t)}var p2=function(t){return t.replace(/\/$/,"")},g2=function(t){return t.replace(/^\//,"")};function v2(t,e){if(!t)return e;if(!e)return t;if(h2(e))return e;var n=t.endsWith("/")||!e.startsWith("?")?"/":"";return t=p2(t),e=g2(e),""+t+n+e}var Yp=function(t){return[].concat.apply([],t)};function m2(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function C2(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var zp=bi;function yE(t,e){if(t===e||!(zp(t)&&zp(e)||Array.isArray(t)&&Array.isArray(e)))return e;for(var n=Object.keys(e),r=Object.keys(t),i=n.length===r.length,a=Array.isArray(e)?[]:{},s=0,o=n;s<o.length;s++){var l=o[s];a[l]=yE(t[l],e[l]),i&&(i=t[l]===a[l])}return i?t:a}var qp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return fetch.apply(void 0,t)},E2=function(t){return t.status>=200&&t.status<=299},x2=function(t){return/ion\/(vnd\.api\+)?json/.test(t.get("content-type")||"")};function Kp(t){if(!bi(t))return t;for(var e=Ne({},t),n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],a=i[0],s=i[1];s===void 0&&delete e[a]}return e}function y2(t){var e=this;t===void 0&&(t={});var n=t,r=n.baseUrl,i=n.prepareHeaders,a=i===void 0?function(v){return v}:i,s=n.fetchFn,o=s===void 0?qp:s,l=n.paramsSerializer,c=n.isJsonContentType,u=c===void 0?x2:c,A=n.jsonContentType,d=A===void 0?"application/json":A,f=n.jsonReplacer,p=n.timeout,h=n.responseHandler,g=n.validateStatus,E=Xp(n,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","responseHandler","validateStatus"]);return typeof fetch>"u"&&o===qp&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(v,C){return pa(e,null,function(){var y,x,w,S,D,I,b,O,T,M,P,R,W,N,U,Y,G,H,L,B,X,z,q,Q,ae,te,re,Z,ie,we,be,Se,ye,ne,Be,ut;return ha(this,function(me){switch(me.label){case 0:return y=C.signal,x=C.getState,w=C.extra,S=C.endpoint,D=C.forced,I=C.type,O=typeof v=="string"?{url:v}:v,T=O.url,M=O.headers,P=M===void 0?new Headers(E.headers):M,R=O.params,W=R===void 0?void 0:R,N=O.responseHandler,U=N===void 0?h??"json":N,Y=O.validateStatus,G=Y===void 0?g??E2:Y,H=O.timeout,L=H===void 0?p:H,B=Xp(O,["url","headers","params","responseHandler","validateStatus","timeout"]),X=Ne(Sn(Ne({},E),{signal:y}),B),P=new Headers(Kp(P)),z=X,[4,a(P,{getState:x,extra:w,endpoint:S,forced:D,type:I})];case 1:z.headers=me.sent()||P,q=function(de){return typeof de=="object"&&(bi(de)||Array.isArray(de)||typeof de.toJSON=="function")},!X.headers.has("content-type")&&q(X.body)&&X.headers.set("content-type",d),q(X.body)&&u(X.headers)&&(X.body=JSON.stringify(X.body,f)),W&&(Q=~T.indexOf("?")?"&":"?",ae=l?l(W):new URLSearchParams(Kp(W)),T+=Q+ae),T=v2(r,T),te=new Request(T,X),re=new Request(T,X),b={request:re},ie=!1,we=L&&setTimeout(function(){ie=!0,C.abort()},L),me.label=2;case 2:return me.trys.push([2,4,5,6]),[4,o(te)];case 3:return Z=me.sent(),[3,6];case 4:return be=me.sent(),[2,{error:{status:ie?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(be)},meta:b}];case 5:return we&&clearTimeout(we),[7];case 6:Se=Z.clone(),b.response=Se,ne="",me.label=7;case 7:return me.trys.push([7,9,,10]),[4,Promise.all([m(Z,U).then(function(de){return ye=de},function(de){return Be=de}),Se.text().then(function(de){return ne=de},function(){})])];case 8:if(me.sent(),Be)throw Be;return[3,10];case 9:return ut=me.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:Z.status,data:ne,error:String(ut)},meta:b}];case 10:return[2,G(Z,ye)?{data:ye,meta:b}:{error:{status:Z.status,data:ye},meta:b}]}})})};function m(v,C){return pa(this,null,function(){var y;return ha(this,function(x){switch(x.label){case 0:return typeof C=="function"?[2,C(v)]:(C==="content-type"&&(C=u(v.headers)?"json":"text"),C!=="json"?[3,2]:[4,v.text()]);case 1:return y=x.sent(),[2,y.length?JSON.parse(y):null];case 2:return[2,v.text()]}})})}}var sa=function(){function t(e,n){n===void 0&&(n=void 0),this.value=e,this.meta=n}return t}();function I2(t,e){return t===void 0&&(t=0),e===void 0&&(e=5),pa(this,null,function(){var n,r;return ha(this,function(i){switch(i.label){case 0:return n=Math.min(t,e),r=~~((Math.random()+.4)*(300<<n)),[4,new Promise(function(a){return setTimeout(function(s){return a(s)},r)})];case 1:return i.sent(),[2]}})})}function w2(t){throw Object.assign(new sa({error:t}),{throwImmediately:!0})}var $p={},b2=function(t,e){return function(n,r,i){return pa(void 0,null,function(){var a,s,o,l,c,u,A;return ha(this,function(d){switch(d.label){case 0:a=[5,(e||$p).maxRetries,(i||$p).maxRetries].filter(function(f){return f!==void 0}),s=a.slice(-1)[0],o=function(f,p,h){var g=h.attempt;return g<=s},l=Ne(Ne({maxRetries:s,backoff:I2,retryCondition:o},e),i),c=0,d.label=1;case 1:d.label=2;case 2:return d.trys.push([2,4,,6]),[4,t(n,r,i)];case 3:if(u=d.sent(),u.error)throw new sa(u);return[2,u];case 4:if(A=d.sent(),c++,A.throwImmediately){if(A instanceof sa)return[2,A.value];throw A}return A instanceof sa&&!l.retryCondition(A.value.error,n,{attempt:c,baseQueryApi:r,extraOptions:i})?[2,A.value]:[4,l.backoff(c,l.maxRetries)];case 5:return d.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})}},Mu=Object.assign(b2,{fail:w2}),fh=Ea("__rtkq/focused"),IE=Ea("__rtkq/unfocused"),hh=Ea("__rtkq/online"),wE=Ea("__rtkq/offline"),Rn;(function(t){t.query="query",t.mutation="mutation"})(Rn||(Rn={}));function bE(t){return t.type===Rn.query}function S2(t){return t.type===Rn.mutation}function ph(t,e,n,r,i,a){return _2(t)?t(e,n,r,i).map(_A).map(a):Array.isArray(t)?t.map(_A).map(a):[]}function _2(t){return typeof t=="function"}function _A(t){return typeof t=="string"?{type:t}:t}function Pu(t){return t!=null}var Ds=Symbol("forceQueryFn"),DA=function(t){return typeof t[Ds]=="function"};function D2(t){var e=t.serializeQueryArgs,n=t.queryThunk,r=t.mutationThunk,i=t.api,a=t.context,s=new Map,o=new Map,l=i.internalActions,c=l.unsubscribeQueryResult,u=l.removeMutationResult,A=l.updateSubscriptionOptions;return{buildInitiateQuery:m,buildInitiateMutation:v,getRunningQueryThunk:p,getRunningMutationThunk:h,getRunningQueriesThunk:g,getRunningMutationsThunk:E,getRunningOperationPromises:f,removalWarning:d};function d(){throw new Error(`This method had to be removed due to a conceptual bug in RTK. Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details. - See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function f(){typeof process<"u";var C=function(y){return Array.from(y.values()).flatMap(function(x){return x?Object.values(x):[]})};return cl(cl([],C(s)),C(o)).filter(Pu)}function p(C,y){return function(x){var w,S=a.endpointDefinitions[C],D=e({queryArgs:y,endpointDefinition:S,endpointName:C});return(w=s.get(x))==null?void 0:w[D]}}function h(C,y){return function(x){var w;return(w=o.get(x))==null?void 0:w[y]}}function g(){return function(C){return Object.values(s.get(C)||{}).filter(Pu)}}function E(){return function(C){return Object.values(o.get(C)||{}).filter(Pu)}}function m(C,y){var x=function(w,S){var D=S===void 0?{}:S,I=D.subscribe,b=I===void 0?!0:I,O=D.forceRefetch,T=D.subscriptionOptions,M=Ds,P=D[M];return function(R,W){var N,U,Y=e({queryArgs:w,endpointDefinition:y,endpointName:C}),G=n((N={type:"query",subscribe:b,forceRefetch:O,subscriptionOptions:T,endpointName:C,originalArgs:w,queryCacheKey:Y},N[Ds]=P,N)),H=i.endpoints[C].select(w),L=R(G),B=H(W()),X=L.requestId,z=L.abort,q=B.requestId!==X,Q=(U=s.get(R))==null?void 0:U[Y],ae=function(){return H(W())},te=Object.assign(P?L.then(ae):q&&!Q?Promise.resolve(B):Promise.all([Q,L]).then(ae),{arg:w,requestId:X,subscriptionOptions:T,queryCacheKey:Y,abort:z,unwrap:function(){return pa(this,null,function(){var Z;return ha(this,function(ie){switch(ie.label){case 0:return[4,te];case 1:if(Z=ie.sent(),Z.isError)throw Z.error;return[2,Z.data]}})})},refetch:function(){return R(x(w,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){b&&R(c({queryCacheKey:Y,requestId:X}))},updateSubscriptionOptions:function(Z){te.subscriptionOptions=Z,R(A({endpointName:C,requestId:X,queryCacheKey:Y,options:Z}))}});if(!Q&&!q&&!P){var re=s.get(R)||{};re[Y]=te,s.set(R,re),te.then(function(){delete re[Y],Object.keys(re).length||s.delete(R)})}return te}};return x}function v(C){return function(y,x){var w=x===void 0?{}:x,S=w.track,D=S===void 0?!0:S,I=w.fixedCacheKey;return function(b,O){var T=r({type:"mutation",endpointName:C,originalArgs:y,track:D,fixedCacheKey:I}),M=b(T),P=M.requestId,R=M.abort,W=M.unwrap,N=M.unwrap().then(function(H){return{data:H}}).catch(function(H){return{error:H}}),U=function(){b(u({requestId:P,fixedCacheKey:I}))},Y=Object.assign(N,{arg:M.arg,requestId:P,abort:R,unwrap:W,unsubscribe:U,reset:U}),G=o.get(b)||{};return o.set(b,G),G[P]=Y,Y.then(function(){delete G[P],Object.keys(G).length||o.delete(b)}),I&&(G[I]=Y,Y.then(function(){G[I]===Y&&(delete G[I],Object.keys(G).length||o.delete(b))})),Y}}}}function $p(t){return t}function T2(t){var e=this,n=t.reducerPath,r=t.baseQuery,i=t.context.endpointDefinitions,a=t.serializeQueryArgs,s=t.api,o=t.assertTagType,l=function(C,y,x,w){return function(S,D){var I=i[C],b=a({queryArgs:y,endpointDefinition:I,endpointName:C});if(S(s.internalActions.queryResultPatched({queryCacheKey:b,patches:x})),!!w){var O=s.endpoints[C].select(y)(D()),T=hh(I.providesTags,O.data,void 0,y,{},o);S(s.internalActions.updateProvidedBy({queryCacheKey:b,providedTags:T}))}}},c=function(C,y,x,w){return w===void 0&&(w=!0),function(S,D){var I,b,O=s.endpoints[C],T=O.select(y)(D()),M={patches:[],inversePatches:[],undo:function(){return S(s.util.patchQueryData(C,y,M.inversePatches,w))}};if(T.status===Re.uninitialized)return M;var P;if("data"in T)if(Qy(T.data)){var R=Fm(T.data,x),W=R[0],N=R[1],U=R[2];(I=M.patches).push.apply(I,N),(b=M.inversePatches).push.apply(b,U),P=W}else P=x(T.data),M.patches.push({op:"replace",path:[],value:P}),M.inversePatches.push({op:"replace",path:[],value:T.data});return S(s.util.patchQueryData(C,y,M.patches,w)),M}},u=function(C,y,x){return function(w){var S;return w(s.endpoints[C].initiate(y,(S={subscribe:!1,forceRefetch:!0},S[Ds]=function(){return{data:x}},S)))}},A=function(C,y){return pa(e,[C,y],function(x,w){var S,D,I,b,O,T,M,P,R,W,N,U,Y,G,H,L,B,X,z=w.signal,q=w.abort,Q=w.rejectWithValue,ae=w.fulfillWithValue,te=w.dispatch,re=w.getState,Z=w.extra;return ha(this,function(ie){switch(ie.label){case 0:S=i[x.endpointName],ie.label=1;case 1:return ie.trys.push([1,8,,13]),D=$p,I=void 0,b={signal:z,abort:q,dispatch:te,getState:re,extra:Z,endpoint:x.endpointName,type:x.type,forced:x.type==="query"?d(x,re()):void 0},O=x.type==="query"?x[Ds]:void 0,O?(I=O(),[3,6]):[3,2];case 2:return S.query?[4,r(S.query(x.originalArgs),b,S.extraOptions)]:[3,4];case 3:return I=ie.sent(),S.transformResponse&&(D=S.transformResponse),[3,6];case 4:return[4,S.queryFn(x.originalArgs,b,S.extraOptions,function(we){return r(we,b,S.extraOptions)})];case 5:I=ie.sent(),ie.label=6;case 6:if(typeof process<"u",I.error)throw new sa(I.error,I.meta);return N=ae,[4,D(I.data,I.meta,x.originalArgs)];case 7:return[2,N.apply(void 0,[ie.sent(),(B={fulfilledTimeStamp:Date.now(),baseQueryMeta:I.meta},B[js]=!0,B)])];case 8:if(U=ie.sent(),Y=U,!(Y instanceof sa))return[3,12];G=$p,S.query&&S.transformErrorResponse&&(G=S.transformErrorResponse),ie.label=9;case 9:return ie.trys.push([9,11,,12]),H=Q,[4,G(Y.value,Y.meta,x.originalArgs)];case 10:return[2,H.apply(void 0,[ie.sent(),(X={baseQueryMeta:Y.meta},X[js]=!0,X)])];case 11:return L=ie.sent(),Y=L,[3,12];case 12:throw typeof process<"u",console.error(Y),Y;case 13:return[2]}})})};function d(C,y){var x,w,S,D,I=(w=(x=y[n])==null?void 0:x.queries)==null?void 0:w[C.queryCacheKey],b=(S=y[n])==null?void 0:S.config.refetchOnMountOrArgChange,O=I==null?void 0:I.fulfilledTimeStamp,T=(D=C.forceRefetch)!=null?D:C.subscribe&&b;return T?T===!0||(Number(new Date)-Number(O))/1e3>=T:!1}var f=Xh(n+"/executeQuery",A,{getPendingMeta:function(){var C;return C={startedTimeStamp:Date.now()},C[js]=!0,C},condition:function(C,y){var x=y.getState,w,S,D,I=x(),b=(S=(w=I[n])==null?void 0:w.queries)==null?void 0:S[C.queryCacheKey],O=b==null?void 0:b.fulfilledTimeStamp,T=C.originalArgs,M=b==null?void 0:b.originalArgs,P=i[C.endpointName];return _A(C)?!0:(b==null?void 0:b.status)==="pending"?!1:d(C,I)||bE(P)&&((D=P==null?void 0:P.forceRefetch)!=null&&D.call(P,{currentArg:T,previousArg:M,endpointState:b,state:I}))?!0:!O},dispatchConditionRejection:!0}),p=Xh(n+"/executeMutation",A,{getPendingMeta:function(){var C;return C={startedTimeStamp:Date.now()},C[js]=!0,C}}),h=function(C){return"force"in C},g=function(C){return"ifOlderThan"in C},E=function(C,y,x){return function(w,S){var D=h(x)&&x.force,I=g(x)&&x.ifOlderThan,b=function(P){return P===void 0&&(P=!0),s.endpoints[C].initiate(y,{forceRefetch:P})},O=s.endpoints[C].select(y)(S());if(D)w(b());else if(I){var T=O==null?void 0:O.fulfilledTimeStamp;if(!T){w(b());return}var M=(Number(new Date)-Number(new Date(T)))/1e3>=I;M&&w(b())}else w(b(!1))}};function m(C){return function(y){var x,w;return((w=(x=y==null?void 0:y.meta)==null?void 0:x.arg)==null?void 0:w.endpointName)===C}}function v(C,y){return{matchPending:du(Rm(C),m(y)),matchFulfilled:du(xa(C),m(y)),matchRejected:du(Nm(C),m(y))}}return{queryThunk:f,mutationThunk:p,prefetch:E,updateQueryData:c,upsertQueryData:u,patchQueryData:l,buildMatchThunkActions:v}}function SE(t,e,n,r){return hh(n[t.meta.arg.endpointName][e],xa(t)?t.payload:void 0,bf(t)?t.payload:void 0,t.meta.arg.originalArgs,"baseQueryMeta"in t.meta?t.meta.baseQueryMeta:void 0,r)}function lo(t,e,n){var r=t[e];r&&n(r)}function Ts(t){var e;return(e="arg"in t?t.arg.fixedCacheKey:t.fixedCacheKey)!=null?e:t.requestId}function jp(t,e,n){var r=t[Ts(e)];r&&n(r)}var Fa={};function O2(t){var e=t.reducerPath,n=t.queryThunk,r=t.mutationThunk,i=t.context,a=i.endpointDefinitions,s=i.apiUid,o=i.extractRehydrationInfo,l=i.hasRehydrationInfo,c=t.assertTagType,u=t.config,A=Ea(e+"/resetApiState"),d=He({name:e+"/queries",initialState:Fa,reducers:{removeQueryResult:{reducer:function(y,x){var w=x.payload.queryCacheKey;delete y[w]},prepare:Ta()},queryResultPatched:{reducer:function(y,x){var w=x.payload,S=w.queryCacheKey,D=w.patches;lo(y,S,function(I){I.data=Yh(I.data,D.concat())})},prepare:Ta()}},extraReducers:function(y){y.addCase(n.pending,function(x,w){var S=w.meta,D=w.meta.arg,I,b,O=_A(D);(D.subscribe||O)&&((b=x[I=D.queryCacheKey])!=null||(x[I]={status:Re.uninitialized,endpointName:D.endpointName})),lo(x,D.queryCacheKey,function(T){T.status=Re.pending,T.requestId=O&&T.requestId?T.requestId:S.requestId,D.originalArgs!==void 0&&(T.originalArgs=D.originalArgs),T.startedTimeStamp=S.startedTimeStamp})}).addCase(n.fulfilled,function(x,w){var S=w.meta,D=w.payload;lo(x,S.arg.queryCacheKey,function(I){var b;if(!(I.requestId!==S.requestId&&!_A(S.arg))){var O=a[S.arg.endpointName].merge;if(I.status=Re.fulfilled,O)if(I.data!==void 0){var T=S.fulfilledTimeStamp,M=S.arg,P=S.baseQueryMeta,R=S.requestId,W=Sf(I.data,function(N){return O(N,D,{arg:M.originalArgs,baseQueryMeta:P,fulfilledTimeStamp:T,requestId:R})});I.data=W}else I.data=D;else I.data=(b=a[S.arg.endpointName].structuralSharing)==null||b?yE(Zy(I.data)?Jy(I.data):I.data,D):D;delete I.error,I.fulfilledTimeStamp=S.fulfilledTimeStamp}})}).addCase(n.rejected,function(x,w){var S=w.meta,D=S.condition,I=S.arg,b=S.requestId,O=w.error,T=w.payload;lo(x,I.queryCacheKey,function(M){if(!D){if(M.requestId!==b)return;M.status=Re.rejected,M.error=T??O}})}).addMatcher(l,function(x,w){for(var S=o(w).queries,D=0,I=Object.entries(S);D<I.length;D++){var b=I[D],O=b[0],T=b[1];((T==null?void 0:T.status)===Re.fulfilled||(T==null?void 0:T.status)===Re.rejected)&&(x[O]=T)}})}}),f=He({name:e+"/mutations",initialState:Fa,reducers:{removeMutationResult:{reducer:function(y,x){var w=x.payload,S=Ts(w);S in y&&delete y[S]},prepare:Ta()}},extraReducers:function(y){y.addCase(r.pending,function(x,w){var S=w.meta,D=w.meta,I=D.requestId,b=D.arg,O=D.startedTimeStamp;b.track&&(x[Ts(S)]={requestId:I,status:Re.pending,endpointName:b.endpointName,startedTimeStamp:O})}).addCase(r.fulfilled,function(x,w){var S=w.payload,D=w.meta;D.arg.track&&jp(x,D,function(I){I.requestId===D.requestId&&(I.status=Re.fulfilled,I.data=S,I.fulfilledTimeStamp=D.fulfilledTimeStamp)})}).addCase(r.rejected,function(x,w){var S=w.payload,D=w.error,I=w.meta;I.arg.track&&jp(x,I,function(b){b.requestId===I.requestId&&(b.status=Re.rejected,b.error=S??D)})}).addMatcher(l,function(x,w){for(var S=o(w).mutations,D=0,I=Object.entries(S);D<I.length;D++){var b=I[D],O=b[0],T=b[1];((T==null?void 0:T.status)===Re.fulfilled||(T==null?void 0:T.status)===Re.rejected)&&O!==(T==null?void 0:T.requestId)&&(x[O]=T)}})}}),p=He({name:e+"/invalidation",initialState:Fa,reducers:{updateProvidedBy:{reducer:function(y,x){for(var w,S,D,I,b=x.payload,O=b.queryCacheKey,T=b.providedTags,M=0,P=Object.values(y);M<P.length;M++)for(var R=P[M],W=0,N=Object.values(R);W<N.length;W++){var U=N[W],Y=U.indexOf(O);Y!==-1&&U.splice(Y,1)}for(var G=0,H=T;G<H.length;G++){var L=H[G],B=L.type,X=L.id,z=(I=(S=(w=y[B])!=null?w:y[B]={})[D=X||"__internal_without_id"])!=null?I:S[D]=[],q=z.includes(O);q||z.push(O)}},prepare:Ta()}},extraReducers:function(y){y.addCase(d.actions.removeQueryResult,function(x,w){for(var S=w.payload.queryCacheKey,D=0,I=Object.values(x);D<I.length;D++)for(var b=I[D],O=0,T=Object.values(b);O<T.length;O++){var M=T[O],P=M.indexOf(S);P!==-1&&M.splice(P,1)}}).addMatcher(l,function(x,w){for(var S,D,I,b,O=o(w).provided,T=0,M=Object.entries(O);T<M.length;T++)for(var P=M[T],R=P[0],W=P[1],N=0,U=Object.entries(W);N<U.length;N++)for(var Y=U[N],G=Y[0],H=Y[1],L=(b=(D=(S=x[R])!=null?S:x[R]={})[I=G||"__internal_without_id"])!=null?b:D[I]=[],B=0,X=H;B<X.length;B++){var z=X[B],q=L.includes(z);q||L.push(z)}}).addMatcher(Pm(xa(n),bf(n)),function(x,w){var S=SE(w,"providesTags",a,c),D=w.meta.arg.queryCacheKey;p.caseReducers.updateProvidedBy(x,p.actions.updateProvidedBy({queryCacheKey:D,providedTags:S}))})}}),h=He({name:e+"/subscriptions",initialState:Fa,reducers:{updateSubscriptionOptions:function(y,x){},unsubscribeQueryResult:function(y,x){},internal_probeSubscription:function(y,x){}}}),g=He({name:e+"/internalSubscriptions",initialState:Fa,reducers:{subscriptionsUpdated:{reducer:function(y,x){return Yh(y,x.payload)},prepare:Ta()}}}),E=He({name:e+"/config",initialState:Ne({online:m2(),focused:C2(),middlewareRegistered:!1},u),reducers:{middlewareRegistered:function(y,x){var w=x.payload;y.middlewareRegistered=y.middlewareRegistered==="conflict"||s!==w?"conflict":!0}},extraReducers:function(y){y.addCase(fh,function(x){x.online=!0}).addCase(wE,function(x){x.online=!1}).addCase(Ah,function(x){x.focused=!0}).addCase(IE,function(x){x.focused=!1}).addMatcher(l,function(x){return Ne({},x)})}}),m=jy({queries:d.reducer,mutations:f.reducer,provided:p.reducer,subscriptions:g.reducer,config:E.reducer}),v=function(y,x){return m(A.match(x)?void 0:y,x)},C=Sn(Ne(Ne(Ne(Ne(Ne(Ne({},E.actions),d.actions),h.actions),g.actions),f.actions),p.actions),{unsubscribeMutationResult:f.actions.removeMutationResult,resetApiState:A});return{reducer:v,actions:C}}var ii=Symbol.for("RTKQ/skipToken"),_E={status:Re.uninitialized},Qp=Sf(_E,function(){}),Zp=Sf(_E,function(){});function k2(t){var e=t.serializeQueryArgs,n=t.reducerPath,r=function(u){return Qp},i=function(u){return Zp};return{buildQuerySelector:o,buildMutationSelector:l,selectInvalidatedBy:c};function a(u){return Ne(Ne({},u),f2(u.status))}function s(u){var A=u[n];return A}function o(u,A){return function(d){var f=e({queryArgs:d,endpointDefinition:A,endpointName:u}),p=function(g){var E,m,v;return(v=(m=(E=s(g))==null?void 0:E.queries)==null?void 0:m[f])!=null?v:Qp},h=d===ii?r:p;return xi(h,a)}}function l(){return function(u){var A,d;typeof u=="object"?d=(A=Ts(u))!=null?A:ii:d=u;var f=function(h){var g,E,m;return(m=(E=(g=s(h))==null?void 0:g.mutations)==null?void 0:E[d])!=null?m:Zp},p=d===ii?i:f;return xi(p,a)}}function c(u,A){for(var d,f=u[n],p=new Set,h=0,g=A.map(SA);h<g.length;h++){var E=g[h],m=f.provided[E.type];if(m)for(var v=(d=E.id!==void 0?m[E.id]:Xp(Object.values(m)))!=null?d:[],C=0,y=v;C<y.length;C++){var x=y[C];p.add(x)}}return Xp(Array.from(p.values()).map(function(w){var S=f.queries[w];return S?[{queryCacheKey:w,endpointName:S.endpointName,originalArgs:S.originalArgs}]:[]}))}}var co=WeakMap?new WeakMap:void 0,Jp=function(t){var e=t.endpointName,n=t.queryArgs,r="",i=co==null?void 0:co.get(n);if(typeof i=="string")r=i;else{var a=JSON.stringify(n,function(s,o){return bi(o)?Object.keys(o).sort().reduce(function(l,c){return l[c]=o[c],l},{}):o});bi(n)&&(co==null||co.set(n,a)),r=a}return e+"("+r+")"};function M2(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(r){var i=qd(function(u){var A,d;return(d=r.extractRehydrationInfo)==null?void 0:d.call(r,u,{reducerPath:(A=r.reducerPath)!=null?A:"api"})}),a=Sn(Ne({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},r),{extractRehydrationInfo:i,serializeQueryArgs:function(u){var A=Jp;if("serializeQueryArgs"in u.endpointDefinition){var d=u.endpointDefinition.serializeQueryArgs;A=function(f){var p=d(f);return typeof p=="string"?p:Jp(Sn(Ne({},f),{queryArgs:p}))}}else r.serializeQueryArgs&&(A=r.serializeQueryArgs);return A(u)},tagTypes:cl([],r.tagTypes||[])}),s={endpointDefinitions:{},batch:function(u){u()},apiUid:Ky(),extractRehydrationInfo:i,hasRehydrationInfo:qd(function(u){return i(u)!=null})},o={injectEndpoints:c,enhanceEndpoints:function(u){var A=u.addTagTypes,d=u.endpoints;if(A)for(var f=0,p=A;f<p.length;f++){var h=p[f];a.tagTypes.includes(h)||a.tagTypes.push(h)}if(d)for(var g=0,E=Object.entries(d);g<E.length;g++){var m=E[g],v=m[0],C=m[1];typeof C=="function"?C(s.endpointDefinitions[v]):Object.assign(s.endpointDefinitions[v]||{},C)}return o}},l=t.map(function(u){return u.init(o,a,s)});function c(u){for(var A=u.endpoints({query:function(C){return Sn(Ne({},C),{type:Rn.query})},mutation:function(C){return Sn(Ne({},C),{type:Rn.mutation})}}),d=0,f=Object.entries(A);d<f.length;d++){var p=f[d],h=p[0],g=p[1];if(!u.overrideExisting&&h in s.endpointDefinitions){typeof process<"u";continue}s.endpointDefinitions[h]=g;for(var E=0,m=l;E<m.length;E++){var v=m[E];v.injectEndpoint(h,g)}}return o}return o.injectEndpoints({endpoints:r.endpoints})}}function P2(t){for(var e in t)return!1;return!0}var F2=2147483647/1e3-1,R2=function(t){var e=t.reducerPath,n=t.api,r=t.context,i=t.internalState,a=n.internalActions,s=a.removeQueryResult,o=a.unsubscribeQueryResult;function l(d){var f=i.currentSubscriptions[d];return!!f&&!P2(f)}var c={},u=function(d,f,p){var h;if(o.match(d)){var g=f.getState()[e],E=d.payload.queryCacheKey;A(E,(h=g.queries[E])==null?void 0:h.endpointName,f,g.config)}if(n.util.resetApiState.match(d))for(var m=0,v=Object.entries(c);m<v.length;m++){var C=v[m],y=C[0],x=C[1];x&&clearTimeout(x),delete c[y]}if(r.hasRehydrationInfo(d))for(var g=f.getState()[e],w=r.extractRehydrationInfo(d).queries,S=0,D=Object.entries(w);S<D.length;S++){var I=D[S],E=I[0],b=I[1];A(E,b==null?void 0:b.endpointName,f,g.config)}};function A(d,f,p,h){var g,E=r.endpointDefinitions[f],m=(g=E==null?void 0:E.keepUnusedDataFor)!=null?g:h.keepUnusedDataFor;if(m!==1/0){var v=Math.max(0,Math.min(m,F2));if(!l(d)){var C=c[d];C&&clearTimeout(C),c[d]=setTimeout(function(){l(d)||p.dispatch(s({queryCacheKey:d})),delete c[d]},v*1e3)}}}return u},N2=function(t){var e=t.reducerPath,n=t.context,r=t.context.endpointDefinitions,i=t.mutationThunk,a=t.api,s=t.assertTagType,o=t.refetchQuery,l=a.internalActions.removeQueryResult,c=Pm(xa(i),bf(i)),u=function(d,f){c(d)&&A(SE(d,"invalidatesTags",r,s),f),a.util.invalidateTags.match(d)&&A(hh(d.payload,void 0,void 0,void 0,void 0,s),f)};function A(d,f){var p=f.getState(),h=p[e],g=a.util.selectInvalidatedBy(p,d);n.batch(function(){for(var E,m=Array.from(g.values()),v=0,C=m;v<C.length;v++){var y=C[v].queryCacheKey,x=h.queries[y],w=(E=h.subscriptions[y])!=null?E:{};x&&(Object.keys(w).length===0?f.dispatch(l({queryCacheKey:y})):x.status!==Re.uninitialized&&f.dispatch(o(x,y)))}})}return u},B2=function(t){var e=t.reducerPath,n=t.queryThunk,r=t.api,i=t.refetchQuery,a=t.internalState,s={},o=function(f,p){(r.internalActions.updateSubscriptionOptions.match(f)||r.internalActions.unsubscribeQueryResult.match(f))&&c(f.payload,p),(n.pending.match(f)||n.rejected.match(f)&&f.meta.condition)&&c(f.meta.arg,p),(n.fulfilled.match(f)||n.rejected.match(f)&&!f.meta.condition)&&l(f.meta.arg,p),r.util.resetApiState.match(f)&&A()};function l(f,p){var h=f.queryCacheKey,g=p.getState()[e],E=g.queries[h],m=a.currentSubscriptions[h];if(!(!E||E.status===Re.uninitialized)){var v=d(m);if(Number.isFinite(v)){var C=s[h];C!=null&&C.timeout&&(clearTimeout(C.timeout),C.timeout=void 0);var y=Date.now()+v,x=s[h]={nextPollTimestamp:y,pollingInterval:v,timeout:setTimeout(function(){x.timeout=void 0,p.dispatch(i(E,h))},v)}}}}function c(f,p){var h=f.queryCacheKey,g=p.getState()[e],E=g.queries[h],m=a.currentSubscriptions[h];if(!(!E||E.status===Re.uninitialized)){var v=d(m);if(!Number.isFinite(v)){u(h);return}var C=s[h],y=Date.now()+v;(!C||y<C.nextPollTimestamp)&&l({queryCacheKey:h},p)}}function u(f){var p=s[f];p!=null&&p.timeout&&clearTimeout(p.timeout),delete s[f]}function A(){for(var f=0,p=Object.keys(s);f<p.length;f++){var h=p[f];u(h)}}function d(f){f===void 0&&(f={});var p=Number.POSITIVE_INFINITY;for(var h in f)f[h].pollingInterval&&(p=Math.min(f[h].pollingInterval,p));return p}return o},G2=function(t){var e=t.reducerPath,n=t.context,r=t.api,i=t.refetchQuery,a=t.internalState,s=r.internalActions.removeQueryResult,o=function(c,u){Ah.match(c)&&l(u,"refetchOnFocus"),fh.match(c)&&l(u,"refetchOnReconnect")};function l(c,u){var A=c.getState()[e],d=A.queries,f=a.currentSubscriptions;n.batch(function(){for(var p=0,h=Object.keys(f);p<h.length;p++){var g=h[p],E=d[g],m=f[g];if(!(!m||!E)){var v=Object.values(m).some(function(C){return C[u]===!0})||Object.values(m).every(function(C){return C[u]===void 0})&&A.config[u];v&&(Object.keys(m).length===0?c.dispatch(s({queryCacheKey:g})):E.status!==Re.uninitialized&&c.dispatch(i(E,g)))}}})}return o},eg=new Error("Promise never resolved before cacheEntryRemoved."),L2=function(t){var e=t.api,n=t.reducerPath,r=t.context,i=t.queryThunk,a=t.mutationThunk;t.internalState;var s=zh(i),o=zh(a),l=xa(i,a),c={},u=function(f,p,h){var g=A(f);if(i.pending.match(f)){var E=h[n].queries[g],m=p.getState()[n].queries[g];!E&&m&&d(f.meta.arg.endpointName,f.meta.arg.originalArgs,g,p,f.meta.requestId)}else if(a.pending.match(f)){var m=p.getState()[n].mutations[g];m&&d(f.meta.arg.endpointName,f.meta.arg.originalArgs,g,p,f.meta.requestId)}else if(l(f)){var v=c[g];v!=null&&v.valueResolved&&(v.valueResolved({data:f.payload,meta:f.meta.baseQueryMeta}),delete v.valueResolved)}else if(e.internalActions.removeQueryResult.match(f)||e.internalActions.removeMutationResult.match(f)){var v=c[g];v&&(delete c[g],v.cacheEntryRemoved())}else if(e.util.resetApiState.match(f))for(var C=0,y=Object.entries(c);C<y.length;C++){var x=y[C],w=x[0],v=x[1];delete c[w],v.cacheEntryRemoved()}};function A(f){return s(f)?f.meta.arg.queryCacheKey:o(f)?f.meta.requestId:e.internalActions.removeQueryResult.match(f)?f.payload.queryCacheKey:e.internalActions.removeMutationResult.match(f)?Ts(f.payload):""}function d(f,p,h,g,E){var m=r.endpointDefinitions[f],v=m==null?void 0:m.onCacheEntryAdded;if(v){var C={},y=new Promise(function(b){C.cacheEntryRemoved=b}),x=Promise.race([new Promise(function(b){C.valueResolved=b}),y.then(function(){throw eg})]);x.catch(function(){}),c[h]=C;var w=e.endpoints[f].select(m.type===Rn.query?p:h),S=g.dispatch(function(b,O,T){return T}),D=Sn(Ne({},g),{getCacheEntry:function(){return w(g.getState())},requestId:E,extra:S,updateCachedData:m.type===Rn.query?function(b){return g.dispatch(e.util.updateQueryData(f,p,b))}:void 0,cacheDataLoaded:x,cacheEntryRemoved:y}),I=v(p,D);Promise.resolve(I).catch(function(b){if(b!==eg)throw b})}}return u},V2=function(t){var e=t.api,n=t.context,r=t.queryThunk,i=t.mutationThunk,a=Rm(r,i),s=Nm(r,i),o=xa(r,i),l={},c=function(u,A){var d,f,p;if(a(u)){var h=u.meta,g=h.requestId,E=h.arg,m=E.endpointName,v=E.originalArgs,C=n.endpointDefinitions[m],y=C==null?void 0:C.onQueryStarted;if(y){var x={},w=new Promise(function(P,R){x.resolve=P,x.reject=R});w.catch(function(){}),l[g]=x;var S=e.endpoints[m].select(C.type===Rn.query?v:g),D=A.dispatch(function(P,R,W){return W}),I=Sn(Ne({},A),{getCacheEntry:function(){return S(A.getState())},requestId:g,extra:D,updateCachedData:C.type===Rn.query?function(P){return A.dispatch(e.util.updateQueryData(m,v,P))}:void 0,queryFulfilled:w});y(v,I)}}else if(o(u)){var b=u.meta,g=b.requestId,O=b.baseQueryMeta;(d=l[g])==null||d.resolve({data:u.payload,meta:O}),delete l[g]}else if(s(u)){var T=u.meta,g=T.requestId,M=T.rejectedWithValue,O=T.baseQueryMeta;(p=l[g])==null||p.reject({error:(f=u.payload)!=null?f:u.error,isUnhandledError:!M,meta:O}),delete l[g]}};return c},H2=function(t){var e=t.api,n=t.context.apiUid,r=t.reducerPath;return function(i,a){var s,o;e.util.resetApiState.match(i)&&a.dispatch(e.internalActions.middlewareRegistered(n)),typeof process<"u"}},tg,U2=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(tg||(tg=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},W2=function(t){var e=t.api,n=t.queryThunk,r=t.internalState,i=e.reducerPath+"/subscriptions",a=null,s=!1,o=e.internalActions,l=o.updateSubscriptionOptions,c=o.unsubscribeQueryResult,u=function(A,d){var f,p,h,g,E,m,v,C,y;if(l.match(d)){var x=d.payload,w=x.queryCacheKey,S=x.requestId,D=x.options;return(f=A==null?void 0:A[w])!=null&&f[S]&&(A[w][S]=D),!0}if(c.match(d)){var I=d.payload,w=I.queryCacheKey,S=I.requestId;return A[w]&&delete A[w][S],!0}if(e.internalActions.removeQueryResult.match(d))return delete A[d.payload.queryCacheKey],!0;if(n.pending.match(d)){var b=d.meta,O=b.arg,S=b.requestId;if(O.subscribe){var T=(h=A[p=O.queryCacheKey])!=null?h:A[p]={};return T[S]=(E=(g=O.subscriptionOptions)!=null?g:T[S])!=null?E:{},!0}}if(n.rejected.match(d)){var M=d.meta,P=M.condition,O=M.arg,S=M.requestId;if(P&&O.subscribe){var T=(v=A[m=O.queryCacheKey])!=null?v:A[m]={};return T[S]=(y=(C=O.subscriptionOptions)!=null?C:T[S])!=null?y:{},!0}}return!1};return function(A,d){var f,p;if(a||(a=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(A))return a=r.currentSubscriptions={},[!0,!1];if(e.internalActions.internal_probeSubscription.match(A)){var h=A.payload,g=h.queryCacheKey,E=h.requestId,m=!!((f=r.currentSubscriptions[g])!=null&&f[E]);return[!1,m]}var v=u(r.currentSubscriptions,A);if(v){s||(U2(function(){var w=JSON.parse(JSON.stringify(r.currentSubscriptions)),S=Fm(a,function(){return w}),D=S[1];d.next(e.internalActions.subscriptionsUpdated(D)),a=w,s=!1}),s=!0);var C=!!((p=A.type)!=null&&p.startsWith(i)),y=n.rejected.match(A)&&A.meta.condition&&!!A.meta.arg.subscribe,x=!C&&!y;return[x,!1]}return[!0,!1]}};function X2(t){var e=t.reducerPath,n=t.queryThunk,r=t.api,i=t.context,a=i.apiUid,s={invalidateTags:Ea(e+"/invalidateTags")},o=function(A){return!!A&&typeof A.type=="string"&&A.type.startsWith(e+"/")},l=[H2,R2,N2,B2,L2,V2],c=function(A){var d=!1,f={currentSubscriptions:{}},p=Sn(Ne({},t),{internalState:f,refetchQuery:u}),h=l.map(function(m){return m(p)}),g=W2(p),E=G2(p);return function(m){return function(v){d||(d=!0,A.dispatch(r.internalActions.middlewareRegistered(a)));var C=Sn(Ne({},A),{next:m}),y=A.getState(),x=g(v,C,y),w=x[0],S=x[1],D;if(w?D=m(v):D=S,A.getState()[e]&&(E(v,C,y),o(v)||i.hasRehydrationInfo(v)))for(var I=0,b=h;I<b.length;I++){var O=b[I];O(v,C,y)}return D}}};return{middleware:c,actions:s};function u(A,d,f){return f===void 0&&(f={}),n(Ne({type:"query",endpointName:A.endpointName,originalArgs:A.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:d},f))}}function Er(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];Object.assign.apply(Object,cl([t],e))}var ng=Symbol(),Y2=function(){return{name:ng,init:function(t,e,n){var r=e.baseQuery,i=e.tagTypes,a=e.reducerPath,s=e.serializeQueryArgs,o=e.keepUnusedDataFor,l=e.refetchOnMountOrArgChange,c=e.refetchOnFocus,u=e.refetchOnReconnect;$y();var A=function(L){return typeof process<"u",L};Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:fh,onOffline:wE,onFocus:Ah,onFocusLost:IE},util:{}});var d=T2({baseQuery:r,reducerPath:a,context:n,api:t,serializeQueryArgs:s,assertTagType:A}),f=d.queryThunk,p=d.mutationThunk,h=d.patchQueryData,g=d.updateQueryData,E=d.upsertQueryData,m=d.prefetch,v=d.buildMatchThunkActions,C=O2({context:n,queryThunk:f,mutationThunk:p,reducerPath:a,assertTagType:A,config:{refetchOnFocus:c,refetchOnReconnect:u,refetchOnMountOrArgChange:l,keepUnusedDataFor:o,reducerPath:a}}),y=C.reducer,x=C.actions;Er(t.util,{patchQueryData:h,updateQueryData:g,upsertQueryData:E,prefetch:m,resetApiState:x.resetApiState}),Er(t.internalActions,x);var w=X2({reducerPath:a,context:n,queryThunk:f,mutationThunk:p,api:t,assertTagType:A}),S=w.middleware,D=w.actions;Er(t.util,D),Er(t,{reducer:y,middleware:S});var I=k2({serializeQueryArgs:s,reducerPath:a}),b=I.buildQuerySelector,O=I.buildMutationSelector,T=I.selectInvalidatedBy;Er(t.util,{selectInvalidatedBy:T});var M=D2({queryThunk:f,mutationThunk:p,api:t,serializeQueryArgs:s,context:n}),P=M.buildInitiateQuery,R=M.buildInitiateMutation,W=M.getRunningMutationThunk,N=M.getRunningMutationsThunk,U=M.getRunningQueriesThunk,Y=M.getRunningQueryThunk,G=M.getRunningOperationPromises,H=M.removalWarning;return Er(t.util,{getRunningOperationPromises:G,getRunningOperationPromise:H,getRunningMutationThunk:W,getRunningMutationsThunk:N,getRunningQueryThunk:Y,getRunningQueriesThunk:U}),{name:ng,injectEndpoint:function(L,B){var X,z,q=t;(z=(X=q.endpoints)[L])!=null||(X[L]={}),bE(B)?Er(q.endpoints[L],{name:L,select:b(L,B),initiate:P(L,B)},v(f,L)):S2(B)&&Er(q.endpoints[L],{name:L,select:O(),initiate:R(L)},v(p,L))}}}}},z2=function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},q2=Object.defineProperty,K2=Object.defineProperties,$2=Object.getOwnPropertyDescriptors,rg=Object.getOwnPropertySymbols,j2=Object.prototype.hasOwnProperty,Q2=Object.prototype.propertyIsEnumerable,ig=function(t,e,n){return e in t?q2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},jn=function(t,e){for(var n in e||(e={}))j2.call(e,n)&&ig(t,n,e[n]);if(rg)for(var r=0,i=rg(e);r<i.length;r++){var n=i[r];Q2.call(e,n)&&ig(t,n,e[n])}return t},Bo=function(t,e){return K2(t,$2(e))};function ag(t,e,n,r){var i=_.useMemo(function(){return{queryArgs:t,serialized:typeof t=="object"?e({queryArgs:t,endpointDefinition:n,endpointName:r}):t}},[t,e,n,r]),a=_.useRef(i);return _.useEffect(function(){a.current.serialized!==i.serialized&&(a.current=i)},[i]),a.current.serialized===i.serialized?a.current.queryArgs:t}var Fu=Symbol();function Ru(t){var e=_.useRef(t);return _.useEffect(function(){Yo(e.current,t)||(e.current=t)},[t]),Yo(e.current,t)?e.current:t}var uo=WeakMap?new WeakMap:void 0,Z2=function(t){var e=t.endpointName,n=t.queryArgs,r="",i=uo==null?void 0:uo.get(n);if(typeof i=="string")r=i;else{var a=JSON.stringify(n,function(s,o){return bi(o)?Object.keys(o).sort().reduce(function(l,c){return l[c]=o[c],l},{}):o});bi(n)&&(uo==null||uo.set(n,a)),r=a}return e+"("+r+")"},J2=typeof window<"u"&&window.document&&window.document.createElement?_.useLayoutEffect:_.useEffect,eO=function(t){return t},tO=function(t){return t.isUninitialized?Bo(jn({},t),{isUninitialized:!1,isFetching:!0,isLoading:t.data===void 0,status:Re.pending}):t};function nO(t){var e=t.api,n=t.moduleOptions,r=n.batch,i=n.useDispatch,a=n.useSelector,s=n.useStore,o=n.unstable__sideEffectsInRender,l=t.serializeQueryArgs,c=t.context,u=o?function(h){return h()}:_.useEffect;return{buildQueryHooks:f,buildMutationHook:p,usePrefetch:d};function A(h,g,E){if(g!=null&&g.endpointName&&h.isUninitialized){var m=g.endpointName,v=c.endpointDefinitions[m];l({queryArgs:g.originalArgs,endpointDefinition:v,endpointName:m})===l({queryArgs:E,endpointDefinition:v,endpointName:m})&&(g=void 0)}var C=h.isSuccess?h.data:g==null?void 0:g.data;C===void 0&&(C=h.data);var y=C!==void 0,x=h.isLoading,w=!y&&x,S=h.isSuccess||x&&y;return Bo(jn({},h),{data:C,currentData:h.data,isFetching:x,isLoading:w,isSuccess:S})}function d(h,g){var E=i(),m=Ru(g);return _.useCallback(function(v,C){return E(e.util.prefetch(h,v,jn(jn({},m),C)))},[h,E,m])}function f(h){var g=function(v,C){var y=C===void 0?{}:C,x=y.refetchOnReconnect,w=y.refetchOnFocus,S=y.refetchOnMountOrArgChange,D=y.skip,I=D===void 0?!1:D,b=y.pollingInterval,O=b===void 0?0:b,T=e.endpoints[h].initiate,M=i(),P=ag(I?ii:v,Z2,c.endpointDefinitions[h],h),R=Ru({refetchOnReconnect:x,refetchOnFocus:w,pollingInterval:O}),W=_.useRef(!1),N=_.useRef(),U=N.current||{},Y=U.queryCacheKey,G=U.requestId,H=!1;if(Y&&G){var L=M(e.internalActions.internal_probeSubscription({queryCacheKey:Y,requestId:G}));H=!!L}var B=!H&&W.current;return u(function(){W.current=H}),u(function(){B&&(N.current=void 0)},[B]),u(function(){var X,z=N.current;if(typeof process<"u",P===ii){z==null||z.unsubscribe(),N.current=void 0;return}var q=(X=N.current)==null?void 0:X.subscriptionOptions;if(!z||z.arg!==P){z==null||z.unsubscribe();var Q=M(T(P,{subscriptionOptions:R,forceRefetch:S}));N.current=Q}else R!==q&&z.updateSubscriptionOptions(R)},[M,T,S,P,R,B]),_.useEffect(function(){return function(){var X;(X=N.current)==null||X.unsubscribe(),N.current=void 0}},[]),_.useMemo(function(){return{refetch:function(){var X;if(!N.current)throw new Error("Cannot refetch a query that has not been started yet.");return(X=N.current)==null?void 0:X.refetch()}}},[])},E=function(v){var C=v===void 0?{}:v,y=C.refetchOnReconnect,x=C.refetchOnFocus,w=C.pollingInterval,S=w===void 0?0:w,D=e.endpoints[h].initiate,I=i(),b=_.useState(Fu),O=b[0],T=b[1],M=_.useRef(),P=Ru({refetchOnReconnect:y,refetchOnFocus:x,pollingInterval:S});u(function(){var N,U,Y=(N=M.current)==null?void 0:N.subscriptionOptions;P!==Y&&((U=M.current)==null||U.updateSubscriptionOptions(P))},[P]);var R=_.useRef(P);u(function(){R.current=P},[P]);var W=_.useCallback(function(N,U){U===void 0&&(U=!1);var Y;return r(function(){var G;(G=M.current)==null||G.unsubscribe(),M.current=Y=I(D(N,{subscriptionOptions:R.current,forceRefetch:!U})),T(N)}),Y},[I,D]);return _.useEffect(function(){return function(){var N;(N=M==null?void 0:M.current)==null||N.unsubscribe()}},[]),_.useEffect(function(){O!==Fu&&!M.current&&W(O,!0)},[O,W]),_.useMemo(function(){return[W,O]},[W,O])},m=function(v,C){var y=C===void 0?{}:C,x=y.skip,w=x===void 0?!1:x,S=y.selectFromResult,D=e.endpoints[h].select,I=ag(w?ii:v,l,c.endpointDefinitions[h],h),b=_.useRef(),O=_.useMemo(function(){return xi([D(I),function(W,N){return N},function(W){return I}],A)},[D,I]),T=_.useMemo(function(){return S?xi([O],S):O},[O,S]),M=a(function(W){return T(W,b.current)},Yo),P=s(),R=O(P.getState(),b.current);return J2(function(){b.current=R},[R]),M};return{useQueryState:m,useQuerySubscription:g,useLazyQuerySubscription:E,useLazyQuery:function(v){var C=E(v),y=C[0],x=C[1],w=m(x,Bo(jn({},v),{skip:x===Fu})),S=_.useMemo(function(){return{lastArg:x}},[x]);return _.useMemo(function(){return[y,w,S]},[y,w,S])},useQuery:function(v,C){var y=g(v,C),x=m(v,jn({selectFromResult:v===ii||C!=null&&C.skip?void 0:tO},C)),w=x.data,S=x.status,D=x.isLoading,I=x.isSuccess,b=x.isError,O=x.error;return _.useDebugValue({data:w,status:S,isLoading:D,isSuccess:I,isError:b,error:O}),_.useMemo(function(){return jn(jn({},x),y)},[x,y])}}}function p(h){return function(g){var E=g===void 0?{}:g,m=E.selectFromResult,v=m===void 0?eO:m,C=E.fixedCacheKey,y=e.endpoints[h],x=y.select,w=y.initiate,S=i(),D=_.useState(),I=D[0],b=D[1];_.useEffect(function(){return function(){I!=null&&I.arg.fixedCacheKey||I==null||I.reset()}},[I]);var O=_.useCallback(function(z){var q=S(w(z,{fixedCacheKey:C}));return b(q),q},[S,w,C]),T=(I||{}).requestId,M=_.useMemo(function(){return xi([x({fixedCacheKey:C,requestId:I==null?void 0:I.requestId})],v)},[x,I,v,C]),P=a(M,Yo),R=C==null?I==null?void 0:I.arg.originalArgs:void 0,W=_.useCallback(function(){r(function(){I&&b(void 0),C&&S(e.internalActions.removeMutationResult({requestId:T,fixedCacheKey:C}))})},[S,C,I,T]),N=P.endpointName,U=P.data,Y=P.status,G=P.isLoading,H=P.isSuccess,L=P.isError,B=P.error;_.useDebugValue({endpointName:N,data:U,status:Y,isLoading:G,isSuccess:H,isError:L,error:B});var X=_.useMemo(function(){return Bo(jn({},P),{originalArgs:R,reset:W})},[P,R,W]);return _.useMemo(function(){return[O,X]},[O,X])}}}var dl;(function(t){t.query="query",t.mutation="mutation"})(dl||(dl={}));function rO(t){return t.type===dl.query}function iO(t){return t.type===dl.mutation}function Nu(t){return t.replace(t[0],t[0].toUpperCase())}function Ao(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];Object.assign.apply(Object,z2([t],e))}var aO=Symbol(),sO=function(t){var e={},n=e.batch,r=n===void 0?f1.unstable_batchedUpdates:n,i=e.useDispatch,a=i===void 0?tC:i,s=e.useSelector,o=s===void 0?e1:s,l=e.useStore,c=l===void 0?eC:l,u=e.unstable__sideEffectsInRender,A=u===void 0?!1:u;return{name:aO,init:function(d,f,p){var h=f.serializeQueryArgs,g=d,E=nO({api:d,moduleOptions:{batch:r,useDispatch:a,useSelector:o,useStore:c,unstable__sideEffectsInRender:A},serializeQueryArgs:h,context:p}),m=E.buildQueryHooks,v=E.buildMutationHook,C=E.usePrefetch;return Ao(g,{usePrefetch:C}),Ao(p,{batch:r}),{injectEndpoint:function(y,x){if(rO(x)){var w=m(y),S=w.useQuery,D=w.useLazyQuery,I=w.useLazyQuerySubscription,b=w.useQueryState,O=w.useQuerySubscription;Ao(g.endpoints[y],{useQuery:S,useLazyQuery:D,useLazyQuerySubscription:I,useQueryState:b,useQuerySubscription:O}),d["use"+Nu(y)+"Query"]=S,d["useLazy"+Nu(y)+"Query"]=D}else if(iO(x)){var T=v(y);Ao(g.endpoints[y],{useMutation:T}),d["use"+Nu(y)+"Mutation"]=T}}}}}},oO=M2(Y2(),sO()),vn=(t=>(t[t.none=0]="none",t[t.second=1]="second",t[t.minute=60]="minute",t[t.fiveMinutes=300]="fiveMinutes",t[t.hour=3600]="hour",t[t.day=86400]="day",t[t.week=604800]="week",t))(vn||{}),DE=(t=>(t[t.short=1e3]="short",t[t.medium=15e3]="medium",t[t.long=3e4]="long",t))(DE||{});const lO=t=>new Promise(e=>setTimeout(e,t)),cO=(t,{getState:e})=>{const n=e(),{environment:r}=cE(n),i=Yy[r];return i?t.set("X-API-KEY",i):kf(`No API key in .env for environment ${r}.`),t.set("releaseVersion",Oy),t},uO=async(t,e,n)=>Mu(async()=>{var f;const{slug:r,afterError:i,afterSuccess:a,prepareHeaders:s=p=>p}=t,o=_T(r)(e.getState()),l=`${e.endpoint}: ${t.method??"GET"} ${o}${t.url}`;$h(`Request started: ${l}`);const c=await y2({baseUrl:o,prepareHeaders:(p,h)=>cO(s(p,h),h),timeout:DE.long})(t,e,n),{error:u,meta:A}=c,d=((f=A==null?void 0:A.response)==null?void 0:f.status)??(u==null?void 0:u.status)??0;return u?kf(`Request failed (${d}): ${l}, ${JSON.stringify(u.data)}`):$h(`Request success: ${l}`),d===404&&Mu.fail(u),((u==null?void 0:u.status)==="FETCH_ERROR"||(u==null?void 0:u.status)==="TIMEOUT_ERROR"||(u==null?void 0:u.status)===502)&&await lO(100),u?await(i==null?void 0:i(c,e,Mu.fail)):await(a==null?void 0:a(c,e)),c},{maxRetries:2})(t,e,n),ru=oO({baseQuery:uO,endpoints:()=>({}),reducerPath:"api",tagTypes:["Articles","FollowedProjects","Modules","Notifications","Projects"]}),dO=ru.injectEndpoints({endpoints:t=>({[CE.getRedirectUrls]:t.query({query:()=>({slug:Ke.contact,url:"/links"}),keepUnusedDataFor:vn.hour})}),overrideExisting:!0}),{useGetRedirectUrlsQuery:AO}=dO,fO=()=>{const{setIsMenuOpen:t,headerHeight:e,isMenuOpen:n}=Ri(),r=Nn(),i=Hm(Mf.normal),a=Ls(),s=hO(r,e,a),{addDownloadedTranscriptId:o,endChat:l}=_.useContext(dn),c=Gm(),{data:u,isLoading:A,isError:d}=AO(),f=Hc();return n?k.jsx($t.View,{entering:th.duration(r.duration.transition.short),exiting:nh.duration(r.duration.transition.short),style:s.container,children:k.jsxs(Dn,{halign:"start",children:[k.jsx(gs,{color:"link",label:"Chat downloaden",onPress:()=>{t(!1),mE().then(p=>p&&o(p))},ref:i,testID:"ChatMenuPressableDownloadChat"}),!A&&!d&&k.jsx(gs,{color:"link",label:"Privacy",onPress:()=>{u!=null&&u.chatPrivacy?(t(!1),c(u.chatPrivacy)):(Jn.alert("Sorry, deze functie is nu niet beschikbaar. Probeer het later nog eens."),f(Zn.getRedirectsUrl,"ChatMenu.ts",{redirectsKey:"chatPrivacy"}))},testID:"ChatMenuPressableStopChat"}),k.jsx(gs,{color:"warning",label:"Chat stoppen",onPress:()=>{t(!1),l()},testID:"ChatMenuPressableStopChat"})]})}):null},hO=({color:t,z:e,size:n},r,i)=>he.create({container:{position:"absolute",left:n.spacing.sm,top:r+i.top,backgroundColor:t.box.distinct,zIndex:e.tooltip,elevation:2,shadowColor:t.shadow.default,shadowOffset:{width:0,height:2},shadowRadius:4,shadowOpacity:.3}}),pO=He({name:le.bottomSheet,initialState:{isOpen:!1,isPresentAtRouteNames:[]},reducers:{closeBottomSheet:t=>({...t,isOpen:!1}),openBottomSheet:t=>({...t,isOpen:!0}),addIsPresentAtRouteName:(t,{payload:e})=>{t.isPresentAtRouteNames.push(e)},removeIsPresentAtRouteName:(t,{payload:e})=>({...t,isPresentAtRouteNames:t.isPresentAtRouteNames.filter(n=>n!==e)}),toggleBottomSheet:t=>({...t,isOpen:!t.isOpen})}}),{closeBottomSheet:gO,openBottomSheet:vO,addIsPresentAtRouteName:mO,removeIsPresentAtRouteName:CO,toggleBottomSheet:EO}=pO.actions,xO=()=>{const t=Bn();return{isOpen:et(n=>n[le.bottomSheet].isOpen),..._.useMemo(()=>({close:()=>t(gO()),open:()=>t(vO()),addIsPresentAtRouteName:n=>t(mO(n)),removeIsPresentAtRouteName:n=>t(CO(n)),toggle:()=>t(EO())}),[t])}},sg={spaceBottom:0,isContentHiddenFromAccessibility:!1,isHiddenFromAccessibility:!1},yO=He({name:le.screen,initialState:sg,reducers:{resetScreen:()=>sg,setHideScreenFromAccessibility:(t,{payload:e})=>{t.isHiddenFromAccessibility=e},setHideScreenContentFromAccessibility:(t,{payload:e})=>{t.isContentHiddenFromAccessibility=e},setExtraSpaceBottom:(t,{payload:e})=>{t.spaceBottom=e}}}),{setExtraSpaceBottom:IO,setHideScreenFromAccessibility:wO,setHideScreenContentFromAccessibility:bO}=yO.actions,SO=t=>t[le.screen].spaceBottom,_O=t=>t[le.screen].isHiddenFromAccessibility,DO=t=>t[le.screen].isContentHiddenFromAccessibility,ph=()=>{const t=Bn(),e=et(SO),n=et(DO),r=et(_O),i=_.useCallback(o=>t(IO(o)),[t]),a=_.useCallback(o=>t(wO(o)),[t]),s=_.useCallback(o=>t(bO(o)),[t]);return{isContentHiddenFromAccessibility:n,isHiddenFromAccessibility:r,spaceBottom:e,setHideContentFromAccessibility:s,setHideFromAccessibility:a,setSpaceBottom:i}},TO=60,OO=8,kO=25,DA=({children:t})=>{const e=Nn(),{isOpen:n}=xO(),{isMaximized:r}=Ri(),[i,a]=_.useState(0),s=ct(0),o=ct(0),l=ct(r?1:0),c=Ls(),{fontScale:u}=Vm(),{newMessagesCount:A}=_.useContext(dn),{setSpaceBottom:d}=ph(),f=MO(e,c),p=TO*u+c.bottom;_.useEffect(()=>{l.value=j(r?1:0)},[r,l]),_.useEffect(()=>(d(p-OO),()=>{d(0)}),[p,d]),_.useEffect(()=>{A>0&&!r&&!n?o.value=Zf(Fe(j(-kO,{duration:400}),Qf(0,{duration:1e3,dampingRatio:.3}),j(0,{duration:3e3})),-1):o.value=0},[o,r,n,A]),_.useEffect(()=>{s.value=j(r?0:i-(n?0:p))},[r,s,i,n,p]);const h=Fn(()=>({transform:[{translateY:s.value+o.value}],backgroundColor:EA(l.value,[0,1],[e.color.chat.minimized.background,e.color.chat.maximized.background]),borderTopColor:EA(l.value,[0,1],[e.color.chat.border,"transparent"]),borderTopWidth:Lt(l.value,[0,1],[e.border.width.md,0])})),g=Fn(()=>({transform:[{translateY:Lt(l.value,[0,1],[-c.top,0])}]}));return k.jsxs($t.View,{entering:_i,exiting:Is,onLayout:E=>{a(E.nativeEvent.layout.height)},style:[he.absoluteFill,f.container,h],children:[k.jsx(fO,{}),k.jsx($t.View,{style:[f.inner,g],children:t})]})},MO=({z:t},e)=>he.create({container:{flexGrow:1,paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left,zIndex:t.overlay-1},inner:{flexGrow:1}});try{DA.displayName="ChatAnimatedWrapper",DA.__docgenInfo={description:"",displayName:"ChatAnimatedWrapper",props:{}}}catch{}const Al=({accessibilityLanguage:t="nl-NL",text:e})=>k.jsx(Wm,{accessibilityLanguage:t,level:"h5",numberOfLines:1,testID:"HeaderTitle",text:e,textAlign:"center"});try{Al.displayName="ScreenHeaderTitle",Al.__docgenInfo={description:"",displayName:"ScreenHeaderTitle",props:{accessibilityLanguage:{defaultValue:{value:"nl-NL"},description:"",name:"accessibilityLanguage",required:!1,type:{name:"string"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}}}}}catch{}const og=28,TA=({color:t,width:e=og,height:n=og,...r})=>{const{fontScale:i}=Vm();return k.jsxs(Pf,{...r,fill:"none",height:Number(n)*i,viewBox:"0 0 28 28",width:Number(e)*i,children:[k.jsx(_r,{"clip-rule":"evenodd",d:"M14 2C7.37258 2 2 7.37258 2 14C2 20.6274 7.37258 26 14 26C20.6274 26 26 20.6274 26 14C26 7.37258 20.6274 2 14 2ZM0 14C0 6.26801 6.26801 0 14 0C21.732 0 28 6.26801 28 14C28 21.732 21.732 28 14 28C6.26801 28 0 21.732 0 14Z",fill:t,"fill-rule":"evenodd"}),k.jsx(_r,{d:"M16 14C16 15.1046 15.1046 16 14 16C12.8954 16 12 15.1046 12 14C12 12.8954 12.8954 12 14 12C15.1046 12 16 12.8954 16 14Z",fill:t}),k.jsx(_r,{d:"M10 14C10 15.1046 9.10457 16 8 16C6.89543 16 6 15.1046 6 14C6 12.8954 6.89543 12 8 12C9.10457 12 10 12.8954 10 14Z",fill:t}),k.jsx(_r,{d:"M22 14C22 15.1046 21.1046 16 20 16C18.8954 16 18 15.1046 18 14C18 12.8954 18.8954 12 20 12C21.1046 12 22 12.8954 22 14Z",fill:t})]})};try{TA.displayName="MeatballsMenu",TA.__docgenInfo={description:"",displayName:"MeatballsMenu",props:{}}}catch{}var PO=function(t,...e){const n=[],{isArray:r}=Array;e.forEach((s,o)=>{if(typeof s=="number")e[o]=[s,s];else if(r(s))if(typeof s[0]=="number")e[o]=[s[0],typeof s[1]=="function"?s[1](s[0]):null];else throw TypeError("First item in array must be a Number")});let i=e.find(r),a;for(let s of t){if(r(a)&&a[1]==null&&(s=s.replace(/^\s+/,"")),i?n.push(s.replace(/\[([^|]*)\|([^\]]*)\]/g,i[0]==1?"$1":"$2")):n.push(s),!e.length)break;i=e.find(r)||i,a=e.shift(),n.push(a===i?i[1]:a)}return n.join("")};const TE=Ur(PO),FO=()=>{const{newMessagesCount:t}=_.useContext(dn);return t?k.jsx(Ym,{accessibilityLabel:t+" "+TE`[nieuw bericht|nieuwe berichten]${[t]} `,testID:"ChatNewMessageIndicatorBadge",value:t,variant:"small"}):null},RO=({children:t,isMaximized:e,onPress:n,style:r,...i})=>e?k.jsx(k.Fragment,{children:t}):k.jsx(h1,{...i,onPress:n,style:r,children:t}),NO=()=>{const{isMaximized:t,isMenuOpen:e,setHeaderHeight:n,setIsMenuOpen:r,toggleVisibility:i}=Ri(),{setHideFromAccessibility:a}=ph(),{color:s}=Nn(),o=BO(),l=Fn(()=>({transform:[{rotate:j(t?"0deg":"-180deg")}]})),c=Fn(()=>({opacity:j(t?1:0)})),u=()=>{i(),ua.dismiss(),r(!1)};return _.useEffect(()=>(a(t),()=>{a(!1)}),[t,a]),k.jsx(pe,{onLayout:A=>n(A.nativeEvent.layout.height),style:o.container,children:k.jsx(RO,{accessibilityHint:"Activeer om de chat te maximaliseren",isMaximized:t,onPress:i,style:o.pressableWhenMinimized,children:k.jsx(hr,{testID:"ChatHeader",children:k.jsxs(ln,{align:"between",valign:"center",children:[k.jsx($t.View,{style:c,children:k.jsx(Si,{accessibilityLabel:`Chat menu ${e?"sluiten":"openen"}.`,icon:k.jsx(TA,{color:s.pressable.secondary.default.icon}),onPress:()=>r(!e),pointerEvents:t?"auto":"none",testID:"ChatHeaderMeatballsMenuButton"})}),k.jsx(pe,{accessible:!0,children:k.jsxs(ln,{gutter:"xs",valign:"center",children:[k.jsx(Al,{text:"Chat"}),k.jsx(FO,{})]})}),k.jsx($t.View,{style:l,children:k.jsx(Si,{accessibilityLabel:`Chat ${t?"minimaliseren":"maximaliseren"}`,icon:k.jsx(Mn,{color:"link",name:"chevron-down",size:"lg",testID:"ChatHeaderToggleVisibilityButtonIcon"}),onPress:u,testID:"ChatHeaderToggleVisibilityButton"})})]})})})})},BO=()=>he.create({container:{zIndex:1},pressableWhenMinimized:{flexGrow:1}}),OA=({firstMessage:t})=>k.jsx(Yc,{icon:"chat",testID:"ChatStartingTime",text:`Chat gestart om ${dh((t==null?void 0:t.timestamp)??nu().unix()).format("HH:mm")}`});try{OA.displayName="ChatStartTime",OA.__docgenInfo={description:"",displayName:"ChatStartTime",props:{firstMessage:{defaultValue:null,description:"",name:"firstMessage",required:!0,type:{name:"ConversationEntry"}}}}}catch{}const GO="Chatbot Gemeente Amsterdam",LO=(t,e,n)=>{const r=dh(n).format("HH:mm");return e===tt.user?r:e===tt.chatbot?`${GO} - ${r}`:`${t} - ${r}`},kA=({message:{sender:{role:t},senderDisplayName:e,timestamp:n},isLastOfRole:r})=>{const i=On(a=>HO(a,t===tt.user));return t===tt.system?null:!!r&&k.jsxs(k.Fragment,{children:[k.jsx(Xc,{height:"xs"}),k.jsx(pe,{style:i.container,children:k.jsx(kn,{color:"secondary",testID:`ChatHistoryGroupName${t}`,variant:"extraSmall",children:LO(e,t,n)})})]})},VO=40,HO=({size:t},e)=>he.create({container:{paddingLeft:e?void 0:VO+t.spacing.sm,alignItems:e?"flex-end":"flex-start"}});try{kA.displayName="ChatAgentInfo",kA.__docgenInfo={description:"",displayName:"ChatAgentInfo",props:{isLast:{defaultValue:null,description:"",name:"isLast",required:!0,type:{name:"boolean"}},isLastOfRole:{defaultValue:null,description:"",name:"isLastOfRole",required:!0,type:{name:"boolean"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntry"}}}}}catch{}const UO=()=>{const{color:t}=Nn();return k.jsxs(Pf,{fill:"none",height:"40",viewBox:"0 0 40 40",width:"40",children:[k.jsx(Xm,{cx:"20",cy:"20",fill:t.chat.avatar.background,r:"19.5",stroke:t.chat.avatar.border}),k.jsx(_r,{d:"M16.3604 30.9196L18.5404 28.7396L16.3604 26.5396L17.8204 25.0996L20.0004 27.2796L22.1804 25.0996L23.6404 26.5396L21.4604 28.7396L23.6404 30.9196L22.1804 32.3596L20.0004 30.1796L17.8204 32.3596L16.3604 30.9196Z",fill:t.logo}),k.jsx(_r,{d:"M16.3604 22.1799L18.5404 19.9999L16.3604 17.8199L17.8204 16.3799L20.0004 18.5599L22.1804 16.3799L23.6404 17.8199L21.4604 19.9999L23.6404 22.1799L22.1804 23.6399L20.0004 21.4599L17.8204 23.6399L16.3604 22.1799Z",fill:t.logo}),k.jsx(_r,{d:"M16.3604 13.4596L18.5404 11.2596L16.3604 9.07965L17.8204 7.63965L20.0004 9.81965L22.1804 7.63965L23.6404 9.07965L21.4604 11.2596L23.6404 13.4596L22.1804 14.8996L20.0004 12.7196L17.8204 14.8996L16.3604 13.4596Z",fill:t.logo})]})},WO=()=>{const{color:t}=Nn();return k.jsxs(Pf,{fill:"none",height:"40",viewBox:"0 0 40 40",width:"40",children:[k.jsx(Xm,{cx:"20",cy:"20",fill:t.chat.avatar.background,r:"19.5",stroke:t.chat.avatar.border}),k.jsx(_r,{"clip-rule":"evenodd",d:"M20 35C13.5 35 9 30.5 9 30.1981C9 24.5731 12.15 21.625 16.5 21.625H24C28.35 21.625 31.5 24.0062 31.5 29.6312C31.5 30.1981 26.5 35 20 35ZM20.25 19.75C23.3397 19.7096 25.8346 17.2147 25.875 14.125C25.875 11.0184 23.3566 8.5 20.25 8.5C17.1434 8.5 14.625 11.0184 14.625 14.125C14.6654 17.2147 17.1603 19.7096 20.25 19.75Z",fill:t.chat.avatar.foreground,"fill-rule":"evenodd"})]})},MA=({children:t,senderRole:e})=>{const n=On(r=>XO(r,e));return k.jsx(pe,{accessible:!0,style:n.bubble,children:t})},XO=({color:t,size:e},n)=>{const r=n===tt.user,i=12;return he.create({bubble:{flexShrink:1,borderRadius:i,borderBottomRightRadius:r?0:i,borderBottomLeftRadius:r?i:0,backgroundColor:t.chat.message[n].background,paddingHorizontal:e.spacing.md,paddingVertical:e.spacing.sm}})};try{MA.displayName="ChatMessageBubble",MA.__docgenInfo={description:"",displayName:"ChatMessageBubble",props:{senderRole:{defaultValue:null,description:"",name:"senderRole",required:!0,type:{name:"enum",value:[{value:'"Chatbot"'},{value:'"Agent"'},{value:'"System"'},{value:'"USER"'}]}}}}}catch{}const Lr=({message:t,children:e,isText:n=!0})=>{const r=t.sender.role===tt.user;return k.jsxs(ln,{align:r?"end":"start",gutter:"sm",valign:"end",children:[t.sender.role===tt.chatbot&&k.jsx(UO,{}),t.sender.role===tt.employee&&k.jsx(WO,{}),n?k.jsx(MA,{senderRole:t.sender.role,children:e}):e]})};try{Lr.displayName="ChatMessageEntry",Lr.__docgenInfo={description:"",displayName:"ChatMessageEntry",props:{isText:{defaultValue:{value:"true"},description:"",name:"isText",required:!1,type:{name:"boolean"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntry"}}}}}catch{}const PA=({accessibilityLabel:t="Afbeelding, miniatuurweergave.",fileName:e="afbeelding.jpg",imageSource:n,thumbnailSize:r,headerTitle:i,...a})=>{const[s,o]=_.useState(!1),[l,c]=_.useState(),u=Ls(),A=()=>{o(!s)},d=_.useMemo(()=>{if(typeof n!="number")return n&&typeof n=="object"&&"uri"in n?n.uri:void 0},[n]);_.useEffect(()=>{fs.getSize(d??"",(h,g)=>c(h/g),h=>Wc(h))},[d]);const f=On(h=>YO(h,r,u,l)),p=d==null?void 0:d.startsWith("file://");return k.jsxs(pe,{children:[k.jsx(Of,{...a,accessibilityLabel:t,onPress:A,testID:"ThumbnailViewerThumbnailPressable",children:k.jsx(fs,{source:n,style:f.thumbnail,testID:"ThumbnailViewerThumbnailImage"})}),k.jsx(r1,{animationType:"fade",onRequestClose:A,supportedOrientations:["portrait","landscape"],testID:"ThumbnailViewerModal",transparent:!0,visible:s,children:k.jsxs(pe,{style:f.overlay,children:[k.jsx(hr,{children:k.jsxs(ln,{align:"between",children:[k.jsx(Si,{accessibilityLabel:"Terug",icon:k.jsx(Mn,{color:"link",name:"chevron-left",size:"lg",testID:"ThumbnailViewerCloseIcon"}),onPress:A,testID:"ThumbnailViewerCloseButton"}),!!i&&k.jsx(Al,{text:i}),k.jsx(Si,{accessibilityLabel:"Download de afbeelding.",icon:k.jsx(Mn,{color:"link",name:"download",size:"lg",testID:"ThumbnailViewerDownloadIcon"}),onPress:()=>uh({localUri:p?d:void 0,downloadUri:p?void 0:d,fileName:e}),testID:"ThumbnailViewerDownloadButton"})]})}),k.jsx(fs,{accessibilityLabel:"Afbeelding",accessible:!0,resizeMode:"contain",source:n,style:f.fullImage,testID:"ThumbnailViewerFullImage"})]})})]})},YO=({color:t,size:e,z:n},r,i,a)=>he.create({thumbnail:{width:r,height:r},overlay:{flex:1,backgroundColor:t.box.distinct,justifyContent:"center",zIndex:n.overlay,paddingTop:ue.OS==="android"?0:i.top,paddingRight:i.right,paddingBottom:e.spacing.md+i.bottom,paddingLeft:i.left},fullImage:{aspectRatio:a,alignSelf:"center",maxWidth:"100%",maxHeight:"100%",flex:1}});try{PA.displayName="ThumbnailViewer",PA.__docgenInfo={description:"",displayName:"ThumbnailViewer",props:{fileName:{defaultValue:{value:"afbeelding.jpg"},description:"",name:"fileName",required:!1,type:{name:"string"}},headerTitle:{defaultValue:null,description:"",name:"headerTitle",required:!1,type:{name:"string"}},imageSource:{defaultValue:null,description:"",name:"imageSource",required:!0,type:{name:"ImageSourcePropType | undefined"}},thumbnailSize:{defaultValue:null,description:"",name:"thumbnailSize",required:!0,type:{name:"DimensionValue"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial<Record<CustomDimensionKeys, string>>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"tertiary"'},{value:'"transparent"'}]}},inset:{defaultValue:null,description:"The amount of inner spacing.",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetHorizontal:{defaultValue:null,description:"The amount of inner spacing at the left and right.",name:"insetHorizontal",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetVertical:{defaultValue:null,description:"The amount of inner spacing at the top and bottom.",name:"insetVertical",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}}}}}catch{}const zO=220,FA=({image:t,message:{sender:e,senderDisplayName:n}})=>{const r=e.role===tt.user,i=qO(r);return k.jsx(pe,{style:i.container,children:k.jsx(PA,{accessibilityLabel:`Miniatuurweergave van door ${r?"u":n} gedeelde afbeelding.`,fileName:t.name,imageSource:{uri:t.url},thumbnailSize:zO})})},qO=t=>he.create({container:{overflow:"hidden",alignItems:"center",justifyContent:"center",borderRadius:12,borderBottomRightRadius:t?0:12,borderBottomLeftRadius:t?12:0}});try{FA.displayName="ChatMessageImage",FA.__docgenInfo={description:"",displayName:"ChatMessageImage",props:{image:{defaultValue:null,description:"",name:"image",required:!0,type:{name:"Attachment"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntry"}}}}}catch{}const RA=({message:t})=>{const e=t.attachments[0].mimeType.startsWith("image"),n=t.sender.role===tt.employee;return k.jsx(k.Fragment,{children:t.attachments.map(r=>e?k.jsx(Lr,{isText:!1,message:t,children:k.jsx(FA,{image:r,message:t})},r.id):k.jsx(Lr,{message:t,children:k.jsxs(ln,{grow:1,gutter:"sm",valign:"center",children:[k.jsx(Mn,{color:n?"link":"inverse",name:"document",size:"lg",testID:""}),n?k.jsx(Df,{accessibilityLabel:`Bijlage gedeeld door ${t.senderDisplayName}. Dubbeltik om bijlage te downloaden.`,ellipsizeMode:"middle",emphasis:"strong",inverse:t.sender.role===tt.user,numberOfLines:1,onPress:()=>{uh({downloadUri:r.url,fileName:r.name})},testID:"ChatEntryAttachmentsInlineLink",children:r.name}):k.jsx(kn,{color:"inverse",testID:"ChatEntryAttachmentFileName",textAlign:"center",children:r.name})]})},r.id))})};try{RA.displayName="EntryAttachments",RA.__docgenInfo={description:"",displayName:"EntryAttachments",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntryAttachments"}}}}}catch{}const zt=({isLastOfRole:t})=>k.jsx(Xc,{height:t?"md":"sm"});try{zt.displayName="EntryGutter",zt.__docgenInfo={description:"",displayName:"EntryGutter",props:{isLastOfRole:{defaultValue:null,description:"",name:"isLastOfRole",required:!0,type:{name:"boolean"}}}}}catch{}const fl=({message:{choices:t},isLastOfRole:e})=>{const[n,r]=_.useState(!1),i=_.useCallback(a=>{mI(a).then(()=>r(!0))},[]);return t&&!n?k.jsxs(k.Fragment,{children:[k.jsx(Xc,{height:"sm"}),k.jsx(ln,{align:"end",gutter:"sm",wrap:!0,children:t.map(({optionId:a,title:s,optionValue:o,parentEntryId:l})=>k.jsx(zd,{accessibilityLabel:`Keuzeknop: ${s}`,label:s,onPress:()=>i({optionId:a,title:s,optionValue:o,parentEntryId:l}),testID:`ChatHistoryChoices${s}`,variant:"secondary"},a))}),k.jsx(zt,{isLastOfRole:e})]}):null};try{fl.displayName="EntryChoices",fl.__docgenInfo={description:"",displayName:"EntryChoices",props:{isLastOfRole:{defaultValue:null,description:"",name:"isLastOfRole",required:!0,type:{name:"boolean"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntryQuickReplies"}}}}}catch{}const NA=({message:t,isLastOfRole:e})=>t.operations.some(r=>r.type===Om.add&&r.participant.role===tt.employee)?k.jsxs(k.Fragment,{children:[k.jsx(Yc,{icon:"person",testID:`ChatSystemMessage${t.format}`,text:"U chat nu met een medewerker"}),k.jsx(zt,{isLastOfRole:e})]}):null;try{NA.displayName="EntryParticipantChanged",NA.__docgenInfo={description:"",displayName:"EntryParticipantChanged",props:{isLastOfRole:{defaultValue:null,description:"",name:"isLastOfRole",required:!0,type:{name:"boolean"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntryParticipantChanged"}}}}}catch{}const KO=(t,e,n=r=>r)=>{const r=/((?:(?:https?:\/\/)|(?:www.))[^\s]+)/g;return t.split(r).filter(a=>a.length>0).map(a=>r.test(a)?e(a.startsWith("http")?a:`http://${a}`):n(a))},$O=(t,e,n)=>KO(t,r=>k.jsx(Df,{inverse:n,onPress:()=>e(r),testID:`InlineLink${r}`,children:r})),Os=({children:t,message:e,testID:n,...r})=>{const i=Gm();return k.jsx(kn,{...r,color:e.sender.role===tt.user?"inverse":void 0,testID:n,children:$O(t,i,e.sender.role===tt.user)})};try{Os.displayName="MessagePhrase",Os.__docgenInfo={description:"",displayName:"MessagePhrase",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntry"}},testID:{defaultValue:null,description:"Used to locate this view in end-to-end tests.",name:"testID",required:!1,type:{name:"string"}},color:{defaultValue:null,description:"Defines the color of the phrase. Maps with the text color tokens.",name:"color",required:!1,type:{name:"enum",value:[{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"default"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"inverse"'},{value:'"warning"'}]}},emphasis:{defaultValue:null,description:"Allows the phrase to convey more emphasis.",name:"emphasis",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"strong"'}]}},flexShrink:{defaultValue:null,description:"Defines how to shrink the phrase in case the parent container is smaller than the phrase.",name:"flexShrink",required:!1,type:{name:"number"}},"logging-label":{defaultValue:null,description:"Label used for logging to Piwik and AppInsights.",name:"logging-label",required:!1,type:{name:"string"}},textAlign:{defaultValue:null,description:"Defines the alignment of the text. Maps with the textAlign style prop options.",name:"textAlign",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"center"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'}]}},underline:{defaultValue:null,description:"Whether the phrase is underlined. Use this for a link only.",name:"underline",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"Which variation of a phrase to display.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"body"'},{value:'"intro"'},{value:'"quote"'},{value:'"extraSmall"'}]}}}}}catch{}const jO=t=>{if(!t)return null;const n=RegExp(/https?:\/\/([^/?]+)/).exec(t);return n!=null&&n[1]?n[1]:t},BA=({message:t})=>{const e=i1(),{title:n,url:r}=t,i=jO(r);return k.jsxs(Lr,{message:t,children:[k.jsx(Df,{emphasis:"strong",inverse:t.sender.role===tt.user,onPress:()=>r&&e(r),testID:"ChatMessageRichLinkUrl",children:n}),!!i&&k.jsx(Os,{message:t,testID:"ChatRichLinkTitle",children:i})]})};try{BA.displayName="EntryRichLink",BA.__docgenInfo={description:"",displayName:"EntryRichLink",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntryRichLink"}}}}}catch{}const QO=10,ZO=8,lg=8,JO=({activeSize:t,inactiveSize:e,index:n,sharedValue:r})=>{const{color:i}=Nn(),a=e4(t,e),s=Fn(()=>{const o=n===Math.floor(r.value);return{backgroundColor:o?i.chat.loading.active:i.chat.loading.inactive,height:j(o?t:e),width:j(o?t:e)}},[n,r]);return k.jsx(pe,{style:a.loadingDot,children:k.jsx($t.View,{style:[a.loadingDotInner,s]})})},ks=({dotActiveSize:t=QO,dotInactiveSize:e=ZO})=>{const n=ct(0);return _.useEffect(()=>{n.value=Zf(j(4,{duration:1e3,easing:Ze.bezier(.5,.5,.5,1)}),-1)},[n]),k.jsx(ln,{align:"center",gutter:"xs",valign:"center",children:Array.from({length:3}).map((r,i)=>k.jsx(JO,{activeSize:t,inactiveSize:e,index:i,sharedValue:n},i))})},e4=(t,e)=>he.create({loadingDot:{justifyContent:"center",alignItems:"center",marginHorizontal:e*3/4-t/2,borderRadius:lg,height:t,width:t},loadingDotInner:{borderRadius:lg}});try{ks.displayName="LoadingDots",ks.__docgenInfo={description:"",displayName:"LoadingDots",props:{dotActiveSize:{defaultValue:{value:"10"},description:"",name:"dotActiveSize",required:!1,type:{name:"number"}},dotInactiveSize:{defaultValue:{value:"8"},description:"",name:"dotInactiveSize",required:!1,type:{name:"number"}}}}}catch{}const t4=t=>t<=60?"minder dan een minuut":`${Math.ceil(t/60)} minuten`,GA=({message:t,isLastOfRole:e})=>{const{isEWTAvailable:n,estimatedWaitTime:r,routingType:i}=t,{isWaitingForAgent:a,messages:s}=_.useContext(dn),l=s.slice(s.indexOf(t)+1).filter(c=>c.format===ge.text).length>0;return i!==km.transfer||!a||l?null:k.jsxs(k.Fragment,{children:[k.jsxs(Dn,{gutter:"sm",halign:"center",children:[k.jsx(ks,{dotActiveSize:15,dotInactiveSize:12}),k.jsx(kn,{emphasis:"strong",testID:"ChatEntryRoutingResultPhrase",children:"Een medewerker neemt het gesprek over."}),!!n&&k.jsxs(kn,{testID:"ChatEntryRoutingResultEstimatedWaitingTimePhrase",children:["Geschatte wachttijd: ",t4(r)]})]}),k.jsx(zt,{isLastOfRole:e})]})};try{GA.displayName="EntryRoutingResult",GA.__docgenInfo={description:"",displayName:"EntryRoutingResult",props:{isLastOfRole:{defaultValue:null,description:"",name:"isLastOfRole",required:!0,type:{name:"boolean"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntryRoutingResult"}}}}}catch{}const LA=({message:t,isLastOfRole:e})=>{const{messages:n,isEnded:r}=_.useContext(dn);return t.workType!==Mm.closed||!r||n.filter(i=>i.format===ge.routingWorkResult).slice(-1)[0].entryId!==t.entryId?null:k.jsxs(k.Fragment,{children:[k.jsx(Yc,{icon:"chat",testID:"ChatEntryRoutingWorkResult",text:`Chat gestopt om ${dh((t==null?void 0:t.timestamp)??nu().unix()).format("HH:mm")}`}),k.jsx(zt,{isLastOfRole:e})]})};try{LA.displayName="EntryRoutingWorkResult",LA.__docgenInfo={description:"",displayName:"EntryRoutingWorkResult",props:{isLast:{defaultValue:null,description:"",name:"isLast",required:!0,type:{name:"boolean"}},isLastOfRole:{defaultValue:null,description:"",name:"isLastOfRole",required:!0,type:{name:"boolean"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntryRoutingWorkResult"}}}}}catch{}const VA=({message:t})=>{var e;return k.jsx(Lr,{message:t,children:k.jsx(Os,{message:t,testID:"ChatEntrySelections",children:(e=t.selections)==null?void 0:e.map(n=>n.title).join(", ")})})};try{VA.displayName="EntrySelections",VA.__docgenInfo={description:"",displayName:"EntrySelections",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntrySelections"}}}}}catch{}const vs=({message:t})=>{const e=t.sender.role===tt.user;return k.jsx(Lr,{message:t,children:k.jsx(Os,{accessibilityLabel:e?`Uw bericht: ${t.text}`:`${t.text} ontvangen van ${t.senderDisplayName}`,message:t,testID:"ChatEntryText",children:t.text})})};try{vs.displayName="EntryText",vs.__docgenInfo={description:"",displayName:"EntryText",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntryText"}}}}}catch{}const HA=({message:t})=>{const{downloadedTranscriptIds:e}=_.useContext(dn);return e.includes(t.entryId)?k.jsx(Yc,{icon:"download",testID:"ChatEntryTranscript",text:"Chat gedownload"}):null};try{HA.displayName="EntryTranscript",HA.__docgenInfo={description:"",displayName:"EntryTranscript",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntry"}}}}}catch{}const UA=({dotActiveSize:t,dotInactiveSize:e,message:n})=>k.jsx(Lr,{message:n,children:k.jsx(hr,{insetVertical:"xs",children:k.jsx(ks,{dotActiveSize:t,dotInactiveSize:e})})});try{UA.displayName="EntryTypingIndicator",UA.__docgenInfo={description:"",displayName:"EntryTypingIndicator",props:{dotActiveSize:{defaultValue:null,description:"",name:"dotActiveSize",required:!1,type:{name:"number"}},dotInactiveSize:{defaultValue:null,description:"",name:"dotInactiveSize",required:!1,type:{name:"number"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntryTypingStartedIndicator"}}}}}catch{}const n4={[ge.selections]:{Component:VA,agentInfo:!0,LastComponent:zt},[ge.text]:{Component:vs,agentInfo:!0,LastComponent:zt},[ge.attachments]:{Component:RA,agentInfo:!1,LastComponent:zt},[ge.carousel]:{Component:void 0,LastComponent:void 0,agentInfo:void 0},[ge.deliveryAcknowledgement]:{Component:void 0,LastComponent:void 0,agentInfo:void 0},[ge.imageMessage]:{Component:void 0,LastComponent:void 0,agentInfo:void 0},[ge.inputs]:{Component:void 0,LastComponent:void 0,agentInfo:void 0},[ge.listPicker]:{Component:vs,LastComponent:fl,agentInfo:!0},[ge.participantChanged]:{Component:NA,agentInfo:!1},[ge.quickReplies]:{Component:vs,LastComponent:fl,agentInfo:!0},[ge.result]:{Component:void 0,LastComponent:void 0,agentInfo:void 0},[ge.richLink]:{Component:BA,agentInfo:!0,LastComponent:zt},[ge.routingResult]:{Component:GA,agentInfo:!1},[ge.routingWorkResult]:{Component:LA,agentInfo:!1},[ge.typingStartedIndicator]:{Component:UA,agentInfo:!1,LastComponent:zt},[ge.typingStoppedIndicator]:{Component:void 0,LastComponent:void 0,agentInfo:void 0},[ge.unspecified]:{Component:void 0,LastComponent:void 0,agentInfo:void 0},[ge.webview]:{Component:void 0,LastComponent:void 0,agentInfo:void 0},[ge.transcript]:{Component:HA,LastComponent:zt}},WA=({message:t,isLast:e,isLastOfRole:n})=>{const r=n4[t.format];if(!r)return null;const{Component:i,agentInfo:a,LastComponent:s}=r;return!i&&!s&&!a?null:k.jsxs($t.View,{entering:_i,children:[!!i&&k.jsx(i,{isLast:e,isLastOfRole:n,message:t}),!!a&&k.jsx(kA,{isLast:e,isLastOfRole:n,message:t}),!!s&&k.jsx(s,{isLast:e,isLastOfRole:n,message:t})]})};try{WA.displayName="Entry",WA.__docgenInfo={description:"",displayName:"Entry",props:{isLast:{defaultValue:null,description:"",name:"isLast",required:!0,type:{name:"boolean"}},isLastOfRole:{defaultValue:null,description:"",name:"isLastOfRole",required:!0,type:{name:"boolean"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntry"}}}}}catch{}const r4=()=>{const t=_.useRef(null),e=i4(),{messages:n}=_.useContext(dn);return k.jsx(ya,{contentContainerStyle:e.contentContainer,keyboardShouldPersistTaps:"handled",onContentSizeChange:()=>{var r;return(r=t==null?void 0:t.current)==null?void 0:r.scrollToEnd()},onScrollBeginDrag:ua.dismiss,ref:t,style:e.scrollView,testID:"ChatHistoryScrollView",children:k.jsx(hr,{grow:!0,insetHorizontal:"md",children:k.jsxs(Dn,{children:[k.jsx(OA,{firstMessage:n[0]}),k.jsx(Xc,{height:"md"}),n.map((r,i)=>{var s;const a=((s=n[i+1])==null?void 0:s.sender.role)!==r.sender.role;return k.jsx(WA,{isLast:i===n.length-1,isLastOfRole:a,message:r},r.entryId+i)})]})})})},i4=()=>he.create({contentContainer:{flexGrow:1},scrollView:{flex:1}}),a4=()=>{const[t,e]=_.useState(0),[n,r]=_.useState(!1);return _.useEffect(()=>{const i=l=>{e(l.endCoordinates.height)},a=()=>{r(!1)},s=ua.addListener("keyboardDidShow",i),o=ua.addListener("keyboardDidHide",a);return()=>{s.remove(),o.remove()}},[]),{height:t,visible:n}},s4={async getDocumentAsync({type:t="*/*",multiple:e=!1}){if(!Di.isDOMAvailable)return{canceled:!0,assets:null};const n=document.createElement("input");return n.style.display="none",n.setAttribute("type","file"),n.setAttribute("accept",Array.isArray(t)?t.join(","):t),n.setAttribute("id",String(Math.random())),e&&n.setAttribute("multiple","multiple"),document.body.appendChild(n),new Promise((r,i)=>{n.addEventListener("change",async()=>{if(n.files){const s=[];for(let o=0;o<n.files.length;o++)s.push(o4(n.files[o]));try{const o=await Promise.all(s);r({canceled:!1,assets:o,output:n.files})}catch(o){i(o)}}else r({canceled:!0,assets:null});document.body.removeChild(n)}),n.addEventListener("cancel",()=>{r({canceled:!0,assets:null})});const a=new MouseEvent("click");n.dispatchEvent(a)})}};function o4(t){return new Promise((e,n)=>{const r=t.type,i=new FileReader;i.onerror=()=>{n(new Error("Failed to read the selected media because the operation failed."))},i.onload=({target:a})=>{const s=a.result;e({uri:s,mimeType:r,name:t.name,lastModified:t.lastModified,size:t.size,file:t})},i.readAsDataURL(t)})}async function l4({type:t="*/*",copyToCacheDirectory:e=!0,multiple:n=!1}={}){return typeof t=="string"&&(t=[t]),await s4.getDocumentAsync({type:t,copyToCacheDirectory:e,multiple:n})}var or;(function(t){t.All="All",t.Videos="Videos",t.Images="Images"})(or||(or={}));var cg;(function(t){t[t.Passthrough=0]="Passthrough",t[t.LowQuality=1]="LowQuality",t[t.MediumQuality=2]="MediumQuality",t[t.HighestQuality=3]="HighestQuality",t[t.H264_640x480=4]="H264_640x480",t[t.H264_960x540=5]="H264_960x540",t[t.H264_1280x720=6]="H264_1280x720",t[t.H264_1920x1080=7]="H264_1920x1080",t[t.H264_3840x2160=8]="H264_3840x2160",t[t.HEVC_1920x1080=9]="HEVC_1920x1080",t[t.HEVC_3840x2160=10]="HEVC_3840x2160"})(cg||(cg={}));var ug;(function(t){t[t.High=0]="High",t[t.Medium=1]="Medium",t[t.Low=2]="Low",t[t.VGA640x480=3]="VGA640x480",t[t.IFrame1280x720=4]="IFrame1280x720",t[t.IFrame960x540=5]="IFrame960x540"})(ug||(ug={}));var dg;(function(t){t.FULL_SCREEN="fullScreen",t.PAGE_SHEET="pageSheet",t.FORM_SHEET="formSheet",t.CURRENT_CONTEXT="currentContext",t.OVER_FULL_SCREEN="overFullScreen",t.OVER_CURRENT_CONTEXT="overCurrentContext",t.POPOVER="popover",t.AUTOMATIC="automatic"})(dg||(dg={}));var Ag;(function(t){t.Automatic="automatic",t.Compatible="compatible",t.Current="current"})(Ag||(Ag={}));var fg;(function(t){t.back="back",t.front="front"})(fg||(fg={}));const c4={[or.All]:"video/mp4,video/quicktime,video/x-m4v,video/*,image/*",[or.Images]:"image/*",[or.Videos]:"video/mp4,video/quicktime,video/x-m4v,video/*"},hl={async launchImageLibraryAsync({mediaTypes:t=or.Images,allowsMultipleSelection:e=!1,base64:n=!1}){return Di.isDOMAvailable?await hg({mediaTypes:t,allowsMultipleSelection:e,base64:n}):{canceled:!0,assets:null}},async launchCameraAsync({mediaTypes:t=or.Images,allowsMultipleSelection:e=!1,base64:n=!1}){return Di.isDOMAvailable?await hg({mediaTypes:t,allowsMultipleSelection:e,capture:!0,base64:n}):{canceled:!0,assets:null}},async getCameraPermissionsAsync(){return fo()},async requestCameraPermissionsAsync(){return fo()},async getMediaLibraryPermissionsAsync(t){return fo()},async requestMediaLibraryPermissionsAsync(t){return fo()}};function fo(){return{status:wA.GRANTED,expires:"never",granted:!0,canAskAgain:!0}}function hg({mediaTypes:t,capture:e=!1,allowsMultipleSelection:n=!1,base64:r}){const i=c4[t],a=document.createElement("input");return a.style.display="none",a.setAttribute("type","file"),a.setAttribute("accept",i),a.setAttribute("id",String(Math.random())),n&&a.setAttribute("multiple","multiple"),e&&a.setAttribute("capture","camera"),document.body.appendChild(a),new Promise(s=>{a.addEventListener("change",async()=>{if(a.files){const l=n?a.files:[a.files[0]],c=await Promise.all(Array.from(l).map(u=>u4(u,{base64:r})));s({canceled:!1,assets:c})}else s({canceled:!0,assets:null});document.body.removeChild(a)});const o=new MouseEvent("click");a.dispatchEvent(o)})}function u4(t,e){return new Promise((n,r)=>{const i=new FileReader;i.onerror=()=>{r(new Error("Failed to read the selected media because the operation failed."))},i.onload=({target:a})=>{const s=a.result,o=()=>n({uri:s,width:0,height:0});if(typeof s=="string"){const l=new Image;l.src=s,l.onload=()=>{n({uri:s,width:l.naturalWidth??l.width,height:l.naturalHeight??l.height,mimeType:t.type,fileName:t.name,...e.base64&&{base64:s.substr(s.indexOf(",")+1)}})},l.onerror=()=>o()}else o()},i.readAsDataURL(t)})}function d4(t){const{aspect:e,quality:n,videoMaxDuration:r}=t;if(e!=null){const[i,a]=e;if(i<=0||a<=0)throw new Ro("ERR_INVALID_ARGUMENT",`Invalid aspect ratio values ${i}:${a}. Provide positive numbers.`)}if(n&&(n<0||n>1))throw new Ro("ERR_INVALID_ARGUMENT",`Invalid 'quality' value ${n}. Provide a value between 0 and 1.`);if(r&&r<0)throw new Ro("ERR_INVALID_ARGUMENT",`Invalid 'videoMaxDuration' value ${r}. Provide a non-negative number.`);return t}async function A4(t={}){if(!hl.launchCameraAsync)throw new lt("ImagePicker","launchCameraAsync");return await hl.launchCameraAsync(d4(t))}async function f4(t){if(!hl.launchImageLibraryAsync)throw new lt("ImagePicker","launchImageLibraryAsync");return t!=null&&t.allowsEditing&&t.allowsMultipleSelection&&console.warn("[expo-image-picker] `allowsEditing` is not supported when `allowsMultipleSelection` is enabled and will be ignored.Disable either 'allowsEditing' or 'allowsMultipleSelection' in 'launchImageLibraryAsync' to fix this warning."),await hl.launchImageLibraryAsync(t??{})}const h4=async t=>t===ti.notifications?(await uI(["alert","badge","carPlay","sound"])).status:cI(t),OE=t=>{const e=et(aI(t)),n=Bn(),r=Hc(),i=_.useCallback(()=>new Promise((a,s)=>{h4(t).then(o=>{const l=o===zc.GRANTED;n(ip({permission:t,granted:l})),a(l)}).catch(o=>{n(ip({permission:t,granted:!1})),r(Zn.updatePermission,"usePermission.ts",{error:o,permission:t,request:!0}),s(o)})}),[n,t,r]);return{hasPermission:e,requestPermission:i}},ms=_.forwardRef(({onPress:t,iconName:e,testID:n,label:r},i)=>{const a=On(p4);return k.jsx(zm,{onPress:t,ref:i,testID:n,children:k.jsxs(Dn,{gutter:"xs",halign:"center",children:[k.jsx(pe,{style:a.circle,children:k.jsx(Mn,{color:"link",name:e,size:"xl",testID:n+"Icon"})}),k.jsx(kn,{testID:n+"Phrase",children:r})]})})}),p4=({color:t,size:e})=>he.create({circle:{backgroundColor:t.chat.attachmentButtonCircle.background,borderRadius:50,padding:e.spacing.md}});try{ms.displayName="ChatAttachmentButton",ms.__docgenInfo={description:"",displayName:"ChatAttachmentButton",props:{iconName:{defaultValue:null,description:"",name:"iconName",required:!0,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"() => void"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const zi="ChatAttachment.tsx",XA=({onSelect:t,minHeight:e})=>{const n=Hm(Mf.long),r=On(g4),i=Hc(),{hasPermission:a,requestPermission:s}=OE(ti.camera),o=_.useCallback(()=>{f4({mediaTypes:or.Images,allowsMultipleSelection:!1,allowsEditing:!1,base64:!0}).then(u=>{var A,d;if((A=u.assets)!=null&&A[0].uri){const f=(d=u.assets)==null?void 0:d[0];cp(f.base64,f.fileName??"image.png",f.uri).then(t,p=>{Jn.alert("Sorry, opsturen van de afbeelding is mislukt. Probeer het later nog eens."),i(Zn.chatSendImageFromLibrary,zi,{error:p})})}},u=>{Jn.alert("Afbeelding kiezen is mislukt","Sorry, kiezen van een afbeelding is mislukt. Probeer het later nog eens."),i(Zn.chatPickImageFromLibrary,zi,{error:u})})},[t,i]),l=_.useCallback(async()=>{a||await s(),A4({mediaTypes:or.Images,allowsMultipleSelection:!1,allowsEditing:!1,base64:!0}).then(u=>{var A,d;if((A=u.assets)!=null&&A[0].uri){const f=(d=u.assets)==null?void 0:d[0];cp(f.base64,f.fileName??"image.png",f.uri).then(t,p=>{Jn.alert("Foto opsturen is niet gelukt","Sorry, opsturen van de afbeelding is mislukt. Probeer het later nog eens."),i(Zn.chatSendImageFromCamera,zi,{error:p})})}},u=>{Jn.alert("Foto maken is niet gelukt","Sorry, maken van een foto is mislukt. Probeer het later nog eens."),i(Zn.chatTakeImageWithCamera,zi,{error:u})})},[a,s,t,i]),c=_.useCallback(()=>{l4({type:"application/pdf"}).then(u=>{var d;const A=(d=u.assets)==null?void 0:d[0];if(A){const{uri:f,name:p}=A;EI(f,p).then(t,h=>{Jn.alert("PDF opsturen is mislukt","Sorry, opsturen van het PDF document is mislukt. Probeer het later nog eens."),i(Zn.chatSendPDF,zi,{error:h})})}},u=>{Jn.alert("PDF kiezen is mislukt","Sorry, kiezen van een PDF document is mislukt. Probeer het later nog eens."),i(Zn.chatPickPDF,zi,{error:u})})},[t,i]);return k.jsx($t.View,{entering:_i,style:[r.attachments,{minHeight:Math.round(e??0)}],children:k.jsx(hr,{children:k.jsxs(ln,{align:"evenly",gutter:"sm",children:[k.jsx(ms,{iconName:"picture",label:"Foto",onPress:o,ref:n,testID:"pdf"}),k.jsx(ms,{iconName:"camera",label:"Camera",onPress:l,testID:"pdf"}),k.jsx(ms,{iconName:"document",label:"PDF",onPress:c,testID:"pdf"})]})})})},g4=({color:t})=>he.create({attachments:{backgroundColor:t.chat.attachment.background}});try{XA.displayName="ChatAttachment",XA.__docgenInfo={description:"",displayName:"ChatAttachment",props:{minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"number"}},onSelect:{defaultValue:null,description:"",name:"onSelect",required:!0,type:{name:"() => void"}}}}}catch{}const v4=()=>{const{close:t}=Ri(),{addDownloadedTranscriptId:e}=_.useContext(dn);return k.jsx(hr,{children:k.jsxs(Dn,{gutter:"smd",children:[k.jsx(zd,{label:"Chat downloaden",onPress:()=>{mE().then(n=>n&&e(n))},testID:"ChatEndedDownloadButton",variant:"secondary"}),k.jsx(zd,{label:"Chat sluiten",onPress:t,testID:"ChatEndedCloseButton"})]})})},YA=({onSubmit:t})=>{const e=Ff(),n=Ls(),r=On(m4),i=On(C4),[a,s]=_.useState(""),o=_.useRef(null),{value:l,disable:c,enable:u}=lE(!1),A=_.useCallback(E=>{s(E),CI()},[]),d=_.useCallback(E=>{t(E),s("")},[t]),{height:f,visible:p}=a4(),{employeeInChat:h,isEnded:g}=_.useContext(dn);return g?k.jsx(v4,{}):k.jsxs(k.Fragment,{children:[k.jsx(a1,{behavior:ue.OS==="ios"?"padding":"height",keyboardVerticalOffset:n.top,children:k.jsx(hr,{children:k.jsxs(ln,{gutter:"sm",children:[!!h&&k.jsx(Si,{accessibilityLabel:l?"Naar toetsenbord":"Naar bijlages",hitSlop:16,icon:k.jsx(Mn,{color:"link",name:l?"keyboard":"attachment",size:"xl",testID:"ChatAttachmentsIcon"}),onPress:()=>{var E;l?((E=o.current)==null||E.focus(),c()):(ua.dismiss(),setTimeout(u,300))},testID:"ChatAttachmentsButton"}),k.jsxs(pe,{style:r.container,testID:"ChatTextInputContainer",children:[k.jsx(Rf,{...i,autoFocus:e,multiline:!0,onChangeText:A,onFocus:c,placeholder:"Typ uw bericht",ref:o,style:r.textInput,testID:"ChatTextInput",value:a}),a.length>0&&k.jsxs(pe,{style:r.buttonWrapper,children:[k.jsx(pe,{style:r.spacePlaceholder}),k.jsx(zm,{onPress:()=>d(a),style:r.button,testID:"ChatTextInputSendButton",children:k.jsx(Mn,{color:"inverse",name:"chevron-right",testID:"ChatTextInputSendButtonIcon"})})]})]})]})})}),!!l&&!p&&k.jsx(XA,{minHeight:f,onSelect:c})]})},pg=40,m4=({border:t,color:e,text:n,size:r})=>he.create({button:{backgroundColor:e.pressable.primary.default.background,alignItems:"center",justifyContent:"center",height:pg,width:pg},buttonWrapper:{height:"100%"},spacePlaceholder:{flexGrow:1},container:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderWidth:t.width.sm,padding:r.spacing.xs,columnGap:r.spacing.sm,flex:1},textInput:{flex:1,color:e.text.default,fontFamily:n.fontFamily.regular,fontSize:n.fontSize.body,padding:0,paddingLeft:r.spacing.md,paddingTop:r.spacing.sm,paddingBottom:r.spacing.sm}}),C4=({color:t})=>({placeholderTextColor:t.text.secondary});try{YA.displayName="ChatInput",YA.__docgenInfo={description:"",displayName:"ChatInput",props:{onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(message: string) => void"}}}}}catch{}const zA=({children:t})=>{const{ready:e}=_.useContext(dn);return k.jsx(k.Fragment,{children:e?t:k.jsx(p1,{grow:!0,children:k.jsxs(Dn,{gutter:"sm",children:[k.jsx(ks,{dotActiveSize:15,dotInactiveSize:12}),k.jsx(Wm,{level:"h4",testID:"ChatWaitToStartTitle",text:"De chat wordt geladen",textAlign:"center"})]})})})};try{zA.displayName="ChatWaitToStart",zA.__docgenInfo={description:"",displayName:"ChatWaitToStart",props:{}}}catch{}const E4=()=>{const{isOpen:t}=Ri();return t?k.jsx(IA,{children:k.jsxs(DA,{children:[k.jsx(NO,{}),k.jsxs(zA,{children:[k.jsx(yA,{children:k.jsx(r4,{})}),k.jsx(YA,{onSubmit:vI})]})]})}):null},x4=["conversationId"],y4={hiddenInMenu:!0,name:"ChatModule",PostRenderComponent:E4,reduxConfigs:[{key:le.chat,persistVersion:0,persistWhitelist:x4,slice:oE}],slug:Ke.chat,alwaysEnabled:!0},gg={seenTips:[]},I4=He({name:le.productTour,initialState:gg,reducers:{resetSeenTips:()=>gg,addSeenTip:(t,{payload:e})=>{const{seenTips:n}=t;!n.includes(e)&&n.push(e)}}}),{addSeenTip:w4,resetSeenTips:U6}=I4.actions,b4=t=>{var e;return(e=t[le.productTour])==null?void 0:e.seenTips};var kE=(t=>(t.cityPassSecurityCode="cityPassSecurityCode",t.cityPassShowPassesButton="cityPassShowPassesButton",t.constructionWorkProjectFollowButton="constructionWorkProjectFollowButton",t))(kE||{}),qA=(t=>(t.cityPassSecurityCode="Je hebt de beveiligingscode nodig om betalingen te doen met hoge bedragen",t.cityPassShowPassesButton="Druk op de knop om je Stadspas te laten zien",t.constructionWorkProjectFollowButton="Volg een project en blijf op de hoogte van onze werkzaamheden",t))(qA||{});const S4=ya,ME=_.createContext(null),PE=(t,e="ref")=>{const n=({children:r,...i})=>{const a=_.useRef(null),[s,o]=_.useState(null),[l,c]=_.useState(!1),u=_.useCallback(async()=>{if(!(a!=null&&a.current)||!s)return!1;const[f,p]=await Promise.all([jh(a.current),jh(s)]);c(v1(f,p))},[a,s]),A={...i,onLayout:u,onScroll:u,[e]:a,scrollEventThrottle:16},d=_.useMemo(()=>({isElementVisible:l,setElementRef:o}),[l,o]);return _.useEffect(()=>{u()},[u]),k.jsx(t,{...A,children:k.jsx(ME.Provider,{value:d,children:r})})};return _.forwardRef((r,i)=>k.jsx(n,{...r,childRef:i}))},vg=PE(S4,"innerRef"),mg=PE(ya);try{vg.displayName="KeyboardAwareTrackScrollView",vg.__docgenInfo={description:"",displayName:"KeyboardAwareTrackScrollView",props:{grow:{defaultValue:null,description:"",name:"grow",required:!1,type:{name:"boolean"}},withBottomInset:{defaultValue:null,description:"",name:"withBottomInset",required:!1,type:{name:"boolean"}},childRef:{defaultValue:null,description:"",name:"childRef",required:!1,type:{name:"ForwardedRef<ScrollViewRef>"}}}}}catch{}try{mg.displayName="TrackScrollView",mg.__docgenInfo={description:"",displayName:"TrackScrollView",props:{grow:{defaultValue:null,description:"",name:"grow",required:!1,type:{name:"boolean"}},withBottomInset:{defaultValue:null,description:"",name:"withBottomInset",required:!1,type:{name:"boolean"}},childRef:{defaultValue:null,description:"",name:"childRef",required:!1,type:{name:"ForwardedRef<ScrollViewRef>"}}}}}catch{}const KA=({children:t,extraSpace:e,tipSlug:n,placement:r,testID:i})=>{const a=Bn(),o=et(b4).includes(n),l=Ff(),c=_.useContext(ME),u=c===null,{setElementRef:A,isElementVisible:d}=c??{},f=_.useRef(null),{layout:p,measureTarget:h}=m1(f),g=_.useCallback(()=>{(u||d)&&!o&&a(w4(n))},[a,u,o,d,n]);return C1(g),k.jsxs(pe,{testID:"ProductTourTipWrapper",children:[!o&&!l&&!!p&&k.jsx(E1,{accessibilityLabel:qA[n],extraSpace:e,fadeIn:!0,onPress:g,placement:r,productTourTipTargetLayout:p,ref:A,startFadeIn:d??u,testID:i,text:qA[n]}),k.jsx(pe,{collapsable:!1,onLayout:h,ref:f,children:t})]})};try{KA.displayName="ProductTourTipWrapper",KA.__docgenInfo={description:"",displayName:"ProductTourTipWrapper",props:{extraSpace:{defaultValue:null,description:"",name:"extraSpace",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},placement:{defaultValue:null,description:"",name:"placement",required:!0,type:{name:"enum",value:[{value:'"above"'},{value:'"after"'},{value:'"before"'},{value:'"below"'}]}},tipSlug:{defaultValue:null,description:"",name:"tipSlug",required:!0,type:{name:"enum",value:[{value:'"cityPassSecurityCode"'},{value:'"cityPassShowPassesButton"'},{value:'"constructionWorkProjectFollowButton"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const _4=He({name:le.secureStorage,initialState:{},reducers:{setSecureItemUpdatedTimestamp:(t,{payload:e})=>{Object.assign(t,{[e]:Date.now()})},deleteSecureItemUpdatedTimestamp:(t,{payload:e})=>{t[e]&&delete t[e]}}});_4.actions;const D4=t=>e=>e[le.secureStorage][t],T4={setItem:()=>{}};var FE=(t=>(t.accessCode="accessCode",t.cityPassAccessToken="cityPassAccessToken",t.cityPassRefreshToken="cityPassRefreshToken",t.cityPasses="cityPasses",t))(FE||{});const O4=t=>new Promise((e,n)=>{T4.getItem(t).then(r=>e(r)).catch(n)}),k4=t=>{const[e,n]=_.useState(!0),[r,i]=_.useState(null),a=et(D4(t));return _.useEffect(()=>{O4(t).then(s=>{i(s),n(!1)}).catch(()=>{i(null),n(!1)})},[t,a]),{item:r,isLoading:e}},M4=t=>t.map(e=>({dateEndFormatted:e.d,firstname:e.f,infix:e.i,lastname:e.l,passNumberComplete:e.p})),RE=()=>{const{item:t}=k4(FE.cityPasses);return _.useMemo(()=>t?M4(JSON.parse(t)):[],[t])},P4={isCityPassesVisible:!1,isCityPassOwnerRegistered:!1,startIndex:0},NE=He({name:le.cityPass,initialState:P4,reducers:{hideCityPasses:t=>{t.isCityPassesVisible=!1},setIsCityPassOwnerRegistered:(t,{payload:e})=>{t.isCityPassOwnerRegistered=e},showCityPasses:(t,{payload:e})=>{t.isCityPassesVisible=!0,t.startIndex=e??0}}}),{hideCityPasses:F4,setIsCityPassOwnerRegistered:W6,showCityPasses:R4}=NE.actions,N4=t=>t[le.cityPass].isCityPassesVisible,B4=t=>t[le.cityPass].startIndex,G4=()=>{const t=Bn(),e=RE();return e!=null&&e.length?k.jsx(KA,{extraSpace:"md",placement:y1.below,testID:"HeaderShowCityPassesTooltip",tipSlug:kE.cityPassShowPassesButton,children:k.jsx(Si,{accessibilityLabel:"Toon Stadspas",icon:k.jsx(Mn,{color:"link",name:"city-pass-pass",size:"lg",testID:"HeaderCityPassIcon"}),onPress:()=>t(R4()),testID:"HeaderCityPassButton"})}):null};var ai;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.PORTRAIT_UP=1]="PORTRAIT_UP",t[t.PORTRAIT_DOWN=2]="PORTRAIT_DOWN",t[t.LANDSCAPE_LEFT=3]="LANDSCAPE_LEFT",t[t.LANDSCAPE_RIGHT=4]="LANDSCAPE_RIGHT"})(ai||(ai={}));var vt;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.ALL=1]="ALL",t[t.PORTRAIT=2]="PORTRAIT",t[t.PORTRAIT_UP=3]="PORTRAIT_UP",t[t.PORTRAIT_DOWN=4]="PORTRAIT_DOWN",t[t.LANDSCAPE=5]="LANDSCAPE",t[t.LANDSCAPE_LEFT=6]="LANDSCAPE_LEFT",t[t.LANDSCAPE_RIGHT=7]="LANDSCAPE_RIGHT",t[t.OTHER=8]="OTHER",t[t.UNKNOWN=9]="UNKNOWN"})(vt||(vt={}));var Cg;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.COMPACT=1]="COMPACT",t[t.REGULAR=2]="REGULAR"})(Cg||(Cg={}));var mt;(function(t){t.PORTRAIT_PRIMARY="portrait-primary",t.PORTRAIT_SECONDARY="portrait-secondary",t.PORTRAIT="portrait",t.LANDSCAPE_PRIMARY="landscape-primary",t.LANDSCAPE_SECONDARY="landscape-secondary",t.LANDSCAPE="landscape",t.ANY="any",t.NATURAL="natural",t.UNKNOWN="unknown"})(mt||(mt={}));var ea;(function(t){t.PORTRAIT_PRIMARY="portrait-primary",t.PORTRAIT_SECONDARY="portrait-secondary",t.LANDSCAPE_PRIMARY="landscape-primary",t.LANDSCAPE_SECONDARY="landscape-secondary"})(ea||(ea={}));const Eg={[vt.DEFAULT]:mt.NATURAL,[vt.ALL]:mt.ANY,[vt.PORTRAIT]:mt.PORTRAIT,[vt.PORTRAIT_UP]:mt.PORTRAIT_PRIMARY,[vt.PORTRAIT_DOWN]:mt.PORTRAIT_SECONDARY,[vt.LANDSCAPE]:mt.LANDSCAPE,[vt.LANDSCAPE_LEFT]:mt.LANDSCAPE_PRIMARY,[vt.LANDSCAPE_RIGHT]:mt.LANDSCAPE_SECONDARY},L4={[ea.PORTRAIT_PRIMARY]:ai.PORTRAIT_UP,[ea.PORTRAIT_SECONDARY]:ai.PORTRAIT_DOWN,[ea.LANDSCAPE_PRIMARY]:ai.LANDSCAPE_LEFT,[ea.LANDSCAPE_SECONDARY]:ai.LANDSCAPE_RIGHT},Me=Di.canUseViewport?window.screen:{},Bu=Di.canUseViewport&&(Me.orientation||Me.msOrientation)||null;async function xg(){const[t,e]=await Promise.all([X4(),W4()]);Xd.emit("expoDidUpdateDimensions",{orientationLock:t,orientationInfo:{orientation:e}})}Di.canUseEventListeners&&(Bu&&Bu.addEventListener?Bu.addEventListener("change",xg):window.addEventListener("orientationchange",xg));function V4(t){switch(t){case mt.UNKNOWN:throw new Error("expo-screen-orientation: WebOrientationLock.UNKNOWN is not a valid lock to be converted.");case mt.ANY:return["portrait","landscape"];case mt.NATURAL:return"default";default:return t}}async function yg(t){if(t===mt.UNKNOWN)throw new Error("expo-screen-orientation: WebOrientationLock.UNKNOWN is not a valid lock that can be applied to the device.");if(Me.orientation&&Me.orientation.lock)await Me.orientation.lock(t);else if(Me.lockOrientation||Me.mozLockOrientation||Me.msLockOrientation){const e=V4(t);if(!(Me.lockOrientation||Me.mozLockOrientation||Me.msLockOrientation).call(Me,e))throw new Error(`Applying orientation lock: ${JSON.stringify(t)} to device was denied`)}else throw new Error("expo-screen-orientation: The browser doesn't support locking screen orientation.")}let Ig=mt.UNKNOWN;const fr={async supportsOrientationLockAsync(t){return t in Eg},async getPlatformOrientationLockAsync(){return Ig},async getOrientationAsync(){const t=Me.msOrientation||(Me.orientation||Me.mozOrientation||{}).type;return t?L4[t]:ai.UNKNOWN},async lockAsync(t){const e=Eg[t];if(!e)throw new TypeError(`Invalid Orientation Lock: ${t}`);await yg(e)},async lockPlatformAsync(t){await yg(t),Ig=t},async unlockAsync(){if(Me.orientation&&Me.orientation.unlock)Me.orientation.unlock();else if(Me.unlockOrientation||Me.mozUnlockOrientation||Me.msUnlockOrientation){if(!(Me.unlockOrientation||Me.mozUnlockOrientation||Me.msUnlockOrientation).call(Me))throw new Error("Unlocking screen orientation on device was denied")}else throw new Error("expo-screen-orientation: The browser doesn't support unlocking screen orientation.")}};new uE(fr);let BE=vt.UNKNOWN;async function H4(t){if(!fr.lockAsync)throw new lt("ScreenOrientation","lockAsync");if(!Object.values(vt).includes(t))throw new TypeError(`Invalid Orientation Lock: ${t}`);t!==vt.OTHER&&(await fr.lockAsync(t),BE=t)}async function U4(){if(!fr.lockAsync)throw new lt("ScreenOrientation","lockAsync");await fr.lockAsync(vt.DEFAULT)}async function W4(){if(!fr.getOrientationAsync)throw new lt("ScreenOrientation","getOrientationAsync");return await fr.getOrientationAsync()}async function X4(){return fr.getOrientationLockAsync?await fr.getOrientationLockAsync():BE}const Y4=He({name:le.overlay,initialState:{isOpen:!1},reducers:{closeOverlay:t=>{t.isOpen=!1},openOverlay:t=>{t.isOpen=!0},toggleOverlay:t=>{t.isOpen=!t.isOpen}}}),{closeOverlay:z4,openOverlay:q4,toggleOverlay:K4}=Y4.actions,$4=()=>{const t=Bn();return{isOpen:et(n=>n[le.overlay].isOpen),..._.useMemo(()=>({close:()=>t(z4()),open:()=>t(q4()),toggle:()=>t(K4())}),[t])}},$A=({backgroundColor:t,children:e,closeButtonContainerWidth:n,onClose:r,...i})=>{const a=Bn(),{close:s,isOpen:o,open:l}=$4(),{setHideFromAccessibility:c}=ph(),u=On(A=>j4(A,n));return _.useEffect(()=>(l(),()=>{s()}),[s,a,l]),_.useEffect(()=>(c(o),()=>{c(!1)}),[o,c]),k.jsx($t.View,{...i,entering:_i,exiting:Is,style:[i.style,he.absoluteFill,u.container,{backgroundColor:t}],children:k.jsxs(Dn,{gutter:"md",children:[k.jsx(Of,{onPress:r,testID:"OverlayCloseButton",variant:"transparent",children:k.jsx(ln,{align:"center",children:k.jsx(pe,{style:u.closeButtonInnerContainer,children:k.jsxs(ln,{gutter:"md",valign:"center",children:[k.jsx(Mn,{color:"inverse",name:"close",size:"lg",testID:"OverlayCloseButtonIcon"}),k.jsx(kn,{color:"inverse",testID:"OverlayCloseButtonPhrase",children:"Sluiten"})]})})})}),e]})})},j4=({z:t},e)=>he.create({container:{flex:1,justifyContent:"center",alignItems:"center",zIndex:t.overlay},closeButtonInnerContainer:{width:e}});try{$A.displayName="Overlay",$A.__docgenInfo={description:"",displayName:"Overlay",props:{backgroundColor:{defaultValue:null,description:"",name:"backgroundColor",required:!0,type:{name:"string"}},closeButtonContainerWidth:{defaultValue:null,description:"Used to outline close-button on top of another component",name:"closeButtonContainerWidth",required:!1,type:{name:"number"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"() => void"}}}}}catch{}const Q4=`The package 'react-native-block-screenshot' doesn't seem to be linked. Make sure: + See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function f(){typeof process<"u";var C=function(y){return Array.from(y.values()).flatMap(function(x){return x?Object.values(x):[]})};return ul(ul([],C(s)),C(o)).filter(Pu)}function p(C,y){return function(x){var w,S=a.endpointDefinitions[C],D=e({queryArgs:y,endpointDefinition:S,endpointName:C});return(w=s.get(x))==null?void 0:w[D]}}function h(C,y){return function(x){var w;return(w=o.get(x))==null?void 0:w[y]}}function g(){return function(C){return Object.values(s.get(C)||{}).filter(Pu)}}function E(){return function(C){return Object.values(o.get(C)||{}).filter(Pu)}}function m(C,y){var x=function(w,S){var D=S===void 0?{}:S,I=D.subscribe,b=I===void 0?!0:I,O=D.forceRefetch,T=D.subscriptionOptions,M=Ds,P=D[M];return function(R,W){var N,U,Y=e({queryArgs:w,endpointDefinition:y,endpointName:C}),G=n((N={type:"query",subscribe:b,forceRefetch:O,subscriptionOptions:T,endpointName:C,originalArgs:w,queryCacheKey:Y},N[Ds]=P,N)),H=i.endpoints[C].select(w),L=R(G),B=H(W()),X=L.requestId,z=L.abort,q=B.requestId!==X,Q=(U=s.get(R))==null?void 0:U[Y],ae=function(){return H(W())},te=Object.assign(P?L.then(ae):q&&!Q?Promise.resolve(B):Promise.all([Q,L]).then(ae),{arg:w,requestId:X,subscriptionOptions:T,queryCacheKey:Y,abort:z,unwrap:function(){return pa(this,null,function(){var Z;return ha(this,function(ie){switch(ie.label){case 0:return[4,te];case 1:if(Z=ie.sent(),Z.isError)throw Z.error;return[2,Z.data]}})})},refetch:function(){return R(x(w,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){b&&R(c({queryCacheKey:Y,requestId:X}))},updateSubscriptionOptions:function(Z){te.subscriptionOptions=Z,R(A({endpointName:C,requestId:X,queryCacheKey:Y,options:Z}))}});if(!Q&&!q&&!P){var re=s.get(R)||{};re[Y]=te,s.set(R,re),te.then(function(){delete re[Y],Object.keys(re).length||s.delete(R)})}return te}};return x}function v(C){return function(y,x){var w=x===void 0?{}:x,S=w.track,D=S===void 0?!0:S,I=w.fixedCacheKey;return function(b,O){var T=r({type:"mutation",endpointName:C,originalArgs:y,track:D,fixedCacheKey:I}),M=b(T),P=M.requestId,R=M.abort,W=M.unwrap,N=M.unwrap().then(function(H){return{data:H}}).catch(function(H){return{error:H}}),U=function(){b(u({requestId:P,fixedCacheKey:I}))},Y=Object.assign(N,{arg:M.arg,requestId:P,abort:R,unwrap:W,unsubscribe:U,reset:U}),G=o.get(b)||{};return o.set(b,G),G[P]=Y,Y.then(function(){delete G[P],Object.keys(G).length||o.delete(b)}),I&&(G[I]=Y,Y.then(function(){G[I]===Y&&(delete G[I],Object.keys(G).length||o.delete(b))})),Y}}}}function jp(t){return t}function T2(t){var e=this,n=t.reducerPath,r=t.baseQuery,i=t.context.endpointDefinitions,a=t.serializeQueryArgs,s=t.api,o=t.assertTagType,l=function(C,y,x,w){return function(S,D){var I=i[C],b=a({queryArgs:y,endpointDefinition:I,endpointName:C});if(S(s.internalActions.queryResultPatched({queryCacheKey:b,patches:x})),!!w){var O=s.endpoints[C].select(y)(D()),T=ph(I.providesTags,O.data,void 0,y,{},o);S(s.internalActions.updateProvidedBy({queryCacheKey:b,providedTags:T}))}}},c=function(C,y,x,w){return w===void 0&&(w=!0),function(S,D){var I,b,O=s.endpoints[C],T=O.select(y)(D()),M={patches:[],inversePatches:[],undo:function(){return S(s.util.patchQueryData(C,y,M.inversePatches,w))}};if(T.status===Re.uninitialized)return M;var P;if("data"in T)if(Qy(T.data)){var R=Fm(T.data,x),W=R[0],N=R[1],U=R[2];(I=M.patches).push.apply(I,N),(b=M.inversePatches).push.apply(b,U),P=W}else P=x(T.data),M.patches.push({op:"replace",path:[],value:P}),M.inversePatches.push({op:"replace",path:[],value:T.data});return S(s.util.patchQueryData(C,y,M.patches,w)),M}},u=function(C,y,x){return function(w){var S;return w(s.endpoints[C].initiate(y,(S={subscribe:!1,forceRefetch:!0},S[Ds]=function(){return{data:x}},S)))}},A=function(C,y){return pa(e,[C,y],function(x,w){var S,D,I,b,O,T,M,P,R,W,N,U,Y,G,H,L,B,X,z=w.signal,q=w.abort,Q=w.rejectWithValue,ae=w.fulfillWithValue,te=w.dispatch,re=w.getState,Z=w.extra;return ha(this,function(ie){switch(ie.label){case 0:S=i[x.endpointName],ie.label=1;case 1:return ie.trys.push([1,8,,13]),D=jp,I=void 0,b={signal:z,abort:q,dispatch:te,getState:re,extra:Z,endpoint:x.endpointName,type:x.type,forced:x.type==="query"?d(x,re()):void 0},O=x.type==="query"?x[Ds]:void 0,O?(I=O(),[3,6]):[3,2];case 2:return S.query?[4,r(S.query(x.originalArgs),b,S.extraOptions)]:[3,4];case 3:return I=ie.sent(),S.transformResponse&&(D=S.transformResponse),[3,6];case 4:return[4,S.queryFn(x.originalArgs,b,S.extraOptions,function(we){return r(we,b,S.extraOptions)})];case 5:I=ie.sent(),ie.label=6;case 6:if(typeof process<"u",I.error)throw new sa(I.error,I.meta);return N=ae,[4,D(I.data,I.meta,x.originalArgs)];case 7:return[2,N.apply(void 0,[ie.sent(),(B={fulfilledTimeStamp:Date.now(),baseQueryMeta:I.meta},B[Qs]=!0,B)])];case 8:if(U=ie.sent(),Y=U,!(Y instanceof sa))return[3,12];G=jp,S.query&&S.transformErrorResponse&&(G=S.transformErrorResponse),ie.label=9;case 9:return ie.trys.push([9,11,,12]),H=Q,[4,G(Y.value,Y.meta,x.originalArgs)];case 10:return[2,H.apply(void 0,[ie.sent(),(X={baseQueryMeta:Y.meta},X[Qs]=!0,X)])];case 11:return L=ie.sent(),Y=L,[3,12];case 12:throw typeof process<"u",console.error(Y),Y;case 13:return[2]}})})};function d(C,y){var x,w,S,D,I=(w=(x=y[n])==null?void 0:x.queries)==null?void 0:w[C.queryCacheKey],b=(S=y[n])==null?void 0:S.config.refetchOnMountOrArgChange,O=I==null?void 0:I.fulfilledTimeStamp,T=(D=C.forceRefetch)!=null?D:C.subscribe&&b;return T?T===!0||(Number(new Date)-Number(O))/1e3>=T:!1}var f=Yh(n+"/executeQuery",A,{getPendingMeta:function(){var C;return C={startedTimeStamp:Date.now()},C[Qs]=!0,C},condition:function(C,y){var x=y.getState,w,S,D,I=x(),b=(S=(w=I[n])==null?void 0:w.queries)==null?void 0:S[C.queryCacheKey],O=b==null?void 0:b.fulfilledTimeStamp,T=C.originalArgs,M=b==null?void 0:b.originalArgs,P=i[C.endpointName];return DA(C)?!0:(b==null?void 0:b.status)==="pending"?!1:d(C,I)||bE(P)&&((D=P==null?void 0:P.forceRefetch)!=null&&D.call(P,{currentArg:T,previousArg:M,endpointState:b,state:I}))?!0:!O},dispatchConditionRejection:!0}),p=Yh(n+"/executeMutation",A,{getPendingMeta:function(){var C;return C={startedTimeStamp:Date.now()},C[Qs]=!0,C}}),h=function(C){return"force"in C},g=function(C){return"ifOlderThan"in C},E=function(C,y,x){return function(w,S){var D=h(x)&&x.force,I=g(x)&&x.ifOlderThan,b=function(P){return P===void 0&&(P=!0),s.endpoints[C].initiate(y,{forceRefetch:P})},O=s.endpoints[C].select(y)(S());if(D)w(b());else if(I){var T=O==null?void 0:O.fulfilledTimeStamp;if(!T){w(b());return}var M=(Number(new Date)-Number(new Date(T)))/1e3>=I;M&&w(b())}else w(b(!1))}};function m(C){return function(y){var x,w;return((w=(x=y==null?void 0:y.meta)==null?void 0:x.arg)==null?void 0:w.endpointName)===C}}function v(C,y){return{matchPending:du(Rm(C),m(y)),matchFulfilled:du(xa(C),m(y)),matchRejected:du(Nm(C),m(y))}}return{queryThunk:f,mutationThunk:p,prefetch:E,updateQueryData:c,upsertQueryData:u,patchQueryData:l,buildMatchThunkActions:v}}function SE(t,e,n,r){return ph(n[t.meta.arg.endpointName][e],xa(t)?t.payload:void 0,Sf(t)?t.payload:void 0,t.meta.arg.originalArgs,"baseQueryMeta"in t.meta?t.meta.baseQueryMeta:void 0,r)}function co(t,e,n){var r=t[e];r&&n(r)}function Ts(t){var e;return(e="arg"in t?t.arg.fixedCacheKey:t.fixedCacheKey)!=null?e:t.requestId}function Qp(t,e,n){var r=t[Ts(e)];r&&n(r)}var Fa={};function O2(t){var e=t.reducerPath,n=t.queryThunk,r=t.mutationThunk,i=t.context,a=i.endpointDefinitions,s=i.apiUid,o=i.extractRehydrationInfo,l=i.hasRehydrationInfo,c=t.assertTagType,u=t.config,A=Ea(e+"/resetApiState"),d=He({name:e+"/queries",initialState:Fa,reducers:{removeQueryResult:{reducer:function(y,x){var w=x.payload.queryCacheKey;delete y[w]},prepare:Ta()},queryResultPatched:{reducer:function(y,x){var w=x.payload,S=w.queryCacheKey,D=w.patches;co(y,S,function(I){I.data=zh(I.data,D.concat())})},prepare:Ta()}},extraReducers:function(y){y.addCase(n.pending,function(x,w){var S=w.meta,D=w.meta.arg,I,b,O=DA(D);(D.subscribe||O)&&((b=x[I=D.queryCacheKey])!=null||(x[I]={status:Re.uninitialized,endpointName:D.endpointName})),co(x,D.queryCacheKey,function(T){T.status=Re.pending,T.requestId=O&&T.requestId?T.requestId:S.requestId,D.originalArgs!==void 0&&(T.originalArgs=D.originalArgs),T.startedTimeStamp=S.startedTimeStamp})}).addCase(n.fulfilled,function(x,w){var S=w.meta,D=w.payload;co(x,S.arg.queryCacheKey,function(I){var b;if(!(I.requestId!==S.requestId&&!DA(S.arg))){var O=a[S.arg.endpointName].merge;if(I.status=Re.fulfilled,O)if(I.data!==void 0){var T=S.fulfilledTimeStamp,M=S.arg,P=S.baseQueryMeta,R=S.requestId,W=_f(I.data,function(N){return O(N,D,{arg:M.originalArgs,baseQueryMeta:P,fulfilledTimeStamp:T,requestId:R})});I.data=W}else I.data=D;else I.data=(b=a[S.arg.endpointName].structuralSharing)==null||b?yE(Zy(I.data)?Jy(I.data):I.data,D):D;delete I.error,I.fulfilledTimeStamp=S.fulfilledTimeStamp}})}).addCase(n.rejected,function(x,w){var S=w.meta,D=S.condition,I=S.arg,b=S.requestId,O=w.error,T=w.payload;co(x,I.queryCacheKey,function(M){if(!D){if(M.requestId!==b)return;M.status=Re.rejected,M.error=T??O}})}).addMatcher(l,function(x,w){for(var S=o(w).queries,D=0,I=Object.entries(S);D<I.length;D++){var b=I[D],O=b[0],T=b[1];((T==null?void 0:T.status)===Re.fulfilled||(T==null?void 0:T.status)===Re.rejected)&&(x[O]=T)}})}}),f=He({name:e+"/mutations",initialState:Fa,reducers:{removeMutationResult:{reducer:function(y,x){var w=x.payload,S=Ts(w);S in y&&delete y[S]},prepare:Ta()}},extraReducers:function(y){y.addCase(r.pending,function(x,w){var S=w.meta,D=w.meta,I=D.requestId,b=D.arg,O=D.startedTimeStamp;b.track&&(x[Ts(S)]={requestId:I,status:Re.pending,endpointName:b.endpointName,startedTimeStamp:O})}).addCase(r.fulfilled,function(x,w){var S=w.payload,D=w.meta;D.arg.track&&Qp(x,D,function(I){I.requestId===D.requestId&&(I.status=Re.fulfilled,I.data=S,I.fulfilledTimeStamp=D.fulfilledTimeStamp)})}).addCase(r.rejected,function(x,w){var S=w.payload,D=w.error,I=w.meta;I.arg.track&&Qp(x,I,function(b){b.requestId===I.requestId&&(b.status=Re.rejected,b.error=S??D)})}).addMatcher(l,function(x,w){for(var S=o(w).mutations,D=0,I=Object.entries(S);D<I.length;D++){var b=I[D],O=b[0],T=b[1];((T==null?void 0:T.status)===Re.fulfilled||(T==null?void 0:T.status)===Re.rejected)&&O!==(T==null?void 0:T.requestId)&&(x[O]=T)}})}}),p=He({name:e+"/invalidation",initialState:Fa,reducers:{updateProvidedBy:{reducer:function(y,x){for(var w,S,D,I,b=x.payload,O=b.queryCacheKey,T=b.providedTags,M=0,P=Object.values(y);M<P.length;M++)for(var R=P[M],W=0,N=Object.values(R);W<N.length;W++){var U=N[W],Y=U.indexOf(O);Y!==-1&&U.splice(Y,1)}for(var G=0,H=T;G<H.length;G++){var L=H[G],B=L.type,X=L.id,z=(I=(S=(w=y[B])!=null?w:y[B]={})[D=X||"__internal_without_id"])!=null?I:S[D]=[],q=z.includes(O);q||z.push(O)}},prepare:Ta()}},extraReducers:function(y){y.addCase(d.actions.removeQueryResult,function(x,w){for(var S=w.payload.queryCacheKey,D=0,I=Object.values(x);D<I.length;D++)for(var b=I[D],O=0,T=Object.values(b);O<T.length;O++){var M=T[O],P=M.indexOf(S);P!==-1&&M.splice(P,1)}}).addMatcher(l,function(x,w){for(var S,D,I,b,O=o(w).provided,T=0,M=Object.entries(O);T<M.length;T++)for(var P=M[T],R=P[0],W=P[1],N=0,U=Object.entries(W);N<U.length;N++)for(var Y=U[N],G=Y[0],H=Y[1],L=(b=(D=(S=x[R])!=null?S:x[R]={})[I=G||"__internal_without_id"])!=null?b:D[I]=[],B=0,X=H;B<X.length;B++){var z=X[B],q=L.includes(z);q||L.push(z)}}).addMatcher(Pm(xa(n),Sf(n)),function(x,w){var S=SE(w,"providesTags",a,c),D=w.meta.arg.queryCacheKey;p.caseReducers.updateProvidedBy(x,p.actions.updateProvidedBy({queryCacheKey:D,providedTags:S}))})}}),h=He({name:e+"/subscriptions",initialState:Fa,reducers:{updateSubscriptionOptions:function(y,x){},unsubscribeQueryResult:function(y,x){},internal_probeSubscription:function(y,x){}}}),g=He({name:e+"/internalSubscriptions",initialState:Fa,reducers:{subscriptionsUpdated:{reducer:function(y,x){return zh(y,x.payload)},prepare:Ta()}}}),E=He({name:e+"/config",initialState:Ne({online:m2(),focused:C2(),middlewareRegistered:!1},u),reducers:{middlewareRegistered:function(y,x){var w=x.payload;y.middlewareRegistered=y.middlewareRegistered==="conflict"||s!==w?"conflict":!0}},extraReducers:function(y){y.addCase(hh,function(x){x.online=!0}).addCase(wE,function(x){x.online=!1}).addCase(fh,function(x){x.focused=!0}).addCase(IE,function(x){x.focused=!1}).addMatcher(l,function(x){return Ne({},x)})}}),m=jy({queries:d.reducer,mutations:f.reducer,provided:p.reducer,subscriptions:g.reducer,config:E.reducer}),v=function(y,x){return m(A.match(x)?void 0:y,x)},C=Sn(Ne(Ne(Ne(Ne(Ne(Ne({},E.actions),d.actions),h.actions),g.actions),f.actions),p.actions),{unsubscribeMutationResult:f.actions.removeMutationResult,resetApiState:A});return{reducer:v,actions:C}}var ii=Symbol.for("RTKQ/skipToken"),_E={status:Re.uninitialized},Zp=_f(_E,function(){}),Jp=_f(_E,function(){});function k2(t){var e=t.serializeQueryArgs,n=t.reducerPath,r=function(u){return Zp},i=function(u){return Jp};return{buildQuerySelector:o,buildMutationSelector:l,selectInvalidatedBy:c};function a(u){return Ne(Ne({},u),f2(u.status))}function s(u){var A=u[n];return A}function o(u,A){return function(d){var f=e({queryArgs:d,endpointDefinition:A,endpointName:u}),p=function(g){var E,m,v;return(v=(m=(E=s(g))==null?void 0:E.queries)==null?void 0:m[f])!=null?v:Zp},h=d===ii?r:p;return xi(h,a)}}function l(){return function(u){var A,d;typeof u=="object"?d=(A=Ts(u))!=null?A:ii:d=u;var f=function(h){var g,E,m;return(m=(E=(g=s(h))==null?void 0:g.mutations)==null?void 0:E[d])!=null?m:Jp},p=d===ii?i:f;return xi(p,a)}}function c(u,A){for(var d,f=u[n],p=new Set,h=0,g=A.map(_A);h<g.length;h++){var E=g[h],m=f.provided[E.type];if(m)for(var v=(d=E.id!==void 0?m[E.id]:Yp(Object.values(m)))!=null?d:[],C=0,y=v;C<y.length;C++){var x=y[C];p.add(x)}}return Yp(Array.from(p.values()).map(function(w){var S=f.queries[w];return S?[{queryCacheKey:w,endpointName:S.endpointName,originalArgs:S.originalArgs}]:[]}))}}var uo=WeakMap?new WeakMap:void 0,eg=function(t){var e=t.endpointName,n=t.queryArgs,r="",i=uo==null?void 0:uo.get(n);if(typeof i=="string")r=i;else{var a=JSON.stringify(n,function(s,o){return bi(o)?Object.keys(o).sort().reduce(function(l,c){return l[c]=o[c],l},{}):o});bi(n)&&(uo==null||uo.set(n,a)),r=a}return e+"("+r+")"};function M2(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(r){var i=Kd(function(u){var A,d;return(d=r.extractRehydrationInfo)==null?void 0:d.call(r,u,{reducerPath:(A=r.reducerPath)!=null?A:"api"})}),a=Sn(Ne({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},r),{extractRehydrationInfo:i,serializeQueryArgs:function(u){var A=eg;if("serializeQueryArgs"in u.endpointDefinition){var d=u.endpointDefinition.serializeQueryArgs;A=function(f){var p=d(f);return typeof p=="string"?p:eg(Sn(Ne({},f),{queryArgs:p}))}}else r.serializeQueryArgs&&(A=r.serializeQueryArgs);return A(u)},tagTypes:ul([],r.tagTypes||[])}),s={endpointDefinitions:{},batch:function(u){u()},apiUid:Ky(),extractRehydrationInfo:i,hasRehydrationInfo:Kd(function(u){return i(u)!=null})},o={injectEndpoints:c,enhanceEndpoints:function(u){var A=u.addTagTypes,d=u.endpoints;if(A)for(var f=0,p=A;f<p.length;f++){var h=p[f];a.tagTypes.includes(h)||a.tagTypes.push(h)}if(d)for(var g=0,E=Object.entries(d);g<E.length;g++){var m=E[g],v=m[0],C=m[1];typeof C=="function"?C(s.endpointDefinitions[v]):Object.assign(s.endpointDefinitions[v]||{},C)}return o}},l=t.map(function(u){return u.init(o,a,s)});function c(u){for(var A=u.endpoints({query:function(C){return Sn(Ne({},C),{type:Rn.query})},mutation:function(C){return Sn(Ne({},C),{type:Rn.mutation})}}),d=0,f=Object.entries(A);d<f.length;d++){var p=f[d],h=p[0],g=p[1];if(!u.overrideExisting&&h in s.endpointDefinitions){typeof process<"u";continue}s.endpointDefinitions[h]=g;for(var E=0,m=l;E<m.length;E++){var v=m[E];v.injectEndpoint(h,g)}}return o}return o.injectEndpoints({endpoints:r.endpoints})}}function P2(t){for(var e in t)return!1;return!0}var F2=2147483647/1e3-1,R2=function(t){var e=t.reducerPath,n=t.api,r=t.context,i=t.internalState,a=n.internalActions,s=a.removeQueryResult,o=a.unsubscribeQueryResult;function l(d){var f=i.currentSubscriptions[d];return!!f&&!P2(f)}var c={},u=function(d,f,p){var h;if(o.match(d)){var g=f.getState()[e],E=d.payload.queryCacheKey;A(E,(h=g.queries[E])==null?void 0:h.endpointName,f,g.config)}if(n.util.resetApiState.match(d))for(var m=0,v=Object.entries(c);m<v.length;m++){var C=v[m],y=C[0],x=C[1];x&&clearTimeout(x),delete c[y]}if(r.hasRehydrationInfo(d))for(var g=f.getState()[e],w=r.extractRehydrationInfo(d).queries,S=0,D=Object.entries(w);S<D.length;S++){var I=D[S],E=I[0],b=I[1];A(E,b==null?void 0:b.endpointName,f,g.config)}};function A(d,f,p,h){var g,E=r.endpointDefinitions[f],m=(g=E==null?void 0:E.keepUnusedDataFor)!=null?g:h.keepUnusedDataFor;if(m!==1/0){var v=Math.max(0,Math.min(m,F2));if(!l(d)){var C=c[d];C&&clearTimeout(C),c[d]=setTimeout(function(){l(d)||p.dispatch(s({queryCacheKey:d})),delete c[d]},v*1e3)}}}return u},N2=function(t){var e=t.reducerPath,n=t.context,r=t.context.endpointDefinitions,i=t.mutationThunk,a=t.api,s=t.assertTagType,o=t.refetchQuery,l=a.internalActions.removeQueryResult,c=Pm(xa(i),Sf(i)),u=function(d,f){c(d)&&A(SE(d,"invalidatesTags",r,s),f),a.util.invalidateTags.match(d)&&A(ph(d.payload,void 0,void 0,void 0,void 0,s),f)};function A(d,f){var p=f.getState(),h=p[e],g=a.util.selectInvalidatedBy(p,d);n.batch(function(){for(var E,m=Array.from(g.values()),v=0,C=m;v<C.length;v++){var y=C[v].queryCacheKey,x=h.queries[y],w=(E=h.subscriptions[y])!=null?E:{};x&&(Object.keys(w).length===0?f.dispatch(l({queryCacheKey:y})):x.status!==Re.uninitialized&&f.dispatch(o(x,y)))}})}return u},B2=function(t){var e=t.reducerPath,n=t.queryThunk,r=t.api,i=t.refetchQuery,a=t.internalState,s={},o=function(f,p){(r.internalActions.updateSubscriptionOptions.match(f)||r.internalActions.unsubscribeQueryResult.match(f))&&c(f.payload,p),(n.pending.match(f)||n.rejected.match(f)&&f.meta.condition)&&c(f.meta.arg,p),(n.fulfilled.match(f)||n.rejected.match(f)&&!f.meta.condition)&&l(f.meta.arg,p),r.util.resetApiState.match(f)&&A()};function l(f,p){var h=f.queryCacheKey,g=p.getState()[e],E=g.queries[h],m=a.currentSubscriptions[h];if(!(!E||E.status===Re.uninitialized)){var v=d(m);if(Number.isFinite(v)){var C=s[h];C!=null&&C.timeout&&(clearTimeout(C.timeout),C.timeout=void 0);var y=Date.now()+v,x=s[h]={nextPollTimestamp:y,pollingInterval:v,timeout:setTimeout(function(){x.timeout=void 0,p.dispatch(i(E,h))},v)}}}}function c(f,p){var h=f.queryCacheKey,g=p.getState()[e],E=g.queries[h],m=a.currentSubscriptions[h];if(!(!E||E.status===Re.uninitialized)){var v=d(m);if(!Number.isFinite(v)){u(h);return}var C=s[h],y=Date.now()+v;(!C||y<C.nextPollTimestamp)&&l({queryCacheKey:h},p)}}function u(f){var p=s[f];p!=null&&p.timeout&&clearTimeout(p.timeout),delete s[f]}function A(){for(var f=0,p=Object.keys(s);f<p.length;f++){var h=p[f];u(h)}}function d(f){f===void 0&&(f={});var p=Number.POSITIVE_INFINITY;for(var h in f)f[h].pollingInterval&&(p=Math.min(f[h].pollingInterval,p));return p}return o},G2=function(t){var e=t.reducerPath,n=t.context,r=t.api,i=t.refetchQuery,a=t.internalState,s=r.internalActions.removeQueryResult,o=function(c,u){fh.match(c)&&l(u,"refetchOnFocus"),hh.match(c)&&l(u,"refetchOnReconnect")};function l(c,u){var A=c.getState()[e],d=A.queries,f=a.currentSubscriptions;n.batch(function(){for(var p=0,h=Object.keys(f);p<h.length;p++){var g=h[p],E=d[g],m=f[g];if(!(!m||!E)){var v=Object.values(m).some(function(C){return C[u]===!0})||Object.values(m).every(function(C){return C[u]===void 0})&&A.config[u];v&&(Object.keys(m).length===0?c.dispatch(s({queryCacheKey:g})):E.status!==Re.uninitialized&&c.dispatch(i(E,g)))}}})}return o},tg=new Error("Promise never resolved before cacheEntryRemoved."),L2=function(t){var e=t.api,n=t.reducerPath,r=t.context,i=t.queryThunk,a=t.mutationThunk;t.internalState;var s=qh(i),o=qh(a),l=xa(i,a),c={},u=function(f,p,h){var g=A(f);if(i.pending.match(f)){var E=h[n].queries[g],m=p.getState()[n].queries[g];!E&&m&&d(f.meta.arg.endpointName,f.meta.arg.originalArgs,g,p,f.meta.requestId)}else if(a.pending.match(f)){var m=p.getState()[n].mutations[g];m&&d(f.meta.arg.endpointName,f.meta.arg.originalArgs,g,p,f.meta.requestId)}else if(l(f)){var v=c[g];v!=null&&v.valueResolved&&(v.valueResolved({data:f.payload,meta:f.meta.baseQueryMeta}),delete v.valueResolved)}else if(e.internalActions.removeQueryResult.match(f)||e.internalActions.removeMutationResult.match(f)){var v=c[g];v&&(delete c[g],v.cacheEntryRemoved())}else if(e.util.resetApiState.match(f))for(var C=0,y=Object.entries(c);C<y.length;C++){var x=y[C],w=x[0],v=x[1];delete c[w],v.cacheEntryRemoved()}};function A(f){return s(f)?f.meta.arg.queryCacheKey:o(f)?f.meta.requestId:e.internalActions.removeQueryResult.match(f)?f.payload.queryCacheKey:e.internalActions.removeMutationResult.match(f)?Ts(f.payload):""}function d(f,p,h,g,E){var m=r.endpointDefinitions[f],v=m==null?void 0:m.onCacheEntryAdded;if(v){var C={},y=new Promise(function(b){C.cacheEntryRemoved=b}),x=Promise.race([new Promise(function(b){C.valueResolved=b}),y.then(function(){throw tg})]);x.catch(function(){}),c[h]=C;var w=e.endpoints[f].select(m.type===Rn.query?p:h),S=g.dispatch(function(b,O,T){return T}),D=Sn(Ne({},g),{getCacheEntry:function(){return w(g.getState())},requestId:E,extra:S,updateCachedData:m.type===Rn.query?function(b){return g.dispatch(e.util.updateQueryData(f,p,b))}:void 0,cacheDataLoaded:x,cacheEntryRemoved:y}),I=v(p,D);Promise.resolve(I).catch(function(b){if(b!==tg)throw b})}}return u},V2=function(t){var e=t.api,n=t.context,r=t.queryThunk,i=t.mutationThunk,a=Rm(r,i),s=Nm(r,i),o=xa(r,i),l={},c=function(u,A){var d,f,p;if(a(u)){var h=u.meta,g=h.requestId,E=h.arg,m=E.endpointName,v=E.originalArgs,C=n.endpointDefinitions[m],y=C==null?void 0:C.onQueryStarted;if(y){var x={},w=new Promise(function(P,R){x.resolve=P,x.reject=R});w.catch(function(){}),l[g]=x;var S=e.endpoints[m].select(C.type===Rn.query?v:g),D=A.dispatch(function(P,R,W){return W}),I=Sn(Ne({},A),{getCacheEntry:function(){return S(A.getState())},requestId:g,extra:D,updateCachedData:C.type===Rn.query?function(P){return A.dispatch(e.util.updateQueryData(m,v,P))}:void 0,queryFulfilled:w});y(v,I)}}else if(o(u)){var b=u.meta,g=b.requestId,O=b.baseQueryMeta;(d=l[g])==null||d.resolve({data:u.payload,meta:O}),delete l[g]}else if(s(u)){var T=u.meta,g=T.requestId,M=T.rejectedWithValue,O=T.baseQueryMeta;(p=l[g])==null||p.reject({error:(f=u.payload)!=null?f:u.error,isUnhandledError:!M,meta:O}),delete l[g]}};return c},H2=function(t){var e=t.api,n=t.context.apiUid,r=t.reducerPath;return function(i,a){var s,o;e.util.resetApiState.match(i)&&a.dispatch(e.internalActions.middlewareRegistered(n)),typeof process<"u"}},ng,U2=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ng||(ng=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},W2=function(t){var e=t.api,n=t.queryThunk,r=t.internalState,i=e.reducerPath+"/subscriptions",a=null,s=!1,o=e.internalActions,l=o.updateSubscriptionOptions,c=o.unsubscribeQueryResult,u=function(A,d){var f,p,h,g,E,m,v,C,y;if(l.match(d)){var x=d.payload,w=x.queryCacheKey,S=x.requestId,D=x.options;return(f=A==null?void 0:A[w])!=null&&f[S]&&(A[w][S]=D),!0}if(c.match(d)){var I=d.payload,w=I.queryCacheKey,S=I.requestId;return A[w]&&delete A[w][S],!0}if(e.internalActions.removeQueryResult.match(d))return delete A[d.payload.queryCacheKey],!0;if(n.pending.match(d)){var b=d.meta,O=b.arg,S=b.requestId;if(O.subscribe){var T=(h=A[p=O.queryCacheKey])!=null?h:A[p]={};return T[S]=(E=(g=O.subscriptionOptions)!=null?g:T[S])!=null?E:{},!0}}if(n.rejected.match(d)){var M=d.meta,P=M.condition,O=M.arg,S=M.requestId;if(P&&O.subscribe){var T=(v=A[m=O.queryCacheKey])!=null?v:A[m]={};return T[S]=(y=(C=O.subscriptionOptions)!=null?C:T[S])!=null?y:{},!0}}return!1};return function(A,d){var f,p;if(a||(a=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(A))return a=r.currentSubscriptions={},[!0,!1];if(e.internalActions.internal_probeSubscription.match(A)){var h=A.payload,g=h.queryCacheKey,E=h.requestId,m=!!((f=r.currentSubscriptions[g])!=null&&f[E]);return[!1,m]}var v=u(r.currentSubscriptions,A);if(v){s||(U2(function(){var w=JSON.parse(JSON.stringify(r.currentSubscriptions)),S=Fm(a,function(){return w}),D=S[1];d.next(e.internalActions.subscriptionsUpdated(D)),a=w,s=!1}),s=!0);var C=!!((p=A.type)!=null&&p.startsWith(i)),y=n.rejected.match(A)&&A.meta.condition&&!!A.meta.arg.subscribe,x=!C&&!y;return[x,!1]}return[!0,!1]}};function X2(t){var e=t.reducerPath,n=t.queryThunk,r=t.api,i=t.context,a=i.apiUid,s={invalidateTags:Ea(e+"/invalidateTags")},o=function(A){return!!A&&typeof A.type=="string"&&A.type.startsWith(e+"/")},l=[H2,R2,N2,B2,L2,V2],c=function(A){var d=!1,f={currentSubscriptions:{}},p=Sn(Ne({},t),{internalState:f,refetchQuery:u}),h=l.map(function(m){return m(p)}),g=W2(p),E=G2(p);return function(m){return function(v){d||(d=!0,A.dispatch(r.internalActions.middlewareRegistered(a)));var C=Sn(Ne({},A),{next:m}),y=A.getState(),x=g(v,C,y),w=x[0],S=x[1],D;if(w?D=m(v):D=S,A.getState()[e]&&(E(v,C,y),o(v)||i.hasRehydrationInfo(v)))for(var I=0,b=h;I<b.length;I++){var O=b[I];O(v,C,y)}return D}}};return{middleware:c,actions:s};function u(A,d,f){return f===void 0&&(f={}),n(Ne({type:"query",endpointName:A.endpointName,originalArgs:A.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:d},f))}}function Er(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];Object.assign.apply(Object,ul([t],e))}var rg=Symbol(),Y2=function(){return{name:rg,init:function(t,e,n){var r=e.baseQuery,i=e.tagTypes,a=e.reducerPath,s=e.serializeQueryArgs,o=e.keepUnusedDataFor,l=e.refetchOnMountOrArgChange,c=e.refetchOnFocus,u=e.refetchOnReconnect;$y();var A=function(L){return typeof process<"u",L};Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:hh,onOffline:wE,onFocus:fh,onFocusLost:IE},util:{}});var d=T2({baseQuery:r,reducerPath:a,context:n,api:t,serializeQueryArgs:s,assertTagType:A}),f=d.queryThunk,p=d.mutationThunk,h=d.patchQueryData,g=d.updateQueryData,E=d.upsertQueryData,m=d.prefetch,v=d.buildMatchThunkActions,C=O2({context:n,queryThunk:f,mutationThunk:p,reducerPath:a,assertTagType:A,config:{refetchOnFocus:c,refetchOnReconnect:u,refetchOnMountOrArgChange:l,keepUnusedDataFor:o,reducerPath:a}}),y=C.reducer,x=C.actions;Er(t.util,{patchQueryData:h,updateQueryData:g,upsertQueryData:E,prefetch:m,resetApiState:x.resetApiState}),Er(t.internalActions,x);var w=X2({reducerPath:a,context:n,queryThunk:f,mutationThunk:p,api:t,assertTagType:A}),S=w.middleware,D=w.actions;Er(t.util,D),Er(t,{reducer:y,middleware:S});var I=k2({serializeQueryArgs:s,reducerPath:a}),b=I.buildQuerySelector,O=I.buildMutationSelector,T=I.selectInvalidatedBy;Er(t.util,{selectInvalidatedBy:T});var M=D2({queryThunk:f,mutationThunk:p,api:t,serializeQueryArgs:s,context:n}),P=M.buildInitiateQuery,R=M.buildInitiateMutation,W=M.getRunningMutationThunk,N=M.getRunningMutationsThunk,U=M.getRunningQueriesThunk,Y=M.getRunningQueryThunk,G=M.getRunningOperationPromises,H=M.removalWarning;return Er(t.util,{getRunningOperationPromises:G,getRunningOperationPromise:H,getRunningMutationThunk:W,getRunningMutationsThunk:N,getRunningQueryThunk:Y,getRunningQueriesThunk:U}),{name:rg,injectEndpoint:function(L,B){var X,z,q=t;(z=(X=q.endpoints)[L])!=null||(X[L]={}),bE(B)?Er(q.endpoints[L],{name:L,select:b(L,B),initiate:P(L,B)},v(f,L)):S2(B)&&Er(q.endpoints[L],{name:L,select:O(),initiate:R(L)},v(p,L))}}}}},z2=function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},q2=Object.defineProperty,K2=Object.defineProperties,$2=Object.getOwnPropertyDescriptors,ig=Object.getOwnPropertySymbols,j2=Object.prototype.hasOwnProperty,Q2=Object.prototype.propertyIsEnumerable,ag=function(t,e,n){return e in t?q2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},jn=function(t,e){for(var n in e||(e={}))j2.call(e,n)&&ag(t,n,e[n]);if(ig)for(var r=0,i=ig(e);r<i.length;r++){var n=i[r];Q2.call(e,n)&&ag(t,n,e[n])}return t},Go=function(t,e){return K2(t,$2(e))};function sg(t,e,n,r){var i=_.useMemo(function(){return{queryArgs:t,serialized:typeof t=="object"?e({queryArgs:t,endpointDefinition:n,endpointName:r}):t}},[t,e,n,r]),a=_.useRef(i);return _.useEffect(function(){a.current.serialized!==i.serialized&&(a.current=i)},[i]),a.current.serialized===i.serialized?a.current.queryArgs:t}var Fu=Symbol();function Ru(t){var e=_.useRef(t);return _.useEffect(function(){zo(e.current,t)||(e.current=t)},[t]),zo(e.current,t)?e.current:t}var Ao=WeakMap?new WeakMap:void 0,Z2=function(t){var e=t.endpointName,n=t.queryArgs,r="",i=Ao==null?void 0:Ao.get(n);if(typeof i=="string")r=i;else{var a=JSON.stringify(n,function(s,o){return bi(o)?Object.keys(o).sort().reduce(function(l,c){return l[c]=o[c],l},{}):o});bi(n)&&(Ao==null||Ao.set(n,a)),r=a}return e+"("+r+")"},J2=typeof window<"u"&&window.document&&window.document.createElement?_.useLayoutEffect:_.useEffect,eO=function(t){return t},tO=function(t){return t.isUninitialized?Go(jn({},t),{isUninitialized:!1,isFetching:!0,isLoading:t.data===void 0,status:Re.pending}):t};function nO(t){var e=t.api,n=t.moduleOptions,r=n.batch,i=n.useDispatch,a=n.useSelector,s=n.useStore,o=n.unstable__sideEffectsInRender,l=t.serializeQueryArgs,c=t.context,u=o?function(h){return h()}:_.useEffect;return{buildQueryHooks:f,buildMutationHook:p,usePrefetch:d};function A(h,g,E){if(g!=null&&g.endpointName&&h.isUninitialized){var m=g.endpointName,v=c.endpointDefinitions[m];l({queryArgs:g.originalArgs,endpointDefinition:v,endpointName:m})===l({queryArgs:E,endpointDefinition:v,endpointName:m})&&(g=void 0)}var C=h.isSuccess?h.data:g==null?void 0:g.data;C===void 0&&(C=h.data);var y=C!==void 0,x=h.isLoading,w=!y&&x,S=h.isSuccess||x&&y;return Go(jn({},h),{data:C,currentData:h.data,isFetching:x,isLoading:w,isSuccess:S})}function d(h,g){var E=i(),m=Ru(g);return _.useCallback(function(v,C){return E(e.util.prefetch(h,v,jn(jn({},m),C)))},[h,E,m])}function f(h){var g=function(v,C){var y=C===void 0?{}:C,x=y.refetchOnReconnect,w=y.refetchOnFocus,S=y.refetchOnMountOrArgChange,D=y.skip,I=D===void 0?!1:D,b=y.pollingInterval,O=b===void 0?0:b,T=e.endpoints[h].initiate,M=i(),P=sg(I?ii:v,Z2,c.endpointDefinitions[h],h),R=Ru({refetchOnReconnect:x,refetchOnFocus:w,pollingInterval:O}),W=_.useRef(!1),N=_.useRef(),U=N.current||{},Y=U.queryCacheKey,G=U.requestId,H=!1;if(Y&&G){var L=M(e.internalActions.internal_probeSubscription({queryCacheKey:Y,requestId:G}));H=!!L}var B=!H&&W.current;return u(function(){W.current=H}),u(function(){B&&(N.current=void 0)},[B]),u(function(){var X,z=N.current;if(typeof process<"u",P===ii){z==null||z.unsubscribe(),N.current=void 0;return}var q=(X=N.current)==null?void 0:X.subscriptionOptions;if(!z||z.arg!==P){z==null||z.unsubscribe();var Q=M(T(P,{subscriptionOptions:R,forceRefetch:S}));N.current=Q}else R!==q&&z.updateSubscriptionOptions(R)},[M,T,S,P,R,B]),_.useEffect(function(){return function(){var X;(X=N.current)==null||X.unsubscribe(),N.current=void 0}},[]),_.useMemo(function(){return{refetch:function(){var X;if(!N.current)throw new Error("Cannot refetch a query that has not been started yet.");return(X=N.current)==null?void 0:X.refetch()}}},[])},E=function(v){var C=v===void 0?{}:v,y=C.refetchOnReconnect,x=C.refetchOnFocus,w=C.pollingInterval,S=w===void 0?0:w,D=e.endpoints[h].initiate,I=i(),b=_.useState(Fu),O=b[0],T=b[1],M=_.useRef(),P=Ru({refetchOnReconnect:y,refetchOnFocus:x,pollingInterval:S});u(function(){var N,U,Y=(N=M.current)==null?void 0:N.subscriptionOptions;P!==Y&&((U=M.current)==null||U.updateSubscriptionOptions(P))},[P]);var R=_.useRef(P);u(function(){R.current=P},[P]);var W=_.useCallback(function(N,U){U===void 0&&(U=!1);var Y;return r(function(){var G;(G=M.current)==null||G.unsubscribe(),M.current=Y=I(D(N,{subscriptionOptions:R.current,forceRefetch:!U})),T(N)}),Y},[I,D]);return _.useEffect(function(){return function(){var N;(N=M==null?void 0:M.current)==null||N.unsubscribe()}},[]),_.useEffect(function(){O!==Fu&&!M.current&&W(O,!0)},[O,W]),_.useMemo(function(){return[W,O]},[W,O])},m=function(v,C){var y=C===void 0?{}:C,x=y.skip,w=x===void 0?!1:x,S=y.selectFromResult,D=e.endpoints[h].select,I=sg(w?ii:v,l,c.endpointDefinitions[h],h),b=_.useRef(),O=_.useMemo(function(){return xi([D(I),function(W,N){return N},function(W){return I}],A)},[D,I]),T=_.useMemo(function(){return S?xi([O],S):O},[O,S]),M=a(function(W){return T(W,b.current)},zo),P=s(),R=O(P.getState(),b.current);return J2(function(){b.current=R},[R]),M};return{useQueryState:m,useQuerySubscription:g,useLazyQuerySubscription:E,useLazyQuery:function(v){var C=E(v),y=C[0],x=C[1],w=m(x,Go(jn({},v),{skip:x===Fu})),S=_.useMemo(function(){return{lastArg:x}},[x]);return _.useMemo(function(){return[y,w,S]},[y,w,S])},useQuery:function(v,C){var y=g(v,C),x=m(v,jn({selectFromResult:v===ii||C!=null&&C.skip?void 0:tO},C)),w=x.data,S=x.status,D=x.isLoading,I=x.isSuccess,b=x.isError,O=x.error;return _.useDebugValue({data:w,status:S,isLoading:D,isSuccess:I,isError:b,error:O}),_.useMemo(function(){return jn(jn({},x),y)},[x,y])}}}function p(h){return function(g){var E=g===void 0?{}:g,m=E.selectFromResult,v=m===void 0?eO:m,C=E.fixedCacheKey,y=e.endpoints[h],x=y.select,w=y.initiate,S=i(),D=_.useState(),I=D[0],b=D[1];_.useEffect(function(){return function(){I!=null&&I.arg.fixedCacheKey||I==null||I.reset()}},[I]);var O=_.useCallback(function(z){var q=S(w(z,{fixedCacheKey:C}));return b(q),q},[S,w,C]),T=(I||{}).requestId,M=_.useMemo(function(){return xi([x({fixedCacheKey:C,requestId:I==null?void 0:I.requestId})],v)},[x,I,v,C]),P=a(M,zo),R=C==null?I==null?void 0:I.arg.originalArgs:void 0,W=_.useCallback(function(){r(function(){I&&b(void 0),C&&S(e.internalActions.removeMutationResult({requestId:T,fixedCacheKey:C}))})},[S,C,I,T]),N=P.endpointName,U=P.data,Y=P.status,G=P.isLoading,H=P.isSuccess,L=P.isError,B=P.error;_.useDebugValue({endpointName:N,data:U,status:Y,isLoading:G,isSuccess:H,isError:L,error:B});var X=_.useMemo(function(){return Go(jn({},P),{originalArgs:R,reset:W})},[P,R,W]);return _.useMemo(function(){return[O,X]},[O,X])}}}var Al;(function(t){t.query="query",t.mutation="mutation"})(Al||(Al={}));function rO(t){return t.type===Al.query}function iO(t){return t.type===Al.mutation}function Nu(t){return t.replace(t[0],t[0].toUpperCase())}function fo(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];Object.assign.apply(Object,z2([t],e))}var aO=Symbol(),sO=function(t){var e={},n=e.batch,r=n===void 0?f1.unstable_batchedUpdates:n,i=e.useDispatch,a=i===void 0?tC:i,s=e.useSelector,o=s===void 0?e1:s,l=e.useStore,c=l===void 0?eC:l,u=e.unstable__sideEffectsInRender,A=u===void 0?!1:u;return{name:aO,init:function(d,f,p){var h=f.serializeQueryArgs,g=d,E=nO({api:d,moduleOptions:{batch:r,useDispatch:a,useSelector:o,useStore:c,unstable__sideEffectsInRender:A},serializeQueryArgs:h,context:p}),m=E.buildQueryHooks,v=E.buildMutationHook,C=E.usePrefetch;return fo(g,{usePrefetch:C}),fo(p,{batch:r}),{injectEndpoint:function(y,x){if(rO(x)){var w=m(y),S=w.useQuery,D=w.useLazyQuery,I=w.useLazyQuerySubscription,b=w.useQueryState,O=w.useQuerySubscription;fo(g.endpoints[y],{useQuery:S,useLazyQuery:D,useLazyQuerySubscription:I,useQueryState:b,useQuerySubscription:O}),d["use"+Nu(y)+"Query"]=S,d["useLazy"+Nu(y)+"Query"]=D}else if(iO(x)){var T=v(y);fo(g.endpoints[y],{useMutation:T}),d["use"+Nu(y)+"Mutation"]=T}}}}}},oO=M2(Y2(),sO()),vn=(t=>(t[t.none=0]="none",t[t.second=1]="second",t[t.minute=60]="minute",t[t.fiveMinutes=300]="fiveMinutes",t[t.hour=3600]="hour",t[t.day=86400]="day",t[t.week=604800]="week",t))(vn||{}),DE=(t=>(t[t.short=1e3]="short",t[t.medium=15e3]="medium",t[t.long=3e4]="long",t))(DE||{});const lO=t=>new Promise(e=>setTimeout(e,t)),cO=(t,{getState:e})=>{const n=e(),{environment:r}=cE(n),i=Yy[r];return i?t.set("X-API-KEY",i):Mf(`No API key in .env for environment ${r}.`),t.set("releaseVersion",Oy),t},uO=async(t,e,n)=>Mu(async()=>{var f;const{slug:r,afterError:i,afterSuccess:a,prepareHeaders:s=p=>p}=t,o=_T(r)(e.getState()),l=`${e.endpoint}: ${t.method??"GET"} ${o}${t.url}`;jh(`Request started: ${l}`);const c=await y2({baseUrl:o,prepareHeaders:(p,h)=>cO(s(p,h),h),timeout:DE.long})(t,e,n),{error:u,meta:A}=c,d=((f=A==null?void 0:A.response)==null?void 0:f.status)??(u==null?void 0:u.status)??0;return u?Mf(`Request failed (${d}): ${l}, ${JSON.stringify(u.data)}`):jh(`Request success: ${l}`),d===404&&Mu.fail(u),((u==null?void 0:u.status)==="FETCH_ERROR"||(u==null?void 0:u.status)==="TIMEOUT_ERROR"||(u==null?void 0:u.status)===502)&&await lO(100),u?await(i==null?void 0:i(c,e,Mu.fail)):await(a==null?void 0:a(c,e)),c},{maxRetries:2})(t,e,n),ru=oO({baseQuery:uO,endpoints:()=>({}),reducerPath:"api",tagTypes:["Articles","FollowedProjects","Modules","Notifications","Projects"]}),dO=ru.injectEndpoints({endpoints:t=>({[CE.getRedirectUrls]:t.query({query:()=>({slug:$e.contact,url:"/links"}),keepUnusedDataFor:vn.hour})}),overrideExisting:!0}),{useGetRedirectUrlsQuery:AO}=dO,fO=()=>{const{setIsMenuOpen:t,headerHeight:e,isMenuOpen:n}=Ri(),r=Nn(),i=Hm(Pf.normal),a=Ls(),s=hO(r,e,a),{addDownloadedTranscriptId:o,endChat:l}=_.useContext(dn),c=Gm(),{data:u,isLoading:A,isError:d}=AO(),f=Uc();return n?k.jsx($t.View,{entering:nh.duration(r.duration.transition.short),exiting:rh.duration(r.duration.transition.short),style:s.container,children:k.jsxs(Dn,{halign:"start",children:[k.jsx(gs,{color:"link",label:"Chat downloaden",onPress:()=>{t(!1),mE().then(p=>p&&o(p))},ref:i,testID:"ChatMenuPressableDownloadChat"}),!A&&!d&&k.jsx(gs,{color:"link",label:"Privacy",onPress:()=>{u!=null&&u.chatPrivacy?(t(!1),c(u.chatPrivacy)):(Jn.alert("Sorry, deze functie is nu niet beschikbaar. Probeer het later nog eens."),f(Zn.getRedirectsUrl,"ChatMenu.ts",{redirectsKey:"chatPrivacy"}))},testID:"ChatMenuPressableStopChat"}),k.jsx(gs,{color:"warning",label:"Chat stoppen",onPress:()=>{t(!1),l()},testID:"ChatMenuPressableStopChat"})]})}):null},hO=({color:t,z:e,size:n},r,i)=>he.create({container:{position:"absolute",left:n.spacing.sm,top:r+i.top,backgroundColor:t.box.distinct,zIndex:e.tooltip,elevation:2,shadowColor:t.shadow.default,shadowOffset:{width:0,height:2},shadowRadius:4,shadowOpacity:.3}}),pO=He({name:le.bottomSheet,initialState:{isOpen:!1,isPresentAtRouteNames:[]},reducers:{closeBottomSheet:t=>({...t,isOpen:!1}),openBottomSheet:t=>({...t,isOpen:!0}),addIsPresentAtRouteName:(t,{payload:e})=>{t.isPresentAtRouteNames.push(e)},removeIsPresentAtRouteName:(t,{payload:e})=>({...t,isPresentAtRouteNames:t.isPresentAtRouteNames.filter(n=>n!==e)}),toggleBottomSheet:t=>({...t,isOpen:!t.isOpen})}}),{closeBottomSheet:gO,openBottomSheet:vO,addIsPresentAtRouteName:mO,removeIsPresentAtRouteName:CO,toggleBottomSheet:EO}=pO.actions,xO=()=>{const t=Bn();return{isOpen:tt(n=>n[le.bottomSheet].isOpen),..._.useMemo(()=>({close:()=>t(gO()),open:()=>t(vO()),addIsPresentAtRouteName:n=>t(mO(n)),removeIsPresentAtRouteName:n=>t(CO(n)),toggle:()=>t(EO())}),[t])}},og={spaceBottom:0,isContentHiddenFromAccessibility:!1,isHiddenFromAccessibility:!1},yO=He({name:le.screen,initialState:og,reducers:{resetScreen:()=>og,setHideScreenFromAccessibility:(t,{payload:e})=>{t.isHiddenFromAccessibility=e},setHideScreenContentFromAccessibility:(t,{payload:e})=>{t.isContentHiddenFromAccessibility=e},setExtraSpaceBottom:(t,{payload:e})=>{t.spaceBottom=e}}}),{setExtraSpaceBottom:IO,setHideScreenFromAccessibility:wO,setHideScreenContentFromAccessibility:bO}=yO.actions,SO=t=>t[le.screen].spaceBottom,_O=t=>t[le.screen].isHiddenFromAccessibility,DO=t=>t[le.screen].isContentHiddenFromAccessibility,gh=()=>{const t=Bn(),e=tt(SO),n=tt(DO),r=tt(_O),i=_.useCallback(o=>t(IO(o)),[t]),a=_.useCallback(o=>t(wO(o)),[t]),s=_.useCallback(o=>t(bO(o)),[t]);return{isContentHiddenFromAccessibility:n,isHiddenFromAccessibility:r,spaceBottom:e,setHideContentFromAccessibility:s,setHideFromAccessibility:a,setSpaceBottom:i}},TO=60,OO=8,kO=25,TA=({children:t})=>{const e=Nn(),{isOpen:n}=xO(),{isMaximized:r}=Ri(),[i,a]=_.useState(0),s=ct(0),o=ct(0),l=ct(r?1:0),c=Ls(),{fontScale:u}=Vm(),{newMessagesCount:A}=_.useContext(dn),{setSpaceBottom:d}=gh(),f=MO(e,c),p=TO*u+c.bottom;_.useEffect(()=>{l.value=j(r?1:0)},[r,l]),_.useEffect(()=>(d(p-OO),()=>{d(0)}),[p,d]),_.useEffect(()=>{A>0&&!r&&!n?o.value=Jf(Fe(j(-kO,{duration:400}),Zf(0,{duration:1e3,dampingRatio:.3}),j(0,{duration:3e3})),-1):o.value=0},[o,r,n,A]),_.useEffect(()=>{s.value=j(r?0:i-(n?0:p))},[r,s,i,n,p]);const h=Fn(()=>({transform:[{translateY:s.value+o.value}],backgroundColor:xA(l.value,[0,1],[e.color.chat.minimized.background,e.color.chat.maximized.background]),borderTopColor:xA(l.value,[0,1],[e.color.chat.border,"transparent"]),borderTopWidth:Lt(l.value,[0,1],[e.border.width.md,0])})),g=Fn(()=>({transform:[{translateY:Lt(l.value,[0,1],[-c.top,0])}]}));return k.jsxs($t.View,{entering:_i,exiting:Is,onLayout:E=>{a(E.nativeEvent.layout.height)},style:[he.absoluteFill,f.container,h],children:[k.jsx(fO,{}),k.jsx($t.View,{style:[f.inner,g],children:t})]})},MO=({z:t},e)=>he.create({container:{flexGrow:1,paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left,zIndex:t.overlay-1},inner:{flexGrow:1}});try{TA.displayName="ChatAnimatedWrapper",TA.__docgenInfo={description:"",displayName:"ChatAnimatedWrapper",props:{}}}catch{}const fl=({accessibilityLanguage:t="nl-NL",text:e})=>k.jsx(Wm,{accessibilityLanguage:t,level:"h5",numberOfLines:1,testID:"HeaderTitle",text:e,textAlign:"center"});try{fl.displayName="ScreenHeaderTitle",fl.__docgenInfo={description:"",displayName:"ScreenHeaderTitle",props:{accessibilityLanguage:{defaultValue:{value:"nl-NL"},description:"",name:"accessibilityLanguage",required:!1,type:{name:"string"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}}}}}catch{}const lg=28,OA=({color:t,width:e=lg,height:n=lg,...r})=>{const{fontScale:i}=Vm();return k.jsxs(Ff,{...r,fill:"none",height:Number(n)*i,viewBox:"0 0 28 28",width:Number(e)*i,children:[k.jsx(_r,{"clip-rule":"evenodd",d:"M14 2C7.37258 2 2 7.37258 2 14C2 20.6274 7.37258 26 14 26C20.6274 26 26 20.6274 26 14C26 7.37258 20.6274 2 14 2ZM0 14C0 6.26801 6.26801 0 14 0C21.732 0 28 6.26801 28 14C28 21.732 21.732 28 14 28C6.26801 28 0 21.732 0 14Z",fill:t,"fill-rule":"evenodd"}),k.jsx(_r,{d:"M16 14C16 15.1046 15.1046 16 14 16C12.8954 16 12 15.1046 12 14C12 12.8954 12.8954 12 14 12C15.1046 12 16 12.8954 16 14Z",fill:t}),k.jsx(_r,{d:"M10 14C10 15.1046 9.10457 16 8 16C6.89543 16 6 15.1046 6 14C6 12.8954 6.89543 12 8 12C9.10457 12 10 12.8954 10 14Z",fill:t}),k.jsx(_r,{d:"M22 14C22 15.1046 21.1046 16 20 16C18.8954 16 18 15.1046 18 14C18 12.8954 18.8954 12 20 12C21.1046 12 22 12.8954 22 14Z",fill:t})]})};try{OA.displayName="MeatballsMenu",OA.__docgenInfo={description:"",displayName:"MeatballsMenu",props:{}}}catch{}var PO=function(t,...e){const n=[],{isArray:r}=Array;e.forEach((s,o)=>{if(typeof s=="number")e[o]=[s,s];else if(r(s))if(typeof s[0]=="number")e[o]=[s[0],typeof s[1]=="function"?s[1](s[0]):null];else throw TypeError("First item in array must be a Number")});let i=e.find(r),a;for(let s of t){if(r(a)&&a[1]==null&&(s=s.replace(/^\s+/,"")),i?n.push(s.replace(/\[([^|]*)\|([^\]]*)\]/g,i[0]==1?"$1":"$2")):n.push(s),!e.length)break;i=e.find(r)||i,a=e.shift(),n.push(a===i?i[1]:a)}return n.join("")};const TE=Ur(PO),FO=()=>{const{newMessagesCount:t}=_.useContext(dn);return t?k.jsx(Ym,{accessibilityLabel:t+" "+TE`[nieuw bericht|nieuwe berichten]${[t]} `,testID:"ChatNewMessageIndicatorBadge",value:t,variant:"small"}):null},RO=({children:t,isMaximized:e,onPress:n,style:r,...i})=>e?k.jsx(k.Fragment,{children:t}):k.jsx(h1,{...i,onPress:n,style:r,children:t}),NO=()=>{const{isMaximized:t,isMenuOpen:e,setHeaderHeight:n,setIsMenuOpen:r,toggleVisibility:i}=Ri(),{setHideFromAccessibility:a}=gh(),{color:s}=Nn(),o=BO(),l=Fn(()=>({transform:[{rotate:j(t?"0deg":"-180deg")}]})),c=Fn(()=>({opacity:j(t?1:0)})),u=()=>{i(),ua.dismiss(),r(!1)};return _.useEffect(()=>(a(t),()=>{a(!1)}),[t,a]),k.jsx(pe,{onLayout:A=>n(A.nativeEvent.layout.height),style:o.container,children:k.jsx(RO,{accessibilityHint:"Activeer om de chat te maximaliseren",isMaximized:t,onPress:i,style:o.pressableWhenMinimized,children:k.jsx(hr,{testID:"ChatHeader",children:k.jsxs(ln,{align:"between",valign:"center",children:[k.jsx($t.View,{style:c,children:k.jsx(Si,{accessibilityLabel:`Chat menu ${e?"sluiten":"openen"}.`,icon:k.jsx(OA,{color:s.pressable.secondary.default.icon}),onPress:()=>r(!e),pointerEvents:t?"auto":"none",testID:"ChatHeaderMeatballsMenuButton"})}),k.jsx(pe,{accessible:!0,children:k.jsxs(ln,{gutter:"xs",valign:"center",children:[k.jsx(fl,{text:"Chat"}),k.jsx(FO,{})]})}),k.jsx($t.View,{style:l,children:k.jsx(Si,{accessibilityLabel:`Chat ${t?"minimaliseren":"maximaliseren"}`,icon:k.jsx(Mn,{color:"link",name:"chevron-down",size:"lg",testID:"ChatHeaderToggleVisibilityButtonIcon"}),onPress:u,testID:"ChatHeaderToggleVisibilityButton"})})]})})})})},BO=()=>he.create({container:{zIndex:1},pressableWhenMinimized:{flexGrow:1}}),kA=({firstMessage:t})=>k.jsx(zc,{icon:"chat",testID:"ChatStartingTime",text:`Chat gestart - ${Ws((t==null?void 0:t.timestamp)??Ah().unix()).format("HH:mm")}`});try{kA.displayName="ChatStartTime",kA.__docgenInfo={description:"",displayName:"ChatStartTime",props:{firstMessage:{defaultValue:null,description:"",name:"firstMessage",required:!1,type:{name:"ConversationEntry"}}}}}catch{}const GO="Chatbot Gemeente Amsterdam",LO=(t,e,n)=>{const r=Ws(n).format("HH:mm");return e===Ke.user?r:e===Ke.chatbot?`${GO} - ${r}`:`${t} - ${r}`},MA=({message:{sender:{role:t},senderDisplayName:e,timestamp:n},isLastOfRole:r})=>{const i=On(a=>HO(a,t===Ke.user));return t===Ke.system?null:!!r&&k.jsxs(k.Fragment,{children:[k.jsx(Yc,{height:"xs"}),k.jsx(pe,{style:i.container,children:k.jsx(kn,{color:"secondary",testID:`ChatHistoryGroupName${t}`,variant:"extraSmall",children:LO(e,t,n)})})]})},VO=40,HO=({size:t},e)=>he.create({container:{paddingLeft:e?void 0:VO+t.spacing.sm,alignItems:e?"flex-end":"flex-start"}});try{MA.displayName="ChatAgentInfo",MA.__docgenInfo={description:"",displayName:"ChatAgentInfo",props:{isLast:{defaultValue:null,description:"",name:"isLast",required:!0,type:{name:"boolean"}},isLastOfRole:{defaultValue:null,description:"",name:"isLastOfRole",required:!0,type:{name:"boolean"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntry"}}}}}catch{}const UO=()=>{const{color:t}=Nn();return k.jsxs(Ff,{fill:"none",height:"40",viewBox:"0 0 40 40",width:"40",children:[k.jsx(Xm,{cx:"20",cy:"20",fill:t.chat.avatar.background,r:"19.5",stroke:t.chat.avatar.border}),k.jsx(_r,{d:"M16.3604 30.9196L18.5404 28.7396L16.3604 26.5396L17.8204 25.0996L20.0004 27.2796L22.1804 25.0996L23.6404 26.5396L21.4604 28.7396L23.6404 30.9196L22.1804 32.3596L20.0004 30.1796L17.8204 32.3596L16.3604 30.9196Z",fill:t.logo}),k.jsx(_r,{d:"M16.3604 22.1799L18.5404 19.9999L16.3604 17.8199L17.8204 16.3799L20.0004 18.5599L22.1804 16.3799L23.6404 17.8199L21.4604 19.9999L23.6404 22.1799L22.1804 23.6399L20.0004 21.4599L17.8204 23.6399L16.3604 22.1799Z",fill:t.logo}),k.jsx(_r,{d:"M16.3604 13.4596L18.5404 11.2596L16.3604 9.07965L17.8204 7.63965L20.0004 9.81965L22.1804 7.63965L23.6404 9.07965L21.4604 11.2596L23.6404 13.4596L22.1804 14.8996L20.0004 12.7196L17.8204 14.8996L16.3604 13.4596Z",fill:t.logo})]})},WO=()=>{const{color:t}=Nn();return k.jsxs(Ff,{fill:"none",height:"40",viewBox:"0 0 40 40",width:"40",children:[k.jsx(Xm,{cx:"20",cy:"20",fill:t.chat.avatar.background,r:"19.5",stroke:t.chat.avatar.border}),k.jsx(_r,{"clip-rule":"evenodd",d:"M20 35C13.5 35 9 30.5 9 30.1981C9 24.5731 12.15 21.625 16.5 21.625H24C28.35 21.625 31.5 24.0062 31.5 29.6312C31.5 30.1981 26.5 35 20 35ZM20.25 19.75C23.3397 19.7096 25.8346 17.2147 25.875 14.125C25.875 11.0184 23.3566 8.5 20.25 8.5C17.1434 8.5 14.625 11.0184 14.625 14.125C14.6654 17.2147 17.1603 19.7096 20.25 19.75Z",fill:t.chat.avatar.foreground,"fill-rule":"evenodd"})]})},PA=({children:t,senderRole:e})=>{const n=On(r=>XO(r,e));return k.jsx(pe,{accessible:!0,style:n.bubble,children:t})},XO=({color:t,size:e},n)=>{const r=n===Ke.user,i=12;return he.create({bubble:{flexShrink:1,borderRadius:i,borderBottomRightRadius:r?0:i,borderBottomLeftRadius:r?i:0,backgroundColor:t.chat.message[n].background,paddingHorizontal:e.spacing.md,paddingVertical:e.spacing.sm}})};try{PA.displayName="ChatMessageBubble",PA.__docgenInfo={description:"",displayName:"ChatMessageBubble",props:{senderRole:{defaultValue:null,description:"",name:"senderRole",required:!0,type:{name:"enum",value:[{value:'"Chatbot"'},{value:'"Agent"'},{value:'"System"'},{value:'"USER"'}]}}}}}catch{}const Lr=({message:t,children:e,isText:n=!0})=>{const r=t.sender.role===Ke.user;return k.jsxs(ln,{align:r?"end":"start",gutter:"sm",valign:"end",children:[t.sender.role===Ke.chatbot&&k.jsx(UO,{}),t.sender.role===Ke.employee&&k.jsx(WO,{}),n?k.jsx(PA,{senderRole:t.sender.role,children:e}):e]})};try{Lr.displayName="ChatMessageEntry",Lr.__docgenInfo={description:"",displayName:"ChatMessageEntry",props:{isText:{defaultValue:{value:"true"},description:"",name:"isText",required:!1,type:{name:"boolean"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntry"}}}}}catch{}const FA=({accessibilityLabel:t="Afbeelding, miniatuurweergave.",fileName:e="afbeelding.jpg",imageSource:n,thumbnailSize:r,headerTitle:i,...a})=>{const[s,o]=_.useState(!1),[l,c]=_.useState(),u=Ls(),A=()=>{o(!s)},d=_.useMemo(()=>{if(typeof n!="number")return n&&typeof n=="object"&&"uri"in n?n.uri:void 0},[n]);_.useEffect(()=>{fs.getSize(d??"",(h,g)=>c(h/g),h=>Xc(h))},[d]);const f=On(h=>YO(h,r,u,l)),p=d==null?void 0:d.startsWith("file://");return k.jsxs(pe,{children:[k.jsx(kf,{...a,accessibilityLabel:t,onPress:A,testID:"ThumbnailViewerThumbnailPressable",children:k.jsx(fs,{source:n,style:f.thumbnail,testID:"ThumbnailViewerThumbnailImage"})}),k.jsx(r1,{animationType:"fade",onRequestClose:A,supportedOrientations:["portrait","landscape"],testID:"ThumbnailViewerModal",transparent:!0,visible:s,children:k.jsxs(pe,{style:f.overlay,children:[k.jsx(hr,{children:k.jsxs(ln,{align:"between",children:[k.jsx(Si,{accessibilityLabel:"Terug",icon:k.jsx(Mn,{color:"link",name:"chevron-left",size:"lg",testID:"ThumbnailViewerCloseIcon"}),onPress:A,testID:"ThumbnailViewerCloseButton"}),!!i&&k.jsx(fl,{text:i}),k.jsx(Si,{accessibilityLabel:"Download de afbeelding.",icon:k.jsx(Mn,{color:"link",name:"download",size:"lg",testID:"ThumbnailViewerDownloadIcon"}),onPress:()=>dh({localUri:p?d:void 0,downloadUri:p?void 0:d,fileName:e}),testID:"ThumbnailViewerDownloadButton"})]})}),k.jsx(fs,{accessibilityLabel:"Afbeelding",accessible:!0,resizeMode:"contain",source:n,style:f.fullImage,testID:"ThumbnailViewerFullImage"})]})})]})},YO=({color:t,size:e,z:n},r,i,a)=>he.create({thumbnail:{width:r,height:r},overlay:{flex:1,backgroundColor:t.box.distinct,justifyContent:"center",zIndex:n.overlay,paddingTop:ue.OS==="android"?0:i.top,paddingRight:i.right,paddingBottom:e.spacing.md+i.bottom,paddingLeft:i.left},fullImage:{aspectRatio:a,alignSelf:"center",maxWidth:"100%",maxHeight:"100%",flex:1}});try{FA.displayName="ThumbnailViewer",FA.__docgenInfo={description:"",displayName:"ThumbnailViewer",props:{fileName:{defaultValue:{value:"afbeelding.jpg"},description:"",name:"fileName",required:!1,type:{name:"string"}},headerTitle:{defaultValue:null,description:"",name:"headerTitle",required:!1,type:{name:"string"}},imageSource:{defaultValue:null,description:"",name:"imageSource",required:!0,type:{name:"ImageSourcePropType | undefined"}},thumbnailSize:{defaultValue:null,description:"",name:"thumbnailSize",required:!0,type:{name:"DimensionValue"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial<Record<CustomDimensionKeys, string>>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"tertiary"'},{value:'"transparent"'}]}},inset:{defaultValue:null,description:"The amount of inner spacing.",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetHorizontal:{defaultValue:null,description:"The amount of inner spacing at the left and right.",name:"insetHorizontal",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetVertical:{defaultValue:null,description:"The amount of inner spacing at the top and bottom.",name:"insetVertical",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}}}}}catch{}const zO=220,RA=({image:t,message:{sender:e,senderDisplayName:n}})=>{const r=e.role===Ke.user,i=qO(r);return k.jsx(pe,{style:i.container,children:k.jsx(FA,{accessibilityLabel:`Miniatuurweergave van door ${r?"u":n} gedeelde afbeelding.`,fileName:t.name,imageSource:{uri:t.url},thumbnailSize:zO})})},qO=t=>he.create({container:{overflow:"hidden",alignItems:"center",justifyContent:"center",borderRadius:12,borderBottomRightRadius:t?0:12,borderBottomLeftRadius:t?12:0}});try{RA.displayName="ChatMessageImage",RA.__docgenInfo={description:"",displayName:"ChatMessageImage",props:{image:{defaultValue:null,description:"",name:"image",required:!0,type:{name:"Attachment"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntry"}}}}}catch{}const NA=({message:t})=>{const e=t.attachments[0].mimeType.startsWith("image"),n=t.sender.role===Ke.employee;return k.jsx(k.Fragment,{children:t.attachments.map(r=>e?k.jsx(Lr,{isText:!1,message:t,children:k.jsx(RA,{image:r,message:t})},r.id):k.jsx(Lr,{message:t,children:k.jsxs(ln,{grow:1,gutter:"sm",valign:"center",children:[k.jsx(Mn,{color:n?"link":"inverse",name:"document",size:"lg",testID:""}),n?k.jsx(Tf,{accessibilityLabel:`Bijlage gedeeld door ${t.senderDisplayName}. Dubbeltik om bijlage te downloaden.`,ellipsizeMode:"middle",emphasis:"strong",inverse:t.sender.role===Ke.user,numberOfLines:1,onPress:()=>{dh({downloadUri:r.url,fileName:r.name})},testID:"ChatEntryAttachmentsInlineLink",children:r.name}):k.jsx(kn,{color:"inverse",testID:"ChatEntryAttachmentFileName",textAlign:"center",children:r.name})]})},r.id))})};try{NA.displayName="EntryAttachments",NA.__docgenInfo={description:"",displayName:"EntryAttachments",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntryAttachments"}}}}}catch{}const zt=({isLastOfRole:t})=>k.jsx(Yc,{height:t?"md":"sm"});try{zt.displayName="EntryGutter",zt.__docgenInfo={description:"",displayName:"EntryGutter",props:{isLastOfRole:{defaultValue:null,description:"",name:"isLastOfRole",required:!0,type:{name:"boolean"}}}}}catch{}const hl=({message:{choices:t},isLastOfRole:e})=>{const[n,r]=_.useState(!1),i=_.useCallback(a=>{mI(a).then(()=>r(!0))},[]);return t&&!n?k.jsxs(k.Fragment,{children:[k.jsx(Yc,{height:"sm"}),k.jsx(ln,{align:"end",gutter:"sm",wrap:!0,children:t.map(({optionId:a,title:s,optionValue:o,parentEntryId:l})=>k.jsx(qd,{accessibilityLabel:`Keuzeknop: ${s}`,label:s,onPress:()=>i({optionId:a,title:s,optionValue:o,parentEntryId:l}),testID:`ChatHistoryChoices${s}`,variant:"secondary"},a))}),k.jsx(zt,{isLastOfRole:e})]}):null};try{hl.displayName="EntryChoices",hl.__docgenInfo={description:"",displayName:"EntryChoices",props:{isLastOfRole:{defaultValue:null,description:"",name:"isLastOfRole",required:!0,type:{name:"boolean"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntryQuickReplies"}}}}}catch{}const BA=({message:t,isLastOfRole:e})=>{const n=t.operations.find(a=>a.type===Xd.add&&a.participant.role===Ke.employee),r=t.operations.find(a=>a.type===Xd.remove&&a.participant.role===Ke.employee);if(!n&&!r)return null;const i=Ws(t.timestamp).format("HH:mm");return k.jsxs(k.Fragment,{children:[k.jsx(zc,{icon:"person",testID:`ChatSystemMessage${t.format}`,text:n?`U chat nu met ${n==null?void 0:n.participant.displayName} - ${i}`:`${r==null?void 0:r.participant.displayName} heeft het gesprek verlaten - ${i}`}),k.jsx(zt,{isLastOfRole:e})]})};try{BA.displayName="EntryParticipantChanged",BA.__docgenInfo={description:"",displayName:"EntryParticipantChanged",props:{isLastOfRole:{defaultValue:null,description:"",name:"isLastOfRole",required:!0,type:{name:"boolean"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntryParticipantChanged"}}}}}catch{}const KO=(t,e,n=r=>r)=>{const r=/((?:(?:https?:\/\/)|(?:www.))[^\s]+)/g;return t.split(r).filter(a=>a.length>0).map(a=>r.test(a)?e(a.startsWith("http")?a:`http://${a}`):n(a))},$O=(t,e,n)=>KO(t,r=>k.jsx(Tf,{inverse:n,onPress:()=>e(r),testID:`InlineLink${r}`,children:r})),Os=({children:t,message:e,testID:n,...r})=>{const i=Gm();return k.jsx(kn,{...r,color:e.sender.role===Ke.user?"inverse":void 0,testID:n,children:$O(t,i,e.sender.role===Ke.user)})};try{Os.displayName="MessagePhrase",Os.__docgenInfo={description:"",displayName:"MessagePhrase",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntry"}},testID:{defaultValue:null,description:"Used to locate this view in end-to-end tests.",name:"testID",required:!1,type:{name:"string"}},color:{defaultValue:null,description:"Defines the color of the phrase. Maps with the text color tokens.",name:"color",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"inverse"'},{value:'"warning"'}]}},emphasis:{defaultValue:null,description:"Allows the phrase to convey more emphasis.",name:"emphasis",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"strong"'}]}},flexShrink:{defaultValue:null,description:"Defines how to shrink the phrase in case the parent container is smaller than the phrase.",name:"flexShrink",required:!1,type:{name:"number"}},"logging-label":{defaultValue:null,description:"Label used for logging to Piwik and AppInsights.",name:"logging-label",required:!1,type:{name:"string"}},textAlign:{defaultValue:null,description:"Defines the alignment of the text. Maps with the textAlign style prop options.",name:"textAlign",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"center"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'}]}},underline:{defaultValue:null,description:"Whether the phrase is underlined. Use this for a link only.",name:"underline",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"Which variation of a phrase to display.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"body"'},{value:'"intro"'},{value:'"quote"'},{value:'"extraSmall"'}]}}}}}catch{}const jO=t=>{if(!t)return null;const n=RegExp(/https?:\/\/([^/?]+)/).exec(t);return n!=null&&n[1]?n[1]:t},GA=({message:t})=>{const e=i1(),{title:n,url:r}=t,i=jO(r);return k.jsxs(Lr,{message:t,children:[k.jsx(Tf,{emphasis:"strong",inverse:t.sender.role===Ke.user,onPress:()=>r&&e(r),testID:"ChatMessageRichLinkUrl",children:n}),!!i&&k.jsx(Os,{message:t,testID:"ChatRichLinkTitle",children:i})]})};try{GA.displayName="EntryRichLink",GA.__docgenInfo={description:"",displayName:"EntryRichLink",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntryRichLink"}}}}}catch{}const QO=10,ZO=8,cg=8,JO=({activeSize:t,inactiveSize:e,index:n,sharedValue:r})=>{const{color:i}=Nn(),a=e4(t,e),s=Fn(()=>{const o=n===Math.floor(r.value);return{backgroundColor:o?i.chat.loading.active:i.chat.loading.inactive,height:j(o?t:e),width:j(o?t:e)}},[n,r]);return k.jsx(pe,{style:a.loadingDot,children:k.jsx($t.View,{style:[a.loadingDotInner,s]})})},ks=({dotActiveSize:t=QO,dotInactiveSize:e=ZO})=>{const n=ct(0);return _.useEffect(()=>{n.value=Jf(j(4,{duration:1e3,easing:Je.bezier(.5,.5,.5,1)}),-1)},[n]),k.jsx(ln,{align:"center",gutter:"xs",valign:"center",children:Array.from({length:3}).map((r,i)=>k.jsx(JO,{activeSize:t,inactiveSize:e,index:i,sharedValue:n},i))})},e4=(t,e)=>he.create({loadingDot:{justifyContent:"center",alignItems:"center",marginHorizontal:e*3/4-t/2,borderRadius:cg,height:t,width:t},loadingDotInner:{borderRadius:cg}});try{ks.displayName="LoadingDots",ks.__docgenInfo={description:"",displayName:"LoadingDots",props:{dotActiveSize:{defaultValue:{value:"10"},description:"",name:"dotActiveSize",required:!1,type:{name:"number"}},dotInactiveSize:{defaultValue:{value:"8"},description:"",name:"dotInactiveSize",required:!1,type:{name:"number"}}}}}catch{}const t4=t=>t<=60?"minder dan een minuut":`${Math.ceil(t/60)} minuten`,LA=({message:t,isLastOfRole:e})=>{const{isEWTAvailable:n,estimatedWaitTime:r,routingType:i}=t,{isWaitingForAgent:a,messages:s}=_.useContext(dn),l=s.slice(s.indexOf(t)+1).filter(c=>c.format===ge.text).length>0;return i!==km.transfer||!a||l?null:k.jsxs(k.Fragment,{children:[k.jsxs(Dn,{gutter:"sm",halign:"center",children:[k.jsx(ks,{dotActiveSize:15,dotInactiveSize:12}),k.jsx(kn,{emphasis:"strong",testID:"ChatEntryRoutingResultPhrase",children:"Een medewerker neemt het gesprek over."}),!!n&&k.jsxs(kn,{testID:"ChatEntryRoutingResultEstimatedWaitingTimePhrase",children:["Geschatte wachttijd: ",t4(r)]})]}),k.jsx(zt,{isLastOfRole:e})]})};try{LA.displayName="EntryRoutingResult",LA.__docgenInfo={description:"",displayName:"EntryRoutingResult",props:{isLastOfRole:{defaultValue:null,description:"",name:"isLastOfRole",required:!0,type:{name:"boolean"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntryRoutingResult"}}}}}catch{}const VA=({message:t,isLastOfRole:e})=>{const{messages:n,isEnded:r}=_.useContext(dn),a=n.slice(n.indexOf(t)+1).filter(s=>s.format===ge.routingWorkResult).length>0;return t.workType!==Mm.closed||!r||a?null:k.jsxs(k.Fragment,{children:[k.jsx(zc,{icon:"chat",testID:"ChatEntryRoutingWorkResult",text:`Chat gestopt - ${Ws(t.timestamp).format("HH:mm")}`}),k.jsx(zt,{isLastOfRole:e})]})};try{VA.displayName="EntryRoutingWorkResult",VA.__docgenInfo={description:"",displayName:"EntryRoutingWorkResult",props:{isLast:{defaultValue:null,description:"",name:"isLast",required:!0,type:{name:"boolean"}},isLastOfRole:{defaultValue:null,description:"",name:"isLastOfRole",required:!0,type:{name:"boolean"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntryRoutingWorkResult"}}}}}catch{}const HA=({message:t})=>{var e;return k.jsx(Lr,{message:t,children:k.jsx(Os,{message:t,testID:"ChatEntrySelections",children:(e=t.selections)==null?void 0:e.map(n=>n.title).join(", ")})})};try{HA.displayName="EntrySelections",HA.__docgenInfo={description:"",displayName:"EntrySelections",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntrySelections"}}}}}catch{}const vs=({message:t})=>{const e=t.sender.role===Ke.user;return k.jsx(Lr,{message:t,children:k.jsx(Os,{accessibilityLabel:e?`Uw bericht: ${t.text}`:`${t.text} ontvangen van ${t.senderDisplayName}`,message:t,testID:"ChatEntryText",children:t.text})})};try{vs.displayName="EntryText",vs.__docgenInfo={description:"",displayName:"EntryText",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntryText"}}}}}catch{}const UA=({message:t})=>{const{downloadedTranscriptIds:e}=_.useContext(dn);return e.includes(t.entryId)?k.jsx(zc,{icon:"download",testID:"ChatEntryTranscript",text:`Chat gedownload - ${Ws(t.timestamp).format("HH:mm")}`}):null};try{UA.displayName="EntryTranscript",UA.__docgenInfo={description:"",displayName:"EntryTranscript",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntry"}}}}}catch{}const WA=({dotActiveSize:t,dotInactiveSize:e,message:n})=>k.jsx(Lr,{message:n,children:k.jsx(hr,{insetVertical:"xs",children:k.jsx(ks,{dotActiveSize:t,dotInactiveSize:e})})});try{WA.displayName="EntryTypingIndicator",WA.__docgenInfo={description:"",displayName:"EntryTypingIndicator",props:{dotActiveSize:{defaultValue:null,description:"",name:"dotActiveSize",required:!1,type:{name:"number"}},dotInactiveSize:{defaultValue:null,description:"",name:"dotInactiveSize",required:!1,type:{name:"number"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntryTypingStartedIndicator"}}}}}catch{}const n4={[ge.selections]:{Component:HA,agentInfo:!0,LastComponent:zt},[ge.text]:{Component:vs,agentInfo:!0,LastComponent:zt},[ge.attachments]:{Component:NA,agentInfo:!1,LastComponent:zt},[ge.carousel]:{Component:void 0,LastComponent:void 0,agentInfo:void 0},[ge.deliveryAcknowledgement]:{Component:void 0,LastComponent:void 0,agentInfo:void 0},[ge.imageMessage]:{Component:void 0,LastComponent:void 0,agentInfo:void 0},[ge.inputs]:{Component:void 0,LastComponent:void 0,agentInfo:void 0},[ge.listPicker]:{Component:vs,LastComponent:hl,agentInfo:!0},[ge.participantChanged]:{Component:BA,agentInfo:!1},[ge.quickReplies]:{Component:vs,LastComponent:hl,agentInfo:!0},[ge.result]:{Component:void 0,LastComponent:void 0,agentInfo:void 0},[ge.richLink]:{Component:GA,agentInfo:!0,LastComponent:zt},[ge.routingResult]:{Component:LA,agentInfo:!1},[ge.routingWorkResult]:{Component:VA,agentInfo:!1},[ge.typingStartedIndicator]:{Component:WA,agentInfo:!1,LastComponent:zt},[ge.typingStoppedIndicator]:{Component:void 0,LastComponent:void 0,agentInfo:void 0},[ge.unspecified]:{Component:void 0,LastComponent:void 0,agentInfo:void 0},[ge.webview]:{Component:void 0,LastComponent:void 0,agentInfo:void 0},[ge.transcript]:{Component:UA,LastComponent:zt}},XA=({message:t,isLast:e,isLastOfRole:n})=>{const r=n4[t.format];if(!r)return null;const{Component:i,agentInfo:a,LastComponent:s}=r;return!i&&!s&&!a?null:k.jsxs($t.View,{entering:_i,children:[!!i&&k.jsx(i,{isLast:e,isLastOfRole:n,message:t}),!!a&&k.jsx(MA,{isLast:e,isLastOfRole:n,message:t}),!!s&&k.jsx(s,{isLast:e,isLastOfRole:n,message:t})]})};try{XA.displayName="Entry",XA.__docgenInfo={description:"",displayName:"Entry",props:{isLast:{defaultValue:null,description:"",name:"isLast",required:!0,type:{name:"boolean"}},isLastOfRole:{defaultValue:null,description:"",name:"isLastOfRole",required:!0,type:{name:"boolean"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"ConversationEntry"}}}}}catch{}const r4=()=>{const t=_.useRef(null),e=i4(),{messages:n}=_.useContext(dn);return k.jsx(ya,{contentContainerStyle:e.contentContainer,keyboardShouldPersistTaps:"handled",onContentSizeChange:()=>{var r;return(r=t==null?void 0:t.current)==null?void 0:r.scrollToEnd()},onScrollBeginDrag:ua.dismiss,ref:t,style:e.scrollView,testID:"ChatHistoryScrollView",children:k.jsx(hr,{grow:!0,insetHorizontal:"md",children:k.jsxs(Dn,{children:[k.jsx(kA,{firstMessage:n[0]}),k.jsx(Yc,{height:"md"}),n.map((r,i)=>{var s;const a=((s=n[i+1])==null?void 0:s.sender.role)!==r.sender.role;return k.jsx(XA,{isLast:i===n.length-1,isLastOfRole:a,message:r},r.entryId+i)})]})})})},i4=()=>he.create({contentContainer:{flexGrow:1},scrollView:{flex:1}}),a4=()=>{const[t,e]=_.useState(0),[n,r]=_.useState(!1);return _.useEffect(()=>{const i=l=>{e(l.endCoordinates.height)},a=()=>{r(!1)},s=ua.addListener("keyboardDidShow",i),o=ua.addListener("keyboardDidHide",a);return()=>{s.remove(),o.remove()}},[]),{height:t,visible:n}},s4={async getDocumentAsync({type:t="*/*",multiple:e=!1}){if(!Di.isDOMAvailable)return{canceled:!0,assets:null};const n=document.createElement("input");return n.style.display="none",n.setAttribute("type","file"),n.setAttribute("accept",Array.isArray(t)?t.join(","):t),n.setAttribute("id",String(Math.random())),e&&n.setAttribute("multiple","multiple"),document.body.appendChild(n),new Promise((r,i)=>{n.addEventListener("change",async()=>{if(n.files){const s=[];for(let o=0;o<n.files.length;o++)s.push(o4(n.files[o]));try{const o=await Promise.all(s);r({canceled:!1,assets:o,output:n.files})}catch(o){i(o)}}else r({canceled:!0,assets:null});document.body.removeChild(n)}),n.addEventListener("cancel",()=>{r({canceled:!0,assets:null})});const a=new MouseEvent("click");n.dispatchEvent(a)})}};function o4(t){return new Promise((e,n)=>{const r=t.type,i=new FileReader;i.onerror=()=>{n(new Error("Failed to read the selected media because the operation failed."))},i.onload=({target:a})=>{const s=a.result;e({uri:s,mimeType:r,name:t.name,lastModified:t.lastModified,size:t.size,file:t})},i.readAsDataURL(t)})}async function l4({type:t="*/*",copyToCacheDirectory:e=!0,multiple:n=!1}={}){return typeof t=="string"&&(t=[t]),await s4.getDocumentAsync({type:t,copyToCacheDirectory:e,multiple:n})}var or;(function(t){t.All="All",t.Videos="Videos",t.Images="Images"})(or||(or={}));var ug;(function(t){t[t.Passthrough=0]="Passthrough",t[t.LowQuality=1]="LowQuality",t[t.MediumQuality=2]="MediumQuality",t[t.HighestQuality=3]="HighestQuality",t[t.H264_640x480=4]="H264_640x480",t[t.H264_960x540=5]="H264_960x540",t[t.H264_1280x720=6]="H264_1280x720",t[t.H264_1920x1080=7]="H264_1920x1080",t[t.H264_3840x2160=8]="H264_3840x2160",t[t.HEVC_1920x1080=9]="HEVC_1920x1080",t[t.HEVC_3840x2160=10]="HEVC_3840x2160"})(ug||(ug={}));var dg;(function(t){t[t.High=0]="High",t[t.Medium=1]="Medium",t[t.Low=2]="Low",t[t.VGA640x480=3]="VGA640x480",t[t.IFrame1280x720=4]="IFrame1280x720",t[t.IFrame960x540=5]="IFrame960x540"})(dg||(dg={}));var Ag;(function(t){t.FULL_SCREEN="fullScreen",t.PAGE_SHEET="pageSheet",t.FORM_SHEET="formSheet",t.CURRENT_CONTEXT="currentContext",t.OVER_FULL_SCREEN="overFullScreen",t.OVER_CURRENT_CONTEXT="overCurrentContext",t.POPOVER="popover",t.AUTOMATIC="automatic"})(Ag||(Ag={}));var fg;(function(t){t.Automatic="automatic",t.Compatible="compatible",t.Current="current"})(fg||(fg={}));var hg;(function(t){t.back="back",t.front="front"})(hg||(hg={}));const c4={[or.All]:"video/mp4,video/quicktime,video/x-m4v,video/*,image/*",[or.Images]:"image/*",[or.Videos]:"video/mp4,video/quicktime,video/x-m4v,video/*"},pl={async launchImageLibraryAsync({mediaTypes:t=or.Images,allowsMultipleSelection:e=!1,base64:n=!1}){return Di.isDOMAvailable?await pg({mediaTypes:t,allowsMultipleSelection:e,base64:n}):{canceled:!0,assets:null}},async launchCameraAsync({mediaTypes:t=or.Images,allowsMultipleSelection:e=!1,base64:n=!1}){return Di.isDOMAvailable?await pg({mediaTypes:t,allowsMultipleSelection:e,capture:!0,base64:n}):{canceled:!0,assets:null}},async getCameraPermissionsAsync(){return ho()},async requestCameraPermissionsAsync(){return ho()},async getMediaLibraryPermissionsAsync(t){return ho()},async requestMediaLibraryPermissionsAsync(t){return ho()}};function ho(){return{status:bA.GRANTED,expires:"never",granted:!0,canAskAgain:!0}}function pg({mediaTypes:t,capture:e=!1,allowsMultipleSelection:n=!1,base64:r}){const i=c4[t],a=document.createElement("input");return a.style.display="none",a.setAttribute("type","file"),a.setAttribute("accept",i),a.setAttribute("id",String(Math.random())),n&&a.setAttribute("multiple","multiple"),e&&a.setAttribute("capture","camera"),document.body.appendChild(a),new Promise(s=>{a.addEventListener("change",async()=>{if(a.files){const l=n?a.files:[a.files[0]],c=await Promise.all(Array.from(l).map(u=>u4(u,{base64:r})));s({canceled:!1,assets:c})}else s({canceled:!0,assets:null});document.body.removeChild(a)});const o=new MouseEvent("click");a.dispatchEvent(o)})}function u4(t,e){return new Promise((n,r)=>{const i=new FileReader;i.onerror=()=>{r(new Error("Failed to read the selected media because the operation failed."))},i.onload=({target:a})=>{const s=a.result,o=()=>n({uri:s,width:0,height:0});if(typeof s=="string"){const l=new Image;l.src=s,l.onload=()=>{n({uri:s,width:l.naturalWidth??l.width,height:l.naturalHeight??l.height,mimeType:t.type,fileName:t.name,...e.base64&&{base64:s.substr(s.indexOf(",")+1)}})},l.onerror=()=>o()}else o()},i.readAsDataURL(t)})}function d4(t){const{aspect:e,quality:n,videoMaxDuration:r}=t;if(e!=null){const[i,a]=e;if(i<=0||a<=0)throw new No("ERR_INVALID_ARGUMENT",`Invalid aspect ratio values ${i}:${a}. Provide positive numbers.`)}if(n&&(n<0||n>1))throw new No("ERR_INVALID_ARGUMENT",`Invalid 'quality' value ${n}. Provide a value between 0 and 1.`);if(r&&r<0)throw new No("ERR_INVALID_ARGUMENT",`Invalid 'videoMaxDuration' value ${r}. Provide a non-negative number.`);return t}async function A4(t={}){if(!pl.launchCameraAsync)throw new lt("ImagePicker","launchCameraAsync");return await pl.launchCameraAsync(d4(t))}async function f4(t){if(!pl.launchImageLibraryAsync)throw new lt("ImagePicker","launchImageLibraryAsync");return t!=null&&t.allowsEditing&&t.allowsMultipleSelection&&console.warn("[expo-image-picker] `allowsEditing` is not supported when `allowsMultipleSelection` is enabled and will be ignored.Disable either 'allowsEditing' or 'allowsMultipleSelection' in 'launchImageLibraryAsync' to fix this warning."),await pl.launchImageLibraryAsync(t??{})}const h4=async t=>t===ti.notifications?(await uI(["alert","badge","carPlay","sound"])).status:cI(t),OE=t=>{const e=tt(aI(t)),n=Bn(),r=Uc(),i=_.useCallback(()=>new Promise((a,s)=>{h4(t).then(o=>{const l=o===qc.GRANTED;n(ap({permission:t,granted:l})),a(l)}).catch(o=>{n(ap({permission:t,granted:!1})),r(Zn.updatePermission,"usePermission.ts",{error:o,permission:t,request:!0}),s(o)})}),[n,t,r]);return{hasPermission:e,requestPermission:i}},ms=_.forwardRef(({onPress:t,iconName:e,testID:n,label:r},i)=>{const a=On(p4);return k.jsx(zm,{onPress:t,ref:i,testID:n,children:k.jsxs(Dn,{gutter:"xs",halign:"center",children:[k.jsx(pe,{style:a.circle,children:k.jsx(Mn,{color:"link",name:e,size:"xl",testID:n+"Icon"})}),k.jsx(kn,{testID:n+"Phrase",children:r})]})})}),p4=({color:t,size:e})=>he.create({circle:{backgroundColor:t.chat.attachmentButtonCircle.background,borderRadius:50,padding:e.spacing.md}});try{ms.displayName="ChatAttachmentButton",ms.__docgenInfo={description:"",displayName:"ChatAttachmentButton",props:{iconName:{defaultValue:null,description:"",name:"iconName",required:!0,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"document"'},{value:'"accessCode"'},{value:'"alarm"'},{value:'"alarmFilled"'},{value:'"announcement"'},{value:'"api"'},{value:'"asterisk"'},{value:'"attachment"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"backspace"'},{value:'"camera"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"download"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"keyboard"'},{value:'"location"'},{value:'"lock"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"picture"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"() => void"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const zi="ChatAttachment.tsx",YA=({onSelect:t,minHeight:e})=>{const n=Hm(Pf.long),r=On(g4),i=Uc(),{hasPermission:a,requestPermission:s}=OE(ti.camera),o=_.useCallback(()=>{f4({mediaTypes:or.Images,allowsMultipleSelection:!1,allowsEditing:!1,base64:!0}).then(u=>{var A,d;if((A=u.assets)!=null&&A[0].uri){const f=(d=u.assets)==null?void 0:d[0];up(f.base64,f.fileName??"image.png",f.uri).then(t,p=>{Jn.alert("Sorry, opsturen van de afbeelding is mislukt. Probeer het later nog eens."),i(Zn.chatSendImageFromLibrary,zi,{error:p})})}},u=>{Jn.alert("Afbeelding kiezen is mislukt","Sorry, kiezen van een afbeelding is mislukt. Probeer het later nog eens."),i(Zn.chatPickImageFromLibrary,zi,{error:u})})},[t,i]),l=_.useCallback(async()=>{a||await s(),A4({mediaTypes:or.Images,allowsMultipleSelection:!1,allowsEditing:!1,base64:!0}).then(u=>{var A,d;if((A=u.assets)!=null&&A[0].uri){const f=(d=u.assets)==null?void 0:d[0];up(f.base64,f.fileName??"image.png",f.uri).then(t,p=>{Jn.alert("Foto opsturen is niet gelukt","Sorry, opsturen van de afbeelding is mislukt. Probeer het later nog eens."),i(Zn.chatSendImageFromCamera,zi,{error:p})})}},u=>{Jn.alert("Foto maken is niet gelukt","Sorry, maken van een foto is mislukt. Probeer het later nog eens."),i(Zn.chatTakeImageWithCamera,zi,{error:u})})},[a,s,t,i]),c=_.useCallback(()=>{l4({type:"application/pdf"}).then(u=>{var d;const A=(d=u.assets)==null?void 0:d[0];if(A){const{uri:f,name:p}=A;EI(f,p).then(t,h=>{Jn.alert("PDF opsturen is mislukt","Sorry, opsturen van het PDF document is mislukt. Probeer het later nog eens."),i(Zn.chatSendPDF,zi,{error:h})})}},u=>{Jn.alert("PDF kiezen is mislukt","Sorry, kiezen van een PDF document is mislukt. Probeer het later nog eens."),i(Zn.chatPickPDF,zi,{error:u})})},[t,i]);return k.jsx($t.View,{entering:_i,style:[r.attachments,{minHeight:Math.round(e??0)}],children:k.jsx(hr,{children:k.jsxs(ln,{align:"evenly",gutter:"sm",children:[k.jsx(ms,{iconName:"picture",label:"Foto",onPress:o,ref:n,testID:"pdf"}),k.jsx(ms,{iconName:"camera",label:"Camera",onPress:l,testID:"pdf"}),k.jsx(ms,{iconName:"document",label:"PDF",onPress:c,testID:"pdf"})]})})})},g4=({color:t})=>he.create({attachments:{backgroundColor:t.chat.attachment.background}});try{YA.displayName="ChatAttachment",YA.__docgenInfo={description:"",displayName:"ChatAttachment",props:{minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"number"}},onSelect:{defaultValue:null,description:"",name:"onSelect",required:!0,type:{name:"() => void"}}}}}catch{}const v4=()=>{const{close:t}=Ri(),{addDownloadedTranscriptId:e}=_.useContext(dn);return k.jsx(hr,{children:k.jsxs(Dn,{gutter:"smd",children:[k.jsx(qd,{label:"Chat downloaden",onPress:()=>{mE().then(n=>n&&e(n))},testID:"ChatEndedDownloadButton",variant:"secondary"}),k.jsx(qd,{label:"Chat sluiten",onPress:t,testID:"ChatEndedCloseButton"})]})})},zA=({onSubmit:t})=>{const e=Rf(),n=Ls(),r=On(m4),i=On(C4),[a,s]=_.useState(""),o=_.useRef(null),{value:l,disable:c,enable:u}=lE(!1),A=_.useCallback(E=>{s(E),CI()},[]),d=_.useCallback(E=>{t(E),s("")},[t]),{height:f,visible:p}=a4(),{employeeInChat:h,isEnded:g}=_.useContext(dn);return g?k.jsx(v4,{}):k.jsxs(k.Fragment,{children:[k.jsx(a1,{behavior:ue.OS==="ios"?"padding":"height",keyboardVerticalOffset:n.top,children:k.jsx(hr,{children:k.jsxs(ln,{gutter:"sm",children:[!!h&&k.jsx(Si,{accessibilityLabel:l?"Naar toetsenbord":"Naar bijlages",hitSlop:16,icon:k.jsx(Mn,{color:"link",name:l?"keyboard":"attachment",size:"xl",testID:"ChatAttachmentsIcon"}),onPress:()=>{var E;l?((E=o.current)==null||E.focus(),c()):(ua.dismiss(),setTimeout(u,300))},testID:"ChatAttachmentsButton"}),k.jsxs(pe,{style:r.container,testID:"ChatTextInputContainer",children:[k.jsx(Nf,{...i,autoFocus:e,multiline:!0,onChangeText:A,onFocus:c,placeholder:"Typ uw bericht",ref:o,style:r.textInput,testID:"ChatTextInput",value:a}),a.length>0&&k.jsxs(pe,{style:r.buttonWrapper,children:[k.jsx(pe,{style:r.spacePlaceholder}),k.jsx(zm,{onPress:()=>d(a),style:r.button,testID:"ChatTextInputSendButton",children:k.jsx(Mn,{color:"inverse",name:"chevron-right",testID:"ChatTextInputSendButtonIcon"})})]})]})]})})}),!!l&&!p&&k.jsx(YA,{minHeight:f,onSelect:c})]})},gg=40,m4=({border:t,color:e,text:n,size:r})=>he.create({button:{backgroundColor:e.pressable.primary.default.background,alignItems:"center",justifyContent:"center",height:gg,width:gg},buttonWrapper:{height:"100%"},spacePlaceholder:{flexGrow:1},container:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderWidth:t.width.sm,padding:r.spacing.xs,columnGap:r.spacing.sm,flex:1},textInput:{flex:1,color:e.text.default,fontFamily:n.fontFamily.regular,fontSize:n.fontSize.body,padding:0,paddingLeft:r.spacing.md,paddingTop:r.spacing.sm,paddingBottom:r.spacing.sm}}),C4=({color:t})=>({placeholderTextColor:t.text.secondary});try{zA.displayName="ChatInput",zA.__docgenInfo={description:"",displayName:"ChatInput",props:{onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(message: string) => void"}}}}}catch{}const qA=({children:t})=>{const{ready:e}=_.useContext(dn);return k.jsx(k.Fragment,{children:e?t:k.jsx(p1,{grow:!0,children:k.jsxs(Dn,{gutter:"sm",children:[k.jsx(ks,{dotActiveSize:15,dotInactiveSize:12}),k.jsx(Wm,{level:"h4",testID:"ChatWaitToStartTitle",text:"De chat wordt geladen",textAlign:"center"})]})})})};try{qA.displayName="ChatWaitToStart",qA.__docgenInfo={description:"",displayName:"ChatWaitToStart",props:{}}}catch{}const E4=()=>{const{isOpen:t}=Ri();return t?k.jsx(wA,{children:k.jsxs(TA,{children:[k.jsx(NO,{}),k.jsxs(qA,{children:[k.jsx(IA,{children:k.jsx(r4,{})}),k.jsx(zA,{onSubmit:vI})]})]})}):null},x4=["conversationId"],y4={hiddenInMenu:!0,name:"ChatModule",PostRenderComponent:E4,reduxConfigs:[{key:le.chat,persistVersion:0,persistWhitelist:x4,slice:oE}],slug:$e.chat,alwaysEnabled:!0},vg={seenTips:[]},I4=He({name:le.productTour,initialState:vg,reducers:{resetSeenTips:()=>vg,addSeenTip:(t,{payload:e})=>{const{seenTips:n}=t;!n.includes(e)&&n.push(e)}}}),{addSeenTip:w4,resetSeenTips:U6}=I4.actions,b4=t=>{var e;return(e=t[le.productTour])==null?void 0:e.seenTips};var kE=(t=>(t.cityPassSecurityCode="cityPassSecurityCode",t.cityPassShowPassesButton="cityPassShowPassesButton",t.constructionWorkProjectFollowButton="constructionWorkProjectFollowButton",t))(kE||{}),KA=(t=>(t.cityPassSecurityCode="Je hebt de beveiligingscode nodig om betalingen te doen met hoge bedragen",t.cityPassShowPassesButton="Druk op de knop om je Stadspas te laten zien",t.constructionWorkProjectFollowButton="Volg een project en blijf op de hoogte van onze werkzaamheden",t))(KA||{});const S4=ya,ME=_.createContext(null),PE=(t,e="ref")=>{const n=({children:r,...i})=>{const a=_.useRef(null),[s,o]=_.useState(null),[l,c]=_.useState(!1),u=_.useCallback(async()=>{if(!(a!=null&&a.current)||!s)return!1;const[f,p]=await Promise.all([Qh(a.current),Qh(s)]);c(v1(f,p))},[a,s]),A={...i,onLayout:u,onScroll:u,[e]:a,scrollEventThrottle:16},d=_.useMemo(()=>({isElementVisible:l,setElementRef:o}),[l,o]);return _.useEffect(()=>{u()},[u]),k.jsx(t,{...A,children:k.jsx(ME.Provider,{value:d,children:r})})};return _.forwardRef((r,i)=>k.jsx(n,{...r,childRef:i}))},mg=PE(S4,"innerRef"),Cg=PE(ya);try{mg.displayName="KeyboardAwareTrackScrollView",mg.__docgenInfo={description:"",displayName:"KeyboardAwareTrackScrollView",props:{grow:{defaultValue:null,description:"",name:"grow",required:!1,type:{name:"boolean"}},withBottomInset:{defaultValue:null,description:"",name:"withBottomInset",required:!1,type:{name:"boolean"}},childRef:{defaultValue:null,description:"",name:"childRef",required:!1,type:{name:"ForwardedRef<ScrollViewRef>"}}}}}catch{}try{Cg.displayName="TrackScrollView",Cg.__docgenInfo={description:"",displayName:"TrackScrollView",props:{grow:{defaultValue:null,description:"",name:"grow",required:!1,type:{name:"boolean"}},withBottomInset:{defaultValue:null,description:"",name:"withBottomInset",required:!1,type:{name:"boolean"}},childRef:{defaultValue:null,description:"",name:"childRef",required:!1,type:{name:"ForwardedRef<ScrollViewRef>"}}}}}catch{}const $A=({children:t,extraSpace:e,tipSlug:n,placement:r,testID:i})=>{const a=Bn(),o=tt(b4).includes(n),l=Rf(),c=_.useContext(ME),u=c===null,{setElementRef:A,isElementVisible:d}=c??{},f=_.useRef(null),{layout:p,measureTarget:h}=m1(f),g=_.useCallback(()=>{(u||d)&&!o&&a(w4(n))},[a,u,o,d,n]);return C1(g),k.jsxs(pe,{testID:"ProductTourTipWrapper",children:[!o&&!l&&!!p&&k.jsx(E1,{accessibilityLabel:KA[n],extraSpace:e,fadeIn:!0,onPress:g,placement:r,productTourTipTargetLayout:p,ref:A,startFadeIn:d??u,testID:i,text:KA[n]}),k.jsx(pe,{collapsable:!1,onLayout:h,ref:f,children:t})]})};try{$A.displayName="ProductTourTipWrapper",$A.__docgenInfo={description:"",displayName:"ProductTourTipWrapper",props:{extraSpace:{defaultValue:null,description:"",name:"extraSpace",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"smd"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},placement:{defaultValue:null,description:"",name:"placement",required:!0,type:{name:"enum",value:[{value:'"above"'},{value:'"after"'},{value:'"before"'},{value:'"below"'}]}},tipSlug:{defaultValue:null,description:"",name:"tipSlug",required:!0,type:{name:"enum",value:[{value:'"cityPassSecurityCode"'},{value:'"cityPassShowPassesButton"'},{value:'"constructionWorkProjectFollowButton"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const _4=He({name:le.secureStorage,initialState:{},reducers:{setSecureItemUpdatedTimestamp:(t,{payload:e})=>{Object.assign(t,{[e]:Date.now()})},deleteSecureItemUpdatedTimestamp:(t,{payload:e})=>{t[e]&&delete t[e]}}});_4.actions;const D4=t=>e=>e[le.secureStorage][t],T4={setItem:()=>{}};var FE=(t=>(t.accessCode="accessCode",t.cityPassAccessToken="cityPassAccessToken",t.cityPassRefreshToken="cityPassRefreshToken",t.cityPasses="cityPasses",t))(FE||{});const O4=t=>new Promise((e,n)=>{T4.getItem(t).then(r=>e(r)).catch(n)}),k4=t=>{const[e,n]=_.useState(!0),[r,i]=_.useState(null),a=tt(D4(t));return _.useEffect(()=>{O4(t).then(s=>{i(s),n(!1)}).catch(()=>{i(null),n(!1)})},[t,a]),{item:r,isLoading:e}},M4=t=>t.map(e=>({dateEndFormatted:e.d,firstname:e.f,infix:e.i,lastname:e.l,passNumberComplete:e.p})),RE=()=>{const{item:t}=k4(FE.cityPasses);return _.useMemo(()=>t?M4(JSON.parse(t)):[],[t])},P4={isCityPassesVisible:!1,isCityPassOwnerRegistered:!1,startIndex:0},NE=He({name:le.cityPass,initialState:P4,reducers:{hideCityPasses:t=>{t.isCityPassesVisible=!1},setIsCityPassOwnerRegistered:(t,{payload:e})=>{t.isCityPassOwnerRegistered=e},showCityPasses:(t,{payload:e})=>{t.isCityPassesVisible=!0,t.startIndex=e??0}}}),{hideCityPasses:F4,setIsCityPassOwnerRegistered:W6,showCityPasses:R4}=NE.actions,N4=t=>t[le.cityPass].isCityPassesVisible,B4=t=>t[le.cityPass].startIndex,G4=()=>{const t=Bn(),e=RE();return e!=null&&e.length?k.jsx($A,{extraSpace:"md",placement:y1.below,testID:"HeaderShowCityPassesTooltip",tipSlug:kE.cityPassShowPassesButton,children:k.jsx(Si,{accessibilityLabel:"Toon Stadspas",icon:k.jsx(Mn,{color:"link",name:"city-pass-pass",size:"lg",testID:"HeaderCityPassIcon"}),onPress:()=>t(R4()),testID:"HeaderCityPassButton"})}):null};var ai;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.PORTRAIT_UP=1]="PORTRAIT_UP",t[t.PORTRAIT_DOWN=2]="PORTRAIT_DOWN",t[t.LANDSCAPE_LEFT=3]="LANDSCAPE_LEFT",t[t.LANDSCAPE_RIGHT=4]="LANDSCAPE_RIGHT"})(ai||(ai={}));var vt;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.ALL=1]="ALL",t[t.PORTRAIT=2]="PORTRAIT",t[t.PORTRAIT_UP=3]="PORTRAIT_UP",t[t.PORTRAIT_DOWN=4]="PORTRAIT_DOWN",t[t.LANDSCAPE=5]="LANDSCAPE",t[t.LANDSCAPE_LEFT=6]="LANDSCAPE_LEFT",t[t.LANDSCAPE_RIGHT=7]="LANDSCAPE_RIGHT",t[t.OTHER=8]="OTHER",t[t.UNKNOWN=9]="UNKNOWN"})(vt||(vt={}));var Eg;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.COMPACT=1]="COMPACT",t[t.REGULAR=2]="REGULAR"})(Eg||(Eg={}));var mt;(function(t){t.PORTRAIT_PRIMARY="portrait-primary",t.PORTRAIT_SECONDARY="portrait-secondary",t.PORTRAIT="portrait",t.LANDSCAPE_PRIMARY="landscape-primary",t.LANDSCAPE_SECONDARY="landscape-secondary",t.LANDSCAPE="landscape",t.ANY="any",t.NATURAL="natural",t.UNKNOWN="unknown"})(mt||(mt={}));var ea;(function(t){t.PORTRAIT_PRIMARY="portrait-primary",t.PORTRAIT_SECONDARY="portrait-secondary",t.LANDSCAPE_PRIMARY="landscape-primary",t.LANDSCAPE_SECONDARY="landscape-secondary"})(ea||(ea={}));const xg={[vt.DEFAULT]:mt.NATURAL,[vt.ALL]:mt.ANY,[vt.PORTRAIT]:mt.PORTRAIT,[vt.PORTRAIT_UP]:mt.PORTRAIT_PRIMARY,[vt.PORTRAIT_DOWN]:mt.PORTRAIT_SECONDARY,[vt.LANDSCAPE]:mt.LANDSCAPE,[vt.LANDSCAPE_LEFT]:mt.LANDSCAPE_PRIMARY,[vt.LANDSCAPE_RIGHT]:mt.LANDSCAPE_SECONDARY},L4={[ea.PORTRAIT_PRIMARY]:ai.PORTRAIT_UP,[ea.PORTRAIT_SECONDARY]:ai.PORTRAIT_DOWN,[ea.LANDSCAPE_PRIMARY]:ai.LANDSCAPE_LEFT,[ea.LANDSCAPE_SECONDARY]:ai.LANDSCAPE_RIGHT},Me=Di.canUseViewport?window.screen:{},Bu=Di.canUseViewport&&(Me.orientation||Me.msOrientation)||null;async function yg(){const[t,e]=await Promise.all([X4(),W4()]);Yd.emit("expoDidUpdateDimensions",{orientationLock:t,orientationInfo:{orientation:e}})}Di.canUseEventListeners&&(Bu&&Bu.addEventListener?Bu.addEventListener("change",yg):window.addEventListener("orientationchange",yg));function V4(t){switch(t){case mt.UNKNOWN:throw new Error("expo-screen-orientation: WebOrientationLock.UNKNOWN is not a valid lock to be converted.");case mt.ANY:return["portrait","landscape"];case mt.NATURAL:return"default";default:return t}}async function Ig(t){if(t===mt.UNKNOWN)throw new Error("expo-screen-orientation: WebOrientationLock.UNKNOWN is not a valid lock that can be applied to the device.");if(Me.orientation&&Me.orientation.lock)await Me.orientation.lock(t);else if(Me.lockOrientation||Me.mozLockOrientation||Me.msLockOrientation){const e=V4(t);if(!(Me.lockOrientation||Me.mozLockOrientation||Me.msLockOrientation).call(Me,e))throw new Error(`Applying orientation lock: ${JSON.stringify(t)} to device was denied`)}else throw new Error("expo-screen-orientation: The browser doesn't support locking screen orientation.")}let wg=mt.UNKNOWN;const fr={async supportsOrientationLockAsync(t){return t in xg},async getPlatformOrientationLockAsync(){return wg},async getOrientationAsync(){const t=Me.msOrientation||(Me.orientation||Me.mozOrientation||{}).type;return t?L4[t]:ai.UNKNOWN},async lockAsync(t){const e=xg[t];if(!e)throw new TypeError(`Invalid Orientation Lock: ${t}`);await Ig(e)},async lockPlatformAsync(t){await Ig(t),wg=t},async unlockAsync(){if(Me.orientation&&Me.orientation.unlock)Me.orientation.unlock();else if(Me.unlockOrientation||Me.mozUnlockOrientation||Me.msUnlockOrientation){if(!(Me.unlockOrientation||Me.mozUnlockOrientation||Me.msUnlockOrientation).call(Me))throw new Error("Unlocking screen orientation on device was denied")}else throw new Error("expo-screen-orientation: The browser doesn't support unlocking screen orientation.")}};new uE(fr);let BE=vt.UNKNOWN;async function H4(t){if(!fr.lockAsync)throw new lt("ScreenOrientation","lockAsync");if(!Object.values(vt).includes(t))throw new TypeError(`Invalid Orientation Lock: ${t}`);t!==vt.OTHER&&(await fr.lockAsync(t),BE=t)}async function U4(){if(!fr.lockAsync)throw new lt("ScreenOrientation","lockAsync");await fr.lockAsync(vt.DEFAULT)}async function W4(){if(!fr.getOrientationAsync)throw new lt("ScreenOrientation","getOrientationAsync");return await fr.getOrientationAsync()}async function X4(){return fr.getOrientationLockAsync?await fr.getOrientationLockAsync():BE}const Y4=He({name:le.overlay,initialState:{isOpen:!1},reducers:{closeOverlay:t=>{t.isOpen=!1},openOverlay:t=>{t.isOpen=!0},toggleOverlay:t=>{t.isOpen=!t.isOpen}}}),{closeOverlay:z4,openOverlay:q4,toggleOverlay:K4}=Y4.actions,$4=()=>{const t=Bn();return{isOpen:tt(n=>n[le.overlay].isOpen),..._.useMemo(()=>({close:()=>t(z4()),open:()=>t(q4()),toggle:()=>t(K4())}),[t])}},jA=({backgroundColor:t,children:e,closeButtonContainerWidth:n,onClose:r,...i})=>{const a=Bn(),{close:s,isOpen:o,open:l}=$4(),{setHideFromAccessibility:c}=gh(),u=On(A=>j4(A,n));return _.useEffect(()=>(l(),()=>{s()}),[s,a,l]),_.useEffect(()=>(c(o),()=>{c(!1)}),[o,c]),k.jsx($t.View,{...i,entering:_i,exiting:Is,style:[i.style,he.absoluteFill,u.container,{backgroundColor:t}],children:k.jsxs(Dn,{gutter:"md",children:[k.jsx(kf,{onPress:r,testID:"OverlayCloseButton",variant:"transparent",children:k.jsx(ln,{align:"center",children:k.jsx(pe,{style:u.closeButtonInnerContainer,children:k.jsxs(ln,{gutter:"md",valign:"center",children:[k.jsx(Mn,{color:"inverse",name:"close",size:"lg",testID:"OverlayCloseButtonIcon"}),k.jsx(kn,{color:"inverse",testID:"OverlayCloseButtonPhrase",children:"Sluiten"})]})})})}),e]})})},j4=({z:t},e)=>he.create({container:{flex:1,justifyContent:"center",alignItems:"center",zIndex:t.overlay},closeButtonInnerContainer:{width:e}});try{jA.displayName="Overlay",jA.__docgenInfo={description:"",displayName:"Overlay",props:{backgroundColor:{defaultValue:null,description:"",name:"backgroundColor",required:!0,type:{name:"string"}},closeButtonContainerWidth:{defaultValue:null,description:"Used to outline close-button on top of another component",name:"closeButtonContainerWidth",required:!1,type:{name:"number"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"() => void"}}}}}catch{}const Q4=`The package 'react-native-block-screenshot' doesn't seem to be linked. Make sure: `+ue.select({ios:`- You have run 'pod install' `,default:""})+`- You rebuilt the app after installing the package - You are not using Expo Go -`,Z4=global.__turboModuleProxy!=null,wg=Z4?require("./NativeBlockScreenshot").default:Bm.BlockScreenshot,Cs=wg||new Proxy({},{get(){throw new Error(Q4)}}),J4=t=>t?fs.resolveAssetSource(t)??t:null,e8=({backgroundColor:t,scale:e,source:n})=>Cs.enableBlockScreenshot({backgroundColor:Tf(t),scale:e,source:J4(n)}),t8=()=>Cs.disableBlockScreenshot();let Kr;const n8=t=>{let e=()=>{};return ue.OS==="ios"&&(Kr||(Cs.addEventListener(),Kr=new _f(Cs)),e=Kr.addListener("onScreenshot",t).remove),()=>{e(),(Kr==null?void 0:Kr.listenerCount("onScreenshot"))===0&&(Cs.removeEventListener(),Kr=null)}},r8=({enabled:t=!0,onScreenshot:e})=>{const{color:n}=Nn();_.useEffect(()=>{t&&e8({backgroundColor:n.appSwitcher.background,scale:.33,source:require("@/assets/images/logoWhite.png")});const r=e&&t?n8(e):()=>null;return()=>{r(),t8()}},[n,t,e])};var GE={};(function(t){var e=K&&K.__awaiter||function(l,c,u,A){function d(f){return f instanceof u?f:new u(function(p){p(f)})}return new(u||(u=Promise))(function(f,p){function h(m){try{E(A.next(m))}catch(v){p(v)}}function g(m){try{E(A.throw(m))}catch(v){p(v)}}function E(m){m.done?f(m.value):d(m.value).then(h,g)}E((A=A.apply(l,c||[])).next())})},n=K&&K.__generator||function(l,c){var u={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},A,d,f,p;return p={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function h(E){return function(m){return g([E,m])}}function g(E){if(A)throw new TypeError("Generator is already executing.");for(;p&&(p=0,E[0]&&(u=0)),u;)try{if(A=1,d&&(f=E[0]&2?d.return:E[0]?d.throw||((f=d.return)&&f.call(d),0):d.next)&&!(f=f.call(d,E[1])).done)return f;switch(d=0,f&&(E=[E[0]&2,f.value]),E[0]){case 0:case 1:f=E;break;case 4:return u.label++,{value:E[1],done:!1};case 5:u.label++,d=E[1],E=[0];continue;case 7:E=u.ops.pop(),u.trys.pop();continue;default:if(f=u.trys,!(f=f.length>0&&f[f.length-1])&&(E[0]===6||E[0]===2)){u=0;continue}if(E[0]===3&&(!f||E[1]>f[0]&&E[1]<f[3])){u.label=E[1];break}if(E[0]===6&&u.label<f[1]){u.label=f[1],f=E;break}if(f&&u.label<f[2]){u.label=f[2],u.ops.push(E);break}f[2]&&u.ops.pop(),u.trys.pop();continue}E=c.call(l,u)}catch(m){E=[6,m],d=0}finally{A=f=0}if(E[0]&5)throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSystemBrightnessLevel=t.getBrightnessLevel=t.setBrightnessLevel=void 0;var r=Uc,i=r.NativeModules.RNDeviceBrightness,a=function(l){return e(void 0,void 0,void 0,function(){return n(this,function(c){switch(c.label){case 0:if((l<0||l>1)&&!(r.Platform.OS==="android"&&l===-1))throw Error("⚠️ BrightnessLevel value must betweens 0 to 1 ⚠️");return[4,i.setBrightnessLevel(l)];case 1:return c.sent(),[2]}})})};t.setBrightnessLevel=a;var s=function(){return e(void 0,void 0,void 0,function(){return n(this,function(l){return[2,i.getBrightnessLevel()]})})};t.getBrightnessLevel=s;var o=function(){if(r.Platform.OS!=="android")throw Error("⚠️ Android only supported ⚠️");return i.getSystemBrightnessLevel()};t.getSystemBrightnessLevel=o,t.default={setBrightnessLevel:t.setBrightnessLevel,getBrightnessLevel:t.getBrightnessLevel,getSystemBrightnessLevel:t.getSystemBrightnessLevel}})(GE);const Gu=Ur(GE),i8=({enabled:t=!0}={})=>_.useEffect(()=>{if(t){const e=Gu.getBrightnessLevel();return e.then(()=>{Gu.setBrightnessLevel(1)}),()=>{e.then(n=>{Gu.setBrightnessLevel(n)})}}else return()=>null},[t]);var LE={},VE={exports:{}};(function(t){function e(n){return n&&n.__esModule?n:{default:n}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(VE);var An=VE.exports,Ra={};const V={UNDETERMINED:0,FAILED:1,BEGAN:2,CANCELLED:3,ACTIVE:4,END:5},nr={UNDETERMINED:0,TOUCHES_DOWN:1,TOUCHES_MOVE:2,TOUCHES_UP:3,TOUCHES_CANCELLED:4};var a8={NODE_ENV:'"production"'};function s8(t){return Array.isArray(t)?t:[t]}function o8(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function gh(){return o8(global,"process")&&!!a8.JEST_WORKER_ID}function Ws(t){return`[react-native-gesture-handler] ${t}`}function l8(){var t;return!!((t=global)!==null&&t!==void 0&&t.nativeFabricUIManager)}function c8(){const t=global;return(!t.nativeCallSyncHook||!!t.__REMOTEDEV__)&&!t.RN$Bridgeless}function HE(t,e){if(t===e)return!0;if(typeof t!="object"||typeof e!="object"||t===null||e===null)return!1;const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(const i of n)if(!r.includes(i)||!HE(t[i],e[i]))return!1;return!0}const bg=2**31-1,Go={},vh=new Map,UE=new Map,WE=new Map;function XE(t,e,n){vh.set(t,e),gh()&&n&&WE.set(n,t)}function u8(t,e){UE.set(t,e)}function d8(t,e){vh.delete(t),gh()&&e&&WE.delete(e)}function A8(t){return vh.get(t)}function f8(t){return UE.get(t)}function h8(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Bt{static getHandler(e){if(e in this.gestures)return this.gestures[e];throw new Error(`No handler for tag ${e}`)}static createGestureHandler(e,n){if(e in this.gestures)throw new Error(`Handler with tag ${e} already exists. Please ensure that no Gesture instance is used across multiple GestureDetectors.`);this.gestures[e]=n,this.gestures[e].setTag(e)}static dropGestureHandler(e){e in this.gestures&&(this.gestures[e].onDestroy(),delete this.gestures[e])}static getNodes(){return{...this.gestures}}}h8(Bt,"gestures",{});const YE={create(t){return{begin:()=>{Bt.getHandler(t).begin()},activate:()=>{Bt.getHandler(t).activate(!0)},fail:()=>{Bt.getHandler(t).fail()},end:()=>{Bt.getHandler(t).end()}}}};let Lo=null,Vo=null;const ho=new Map,Na=[];function Sg(t){return t.oldState!=null}function p8(t){return t.eventType!=null}function pl(t){var e,n,r,i,a,s,o,l;const c=A8(t.handlerTag);if(c)if(Sg(t)){if(t.oldState===V.UNDETERMINED&&t.state===V.BEGAN){var u,A;(u=(A=c.handlers).onBegin)===null||u===void 0||u.call(A,t)}else if((t.oldState===V.BEGAN||t.oldState===V.UNDETERMINED)&&t.state===V.ACTIVE){var d,f;(d=(f=c.handlers).onStart)===null||d===void 0||d.call(f,t),Na[c.handlers.handlerTag]=t}else if(t.oldState!==t.state&&t.state===V.END){var p,h;if(t.oldState===V.ACTIVE){var g,E;(g=(E=c.handlers).onEnd)===null||g===void 0||g.call(E,t,!0)}(p=(h=c.handlers).onFinalize)===null||p===void 0||p.call(h,t,!0),Na[c.handlers.handlerTag]=void 0}else if((t.state===V.FAILED||t.state===V.CANCELLED)&&t.oldState!==t.state){var m,v;if(t.oldState===V.ACTIVE){var C,y;(C=(y=c.handlers).onEnd)===null||C===void 0||C.call(y,t,!1)}(m=(v=c.handlers).onFinalize)===null||m===void 0||m.call(v,t,!1),ho.delete(t.handlerTag),Na[c.handlers.handlerTag]=void 0}}else if(p8(t)){ho.has(t.handlerTag)||ho.set(t.handlerTag,YE.create(t.handlerTag));const O=ho.get(t.handlerTag);switch(t.eventType){case nr.TOUCHES_DOWN:(e=c.handlers)===null||e===void 0||(n=e.onTouchesDown)===null||n===void 0||n.call(e,t,O);break;case nr.TOUCHES_MOVE:(r=c.handlers)===null||r===void 0||(i=r.onTouchesMove)===null||i===void 0||i.call(r,t,O);break;case nr.TOUCHES_UP:(a=c.handlers)===null||a===void 0||(s=a.onTouchesUp)===null||s===void 0||s.call(a,t,O);break;case nr.TOUCHES_CANCELLED:(o=c.handlers)===null||o===void 0||(l=o.onTouchesCancelled)===null||l===void 0||l.call(o,t,O);break}}else{var x,w;if((x=(w=c.handlers).onUpdate)===null||x===void 0||x.call(w,t),c.handlers.onChange&&c.handlers.changeEventCalculator){var S,D,I,b;(S=(D=c.handlers).onChange)===null||S===void 0||S.call(D,(I=(b=c.handlers).changeEventCalculator)===null||I===void 0?void 0:I.call(b,t,Na[c.handlers.handlerTag])),Na[c.handlers.handlerTag]=t}}else{const O=f8(t.handlerTag);if(O){const T={nativeEvent:t};Sg(t)?O.onGestureStateChange(T):O.onGestureEvent(T);return}}}function g8(){v8(),Lo=Xd.addListener("onGestureHandlerEvent",pl),Vo=Xd.addListener("onGestureHandlerStateChange",pl)}function v8(){Lo&&(Lo.remove(),Lo=null),Vo&&(Vo.remove(),Vo=null)}let jA=!0,zE=!1;function m8(t=!0){}function C8(t=!0){if(!(ue.OS!=="web"||jA===!t)){if(zE){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.");return}jA=!t}}function Zr(){return zE=!0,jA}const ga=15,E8=.1;let ce;(function(t){t[t.DOWN=0]="DOWN",t[t.ADDITIONAL_POINTER_DOWN=1]="ADDITIONAL_POINTER_DOWN",t[t.UP=2]="UP",t[t.ADDITIONAL_POINTER_UP=3]="ADDITIONAL_POINTER_UP",t[t.MOVE=4]="MOVE",t[t.ENTER=5]="ENTER",t[t.LEAVE=6]="LEAVE",t[t.CANCEL=7]="CANCEL"})(ce||(ce={}));let wr;(function(t){t[t.UNDETERMINED=0]="UNDETERMINED",t[t.DOWN=1]="DOWN",t[t.MOVE=2]="MOVE",t[t.UP=3]="UP",t[t.CANCELLED=4]="CANCELLED"})(wr||(wr={}));let br;(function(t){t[t.UNDETERMINED=0]="UNDETERMINED",t[t.MOUSE=1]="MOUSE",t[t.TOUCHPAD=2]="TOUCHPAD"})(br||(br={}));let xt;(function(t){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"})(xt||(xt={}));function po(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class x8{constructor(e){po(this,"bufferSize",void 0),po(this,"buffer",void 0),po(this,"index",void 0),po(this,"actualSize",void 0),this.bufferSize=e,this.buffer=new Array(e),this.index=0,this.actualSize=0}get size(){return this.actualSize}push(e){this.buffer[this.index]=e,this.index=(this.index+1)%this.bufferSize,this.actualSize=Math.min(this.actualSize+1,this.bufferSize)}get(e){if(this.actualSize===this.bufferSize){let n=(this.index+e)%this.bufferSize;return n<0&&(n+=this.bufferSize),this.buffer[n]}else return this.buffer[e]}clear(){this.buffer=new Array(this.bufferSize),this.index=0,this.actualSize=0}}function lr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let qE=class KE{constructor(e){lr(this,"offset",void 0),lr(this,"length",void 0),lr(this,"elements",void 0),this.offset=0,this.length=e,this.elements=new Array(e)}static fromVOL(e,n,r){const i=new KE(0);return i.offset=n,i.length=r,i.elements=e,i}get(e){return this.elements[this.offset+e]}set(e,n){this.elements[this.offset+e]=n}dot(e){let n=0;for(let r=0;r<this.length;r++)n+=this.get(r)*e.get(r);return n}norm(){return Math.sqrt(this.dot(this))}};class Lu{constructor(e,n){lr(this,"columns",void 0),lr(this,"elements",void 0),this.columns=n,this.elements=new Array(e*n)}get(e,n){return this.elements[e*this.columns+n]}set(e,n,r){this.elements[e*this.columns+n]=r}getRow(e){return qE.fromVOL(this.elements,e*this.columns,this.columns)}}class y8{constructor(e){lr(this,"coefficients",void 0),this.coefficients=new Array(e+1)}}const I8=1e-10;class _g{constructor(e,n,r){lr(this,"x",void 0),lr(this,"y",void 0),lr(this,"w",void 0),this.x=e,this.y=n,this.w=r}solve(e){if(e>this.x.length)return null;const n=new y8(e),r=this.x.length,i=e+1,a=new Lu(i,r);for(let c=0;c<r;c++){a.set(0,c,this.w[c]);for(let u=1;u<i;u++)a.set(u,c,a.get(u-1,c)*this.x[c])}const s=new Lu(i,r),o=new Lu(i,r);for(let c=0;c<i;c+=1){for(let d=0;d<r;d+=1)s.set(c,d,a.get(c,d));for(let d=0;d<c;d+=1){const f=s.getRow(c).dot(s.getRow(d));for(let p=0;p<r;p+=1)s.set(c,p,s.get(c,p)-f*s.get(d,p))}const u=s.getRow(c).norm();if(u<I8)return null;const A=1/u;for(let d=0;d<r;d+=1)s.set(c,d,s.get(c,d)*A);for(let d=0;d<i;d+=1)o.set(c,d,d<c?0:s.getRow(c).dot(a.getRow(d)))}const l=new qE(r);for(let c=0;c<r;c+=1)l.set(c,this.y[c]*this.w[c]);for(let c=i-1;c>=0;c-=1){n.coefficients[c]=s.getRow(c).dot(l);for(let u=i-1;u>c;u-=1)n.coefficients[c]-=o.get(c,u)*n.coefficients[u];n.coefficients[c]/=o.get(c,c)}return n}}function Ba(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class w8{constructor(){Ba(this,"assumePointerMoveStoppedMilliseconds",40),Ba(this,"historySize",20),Ba(this,"horizonMilliseconds",300),Ba(this,"minSampleSize",3),Ba(this,"samples",void 0),this.samples=new x8(this.historySize)}add(e){this.samples.push(e)}getVelocityEstimate(){const e=[],n=[],r=[],i=[];let a=0,s=this.samples.size-1;const o=this.samples.get(s);if(!o)return null;let l=o;for(;a<this.samples.size;){const c=this.samples.get(s),u=o.time-c.time,A=Math.abs(c.time-l.time);if(l=c,u>this.horizonMilliseconds||A>this.assumePointerMoveStoppedMilliseconds)break;e.push(c.x),n.push(c.y),r.push(1),i.push(-u),a++,s--}if(a>=this.minSampleSize){const u=new _g(i,e,r).solve(2);if(u!==null){const d=new _g(i,n,r).solve(2);if(d!==null){const f=u.coefficients[1]*1e3,p=d.coefficients[1]*1e3;return[f,p]}}}return null}getVelocity(){const e=this.getVelocityEstimate();return e!==null?e:[0,0]}reset(){this.samples.clear()}}function qi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Dg=20;class $E{constructor(){qi(this,"velocityTracker",new w8),qi(this,"trackedPointers",new Map),qi(this,"touchEventsIds",new Map),qi(this,"lastMovedPointerId",void 0),qi(this,"cachedAbsoluteAverages",{x:0,y:0}),qi(this,"cachedRelativeAverages",{x:0,y:0}),this.lastMovedPointerId=NaN;for(let e=0;e<Dg;++e)this.touchEventsIds.set(e,NaN)}addToTracker(e){if(this.trackedPointers.has(e.pointerId))return;this.lastMovedPointerId=e.pointerId;const n={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,n),this.mapTouchEventId(e.pointerId),this.cachedAbsoluteAverages=this.getAbsoluteCoordsAverage(),this.cachedRelativeAverages=this.getRelativeCoordsAverage()}removeFromTracker(e){this.trackedPointers.delete(e),this.removeMappedTouchId(e)}track(e){const n=this.trackedPointers.get(e.pointerId);if(!n)return;this.lastMovedPointerId=e.pointerId,this.velocityTracker.add(e);const[r,i]=this.velocityTracker.getVelocity();n.velocityX=r,n.velocityY=i,n.abosoluteCoords={x:e.x,y:e.y},n.relativeCoords={x:e.offsetX,y:e.offsetY},this.trackedPointers.set(e.pointerId,n),this.cachedAbsoluteAverages=this.getAbsoluteCoordsAverage(),this.cachedRelativeAverages=this.getRelativeCoordsAverage()}mapTouchEventId(e){for(const[n,r]of this.touchEventsIds)if(isNaN(r)){this.touchEventsIds.set(n,e);break}}removeMappedTouchId(e){const n=this.getMappedTouchEventId(e);isNaN(n)||this.touchEventsIds.set(n,NaN)}getMappedTouchEventId(e){for(const[n,r]of this.touchEventsIds.entries())if(r===e)return n;return NaN}getVelocity(e){var n,r;return{x:(n=this.trackedPointers.get(e))===null||n===void 0?void 0:n.velocityX,y:(r=this.trackedPointers.get(e))===null||r===void 0?void 0:r.velocityY}}getLastAbsoluteCoords(e){var n;return(n=this.trackedPointers.get(e??this.lastMovedPointerId))===null||n===void 0?void 0:n.abosoluteCoords}getLastRelativeCoords(e){var n;return(n=this.trackedPointers.get(e??this.lastMovedPointerId))===null||n===void 0?void 0:n.relativeCoords}getAbsoluteCoordsAverage(){const e=this.getAbsoluteCoordsSum(),n=e.x/this.trackedPointers.size,r=e.y/this.trackedPointers.size;return{x:isNaN(n)?this.cachedAbsoluteAverages.x:n,y:isNaN(r)?this.cachedAbsoluteAverages.y:r}}getRelativeCoordsAverage(){const e=this.getRelativeCoordsSum(),n=e.x/this.trackedPointers.size,r=e.y/this.trackedPointers.size;return{x:isNaN(n)?this.cachedRelativeAverages.x:n,y:isNaN(r)?this.cachedRelativeAverages.y:r}}getAbsoluteCoordsSum(e){const n={x:0,y:0};return this.trackedPointers.forEach((r,i)=>{i!==e&&(n.x+=r.abosoluteCoords.x,n.y+=r.abosoluteCoords.y)}),n}getRelativeCoordsSum(e){const n={x:0,y:0};return this.trackedPointers.forEach((r,i)=>{i!==e&&(n.x+=r.relativeCoords.x,n.y+=r.relativeCoords.y)}),n}getTrackedPointersCount(){return this.trackedPointers.size}getTrackedPointersID(){const e=[];return this.trackedPointers.forEach((n,r)=>{e.push(r)}),e}getData(){return this.trackedPointers}resetTracker(){this.velocityTracker.reset(),this.trackedPointers.clear(),this.lastMovedPointerId=NaN;for(let e=0;e<Dg;++e)this.touchEventsIds.set(e,NaN)}static shareCommonPointers(e,n){return e.some(r=>n.includes(r))}}function Ji(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class rn{constructor(){Ji(this,"gestureHandlers",[]),Ji(this,"awaitingHandlers",[]),Ji(this,"awaitingHandlersTags",new Set),Ji(this,"handlingChangeSemaphore",0),Ji(this,"activationIndex",0)}scheduleFinishedHandlersCleanup(){this.handlingChangeSemaphore===0&&this.cleanupFinishedHandlers()}cleanHandler(e){e.reset(),e.setActive(!1),e.setAwaiting(!1),e.setActivationIndex(Number.MAX_VALUE)}removeHandlerFromOrchestrator(e){const n=this.gestureHandlers.indexOf(e),r=this.awaitingHandlers.indexOf(e);n>=0&&this.gestureHandlers.splice(n,1),r>=0&&(this.awaitingHandlers.splice(r,1),this.awaitingHandlersTags.delete(e.getTag()))}cleanupFinishedHandlers(){const e=new Set;for(let n=this.gestureHandlers.length-1;n>=0;--n){const r=this.gestureHandlers[n];this.isFinished(r.getState())&&!r.isAwaiting()&&(this.cleanHandler(r),e.add(r))}this.gestureHandlers=this.gestureHandlers.filter(n=>!e.has(n))}hasOtherHandlerToWaitFor(e){const n=r=>!this.isFinished(r.getState())&&this.shouldHandlerWaitForOther(e,r);return this.gestureHandlers.some(n)}shouldBeCancelledByFinishedHandler(e){const n=r=>this.shouldHandlerWaitForOther(e,r)&&r.getState()===V.END;return this.gestureHandlers.some(n)}tryActivate(e){if(this.shouldBeCancelledByFinishedHandler(e)){e.cancel();return}if(this.hasOtherHandlerToWaitFor(e)){this.addAwaitingHandler(e);return}const n=e.getState();if(!(n===V.CANCELLED||n===V.FAILED)){if(this.shouldActivate(e)){this.makeActive(e);return}if(n===V.ACTIVE){e.fail();return}n===V.BEGAN&&e.cancel()}}shouldActivate(e){const n=r=>this.shouldHandlerBeCancelledBy(e,r);return!this.gestureHandlers.some(n)}cleanupAwaitingHandlers(e){const n=r=>!r.isAwaiting()&&this.shouldHandlerWaitForOther(r,e);for(const r of this.awaitingHandlers)n(r)&&(this.cleanHandler(r),this.awaitingHandlersTags.delete(r.getTag()));this.awaitingHandlers=this.awaitingHandlers.filter(r=>this.awaitingHandlersTags.has(r.getTag()))}onHandlerStateChange(e,n,r,i){if(!(!e.isEnabled()&&!i)){if(this.handlingChangeSemaphore+=1,this.isFinished(n)){for(const a of this.awaitingHandlers)if(!(!this.shouldHandlerWaitForOther(a,e)||!this.awaitingHandlersTags.has(a.getTag()))){if(n!==V.END){this.tryActivate(a);continue}a.cancel(),a.getState()===V.END&&a.sendEvent(V.CANCELLED,V.BEGAN),a.setAwaiting(!1)}}n===V.ACTIVE?this.tryActivate(e):r===V.ACTIVE||r===V.END?e.isActive()?e.sendEvent(n,r):r===V.ACTIVE&&(n===V.CANCELLED||n===V.FAILED)&&e.sendEvent(n,V.BEGAN):(r!==V.UNDETERMINED||n!==V.CANCELLED)&&e.sendEvent(n,r),this.handlingChangeSemaphore-=1,this.scheduleFinishedHandlersCleanup(),this.awaitingHandlers.includes(e)||this.cleanupAwaitingHandlers(e)}}makeActive(e){const n=e.getState();e.setActive(!0),e.setShouldResetProgress(!0),e.setActivationIndex(this.activationIndex++);for(let r=this.gestureHandlers.length-1;r>=0;--r)this.shouldHandlerBeCancelledBy(this.gestureHandlers[r],e)&&this.gestureHandlers[r].cancel();for(const r of this.awaitingHandlers)this.shouldHandlerBeCancelledBy(r,e)&&r.setAwaiting(!1);e.sendEvent(V.ACTIVE,V.BEGAN),n!==V.ACTIVE&&(e.sendEvent(V.END,V.ACTIVE),n!==V.END&&e.sendEvent(V.UNDETERMINED,V.END)),e.isAwaiting()&&(e.setAwaiting(!1),this.awaitingHandlers=this.awaitingHandlers.filter(r=>r!==e))}addAwaitingHandler(e){this.awaitingHandlers.includes(e)||(this.awaitingHandlers.push(e),this.awaitingHandlersTags.add(e.getTag()),e.setAwaiting(!0),e.setActivationIndex(this.activationIndex++))}recordHandlerIfNotPresent(e){this.gestureHandlers.includes(e)||(this.gestureHandlers.push(e),e.setActive(!1),e.setAwaiting(!1),e.setActivationIndex(Number.MAX_SAFE_INTEGER))}shouldHandlerWaitForOther(e,n){return e!==n&&(e.shouldWaitForHandlerFailure(n)||n.shouldRequireToWaitForFailure(e))}canRunSimultaneously(e,n){return e===n||e.shouldRecognizeSimultaneously(n)||n.shouldRecognizeSimultaneously(e)}shouldHandlerBeCancelledBy(e,n){if(this.canRunSimultaneously(e,n))return!1;if(e.isAwaiting()||e.getState()===V.ACTIVE)return e.shouldBeCancelledByOther(n);const r=e.getTrackedPointersID(),i=n.getTrackedPointersID();return!$E.shareCommonPointers(r,i)&&e.getDelegate().getView()!==n.getDelegate().getView()?this.checkOverlap(e,n):!0}checkOverlap(e,n){const r=i=>{const a=e.getTracker().getLastAbsoluteCoords(i);return e.getDelegate().isPointerInBounds(a)&&n.getDelegate().isPointerInBounds(a)};return e.getTrackedPointersID().some(r)}isFinished(e){return e===V.END||e===V.FAILED||e===V.CANCELLED}cancelMouseAndPenGestures(e){this.gestureHandlers.forEach(n=>{n.getPointerType()!==xt.MOUSE&&n.getPointerType()!==xt.STYLUS||(n!==e?n.cancel():n.getTracker().resetTracker())})}static getInstance(){return rn.instance||(rn.instance=new rn),rn.instance}}Ji(rn,"instance",void 0);function Ho(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class rr{constructor(){Ho(this,"waitForRelations",new Map),Ho(this,"simultaneousRelations",new Map),Ho(this,"blocksHandlersRelations",new Map)}configureInteractions(e,n){if(this.dropRelationsForHandlerWithTag(e.getTag()),n.waitFor){const r=[];n.waitFor.forEach(i=>{typeof i=="number"?r.push(i):r.push(i.handlerTag)}),this.waitForRelations.set(e.getTag(),r)}if(n.simultaneousHandlers){const r=[];n.simultaneousHandlers.forEach(i=>{typeof i=="number"?r.push(i):r.push(i.handlerTag)}),this.simultaneousRelations.set(e.getTag(),r)}if(n.blocksHandlers){const r=[];n.blocksHandlers.forEach(i=>{typeof i=="number"?r.push(i):r.push(i.handlerTag)}),this.blocksHandlersRelations.set(e.getTag(),r)}}shouldWaitForHandlerFailure(e,n){const r=this.waitForRelations.get(e.getTag());return(r==null?void 0:r.find(i=>i===n.getTag()))!==void 0}shouldRecognizeSimultaneously(e,n){const r=this.simultaneousRelations.get(e.getTag());return(r==null?void 0:r.find(i=>i===n.getTag()))!==void 0}shouldRequireHandlerToWaitForFailure(e,n){const r=this.blocksHandlersRelations.get(e.getTag());return(r==null?void 0:r.find(i=>i===n.getTag()))!==void 0}shouldHandlerBeCancelledBy(e,n){var r;const i=n.constructor.name==="NativeViewGestureHandler",a=n.getState()===V.ACTIVE,s=((r=n.isButton)===null||r===void 0?void 0:r.call(n))===!0;return i&&a&&!s}dropRelationsForHandlerWithTag(e){this.waitForRelations.delete(e),this.simultaneousRelations.delete(e),this.blocksHandlersRelations.delete(e)}reset(){this.waitForRelations.clear(),this.simultaneousRelations.clear(),this.blocksHandlersRelations.clear()}static getInstance(){return this.instance||(this.instance=new rr),this.instance}}Ho(rr,"instance",void 0);const jE=["id","enabled","shouldCancelWhenOutside","hitSlop","cancelsTouchesInView","userSelect","activeCursor","mouseButton","enableContextMenu","touchAction"],b8=["waitFor","simultaneousHandlers","blocksHandlers"],Wr=[...jE,...b8,"onBegan","onFailed","onCancelled","onActivated","onEnded","onGestureEvent","onHandlerStateChange"],S8=[...jE,"needsPointerData","manualActivation"];let bn;(function(t){t[t.LEFT=1]="LEFT",t[t.RIGHT=2]="RIGHT",t[t.MIDDLE=4]="MIDDLE",t[t.BUTTON_4=8]="BUTTON_4",t[t.BUTTON_5=16]="BUTTON_5",t[t.ALL=31]="ALL"})(bn||(bn={}));function it(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let pr=class{constructor(e){it(this,"lastSentState",null),it(this,"currentState",V.UNDETERMINED),it(this,"shouldCancelWhenOutside",!1),it(this,"hasCustomActivationCriteria",!1),it(this,"enabled",!1),it(this,"viewRef",void 0),it(this,"propsRef",void 0),it(this,"handlerTag",void 0),it(this,"config",{enabled:!1}),it(this,"tracker",new $E),it(this,"activationIndex",0),it(this,"awaiting",!1),it(this,"active",!1),it(this,"shouldResetProgress",!1),it(this,"pointerType",xt.MOUSE),it(this,"delegate",void 0),it(this,"sendEvent",(n,r)=>{const{onGestureHandlerEvent:i,onGestureHandlerStateChange:a}=this.propsRef.current,s=this.transformEventData(n,r);this.lastSentState!==n&&(this.lastSentState=n,os(a,s)),this.currentState===V.ACTIVE&&(s.nativeEvent.oldState=void 0,os(i,s))}),this.delegate=e}init(e,n){this.propsRef=n,this.viewRef=e,this.currentState=V.UNDETERMINED,this.delegate.init(e,this)}attachEventManager(e){e.setOnPointerDown(this.onPointerDown.bind(this)),e.setOnPointerAdd(this.onPointerAdd.bind(this)),e.setOnPointerUp(this.onPointerUp.bind(this)),e.setOnPointerRemove(this.onPointerRemove.bind(this)),e.setOnPointerMove(this.onPointerMove.bind(this)),e.setOnPointerEnter(this.onPointerEnter.bind(this)),e.setOnPointerLeave(this.onPointerLeave.bind(this)),e.setOnPointerCancel(this.onPointerCancel.bind(this)),e.setOnPointerOutOfBounds(this.onPointerOutOfBounds.bind(this)),e.setOnPointerMoveOver(this.onPointerMoveOver.bind(this)),e.setOnPointerMoveOut(this.onPointerMoveOut.bind(this)),e.setOnWheel(this.onWheel.bind(this)),e.registerListeners()}onCancel(){}onReset(){}resetProgress(){}reset(){this.tracker.resetTracker(),this.onReset(),this.resetProgress(),this.delegate.reset(),this.currentState=V.UNDETERMINED}moveToState(e,n){if(this.currentState===e)return;const r=this.currentState;this.currentState=e,this.tracker.getTrackedPointersCount()>0&&this.config.needsPointerData&&this.isFinished()&&this.cancelTouches(),rn.getInstance().onHandlerStateChange(this,e,r,n),this.onStateChange(e,r),!this.enabled&&this.isFinished()&&(this.currentState=V.UNDETERMINED)}onStateChange(e,n){}begin(){this.checkHitSlop()&&this.currentState===V.UNDETERMINED&&this.moveToState(V.BEGAN)}fail(e){(this.currentState===V.ACTIVE||this.currentState===V.BEGAN)&&(this.delegate.onFail(),this.moveToState(V.FAILED,e)),this.resetProgress()}cancel(e){(this.currentState===V.ACTIVE||this.currentState===V.UNDETERMINED||this.currentState===V.BEGAN)&&(this.onCancel(),this.delegate.onCancel(),this.moveToState(V.CANCELLED,e))}activate(e=!1){(this.config.manualActivation!==!0||e)&&(this.currentState===V.UNDETERMINED||this.currentState===V.BEGAN)&&(this.delegate.onActivate(),this.moveToState(V.ACTIVE))}end(){(this.currentState===V.BEGAN||this.currentState===V.ACTIVE)&&(this.delegate.onEnd(),this.moveToState(V.END)),this.resetProgress()}isAwaiting(){return this.awaiting}setAwaiting(e){this.awaiting=e}isActive(){return this.active}setActive(e){this.active=e}getShouldResetProgress(){return this.shouldResetProgress}setShouldResetProgress(e){this.shouldResetProgress=e}getActivationIndex(){return this.activationIndex}setActivationIndex(e){this.activationIndex=e}shouldWaitForHandlerFailure(e){return e===this?!1:rr.getInstance().shouldWaitForHandlerFailure(this,e)}shouldRequireToWaitForFailure(e){return e===this?!1:rr.getInstance().shouldRequireHandlerToWaitForFailure(this,e)}shouldRecognizeSimultaneously(e){return e===this?!0:rr.getInstance().shouldRecognizeSimultaneously(this,e)}shouldBeCancelledByOther(e){return e===this?!1:rr.getInstance().shouldHandlerBeCancelledBy(this,e)}onPointerDown(e){rn.getInstance().recordHandlerIfNotPresent(this),this.pointerType=e.pointerType,this.pointerType===xt.TOUCH&&rn.getInstance().cancelMouseAndPenGestures(this)}onPointerAdd(e){this.tryToSendTouchEvent(e)}onPointerUp(e){this.tryToSendTouchEvent(e)}onPointerRemove(e){this.tryToSendTouchEvent(e)}onPointerMove(e){this.tryToSendMoveEvent(!1,e)}onPointerLeave(e){if(this.shouldCancelWhenOutside){switch(this.currentState){case V.ACTIVE:this.cancel();break;case V.BEGAN:this.fail();break}return}this.tryToSendTouchEvent(e)}onPointerEnter(e){this.tryToSendTouchEvent(e)}onPointerCancel(e){this.tryToSendTouchEvent(e),this.cancel(),this.reset()}onPointerOutOfBounds(e){this.tryToSendMoveEvent(!0,e)}onPointerMoveOver(e){}onPointerMoveOut(e){}onWheel(e){}tryToSendMoveEvent(e,n){e&&this.shouldCancelWhenOutside||!this.enabled||(this.active&&this.sendEvent(this.currentState,this.currentState),this.tryToSendTouchEvent(n))}tryToSendTouchEvent(e){this.config.needsPointerData&&this.sendTouchEvent(e)}sendTouchEvent(e){if(!this.enabled)return;const{onGestureHandlerEvent:n}=this.propsRef.current,r=this.transformTouchEvent(e);r&&os(n,r)}transformEventData(e,n){return{nativeEvent:{numberOfPointers:this.tracker.getTrackedPointersCount(),state:e,pointerInside:this.delegate.isPointerInBounds(this.tracker.getAbsoluteCoordsAverage()),...this.transformNativeEvent(),handlerTag:this.handlerTag,target:this.viewRef,oldState:e!==n?n:void 0,pointerType:this.pointerType},timeStamp:Date.now()}}transformTouchEvent(e){const n=this.delegate.measureView(),r=[],i=[],a=this.tracker.getData();if(a.size===0||!a.has(e.pointerId))return;a.forEach((l,c)=>{const u=this.tracker.getMappedTouchEventId(c);r.push({id:u,x:l.abosoluteCoords.x-n.pageX,y:l.abosoluteCoords.y-n.pageY,absoluteX:l.abosoluteCoords.x,absoluteY:l.abosoluteCoords.y})}),e.eventType!==ce.CANCEL?i.push({id:this.tracker.getMappedTouchEventId(e.pointerId),x:e.x-n.pageX,y:e.y-n.pageY,absoluteX:e.x,absoluteY:e.y}):a.forEach((l,c)=>{const u=this.tracker.getMappedTouchEventId(c);i.push({id:u,x:l.abosoluteCoords.x-n.pageX,y:l.abosoluteCoords.y-n.pageY,absoluteX:l.abosoluteCoords.x,absoluteY:l.abosoluteCoords.y})});let s=wr.UNDETERMINED;switch(e.eventType){case ce.DOWN:case ce.ADDITIONAL_POINTER_DOWN:s=wr.DOWN;break;case ce.UP:case ce.ADDITIONAL_POINTER_UP:s=wr.UP;break;case ce.MOVE:s=wr.MOVE;break;case ce.CANCEL:s=wr.CANCELLED;break}let o=r.length;return(e.eventType===ce.UP||e.eventType===ce.ADDITIONAL_POINTER_UP)&&--o,{nativeEvent:{handlerTag:this.handlerTag,state:this.currentState,eventType:s,changedTouches:i,allTouches:r,numberOfTouches:o,pointerType:this.pointerType},timeStamp:Date.now()}}cancelTouches(){const e=this.delegate.measureView(),n=[],r=[],i=this.tracker.getData();if(i.size===0)return;i.forEach((o,l)=>{const c=this.tracker.getMappedTouchEventId(l);n.push({id:c,x:o.abosoluteCoords.x-e.pageX,y:o.abosoluteCoords.y-e.pageY,absoluteX:o.abosoluteCoords.x,absoluteY:o.abosoluteCoords.y}),r.push({id:c,x:o.abosoluteCoords.x-e.pageX,y:o.abosoluteCoords.y-e.pageY,absoluteX:o.abosoluteCoords.x,absoluteY:o.abosoluteCoords.y})});const a={nativeEvent:{handlerTag:this.handlerTag,state:this.currentState,eventType:wr.CANCELLED,changedTouches:r,allTouches:n,numberOfTouches:n.length,pointerType:this.pointerType},timeStamp:Date.now()},{onGestureHandlerEvent:s}=this.propsRef.current;os(s,a)}transformNativeEvent(){const e=this.tracker.getAbsoluteCoordsAverage(),n=this.tracker.getRelativeCoordsAverage();return{x:n.x,y:n.y,absoluteX:e.x,absoluteY:e.y}}updateGestureConfig({enabled:e=!0,...n}){if(this.config={enabled:e,...n},this.enabled=e,this.delegate.onEnabledChange(e),this.config.shouldCancelWhenOutside!==void 0&&this.setShouldCancelWhenOutside(this.config.shouldCancelWhenOutside),this.validateHitSlops(),!this.enabled)switch(this.currentState){case V.ACTIVE:this.fail(!0);break;case V.UNDETERMINED:rn.getInstance().removeHandlerFromOrchestrator(this);break;default:this.cancel(!0);break}}checkCustomActivationCriteria(e){for(const n in this.config)e.indexOf(n)>=0&&(this.hasCustomActivationCriteria=!0)}validateHitSlops(){if(this.config.hitSlop){if(this.config.hitSlop.left!==void 0&&this.config.hitSlop.right!==void 0&&this.config.hitSlop.width!==void 0)throw new Error("HitSlop Error: Cannot define left, right and width at the same time");if(this.config.hitSlop.width!==void 0&&this.config.hitSlop.left===void 0&&this.config.hitSlop.right===void 0)throw new Error("HitSlop Error: When width is defined, either left or right has to be defined");if(this.config.hitSlop.height!==void 0&&this.config.hitSlop.top!==void 0&&this.config.hitSlop.bottom!==void 0)throw new Error("HitSlop Error: Cannot define top, bottom and height at the same time");if(this.config.hitSlop.height!==void 0&&this.config.hitSlop.top===void 0&&this.config.hitSlop.bottom===void 0)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:e,height:n}=this.delegate.measureView();let r=0,i=0,a=e,s=n;this.config.hitSlop.horizontal!==void 0&&(r-=this.config.hitSlop.horizontal,a+=this.config.hitSlop.horizontal),this.config.hitSlop.vertical!==void 0&&(i-=this.config.hitSlop.vertical,s+=this.config.hitSlop.vertical),this.config.hitSlop.left!==void 0&&(r=-this.config.hitSlop.left),this.config.hitSlop.right!==void 0&&(a=e+this.config.hitSlop.right),this.config.hitSlop.top!==void 0&&(i=-this.config.hitSlop.top),this.config.hitSlop.bottom!==void 0&&(s=e+this.config.hitSlop.bottom),this.config.hitSlop.width!==void 0&&(this.config.hitSlop.left!==void 0?a=r+this.config.hitSlop.width:this.config.hitSlop.right!==void 0&&(r=a-this.config.hitSlop.width)),this.config.hitSlop.height!==void 0&&(this.config.hitSlop.top!==void 0?s=i+this.config.hitSlop.height:this.config.hitSlop.bottom!==void 0&&(i=s-this.config.hitSlop.height));const o=this.delegate.measureView(),{x:l,y:c}=this.tracker.getLastAbsoluteCoords(),u=l-o.pageX,A=c-o.pageY;return u>=r&&u<=a&&A>=i&&A<=s}isButtonInConfig(e){return!e||!this.config.mouseButton&&e===bn.LEFT||this.config.mouseButton&&e&this.config.mouseButton}resetConfig(){}onDestroy(){this.delegate.destroy(this.config)}getTag(){return this.handlerTag}setTag(e){this.handlerTag=e}getConfig(){return this.config}getDelegate(){return this.delegate}getTracker(){return this.tracker}getTrackedPointersID(){return this.tracker.getTrackedPointersID()}getState(){return this.currentState}isEnabled(){return this.enabled}isFinished(){return this.currentState===V.END||this.currentState===V.FAILED||this.currentState===V.CANCELLED}setShouldCancelWhenOutside(e){this.shouldCancelWhenOutside=e}getShouldCancelWhenOutside(){return this.shouldCancelWhenOutside}getPointerType(){return this.pointerType}};function os(t,e){if(!t)return;if(typeof t=="function"){t(e);return}if("__getHandler"in t&&typeof t.__getHandler=="function"){const r=t.__getHandler();os(r,e);return}if(!("__nodeConfig"in t))return;const{argMapping:n}=t.__nodeConfig;if(Array.isArray(n))for(const[r,[i,a]]of n.entries()){if(!(i in e.nativeEvent))continue;const s=e.nativeEvent[i];a!=null&&a.setValue?a.setValue(s):t.__nodeConfig.argMapping[r]=[i,s]}}function _e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Tg=1,Og=10,Vu=ga*ga;let _8=class extends pr{constructor(...e){super(...e),_e(this,"customActivationProperties",["activeOffsetXStart","activeOffsetXEnd","failOffsetXStart","failOffsetXEnd","activeOffsetYStart","activeOffsetYEnd","failOffsetYStart","failOffsetYEnd","minVelocityX","minVelocityY","minVelocity"]),_e(this,"velocityX",0),_e(this,"velocityY",0),_e(this,"minDistSq",Vu),_e(this,"activeOffsetXStart",-Number.MAX_SAFE_INTEGER),_e(this,"activeOffsetXEnd",Number.MIN_SAFE_INTEGER),_e(this,"failOffsetXStart",Number.MIN_SAFE_INTEGER),_e(this,"failOffsetXEnd",Number.MAX_SAFE_INTEGER),_e(this,"activeOffsetYStart",Number.MAX_SAFE_INTEGER),_e(this,"activeOffsetYEnd",Number.MIN_SAFE_INTEGER),_e(this,"failOffsetYStart",Number.MIN_SAFE_INTEGER),_e(this,"failOffsetYEnd",Number.MAX_SAFE_INTEGER),_e(this,"minVelocityX",Number.MAX_SAFE_INTEGER),_e(this,"minVelocityY",Number.MAX_SAFE_INTEGER),_e(this,"minVelocitySq",Number.MAX_SAFE_INTEGER),_e(this,"minPointers",Tg),_e(this,"maxPointers",Og),_e(this,"startX",0),_e(this,"startY",0),_e(this,"offsetX",0),_e(this,"offsetY",0),_e(this,"lastX",0),_e(this,"lastY",0),_e(this,"stylusData",void 0),_e(this,"activateAfterLongPress",0),_e(this,"activationTimeout",0),_e(this,"enableTrackpadTwoFingerGesture",!1),_e(this,"endWheelTimeout",0),_e(this,"wheelDevice",br.UNDETERMINED)}init(e,n){super.init(e,n)}updateGestureConfig({enabled:e=!0,...n}){this.resetConfig(),super.updateGestureConfig({enabled:e,...n}),this.checkCustomActivationCriteria(this.customActivationProperties),this.config.minDist!==void 0?this.minDistSq=this.config.minDist*this.config.minDist:this.hasCustomActivationCriteria&&(this.minDistSq=Number.MAX_SAFE_INTEGER),this.config.minPointers!==void 0&&(this.minPointers=this.config.minPointers),this.config.maxPointers!==void 0&&(this.maxPointers=this.config.maxPointers),this.config.minVelocity!==void 0&&(this.minVelocityX=this.config.minVelocity,this.minVelocityY=this.config.minVelocity),this.config.minVelocityX!==void 0&&(this.minVelocityX=this.config.minVelocityX),this.config.minVelocityY!==void 0&&(this.minVelocityY=this.config.minVelocityY),this.config.activateAfterLongPress!==void 0&&(this.activateAfterLongPress=this.config.activateAfterLongPress),this.config.activeOffsetXStart!==void 0&&(this.activeOffsetXStart=this.config.activeOffsetXStart,this.config.activeOffsetXEnd===void 0&&(this.activeOffsetXEnd=Number.MAX_SAFE_INTEGER)),this.config.activeOffsetXEnd!==void 0&&(this.activeOffsetXEnd=this.config.activeOffsetXEnd,this.config.activeOffsetXStart===void 0&&(this.activeOffsetXStart=Number.MIN_SAFE_INTEGER)),this.config.failOffsetXStart!==void 0&&(this.failOffsetXStart=this.config.failOffsetXStart,this.config.failOffsetXEnd===void 0&&(this.failOffsetXEnd=Number.MAX_SAFE_INTEGER)),this.config.failOffsetXEnd!==void 0&&(this.failOffsetXEnd=this.config.failOffsetXEnd,this.config.failOffsetXStart===void 0&&(this.failOffsetXStart=Number.MIN_SAFE_INTEGER)),this.config.activeOffsetYStart!==void 0&&(this.activeOffsetYStart=this.config.activeOffsetYStart,this.config.activeOffsetYEnd===void 0&&(this.activeOffsetYEnd=Number.MAX_SAFE_INTEGER)),this.config.activeOffsetYEnd!==void 0&&(this.activeOffsetYEnd=this.config.activeOffsetYEnd,this.config.activeOffsetYStart===void 0&&(this.activeOffsetYStart=Number.MIN_SAFE_INTEGER)),this.config.failOffsetYStart!==void 0&&(this.failOffsetYStart=this.config.failOffsetYStart,this.config.failOffsetYEnd===void 0&&(this.failOffsetYEnd=Number.MAX_SAFE_INTEGER)),this.config.failOffsetYEnd!==void 0&&(this.failOffsetYEnd=this.config.failOffsetYEnd,this.config.failOffsetYStart===void 0&&(this.failOffsetYStart=Number.MIN_SAFE_INTEGER)),this.config.enableTrackpadTwoFingerGesture!==void 0&&(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=Vu,this.minPointers=Tg,this.maxPointers=Og,this.activateAfterLongPress=0}transformNativeEvent(){const e=this.getTranslationX(),n=this.getTranslationY();return{...super.transformNativeEvent(),translationX:isNaN(e)?0:e,translationY:isNaN(n)?0:n,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)}onPointerDown(e){if(!this.isButtonInConfig(e.button))return;this.tracker.addToTracker(e),this.stylusData=e.stylusData,super.onPointerDown(e);const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y,this.startX=this.lastX,this.startY=this.lastY,this.tryBegin(e),this.checkBegan(),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e),this.tryBegin(e),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY;const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y,this.startX=this.lastX,this.startY=this.lastY,this.tracker.getTrackedPointersCount()>this.maxPointers?this.currentState===V.ACTIVE?this.cancel():this.fail():this.checkBegan()}onPointerUp(e){if(this.stylusData=e.stylusData,super.onPointerUp(e),this.currentState===V.ACTIVE){const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y}this.tracker.removeFromTracker(e.pointerId),this.tracker.getTrackedPointersCount()===0&&this.clearActivationTimeout(),this.currentState===V.ACTIVE?this.end():(this.resetProgress(),this.fail())}onPointerRemove(e){super.onPointerRemove(e),this.tracker.removeFromTracker(e.pointerId),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY;const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y,this.startX=this.lastX,this.startY=this.lastY,this.currentState===V.ACTIVE&&this.tracker.getTrackedPointersCount()<this.minPointers||this.checkBegan()}onPointerMove(e){this.tracker.track(e),this.stylusData=e.stylusData;const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y;const r=this.tracker.getVelocity(e.pointerId);this.velocityX=r.x,this.velocityY=r.y,this.checkBegan(),super.onPointerMove(e)}onPointerOutOfBounds(e){if(this.getShouldCancelWhenOutside())return;this.tracker.track(e),this.stylusData=e.stylusData;const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y;const r=this.tracker.getVelocity(e.pointerId);this.velocityX=r.x,this.velocityY=r.y,this.checkBegan(),this.currentState===V.ACTIVE&&super.onPointerOutOfBounds(e)}scheduleWheelEnd(e){clearTimeout(this.endWheelTimeout),this.endWheelTimeout=setTimeout(()=>{this.currentState===V.ACTIVE&&(this.end(),this.tracker.removeFromTracker(e.pointerId),this.currentState=V.UNDETERMINED),this.wheelDevice=br.UNDETERMINED},30)}onWheel(e){if(this.wheelDevice===br.MOUSE||!this.enableTrackpadTwoFingerGesture)return;if(this.currentState===V.UNDETERMINED){if(this.wheelDevice=e.wheelDeltaY%120!==0?br.TOUCHPAD:br.MOUSE,this.wheelDevice===br.MOUSE){this.scheduleWheelEnd(e);return}this.tracker.addToTracker(e);const i=this.tracker.getAbsoluteCoordsAverage();this.lastX=i.x,this.lastY=i.y,this.startX=this.lastX,this.startY=this.lastY,this.begin(),this.activate()}this.tracker.track(e);const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y;const r=this.tracker.getVelocity(e.pointerId);this.velocityX=r.x,this.velocityY=r.y,this.tryToSendMoveEvent(!1,e),this.scheduleWheelEnd(e)}shouldActivate(){const e=this.getTranslationX();if(this.activeOffsetXStart!==Number.MAX_SAFE_INTEGER&&e<this.activeOffsetXStart||this.activeOffsetXEnd!==Number.MIN_SAFE_INTEGER&&e>this.activeOffsetXEnd)return!0;const n=this.getTranslationY();if(this.activeOffsetYStart!==Number.MAX_SAFE_INTEGER&&n<this.activeOffsetYStart||this.activeOffsetYEnd!==Number.MIN_SAFE_INTEGER&&n>this.activeOffsetYEnd)return!0;const r=e*e+n*n;if(this.minDistSq!==Number.MAX_SAFE_INTEGER&&r>=this.minDistSq)return!0;const i=this.velocityX;if(this.minVelocityX!==Number.MAX_SAFE_INTEGER&&(this.minVelocityX<0&&i<=this.minVelocityX||this.minVelocityX>=0&&this.minVelocityX<=i))return!0;const a=this.velocityY;if(this.minVelocityY!==Number.MAX_SAFE_INTEGER&&(this.minVelocityY<0&&a<=this.minVelocityY||this.minVelocityY>=0&&this.minVelocityY<=a))return!0;const s=i*i+a*a;return this.minVelocitySq!==Number.MAX_SAFE_INTEGER&&s>=this.minVelocitySq}shouldFail(){const e=this.getTranslationX(),n=this.getTranslationY(),r=e*e+n*n;return this.activateAfterLongPress>0&&r>Vu?(this.clearActivationTimeout(),!0):this.failOffsetXStart!==Number.MIN_SAFE_INTEGER&&e<this.failOffsetXStart||this.failOffsetXEnd!==Number.MAX_SAFE_INTEGER&&e>this.failOffsetXEnd||this.failOffsetYStart!==Number.MIN_SAFE_INTEGER&&n<this.failOffsetYStart?!0:this.failOffsetYEnd!==Number.MAX_SAFE_INTEGER&&n>this.failOffsetYEnd}tryBegin(e){if(this.currentState===V.UNDETERMINED&&this.tracker.getTrackedPointersCount()>=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));else{const n=this.tracker.getVelocity(e.pointerId);this.velocityX=n.x,this.velocityY=n.y}}checkBegan(){this.currentState===V.BEGAN&&(this.shouldFail()?this.fail():this.shouldActivate()&&this.activate())}activate(e=!1){this.currentState!==V.ACTIVE&&this.resetProgress(),super.activate(e)}onCancel(){this.clearActivationTimeout()}onReset(){this.clearActivationTimeout()}resetProgress(){this.currentState!==V.ACTIVE&&(this.startX=this.lastX,this.startY=this.lastY)}};function at(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const kg=500,Mg=500,Pg=1,Fg=1;let D8=class extends pr{constructor(...e){super(...e),at(this,"maxDeltaX",Number.MIN_SAFE_INTEGER),at(this,"maxDeltaY",Number.MIN_SAFE_INTEGER),at(this,"maxDistSq",Number.MIN_SAFE_INTEGER),at(this,"maxDurationMs",kg),at(this,"maxDelayMs",Mg),at(this,"numberOfTaps",Pg),at(this,"minNumberOfPointers",Fg),at(this,"currentMaxNumberOfPointers",1),at(this,"startX",0),at(this,"startY",0),at(this,"offsetX",0),at(this,"offsetY",0),at(this,"lastX",0),at(this,"lastY",0),at(this,"waitTimeout",void 0),at(this,"delayTimeout",void 0),at(this,"tapsSoFar",0)}init(e,n){super.init(e,n)}updateGestureConfig({enabled:e=!0,...n}){super.updateGestureConfig({enabled:e,...n}),this.config.numberOfTaps!==void 0&&(this.numberOfTaps=this.config.numberOfTaps),this.config.maxDurationMs!==void 0&&(this.maxDurationMs=this.config.maxDurationMs),this.config.maxDelayMs!==void 0&&(this.maxDelayMs=this.config.maxDelayMs),this.config.maxDeltaX!==void 0&&(this.maxDeltaX=this.config.maxDeltaX),this.config.maxDeltaY!==void 0&&(this.maxDeltaY=this.config.maxDeltaY),this.config.maxDist!==void 0&&(this.maxDistSq=this.config.maxDist*this.config.maxDist),this.config.minPointers!==void 0&&(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=kg,this.maxDelayMs=Mg,this.numberOfTaps=Pg,this.minNumberOfPointers=Fg}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)}onPointerDown(e){this.isButtonInConfig(e.button)&&(this.tracker.addToTracker(e),super.onPointerDown(e),this.trySettingPosition(e),this.startX=e.x,this.startY=e.y,this.lastX=e.x,this.lastY=e.y,this.updateState(e),this.tryToSendTouchEvent(e))}onPointerAdd(e){super.onPointerAdd(e),this.tracker.addToTracker(e),this.trySettingPosition(e),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY;const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y,this.startX=n.x,this.startY=n.y,this.updateState(e)}onPointerUp(e){super.onPointerUp(e);const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y,this.tracker.removeFromTracker(e.pointerId),this.updateState(e)}onPointerRemove(e){super.onPointerRemove(e),this.tracker.removeFromTracker(e.pointerId),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY=this.startY;const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y,this.startX=this.lastX,this.startY=this.lastY,this.updateState(e)}onPointerMove(e){this.trySettingPosition(e),this.tracker.track(e);const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y,this.updateState(e),super.onPointerMove(e)}onPointerOutOfBounds(e){this.trySettingPosition(e),this.tracker.track(e);const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y,this.updateState(e),super.onPointerOutOfBounds(e)}updateState(e){if(this.currentMaxNumberOfPointers<this.tracker.getTrackedPointersCount()&&(this.currentMaxNumberOfPointers=this.tracker.getTrackedPointersCount()),this.shouldFail()){this.fail();return}switch(this.currentState){case V.UNDETERMINED:e.eventType===ce.DOWN&&this.begin(),this.startTap();break;case V.BEGAN:e.eventType===ce.UP&&this.endTap(),e.eventType===ce.DOWN&&this.startTap();break}}trySettingPosition(e){this.currentState===V.UNDETERMINED&&(this.offsetX=0,this.offsetY=0,this.startX=e.x,this.startY=e.y)}shouldFail(){const e=this.lastX-this.startX+this.offsetX;if(this.maxDeltaX!==Number.MIN_SAFE_INTEGER&&Math.abs(e)>this.maxDeltaX)return!0;const n=this.lastY-this.startY+this.offsetY;if(this.maxDeltaY!==Number.MIN_SAFE_INTEGER&&Math.abs(n)>this.maxDeltaY)return!0;const r=n*n+e*e;return this.maxDistSq!==Number.MIN_SAFE_INTEGER&&r>this.maxDistSq}activate(){super.activate(),this.end()}onCancel(){this.resetProgress(),this.clearTimeouts()}resetProgress(){this.clearTimeouts(),this.tapsSoFar=0,this.currentMaxNumberOfPointers=0}};function Hn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Rg=500,T8=10,O8=10;let k8=class extends pr{constructor(...e){super(...e),Hn(this,"minDurationMs",Rg),Hn(this,"defaultMaxDistSq",T8*O8),Hn(this,"maxDistSq",this.defaultMaxDistSq),Hn(this,"numberOfPointers",1),Hn(this,"startX",0),Hn(this,"startY",0),Hn(this,"startTime",0),Hn(this,"previousTime",0),Hn(this,"activationTimeout",void 0)}init(e,n){this.config.enableContextMenu===void 0&&(this.config.enableContextMenu=!1),super.init(e,n)}transformNativeEvent(){return{...super.transformNativeEvent(),duration:Date.now()-this.startTime}}updateGestureConfig({enabled:e=!0,...n}){super.updateGestureConfig({enabled:e,...n}),this.config.minDurationMs!==void 0&&(this.minDurationMs=this.config.minDurationMs),this.config.maxDist!==void 0&&(this.maxDistSq=this.config.maxDist*this.config.maxDist),this.config.numberOfPointers!==void 0&&(this.numberOfPointers=this.config.numberOfPointers)}resetConfig(){super.resetConfig(),this.minDurationMs=Rg,this.maxDistSq=this.defaultMaxDistSq}onStateChange(e,n){clearTimeout(this.activationTimeout)}onPointerDown(e){this.isButtonInConfig(e.button)&&(this.tracker.addToTracker(e),super.onPointerDown(e),this.startX=e.x,this.startY=e.y,this.tryBegin(),this.tryActivate(),this.tryToSendTouchEvent(e))}onPointerAdd(e){if(super.onPointerAdd(e),this.tracker.addToTracker(e),this.tracker.getTrackedPointersCount()>this.numberOfPointers){this.fail();return}const n=this.tracker.getAbsoluteCoordsAverage();this.startX=n.x,this.startY=n.y,this.tryActivate()}onPointerMove(e){super.onPointerMove(e),this.tracker.track(e),this.checkDistanceFail()}onPointerUp(e){super.onPointerUp(e),this.tracker.removeFromTracker(e.pointerId),this.currentState===V.ACTIVE?this.end():this.fail()}onPointerRemove(e){super.onPointerRemove(e),this.tracker.removeFromTracker(e.pointerId),this.tracker.getTrackedPointersCount()<this.numberOfPointers&&this.getState()!==V.ACTIVE&&this.fail()}tryBegin(){this.currentState===V.UNDETERMINED&&(this.previousTime=Date.now(),this.startTime=this.previousTime,this.begin())}tryActivate(){this.tracker.getTrackedPointersCount()===this.numberOfPointers&&(this.minDurationMs>0?this.activationTimeout=setTimeout(()=>{this.activate()},this.minDurationMs):this.minDurationMs===0&&this.activate())}checkDistanceFail(){const e=this.tracker.getAbsoluteCoordsAverage(),n=e.x-this.startX,r=e.y-this.startY;n*n+r*r<=this.maxDistSq||(this.currentState===V.ACTIVE?this.cancel():this.fail())}};function Mt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class M8{constructor(e){Mt(this,"onScaleBegin",void 0),Mt(this,"onScale",void 0),Mt(this,"onScaleEnd",void 0),Mt(this,"focusX",void 0),Mt(this,"focusY",void 0),Mt(this,"currentSpan",void 0),Mt(this,"prevSpan",void 0),Mt(this,"initialSpan",void 0),Mt(this,"currentTime",void 0),Mt(this,"prevTime",void 0),Mt(this,"inProgress",!1),Mt(this,"spanSlop",void 0),Mt(this,"minSpan",void 0),this.onScaleBegin=e.onScaleBegin,this.onScale=e.onScale,this.onScaleEnd=e.onScaleEnd,this.spanSlop=ga*2,this.minSpan=0}onTouchEvent(e,n){this.currentTime=e.time;const r=e.eventType,i=n.getTrackedPointersCount(),a=r===ce.UP||r===ce.ADDITIONAL_POINTER_UP||r===ce.CANCEL;if((r===ce.DOWN||a)&&(this.inProgress&&(this.onScaleEnd(this),this.inProgress=!1,this.initialSpan=0),a))return!0;const s=r===ce.DOWN||r===ce.ADDITIONAL_POINTER_UP||r===ce.ADDITIONAL_POINTER_DOWN,o=r===ce.ADDITIONAL_POINTER_UP,l=o?e.pointerId:void 0,c=o?i-1:i,u=n.getAbsoluteCoordsSum(),A=u.x/c,d=u.y/c;let f=0,p=0;n.getData().forEach((y,x)=>{x!==l&&(f+=Math.abs(y.abosoluteCoords.x-A),p+=Math.abs(y.abosoluteCoords.y-d))});const h=f/c,g=p/c,E=h*2,m=g*2,v=Math.hypot(E,m),C=this.inProgress;return this.focusX=A,this.focusY=d,this.inProgress&&(v<this.minSpan||s)&&(this.onScaleEnd(this),this.inProgress=!1,this.initialSpan=v),s&&(this.initialSpan=this.prevSpan=this.currentSpan=v),!this.inProgress&&v>=this.minSpan&&(C||Math.abs(v-this.initialSpan)>this.spanSlop)&&(this.prevSpan=this.currentSpan=v,this.prevTime=this.currentTime,this.inProgress=this.onScaleBegin(this)),r!==ce.MOVE||(this.currentSpan=v,this.inProgress&&!this.onScale(this))||(this.prevSpan=this.currentSpan,this.prevTime=this.currentTime),!0}getCurrentSpan(){return this.currentSpan}getFocusX(){return this.focusX}getFocusY(){return this.focusY}getTimeDelta(){return this.currentTime-this.prevTime}getScaleFactor(e){return e<2?1:this.prevSpan>0?this.currentSpan/this.prevSpan:1}}function Ki(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let P8=class extends pr{constructor(...e){super(...e),Ki(this,"scale",1),Ki(this,"velocity",0),Ki(this,"startingSpan",0),Ki(this,"spanSlop",ga),Ki(this,"scaleDetectorListener",{onScaleBegin:n=>(this.startingSpan=n.getCurrentSpan(),!0),onScale:n=>{const r=this.scale;this.scale*=n.getScaleFactor(this.tracker.getTrackedPointersCount());const i=n.getTimeDelta();return i>0&&(this.velocity=(this.scale-r)/i),Math.abs(this.startingSpan-n.getCurrentSpan())>=this.spanSlop&&this.currentState===V.BEGAN&&this.activate(),!0},onScaleEnd:n=>{}}),Ki(this,"scaleGestureDetector",new M8(this.scaleDetectorListener))}init(e,n){super.init(e,n),this.setShouldCancelWhenOutside(!1)}updateGestureConfig({enabled:e=!0,...n}){super.updateGestureConfig({enabled:e,...n})}transformNativeEvent(){return{focalX:this.scaleGestureDetector.getFocusX(),focalY:this.scaleGestureDetector.getFocusY(),velocity:this.velocity,scale:this.scale}}onPointerDown(e){this.tracker.addToTracker(e),super.onPointerDown(e),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e),this.tryBegin(),this.scaleGestureDetector.onTouchEvent(e,this.tracker)}onPointerUp(e){super.onPointerUp(e),this.tracker.removeFromTracker(e.pointerId),this.currentState===V.ACTIVE&&(this.scaleGestureDetector.onTouchEvent(e,this.tracker),this.currentState===V.ACTIVE?this.end():this.fail())}onPointerRemove(e){super.onPointerRemove(e),this.scaleGestureDetector.onTouchEvent(e,this.tracker),this.tracker.removeFromTracker(e.pointerId),this.currentState===V.ACTIVE&&this.tracker.getTrackedPointersCount()<2&&this.end()}onPointerMove(e){this.tracker.getTrackedPointersCount()<2||(this.tracker.track(e),this.scaleGestureDetector.onTouchEvent(e,this.tracker),super.onPointerMove(e))}onPointerOutOfBounds(e){this.tracker.getTrackedPointersCount()<2||(this.tracker.track(e),this.scaleGestureDetector.onTouchEvent(e,this.tracker),super.onPointerOutOfBounds(e))}tryBegin(){this.currentState===V.UNDETERMINED&&(this.resetProgress(),this.begin())}activate(e){this.currentState!==V.ACTIVE&&this.resetProgress(),super.activate(e)}onReset(){this.resetProgress()}resetProgress(){this.currentState!==V.ACTIVE&&(this.velocity=0,this.scale=1)}};function Qt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class F8{constructor(e){Qt(this,"onRotationBegin",void 0),Qt(this,"onRotation",void 0),Qt(this,"onRotationEnd",void 0),Qt(this,"currentTime",0),Qt(this,"previousTime",0),Qt(this,"previousAngle",0),Qt(this,"rotation",0),Qt(this,"anchorX",0),Qt(this,"anchorY",0),Qt(this,"isInProgress",!1),Qt(this,"keyPointers",[NaN,NaN]),this.onRotationBegin=e.onRotationBegin,this.onRotation=e.onRotation,this.onRotationEnd=e.onRotationEnd}updateCurrent(e,n){this.previousTime=this.currentTime,this.currentTime=e.time;const[r,i]=this.keyPointers,a=n.getLastAbsoluteCoords(r),s=n.getLastAbsoluteCoords(i),o=s.x-a.x,l=s.y-a.y;this.anchorX=(a.x+s.x)/2,this.anchorY=(a.y+s.y)/2;const c=-Math.atan2(l,o);this.rotation=Number.isNaN(this.previousAngle)?0:this.previousAngle-c,this.previousAngle=c,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(e){if(this.keyPointers[0]&&this.keyPointers[1])return;const n=e.getData().keys();this.keyPointers[0]=n.next().value,this.keyPointers[1]=n.next().value}onTouchEvent(e,n){switch(e.eventType){case ce.DOWN:this.isInProgress=!1;break;case ce.ADDITIONAL_POINTER_DOWN:if(this.isInProgress)break;this.isInProgress=!0,this.previousTime=e.time,this.previousAngle=NaN,this.setKeyPointers(n),this.updateCurrent(e,n),this.onRotationBegin(this);break;case ce.MOVE:if(!this.isInProgress)break;this.updateCurrent(e,n),this.onRotation(this);break;case ce.ADDITIONAL_POINTER_UP:if(!this.isInProgress)break;this.keyPointers.indexOf(e.pointerId)>=0&&this.finish();break;case ce.UP:this.isInProgress&&this.finish();break}return!0}getTimeDelta(){return this.currentTime+this.previousTime}getAnchorX(){return this.anchorX}getAnchorY(){return this.anchorY}getRotation(){return this.rotation}reset(){this.keyPointers=[NaN,NaN],this.isInProgress=!1}}function $i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const R8=Math.PI/36;let N8=class extends pr{constructor(...e){super(...e),$i(this,"rotation",0),$i(this,"velocity",0),$i(this,"cachedAnchorX",0),$i(this,"cachedAnchorY",0),$i(this,"rotationGestureListener",{onRotationBegin:n=>!0,onRotation:n=>{const r=this.rotation;this.rotation+=n.getRotation();const i=n.getTimeDelta();return i>0&&(this.velocity=(this.rotation-r)/i),Math.abs(this.rotation)>=R8&&this.currentState===V.BEGAN&&this.activate(),!0},onRotationEnd:n=>{this.end()}}),$i(this,"rotationGestureDetector",new F8(this.rotationGestureListener))}init(e,n){super.init(e,n),this.setShouldCancelWhenOutside(!1)}updateGestureConfig({enabled:e=!0,...n}){super.updateGestureConfig({enabled:e,...n})}transformNativeEvent(){return{rotation:this.rotation?this.rotation:0,anchorX:this.getAnchorX(),anchorY:this.getAnchorY(),velocity:this.velocity?this.velocity:0}}getAnchorX(){const e=this.rotationGestureDetector.getAnchorX();return e||this.cachedAnchorX}getAnchorY(){const e=this.rotationGestureDetector.getAnchorY();return e||this.cachedAnchorY}onPointerDown(e){this.tracker.addToTracker(e),super.onPointerDown(e),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e),this.tryBegin(),this.rotationGestureDetector.onTouchEvent(e,this.tracker)}onPointerMove(e){this.tracker.getTrackedPointersCount()<2||(this.getAnchorX()&&(this.cachedAnchorX=this.getAnchorX()),this.getAnchorY()&&(this.cachedAnchorY=this.getAnchorY()),this.tracker.track(e),this.rotationGestureDetector.onTouchEvent(e,this.tracker),super.onPointerMove(e))}onPointerOutOfBounds(e){this.tracker.getTrackedPointersCount()<2||(this.getAnchorX()&&(this.cachedAnchorX=this.getAnchorX()),this.getAnchorY()&&(this.cachedAnchorY=this.getAnchorY()),this.tracker.track(e),this.rotationGestureDetector.onTouchEvent(e,this.tracker),super.onPointerOutOfBounds(e))}onPointerUp(e){super.onPointerUp(e),this.tracker.removeFromTracker(e.pointerId),this.rotationGestureDetector.onTouchEvent(e,this.tracker),this.currentState===V.ACTIVE&&(this.currentState===V.ACTIVE?this.end():this.fail())}onPointerRemove(e){super.onPointerRemove(e),this.rotationGestureDetector.onTouchEvent(e,this.tracker),this.tracker.removeFromTracker(e.pointerId)}tryBegin(){this.currentState===V.UNDETERMINED&&this.begin()}activate(e){super.activate()}onReset(){this.currentState!==V.ACTIVE&&(this.rotation=0,this.velocity=0,this.rotationGestureDetector.reset())}};const QA=1,ZA=2,JA=4,ef=8,si={RIGHT:QA,LEFT:ZA,UP:JA,DOWN:ef},ls={UP_RIGHT:JA|QA,DOWN_RIGHT:ef|QA,UP_LEFT:JA|ZA,DOWN_LEFT:ef|ZA};function Ga(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Gt{constructor(e,n){Ga(this,"x",void 0),Ga(this,"y",void 0),Ga(this,"unitX",void 0),Ga(this,"unitY",void 0),Ga(this,"_magnitude",void 0),this.x=e,this.y=n,this._magnitude=Math.hypot(this.x,this.y);const r=this._magnitude>E8;this.unitX=r?this.x/this._magnitude:0,this.unitY=r?this.y/this._magnitude:0}static fromDirection(e){var n;return(n=B8.get(e))!==null&&n!==void 0?n:new Gt(0,0)}static fromVelocity(e,n){const r=e.getVelocity(n);return new Gt(r.x,r.y)}get magnitude(){return this._magnitude}computeSimilarity(e){return this.unitX*e.unitX+this.unitY*e.unitY}isSimilar(e,n){return this.computeSimilarity(e)>n}}const B8=new Map([[si.LEFT,new Gt(-1,0)],[si.RIGHT,new Gt(1,0)],[si.UP,new Gt(0,-1)],[si.DOWN,new Gt(0,1)],[ls.UP_RIGHT,new Gt(1,-1)],[ls.DOWN_RIGHT,new Gt(1,1)],[ls.UP_LEFT,new Gt(-1,-1)],[ls.DOWN_LEFT,new Gt(-1,1)]]);function tf(t,{x:e,y:n}){const r=t.getBoundingClientRect();return e>=r.left&&e<=r.right&&n>=r.top&&n<=r.bottom}const QE=new Map([["mouse",xt.MOUSE],["touch",xt.TOUCH],["pen",xt.STYLUS],["none",xt.OTHER]]),G8=t=>t*Math.PI/180,ZE=t=>Math.cos(G8(t/2));function L8(t){var e;const n=getComputedStyle(t),r={scaleX:1,scaleY:1};if(n.scale!==void 0&&n.scale!=="none"){const a=n.scale.split(" ");a[0]&&(r.scaleX=parseFloat(a[0])),r.scaleY=a[1]?parseFloat(a[1]):parseFloat(a[0])}const i=(e=new RegExp(/matrix\((.+)\)/).exec(n.transform))===null||e===void 0?void 0:e[1];if(i){const a=i.split(", ");r.scaleX*=parseFloat(a[0]),r.scaleY*=parseFloat(a[3])}return r}function V8(t){if(QE.get(t.pointerType)!==xt.STYLUS)return;const n=t.azimuthAngle,r=t.altitudeAngle;if(t.tiltX===0&&t.tiltY===0){if(n===void 0||r===void 0)return{tiltX:0,tiltY:0,azimuthAngle:Math.PI/2,altitudeAngle:Math.PI/2,pressure:t.pressure};const{tiltX:s,tiltY:o}=U8(r,n);return{tiltX:s,tiltY:o,azimuthAngle:n,altitudeAngle:r,pressure:t.pressure}}const{altitudeAngle:i,azimuthAngle:a}=H8(t.tiltX,t.tiltY);return{tiltX:t.tiltX,tiltY:t.tiltY,azimuthAngle:a,altitudeAngle:i,pressure:t.pressure}}function H8(t,e){const n=t*Math.PI/180,r=e*Math.PI/180;let i=0;if(t===0)e>0?i=Math.PI/2:e<0&&(i=3*Math.PI/2);else if(e===0)t<0&&(i=Math.PI);else if(Math.abs(t)===90||Math.abs(e)===90)i=0;else{const s=Math.tan(n),o=Math.tan(r);i=Math.atan2(o,s),i<0&&(i+=2*Math.PI)}let a=0;return Math.abs(t)===90||Math.abs(e)===90?a=0:t===0?a=Math.PI/2-Math.abs(r):e===0?a=Math.PI/2-Math.abs(n):a=Math.atan(1/Math.sqrt(Math.pow(Math.tan(n),2)+Math.pow(Math.tan(r),2))),{altitudeAngle:a,azimuthAngle:i}}function U8(t,e){const n=180/Math.PI;let r=0,i=0;if(t===0&&((e===0||e===2*Math.PI)&&(r=Math.PI/2),e===Math.PI/2&&(i=Math.PI/2),e===Math.PI&&(r=-Math.PI/2),e===3*Math.PI/2&&(i=-Math.PI/2),e>0&&e<Math.PI/2&&(r=Math.PI/2,i=Math.PI/2),e>Math.PI/2&&e<Math.PI&&(r=-Math.PI/2,i=Math.PI/2),e>Math.PI&&e<3*Math.PI/2&&(r=-Math.PI/2,i=-Math.PI/2),e>3*Math.PI/2&&e<2*Math.PI&&(r=Math.PI/2,i=-Math.PI/2)),t!==0){const o=Math.tan(t);r=Math.atan(Math.cos(e)/o),i=Math.atan(Math.sin(e)/o)}const a=Math.round(r*n),s=Math.round(i*n);return{tiltX:a,tiltY:s}}const W8=["Circle","ClipPath","Ellipse","ForeignObject","G","Image","Line","Marker","Mask","Path","Pattern","Polygon","Polyline","Rect","Svg","Symbol","TSpan","Text","TextPath","Use"];function X8(t){const e=Object.getPrototypeOf(t).constructor.name;return W8.indexOf(e)>=0&&Object.hasOwn(t,"elementRef")}function $r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Y8=800,z8=700,JE=30,Ng=si.RIGHT,Bg=1,q8=ZE(JE),K8=ZE(90-JE);let $8=class extends pr{constructor(...e){super(...e),$r(this,"numberOfPointersRequired",Bg),$r(this,"direction",Ng),$r(this,"maxDurationMs",Y8),$r(this,"minVelocity",z8),$r(this,"delayTimeout",void 0),$r(this,"maxNumberOfPointersSimultaneously",0),$r(this,"keyPointer",NaN)}init(e,n){super.init(e,n)}updateGestureConfig({enabled:e=!0,...n}){super.updateGestureConfig({enabled:e,...n}),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 e=Gt.fromVelocity(this.tracker,this.keyPointer),n=(c,u)=>(c&this.direction)===c&&e.isSimilar(Gt.fromDirection(c),u),r=Object.values(si),i=Object.values(ls),a=r.map(c=>n(c,q8)),s=i.map(c=>n(c,K8)),o=a.some(Boolean)||s.some(Boolean),l=e.magnitude>this.minVelocity;return this.maxNumberOfPointersSimultaneously===this.numberOfPointersRequired&&o&&l?(clearTimeout(this.delayTimeout),this.activate(),!0):!1}endFling(){this.tryEndFling()||this.fail()}onPointerDown(e){this.isButtonInConfig(e.button)&&(this.tracker.addToTracker(e),this.keyPointer=e.pointerId,super.onPointerDown(e),this.newPointerAction(),this.tryToSendTouchEvent(e))}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e),this.newPointerAction()}newPointerAction(){this.currentState===V.UNDETERMINED&&this.startFling(),this.currentState===V.BEGAN&&(this.tryEndFling(),this.tracker.getTrackedPointersCount()>this.maxNumberOfPointersSimultaneously&&(this.maxNumberOfPointersSimultaneously=this.tracker.getTrackedPointersCount()))}pointerMoveAction(e){this.tracker.track(e),this.currentState===V.BEGAN&&this.tryEndFling()}onPointerMove(e){this.pointerMoveAction(e),super.onPointerMove(e)}onPointerOutOfBounds(e){this.pointerMoveAction(e),super.onPointerOutOfBounds(e)}onPointerUp(e){super.onPointerUp(e),this.onUp(e),this.keyPointer=NaN}onPointerRemove(e){super.onPointerRemove(e),this.onUp(e)}onUp(e){this.currentState===V.BEGAN&&this.endFling(),this.tracker.removeFromTracker(e.pointerId)}activate(e){super.activate(e),this.end()}resetConfig(){super.resetConfig(),this.numberOfPointersRequired=Bg,this.direction=Ng}};function ji(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let j8=class ex extends pr{constructor(...e){super(...e),ji(this,"buttonRole",void 0),ji(this,"shouldActivateOnStart",!1),ji(this,"disallowInterruption",!1),ji(this,"startX",0),ji(this,"startY",0),ji(this,"minDistSq",ga*ga)}init(e,n){if(super.init(e,n),this.setShouldCancelWhenOutside(!0),ue.OS!=="web")return;const r=this.delegate.getView();this.restoreViewStyles(r),this.buttonRole=r.getAttribute("role")==="button"}updateGestureConfig({enabled:e=!0,...n}){super.updateGestureConfig({enabled:e,...n}),this.config.shouldActivateOnStart!==void 0&&(this.shouldActivateOnStart=this.config.shouldActivateOnStart),this.config.disallowInterruption!==void 0&&(this.disallowInterruption=this.config.disallowInterruption);const r=this.delegate.getView();this.restoreViewStyles(r)}restoreViewStyles(e){e&&(e.style.touchAction="auto",e.style.WebkitTouchCallout="auto")}resetConfig(){super.resetConfig()}onPointerDown(e){this.tracker.addToTracker(e),super.onPointerDown(e),this.newPointerAction(),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e),this.newPointerAction()}newPointerAction(){const e=this.tracker.getAbsoluteCoordsAverage();this.startX=e.x,this.startY=e.y,this.currentState===V.UNDETERMINED&&(this.begin(),this.buttonRole&&this.activate())}onPointerMove(e){this.tracker.track(e);const n=this.tracker.getAbsoluteCoordsAverage(),r=this.startX-n.x,i=this.startY-n.y;r*r+i*i>=this.minDistSq&&(this.buttonRole&&this.currentState===V.ACTIVE?this.cancel():!this.buttonRole&&this.currentState===V.BEGAN&&this.activate())}onPointerLeave(){(this.currentState===V.BEGAN||this.currentState===V.ACTIVE)&&this.cancel()}onPointerUp(e){super.onPointerUp(e),this.onUp(e)}onPointerRemove(e){super.onPointerRemove(e),this.onUp(e)}onUp(e){this.tracker.removeFromTracker(e.pointerId),this.tracker.getTrackedPointersCount()===0&&(this.currentState===V.ACTIVE?this.end():this.fail())}shouldRecognizeSimultaneously(e){if(super.shouldRecognizeSimultaneously(e))return!0;if(e instanceof ex&&e.getState()===V.ACTIVE&&e.disallowsInterruption())return!1;const n=!this.disallowInterruption;return this.currentState===V.ACTIVE&&e.getState()===V.ACTIVE&&n?!1:this.currentState===V.ACTIVE&&n&&e.getTag()>0}shouldBeCancelledByOther(e){return!this.disallowInterruption}disallowsInterruption(){return this.disallowInterruption}isButton(){return this.buttonRole}};class Q8 extends pr{init(e,n){super.init(e,n)}updateGestureConfig({enabled:e=!0,...n}){super.updateGestureConfig({enabled:e,...n})}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)}}function Z8(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class J8 extends pr{constructor(...e){super(...e),Z8(this,"stylusData",void 0)}init(e,n){super.init(e,n)}transformNativeEvent(){return{...super.transformNativeEvent(),stylusData:this.stylusData}}updateGestureConfig({enabled:e=!0,...n}){super.updateGestureConfig({enabled:e,...n})}onPointerMoveOver(e){rn.getInstance().recordHandlerIfNotPresent(this),this.tracker.addToTracker(e),this.stylusData=e.stylusData,super.onPointerMoveOver(e),this.getState()===V.UNDETERMINED&&(this.begin(),this.activate())}onPointerMoveOut(e){this.tracker.removeFromTracker(e.pointerId),this.stylusData=e.stylusData,super.onPointerMoveOut(e),this.end()}onPointerMove(e){this.tracker.track(e),this.stylusData=e.stylusData,super.onPointerMove(e)}onPointerCancel(e){super.onPointerCancel(e),this.reset()}}/*! Hammer.JS - v2.0.17-rc - 2019-12-16 +`,Z4=global.__turboModuleProxy!=null,bg=Z4?require("./NativeBlockScreenshot").default:Bm.BlockScreenshot,Cs=bg||new Proxy({},{get(){throw new Error(Q4)}}),J4=t=>t?fs.resolveAssetSource(t)??t:null,e8=({backgroundColor:t,scale:e,source:n})=>Cs.enableBlockScreenshot({backgroundColor:Of(t),scale:e,source:J4(n)}),t8=()=>Cs.disableBlockScreenshot();let Kr;const n8=t=>{let e=()=>{};return ue.OS==="ios"&&(Kr||(Cs.addEventListener(),Kr=new Df(Cs)),e=Kr.addListener("onScreenshot",t).remove),()=>{e(),(Kr==null?void 0:Kr.listenerCount("onScreenshot"))===0&&(Cs.removeEventListener(),Kr=null)}},r8=({enabled:t=!0,onScreenshot:e})=>{const{color:n}=Nn();_.useEffect(()=>{t&&e8({backgroundColor:n.appSwitcher.background,scale:.33,source:require("@/assets/images/logoWhite.png")});const r=e&&t?n8(e):()=>null;return()=>{r(),t8()}},[n,t,e])};var GE={};(function(t){var e=K&&K.__awaiter||function(l,c,u,A){function d(f){return f instanceof u?f:new u(function(p){p(f)})}return new(u||(u=Promise))(function(f,p){function h(m){try{E(A.next(m))}catch(v){p(v)}}function g(m){try{E(A.throw(m))}catch(v){p(v)}}function E(m){m.done?f(m.value):d(m.value).then(h,g)}E((A=A.apply(l,c||[])).next())})},n=K&&K.__generator||function(l,c){var u={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},A,d,f,p;return p={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function h(E){return function(m){return g([E,m])}}function g(E){if(A)throw new TypeError("Generator is already executing.");for(;p&&(p=0,E[0]&&(u=0)),u;)try{if(A=1,d&&(f=E[0]&2?d.return:E[0]?d.throw||((f=d.return)&&f.call(d),0):d.next)&&!(f=f.call(d,E[1])).done)return f;switch(d=0,f&&(E=[E[0]&2,f.value]),E[0]){case 0:case 1:f=E;break;case 4:return u.label++,{value:E[1],done:!1};case 5:u.label++,d=E[1],E=[0];continue;case 7:E=u.ops.pop(),u.trys.pop();continue;default:if(f=u.trys,!(f=f.length>0&&f[f.length-1])&&(E[0]===6||E[0]===2)){u=0;continue}if(E[0]===3&&(!f||E[1]>f[0]&&E[1]<f[3])){u.label=E[1];break}if(E[0]===6&&u.label<f[1]){u.label=f[1],f=E;break}if(f&&u.label<f[2]){u.label=f[2],u.ops.push(E);break}f[2]&&u.ops.pop(),u.trys.pop();continue}E=c.call(l,u)}catch(m){E=[6,m],d=0}finally{A=f=0}if(E[0]&5)throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSystemBrightnessLevel=t.getBrightnessLevel=t.setBrightnessLevel=void 0;var r=Wc,i=r.NativeModules.RNDeviceBrightness,a=function(l){return e(void 0,void 0,void 0,function(){return n(this,function(c){switch(c.label){case 0:if((l<0||l>1)&&!(r.Platform.OS==="android"&&l===-1))throw Error("⚠️ BrightnessLevel value must betweens 0 to 1 ⚠️");return[4,i.setBrightnessLevel(l)];case 1:return c.sent(),[2]}})})};t.setBrightnessLevel=a;var s=function(){return e(void 0,void 0,void 0,function(){return n(this,function(l){return[2,i.getBrightnessLevel()]})})};t.getBrightnessLevel=s;var o=function(){if(r.Platform.OS!=="android")throw Error("⚠️ Android only supported ⚠️");return i.getSystemBrightnessLevel()};t.getSystemBrightnessLevel=o,t.default={setBrightnessLevel:t.setBrightnessLevel,getBrightnessLevel:t.getBrightnessLevel,getSystemBrightnessLevel:t.getSystemBrightnessLevel}})(GE);const Gu=Ur(GE),i8=({enabled:t=!0}={})=>_.useEffect(()=>{if(t){const e=Gu.getBrightnessLevel();return e.then(()=>{Gu.setBrightnessLevel(1)}),()=>{e.then(n=>{Gu.setBrightnessLevel(n)})}}else return()=>null},[t]);var LE={},VE={exports:{}};(function(t){function e(n){return n&&n.__esModule?n:{default:n}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(VE);var An=VE.exports,Ra={};const V={UNDETERMINED:0,FAILED:1,BEGAN:2,CANCELLED:3,ACTIVE:4,END:5},nr={UNDETERMINED:0,TOUCHES_DOWN:1,TOUCHES_MOVE:2,TOUCHES_UP:3,TOUCHES_CANCELLED:4};var a8={NODE_ENV:'"production"'};function s8(t){return Array.isArray(t)?t:[t]}function o8(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function vh(){return o8(global,"process")&&!!a8.JEST_WORKER_ID}function Xs(t){return`[react-native-gesture-handler] ${t}`}function l8(){var t;return!!((t=global)!==null&&t!==void 0&&t.nativeFabricUIManager)}function c8(){const t=global;return(!t.nativeCallSyncHook||!!t.__REMOTEDEV__)&&!t.RN$Bridgeless}function HE(t,e){if(t===e)return!0;if(typeof t!="object"||typeof e!="object"||t===null||e===null)return!1;const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(const i of n)if(!r.includes(i)||!HE(t[i],e[i]))return!1;return!0}const Sg=2**31-1,Lo={},mh=new Map,UE=new Map,WE=new Map;function XE(t,e,n){mh.set(t,e),vh()&&n&&WE.set(n,t)}function u8(t,e){UE.set(t,e)}function d8(t,e){mh.delete(t),vh()&&e&&WE.delete(e)}function A8(t){return mh.get(t)}function f8(t){return UE.get(t)}function h8(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Bt{static getHandler(e){if(e in this.gestures)return this.gestures[e];throw new Error(`No handler for tag ${e}`)}static createGestureHandler(e,n){if(e in this.gestures)throw new Error(`Handler with tag ${e} already exists. Please ensure that no Gesture instance is used across multiple GestureDetectors.`);this.gestures[e]=n,this.gestures[e].setTag(e)}static dropGestureHandler(e){e in this.gestures&&(this.gestures[e].onDestroy(),delete this.gestures[e])}static getNodes(){return{...this.gestures}}}h8(Bt,"gestures",{});const YE={create(t){return{begin:()=>{Bt.getHandler(t).begin()},activate:()=>{Bt.getHandler(t).activate(!0)},fail:()=>{Bt.getHandler(t).fail()},end:()=>{Bt.getHandler(t).end()}}}};let Vo=null,Ho=null;const po=new Map,Na=[];function _g(t){return t.oldState!=null}function p8(t){return t.eventType!=null}function gl(t){var e,n,r,i,a,s,o,l;const c=A8(t.handlerTag);if(c)if(_g(t)){if(t.oldState===V.UNDETERMINED&&t.state===V.BEGAN){var u,A;(u=(A=c.handlers).onBegin)===null||u===void 0||u.call(A,t)}else if((t.oldState===V.BEGAN||t.oldState===V.UNDETERMINED)&&t.state===V.ACTIVE){var d,f;(d=(f=c.handlers).onStart)===null||d===void 0||d.call(f,t),Na[c.handlers.handlerTag]=t}else if(t.oldState!==t.state&&t.state===V.END){var p,h;if(t.oldState===V.ACTIVE){var g,E;(g=(E=c.handlers).onEnd)===null||g===void 0||g.call(E,t,!0)}(p=(h=c.handlers).onFinalize)===null||p===void 0||p.call(h,t,!0),Na[c.handlers.handlerTag]=void 0}else if((t.state===V.FAILED||t.state===V.CANCELLED)&&t.oldState!==t.state){var m,v;if(t.oldState===V.ACTIVE){var C,y;(C=(y=c.handlers).onEnd)===null||C===void 0||C.call(y,t,!1)}(m=(v=c.handlers).onFinalize)===null||m===void 0||m.call(v,t,!1),po.delete(t.handlerTag),Na[c.handlers.handlerTag]=void 0}}else if(p8(t)){po.has(t.handlerTag)||po.set(t.handlerTag,YE.create(t.handlerTag));const O=po.get(t.handlerTag);switch(t.eventType){case nr.TOUCHES_DOWN:(e=c.handlers)===null||e===void 0||(n=e.onTouchesDown)===null||n===void 0||n.call(e,t,O);break;case nr.TOUCHES_MOVE:(r=c.handlers)===null||r===void 0||(i=r.onTouchesMove)===null||i===void 0||i.call(r,t,O);break;case nr.TOUCHES_UP:(a=c.handlers)===null||a===void 0||(s=a.onTouchesUp)===null||s===void 0||s.call(a,t,O);break;case nr.TOUCHES_CANCELLED:(o=c.handlers)===null||o===void 0||(l=o.onTouchesCancelled)===null||l===void 0||l.call(o,t,O);break}}else{var x,w;if((x=(w=c.handlers).onUpdate)===null||x===void 0||x.call(w,t),c.handlers.onChange&&c.handlers.changeEventCalculator){var S,D,I,b;(S=(D=c.handlers).onChange)===null||S===void 0||S.call(D,(I=(b=c.handlers).changeEventCalculator)===null||I===void 0?void 0:I.call(b,t,Na[c.handlers.handlerTag])),Na[c.handlers.handlerTag]=t}}else{const O=f8(t.handlerTag);if(O){const T={nativeEvent:t};_g(t)?O.onGestureStateChange(T):O.onGestureEvent(T);return}}}function g8(){v8(),Vo=Yd.addListener("onGestureHandlerEvent",gl),Ho=Yd.addListener("onGestureHandlerStateChange",gl)}function v8(){Vo&&(Vo.remove(),Vo=null),Ho&&(Ho.remove(),Ho=null)}let QA=!0,zE=!1;function m8(t=!0){}function C8(t=!0){if(!(ue.OS!=="web"||QA===!t)){if(zE){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.");return}QA=!t}}function Zr(){return zE=!0,QA}const ga=15,E8=.1;let ce;(function(t){t[t.DOWN=0]="DOWN",t[t.ADDITIONAL_POINTER_DOWN=1]="ADDITIONAL_POINTER_DOWN",t[t.UP=2]="UP",t[t.ADDITIONAL_POINTER_UP=3]="ADDITIONAL_POINTER_UP",t[t.MOVE=4]="MOVE",t[t.ENTER=5]="ENTER",t[t.LEAVE=6]="LEAVE",t[t.CANCEL=7]="CANCEL"})(ce||(ce={}));let wr;(function(t){t[t.UNDETERMINED=0]="UNDETERMINED",t[t.DOWN=1]="DOWN",t[t.MOVE=2]="MOVE",t[t.UP=3]="UP",t[t.CANCELLED=4]="CANCELLED"})(wr||(wr={}));let br;(function(t){t[t.UNDETERMINED=0]="UNDETERMINED",t[t.MOUSE=1]="MOUSE",t[t.TOUCHPAD=2]="TOUCHPAD"})(br||(br={}));let xt;(function(t){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"})(xt||(xt={}));function go(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class x8{constructor(e){go(this,"bufferSize",void 0),go(this,"buffer",void 0),go(this,"index",void 0),go(this,"actualSize",void 0),this.bufferSize=e,this.buffer=new Array(e),this.index=0,this.actualSize=0}get size(){return this.actualSize}push(e){this.buffer[this.index]=e,this.index=(this.index+1)%this.bufferSize,this.actualSize=Math.min(this.actualSize+1,this.bufferSize)}get(e){if(this.actualSize===this.bufferSize){let n=(this.index+e)%this.bufferSize;return n<0&&(n+=this.bufferSize),this.buffer[n]}else return this.buffer[e]}clear(){this.buffer=new Array(this.bufferSize),this.index=0,this.actualSize=0}}function lr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let qE=class KE{constructor(e){lr(this,"offset",void 0),lr(this,"length",void 0),lr(this,"elements",void 0),this.offset=0,this.length=e,this.elements=new Array(e)}static fromVOL(e,n,r){const i=new KE(0);return i.offset=n,i.length=r,i.elements=e,i}get(e){return this.elements[this.offset+e]}set(e,n){this.elements[this.offset+e]=n}dot(e){let n=0;for(let r=0;r<this.length;r++)n+=this.get(r)*e.get(r);return n}norm(){return Math.sqrt(this.dot(this))}};class Lu{constructor(e,n){lr(this,"columns",void 0),lr(this,"elements",void 0),this.columns=n,this.elements=new Array(e*n)}get(e,n){return this.elements[e*this.columns+n]}set(e,n,r){this.elements[e*this.columns+n]=r}getRow(e){return qE.fromVOL(this.elements,e*this.columns,this.columns)}}class y8{constructor(e){lr(this,"coefficients",void 0),this.coefficients=new Array(e+1)}}const I8=1e-10;class Dg{constructor(e,n,r){lr(this,"x",void 0),lr(this,"y",void 0),lr(this,"w",void 0),this.x=e,this.y=n,this.w=r}solve(e){if(e>this.x.length)return null;const n=new y8(e),r=this.x.length,i=e+1,a=new Lu(i,r);for(let c=0;c<r;c++){a.set(0,c,this.w[c]);for(let u=1;u<i;u++)a.set(u,c,a.get(u-1,c)*this.x[c])}const s=new Lu(i,r),o=new Lu(i,r);for(let c=0;c<i;c+=1){for(let d=0;d<r;d+=1)s.set(c,d,a.get(c,d));for(let d=0;d<c;d+=1){const f=s.getRow(c).dot(s.getRow(d));for(let p=0;p<r;p+=1)s.set(c,p,s.get(c,p)-f*s.get(d,p))}const u=s.getRow(c).norm();if(u<I8)return null;const A=1/u;for(let d=0;d<r;d+=1)s.set(c,d,s.get(c,d)*A);for(let d=0;d<i;d+=1)o.set(c,d,d<c?0:s.getRow(c).dot(a.getRow(d)))}const l=new qE(r);for(let c=0;c<r;c+=1)l.set(c,this.y[c]*this.w[c]);for(let c=i-1;c>=0;c-=1){n.coefficients[c]=s.getRow(c).dot(l);for(let u=i-1;u>c;u-=1)n.coefficients[c]-=o.get(c,u)*n.coefficients[u];n.coefficients[c]/=o.get(c,c)}return n}}function Ba(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class w8{constructor(){Ba(this,"assumePointerMoveStoppedMilliseconds",40),Ba(this,"historySize",20),Ba(this,"horizonMilliseconds",300),Ba(this,"minSampleSize",3),Ba(this,"samples",void 0),this.samples=new x8(this.historySize)}add(e){this.samples.push(e)}getVelocityEstimate(){const e=[],n=[],r=[],i=[];let a=0,s=this.samples.size-1;const o=this.samples.get(s);if(!o)return null;let l=o;for(;a<this.samples.size;){const c=this.samples.get(s),u=o.time-c.time,A=Math.abs(c.time-l.time);if(l=c,u>this.horizonMilliseconds||A>this.assumePointerMoveStoppedMilliseconds)break;e.push(c.x),n.push(c.y),r.push(1),i.push(-u),a++,s--}if(a>=this.minSampleSize){const u=new Dg(i,e,r).solve(2);if(u!==null){const d=new Dg(i,n,r).solve(2);if(d!==null){const f=u.coefficients[1]*1e3,p=d.coefficients[1]*1e3;return[f,p]}}}return null}getVelocity(){const e=this.getVelocityEstimate();return e!==null?e:[0,0]}reset(){this.samples.clear()}}function qi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Tg=20;class $E{constructor(){qi(this,"velocityTracker",new w8),qi(this,"trackedPointers",new Map),qi(this,"touchEventsIds",new Map),qi(this,"lastMovedPointerId",void 0),qi(this,"cachedAbsoluteAverages",{x:0,y:0}),qi(this,"cachedRelativeAverages",{x:0,y:0}),this.lastMovedPointerId=NaN;for(let e=0;e<Tg;++e)this.touchEventsIds.set(e,NaN)}addToTracker(e){if(this.trackedPointers.has(e.pointerId))return;this.lastMovedPointerId=e.pointerId;const n={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,n),this.mapTouchEventId(e.pointerId),this.cachedAbsoluteAverages=this.getAbsoluteCoordsAverage(),this.cachedRelativeAverages=this.getRelativeCoordsAverage()}removeFromTracker(e){this.trackedPointers.delete(e),this.removeMappedTouchId(e)}track(e){const n=this.trackedPointers.get(e.pointerId);if(!n)return;this.lastMovedPointerId=e.pointerId,this.velocityTracker.add(e);const[r,i]=this.velocityTracker.getVelocity();n.velocityX=r,n.velocityY=i,n.abosoluteCoords={x:e.x,y:e.y},n.relativeCoords={x:e.offsetX,y:e.offsetY},this.trackedPointers.set(e.pointerId,n),this.cachedAbsoluteAverages=this.getAbsoluteCoordsAverage(),this.cachedRelativeAverages=this.getRelativeCoordsAverage()}mapTouchEventId(e){for(const[n,r]of this.touchEventsIds)if(isNaN(r)){this.touchEventsIds.set(n,e);break}}removeMappedTouchId(e){const n=this.getMappedTouchEventId(e);isNaN(n)||this.touchEventsIds.set(n,NaN)}getMappedTouchEventId(e){for(const[n,r]of this.touchEventsIds.entries())if(r===e)return n;return NaN}getVelocity(e){var n,r;return{x:(n=this.trackedPointers.get(e))===null||n===void 0?void 0:n.velocityX,y:(r=this.trackedPointers.get(e))===null||r===void 0?void 0:r.velocityY}}getLastAbsoluteCoords(e){var n;return(n=this.trackedPointers.get(e??this.lastMovedPointerId))===null||n===void 0?void 0:n.abosoluteCoords}getLastRelativeCoords(e){var n;return(n=this.trackedPointers.get(e??this.lastMovedPointerId))===null||n===void 0?void 0:n.relativeCoords}getAbsoluteCoordsAverage(){const e=this.getAbsoluteCoordsSum(),n=e.x/this.trackedPointers.size,r=e.y/this.trackedPointers.size;return{x:isNaN(n)?this.cachedAbsoluteAverages.x:n,y:isNaN(r)?this.cachedAbsoluteAverages.y:r}}getRelativeCoordsAverage(){const e=this.getRelativeCoordsSum(),n=e.x/this.trackedPointers.size,r=e.y/this.trackedPointers.size;return{x:isNaN(n)?this.cachedRelativeAverages.x:n,y:isNaN(r)?this.cachedRelativeAverages.y:r}}getAbsoluteCoordsSum(e){const n={x:0,y:0};return this.trackedPointers.forEach((r,i)=>{i!==e&&(n.x+=r.abosoluteCoords.x,n.y+=r.abosoluteCoords.y)}),n}getRelativeCoordsSum(e){const n={x:0,y:0};return this.trackedPointers.forEach((r,i)=>{i!==e&&(n.x+=r.relativeCoords.x,n.y+=r.relativeCoords.y)}),n}getTrackedPointersCount(){return this.trackedPointers.size}getTrackedPointersID(){const e=[];return this.trackedPointers.forEach((n,r)=>{e.push(r)}),e}getData(){return this.trackedPointers}resetTracker(){this.velocityTracker.reset(),this.trackedPointers.clear(),this.lastMovedPointerId=NaN;for(let e=0;e<Tg;++e)this.touchEventsIds.set(e,NaN)}static shareCommonPointers(e,n){return e.some(r=>n.includes(r))}}function Ji(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class rn{constructor(){Ji(this,"gestureHandlers",[]),Ji(this,"awaitingHandlers",[]),Ji(this,"awaitingHandlersTags",new Set),Ji(this,"handlingChangeSemaphore",0),Ji(this,"activationIndex",0)}scheduleFinishedHandlersCleanup(){this.handlingChangeSemaphore===0&&this.cleanupFinishedHandlers()}cleanHandler(e){e.reset(),e.setActive(!1),e.setAwaiting(!1),e.setActivationIndex(Number.MAX_VALUE)}removeHandlerFromOrchestrator(e){const n=this.gestureHandlers.indexOf(e),r=this.awaitingHandlers.indexOf(e);n>=0&&this.gestureHandlers.splice(n,1),r>=0&&(this.awaitingHandlers.splice(r,1),this.awaitingHandlersTags.delete(e.getTag()))}cleanupFinishedHandlers(){const e=new Set;for(let n=this.gestureHandlers.length-1;n>=0;--n){const r=this.gestureHandlers[n];this.isFinished(r.getState())&&!r.isAwaiting()&&(this.cleanHandler(r),e.add(r))}this.gestureHandlers=this.gestureHandlers.filter(n=>!e.has(n))}hasOtherHandlerToWaitFor(e){const n=r=>!this.isFinished(r.getState())&&this.shouldHandlerWaitForOther(e,r);return this.gestureHandlers.some(n)}shouldBeCancelledByFinishedHandler(e){const n=r=>this.shouldHandlerWaitForOther(e,r)&&r.getState()===V.END;return this.gestureHandlers.some(n)}tryActivate(e){if(this.shouldBeCancelledByFinishedHandler(e)){e.cancel();return}if(this.hasOtherHandlerToWaitFor(e)){this.addAwaitingHandler(e);return}const n=e.getState();if(!(n===V.CANCELLED||n===V.FAILED)){if(this.shouldActivate(e)){this.makeActive(e);return}if(n===V.ACTIVE){e.fail();return}n===V.BEGAN&&e.cancel()}}shouldActivate(e){const n=r=>this.shouldHandlerBeCancelledBy(e,r);return!this.gestureHandlers.some(n)}cleanupAwaitingHandlers(e){const n=r=>!r.isAwaiting()&&this.shouldHandlerWaitForOther(r,e);for(const r of this.awaitingHandlers)n(r)&&(this.cleanHandler(r),this.awaitingHandlersTags.delete(r.getTag()));this.awaitingHandlers=this.awaitingHandlers.filter(r=>this.awaitingHandlersTags.has(r.getTag()))}onHandlerStateChange(e,n,r,i){if(!(!e.isEnabled()&&!i)){if(this.handlingChangeSemaphore+=1,this.isFinished(n)){for(const a of this.awaitingHandlers)if(!(!this.shouldHandlerWaitForOther(a,e)||!this.awaitingHandlersTags.has(a.getTag()))){if(n!==V.END){this.tryActivate(a);continue}a.cancel(),a.getState()===V.END&&a.sendEvent(V.CANCELLED,V.BEGAN),a.setAwaiting(!1)}}n===V.ACTIVE?this.tryActivate(e):r===V.ACTIVE||r===V.END?e.isActive()?e.sendEvent(n,r):r===V.ACTIVE&&(n===V.CANCELLED||n===V.FAILED)&&e.sendEvent(n,V.BEGAN):(r!==V.UNDETERMINED||n!==V.CANCELLED)&&e.sendEvent(n,r),this.handlingChangeSemaphore-=1,this.scheduleFinishedHandlersCleanup(),this.awaitingHandlers.includes(e)||this.cleanupAwaitingHandlers(e)}}makeActive(e){const n=e.getState();e.setActive(!0),e.setShouldResetProgress(!0),e.setActivationIndex(this.activationIndex++);for(let r=this.gestureHandlers.length-1;r>=0;--r)this.shouldHandlerBeCancelledBy(this.gestureHandlers[r],e)&&this.gestureHandlers[r].cancel();for(const r of this.awaitingHandlers)this.shouldHandlerBeCancelledBy(r,e)&&r.setAwaiting(!1);e.sendEvent(V.ACTIVE,V.BEGAN),n!==V.ACTIVE&&(e.sendEvent(V.END,V.ACTIVE),n!==V.END&&e.sendEvent(V.UNDETERMINED,V.END)),e.isAwaiting()&&(e.setAwaiting(!1),this.awaitingHandlers=this.awaitingHandlers.filter(r=>r!==e))}addAwaitingHandler(e){this.awaitingHandlers.includes(e)||(this.awaitingHandlers.push(e),this.awaitingHandlersTags.add(e.getTag()),e.setAwaiting(!0),e.setActivationIndex(this.activationIndex++))}recordHandlerIfNotPresent(e){this.gestureHandlers.includes(e)||(this.gestureHandlers.push(e),e.setActive(!1),e.setAwaiting(!1),e.setActivationIndex(Number.MAX_SAFE_INTEGER))}shouldHandlerWaitForOther(e,n){return e!==n&&(e.shouldWaitForHandlerFailure(n)||n.shouldRequireToWaitForFailure(e))}canRunSimultaneously(e,n){return e===n||e.shouldRecognizeSimultaneously(n)||n.shouldRecognizeSimultaneously(e)}shouldHandlerBeCancelledBy(e,n){if(this.canRunSimultaneously(e,n))return!1;if(e.isAwaiting()||e.getState()===V.ACTIVE)return e.shouldBeCancelledByOther(n);const r=e.getTrackedPointersID(),i=n.getTrackedPointersID();return!$E.shareCommonPointers(r,i)&&e.getDelegate().getView()!==n.getDelegate().getView()?this.checkOverlap(e,n):!0}checkOverlap(e,n){const r=i=>{const a=e.getTracker().getLastAbsoluteCoords(i);return e.getDelegate().isPointerInBounds(a)&&n.getDelegate().isPointerInBounds(a)};return e.getTrackedPointersID().some(r)}isFinished(e){return e===V.END||e===V.FAILED||e===V.CANCELLED}cancelMouseAndPenGestures(e){this.gestureHandlers.forEach(n=>{n.getPointerType()!==xt.MOUSE&&n.getPointerType()!==xt.STYLUS||(n!==e?n.cancel():n.getTracker().resetTracker())})}static getInstance(){return rn.instance||(rn.instance=new rn),rn.instance}}Ji(rn,"instance",void 0);function Uo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class rr{constructor(){Uo(this,"waitForRelations",new Map),Uo(this,"simultaneousRelations",new Map),Uo(this,"blocksHandlersRelations",new Map)}configureInteractions(e,n){if(this.dropRelationsForHandlerWithTag(e.getTag()),n.waitFor){const r=[];n.waitFor.forEach(i=>{typeof i=="number"?r.push(i):r.push(i.handlerTag)}),this.waitForRelations.set(e.getTag(),r)}if(n.simultaneousHandlers){const r=[];n.simultaneousHandlers.forEach(i=>{typeof i=="number"?r.push(i):r.push(i.handlerTag)}),this.simultaneousRelations.set(e.getTag(),r)}if(n.blocksHandlers){const r=[];n.blocksHandlers.forEach(i=>{typeof i=="number"?r.push(i):r.push(i.handlerTag)}),this.blocksHandlersRelations.set(e.getTag(),r)}}shouldWaitForHandlerFailure(e,n){const r=this.waitForRelations.get(e.getTag());return(r==null?void 0:r.find(i=>i===n.getTag()))!==void 0}shouldRecognizeSimultaneously(e,n){const r=this.simultaneousRelations.get(e.getTag());return(r==null?void 0:r.find(i=>i===n.getTag()))!==void 0}shouldRequireHandlerToWaitForFailure(e,n){const r=this.blocksHandlersRelations.get(e.getTag());return(r==null?void 0:r.find(i=>i===n.getTag()))!==void 0}shouldHandlerBeCancelledBy(e,n){var r;const i=n.constructor.name==="NativeViewGestureHandler",a=n.getState()===V.ACTIVE,s=((r=n.isButton)===null||r===void 0?void 0:r.call(n))===!0;return i&&a&&!s}dropRelationsForHandlerWithTag(e){this.waitForRelations.delete(e),this.simultaneousRelations.delete(e),this.blocksHandlersRelations.delete(e)}reset(){this.waitForRelations.clear(),this.simultaneousRelations.clear(),this.blocksHandlersRelations.clear()}static getInstance(){return this.instance||(this.instance=new rr),this.instance}}Uo(rr,"instance",void 0);const jE=["id","enabled","shouldCancelWhenOutside","hitSlop","cancelsTouchesInView","userSelect","activeCursor","mouseButton","enableContextMenu","touchAction"],b8=["waitFor","simultaneousHandlers","blocksHandlers"],Wr=[...jE,...b8,"onBegan","onFailed","onCancelled","onActivated","onEnded","onGestureEvent","onHandlerStateChange"],S8=[...jE,"needsPointerData","manualActivation"];let bn;(function(t){t[t.LEFT=1]="LEFT",t[t.RIGHT=2]="RIGHT",t[t.MIDDLE=4]="MIDDLE",t[t.BUTTON_4=8]="BUTTON_4",t[t.BUTTON_5=16]="BUTTON_5",t[t.ALL=31]="ALL"})(bn||(bn={}));function it(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let pr=class{constructor(e){it(this,"lastSentState",null),it(this,"currentState",V.UNDETERMINED),it(this,"shouldCancelWhenOutside",!1),it(this,"hasCustomActivationCriteria",!1),it(this,"enabled",!1),it(this,"viewRef",void 0),it(this,"propsRef",void 0),it(this,"handlerTag",void 0),it(this,"config",{enabled:!1}),it(this,"tracker",new $E),it(this,"activationIndex",0),it(this,"awaiting",!1),it(this,"active",!1),it(this,"shouldResetProgress",!1),it(this,"pointerType",xt.MOUSE),it(this,"delegate",void 0),it(this,"sendEvent",(n,r)=>{const{onGestureHandlerEvent:i,onGestureHandlerStateChange:a}=this.propsRef.current,s=this.transformEventData(n,r);this.lastSentState!==n&&(this.lastSentState=n,os(a,s)),this.currentState===V.ACTIVE&&(s.nativeEvent.oldState=void 0,os(i,s))}),this.delegate=e}init(e,n){this.propsRef=n,this.viewRef=e,this.currentState=V.UNDETERMINED,this.delegate.init(e,this)}attachEventManager(e){e.setOnPointerDown(this.onPointerDown.bind(this)),e.setOnPointerAdd(this.onPointerAdd.bind(this)),e.setOnPointerUp(this.onPointerUp.bind(this)),e.setOnPointerRemove(this.onPointerRemove.bind(this)),e.setOnPointerMove(this.onPointerMove.bind(this)),e.setOnPointerEnter(this.onPointerEnter.bind(this)),e.setOnPointerLeave(this.onPointerLeave.bind(this)),e.setOnPointerCancel(this.onPointerCancel.bind(this)),e.setOnPointerOutOfBounds(this.onPointerOutOfBounds.bind(this)),e.setOnPointerMoveOver(this.onPointerMoveOver.bind(this)),e.setOnPointerMoveOut(this.onPointerMoveOut.bind(this)),e.setOnWheel(this.onWheel.bind(this)),e.registerListeners()}onCancel(){}onReset(){}resetProgress(){}reset(){this.tracker.resetTracker(),this.onReset(),this.resetProgress(),this.delegate.reset(),this.currentState=V.UNDETERMINED}moveToState(e,n){if(this.currentState===e)return;const r=this.currentState;this.currentState=e,this.tracker.getTrackedPointersCount()>0&&this.config.needsPointerData&&this.isFinished()&&this.cancelTouches(),rn.getInstance().onHandlerStateChange(this,e,r,n),this.onStateChange(e,r),!this.enabled&&this.isFinished()&&(this.currentState=V.UNDETERMINED)}onStateChange(e,n){}begin(){this.checkHitSlop()&&this.currentState===V.UNDETERMINED&&this.moveToState(V.BEGAN)}fail(e){(this.currentState===V.ACTIVE||this.currentState===V.BEGAN)&&(this.delegate.onFail(),this.moveToState(V.FAILED,e)),this.resetProgress()}cancel(e){(this.currentState===V.ACTIVE||this.currentState===V.UNDETERMINED||this.currentState===V.BEGAN)&&(this.onCancel(),this.delegate.onCancel(),this.moveToState(V.CANCELLED,e))}activate(e=!1){(this.config.manualActivation!==!0||e)&&(this.currentState===V.UNDETERMINED||this.currentState===V.BEGAN)&&(this.delegate.onActivate(),this.moveToState(V.ACTIVE))}end(){(this.currentState===V.BEGAN||this.currentState===V.ACTIVE)&&(this.delegate.onEnd(),this.moveToState(V.END)),this.resetProgress()}isAwaiting(){return this.awaiting}setAwaiting(e){this.awaiting=e}isActive(){return this.active}setActive(e){this.active=e}getShouldResetProgress(){return this.shouldResetProgress}setShouldResetProgress(e){this.shouldResetProgress=e}getActivationIndex(){return this.activationIndex}setActivationIndex(e){this.activationIndex=e}shouldWaitForHandlerFailure(e){return e===this?!1:rr.getInstance().shouldWaitForHandlerFailure(this,e)}shouldRequireToWaitForFailure(e){return e===this?!1:rr.getInstance().shouldRequireHandlerToWaitForFailure(this,e)}shouldRecognizeSimultaneously(e){return e===this?!0:rr.getInstance().shouldRecognizeSimultaneously(this,e)}shouldBeCancelledByOther(e){return e===this?!1:rr.getInstance().shouldHandlerBeCancelledBy(this,e)}onPointerDown(e){rn.getInstance().recordHandlerIfNotPresent(this),this.pointerType=e.pointerType,this.pointerType===xt.TOUCH&&rn.getInstance().cancelMouseAndPenGestures(this)}onPointerAdd(e){this.tryToSendTouchEvent(e)}onPointerUp(e){this.tryToSendTouchEvent(e)}onPointerRemove(e){this.tryToSendTouchEvent(e)}onPointerMove(e){this.tryToSendMoveEvent(!1,e)}onPointerLeave(e){if(this.shouldCancelWhenOutside){switch(this.currentState){case V.ACTIVE:this.cancel();break;case V.BEGAN:this.fail();break}return}this.tryToSendTouchEvent(e)}onPointerEnter(e){this.tryToSendTouchEvent(e)}onPointerCancel(e){this.tryToSendTouchEvent(e),this.cancel(),this.reset()}onPointerOutOfBounds(e){this.tryToSendMoveEvent(!0,e)}onPointerMoveOver(e){}onPointerMoveOut(e){}onWheel(e){}tryToSendMoveEvent(e,n){e&&this.shouldCancelWhenOutside||!this.enabled||(this.active&&this.sendEvent(this.currentState,this.currentState),this.tryToSendTouchEvent(n))}tryToSendTouchEvent(e){this.config.needsPointerData&&this.sendTouchEvent(e)}sendTouchEvent(e){if(!this.enabled)return;const{onGestureHandlerEvent:n}=this.propsRef.current,r=this.transformTouchEvent(e);r&&os(n,r)}transformEventData(e,n){return{nativeEvent:{numberOfPointers:this.tracker.getTrackedPointersCount(),state:e,pointerInside:this.delegate.isPointerInBounds(this.tracker.getAbsoluteCoordsAverage()),...this.transformNativeEvent(),handlerTag:this.handlerTag,target:this.viewRef,oldState:e!==n?n:void 0,pointerType:this.pointerType},timeStamp:Date.now()}}transformTouchEvent(e){const n=this.delegate.measureView(),r=[],i=[],a=this.tracker.getData();if(a.size===0||!a.has(e.pointerId))return;a.forEach((l,c)=>{const u=this.tracker.getMappedTouchEventId(c);r.push({id:u,x:l.abosoluteCoords.x-n.pageX,y:l.abosoluteCoords.y-n.pageY,absoluteX:l.abosoluteCoords.x,absoluteY:l.abosoluteCoords.y})}),e.eventType!==ce.CANCEL?i.push({id:this.tracker.getMappedTouchEventId(e.pointerId),x:e.x-n.pageX,y:e.y-n.pageY,absoluteX:e.x,absoluteY:e.y}):a.forEach((l,c)=>{const u=this.tracker.getMappedTouchEventId(c);i.push({id:u,x:l.abosoluteCoords.x-n.pageX,y:l.abosoluteCoords.y-n.pageY,absoluteX:l.abosoluteCoords.x,absoluteY:l.abosoluteCoords.y})});let s=wr.UNDETERMINED;switch(e.eventType){case ce.DOWN:case ce.ADDITIONAL_POINTER_DOWN:s=wr.DOWN;break;case ce.UP:case ce.ADDITIONAL_POINTER_UP:s=wr.UP;break;case ce.MOVE:s=wr.MOVE;break;case ce.CANCEL:s=wr.CANCELLED;break}let o=r.length;return(e.eventType===ce.UP||e.eventType===ce.ADDITIONAL_POINTER_UP)&&--o,{nativeEvent:{handlerTag:this.handlerTag,state:this.currentState,eventType:s,changedTouches:i,allTouches:r,numberOfTouches:o,pointerType:this.pointerType},timeStamp:Date.now()}}cancelTouches(){const e=this.delegate.measureView(),n=[],r=[],i=this.tracker.getData();if(i.size===0)return;i.forEach((o,l)=>{const c=this.tracker.getMappedTouchEventId(l);n.push({id:c,x:o.abosoluteCoords.x-e.pageX,y:o.abosoluteCoords.y-e.pageY,absoluteX:o.abosoluteCoords.x,absoluteY:o.abosoluteCoords.y}),r.push({id:c,x:o.abosoluteCoords.x-e.pageX,y:o.abosoluteCoords.y-e.pageY,absoluteX:o.abosoluteCoords.x,absoluteY:o.abosoluteCoords.y})});const a={nativeEvent:{handlerTag:this.handlerTag,state:this.currentState,eventType:wr.CANCELLED,changedTouches:r,allTouches:n,numberOfTouches:n.length,pointerType:this.pointerType},timeStamp:Date.now()},{onGestureHandlerEvent:s}=this.propsRef.current;os(s,a)}transformNativeEvent(){const e=this.tracker.getAbsoluteCoordsAverage(),n=this.tracker.getRelativeCoordsAverage();return{x:n.x,y:n.y,absoluteX:e.x,absoluteY:e.y}}updateGestureConfig({enabled:e=!0,...n}){if(this.config={enabled:e,...n},this.enabled=e,this.delegate.onEnabledChange(e),this.config.shouldCancelWhenOutside!==void 0&&this.setShouldCancelWhenOutside(this.config.shouldCancelWhenOutside),this.validateHitSlops(),!this.enabled)switch(this.currentState){case V.ACTIVE:this.fail(!0);break;case V.UNDETERMINED:rn.getInstance().removeHandlerFromOrchestrator(this);break;default:this.cancel(!0);break}}checkCustomActivationCriteria(e){for(const n in this.config)e.indexOf(n)>=0&&(this.hasCustomActivationCriteria=!0)}validateHitSlops(){if(this.config.hitSlop){if(this.config.hitSlop.left!==void 0&&this.config.hitSlop.right!==void 0&&this.config.hitSlop.width!==void 0)throw new Error("HitSlop Error: Cannot define left, right and width at the same time");if(this.config.hitSlop.width!==void 0&&this.config.hitSlop.left===void 0&&this.config.hitSlop.right===void 0)throw new Error("HitSlop Error: When width is defined, either left or right has to be defined");if(this.config.hitSlop.height!==void 0&&this.config.hitSlop.top!==void 0&&this.config.hitSlop.bottom!==void 0)throw new Error("HitSlop Error: Cannot define top, bottom and height at the same time");if(this.config.hitSlop.height!==void 0&&this.config.hitSlop.top===void 0&&this.config.hitSlop.bottom===void 0)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:e,height:n}=this.delegate.measureView();let r=0,i=0,a=e,s=n;this.config.hitSlop.horizontal!==void 0&&(r-=this.config.hitSlop.horizontal,a+=this.config.hitSlop.horizontal),this.config.hitSlop.vertical!==void 0&&(i-=this.config.hitSlop.vertical,s+=this.config.hitSlop.vertical),this.config.hitSlop.left!==void 0&&(r=-this.config.hitSlop.left),this.config.hitSlop.right!==void 0&&(a=e+this.config.hitSlop.right),this.config.hitSlop.top!==void 0&&(i=-this.config.hitSlop.top),this.config.hitSlop.bottom!==void 0&&(s=e+this.config.hitSlop.bottom),this.config.hitSlop.width!==void 0&&(this.config.hitSlop.left!==void 0?a=r+this.config.hitSlop.width:this.config.hitSlop.right!==void 0&&(r=a-this.config.hitSlop.width)),this.config.hitSlop.height!==void 0&&(this.config.hitSlop.top!==void 0?s=i+this.config.hitSlop.height:this.config.hitSlop.bottom!==void 0&&(i=s-this.config.hitSlop.height));const o=this.delegate.measureView(),{x:l,y:c}=this.tracker.getLastAbsoluteCoords(),u=l-o.pageX,A=c-o.pageY;return u>=r&&u<=a&&A>=i&&A<=s}isButtonInConfig(e){return!e||!this.config.mouseButton&&e===bn.LEFT||this.config.mouseButton&&e&this.config.mouseButton}resetConfig(){}onDestroy(){this.delegate.destroy(this.config)}getTag(){return this.handlerTag}setTag(e){this.handlerTag=e}getConfig(){return this.config}getDelegate(){return this.delegate}getTracker(){return this.tracker}getTrackedPointersID(){return this.tracker.getTrackedPointersID()}getState(){return this.currentState}isEnabled(){return this.enabled}isFinished(){return this.currentState===V.END||this.currentState===V.FAILED||this.currentState===V.CANCELLED}setShouldCancelWhenOutside(e){this.shouldCancelWhenOutside=e}getShouldCancelWhenOutside(){return this.shouldCancelWhenOutside}getPointerType(){return this.pointerType}};function os(t,e){if(!t)return;if(typeof t=="function"){t(e);return}if("__getHandler"in t&&typeof t.__getHandler=="function"){const r=t.__getHandler();os(r,e);return}if(!("__nodeConfig"in t))return;const{argMapping:n}=t.__nodeConfig;if(Array.isArray(n))for(const[r,[i,a]]of n.entries()){if(!(i in e.nativeEvent))continue;const s=e.nativeEvent[i];a!=null&&a.setValue?a.setValue(s):t.__nodeConfig.argMapping[r]=[i,s]}}function _e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Og=1,kg=10,Vu=ga*ga;let _8=class extends pr{constructor(...e){super(...e),_e(this,"customActivationProperties",["activeOffsetXStart","activeOffsetXEnd","failOffsetXStart","failOffsetXEnd","activeOffsetYStart","activeOffsetYEnd","failOffsetYStart","failOffsetYEnd","minVelocityX","minVelocityY","minVelocity"]),_e(this,"velocityX",0),_e(this,"velocityY",0),_e(this,"minDistSq",Vu),_e(this,"activeOffsetXStart",-Number.MAX_SAFE_INTEGER),_e(this,"activeOffsetXEnd",Number.MIN_SAFE_INTEGER),_e(this,"failOffsetXStart",Number.MIN_SAFE_INTEGER),_e(this,"failOffsetXEnd",Number.MAX_SAFE_INTEGER),_e(this,"activeOffsetYStart",Number.MAX_SAFE_INTEGER),_e(this,"activeOffsetYEnd",Number.MIN_SAFE_INTEGER),_e(this,"failOffsetYStart",Number.MIN_SAFE_INTEGER),_e(this,"failOffsetYEnd",Number.MAX_SAFE_INTEGER),_e(this,"minVelocityX",Number.MAX_SAFE_INTEGER),_e(this,"minVelocityY",Number.MAX_SAFE_INTEGER),_e(this,"minVelocitySq",Number.MAX_SAFE_INTEGER),_e(this,"minPointers",Og),_e(this,"maxPointers",kg),_e(this,"startX",0),_e(this,"startY",0),_e(this,"offsetX",0),_e(this,"offsetY",0),_e(this,"lastX",0),_e(this,"lastY",0),_e(this,"stylusData",void 0),_e(this,"activateAfterLongPress",0),_e(this,"activationTimeout",0),_e(this,"enableTrackpadTwoFingerGesture",!1),_e(this,"endWheelTimeout",0),_e(this,"wheelDevice",br.UNDETERMINED)}init(e,n){super.init(e,n)}updateGestureConfig({enabled:e=!0,...n}){this.resetConfig(),super.updateGestureConfig({enabled:e,...n}),this.checkCustomActivationCriteria(this.customActivationProperties),this.config.minDist!==void 0?this.minDistSq=this.config.minDist*this.config.minDist:this.hasCustomActivationCriteria&&(this.minDistSq=Number.MAX_SAFE_INTEGER),this.config.minPointers!==void 0&&(this.minPointers=this.config.minPointers),this.config.maxPointers!==void 0&&(this.maxPointers=this.config.maxPointers),this.config.minVelocity!==void 0&&(this.minVelocityX=this.config.minVelocity,this.minVelocityY=this.config.minVelocity),this.config.minVelocityX!==void 0&&(this.minVelocityX=this.config.minVelocityX),this.config.minVelocityY!==void 0&&(this.minVelocityY=this.config.minVelocityY),this.config.activateAfterLongPress!==void 0&&(this.activateAfterLongPress=this.config.activateAfterLongPress),this.config.activeOffsetXStart!==void 0&&(this.activeOffsetXStart=this.config.activeOffsetXStart,this.config.activeOffsetXEnd===void 0&&(this.activeOffsetXEnd=Number.MAX_SAFE_INTEGER)),this.config.activeOffsetXEnd!==void 0&&(this.activeOffsetXEnd=this.config.activeOffsetXEnd,this.config.activeOffsetXStart===void 0&&(this.activeOffsetXStart=Number.MIN_SAFE_INTEGER)),this.config.failOffsetXStart!==void 0&&(this.failOffsetXStart=this.config.failOffsetXStart,this.config.failOffsetXEnd===void 0&&(this.failOffsetXEnd=Number.MAX_SAFE_INTEGER)),this.config.failOffsetXEnd!==void 0&&(this.failOffsetXEnd=this.config.failOffsetXEnd,this.config.failOffsetXStart===void 0&&(this.failOffsetXStart=Number.MIN_SAFE_INTEGER)),this.config.activeOffsetYStart!==void 0&&(this.activeOffsetYStart=this.config.activeOffsetYStart,this.config.activeOffsetYEnd===void 0&&(this.activeOffsetYEnd=Number.MAX_SAFE_INTEGER)),this.config.activeOffsetYEnd!==void 0&&(this.activeOffsetYEnd=this.config.activeOffsetYEnd,this.config.activeOffsetYStart===void 0&&(this.activeOffsetYStart=Number.MIN_SAFE_INTEGER)),this.config.failOffsetYStart!==void 0&&(this.failOffsetYStart=this.config.failOffsetYStart,this.config.failOffsetYEnd===void 0&&(this.failOffsetYEnd=Number.MAX_SAFE_INTEGER)),this.config.failOffsetYEnd!==void 0&&(this.failOffsetYEnd=this.config.failOffsetYEnd,this.config.failOffsetYStart===void 0&&(this.failOffsetYStart=Number.MIN_SAFE_INTEGER)),this.config.enableTrackpadTwoFingerGesture!==void 0&&(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=Vu,this.minPointers=Og,this.maxPointers=kg,this.activateAfterLongPress=0}transformNativeEvent(){const e=this.getTranslationX(),n=this.getTranslationY();return{...super.transformNativeEvent(),translationX:isNaN(e)?0:e,translationY:isNaN(n)?0:n,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)}onPointerDown(e){if(!this.isButtonInConfig(e.button))return;this.tracker.addToTracker(e),this.stylusData=e.stylusData,super.onPointerDown(e);const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y,this.startX=this.lastX,this.startY=this.lastY,this.tryBegin(e),this.checkBegan(),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e),this.tryBegin(e),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY;const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y,this.startX=this.lastX,this.startY=this.lastY,this.tracker.getTrackedPointersCount()>this.maxPointers?this.currentState===V.ACTIVE?this.cancel():this.fail():this.checkBegan()}onPointerUp(e){if(this.stylusData=e.stylusData,super.onPointerUp(e),this.currentState===V.ACTIVE){const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y}this.tracker.removeFromTracker(e.pointerId),this.tracker.getTrackedPointersCount()===0&&this.clearActivationTimeout(),this.currentState===V.ACTIVE?this.end():(this.resetProgress(),this.fail())}onPointerRemove(e){super.onPointerRemove(e),this.tracker.removeFromTracker(e.pointerId),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY;const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y,this.startX=this.lastX,this.startY=this.lastY,this.currentState===V.ACTIVE&&this.tracker.getTrackedPointersCount()<this.minPointers||this.checkBegan()}onPointerMove(e){this.tracker.track(e),this.stylusData=e.stylusData;const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y;const r=this.tracker.getVelocity(e.pointerId);this.velocityX=r.x,this.velocityY=r.y,this.checkBegan(),super.onPointerMove(e)}onPointerOutOfBounds(e){if(this.getShouldCancelWhenOutside())return;this.tracker.track(e),this.stylusData=e.stylusData;const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y;const r=this.tracker.getVelocity(e.pointerId);this.velocityX=r.x,this.velocityY=r.y,this.checkBegan(),this.currentState===V.ACTIVE&&super.onPointerOutOfBounds(e)}scheduleWheelEnd(e){clearTimeout(this.endWheelTimeout),this.endWheelTimeout=setTimeout(()=>{this.currentState===V.ACTIVE&&(this.end(),this.tracker.removeFromTracker(e.pointerId),this.currentState=V.UNDETERMINED),this.wheelDevice=br.UNDETERMINED},30)}onWheel(e){if(this.wheelDevice===br.MOUSE||!this.enableTrackpadTwoFingerGesture)return;if(this.currentState===V.UNDETERMINED){if(this.wheelDevice=e.wheelDeltaY%120!==0?br.TOUCHPAD:br.MOUSE,this.wheelDevice===br.MOUSE){this.scheduleWheelEnd(e);return}this.tracker.addToTracker(e);const i=this.tracker.getAbsoluteCoordsAverage();this.lastX=i.x,this.lastY=i.y,this.startX=this.lastX,this.startY=this.lastY,this.begin(),this.activate()}this.tracker.track(e);const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y;const r=this.tracker.getVelocity(e.pointerId);this.velocityX=r.x,this.velocityY=r.y,this.tryToSendMoveEvent(!1,e),this.scheduleWheelEnd(e)}shouldActivate(){const e=this.getTranslationX();if(this.activeOffsetXStart!==Number.MAX_SAFE_INTEGER&&e<this.activeOffsetXStart||this.activeOffsetXEnd!==Number.MIN_SAFE_INTEGER&&e>this.activeOffsetXEnd)return!0;const n=this.getTranslationY();if(this.activeOffsetYStart!==Number.MAX_SAFE_INTEGER&&n<this.activeOffsetYStart||this.activeOffsetYEnd!==Number.MIN_SAFE_INTEGER&&n>this.activeOffsetYEnd)return!0;const r=e*e+n*n;if(this.minDistSq!==Number.MAX_SAFE_INTEGER&&r>=this.minDistSq)return!0;const i=this.velocityX;if(this.minVelocityX!==Number.MAX_SAFE_INTEGER&&(this.minVelocityX<0&&i<=this.minVelocityX||this.minVelocityX>=0&&this.minVelocityX<=i))return!0;const a=this.velocityY;if(this.minVelocityY!==Number.MAX_SAFE_INTEGER&&(this.minVelocityY<0&&a<=this.minVelocityY||this.minVelocityY>=0&&this.minVelocityY<=a))return!0;const s=i*i+a*a;return this.minVelocitySq!==Number.MAX_SAFE_INTEGER&&s>=this.minVelocitySq}shouldFail(){const e=this.getTranslationX(),n=this.getTranslationY(),r=e*e+n*n;return this.activateAfterLongPress>0&&r>Vu?(this.clearActivationTimeout(),!0):this.failOffsetXStart!==Number.MIN_SAFE_INTEGER&&e<this.failOffsetXStart||this.failOffsetXEnd!==Number.MAX_SAFE_INTEGER&&e>this.failOffsetXEnd||this.failOffsetYStart!==Number.MIN_SAFE_INTEGER&&n<this.failOffsetYStart?!0:this.failOffsetYEnd!==Number.MAX_SAFE_INTEGER&&n>this.failOffsetYEnd}tryBegin(e){if(this.currentState===V.UNDETERMINED&&this.tracker.getTrackedPointersCount()>=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));else{const n=this.tracker.getVelocity(e.pointerId);this.velocityX=n.x,this.velocityY=n.y}}checkBegan(){this.currentState===V.BEGAN&&(this.shouldFail()?this.fail():this.shouldActivate()&&this.activate())}activate(e=!1){this.currentState!==V.ACTIVE&&this.resetProgress(),super.activate(e)}onCancel(){this.clearActivationTimeout()}onReset(){this.clearActivationTimeout()}resetProgress(){this.currentState!==V.ACTIVE&&(this.startX=this.lastX,this.startY=this.lastY)}};function at(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Mg=500,Pg=500,Fg=1,Rg=1;let D8=class extends pr{constructor(...e){super(...e),at(this,"maxDeltaX",Number.MIN_SAFE_INTEGER),at(this,"maxDeltaY",Number.MIN_SAFE_INTEGER),at(this,"maxDistSq",Number.MIN_SAFE_INTEGER),at(this,"maxDurationMs",Mg),at(this,"maxDelayMs",Pg),at(this,"numberOfTaps",Fg),at(this,"minNumberOfPointers",Rg),at(this,"currentMaxNumberOfPointers",1),at(this,"startX",0),at(this,"startY",0),at(this,"offsetX",0),at(this,"offsetY",0),at(this,"lastX",0),at(this,"lastY",0),at(this,"waitTimeout",void 0),at(this,"delayTimeout",void 0),at(this,"tapsSoFar",0)}init(e,n){super.init(e,n)}updateGestureConfig({enabled:e=!0,...n}){super.updateGestureConfig({enabled:e,...n}),this.config.numberOfTaps!==void 0&&(this.numberOfTaps=this.config.numberOfTaps),this.config.maxDurationMs!==void 0&&(this.maxDurationMs=this.config.maxDurationMs),this.config.maxDelayMs!==void 0&&(this.maxDelayMs=this.config.maxDelayMs),this.config.maxDeltaX!==void 0&&(this.maxDeltaX=this.config.maxDeltaX),this.config.maxDeltaY!==void 0&&(this.maxDeltaY=this.config.maxDeltaY),this.config.maxDist!==void 0&&(this.maxDistSq=this.config.maxDist*this.config.maxDist),this.config.minPointers!==void 0&&(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=Mg,this.maxDelayMs=Pg,this.numberOfTaps=Fg,this.minNumberOfPointers=Rg}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)}onPointerDown(e){this.isButtonInConfig(e.button)&&(this.tracker.addToTracker(e),super.onPointerDown(e),this.trySettingPosition(e),this.startX=e.x,this.startY=e.y,this.lastX=e.x,this.lastY=e.y,this.updateState(e),this.tryToSendTouchEvent(e))}onPointerAdd(e){super.onPointerAdd(e),this.tracker.addToTracker(e),this.trySettingPosition(e),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY;const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y,this.startX=n.x,this.startY=n.y,this.updateState(e)}onPointerUp(e){super.onPointerUp(e);const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y,this.tracker.removeFromTracker(e.pointerId),this.updateState(e)}onPointerRemove(e){super.onPointerRemove(e),this.tracker.removeFromTracker(e.pointerId),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY=this.startY;const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y,this.startX=this.lastX,this.startY=this.lastY,this.updateState(e)}onPointerMove(e){this.trySettingPosition(e),this.tracker.track(e);const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y,this.updateState(e),super.onPointerMove(e)}onPointerOutOfBounds(e){this.trySettingPosition(e),this.tracker.track(e);const n=this.tracker.getAbsoluteCoordsAverage();this.lastX=n.x,this.lastY=n.y,this.updateState(e),super.onPointerOutOfBounds(e)}updateState(e){if(this.currentMaxNumberOfPointers<this.tracker.getTrackedPointersCount()&&(this.currentMaxNumberOfPointers=this.tracker.getTrackedPointersCount()),this.shouldFail()){this.fail();return}switch(this.currentState){case V.UNDETERMINED:e.eventType===ce.DOWN&&this.begin(),this.startTap();break;case V.BEGAN:e.eventType===ce.UP&&this.endTap(),e.eventType===ce.DOWN&&this.startTap();break}}trySettingPosition(e){this.currentState===V.UNDETERMINED&&(this.offsetX=0,this.offsetY=0,this.startX=e.x,this.startY=e.y)}shouldFail(){const e=this.lastX-this.startX+this.offsetX;if(this.maxDeltaX!==Number.MIN_SAFE_INTEGER&&Math.abs(e)>this.maxDeltaX)return!0;const n=this.lastY-this.startY+this.offsetY;if(this.maxDeltaY!==Number.MIN_SAFE_INTEGER&&Math.abs(n)>this.maxDeltaY)return!0;const r=n*n+e*e;return this.maxDistSq!==Number.MIN_SAFE_INTEGER&&r>this.maxDistSq}activate(){super.activate(),this.end()}onCancel(){this.resetProgress(),this.clearTimeouts()}resetProgress(){this.clearTimeouts(),this.tapsSoFar=0,this.currentMaxNumberOfPointers=0}};function Hn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ng=500,T8=10,O8=10;let k8=class extends pr{constructor(...e){super(...e),Hn(this,"minDurationMs",Ng),Hn(this,"defaultMaxDistSq",T8*O8),Hn(this,"maxDistSq",this.defaultMaxDistSq),Hn(this,"numberOfPointers",1),Hn(this,"startX",0),Hn(this,"startY",0),Hn(this,"startTime",0),Hn(this,"previousTime",0),Hn(this,"activationTimeout",void 0)}init(e,n){this.config.enableContextMenu===void 0&&(this.config.enableContextMenu=!1),super.init(e,n)}transformNativeEvent(){return{...super.transformNativeEvent(),duration:Date.now()-this.startTime}}updateGestureConfig({enabled:e=!0,...n}){super.updateGestureConfig({enabled:e,...n}),this.config.minDurationMs!==void 0&&(this.minDurationMs=this.config.minDurationMs),this.config.maxDist!==void 0&&(this.maxDistSq=this.config.maxDist*this.config.maxDist),this.config.numberOfPointers!==void 0&&(this.numberOfPointers=this.config.numberOfPointers)}resetConfig(){super.resetConfig(),this.minDurationMs=Ng,this.maxDistSq=this.defaultMaxDistSq}onStateChange(e,n){clearTimeout(this.activationTimeout)}onPointerDown(e){this.isButtonInConfig(e.button)&&(this.tracker.addToTracker(e),super.onPointerDown(e),this.startX=e.x,this.startY=e.y,this.tryBegin(),this.tryActivate(),this.tryToSendTouchEvent(e))}onPointerAdd(e){if(super.onPointerAdd(e),this.tracker.addToTracker(e),this.tracker.getTrackedPointersCount()>this.numberOfPointers){this.fail();return}const n=this.tracker.getAbsoluteCoordsAverage();this.startX=n.x,this.startY=n.y,this.tryActivate()}onPointerMove(e){super.onPointerMove(e),this.tracker.track(e),this.checkDistanceFail()}onPointerUp(e){super.onPointerUp(e),this.tracker.removeFromTracker(e.pointerId),this.currentState===V.ACTIVE?this.end():this.fail()}onPointerRemove(e){super.onPointerRemove(e),this.tracker.removeFromTracker(e.pointerId),this.tracker.getTrackedPointersCount()<this.numberOfPointers&&this.getState()!==V.ACTIVE&&this.fail()}tryBegin(){this.currentState===V.UNDETERMINED&&(this.previousTime=Date.now(),this.startTime=this.previousTime,this.begin())}tryActivate(){this.tracker.getTrackedPointersCount()===this.numberOfPointers&&(this.minDurationMs>0?this.activationTimeout=setTimeout(()=>{this.activate()},this.minDurationMs):this.minDurationMs===0&&this.activate())}checkDistanceFail(){const e=this.tracker.getAbsoluteCoordsAverage(),n=e.x-this.startX,r=e.y-this.startY;n*n+r*r<=this.maxDistSq||(this.currentState===V.ACTIVE?this.cancel():this.fail())}};function Mt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class M8{constructor(e){Mt(this,"onScaleBegin",void 0),Mt(this,"onScale",void 0),Mt(this,"onScaleEnd",void 0),Mt(this,"focusX",void 0),Mt(this,"focusY",void 0),Mt(this,"currentSpan",void 0),Mt(this,"prevSpan",void 0),Mt(this,"initialSpan",void 0),Mt(this,"currentTime",void 0),Mt(this,"prevTime",void 0),Mt(this,"inProgress",!1),Mt(this,"spanSlop",void 0),Mt(this,"minSpan",void 0),this.onScaleBegin=e.onScaleBegin,this.onScale=e.onScale,this.onScaleEnd=e.onScaleEnd,this.spanSlop=ga*2,this.minSpan=0}onTouchEvent(e,n){this.currentTime=e.time;const r=e.eventType,i=n.getTrackedPointersCount(),a=r===ce.UP||r===ce.ADDITIONAL_POINTER_UP||r===ce.CANCEL;if((r===ce.DOWN||a)&&(this.inProgress&&(this.onScaleEnd(this),this.inProgress=!1,this.initialSpan=0),a))return!0;const s=r===ce.DOWN||r===ce.ADDITIONAL_POINTER_UP||r===ce.ADDITIONAL_POINTER_DOWN,o=r===ce.ADDITIONAL_POINTER_UP,l=o?e.pointerId:void 0,c=o?i-1:i,u=n.getAbsoluteCoordsSum(),A=u.x/c,d=u.y/c;let f=0,p=0;n.getData().forEach((y,x)=>{x!==l&&(f+=Math.abs(y.abosoluteCoords.x-A),p+=Math.abs(y.abosoluteCoords.y-d))});const h=f/c,g=p/c,E=h*2,m=g*2,v=Math.hypot(E,m),C=this.inProgress;return this.focusX=A,this.focusY=d,this.inProgress&&(v<this.minSpan||s)&&(this.onScaleEnd(this),this.inProgress=!1,this.initialSpan=v),s&&(this.initialSpan=this.prevSpan=this.currentSpan=v),!this.inProgress&&v>=this.minSpan&&(C||Math.abs(v-this.initialSpan)>this.spanSlop)&&(this.prevSpan=this.currentSpan=v,this.prevTime=this.currentTime,this.inProgress=this.onScaleBegin(this)),r!==ce.MOVE||(this.currentSpan=v,this.inProgress&&!this.onScale(this))||(this.prevSpan=this.currentSpan,this.prevTime=this.currentTime),!0}getCurrentSpan(){return this.currentSpan}getFocusX(){return this.focusX}getFocusY(){return this.focusY}getTimeDelta(){return this.currentTime-this.prevTime}getScaleFactor(e){return e<2?1:this.prevSpan>0?this.currentSpan/this.prevSpan:1}}function Ki(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let P8=class extends pr{constructor(...e){super(...e),Ki(this,"scale",1),Ki(this,"velocity",0),Ki(this,"startingSpan",0),Ki(this,"spanSlop",ga),Ki(this,"scaleDetectorListener",{onScaleBegin:n=>(this.startingSpan=n.getCurrentSpan(),!0),onScale:n=>{const r=this.scale;this.scale*=n.getScaleFactor(this.tracker.getTrackedPointersCount());const i=n.getTimeDelta();return i>0&&(this.velocity=(this.scale-r)/i),Math.abs(this.startingSpan-n.getCurrentSpan())>=this.spanSlop&&this.currentState===V.BEGAN&&this.activate(),!0},onScaleEnd:n=>{}}),Ki(this,"scaleGestureDetector",new M8(this.scaleDetectorListener))}init(e,n){super.init(e,n),this.setShouldCancelWhenOutside(!1)}updateGestureConfig({enabled:e=!0,...n}){super.updateGestureConfig({enabled:e,...n})}transformNativeEvent(){return{focalX:this.scaleGestureDetector.getFocusX(),focalY:this.scaleGestureDetector.getFocusY(),velocity:this.velocity,scale:this.scale}}onPointerDown(e){this.tracker.addToTracker(e),super.onPointerDown(e),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e),this.tryBegin(),this.scaleGestureDetector.onTouchEvent(e,this.tracker)}onPointerUp(e){super.onPointerUp(e),this.tracker.removeFromTracker(e.pointerId),this.currentState===V.ACTIVE&&(this.scaleGestureDetector.onTouchEvent(e,this.tracker),this.currentState===V.ACTIVE?this.end():this.fail())}onPointerRemove(e){super.onPointerRemove(e),this.scaleGestureDetector.onTouchEvent(e,this.tracker),this.tracker.removeFromTracker(e.pointerId),this.currentState===V.ACTIVE&&this.tracker.getTrackedPointersCount()<2&&this.end()}onPointerMove(e){this.tracker.getTrackedPointersCount()<2||(this.tracker.track(e),this.scaleGestureDetector.onTouchEvent(e,this.tracker),super.onPointerMove(e))}onPointerOutOfBounds(e){this.tracker.getTrackedPointersCount()<2||(this.tracker.track(e),this.scaleGestureDetector.onTouchEvent(e,this.tracker),super.onPointerOutOfBounds(e))}tryBegin(){this.currentState===V.UNDETERMINED&&(this.resetProgress(),this.begin())}activate(e){this.currentState!==V.ACTIVE&&this.resetProgress(),super.activate(e)}onReset(){this.resetProgress()}resetProgress(){this.currentState!==V.ACTIVE&&(this.velocity=0,this.scale=1)}};function Qt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class F8{constructor(e){Qt(this,"onRotationBegin",void 0),Qt(this,"onRotation",void 0),Qt(this,"onRotationEnd",void 0),Qt(this,"currentTime",0),Qt(this,"previousTime",0),Qt(this,"previousAngle",0),Qt(this,"rotation",0),Qt(this,"anchorX",0),Qt(this,"anchorY",0),Qt(this,"isInProgress",!1),Qt(this,"keyPointers",[NaN,NaN]),this.onRotationBegin=e.onRotationBegin,this.onRotation=e.onRotation,this.onRotationEnd=e.onRotationEnd}updateCurrent(e,n){this.previousTime=this.currentTime,this.currentTime=e.time;const[r,i]=this.keyPointers,a=n.getLastAbsoluteCoords(r),s=n.getLastAbsoluteCoords(i),o=s.x-a.x,l=s.y-a.y;this.anchorX=(a.x+s.x)/2,this.anchorY=(a.y+s.y)/2;const c=-Math.atan2(l,o);this.rotation=Number.isNaN(this.previousAngle)?0:this.previousAngle-c,this.previousAngle=c,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(e){if(this.keyPointers[0]&&this.keyPointers[1])return;const n=e.getData().keys();this.keyPointers[0]=n.next().value,this.keyPointers[1]=n.next().value}onTouchEvent(e,n){switch(e.eventType){case ce.DOWN:this.isInProgress=!1;break;case ce.ADDITIONAL_POINTER_DOWN:if(this.isInProgress)break;this.isInProgress=!0,this.previousTime=e.time,this.previousAngle=NaN,this.setKeyPointers(n),this.updateCurrent(e,n),this.onRotationBegin(this);break;case ce.MOVE:if(!this.isInProgress)break;this.updateCurrent(e,n),this.onRotation(this);break;case ce.ADDITIONAL_POINTER_UP:if(!this.isInProgress)break;this.keyPointers.indexOf(e.pointerId)>=0&&this.finish();break;case ce.UP:this.isInProgress&&this.finish();break}return!0}getTimeDelta(){return this.currentTime+this.previousTime}getAnchorX(){return this.anchorX}getAnchorY(){return this.anchorY}getRotation(){return this.rotation}reset(){this.keyPointers=[NaN,NaN],this.isInProgress=!1}}function $i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const R8=Math.PI/36;let N8=class extends pr{constructor(...e){super(...e),$i(this,"rotation",0),$i(this,"velocity",0),$i(this,"cachedAnchorX",0),$i(this,"cachedAnchorY",0),$i(this,"rotationGestureListener",{onRotationBegin:n=>!0,onRotation:n=>{const r=this.rotation;this.rotation+=n.getRotation();const i=n.getTimeDelta();return i>0&&(this.velocity=(this.rotation-r)/i),Math.abs(this.rotation)>=R8&&this.currentState===V.BEGAN&&this.activate(),!0},onRotationEnd:n=>{this.end()}}),$i(this,"rotationGestureDetector",new F8(this.rotationGestureListener))}init(e,n){super.init(e,n),this.setShouldCancelWhenOutside(!1)}updateGestureConfig({enabled:e=!0,...n}){super.updateGestureConfig({enabled:e,...n})}transformNativeEvent(){return{rotation:this.rotation?this.rotation:0,anchorX:this.getAnchorX(),anchorY:this.getAnchorY(),velocity:this.velocity?this.velocity:0}}getAnchorX(){const e=this.rotationGestureDetector.getAnchorX();return e||this.cachedAnchorX}getAnchorY(){const e=this.rotationGestureDetector.getAnchorY();return e||this.cachedAnchorY}onPointerDown(e){this.tracker.addToTracker(e),super.onPointerDown(e),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e),this.tryBegin(),this.rotationGestureDetector.onTouchEvent(e,this.tracker)}onPointerMove(e){this.tracker.getTrackedPointersCount()<2||(this.getAnchorX()&&(this.cachedAnchorX=this.getAnchorX()),this.getAnchorY()&&(this.cachedAnchorY=this.getAnchorY()),this.tracker.track(e),this.rotationGestureDetector.onTouchEvent(e,this.tracker),super.onPointerMove(e))}onPointerOutOfBounds(e){this.tracker.getTrackedPointersCount()<2||(this.getAnchorX()&&(this.cachedAnchorX=this.getAnchorX()),this.getAnchorY()&&(this.cachedAnchorY=this.getAnchorY()),this.tracker.track(e),this.rotationGestureDetector.onTouchEvent(e,this.tracker),super.onPointerOutOfBounds(e))}onPointerUp(e){super.onPointerUp(e),this.tracker.removeFromTracker(e.pointerId),this.rotationGestureDetector.onTouchEvent(e,this.tracker),this.currentState===V.ACTIVE&&(this.currentState===V.ACTIVE?this.end():this.fail())}onPointerRemove(e){super.onPointerRemove(e),this.rotationGestureDetector.onTouchEvent(e,this.tracker),this.tracker.removeFromTracker(e.pointerId)}tryBegin(){this.currentState===V.UNDETERMINED&&this.begin()}activate(e){super.activate()}onReset(){this.currentState!==V.ACTIVE&&(this.rotation=0,this.velocity=0,this.rotationGestureDetector.reset())}};const ZA=1,JA=2,ef=4,tf=8,si={RIGHT:ZA,LEFT:JA,UP:ef,DOWN:tf},ls={UP_RIGHT:ef|ZA,DOWN_RIGHT:tf|ZA,UP_LEFT:ef|JA,DOWN_LEFT:tf|JA};function Ga(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Gt{constructor(e,n){Ga(this,"x",void 0),Ga(this,"y",void 0),Ga(this,"unitX",void 0),Ga(this,"unitY",void 0),Ga(this,"_magnitude",void 0),this.x=e,this.y=n,this._magnitude=Math.hypot(this.x,this.y);const r=this._magnitude>E8;this.unitX=r?this.x/this._magnitude:0,this.unitY=r?this.y/this._magnitude:0}static fromDirection(e){var n;return(n=B8.get(e))!==null&&n!==void 0?n:new Gt(0,0)}static fromVelocity(e,n){const r=e.getVelocity(n);return new Gt(r.x,r.y)}get magnitude(){return this._magnitude}computeSimilarity(e){return this.unitX*e.unitX+this.unitY*e.unitY}isSimilar(e,n){return this.computeSimilarity(e)>n}}const B8=new Map([[si.LEFT,new Gt(-1,0)],[si.RIGHT,new Gt(1,0)],[si.UP,new Gt(0,-1)],[si.DOWN,new Gt(0,1)],[ls.UP_RIGHT,new Gt(1,-1)],[ls.DOWN_RIGHT,new Gt(1,1)],[ls.UP_LEFT,new Gt(-1,-1)],[ls.DOWN_LEFT,new Gt(-1,1)]]);function nf(t,{x:e,y:n}){const r=t.getBoundingClientRect();return e>=r.left&&e<=r.right&&n>=r.top&&n<=r.bottom}const QE=new Map([["mouse",xt.MOUSE],["touch",xt.TOUCH],["pen",xt.STYLUS],["none",xt.OTHER]]),G8=t=>t*Math.PI/180,ZE=t=>Math.cos(G8(t/2));function L8(t){var e;const n=getComputedStyle(t),r={scaleX:1,scaleY:1};if(n.scale!==void 0&&n.scale!=="none"){const a=n.scale.split(" ");a[0]&&(r.scaleX=parseFloat(a[0])),r.scaleY=a[1]?parseFloat(a[1]):parseFloat(a[0])}const i=(e=new RegExp(/matrix\((.+)\)/).exec(n.transform))===null||e===void 0?void 0:e[1];if(i){const a=i.split(", ");r.scaleX*=parseFloat(a[0]),r.scaleY*=parseFloat(a[3])}return r}function V8(t){if(QE.get(t.pointerType)!==xt.STYLUS)return;const n=t.azimuthAngle,r=t.altitudeAngle;if(t.tiltX===0&&t.tiltY===0){if(n===void 0||r===void 0)return{tiltX:0,tiltY:0,azimuthAngle:Math.PI/2,altitudeAngle:Math.PI/2,pressure:t.pressure};const{tiltX:s,tiltY:o}=U8(r,n);return{tiltX:s,tiltY:o,azimuthAngle:n,altitudeAngle:r,pressure:t.pressure}}const{altitudeAngle:i,azimuthAngle:a}=H8(t.tiltX,t.tiltY);return{tiltX:t.tiltX,tiltY:t.tiltY,azimuthAngle:a,altitudeAngle:i,pressure:t.pressure}}function H8(t,e){const n=t*Math.PI/180,r=e*Math.PI/180;let i=0;if(t===0)e>0?i=Math.PI/2:e<0&&(i=3*Math.PI/2);else if(e===0)t<0&&(i=Math.PI);else if(Math.abs(t)===90||Math.abs(e)===90)i=0;else{const s=Math.tan(n),o=Math.tan(r);i=Math.atan2(o,s),i<0&&(i+=2*Math.PI)}let a=0;return Math.abs(t)===90||Math.abs(e)===90?a=0:t===0?a=Math.PI/2-Math.abs(r):e===0?a=Math.PI/2-Math.abs(n):a=Math.atan(1/Math.sqrt(Math.pow(Math.tan(n),2)+Math.pow(Math.tan(r),2))),{altitudeAngle:a,azimuthAngle:i}}function U8(t,e){const n=180/Math.PI;let r=0,i=0;if(t===0&&((e===0||e===2*Math.PI)&&(r=Math.PI/2),e===Math.PI/2&&(i=Math.PI/2),e===Math.PI&&(r=-Math.PI/2),e===3*Math.PI/2&&(i=-Math.PI/2),e>0&&e<Math.PI/2&&(r=Math.PI/2,i=Math.PI/2),e>Math.PI/2&&e<Math.PI&&(r=-Math.PI/2,i=Math.PI/2),e>Math.PI&&e<3*Math.PI/2&&(r=-Math.PI/2,i=-Math.PI/2),e>3*Math.PI/2&&e<2*Math.PI&&(r=Math.PI/2,i=-Math.PI/2)),t!==0){const o=Math.tan(t);r=Math.atan(Math.cos(e)/o),i=Math.atan(Math.sin(e)/o)}const a=Math.round(r*n),s=Math.round(i*n);return{tiltX:a,tiltY:s}}const W8=["Circle","ClipPath","Ellipse","ForeignObject","G","Image","Line","Marker","Mask","Path","Pattern","Polygon","Polyline","Rect","Svg","Symbol","TSpan","Text","TextPath","Use"];function X8(t){const e=Object.getPrototypeOf(t).constructor.name;return W8.indexOf(e)>=0&&Object.hasOwn(t,"elementRef")}function $r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Y8=800,z8=700,JE=30,Bg=si.RIGHT,Gg=1,q8=ZE(JE),K8=ZE(90-JE);let $8=class extends pr{constructor(...e){super(...e),$r(this,"numberOfPointersRequired",Gg),$r(this,"direction",Bg),$r(this,"maxDurationMs",Y8),$r(this,"minVelocity",z8),$r(this,"delayTimeout",void 0),$r(this,"maxNumberOfPointersSimultaneously",0),$r(this,"keyPointer",NaN)}init(e,n){super.init(e,n)}updateGestureConfig({enabled:e=!0,...n}){super.updateGestureConfig({enabled:e,...n}),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 e=Gt.fromVelocity(this.tracker,this.keyPointer),n=(c,u)=>(c&this.direction)===c&&e.isSimilar(Gt.fromDirection(c),u),r=Object.values(si),i=Object.values(ls),a=r.map(c=>n(c,q8)),s=i.map(c=>n(c,K8)),o=a.some(Boolean)||s.some(Boolean),l=e.magnitude>this.minVelocity;return this.maxNumberOfPointersSimultaneously===this.numberOfPointersRequired&&o&&l?(clearTimeout(this.delayTimeout),this.activate(),!0):!1}endFling(){this.tryEndFling()||this.fail()}onPointerDown(e){this.isButtonInConfig(e.button)&&(this.tracker.addToTracker(e),this.keyPointer=e.pointerId,super.onPointerDown(e),this.newPointerAction(),this.tryToSendTouchEvent(e))}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e),this.newPointerAction()}newPointerAction(){this.currentState===V.UNDETERMINED&&this.startFling(),this.currentState===V.BEGAN&&(this.tryEndFling(),this.tracker.getTrackedPointersCount()>this.maxNumberOfPointersSimultaneously&&(this.maxNumberOfPointersSimultaneously=this.tracker.getTrackedPointersCount()))}pointerMoveAction(e){this.tracker.track(e),this.currentState===V.BEGAN&&this.tryEndFling()}onPointerMove(e){this.pointerMoveAction(e),super.onPointerMove(e)}onPointerOutOfBounds(e){this.pointerMoveAction(e),super.onPointerOutOfBounds(e)}onPointerUp(e){super.onPointerUp(e),this.onUp(e),this.keyPointer=NaN}onPointerRemove(e){super.onPointerRemove(e),this.onUp(e)}onUp(e){this.currentState===V.BEGAN&&this.endFling(),this.tracker.removeFromTracker(e.pointerId)}activate(e){super.activate(e),this.end()}resetConfig(){super.resetConfig(),this.numberOfPointersRequired=Gg,this.direction=Bg}};function ji(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let j8=class ex extends pr{constructor(...e){super(...e),ji(this,"buttonRole",void 0),ji(this,"shouldActivateOnStart",!1),ji(this,"disallowInterruption",!1),ji(this,"startX",0),ji(this,"startY",0),ji(this,"minDistSq",ga*ga)}init(e,n){if(super.init(e,n),this.setShouldCancelWhenOutside(!0),ue.OS!=="web")return;const r=this.delegate.getView();this.restoreViewStyles(r),this.buttonRole=r.getAttribute("role")==="button"}updateGestureConfig({enabled:e=!0,...n}){super.updateGestureConfig({enabled:e,...n}),this.config.shouldActivateOnStart!==void 0&&(this.shouldActivateOnStart=this.config.shouldActivateOnStart),this.config.disallowInterruption!==void 0&&(this.disallowInterruption=this.config.disallowInterruption);const r=this.delegate.getView();this.restoreViewStyles(r)}restoreViewStyles(e){e&&(e.style.touchAction="auto",e.style.WebkitTouchCallout="auto")}resetConfig(){super.resetConfig()}onPointerDown(e){this.tracker.addToTracker(e),super.onPointerDown(e),this.newPointerAction(),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e),this.newPointerAction()}newPointerAction(){const e=this.tracker.getAbsoluteCoordsAverage();this.startX=e.x,this.startY=e.y,this.currentState===V.UNDETERMINED&&(this.begin(),this.buttonRole&&this.activate())}onPointerMove(e){this.tracker.track(e);const n=this.tracker.getAbsoluteCoordsAverage(),r=this.startX-n.x,i=this.startY-n.y;r*r+i*i>=this.minDistSq&&(this.buttonRole&&this.currentState===V.ACTIVE?this.cancel():!this.buttonRole&&this.currentState===V.BEGAN&&this.activate())}onPointerLeave(){(this.currentState===V.BEGAN||this.currentState===V.ACTIVE)&&this.cancel()}onPointerUp(e){super.onPointerUp(e),this.onUp(e)}onPointerRemove(e){super.onPointerRemove(e),this.onUp(e)}onUp(e){this.tracker.removeFromTracker(e.pointerId),this.tracker.getTrackedPointersCount()===0&&(this.currentState===V.ACTIVE?this.end():this.fail())}shouldRecognizeSimultaneously(e){if(super.shouldRecognizeSimultaneously(e))return!0;if(e instanceof ex&&e.getState()===V.ACTIVE&&e.disallowsInterruption())return!1;const n=!this.disallowInterruption;return this.currentState===V.ACTIVE&&e.getState()===V.ACTIVE&&n?!1:this.currentState===V.ACTIVE&&n&&e.getTag()>0}shouldBeCancelledByOther(e){return!this.disallowInterruption}disallowsInterruption(){return this.disallowInterruption}isButton(){return this.buttonRole}};class Q8 extends pr{init(e,n){super.init(e,n)}updateGestureConfig({enabled:e=!0,...n}){super.updateGestureConfig({enabled:e,...n})}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)}}function Z8(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class J8 extends pr{constructor(...e){super(...e),Z8(this,"stylusData",void 0)}init(e,n){super.init(e,n)}transformNativeEvent(){return{...super.transformNativeEvent(),stylusData:this.stylusData}}updateGestureConfig({enabled:e=!0,...n}){super.updateGestureConfig({enabled:e,...n})}onPointerMoveOver(e){rn.getInstance().recordHandlerIfNotPresent(this),this.tracker.addToTracker(e),this.stylusData=e.stylusData,super.onPointerMoveOver(e),this.getState()===V.UNDETERMINED&&(this.begin(),this.activate())}onPointerMoveOut(e){this.tracker.removeFromTracker(e.pointerId),this.stylusData=e.stylusData,super.onPointerMoveOut(e),this.end()}onPointerMove(e){this.tracker.track(e),this.stylusData=e.stylusData,super.onPointerMove(e)}onPointerCancel(e){super.onPointerCancel(e),this.reset()}}/*! Hammer.JS - v2.0.17-rc - 2019-12-16 * http://naver.github.io/egjs * * Forked By Naver egjs * Copyright (c) hammerjs - * Licensed under the MIT license */function cn(){return cn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},cn.apply(this,arguments)}function jt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function go(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var nf;typeof Object.assign!="function"?nf=function(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(i!=null)for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])}return n}:nf=Object.assign;var Ti=nf,Gg=["","webkit","Moz","MS","ms","o"],e3=typeof document>"u"?{style:{}}:document.createElement("div"),t3="function",ta=Math.round,Oi=Math.abs,mh=Date.now;function iu(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),a=0;a<Gg.length;){if(n=Gg[a],r=n?n+i:e,r in t)return r;a++}}var cr;typeof window>"u"?cr={}:cr=window;var tx=iu(e3.style,"touchAction"),nx=tx!==void 0;function n3(){if(!nx)return!1;var t={},e=cr.CSS&&cr.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){return t[n]=e?cr.CSS.supports("touch-action",n):!0}),t}var rx="compute",ix="auto",rf="manipulation",Ii="none",Ms="pan-x",Ps="pan-y",vo=n3(),r3=/mobile|tablet|ip(ad|hone|od)|android/i,ax="ontouchstart"in cr,i3=iu(cr,"PointerEvent")!==void 0,a3=ax&&r3.test(navigator.userAgent),Xs="touch",s3="pen",Ch="mouse",o3="kinect",l3=25,yt=1,Ni=2,ze=4,Dt=8,gl=1,Ys=2,zs=4,qs=8,va=16,Tn=Ys|zs,wi=qs|va,sx=Tn|wi,ox=["x","y"],vl=["clientX","clientY"];function ur(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==void 0)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function au(t,e){return typeof t===t3?t.apply(e&&e[0]||void 0,e):t}function oi(t,e){return t.indexOf(e)>-1}function c3(t){if(oi(t,Ii))return Ii;var e=oi(t,Ms),n=oi(t,Ps);return e&&n?Ii:e||n?e?Ms:Ps:oi(t,rf)?rf:ix}var lx=function(){function t(n,r){this.manager=n,this.set(r)}var e=t.prototype;return e.set=function(r){r===rx&&(r=this.compute()),nx&&this.manager.element.style&&vo[r]&&(this.manager.element.style[tx]=r),this.actions=r.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var r=[];return ur(this.manager.recognizers,function(i){au(i.options.enable,[i])&&(r=r.concat(i.getTouchAction()))}),c3(r.join(" "))},e.preventDefaults=function(r){var i=r.srcEvent,a=r.offsetDirection;if(this.manager.session.prevented){i.preventDefault();return}var s=this.actions,o=oi(s,Ii)&&!vo[Ii],l=oi(s,Ps)&&!vo[Ps],c=oi(s,Ms)&&!vo[Ms];if(o){var u=r.pointers.length===1,A=r.distance<2,d=r.deltaTime<250;if(u&&A&&d)return}if(!(c&&l)&&(o||l&&a&Tn||c&&a&wi))return this.preventSrc(i)},e.preventSrc=function(r){this.manager.session.prevented=!0,r.preventDefault()},t}();function Eh(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function cx(t){var e=t.length;if(e===1)return{x:ta(t[0].clientX),y:ta(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:ta(n/e),y:ta(r/e)}}function Lg(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:ta(t.pointers[n].clientX),clientY:ta(t.pointers[n].clientY)},n++;return{timeStamp:mh(),pointers:e,center:cx(e),deltaX:t.deltaX,deltaY:t.deltaY}}function ml(t,e,n){n||(n=ox);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function af(t,e,n){n||(n=ox);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.atan2(i,r)*180/Math.PI}function ux(t,e){return t===e?gl:Oi(t)>=Oi(e)?t<0?Ys:zs:e<0?qs:va}function u3(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},a=t.prevInput||{};(e.eventType===yt||a.eventType===ze)&&(i=t.prevDelta={x:a.deltaX||0,y:a.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}function dx(t,e,n){return{x:e/t||0,y:n/t||0}}function d3(t,e){return ml(e[0],e[1],vl)/ml(t[0],t[1],vl)}function A3(t,e){return af(e[1],e[0],vl)+af(t[1],t[0],vl)}function f3(t,e){var n=t.lastInterval||e,r=e.timeStamp-n.timeStamp,i,a,s,o;if(e.eventType!==Dt&&(r>l3||n.velocity===void 0)){var l=e.deltaX-n.deltaX,c=e.deltaY-n.deltaY,u=dx(r,l,c);a=u.x,s=u.y,i=Oi(u.x)>Oi(u.y)?u.x:u.y,o=ux(l,c),t.lastInterval=e}else i=n.velocity,a=n.velocityX,s=n.velocityY,o=n.direction;e.velocity=i,e.velocityX=a,e.velocityY=s,e.direction=o}function h3(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=Lg(e)),i>1&&!n.firstMultiple?n.firstMultiple=Lg(e):i===1&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,o=s?s.center:a.center,l=e.center=cx(r);e.timeStamp=mh(),e.deltaTime=e.timeStamp-a.timeStamp,e.angle=af(o,l),e.distance=ml(o,l),u3(n,e),e.offsetDirection=ux(e.deltaX,e.deltaY);var c=dx(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=Oi(c.x)>Oi(c.y)?c.x:c.y,e.scale=s?d3(s.pointers,r):1,e.rotation=s?A3(s.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,f3(n,e);var u=t.element,A=e.srcEvent,d;A.composedPath?d=A.composedPath()[0]:A.path?d=A.path[0]:d=A.target,Eh(d,u)&&(u=d),e.target=u}function p3(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,a=e&yt&&r-i===0,s=e&(ze|Dt)&&r-i===0;n.isFirst=!!a,n.isFinal=!!s,a&&(t.session={}),n.eventType=e,h3(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Fs(t){return t.trim().split(/\s+/g)}function Es(t,e,n){ur(Fs(e),function(r){t.addEventListener(r,n,!1)})}function xs(t,e,n){ur(Fs(e),function(r){t.removeEventListener(r,n,!1)})}function Vg(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var wa=function(){function t(n,r){var i=this;this.manager=n,this.callback=r,this.element=n.element,this.target=n.options.inputTarget,this.domHandler=function(a){au(n.options.enable,[n])&&i.handler(a)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Es(this.element,this.evEl,this.domHandler),this.evTarget&&Es(this.target,this.evTarget,this.domHandler),this.evWin&&Es(Vg(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&xs(this.element,this.evEl,this.domHandler),this.evTarget&&xs(this.target,this.evTarget,this.domHandler),this.evWin&&xs(Vg(this.element),this.evWin,this.domHandler)},t}();function ki(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}var g3={pointerdown:yt,pointermove:Ni,pointerup:ze,pointercancel:Dt,pointerout:Dt},v3={2:Xs,3:s3,4:Ch,5:o3},Ax="pointerdown",fx="pointermove pointerup pointercancel";cr.MSPointerEvent&&!cr.PointerEvent&&(Ax="MSPointerDown",fx="MSPointerMove MSPointerUp MSPointerCancel");var hx=function(t){jt(e,t);function e(){var r,i=e.prototype;return i.evEl=Ax,i.evWin=fx,r=t.apply(this,arguments)||this,r.store=r.manager.session.pointerEvents=[],r}var n=e.prototype;return n.handler=function(i){var a=this.store,s=!1,o=i.type.toLowerCase().replace("ms",""),l=g3[o],c=v3[i.pointerType]||i.pointerType,u=c===Xs,A=ki(a,i.pointerId,"pointerId");l&yt&&(i.button===0||u)?A<0&&(a.push(i),A=a.length-1):l&(ze|Dt)&&(s=!0),!(A<0)&&(a[A]=i,this.callback(this.manager,l,{pointers:a,changedPointers:[i],pointerType:c,srcEvent:i}),s&&a.splice(A,1))},e}(wa);function Rs(t){return Array.prototype.slice.call(t,0)}function xh(t,e,n){for(var r=[],i=[],a=0;a<t.length;){var s=e?t[a][e]:t[a];ki(i,s)<0&&r.push(t[a]),i[a]=s,a++}return n&&(e?r=r.sort(function(o,l){return o[e]>l[e]}):r=r.sort()),r}var m3={touchstart:yt,touchmove:Ni,touchend:ze,touchcancel:Dt},C3="touchstart touchmove touchend touchcancel",yh=function(t){jt(e,t);function e(){var r;return e.prototype.evTarget=C3,r=t.apply(this,arguments)||this,r.targetIds={},r}var n=e.prototype;return n.handler=function(i){var a=m3[i.type],s=E3.call(this,i,a);s&&this.callback(this.manager,a,{pointers:s[0],changedPointers:s[1],pointerType:Xs,srcEvent:i})},e}(wa);function E3(t,e){var n=Rs(t.touches),r=this.targetIds;if(e&(yt|Ni)&&n.length===1)return r[n[0].identifier]=!0,[n,n];var i,a,s=Rs(t.changedTouches),o=[],l=this.target;if(a=n.filter(function(c){return Eh(c.target,l)}),e===yt)for(i=0;i<a.length;)r[a[i].identifier]=!0,i++;for(i=0;i<s.length;)r[s[i].identifier]&&o.push(s[i]),e&(ze|Dt)&&delete r[s[i].identifier],i++;if(o.length)return[xh(a.concat(o),"identifier",!0),o]}var x3={mousedown:yt,mousemove:Ni,mouseup:ze},y3="mousedown",I3="mousemove mouseup",Ih=function(t){jt(e,t);function e(){var r,i=e.prototype;return i.evEl=y3,i.evWin=I3,r=t.apply(this,arguments)||this,r.pressed=!1,r}var n=e.prototype;return n.handler=function(i){var a=x3[i.type];a&yt&&i.button===0&&(this.pressed=!0),a&Ni&&i.which!==1&&(a=ze),this.pressed&&(a&ze&&(this.pressed=!1),this.callback(this.manager,a,{pointers:[i],changedPointers:[i],pointerType:Ch,srcEvent:i}))},e}(wa),w3=2500,Hg=25;function Ug(t){var e=t.changedPointers,n=e[0];if(n.identifier===this.primaryTouch){var r={x:n.clientX,y:n.clientY},i=this.lastTouches;this.lastTouches.push(r);var a=function(){var o=i.indexOf(r);o>-1&&i.splice(o,1)};setTimeout(a,w3)}}function b3(t,e){t&yt?(this.primaryTouch=e.changedPointers[0].identifier,Ug.call(this,e)):t&(ze|Dt)&&Ug.call(this,e)}function S3(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],a=Math.abs(e-i.x),s=Math.abs(n-i.y);if(a<=Hg&&s<=Hg)return!0}return!1}var px=function(){var t=function(e){jt(n,e);function n(i,a){var s;return s=e.call(this,i,a)||this,s.handler=function(o,l,c){var u=c.pointerType===Xs,A=c.pointerType===Ch;if(!(A&&c.sourceCapabilities&&c.sourceCapabilities.firesTouchEvents)){if(u)b3.call(go(go(s)),l,c);else if(A&&S3.call(go(go(s)),c))return;s.callback(o,l,c)}},s.touch=new yh(s.manager,s.handler),s.mouse=new Ih(s.manager,s.handler),s.primaryTouch=null,s.lastTouches=[],s}var r=n.prototype;return r.destroy=function(){this.touch.destroy(),this.mouse.destroy()},n}(wa);return t}();function _3(t){var e,n=t.options.inputClass;return n?e=n:i3?e=hx:a3?e=yh:ax?e=px:e=Ih,new e(t,p3)}function na(t,e,n){return Array.isArray(t)?(ur(t,n[e],n),!0):!1}var Uo=1,qt=2,ma=4,Pr=8,dr=Pr,Ns=16,_n=32,D3=1;function T3(){return D3++}function mo(t,e){var n=e.manager;return n?n.get(t):t}function Wg(t){return t&Ns?"cancel":t&Pr?"end":t&ma?"move":t&qt?"start":""}var Ks=function(){function t(n){n===void 0&&(n={}),this.options=cn({enable:!0},n),this.id=T3(),this.manager=null,this.state=Uo,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(r){return Ti(this.options,r),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(r){if(na(r,"recognizeWith",this))return this;var i=this.simultaneous;return r=mo(r,this),i[r.id]||(i[r.id]=r,r.recognizeWith(this)),this},e.dropRecognizeWith=function(r){return na(r,"dropRecognizeWith",this)?this:(r=mo(r,this),delete this.simultaneous[r.id],this)},e.requireFailure=function(r){if(na(r,"requireFailure",this))return this;var i=this.requireFail;return r=mo(r,this),ki(i,r)===-1&&(i.push(r),r.requireFailure(this)),this},e.dropRequireFailure=function(r){if(na(r,"dropRequireFailure",this))return this;r=mo(r,this);var i=ki(this.requireFail,r);return i>-1&&this.requireFail.splice(i,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(r){return!!this.simultaneous[r.id]},e.emit=function(r){var i=this,a=this.state;function s(o){i.manager.emit(o,r)}a<Pr&&s(i.options.event+Wg(a)),s(i.options.event),r.additionalEvent&&s(r.additionalEvent),a>=Pr&&s(i.options.event+Wg(a))},e.tryEmit=function(r){if(this.canEmit())return this.emit(r);this.state=_n},e.canEmit=function(){for(var r=0;r<this.requireFail.length;){if(!(this.requireFail[r].state&(_n|Uo)))return!1;r++}return!0},e.recognize=function(r){var i=Ti({},r);if(!au(this.options.enable,[this,i])){this.reset(),this.state=_n;return}this.state&(dr|Ns|_n)&&(this.state=Uo),this.state=this.process(i),this.state&(qt|ma|Pr|Ns)&&this.tryEmit(i)},e.process=function(r){},e.getTouchAction=function(){},e.reset=function(){},t}(),sf=function(t){jt(e,t);function e(r){var i;return r===void 0&&(r={}),i=t.call(this,cn({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},r))||this,i.pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}var n=e.prototype;return n.getTouchAction=function(){return[rf]},n.process=function(i){var a=this,s=this.options,o=i.pointers.length===s.pointers,l=i.distance<s.threshold,c=i.deltaTime<s.time;if(this.reset(),i.eventType&yt&&this.count===0)return this.failTimeout();if(l&&c&&o){if(i.eventType!==ze)return this.failTimeout();var u=this.pTime?i.timeStamp-this.pTime<s.interval:!0,A=!this.pCenter||ml(this.pCenter,i.center)<s.posThreshold;this.pTime=i.timeStamp,this.pCenter=i.center,!A||!u?this.count=1:this.count+=1,this._input=i;var d=this.count%s.taps;if(d===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){a.state=dr,a.tryEmit()},s.interval),qt):dr}return _n},n.failTimeout=function(){var i=this;return this._timer=setTimeout(function(){i.state=_n},this.options.interval),_n},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){this.state===dr&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(Ks),Ca=function(t){jt(e,t);function e(r){return r===void 0&&(r={}),t.call(this,cn({pointers:1},r))||this}var n=e.prototype;return n.attrTest=function(i){var a=this.options.pointers;return a===0||i.pointers.length===a},n.process=function(i){var a=this.state,s=i.eventType,o=a&(qt|ma),l=this.attrTest(i);return o&&(s&Dt||!l)?a|Ns:o||l?s&ze?a|Pr:a&qt?a|ma:qt:_n},e}(Ks);function gx(t){return t===va?"down":t===qs?"up":t===Ys?"left":t===zs?"right":""}var wh=function(t){jt(e,t);function e(r){var i;return r===void 0&&(r={}),i=t.call(this,cn({event:"pan",threshold:10,pointers:1,direction:sx},r))||this,i.pX=null,i.pY=null,i}var n=e.prototype;return n.getTouchAction=function(){var i=this.options.direction,a=[];return i&Tn&&a.push(Ps),i&wi&&a.push(Ms),a},n.directionTest=function(i){var a=this.options,s=!0,o=i.distance,l=i.direction,c=i.deltaX,u=i.deltaY;return l&a.direction||(a.direction&Tn?(l=c===0?gl:c<0?Ys:zs,s=c!==this.pX,o=Math.abs(i.deltaX)):(l=u===0?gl:u<0?qs:va,s=u!==this.pY,o=Math.abs(i.deltaY))),i.direction=l,s&&o>a.threshold&&l&a.direction},n.attrTest=function(i){return Ca.prototype.attrTest.call(this,i)&&(this.state&qt||!(this.state&qt)&&this.directionTest(i))},n.emit=function(i){this.pX=i.deltaX,this.pY=i.deltaY;var a=gx(i.direction);a&&(i.additionalEvent=this.options.event+a),t.prototype.emit.call(this,i)},e}(Ca),vx=function(t){jt(e,t);function e(r){return r===void 0&&(r={}),t.call(this,cn({event:"swipe",threshold:10,velocity:.3,direction:Tn|wi,pointers:1},r))||this}var n=e.prototype;return n.getTouchAction=function(){return wh.prototype.getTouchAction.call(this)},n.attrTest=function(i){var a=this.options.direction,s;return a&(Tn|wi)?s=i.overallVelocity:a&Tn?s=i.overallVelocityX:a&wi&&(s=i.overallVelocityY),t.prototype.attrTest.call(this,i)&&a&i.offsetDirection&&i.distance>this.options.threshold&&i.maxPointers===this.options.pointers&&Oi(s)>this.options.velocity&&i.eventType&ze},n.emit=function(i){var a=gx(i.offsetDirection);a&&this.manager.emit(this.options.event+a,i),this.manager.emit(this.options.event,i)},e}(Ca),mx=function(t){jt(e,t);function e(r){return r===void 0&&(r={}),t.call(this,cn({event:"pinch",threshold:0,pointers:2},r))||this}var n=e.prototype;return n.getTouchAction=function(){return[Ii]},n.attrTest=function(i){return t.prototype.attrTest.call(this,i)&&(Math.abs(i.scale-1)>this.options.threshold||this.state&qt)},n.emit=function(i){if(i.scale!==1){var a=i.scale<1?"in":"out";i.additionalEvent=this.options.event+a}t.prototype.emit.call(this,i)},e}(Ca),Cx=function(t){jt(e,t);function e(r){return r===void 0&&(r={}),t.call(this,cn({event:"rotate",threshold:0,pointers:2},r))||this}var n=e.prototype;return n.getTouchAction=function(){return[Ii]},n.attrTest=function(i){return t.prototype.attrTest.call(this,i)&&(Math.abs(i.rotation)>this.options.threshold||this.state&qt)},e}(Ca),Ex=function(t){jt(e,t);function e(r){var i;return r===void 0&&(r={}),i=t.call(this,cn({event:"press",pointers:1,time:251,threshold:9},r))||this,i._timer=null,i._input=null,i}var n=e.prototype;return n.getTouchAction=function(){return[ix]},n.process=function(i){var a=this,s=this.options,o=i.pointers.length===s.pointers,l=i.distance<s.threshold,c=i.deltaTime>s.time;if(this._input=i,!l||!o||i.eventType&(ze|Dt)&&!c)this.reset();else if(i.eventType&yt)this.reset(),this._timer=setTimeout(function(){a.state=dr,a.tryEmit()},s.time);else if(i.eventType&ze)return dr;return _n},n.reset=function(){clearTimeout(this._timer)},n.emit=function(i){this.state===dr&&(i&&i.eventType&ze?this.manager.emit(this.options.event+"up",i):(this._input.timeStamp=mh(),this.manager.emit(this.options.event,this._input)))},e}(Ks),xx={domEvents:!1,touchAction:rx,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Xg=[[Cx,{enable:!1}],[mx,{enable:!1},["rotate"]],[vx,{direction:Tn}],[wh,{direction:Tn},["swipe"]],[sf],[sf,{event:"doubletap",taps:2},["tap"]],[Ex]],O3=1,Yg=2;function zg(t,e){var n=t.element;if(n.style){var r;ur(t.options.cssProps,function(i,a){r=iu(n.style,a),e?(t.oldCssProps[r]=n.style[r],n.style[r]=i):n.style[r]=t.oldCssProps[r]||""}),e||(t.oldCssProps={})}}function k3(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var qg=function(){function t(n,r){var i=this;this.options=Ti({},xx,r||{}),this.options.inputTarget=this.options.inputTarget||n,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=n,this.input=_3(this),this.touchAction=new lx(this,this.options.touchAction),zg(this,!0),ur(this.options.recognizers,function(a){var s=i.add(new a[0](a[1]));a[2]&&s.recognizeWith(a[2]),a[3]&&s.requireFailure(a[3])},this)}var e=t.prototype;return e.set=function(r){return Ti(this.options,r),r.touchAction&&this.touchAction.update(),r.inputTarget&&(this.input.destroy(),this.input.target=r.inputTarget,this.input.init()),this},e.stop=function(r){this.session.stopped=r?Yg:O3},e.recognize=function(r){var i=this.session;if(!i.stopped){this.touchAction.preventDefaults(r);var a,s=this.recognizers,o=i.curRecognizer;(!o||o&&o.state&dr)&&(i.curRecognizer=null,o=null);for(var l=0;l<s.length;)a=s[l],i.stopped!==Yg&&(!o||a===o||a.canRecognizeWith(o))?a.recognize(r):a.reset(),!o&&a.state&(qt|ma|Pr)&&(i.curRecognizer=a,o=a),l++}},e.get=function(r){if(r instanceof Ks)return r;for(var i=this.recognizers,a=0;a<i.length;a++)if(i[a].options.event===r)return i[a];return null},e.add=function(r){if(na(r,"add",this))return this;var i=this.get(r.options.event);return i&&this.remove(i),this.recognizers.push(r),r.manager=this,this.touchAction.update(),r},e.remove=function(r){if(na(r,"remove",this))return this;var i=this.get(r);if(r){var a=this.recognizers,s=ki(a,i);s!==-1&&(a.splice(s,1),this.touchAction.update())}return this},e.on=function(r,i){if(r===void 0||i===void 0)return this;var a=this.handlers;return ur(Fs(r),function(s){a[s]=a[s]||[],a[s].push(i)}),this},e.off=function(r,i){if(r===void 0)return this;var a=this.handlers;return ur(Fs(r),function(s){i?a[s]&&a[s].splice(ki(a[s],i),1):delete a[s]}),this},e.emit=function(r,i){this.options.domEvents&&k3(r,i);var a=this.handlers[r]&&this.handlers[r].slice();if(!(!a||!a.length)){i.type=r,i.preventDefault=function(){i.srcEvent.preventDefault()};for(var s=0;s<a.length;)a[s](i),s++}},e.destroy=function(){this.element&&zg(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),M3={touchstart:yt,touchmove:Ni,touchend:ze,touchcancel:Dt},P3="touchstart",F3="touchstart touchmove touchend touchcancel",R3=function(t){jt(e,t);function e(){var r,i=e.prototype;return i.evTarget=P3,i.evWin=F3,r=t.apply(this,arguments)||this,r.started=!1,r}var n=e.prototype;return n.handler=function(i){var a=M3[i.type];if(a===yt&&(this.started=!0),!!this.started){var s=N3.call(this,i,a);a&(ze|Dt)&&s[0].length-s[1].length===0&&(this.started=!1),this.callback(this.manager,a,{pointers:s[0],changedPointers:s[1],pointerType:Xs,srcEvent:i})}},e}(wa);function N3(t,e){var n=Rs(t.touches),r=Rs(t.changedTouches);return e&(ze|Dt)&&(n=xh(n.concat(r),"identifier",!0)),[n,r]}function yx(t,e,n){var r="DEPRECATED METHOD: "+e+` + * Licensed under the MIT license */function cn(){return cn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},cn.apply(this,arguments)}function jt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function vo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var rf;typeof Object.assign!="function"?rf=function(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(i!=null)for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])}return n}:rf=Object.assign;var Ti=rf,Lg=["","webkit","Moz","MS","ms","o"],e3=typeof document>"u"?{style:{}}:document.createElement("div"),t3="function",ta=Math.round,Oi=Math.abs,Ch=Date.now;function iu(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),a=0;a<Lg.length;){if(n=Lg[a],r=n?n+i:e,r in t)return r;a++}}var cr;typeof window>"u"?cr={}:cr=window;var tx=iu(e3.style,"touchAction"),nx=tx!==void 0;function n3(){if(!nx)return!1;var t={},e=cr.CSS&&cr.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){return t[n]=e?cr.CSS.supports("touch-action",n):!0}),t}var rx="compute",ix="auto",af="manipulation",Ii="none",Ms="pan-x",Ps="pan-y",mo=n3(),r3=/mobile|tablet|ip(ad|hone|od)|android/i,ax="ontouchstart"in cr,i3=iu(cr,"PointerEvent")!==void 0,a3=ax&&r3.test(navigator.userAgent),Ys="touch",s3="pen",Eh="mouse",o3="kinect",l3=25,yt=1,Ni=2,ze=4,Dt=8,vl=1,zs=2,qs=4,Ks=8,va=16,Tn=zs|qs,wi=Ks|va,sx=Tn|wi,ox=["x","y"],ml=["clientX","clientY"];function ur(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==void 0)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function au(t,e){return typeof t===t3?t.apply(e&&e[0]||void 0,e):t}function oi(t,e){return t.indexOf(e)>-1}function c3(t){if(oi(t,Ii))return Ii;var e=oi(t,Ms),n=oi(t,Ps);return e&&n?Ii:e||n?e?Ms:Ps:oi(t,af)?af:ix}var lx=function(){function t(n,r){this.manager=n,this.set(r)}var e=t.prototype;return e.set=function(r){r===rx&&(r=this.compute()),nx&&this.manager.element.style&&mo[r]&&(this.manager.element.style[tx]=r),this.actions=r.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var r=[];return ur(this.manager.recognizers,function(i){au(i.options.enable,[i])&&(r=r.concat(i.getTouchAction()))}),c3(r.join(" "))},e.preventDefaults=function(r){var i=r.srcEvent,a=r.offsetDirection;if(this.manager.session.prevented){i.preventDefault();return}var s=this.actions,o=oi(s,Ii)&&!mo[Ii],l=oi(s,Ps)&&!mo[Ps],c=oi(s,Ms)&&!mo[Ms];if(o){var u=r.pointers.length===1,A=r.distance<2,d=r.deltaTime<250;if(u&&A&&d)return}if(!(c&&l)&&(o||l&&a&Tn||c&&a&wi))return this.preventSrc(i)},e.preventSrc=function(r){this.manager.session.prevented=!0,r.preventDefault()},t}();function xh(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function cx(t){var e=t.length;if(e===1)return{x:ta(t[0].clientX),y:ta(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:ta(n/e),y:ta(r/e)}}function Vg(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:ta(t.pointers[n].clientX),clientY:ta(t.pointers[n].clientY)},n++;return{timeStamp:Ch(),pointers:e,center:cx(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Cl(t,e,n){n||(n=ox);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function sf(t,e,n){n||(n=ox);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.atan2(i,r)*180/Math.PI}function ux(t,e){return t===e?vl:Oi(t)>=Oi(e)?t<0?zs:qs:e<0?Ks:va}function u3(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},a=t.prevInput||{};(e.eventType===yt||a.eventType===ze)&&(i=t.prevDelta={x:a.deltaX||0,y:a.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}function dx(t,e,n){return{x:e/t||0,y:n/t||0}}function d3(t,e){return Cl(e[0],e[1],ml)/Cl(t[0],t[1],ml)}function A3(t,e){return sf(e[1],e[0],ml)+sf(t[1],t[0],ml)}function f3(t,e){var n=t.lastInterval||e,r=e.timeStamp-n.timeStamp,i,a,s,o;if(e.eventType!==Dt&&(r>l3||n.velocity===void 0)){var l=e.deltaX-n.deltaX,c=e.deltaY-n.deltaY,u=dx(r,l,c);a=u.x,s=u.y,i=Oi(u.x)>Oi(u.y)?u.x:u.y,o=ux(l,c),t.lastInterval=e}else i=n.velocity,a=n.velocityX,s=n.velocityY,o=n.direction;e.velocity=i,e.velocityX=a,e.velocityY=s,e.direction=o}function h3(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=Vg(e)),i>1&&!n.firstMultiple?n.firstMultiple=Vg(e):i===1&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,o=s?s.center:a.center,l=e.center=cx(r);e.timeStamp=Ch(),e.deltaTime=e.timeStamp-a.timeStamp,e.angle=sf(o,l),e.distance=Cl(o,l),u3(n,e),e.offsetDirection=ux(e.deltaX,e.deltaY);var c=dx(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=Oi(c.x)>Oi(c.y)?c.x:c.y,e.scale=s?d3(s.pointers,r):1,e.rotation=s?A3(s.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,f3(n,e);var u=t.element,A=e.srcEvent,d;A.composedPath?d=A.composedPath()[0]:A.path?d=A.path[0]:d=A.target,xh(d,u)&&(u=d),e.target=u}function p3(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,a=e&yt&&r-i===0,s=e&(ze|Dt)&&r-i===0;n.isFirst=!!a,n.isFinal=!!s,a&&(t.session={}),n.eventType=e,h3(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Fs(t){return t.trim().split(/\s+/g)}function Es(t,e,n){ur(Fs(e),function(r){t.addEventListener(r,n,!1)})}function xs(t,e,n){ur(Fs(e),function(r){t.removeEventListener(r,n,!1)})}function Hg(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var wa=function(){function t(n,r){var i=this;this.manager=n,this.callback=r,this.element=n.element,this.target=n.options.inputTarget,this.domHandler=function(a){au(n.options.enable,[n])&&i.handler(a)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Es(this.element,this.evEl,this.domHandler),this.evTarget&&Es(this.target,this.evTarget,this.domHandler),this.evWin&&Es(Hg(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&xs(this.element,this.evEl,this.domHandler),this.evTarget&&xs(this.target,this.evTarget,this.domHandler),this.evWin&&xs(Hg(this.element),this.evWin,this.domHandler)},t}();function ki(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}var g3={pointerdown:yt,pointermove:Ni,pointerup:ze,pointercancel:Dt,pointerout:Dt},v3={2:Ys,3:s3,4:Eh,5:o3},Ax="pointerdown",fx="pointermove pointerup pointercancel";cr.MSPointerEvent&&!cr.PointerEvent&&(Ax="MSPointerDown",fx="MSPointerMove MSPointerUp MSPointerCancel");var hx=function(t){jt(e,t);function e(){var r,i=e.prototype;return i.evEl=Ax,i.evWin=fx,r=t.apply(this,arguments)||this,r.store=r.manager.session.pointerEvents=[],r}var n=e.prototype;return n.handler=function(i){var a=this.store,s=!1,o=i.type.toLowerCase().replace("ms",""),l=g3[o],c=v3[i.pointerType]||i.pointerType,u=c===Ys,A=ki(a,i.pointerId,"pointerId");l&yt&&(i.button===0||u)?A<0&&(a.push(i),A=a.length-1):l&(ze|Dt)&&(s=!0),!(A<0)&&(a[A]=i,this.callback(this.manager,l,{pointers:a,changedPointers:[i],pointerType:c,srcEvent:i}),s&&a.splice(A,1))},e}(wa);function Rs(t){return Array.prototype.slice.call(t,0)}function yh(t,e,n){for(var r=[],i=[],a=0;a<t.length;){var s=e?t[a][e]:t[a];ki(i,s)<0&&r.push(t[a]),i[a]=s,a++}return n&&(e?r=r.sort(function(o,l){return o[e]>l[e]}):r=r.sort()),r}var m3={touchstart:yt,touchmove:Ni,touchend:ze,touchcancel:Dt},C3="touchstart touchmove touchend touchcancel",Ih=function(t){jt(e,t);function e(){var r;return e.prototype.evTarget=C3,r=t.apply(this,arguments)||this,r.targetIds={},r}var n=e.prototype;return n.handler=function(i){var a=m3[i.type],s=E3.call(this,i,a);s&&this.callback(this.manager,a,{pointers:s[0],changedPointers:s[1],pointerType:Ys,srcEvent:i})},e}(wa);function E3(t,e){var n=Rs(t.touches),r=this.targetIds;if(e&(yt|Ni)&&n.length===1)return r[n[0].identifier]=!0,[n,n];var i,a,s=Rs(t.changedTouches),o=[],l=this.target;if(a=n.filter(function(c){return xh(c.target,l)}),e===yt)for(i=0;i<a.length;)r[a[i].identifier]=!0,i++;for(i=0;i<s.length;)r[s[i].identifier]&&o.push(s[i]),e&(ze|Dt)&&delete r[s[i].identifier],i++;if(o.length)return[yh(a.concat(o),"identifier",!0),o]}var x3={mousedown:yt,mousemove:Ni,mouseup:ze},y3="mousedown",I3="mousemove mouseup",wh=function(t){jt(e,t);function e(){var r,i=e.prototype;return i.evEl=y3,i.evWin=I3,r=t.apply(this,arguments)||this,r.pressed=!1,r}var n=e.prototype;return n.handler=function(i){var a=x3[i.type];a&yt&&i.button===0&&(this.pressed=!0),a&Ni&&i.which!==1&&(a=ze),this.pressed&&(a&ze&&(this.pressed=!1),this.callback(this.manager,a,{pointers:[i],changedPointers:[i],pointerType:Eh,srcEvent:i}))},e}(wa),w3=2500,Ug=25;function Wg(t){var e=t.changedPointers,n=e[0];if(n.identifier===this.primaryTouch){var r={x:n.clientX,y:n.clientY},i=this.lastTouches;this.lastTouches.push(r);var a=function(){var o=i.indexOf(r);o>-1&&i.splice(o,1)};setTimeout(a,w3)}}function b3(t,e){t&yt?(this.primaryTouch=e.changedPointers[0].identifier,Wg.call(this,e)):t&(ze|Dt)&&Wg.call(this,e)}function S3(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],a=Math.abs(e-i.x),s=Math.abs(n-i.y);if(a<=Ug&&s<=Ug)return!0}return!1}var px=function(){var t=function(e){jt(n,e);function n(i,a){var s;return s=e.call(this,i,a)||this,s.handler=function(o,l,c){var u=c.pointerType===Ys,A=c.pointerType===Eh;if(!(A&&c.sourceCapabilities&&c.sourceCapabilities.firesTouchEvents)){if(u)b3.call(vo(vo(s)),l,c);else if(A&&S3.call(vo(vo(s)),c))return;s.callback(o,l,c)}},s.touch=new Ih(s.manager,s.handler),s.mouse=new wh(s.manager,s.handler),s.primaryTouch=null,s.lastTouches=[],s}var r=n.prototype;return r.destroy=function(){this.touch.destroy(),this.mouse.destroy()},n}(wa);return t}();function _3(t){var e,n=t.options.inputClass;return n?e=n:i3?e=hx:a3?e=Ih:ax?e=px:e=wh,new e(t,p3)}function na(t,e,n){return Array.isArray(t)?(ur(t,n[e],n),!0):!1}var Wo=1,qt=2,ma=4,Pr=8,dr=Pr,Ns=16,_n=32,D3=1;function T3(){return D3++}function Co(t,e){var n=e.manager;return n?n.get(t):t}function Xg(t){return t&Ns?"cancel":t&Pr?"end":t&ma?"move":t&qt?"start":""}var $s=function(){function t(n){n===void 0&&(n={}),this.options=cn({enable:!0},n),this.id=T3(),this.manager=null,this.state=Wo,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(r){return Ti(this.options,r),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(r){if(na(r,"recognizeWith",this))return this;var i=this.simultaneous;return r=Co(r,this),i[r.id]||(i[r.id]=r,r.recognizeWith(this)),this},e.dropRecognizeWith=function(r){return na(r,"dropRecognizeWith",this)?this:(r=Co(r,this),delete this.simultaneous[r.id],this)},e.requireFailure=function(r){if(na(r,"requireFailure",this))return this;var i=this.requireFail;return r=Co(r,this),ki(i,r)===-1&&(i.push(r),r.requireFailure(this)),this},e.dropRequireFailure=function(r){if(na(r,"dropRequireFailure",this))return this;r=Co(r,this);var i=ki(this.requireFail,r);return i>-1&&this.requireFail.splice(i,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(r){return!!this.simultaneous[r.id]},e.emit=function(r){var i=this,a=this.state;function s(o){i.manager.emit(o,r)}a<Pr&&s(i.options.event+Xg(a)),s(i.options.event),r.additionalEvent&&s(r.additionalEvent),a>=Pr&&s(i.options.event+Xg(a))},e.tryEmit=function(r){if(this.canEmit())return this.emit(r);this.state=_n},e.canEmit=function(){for(var r=0;r<this.requireFail.length;){if(!(this.requireFail[r].state&(_n|Wo)))return!1;r++}return!0},e.recognize=function(r){var i=Ti({},r);if(!au(this.options.enable,[this,i])){this.reset(),this.state=_n;return}this.state&(dr|Ns|_n)&&(this.state=Wo),this.state=this.process(i),this.state&(qt|ma|Pr|Ns)&&this.tryEmit(i)},e.process=function(r){},e.getTouchAction=function(){},e.reset=function(){},t}(),of=function(t){jt(e,t);function e(r){var i;return r===void 0&&(r={}),i=t.call(this,cn({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},r))||this,i.pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}var n=e.prototype;return n.getTouchAction=function(){return[af]},n.process=function(i){var a=this,s=this.options,o=i.pointers.length===s.pointers,l=i.distance<s.threshold,c=i.deltaTime<s.time;if(this.reset(),i.eventType&yt&&this.count===0)return this.failTimeout();if(l&&c&&o){if(i.eventType!==ze)return this.failTimeout();var u=this.pTime?i.timeStamp-this.pTime<s.interval:!0,A=!this.pCenter||Cl(this.pCenter,i.center)<s.posThreshold;this.pTime=i.timeStamp,this.pCenter=i.center,!A||!u?this.count=1:this.count+=1,this._input=i;var d=this.count%s.taps;if(d===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){a.state=dr,a.tryEmit()},s.interval),qt):dr}return _n},n.failTimeout=function(){var i=this;return this._timer=setTimeout(function(){i.state=_n},this.options.interval),_n},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){this.state===dr&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}($s),Ca=function(t){jt(e,t);function e(r){return r===void 0&&(r={}),t.call(this,cn({pointers:1},r))||this}var n=e.prototype;return n.attrTest=function(i){var a=this.options.pointers;return a===0||i.pointers.length===a},n.process=function(i){var a=this.state,s=i.eventType,o=a&(qt|ma),l=this.attrTest(i);return o&&(s&Dt||!l)?a|Ns:o||l?s&ze?a|Pr:a&qt?a|ma:qt:_n},e}($s);function gx(t){return t===va?"down":t===Ks?"up":t===zs?"left":t===qs?"right":""}var bh=function(t){jt(e,t);function e(r){var i;return r===void 0&&(r={}),i=t.call(this,cn({event:"pan",threshold:10,pointers:1,direction:sx},r))||this,i.pX=null,i.pY=null,i}var n=e.prototype;return n.getTouchAction=function(){var i=this.options.direction,a=[];return i&Tn&&a.push(Ps),i&wi&&a.push(Ms),a},n.directionTest=function(i){var a=this.options,s=!0,o=i.distance,l=i.direction,c=i.deltaX,u=i.deltaY;return l&a.direction||(a.direction&Tn?(l=c===0?vl:c<0?zs:qs,s=c!==this.pX,o=Math.abs(i.deltaX)):(l=u===0?vl:u<0?Ks:va,s=u!==this.pY,o=Math.abs(i.deltaY))),i.direction=l,s&&o>a.threshold&&l&a.direction},n.attrTest=function(i){return Ca.prototype.attrTest.call(this,i)&&(this.state&qt||!(this.state&qt)&&this.directionTest(i))},n.emit=function(i){this.pX=i.deltaX,this.pY=i.deltaY;var a=gx(i.direction);a&&(i.additionalEvent=this.options.event+a),t.prototype.emit.call(this,i)},e}(Ca),vx=function(t){jt(e,t);function e(r){return r===void 0&&(r={}),t.call(this,cn({event:"swipe",threshold:10,velocity:.3,direction:Tn|wi,pointers:1},r))||this}var n=e.prototype;return n.getTouchAction=function(){return bh.prototype.getTouchAction.call(this)},n.attrTest=function(i){var a=this.options.direction,s;return a&(Tn|wi)?s=i.overallVelocity:a&Tn?s=i.overallVelocityX:a&wi&&(s=i.overallVelocityY),t.prototype.attrTest.call(this,i)&&a&i.offsetDirection&&i.distance>this.options.threshold&&i.maxPointers===this.options.pointers&&Oi(s)>this.options.velocity&&i.eventType&ze},n.emit=function(i){var a=gx(i.offsetDirection);a&&this.manager.emit(this.options.event+a,i),this.manager.emit(this.options.event,i)},e}(Ca),mx=function(t){jt(e,t);function e(r){return r===void 0&&(r={}),t.call(this,cn({event:"pinch",threshold:0,pointers:2},r))||this}var n=e.prototype;return n.getTouchAction=function(){return[Ii]},n.attrTest=function(i){return t.prototype.attrTest.call(this,i)&&(Math.abs(i.scale-1)>this.options.threshold||this.state&qt)},n.emit=function(i){if(i.scale!==1){var a=i.scale<1?"in":"out";i.additionalEvent=this.options.event+a}t.prototype.emit.call(this,i)},e}(Ca),Cx=function(t){jt(e,t);function e(r){return r===void 0&&(r={}),t.call(this,cn({event:"rotate",threshold:0,pointers:2},r))||this}var n=e.prototype;return n.getTouchAction=function(){return[Ii]},n.attrTest=function(i){return t.prototype.attrTest.call(this,i)&&(Math.abs(i.rotation)>this.options.threshold||this.state&qt)},e}(Ca),Ex=function(t){jt(e,t);function e(r){var i;return r===void 0&&(r={}),i=t.call(this,cn({event:"press",pointers:1,time:251,threshold:9},r))||this,i._timer=null,i._input=null,i}var n=e.prototype;return n.getTouchAction=function(){return[ix]},n.process=function(i){var a=this,s=this.options,o=i.pointers.length===s.pointers,l=i.distance<s.threshold,c=i.deltaTime>s.time;if(this._input=i,!l||!o||i.eventType&(ze|Dt)&&!c)this.reset();else if(i.eventType&yt)this.reset(),this._timer=setTimeout(function(){a.state=dr,a.tryEmit()},s.time);else if(i.eventType&ze)return dr;return _n},n.reset=function(){clearTimeout(this._timer)},n.emit=function(i){this.state===dr&&(i&&i.eventType&ze?this.manager.emit(this.options.event+"up",i):(this._input.timeStamp=Ch(),this.manager.emit(this.options.event,this._input)))},e}($s),xx={domEvents:!1,touchAction:rx,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Yg=[[Cx,{enable:!1}],[mx,{enable:!1},["rotate"]],[vx,{direction:Tn}],[bh,{direction:Tn},["swipe"]],[of],[of,{event:"doubletap",taps:2},["tap"]],[Ex]],O3=1,zg=2;function qg(t,e){var n=t.element;if(n.style){var r;ur(t.options.cssProps,function(i,a){r=iu(n.style,a),e?(t.oldCssProps[r]=n.style[r],n.style[r]=i):n.style[r]=t.oldCssProps[r]||""}),e||(t.oldCssProps={})}}function k3(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var Kg=function(){function t(n,r){var i=this;this.options=Ti({},xx,r||{}),this.options.inputTarget=this.options.inputTarget||n,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=n,this.input=_3(this),this.touchAction=new lx(this,this.options.touchAction),qg(this,!0),ur(this.options.recognizers,function(a){var s=i.add(new a[0](a[1]));a[2]&&s.recognizeWith(a[2]),a[3]&&s.requireFailure(a[3])},this)}var e=t.prototype;return e.set=function(r){return Ti(this.options,r),r.touchAction&&this.touchAction.update(),r.inputTarget&&(this.input.destroy(),this.input.target=r.inputTarget,this.input.init()),this},e.stop=function(r){this.session.stopped=r?zg:O3},e.recognize=function(r){var i=this.session;if(!i.stopped){this.touchAction.preventDefaults(r);var a,s=this.recognizers,o=i.curRecognizer;(!o||o&&o.state&dr)&&(i.curRecognizer=null,o=null);for(var l=0;l<s.length;)a=s[l],i.stopped!==zg&&(!o||a===o||a.canRecognizeWith(o))?a.recognize(r):a.reset(),!o&&a.state&(qt|ma|Pr)&&(i.curRecognizer=a,o=a),l++}},e.get=function(r){if(r instanceof $s)return r;for(var i=this.recognizers,a=0;a<i.length;a++)if(i[a].options.event===r)return i[a];return null},e.add=function(r){if(na(r,"add",this))return this;var i=this.get(r.options.event);return i&&this.remove(i),this.recognizers.push(r),r.manager=this,this.touchAction.update(),r},e.remove=function(r){if(na(r,"remove",this))return this;var i=this.get(r);if(r){var a=this.recognizers,s=ki(a,i);s!==-1&&(a.splice(s,1),this.touchAction.update())}return this},e.on=function(r,i){if(r===void 0||i===void 0)return this;var a=this.handlers;return ur(Fs(r),function(s){a[s]=a[s]||[],a[s].push(i)}),this},e.off=function(r,i){if(r===void 0)return this;var a=this.handlers;return ur(Fs(r),function(s){i?a[s]&&a[s].splice(ki(a[s],i),1):delete a[s]}),this},e.emit=function(r,i){this.options.domEvents&&k3(r,i);var a=this.handlers[r]&&this.handlers[r].slice();if(!(!a||!a.length)){i.type=r,i.preventDefault=function(){i.srcEvent.preventDefault()};for(var s=0;s<a.length;)a[s](i),s++}},e.destroy=function(){this.element&&qg(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),M3={touchstart:yt,touchmove:Ni,touchend:ze,touchcancel:Dt},P3="touchstart",F3="touchstart touchmove touchend touchcancel",R3=function(t){jt(e,t);function e(){var r,i=e.prototype;return i.evTarget=P3,i.evWin=F3,r=t.apply(this,arguments)||this,r.started=!1,r}var n=e.prototype;return n.handler=function(i){var a=M3[i.type];if(a===yt&&(this.started=!0),!!this.started){var s=N3.call(this,i,a);a&(ze|Dt)&&s[0].length-s[1].length===0&&(this.started=!1),this.callback(this.manager,a,{pointers:s[0],changedPointers:s[1],pointerType:Ys,srcEvent:i})}},e}(wa);function N3(t,e){var n=Rs(t.touches),r=Rs(t.changedTouches);return e&(ze|Dt)&&(n=yh(n.concat(r),"identifier",!0)),[n,r]}function yx(t,e,n){var r="DEPRECATED METHOD: "+e+` `+n+` AT -`;return function(){var i=new Error("get-stack-trace"),a=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=window.console&&(window.console.warn||window.console.log);return s&&s.call(window.console,r,a),t.apply(this,arguments)}}var Ix=yx(function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===void 0)&&(t[r[i]]=e[r[i]]),i++;return t},"extend","Use `assign`."),B3=yx(function(t,e){return Ix(t,e,!0)},"merge","Use `assign`.");function G3(t,e,n){var r=e.prototype,i;i=t.prototype=Object.create(r),i.constructor=t,i._super=r,n&&Ti(i,n)}function Kg(t,e){return function(){return t.apply(e,arguments)}}var se=function(){var t=function(n,r){return r===void 0&&(r={}),new qg(n,cn({recognizers:Xg.concat()},r))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=sx,t.DIRECTION_DOWN=va,t.DIRECTION_LEFT=Ys,t.DIRECTION_RIGHT=zs,t.DIRECTION_UP=qs,t.DIRECTION_HORIZONTAL=Tn,t.DIRECTION_VERTICAL=wi,t.DIRECTION_NONE=gl,t.DIRECTION_DOWN=va,t.INPUT_START=yt,t.INPUT_MOVE=Ni,t.INPUT_END=ze,t.INPUT_CANCEL=Dt,t.STATE_POSSIBLE=Uo,t.STATE_BEGAN=qt,t.STATE_CHANGED=ma,t.STATE_ENDED=Pr,t.STATE_RECOGNIZED=dr,t.STATE_CANCELLED=Ns,t.STATE_FAILED=_n,t.Manager=qg,t.Input=wa,t.TouchAction=lx,t.TouchInput=yh,t.MouseInput=Ih,t.PointerEventInput=hx,t.TouchMouseInput=px,t.SingleTouchInput=R3,t.Recognizer=Ks,t.AttrRecognizer=Ca,t.Tap=sf,t.Pan=wh,t.Swipe=vx,t.Pinch=mx,t.Rotate=Cx,t.Press=Ex,t.on=Es,t.off=xs,t.each=ur,t.merge=B3,t.extend=Ix,t.bindFn=Kg,t.assign=Ti,t.inherit=G3,t.bindFn=Kg,t.prefixed=iu,t.toArray=Rs,t.inArray=ki,t.uniqueArray=xh,t.splitStr=Fs,t.boolOrFn=au,t.hasParent=Eh,t.addEventListeners=Es,t.removeEventListeners=xs,t.defaults=Ti({},xx,{preset:Xg}),t}();const L3=240,V3=50,H3=.1,U3=7,W3=Math.PI/180,X3={[se.INPUT_START]:V.BEGAN,[se.INPUT_MOVE]:V.ACTIVE,[se.INPUT_END]:V.END,[se.INPUT_CANCEL]:V.FAILED},xr={RIGHT:1,LEFT:2,UP:4,DOWN:8},Fr={};function kr(t){if(t in Fr)return Fr[t];throw new Error(`No handler for tag ${t}`)}function Y3(t,e){if(t in Fr)throw new Error(`Handler with tag ${t} already exists`);Fr[t]=e,Fr[t].handlerTag=t}function z3(t){t in Fr&&(kr(t).destroy(),delete Fr[t])}function q3(){return{...Fr}}const Mi=typeof setImmediate=="function"?setImmediate.bind(null):typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(null):queueMicrotask.bind(null);function Le(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let K3=0;class bh{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(){Le(this,"handlerTag",void 0),Le(this,"isGestureRunning",!1),Le(this,"view",null),Le(this,"hasCustomActivationCriteria",void 0),Le(this,"hasGestureFailed",!1),Le(this,"hammer",null),Le(this,"initialRotation",null),Le(this,"__initialX",void 0),Le(this,"__initialY",void 0),Le(this,"config",{}),Le(this,"previousState",V.UNDETERMINED),Le(this,"pendingGestures",{}),Le(this,"oldState",V.UNDETERMINED),Le(this,"lastSentState",null),Le(this,"gestureInstance",void 0),Le(this,"_stillWaiting",void 0),Le(this,"propsRef",void 0),Le(this,"ref",void 0),Le(this,"clearSelfAsPending",()=>{if(Array.isArray(this.config.waitFor))for(const e of this.config.waitFor)e.removePendingGesture(this.id)}),Le(this,"destroy",()=>{this.clearSelfAsPending(),this.hammer&&(this.hammer.stop(!1),this.hammer.destroy()),this.hammer=null}),Le(this,"isPointInView",({x:e,y:n})=>{const r=this.view.getBoundingClientRect();return e>=r.left&&e<=r.right&&n>=r.top&&n<=r.bottom}),Le(this,"sendEvent",e=>{const{onGestureHandlerEvent:n,onGestureHandlerStateChange:r}=this.propsRef.current,i=this.transformEventData(e);of(n,i),this.lastSentState!==i.nativeEvent.state&&(this.lastSentState=i.nativeEvent.state,of(r,i))}),Le(this,"sync",()=>{const e=this.hammer.get(this.name);if(!e)return;const n=(i,a)=>{if(!this.config.enabled)return this.isGestureRunning=!1,this.hasGestureFailed=!1,!1;if(!a||!i.options||typeof a.maxPointers>"u")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 c of this._stillWaiting)if(!c.isDiscrete&&c.isGestureRunning)return this.hasGestureFailed=!0,this.isGestureRunning=!1,!1;return!1}}if(!this.hasCustomActivationCriteria)return!0;const s=this.initialRotation==null?0:a.rotation-this.initialRotation,{success:o,failed:l}=this.isGestureEnabledForEvent(this.getConfig(),i,{...a,deltaRotation:s});return l&&(this.simulateCancelEvent(a),this.hasGestureFailed=!0),o},r=this.getHammerConfig();e.set({...r,enable:n})}),this.gestureInstance=K3++,this.hasCustomActivationCriteria=!1}getConfig(){return this.config}onWaitingEnded(e){}removePendingGesture(e){delete this.pendingGestures[e]}addPendingGesture(e){this.pendingGestures[e.id]=e}isGestureEnabledForEvent(e,n,r){return{success:!0}}get NativeGestureClass(){throw new Error("Must override GestureHandler.NativeGestureClass")}updateHasCustomActivationCriteria(e){return!0}updateGestureConfig({enabled:e=!0,...n}){if(this.clearSelfAsPending(),this.config=this.ensureConfig({enabled:e,...n}),this.hasCustomActivationCriteria=this.updateHasCustomActivationCriteria(this.config),Array.isArray(this.config.waitFor))for(const r of this.config.waitFor)r.addPendingGesture(this);return this.hammer&&this.sync(),this.config}getState(e){return e==0?0:X3[e]}transformEventData(e){const{eventType:n,maxPointers:r}=e,i=e.changedPointers[0],a=this.isPointInView({x:i.clientX,y:i.clientY}),s=this.getState(n);return s!==this.previousState&&(this.oldState=this.previousState,this.previousState=s),{nativeEvent:{numberOfPointers:r,state:s,pointerInside:a,...this.transformNativeEvent(e),handlerTag:this.handlerTag,target:this.ref,oldState:s!==this.previousState||s!=4?this.oldState:void 0},timeStamp:Date.now()}}transformNativeEvent(e){return{}}cancelPendingGestures(e){for(const n of Object.values(this.pendingGestures))n&&n.isGestureRunning&&(n.hasGestureFailed=!0,n.cancelEvent(e))}notifyPendingGestures(){for(const e of Object.values(this.pendingGestures))e&&e.onWaitingEnded(this)}onGestureEnded(e){this.isGestureRunning=!1,this.cancelPendingGestures(e)}forceInvalidate(e){this.isGestureRunning&&(this.hasGestureFailed=!0,this.cancelEvent(e))}cancelEvent(e){this.notifyPendingGestures(),this.sendEvent({...e,eventType:se.INPUT_CANCEL,isFinal:!0}),this.onGestureEnded(e)}onRawEvent({isFirst:e}){e&&(this.hasGestureFailed=!1)}shouldUseTouchEvents(e){var n,r;return(n=(r=e.simultaneousHandlers)===null||r===void 0?void 0:r.some(i=>i.isNative))!==null&&n!==void 0?n:!1}setView(e,n){if(e==null){this.destroy(),this.view=null;return}const r="ontouchstart"in window;this.propsRef=n,this.ref=e,this.view=I1(e),this.hammer=r&&this.shouldUseTouchEvents(this.config)?new se.Manager(this.view,{inputClass:se.TouchInput}):new se.Manager(this.view),this.oldState=V.UNDETERMINED,this.previousState=V.UNDETERMINED,this.lastSentState=null;const{NativeGestureClass:i}=this,a=new i(this.getHammerConfig());this.hammer.add(a),this.hammer.on("hammer.input",s=>{if(!this.config.enabled){this.hasGestureFailed=!1,this.isGestureRunning=!1;return}this.onRawEvent(s),this.initialRotation===null&&s.rotation!==0&&(this.initialRotation=s.rotation),s.isFinal&&setTimeout(()=>{this.initialRotation=null,this.hasGestureFailed=!1})}),this.setupEvents(),this.sync()}setupEvents(){this.isDiscrete||(this.hammer.on(`${this.name}start`,e=>this.onStart(e)),this.hammer.on(`${this.name}end ${this.name}cancel`,e=>{this.onGestureEnded(e)})),this.hammer.on(this.name,e=>this.onGestureActivated(e))}onStart({deltaX:e,deltaY:n,rotation:r}){this.oldState=V.UNDETERMINED,this.previousState=V.UNDETERMINED,this.lastSentState=null,this.isGestureRunning=!0,this.__initialX=e,this.__initialY=n,this.initialRotation=r}onGestureActivated(e){this.sendEvent(e)}onSuccess(){}_getPendingGestures(){return Array.isArray(this.config.waitFor)&&this.config.waitFor.length?this.config.waitFor.filter(({hasGestureFailed:n})=>n===!1):[]}getHammerConfig(){return{pointers:this.config.minPointers===this.config.maxPointers?this.config.minPointers:0}}simulateCancelEvent(e){}ensureConfig(e){const n={...e};if("minDist"in e&&(n.minDist=e.minDist,n.minDistSq=n.minDist*n.minDist),"minVelocity"in e&&(n.minVelocity=e.minVelocity,n.minVelocitySq=n.minVelocity*n.minVelocity),"maxDist"in e&&(n.maxDist=e.maxDist,n.maxDistSq=e.maxDist*e.maxDist),"waitFor"in e?n.waitFor=$g(e.waitFor).map(({handlerTag:i})=>kr(i)).filter(i=>i):n.waitFor=null,"simultaneousHandlers"in e){const i=this.shouldUseTouchEvents(this.config);n.simultaneousHandlers=$g(e.simultaneousHandlers).map(a=>kr(typeof a=="number"?a:a.handlerTag)).filter(a=>a),i!==this.shouldUseTouchEvents(n)&&Mi(()=>{this.destroy(),this.setView(this.ref,this.propsRef)})}else n.simultaneousHandlers=null;return["minPointers","maxPointers","minDist","maxDist","maxDistSq","minVelocitySq","minDistSq","minVelocity","failOffsetXStart","failOffsetYStart","failOffsetXEnd","failOffsetYEnd","activeOffsetXStart","activeOffsetXEnd","activeOffsetYStart","activeOffsetYEnd"].forEach(i=>{typeof n[i]>"u"&&(n[i]=Number.NaN)}),n}}function of(t,e){if(t){if(typeof t=="function")t(e);else if("__getHandler"in t&&typeof t.__getHandler=="function"){const n=t.__getHandler();of(n,e)}else if("__nodeConfig"in t){const{argMapping:n}=t.__nodeConfig;if(Array.isArray(n)){for(const[r,[i,a]]of n.entries())if(i in e.nativeEvent){const s=e.nativeEvent[i];a&&a.setValue?a.setValue(s):t.__nodeConfig.argMapping[r]=[i,s]}}}}}function $g(t){return t==null?[]:Array.isArray(t)?t:[t]}const Ve=t=>Number.isNaN(t),gn=t=>typeof t=="number"&&!Number.isNaN(t),cs=(t,e)=>!Ve(e)&&(e<0&&t<=e||e>=0&&t>=e),lf=({x:t=0,y:e=0}={})=>t*t+e*e,Hu=(t,e)=>!Ve(e)&&(e<0&&t<e||e>=0&&t>e);function jg(t,e){return e?setTimeout(()=>t(),e):(t(),null)}class Sh extends bh{get isDiscrete(){return!0}get shouldEnableGestureOnSetup(){return!0}shouldFailUnderCustomCriteria({x:e,y:n,deltaX:r,deltaY:i},{maxDeltaX:a,maxDeltaY:s,maxDistSq:o,shouldCancelWhenOutside:l}){return l&&!this.isPointInView({x:e,y:n})?!0:Hu(Math.abs(r),a)||Hu(Math.abs(i),s)||Hu(Math.abs(i*i+r*r),o)}transformNativeEvent({center:{x:e,y:n}}){const r=this.view.getBoundingClientRect();return{absoluteX:e,absoluteY:n,x:e-r.left,y:n-r.top}}isGestureEnabledForEvent({minPointers:e,maxPointers:n,maxDeltaX:r,maxDeltaY:i,maxDistSq:a,shouldCancelWhenOutside:s},o,{maxPointers:l,center:c,deltaX:u,deltaY:A}){const d=l>=e&&l<=n;return this.shouldFailUnderCustomCriteria({...c,deltaX:u,deltaY:A},{maxDeltaX:r,maxDeltaY:i,maxDistSq:a,shouldCancelWhenOutside:s})||!d&&this.isGestureRunning?{failed:!0}:{success:d}}}function Uu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class wx extends Sh{constructor(...e){super(...e),Uu(this,"visualFeedbackTimer",void 0),Uu(this,"initialEvent",null),Uu(this,"shouldDelayTouches",!0)}get name(){return"press"}get minDurationMs(){return Ve(this.config.minDurationMs)?5:this.config.minDurationMs}get maxDist(){return Ve(this.config.maxDist)?9:this.config.maxDist}get NativeGestureClass(){return se.Press}simulateCancelEvent(e){this.hasGestureFailed=!0,this.cancelEvent(e)}updateHasCustomActivationCriteria({shouldCancelWhenOutside:e,maxDistSq:n}){return e||!gn(n)}getState(e){return{[se.INPUT_START]:V.BEGAN,[se.INPUT_MOVE]:V.ACTIVE,[se.INPUT_END]:V.END,[se.INPUT_CANCEL]:V.CANCELLED}[e]}getConfig(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}getHammerConfig(){return{...super.getHammerConfig(),time:this.minDurationMs}}onGestureActivated(e){this.onGestureStart(e)}shouldDelayTouchForEvent({pointerType:e}){return this.shouldDelayTouches&&e==="touch"}onGestureStart(e){this.isGestureRunning=!0,clearTimeout(this.visualFeedbackTimer),this.initialEvent=e,this.visualFeedbackTimer=jg(()=>{this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null},this.shouldDelayTouchForEvent(e)&&L3)}sendGestureStartedEvent(e){clearTimeout(this.visualFeedbackTimer),this.visualFeedbackTimer=null,this.sendEvent({...e,eventType:se.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 n;this.visualFeedbackTimer&&(n=V3,this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null),jg(()=>{this.sendEvent({...e,eventType:se.INPUT_END,isFinal:!0}),this.onGestureEnded()},n)}else this.sendEvent({...e,eventType:se.INPUT_MOVE,isFinal:!1})}updateGestureConfig({shouldActivateOnStart:e=!1,disallowInterruption:n=!1,shouldCancelWhenOutside:r=!0,minDurationMs:i=Number.NaN,maxDist:a=Number.NaN,minPointers:s=1,maxPointers:o=1,...l}){return super.updateGestureConfig({shouldActivateOnStart:e,disallowInterruption:n,shouldCancelWhenOutside:r,minDurationMs:i,maxDist:a,minPointers:s,maxPointers:o,...l})}}let $3=class extends wx{get isNative(){return!0}onRawEvent(e){if(super.onRawEvent(e),!e.isFinal&&cs(lf({x:e.deltaX,y:e.deltaY}),10)&&this.config.disallowInterruption){const n=Object.values(q3()).filter(r=>{const{handlerTag:i,view:a,isGestureRunning:s}=r;return i!==this.handlerTag&&s&&r instanceof Sh&&a&&this.view.contains(a)});for(const r of n)r.forceInvalidate(e)}}};class bx extends bh{get shouldEnableGestureOnSetup(){return!0}transformNativeEvent({deltaX:e,deltaY:n,velocityX:r,velocityY:i,center:{x:a,y:s}}){const o=this.view.getBoundingClientRect(),l=u1.get();return{translationX:e-(this.__initialX||0),translationY:n-(this.__initialY||0),absoluteX:a,absoluteY:s,velocityX:r*l,velocityY:i*l,x:a-o.left,y:s-o.top}}}let j3=class extends bx{get name(){return"pan"}get NativeGestureClass(){return se.Pan}getHammerConfig(){return{...super.getHammerConfig(),direction:this.getDirection()}}getState(e){const n=super.getState(e);return this.previousState===V.UNDETERMINED&&n===V.ACTIVE?V.BEGAN:n}getDirection(){const e=this.getConfig(),{activeOffsetXStart:n,activeOffsetXEnd:r,activeOffsetYStart:i,activeOffsetYEnd:a,minDist:s}=e;let o=[],l=[];if(!Ve(s))return se.DIRECTION_ALL;Ve(n)||l.push(se.DIRECTION_LEFT),Ve(r)||l.push(se.DIRECTION_RIGHT),l.length===2&&(l=[se.DIRECTION_HORIZONTAL]),o=o.concat(l);let c=[];return Ve(i)||c.push(se.DIRECTION_UP),Ve(a)||c.push(se.DIRECTION_DOWN),c.length===2&&(c=[se.DIRECTION_VERTICAL]),o=o.concat(c),o.length?o[0]===se.DIRECTION_HORIZONTAL&&o[1]===se.DIRECTION_VERTICAL||l.length&&c.length?se.DIRECTION_ALL:o[0]:se.DIRECTION_NONE}getConfig(){return this.hasCustomActivationCriteria?this.config:{minDistSq:10}}shouldFailUnderCustomCriteria({deltaX:e,deltaY:n},r){return!Ve(r.failOffsetXStart)&&e<r.failOffsetXStart||!Ve(r.failOffsetXEnd)&&e>r.failOffsetXEnd||!Ve(r.failOffsetYStart)&&n<r.failOffsetYStart||!Ve(r.failOffsetYEnd)&&n>r.failOffsetYEnd}shouldActivateUnderCustomCriteria({deltaX:e,deltaY:n,velocity:r},i){return!Ve(i.activeOffsetXStart)&&e<i.activeOffsetXStart||!Ve(i.activeOffsetXEnd)&&e>i.activeOffsetXEnd||!Ve(i.activeOffsetYStart)&&n<i.activeOffsetYStart||!Ve(i.activeOffsetYEnd)&&n>i.activeOffsetYEnd||cs(lf({x:e,y:n}),i.minDistSq)||cs(r.x,i.minVelocityX)||cs(r.y,i.minVelocityY)||cs(lf(r),i.minVelocitySq)}shouldMultiFingerPanFail({pointerLength:e,scale:n,deltaRotation:r}){if(e<=1)return!1;const i=Math.abs(n-1),a=Math.abs(r);return i>H3||a>U3}updateHasCustomActivationCriteria(e){return gn(e.minDistSq)||gn(e.minVelocityX)||gn(e.minVelocityY)||gn(e.minVelocitySq)||gn(e.activeOffsetXStart)||gn(e.activeOffsetXEnd)||gn(e.activeOffsetYStart)||gn(e.activeOffsetYEnd)}isGestureEnabledForEvent(e,n,r){if(this.shouldFailUnderCustomCriteria(r,e))return{failed:!0};const i={x:r.velocityX,y:r.velocityY};return this.hasCustomActivationCriteria&&this.shouldActivateUnderCustomCriteria({deltaX:r.deltaX,deltaY:r.deltaY,velocity:i},e)?this.shouldMultiFingerPanFail({pointerLength:r.maxPointers,scale:r.scale,deltaRotation:r.deltaRotation})?{failed:!0}:{success:!0}:{success:!1}}};function Co(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let Q3=class extends Sh{constructor(...e){super(...e),Co(this,"_shouldFireEndEvent",null),Co(this,"_timer",void 0),Co(this,"_multiTapTimer",void 0),Co(this,"onSuccessfulTap",n=>{if(this._getPendingGestures().length){this._shouldFireEndEvent=n;return}n.eventType===se.INPUT_END&&this.sendEvent({...n,eventType:se.INPUT_MOVE}),this.sendEvent({...n,isFinal:!0}),this.onGestureEnded(n)})}get name(){return"tap"}get NativeGestureClass(){return se.Tap}get maxDelayMs(){return Ve(this.config.maxDelayMs)?300:this.config.maxDelayMs}simulateCancelEvent(e){this.isGestureRunning&&this.cancelEvent(e)}onGestureActivated(e){this.isGestureRunning&&this.onSuccessfulTap(e)}onRawEvent(e){if(super.onRawEvent(e),!this.hasGestureFailed&&!this.isGestureRunning&&!e.isFinal){const n=this.hammer.get(this.name);n.options.enable(n,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 n=this.hammer.get(this.name);n.options.enable(n,e)&&(clearTimeout(this._multiTapTimer),this.onStart(e),this.sendEvent(e))}}}getHammerConfig(){return{...super.getHammerConfig(),event:this.name,taps:Ve(this.config.numberOfTaps)?1:this.config.numberOfTaps,interval:this.maxDelayMs,time:Ve(this.config.maxDurationMs)||this.config.maxDurationMs==null?250:this.config.maxDurationMs}}updateGestureConfig({shouldCancelWhenOutside:e=!0,maxDeltaX:n=Number.NaN,maxDeltaY:r=Number.NaN,numberOfTaps:i=1,minDurationMs:a=525,maxDelayMs:s=Number.NaN,maxDurationMs:o=Number.NaN,maxDist:l=2,minPointers:c=1,maxPointers:u=1,...A}){return super.updateGestureConfig({shouldCancelWhenOutside:e,numberOfTaps:i,maxDeltaX:n,maxDeltaY:r,minDurationMs:a,maxDelayMs:s,maxDist:l,minPointers:c,maxPointers:u,...A})}onGestureEnded(...e){clearTimeout(this._timer),super.onGestureEnded(...e)}onWaitingEnded(e){this._shouldFireEndEvent&&(this.onSuccessfulTap(this._shouldFireEndEvent),this._shouldFireEndEvent=null)}},Z3=class extends wx{get minDurationMs(){return Ve(this.config.minDurationMs)?251:this.config.minDurationMs}get maxDist(){return Ve(this.config.maxDist)?9:this.config.maxDist}updateHasCustomActivationCriteria({maxDistSq:e}){return!gn(e)}getConfig(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}getHammerConfig(){return{...super.getHammerConfig(),time:this.minDurationMs}}getState(e){return{[se.INPUT_START]:V.ACTIVE,[se.INPUT_MOVE]:V.ACTIVE,[se.INPUT_END]:V.END,[se.INPUT_CANCEL]:V.FAILED}[e]}};class Sx extends bh{get shouldEnableGestureOnSetup(){return!1}updateGestureConfig({minPointers:e=2,maxPointers:n=2,...r}){return super.updateGestureConfig({minPointers:e,maxPointers:n,...r})}isGestureEnabledForEvent({minPointers:e,maxPointers:n},r,{maxPointers:i}){return i>n?{failed:!0}:{success:i>=e}}}let J3=class extends Sx{get name(){return"pinch"}get NativeGestureClass(){return se.Pinch}transformNativeEvent({scale:e,velocity:n,center:r}){return{focalX:r.x,focalY:r.y,velocity:n,scale:e}}},ek=class extends Sx{get name(){return"rotate"}get NativeGestureClass(){return se.Rotate}transformNativeEvent({rotation:e,velocity:n,center:r}){var i;return{rotation:(e-((i=this.initialRotation)!==null&&i!==void 0?i:0))*W3,anchorX:r.x,anchorY:r.y,velocity:n}}};class tk extends Error{constructor(e,n,r){super(`Invalid property \`${e}: ${n}\` expected \`${r}\``)}}let nk=class extends bx{get name(){return"swipe"}get NativeGestureClass(){return se.Swipe}onGestureActivated(e){this.sendEvent({...e,eventType:se.INPUT_MOVE,isFinal:!1,isFirst:!0}),this.isGestureRunning=!1,this.hasGestureFailed=!1,this.sendEvent({...e,eventType:se.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 n=this.hammer.get(this.name);n.options.enable(n,e)&&(this.onStart(e),this.sendEvent(e))}}}getHammerConfig(){return{pointers:this.config.numberOfPointers,direction:this.getDirection()}}getTargetDirections(e){const n=[];return e&xr.RIGHT&&n.push(se.DIRECTION_RIGHT),e&xr.LEFT&&n.push(se.DIRECTION_LEFT),e&xr.UP&&n.push(se.DIRECTION_UP),e&xr.DOWN&&n.push(se.DIRECTION_DOWN),n}getDirection(){const{direction:e}=this.getConfig();let n=[];return e&xr.RIGHT&&n.push(se.DIRECTION_HORIZONTAL),e&xr.LEFT&&n.push(se.DIRECTION_HORIZONTAL),e&xr.UP&&n.push(se.DIRECTION_VERTICAL),e&xr.DOWN&&n.push(se.DIRECTION_VERTICAL),n=[...new Set(n)],n.length===0?se.DIRECTION_NONE:n.length===1?n[0]:se.DIRECTION_ALL}isGestureEnabledForEvent({numberOfPointers:e},n,{maxPointers:r}){const i=r===e;return!i&&this.isGestureRunning?{failed:!0}:{success:i}}updateGestureConfig({numberOfPointers:e=1,direction:n,...r}){if(Ve(n)||typeof n!="number")throw new tk("direction",n,"number");return super.updateGestureConfig({numberOfPointers:e,direction:n,...r})}};const Qg={NativeViewGestureHandler:j8,PanGestureHandler:_8,TapGestureHandler:D8,LongPressGestureHandler:k8,PinchGestureHandler:P8,RotationGestureHandler:N8,FlingGestureHandler:$8,ManualGestureHandler:Q8,HoverGestureHandler:J8},Zg={NativeViewGestureHandler:$3,PanGestureHandler:j3,TapGestureHandler:Q3,LongPressGestureHandler:Z3,PinchGestureHandler:J3,RotationGestureHandler:ek,FlingGestureHandler:nk};function Vr(t){if((t==null?void 0:t.viewTag)!==void 0)return Vr(t.viewTag);if(t instanceof Element)return t.style.display==="contents"?Vr(t.firstChild):t;if(X8(t))return t.elementRef.current;let e=t==null?void 0:t.current;for(;e&&e.style.display==="contents";)e=e.firstChild;return e}function Wu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class _h{constructor(e){Wu(this,"view",void 0),Wu(this,"pointersInBounds",[]),Wu(this,"activePointersCounter",void 0),this.view=e,this.activePointersCounter=0}onPointerDown(e){}onPointerAdd(e){}onPointerUp(e){}onPointerRemove(e){}onPointerMove(e){}onPointerLeave(e){}onPointerEnter(e){}onPointerCancel(e){}onPointerOutOfBounds(e){}onPointerMoveOver(e){}onPointerMoveOut(e){}onWheel(e){}setOnPointerDown(e){this.onPointerDown=e}setOnPointerAdd(e){this.onPointerAdd=e}setOnPointerUp(e){this.onPointerUp=e}setOnPointerRemove(e){this.onPointerRemove=e}setOnPointerMove(e){this.onPointerMove=e}setOnPointerLeave(e){this.onPointerLeave=e}setOnPointerEnter(e){this.onPointerEnter=e}setOnPointerCancel(e){this.onPointerCancel=e}setOnPointerOutOfBounds(e){this.onPointerOutOfBounds=e}setOnPointerMoveOver(e){this.onPointerMoveOver=e}setOnPointerMoveOut(e){this.onPointerMoveOut=e}setOnWheel(e){this.onWheel=e}markAsInBounds(e){this.pointersInBounds.indexOf(e)>=0||this.pointersInBounds.push(e)}markAsOutOfBounds(e){const n=this.pointersInBounds.indexOf(e);n<0||this.pointersInBounds.splice(n,1)}resetManager(){this.activePointersCounter=0,this.pointersInBounds=[]}}function fn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Xu=new Set(["SELECT","INPUT"]);class rk extends _h{constructor(e){super(e),fn(this,"trackedPointers",new Set),fn(this,"mouseButtonsMapper",new Map),fn(this,"lastPosition",void 0),fn(this,"pointerDownCallback",n=>{if(!tf(this.view,{x:n.clientX,y:n.clientY}))return;const r=this.mapEvent(n,ce.DOWN),i=n.target;Xu.has(i.tagName)||i.setPointerCapture(r.pointerId),this.markAsInBounds(r.pointerId),this.trackedPointers.add(r.pointerId),++this.activePointersCounter>1?(r.eventType=ce.ADDITIONAL_POINTER_DOWN,this.onPointerAdd(r)):this.onPointerDown(r)}),fn(this,"pointerUpCallback",n=>{if(this.activePointersCounter===0)return;const r=this.mapEvent(n,ce.UP),i=n.target;Xu.has(i.tagName)||i.releasePointerCapture(r.pointerId),this.markAsOutOfBounds(r.pointerId),this.trackedPointers.delete(r.pointerId),--this.activePointersCounter>0?(r.eventType=ce.ADDITIONAL_POINTER_UP,this.onPointerRemove(r)):this.onPointerUp(r)}),fn(this,"pointerMoveCallback",n=>{const r=this.mapEvent(n,ce.MOVE),i=n.target;!i.hasPointerCapture(n.pointerId)&&!Xu.has(i.tagName)&&i.setPointerCapture(n.pointerId);const a=tf(this.view,{x:r.x,y:r.y}),s=this.pointersInBounds.indexOf(r.pointerId);a?s<0?(r.eventType=ce.ENTER,this.onPointerEnter(r),this.markAsInBounds(r.pointerId)):this.onPointerMove(r):s>=0?(r.eventType=ce.LEAVE,this.onPointerLeave(r),this.markAsOutOfBounds(r.pointerId)):this.onPointerOutOfBounds(r),this.lastPosition.x=n.x,this.lastPosition.y=n.y}),fn(this,"pointerCancelCallback",n=>{const r=this.mapEvent(n,ce.CANCEL);this.onPointerCancel(r),this.markAsOutOfBounds(r.pointerId),this.activePointersCounter=0,this.trackedPointers.clear()}),fn(this,"pointerEnterCallback",n=>{const r=this.mapEvent(n,ce.ENTER);this.onPointerMoveOver(r)}),fn(this,"pointerLeaveCallback",n=>{const r=this.mapEvent(n,ce.LEAVE);this.onPointerMoveOut(r)}),fn(this,"lostPointerCaptureCallback",n=>{const r=this.mapEvent(n,ce.CANCEL);this.trackedPointers.has(r.pointerId)&&(this.onPointerCancel(r),this.activePointersCounter=0,this.trackedPointers.clear())}),this.mouseButtonsMapper.set(0,bn.LEFT),this.mouseButtonsMapper.set(1,bn.MIDDLE),this.mouseButtonsMapper.set(2,bn.RIGHT),this.mouseButtonsMapper.set(3,bn.BUTTON_4),this.mouseButtonsMapper.set(4,bn.BUTTON_5),this.lastPosition={x:-1/0,y:-1/0}}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,n){var r;const i=this.view.getBoundingClientRect(),{scaleX:a,scaleY:s}=L8(this.view);return{x:e.clientX,y:e.clientY,offsetX:(e.clientX-i.left)/a,offsetY:(e.clientY-i.top)/s,pointerId:e.pointerId,eventType:n,pointerType:(r=QE.get(e.pointerType))!==null&&r!==void 0?r:xt.OTHER,button:this.mouseButtonsMapper.get(e.button),time:e.timeStamp,stylusData:V8(e)}}resetManager(){super.resetManager(),this.trackedPointers.clear()}}function La(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class ik extends _h{constructor(...e){super(...e),La(this,"activationKeys",["Enter"," "]),La(this,"cancelationKeys",["Tab"]),La(this,"isPressed",!1),La(this,"keyDownCallback",n=>{if(this.cancelationKeys.indexOf(n.key)!==-1&&this.isPressed){this.dispatchEvent(n,ce.CANCEL);return}this.activationKeys.indexOf(n.key)!==-1&&this.dispatchEvent(n,ce.DOWN)}),La(this,"keyUpCallback",n=>{this.activationKeys.indexOf(n.key)===-1||!this.isPressed||this.dispatchEvent(n,ce.UP)})}dispatchEvent(e,n){if(!(e.target instanceof HTMLElement))return;const r=this.mapEvent(e,n);switch(n){case ce.UP:this.isPressed=!1,this.onPointerUp(r);break;case ce.DOWN:this.isPressed=!0,this.onPointerDown(r);break;case ce.CANCEL:this.isPressed=!1,this.onPointerCancel(r);break}}registerListeners(){this.view.addEventListener("keydown",this.keyDownCallback),this.view.addEventListener("keyup",this.keyUpCallback)}unregisterListeners(){this.view.removeEventListener("keydown",this.keyDownCallback),this.view.removeEventListener("keyup",this.keyUpCallback)}mapEvent(e,n){const r=e.target.getBoundingClientRect(),i={x:(r==null?void 0:r.x)+(r==null?void 0:r.width)/2,y:(r==null?void 0:r.y)+(r==null?void 0:r.height)/2},a={x:(r==null?void 0:r.width)/2,y:(r==null?void 0:r.height)/2};return{x:i.x,y:i.y,offsetX:a.x,offsetY:a.y,pointerId:0,eventType:n,pointerType:xt.KEY,time:e.timeStamp}}}function Yu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class ak extends _h{constructor(...e){super(...e),Yu(this,"wheelDelta",{x:0,y:0}),Yu(this,"resetDelta",n=>{this.wheelDelta={x:0,y:0}}),Yu(this,"wheelCallback",n=>{this.wheelDelta.x+=n.deltaX,this.wheelDelta.y+=n.deltaY;const r=this.mapEvent(n);this.onWheel(r)})}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:ce.MOVE,pointerType:xt.OTHER,time:e.timeStamp,wheelDeltaY:e.wheelDeltaY}}resetManager(){super.resetManager()}}function Va(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class sk{constructor(){Va(this,"isInitialized",!1),Va(this,"view",void 0),Va(this,"gestureHandler",void 0),Va(this,"eventManagers",[]),Va(this,"defaultViewStyles",{userSelect:"",touchAction:""})}getView(){return this.view}init(e,n){if(!e)throw new Error(`Cannot find HTML Element for handler ${n.getTag()}`);this.isInitialized=!0,this.gestureHandler=n,this.view=Vr(e),this.defaultViewStyles={userSelect:this.view.style.userSelect,touchAction:this.view.style.touchAction};const r=n.getConfig();this.setUserSelect(r.enabled),this.setTouchAction(r.enabled),this.setContextMenu(r.enabled),this.eventManagers.push(new rk(this.view)),this.eventManagers.push(new ik(this.view)),this.eventManagers.push(new ak(this.view)),this.eventManagers.forEach(i=>this.gestureHandler.attachEventManager(i))}isPointerInBounds({x:e,y:n}){return tf(this.view,{x:e,y:n})}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.getConfig();e.activeCursor&&e.activeCursor!=="auto"&&this.gestureHandler.getState()===V.ACTIVE&&(this.view.style.cursor="auto")}shouldDisableContextMenu(e){return e.enableContextMenu===void 0&&this.gestureHandler.isButtonInConfig(bn.RIGHT)||e.enableContextMenu===!1}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:n}=this.gestureHandler.getConfig();this.view.style.userSelect=e?n??"none":this.defaultViewStyles.userSelect,this.view.style.webkitUserSelect=e?n??"none":this.defaultViewStyles.userSelect}setTouchAction(e){const{touchAction:n}=this.gestureHandler.getConfig();this.view.style.touchAction=e?n??"none":this.defaultViewStyles.touchAction,this.view.style.WebkitTouchCallout=e?n??"none":this.defaultViewStyles.touchAction}setContextMenu(e){const n=this.gestureHandler.getConfig();e?this.addContextMenuListeners(n):this.removeContextMenuListeners(n)}onEnabledChange(e){this.isInitialized&&(this.setUserSelect(e),this.setTouchAction(e),this.setContextMenu(e))}onBegin(){}onActivate(){const e=this.gestureHandler.getConfig();(!this.view.style.cursor||this.view.style.cursor==="auto")&&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(n=>{n.unregisterListeners()})}}let Jg=!1;const St={handleSetJSResponder(t,e){console.warn("handleSetJSResponder: ",t,e)},handleClearJSResponder(){console.warn("handleClearJSResponder: ")},createGestureHandler(t,e,n){if(Zr()){if(!(t in Qg))throw new Error(`react-native-gesture-handler: ${t} is not supported on web.`);const r=Qg[t];Bt.createGestureHandler(e,new r(new sk)),rr.getInstance().configureInteractions(Bt.getHandler(e),n)}else{if(!(t in Zg))throw new Error(`react-native-gesture-handler: ${t} is not supported on web.`);const r=Zg[t];Y3(e,new r)}this.updateGestureHandler(e,n)},attachGestureHandler(t,e,n,r){if(!(e instanceof Element||e instanceof _t.Component)){Jg=!0;const a=(Zr()?Bt.getHandler(t):kr(t)).constructor.name;throw new Error(`${a} with tag ${t} received child that is not valid HTML element.`)}Zr()?Bt.getHandler(t).init(e,r):kr(t).setView(e,r)},updateGestureHandler(t,e){Zr()?(Bt.getHandler(t).updateGestureConfig(e),rr.getInstance().configureInteractions(Bt.getHandler(t),e)):kr(t).updateGestureConfig(e)},getGestureHandlerNode(t){return Zr()?Bt.getHandler(t):kr(t)},dropGestureHandler(t){Jg||(Zr()?Bt.dropGestureHandler(t):z3(t))},flushOperations(){}};function ok(){g8()}const Dh=_t.createContext(!1);function cf(){return cf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},cf.apply(this,arguments)}function _x({style:t,...e}){return _.createElement(Dh.Provider,{value:!0},_.createElement(pe,cf({style:t??lk.container},e)))}const lk=he.create({container:{flex:1}});function ck(t,e){function n(r){return _.createElement(_x,{style:[uk.container,e]},_.createElement(t,r))}return n.displayName=`gestureHandlerRootHOC(${t.displayName||t.name})`,t1(n,t),n}const uk=he.create({container:{flex:1}});let dk=1;function Dx(){return dk++}function Ak(t,e){return t!==void 0&&(t!==Object(t)||!("__isNative"in t))&&e!=="onHandlerStateChange"&&e!=="onGestureEvent"}function oa(t,e,n={}){const r={...n};for(const i of e){let a=t[i];Ak(a,i)&&(i==="simultaneousHandlers"||i==="waitFor"?a=fk(t[i]):i==="hitSlop"&&typeof a!="object"&&(a={top:a,left:a,bottom:a,right:a}),r[i]=a)}return r}function fk(t){return t=s8(t),ue.OS==="web"?t.map(({current:e})=>e).filter(e=>e):t.map(e=>{var n;return Go[e]||((n=e.current)===null||n===void 0?void 0:n.handlerTag)||-1}).filter(e=>e>0)}let zu=!1;function la(){zu||(zu=!0,Mi(()=>{St.flushOperations(),zu=!1}))}const li={REANIMATED_WORKLET:1,NATIVE_ANIMATED_EVENT:2,JS_FUNCTION_OLD_API:3,JS_FUNCTION_NEW_API:4};var qu,Ku,$u;function gt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ir=w1,hk={topOnGestureHandlerEvent:{registrationName:"onGestureHandlerEvent"},topOnGestureHandlerStateChange:{registrationName:"onGestureHandlerStateChange"}},Tx={onGestureHandlerEvent:{registrationName:"onGestureHandlerEvent"},onGestureHandlerStateChange:{registrationName:"onGestureHandlerStateChange"},...l8()&&ue.OS==="android"&&hk};ir.genericDirectEventTypes={...ir.genericDirectEventTypes,...Tx};const ju=(qu=(Ku=ir.getViewManagerConfig)===null||Ku===void 0?void 0:Ku.call(ir,"getConstants"))!==null&&qu!==void 0?qu:($u=ir.getConstants)===null||$u===void 0?void 0:$u.call(ir);ju&&(ju.genericDirectEventTypes={...ju.genericDirectEventTypes,...Tx});const{setJSResponder:pk=()=>{},clearJSResponder:gk=()=>{}}=ir;ir.setJSResponder=(t,e)=>{St.handleSetJSResponder(t,e),pk(t,e)};ir.clearJSResponder=()=>{St.handleClearJSResponder(),gk()};let vk=!0;function ev(t){const e=n=>Array.isArray(n)?n.some(r=>r&&r.current===null):n&&n.current===null;return e(t.simultaneousHandlers)||e(t.waitFor)}const mk={[V.UNDETERMINED]:void 0,[V.BEGAN]:"onBegan",[V.FAILED]:"onFailed",[V.CANCELLED]:"onCancelled",[V.ACTIVE]:"onActivated",[V.END]:"onEnded"},tv=1;function Xr({name:t,allowedProps:e=[],config:n={},transformProps:r,customNativeProps:i=[]}){class a extends _.Component{constructor(o){if(super(o),gt(this,"handlerTag",void 0),gt(this,"config",void 0),gt(this,"propsRef",void 0),gt(this,"isMountedRef",void 0),gt(this,"viewNode",void 0),gt(this,"viewTag",void 0),gt(this,"inspectorToggleListener",void 0),gt(this,"onGestureHandlerEvent",l=>{if(l.nativeEvent.handlerTag===this.handlerTag){if(typeof this.props.onGestureEvent=="function"){var c,u;(c=(u=this.props).onGestureEvent)===null||c===void 0||c.call(u,l)}}else{var A,d;(A=(d=this.props).onGestureHandlerEvent)===null||A===void 0||A.call(d,l)}}),gt(this,"onGestureHandlerStateChange",l=>{if(l.nativeEvent.handlerTag===this.handlerTag){if(typeof this.props.onHandlerStateChange=="function"){var c,u;(c=(u=this.props).onHandlerStateChange)===null||c===void 0||c.call(u,l)}const f=l.nativeEvent.state,p=mk[f],h=p&&this.props[p];h&&typeof h=="function"&&h(l)}else{var A,d;(A=(d=this.props).onGestureHandlerStateChange)===null||A===void 0||A.call(d,l)}}),gt(this,"refHandler",l=>{this.viewNode=l;const c=_.Children.only(this.props.children),{ref:u}=c;u!==null&&(typeof u=="function"?u(l):u.current=l)}),gt(this,"createGestureHandler",l=>{this.config=l,St.createGestureHandler(t,this.handlerTag,l)}),gt(this,"attachGestureHandler",l=>{if(this.viewTag=l,ue.OS==="web")St.attachGestureHandler(this.handlerTag,l,li.JS_FUNCTION_OLD_API,this.propsRef);else{u8(this.handlerTag,{onGestureEvent:this.onGestureHandlerEvent,onGestureStateChange:this.onGestureHandlerStateChange});const c=(()=>{var u,A;const d=(u=this.props)===null||u===void 0?void 0:u.onGestureEvent,f=d&&("current"in d||"workletEventHandler"in d),p=(A=this.props)===null||A===void 0?void 0:A.onHandlerStateChange,h=p&&("current"in p||"workletEventHandler"in p);return f||h?li.REANIMATED_WORKLET:d&&"__isNative"in d?li.NATIVE_ANIMATED_EVENT:li.JS_FUNCTION_OLD_API})();St.attachGestureHandler(this.handlerTag,l,c)}la()}),gt(this,"updateGestureHandler",l=>{this.config=l,St.updateGestureHandler(this.handlerTag,l),la()}),this.handlerTag=Dx(),this.config={},this.propsRef=_.createRef(),this.isMountedRef=_.createRef(),this.state={allowTouches:vk},o.id){if(Go[o.id]!==void 0)throw new Error(`Handler with ID "${o.id}" already registered`);Go[o.id]=this.handlerTag}}componentDidMount(){const o=this.props;this.isMountedRef.current=!0,ev(o)&&Mi(()=>{this.update(tv)}),this.createGestureHandler(oa(r?r(this.props):this.props,[...e,...i],n)),this.attachGestureHandler(Vr(this.viewNode))}componentDidUpdate(){const o=Vr(this.viewNode);this.viewTag!==o&&this.attachGestureHandler(o),this.update(tv)}componentWillUnmount(){var o;(o=this.inspectorToggleListener)===null||o===void 0||o.remove(),this.isMountedRef.current=!1,St.dropGestureHandler(this.handlerTag),la();const l=this.props.id;l&&delete Go[l]}update(o){if(!this.isMountedRef.current)return;const l=this.props;if(ev(l)&&o>0)Mi(()=>{this.update(o-1)});else{const c=oa(r?r(this.props):this.props,[...e,...i],n);HE(this.config,c)||this.updateGestureHandler(c)}}setNativeProps(o){const l={...this.props,...o},c=oa(r?r(l):l,[...e,...i],n);this.updateGestureHandler(c)}render(){var o;let l=this.onGestureHandlerEvent;const{onGestureEvent:c,onGestureHandlerEvent:u}=this.props;if(c&&typeof c!="function"){if(u)throw new Error("Nesting touch handlers with native animated driver is not supported yet");l=c}else if(u&&typeof u!="function")throw new Error("Nesting touch handlers with native animated driver is not supported yet");let A=this.onGestureHandlerStateChange;const{onHandlerStateChange:d,onGestureHandlerStateChange:f}=this.props;if(d&&typeof d!="function"){if(f)throw new Error("Nesting touch handlers with native animated driver is not supported yet");A=d}else if(f&&typeof f!="function")throw new Error("Nesting touch handlers with native animated driver is not supported yet");const p={onGestureHandlerEvent:this.state.allowTouches?l:void 0,onGestureHandlerStateChange:this.state.allowTouches?A:void 0};this.propsRef.current=p;let h=null;try{h=_.Children.only(this.props.children)}catch{throw new Error(Ws(`${t} 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 g=h.props.children;return _.cloneElement(h,{ref:this.refHandler,collapsable:!1,...gh()?{handlerType:t,handlerTag:this.handlerTag,enabled:this.props.enabled}:{},testID:(o=this.props.testID)!==null&&o!==void 0?o:h.props.testID,...p},g)}}return gt(a,"displayName",t),gt(a,"contextType",Dh),a}const Ox=["maxDurationMs","maxDelayMs","numberOfTaps","maxDeltaX","maxDeltaY","maxDist","minPointers"],Ck="TapGestureHandler",Th=Xr({name:Ck,allowedProps:[...Wr,...Ox],config:{shouldCancelWhenOutside:!0}}),ca={get forceTouchAvailable(){return!1}};function Ek(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const kx=["minForce","maxForce","feedbackOnActivation"];class Mx extends _t.Component{componentDidMount(){console.warn(Ws("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}}Ek(Mx,"forceTouchAvailable",!1);const xk="ForceTouchGestureHandler",Px=ca!=null&&ca.forceTouchAvailable?Xr({name:xk,allowedProps:[...Wr,...kx],config:{}}):Mx;Px.forceTouchAvailable=(ca==null?void 0:ca.forceTouchAvailable)||!1;const Fx=["minDurationMs","maxDist","numberOfPointers"],yk="LongPressGestureHandler",Ik=Xr({name:yk,allowedProps:[...Wr,...Fx],config:{shouldCancelWhenOutside:!0}}),Rx=["activeOffsetY","activeOffsetX","failOffsetY","failOffsetX","minDist","minVelocity","minVelocityX","minVelocityY","minPointers","maxPointers","avgTouches","enableTrackpadTwoFingerGesture","activateAfterLongPress"],Nx=["activeOffsetYStart","activeOffsetYEnd","activeOffsetXStart","activeOffsetXEnd","failOffsetYStart","failOffsetYEnd","failOffsetXStart","failOffsetXEnd"],wk="PanGestureHandler",Oh=Xr({name:wk,allowedProps:[...Wr,...Rx],config:{},transformProps:Sk,customNativeProps:Nx});function bk(t){const e={...t};return t.activeOffsetX!==void 0&&(delete e.activeOffsetX,Array.isArray(t.activeOffsetX)?(e.activeOffsetXStart=t.activeOffsetX[0],e.activeOffsetXEnd=t.activeOffsetX[1]):t.activeOffsetX<0?e.activeOffsetXStart=t.activeOffsetX:e.activeOffsetXEnd=t.activeOffsetX),t.activeOffsetY!==void 0&&(delete e.activeOffsetY,Array.isArray(t.activeOffsetY)?(e.activeOffsetYStart=t.activeOffsetY[0],e.activeOffsetYEnd=t.activeOffsetY[1]):t.activeOffsetY<0?e.activeOffsetYStart=t.activeOffsetY:e.activeOffsetYEnd=t.activeOffsetY),t.failOffsetX!==void 0&&(delete e.failOffsetX,Array.isArray(t.failOffsetX)?(e.failOffsetXStart=t.failOffsetX[0],e.failOffsetXEnd=t.failOffsetX[1]):t.failOffsetX<0?e.failOffsetXStart=t.failOffsetX:e.failOffsetXEnd=t.failOffsetX),t.failOffsetY!==void 0&&(delete e.failOffsetY,Array.isArray(t.failOffsetY)?(e.failOffsetYStart=t.failOffsetY[0],e.failOffsetYEnd=t.failOffsetY[1]):t.failOffsetY<0?e.failOffsetYStart=t.failOffsetY:e.failOffsetYEnd=t.failOffsetY),e}function Sk(t){return bk(t)}const _k="PinchGestureHandler",Dk=Xr({name:_k,allowedProps:Wr,config:{}}),Tk="RotationGestureHandler",Ok=Xr({name:Tk,allowedProps:Wr,config:{}}),Bx=["numberOfPointers","direction"],kk="FlingGestureHandler",Mk=Xr({name:kk,allowedProps:[...Wr,...Bx],config:{}}),Gx=["shouldActivateOnStart","disallowInterruption"],Lx=[...Wr,...Gx],Pk="NativeViewGestureHandler",Vx=Xr({name:Pk,allowedProps:Lx,config:{}});function Cl(){return Cl=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Cl.apply(this,arguments)}const Fk=[...Lx,"onGestureHandlerEvent","onGestureHandlerStateChange"];function ba(t,e={}){var n;const r=_.forwardRef((i,a)=>{const s=Object.keys(i).reduce((c,u)=>(Fk.includes(u)&&(c[u]=i[u]),c),{...e}),o=_.useRef(),l=_.useRef();return _.useImperativeHandle(a,()=>{const c=l.current;return o.current&&c?(o.current.handlerTag=c.handlerTag,o.current):null},[o,l]),_.createElement(Vx,Cl({},s,{ref:l}),_.createElement(t,Cl({},i,{ref:o})))});return r.displayName=(t==null?void 0:t.displayName)||(t==null||(n=t.render)===null||n===void 0?void 0:n.name)||typeof t=="string"&&t||"ComponentWrapper",r}function Ha(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ee={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 Hx{}let Rk=0;class Bi extends Hx{constructor(){super(),Ha(this,"gestureId",-1),Ha(this,"handlerTag",-1),Ha(this,"handlerName",""),Ha(this,"config",{}),Ha(this,"handlers",{gestureId:-1,handlerTag:-1,isWorklet:[]}),this.gestureId=Rk++,this.handlers.gestureId=this.gestureId}addDependency(e,n){const r=this.config[e];this.config[e]=r?Array().concat(r,n):[n]}withRef(e){return this.config.ref=e,this}isWorklet(e){return e.__workletHash!==void 0}onBegin(e){return this.handlers.onBegin=e,this.handlers.isWorklet[Ee.BEGAN]=this.isWorklet(e),this}onStart(e){return this.handlers.onStart=e,this.handlers.isWorklet[Ee.START]=this.isWorklet(e),this}onEnd(e){return this.handlers.onEnd=e,this.handlers.isWorklet[Ee.END]=this.isWorklet(e),this}onFinalize(e){return this.handlers.onFinalize=e,this.handlers.isWorklet[Ee.FINALIZE]=this.isWorklet(e),this}onTouchesDown(e){return this.config.needsPointerData=!0,this.handlers.onTouchesDown=e,this.handlers.isWorklet[Ee.TOUCHES_DOWN]=this.isWorklet(e),this}onTouchesMove(e){return this.config.needsPointerData=!0,this.handlers.onTouchesMove=e,this.handlers.isWorklet[Ee.TOUCHES_MOVE]=this.isWorklet(e),this}onTouchesUp(e){return this.config.needsPointerData=!0,this.handlers.onTouchesUp=e,this.handlers.isWorklet[Ee.TOUCHES_UP]=this.isWorklet(e),this}onTouchesCancelled(e){return this.config.needsPointerData=!0,this.handlers.onTouchesCancelled=e,this.handlers.isWorklet[Ee.TOUCHES_CANCELLED]=this.isWorklet(e),this}enabled(e){return this.config.enabled=e,this}shouldCancelWhenOutside(e){return this.config.shouldCancelWhenOutside=e,this}hitSlop(e){return this.config.hitSlop=e,this}activeCursor(e){return this.config.activeCursor=e,this}mouseButton(e){return this.config.mouseButton=e,this}runOnJS(e){return this.config.runOnJS=e,this}simultaneousWithExternalGesture(...e){for(const n of e)this.addDependency("simultaneousWith",n);return this}requireExternalGestureToFail(...e){for(const n of e)this.addDependency("requireToFail",n);return this}blocksExternalGesture(...e){for(const n of e)this.addDependency("blocksHandlers",n);return this}withTestId(e){return this.config.testId=e,this}cancelsTouchesInView(e){return this.config.cancelsTouchesInView=e,this}initialize(){this.handlerTag=Dx(),this.handlers={...this.handlers,handlerTag:this.handlerTag},this.config.ref&&(this.config.ref.current=this)}toGestureArray(){return[this]}prepare(){}get shouldUseReanimated(){return this.config.runOnJS!==!0&&!this.handlers.isWorklet.includes(!1)&&!c8()}}class Sa extends Bi{onUpdate(e){return this.handlers.onUpdate=e,this.handlers.isWorklet[Ee.UPDATE]=this.isWorklet(e),this}onChange(e){return this.handlers.onChange=e,this.handlers.isWorklet[Ee.CHANGE]=this.isWorklet(e),this}manualActivation(e){return this.config.manualActivation=e,this}}const Tt=Gs(oT);var Qu;let an;try{an=Tt}catch{an=void 0}(Qu=an)!==null&&Qu!==void 0&&Qu.useSharedValue||(an=void 0);an!==void 0&&!an.setGestureState&&(an.setGestureState=()=>{"worklet";console.warn(Ws("Please use newer version of react-native-reanimated in order to control state of the gestures."))});function Nk(t,e){"worklet";switch(t){case Ee.BEGAN:return e.onBegin;case Ee.START:return e.onStart;case Ee.UPDATE:return e.onUpdate;case Ee.CHANGE:return e.onChange;case Ee.END:return e.onEnd;case Ee.FINALIZE:return e.onFinalize;case Ee.TOUCHES_DOWN:return e.onTouchesDown;case Ee.TOUCHES_MOVE:return e.onTouchesMove;case Ee.TOUCHES_UP:return e.onTouchesUp;case Ee.TOUCHES_CANCELLED:return e.onTouchesCancelled}}function Bk(t){"worklet";switch(t){case nr.TOUCHES_DOWN:return Ee.TOUCHES_DOWN;case nr.TOUCHES_MOVE:return Ee.TOUCHES_MOVE;case nr.TOUCHES_UP:return Ee.TOUCHES_UP;case nr.TOUCHES_CANCELLED:return Ee.TOUCHES_CANCELLED}return Ee.UNDEFINED}function Un(t,e,n,...r){"worklet";const i=Nk(t,e);e.isWorklet[t]?i==null||i(n,...r):i&&console.warn(Ws("Animated gesture callback must be a worklet"))}function Gk(t){"worklet";return t.oldState!=null}function Lk(t){"worklet";return t.eventType!=null}function Vk(t,e){if(!an)return;const n=an.useSharedValue(null),r=an.useSharedValue([]),i=[],a=o=>{"worklet";const l=n.value;if(l)for(let u=0;u<l.length;u++){const A=l[u];if(o.handlerTag===A.handlerTag){if(Gk(o))o.oldState===V.UNDETERMINED&&o.state===V.BEGAN?Un(Ee.BEGAN,A,o):(o.oldState===V.BEGAN||o.oldState===V.UNDETERMINED)&&o.state===V.ACTIVE?(Un(Ee.START,A,o),r.value[A.handlerTag]=void 0):o.oldState!==o.state&&o.state===V.END?(o.oldState===V.ACTIVE&&Un(Ee.END,A,o,!0),Un(Ee.FINALIZE,A,o,!0)):(o.state===V.FAILED||o.state===V.CANCELLED)&&o.state!==o.oldState&&(o.oldState===V.ACTIVE&&Un(Ee.END,A,o,!1),Un(Ee.FINALIZE,A,o,!1));else if(Lk(o))i[u]||(i[u]=YE.create(o.handlerTag)),o.eventType!==nr.UNDETERMINED&&Un(Bk(o.eventType),A,o,i[u]);else if(Un(Ee.UPDATE,A,o),A.onChange&&A.changeEventCalculator){var c;Un(Ee.CHANGE,A,(c=A.changeEventCalculator)===null||c===void 0?void 0:c.call(A,o,r.value[A.handlerTag])),r.value[A.handlerTag]=o}}}},s=an.useEvent(a,["onGestureHandlerStateChange","onGestureHandlerEvent"],e);t.animatedEventHandler=s,t.animatedHandlers=n}function Hk(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let uf;(function(t){t[t.NONE=0]="NONE",t[t.LIFT=1]="LIFT",t[t.HIGHLIGHT=2]="HIGHLIGHT"})(uf||(uf={}));const Uk=["hoverEffect"];function Wk(t,e){"worklet";let n;return e===void 0?n={changeX:t.x,changeY:t.y}:n={changeX:t.x-e.x,changeY:t.y-e.y},{...t,...n}}class Xk extends Sa{constructor(){super(),Hk(this,"config",{}),this.handlerName="HoverGestureHandler"}effect(e){return this.config.hoverEffect=e,this}onChange(e){return this.handlers.changeEventCalculator=Wk,super.onChange(e)}}const df=[...S8,...Ox,...Rx,...Nx,...Fx,...kx,...Bx,...Uk,...Gx];function Yk(t){if(typeof t=="number")return t;if(t instanceof Bi)return t.handlerTag;var e,n;return(e=(n=t.current)===null||n===void 0?void 0:n.handlerTag)!==null&&e!==void 0?e:-1}function Zu(t){var e,n;return(e=t==null||(n=t.map(Yk))===null||n===void 0?void 0:n.filter(r=>r>0))!==null&&e!==void 0?e:[]}function Ux(t){const e=Zu(t.config.requireToFail),n=Zu(t.config.simultaneousWith),r=Zu(t.config.blocksHandlers);return{waitFor:e,simultaneousHandlers:n,blocksHandlers:r}}function zk(){const[t,e]=_.useState(!1);return _.useCallback(()=>{e(!t)},[t,e])}function qk(){return _.useRef({onGestureHandlerEvent:t=>{pl(t.nativeEvent)},onGestureHandlerStateChange:Zr()?t=>{pl(t.nativeEvent)}:void 0})}function Wx({preparedGesture:t,gestureConfig:e,gesturesToAttach:n,viewTag:r,webEventHandlersRef:i}){e.initialize(),Mi(()=>{t.isMounted&&e.prepare()});for(const a of n)St.createGestureHandler(a.handlerName,a.handlerTag,oa(a.config,df)),XE(a.handlerTag,a,a.config.testId);Mi(()=>{if(t.isMounted){for(const a of n)St.updateGestureHandler(a.handlerTag,oa(a.config,df,Ux(a)));la()}});for(const a of n){const s=a.shouldUseReanimated?li.REANIMATED_WORKLET:li.JS_FUNCTION_NEW_API;ue.OS==="web"?St.attachGestureHandler(a.handlerTag,r,li.JS_FUNCTION_OLD_API,i):St.attachGestureHandler(a.handlerTag,r,s)}if(t.attachedGestures=n,t.animatedHandlers){const a=s=>s.shouldUseReanimated;t.animatedHandlers.value=n.filter(a).map(s=>s.handlers)}}function Xx(t,e){if(e.length!==t.attachedGestures.length)return!0;for(let n=0;n<e.length;n++)if(e[n].handlerName!==t.attachedGestures[n].handlerName||e[n].shouldUseReanimated!==t.attachedGestures[n].shouldUseReanimated)return!0;return!1}function Yx(t){for(const e of t.attachedGestures)St.dropGestureHandler(e.handlerTag),d8(e.handlerTag,e.config.testId);la()}const zx=_.forwardRef(({children:t},e)=>{try{var n;const r=_t.Children.only(t);return((n=Object.getPrototypeOf(r==null?void 0:r.type))===null||n===void 0?void 0:n.name)==="WebShape"?_t.cloneElement(r,{ref:e},r.props.children):_t.createElement("div",{ref:e,style:{display:"contents"}},r)}catch{throw new Error(Ws("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."))}}),Kk=zx;function $k(t,e,n){e.prepare();for(let r=0;r<n.length;r++){const i=t.attachedGestures[r];n[r].handlerTag!==i.handlerTag&&(n[r].handlerTag=i.handlerTag,n[r].handlers.handlerTag=i.handlerTag)}Mi(()=>{if(!t.isMounted)return;let r=t.attachedGestures.length!==n.length;for(let i=0;i<n.length;i++){const a=t.attachedGestures[i];a.handlers.gestureId!==n[i].handlers.gestureId&&(n[i].shouldUseReanimated||a.shouldUseReanimated)&&(r=!0),a.config=n[i].config,a.handlers=n[i].handlers,St.updateGestureHandler(a.handlerTag,oa(a.config,df,Ux(a))),XE(a.handlerTag,a,a.config.testId)}if(t.animatedHandlers&&r){const i=t.attachedGestures.filter(a=>a.shouldUseReanimated).map(a=>a.handlers);t.animatedHandlers.value=i}la()})}function jk(t,e,n,r,i){const a=zk();return _.useCallback(o=>{const l=Vr(t.viewRef),c=l!==t.previousViewTag;c||Xx(e,n)?(t.viewRef,Yx(e),Wx({preparedGesture:e,gestureConfig:r,gesturesToAttach:n,webEventHandlersRef:i,viewTag:l}),c&&(t.previousViewTag=l,t.forceRebuildReanimatedEvent=!0,a())):o||$k(e,r,n)},[a,r,n,e,t,i])}function Qk(t,e){return _.useCallback(r=>{r!==null&&(t.viewRef=r,t.previousViewTag===-1&&(t.previousViewTag=Vr(t.viewRef)),t.firstRender||e(!0))},[t,e])}function Zk(t,e){const n=["userSelect","enableContextMenu","touchAction"];for(const r of n){const i=t[r];if(i!==void 0)for(const a of e.toGestureArray()){const s=a.config;s[r]=i}}}const qx=t=>{_.useContext(Dh);const e=t.gesture;Zk(t,e);const n=_.useMemo(()=>e.toGestureArray(),[e]),r=n.some(u=>u.shouldUseReanimated),i=qk(),a=_.useRef({firstRender:!0,viewRef:null,previousViewTag:-1,forceRebuildReanimatedEvent:!1}).current,s=_t.useRef({attachedGestures:[],animatedEventHandler:null,animatedHandlers:null,shouldUseReanimated:r,isMounted:!1}).current,o=jk(a,s,n,e,i),l=Qk(a,o),c=a.firstRender||a.forceRebuildReanimatedEvent||Xx(s,n);return a.forceRebuildReanimatedEvent=!1,Vk(s,c),_.useLayoutEffect(()=>{const u=Vr(a.viewRef);return s.isMounted=!0,Wx({preparedGesture:s,gestureConfig:e,gesturesToAttach:n,webEventHandlersRef:i,viewTag:u}),()=>{s.isMounted=!1,Yx(s)}},[]),_.useEffect(()=>{a.firstRender?a.firstRender=!1:o()},[t]),r?_t.createElement(Kk,{ref:l,onGestureHandlerEvent:s.animatedEventHandler},t.children):_t.createElement(zx,{ref:l},t.children)};function Jk(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class e5 extends Bi{constructor(){super(),Jk(this,"config",{}),this.handlerName="FlingGestureHandler"}numberOfPointers(e){return this.config.numberOfPointers=e,this}direction(e){return this.config.direction=e,this}}function t5(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n5(t,e){"worklet";let n;return e===void 0?n={forceChange:t.force}:n={forceChange:t.force-e.force},{...t,...n}}class r5 extends Sa{constructor(){super(),t5(this,"config",{}),this.handlerName="ForceTouchGestureHandler"}minForce(e){return this.config.minForce=e,this}maxForce(e){return this.config.maxForce=e,this}feedbackOnActivation(e){return this.config.feedbackOnActivation=e,this}onChange(e){return this.handlers.changeEventCalculator=n5,super.onChange(e)}}function Ju(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nv(t,e){return t===void 0?[...e]:[...t,...e]}class $s extends Hx{constructor(...e){super(),Ju(this,"gestures",[]),Ju(this,"simultaneousGestures",[]),Ju(this,"requireGesturesToFail",[]),this.gestures=e}prepareSingleGesture(e,n,r){if(e instanceof Bi){const i={...e.config};i.simultaneousWith=nv(i.simultaneousWith,n),i.requireToFail=nv(i.requireToFail,r),e.config=i}else e instanceof $s&&(e.simultaneousGestures=n,e.requireGesturesToFail=r,e.prepare())}prepare(){for(const e of this.gestures)this.prepareSingleGesture(e,this.simultaneousGestures,this.requireGesturesToFail)}initialize(){for(const e of this.gestures)e.initialize()}toGestureArray(){return this.gestures.flatMap(e=>e.toGestureArray())}}class i5 extends $s{prepare(){const e=this.gestures.map(n=>this.gestures.filter(r=>r!==n).flatMap(r=>r.toGestureArray()));for(let n=0;n<this.gestures.length;n++)this.prepareSingleGesture(this.gestures[n],e[n],this.requireGesturesToFail)}}class a5 extends $s{prepare(){const e=this.gestures.map(r=>r.toGestureArray());let n=[];for(let r=0;r<this.gestures.length;r++)this.prepareSingleGesture(this.gestures[r],this.simultaneousGestures,this.requireGesturesToFail.concat(n)),n=n.concat(e[r])}}function s5(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class o5 extends Bi{constructor(){super(),s5(this,"config",{}),this.handlerName="LongPressGestureHandler",this.shouldCancelWhenOutside(!0)}minDuration(e){return this.config.minDurationMs=e,this}maxDistance(e){return this.config.maxDist=e,this}numberOfPointers(e){return this.config.numberOfPointers=e,this}}function l5(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c5(t,e){"worklet";let n;return e===void 0?n={changeX:t.translationX,changeY:t.translationY}:n={changeX:t.translationX-e.translationX,changeY:t.translationY-e.translationY},{...t,...n}}class u5 extends Sa{constructor(){super(),l5(this,"config",{}),this.handlerName="PanGestureHandler"}activeOffsetY(e){return Array.isArray(e)?(this.config.activeOffsetYStart=e[0],this.config.activeOffsetYEnd=e[1]):e<0?this.config.activeOffsetYStart=e:this.config.activeOffsetYEnd=e,this}activeOffsetX(e){return Array.isArray(e)?(this.config.activeOffsetXStart=e[0],this.config.activeOffsetXEnd=e[1]):e<0?this.config.activeOffsetXStart=e:this.config.activeOffsetXEnd=e,this}failOffsetY(e){return Array.isArray(e)?(this.config.failOffsetYStart=e[0],this.config.failOffsetYEnd=e[1]):e<0?this.config.failOffsetYStart=e:this.config.failOffsetYEnd=e,this}failOffsetX(e){return Array.isArray(e)?(this.config.failOffsetXStart=e[0],this.config.failOffsetXEnd=e[1]):e<0?this.config.failOffsetXStart=e:this.config.failOffsetXEnd=e,this}minPointers(e){return this.config.minPointers=e,this}maxPointers(e){return this.config.maxPointers=e,this}minDistance(e){return this.config.minDist=e,this}minVelocity(e){return this.config.minVelocity=e,this}minVelocityX(e){return this.config.minVelocityX=e,this}minVelocityY(e){return this.config.minVelocityY=e,this}averageTouches(e){return this.config.avgTouches=e,this}enableTrackpadTwoFingerGesture(e){return this.config.enableTrackpadTwoFingerGesture=e,this}activateAfterLongPress(e){return this.config.activateAfterLongPress=e,this}onChange(e){return this.handlers.changeEventCalculator=c5,super.onChange(e)}}function d5(t,e){"worklet";let n;return e===void 0?n={scaleChange:t.scale}:n={scaleChange:t.scale/e.scale},{...t,...n}}class A5 extends Sa{constructor(){super(),this.handlerName="PinchGestureHandler"}onChange(e){return this.handlers.changeEventCalculator=d5,super.onChange(e)}}function f5(t,e){"worklet";let n;return e===void 0?n={rotationChange:t.rotation}:n={rotationChange:t.rotation-e.rotation},{...t,...n}}class h5 extends Sa{constructor(){super(),this.handlerName="RotationGestureHandler"}onChange(e){return this.handlers.changeEventCalculator=f5,super.onChange(e)}}function p5(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class g5 extends Bi{constructor(){super(),p5(this,"config",{}),this.handlerName="TapGestureHandler",this.shouldCancelWhenOutside(!0)}minPointers(e){return this.config.minPointers=e,this}numberOfTaps(e){return this.config.numberOfTaps=e,this}maxDistance(e){return this.config.maxDist=e,this}maxDuration(e){return this.config.maxDurationMs=e,this}maxDelay(e){return this.config.maxDelayMs=e,this}maxDeltaX(e){return this.config.maxDeltaX=e,this}maxDeltaY(e){return this.config.maxDeltaY=e,this}}function v5(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class m5 extends Bi{constructor(){super(),v5(this,"config",{}),this.handlerName="NativeViewGestureHandler"}shouldActivateOnStart(e){return this.config.shouldActivateOnStart=e,this}disallowInterruption(e){return this.config.disallowInterruption=e,this}}function C5(t,e){"worklet";return t}class E5 extends Sa{constructor(){super(),this.handlerName="ManualGestureHandler"}onChange(e){return this.handlers.changeEventCalculator=C5,super.onChange(e)}}const us={Tap:()=>new g5,Pan:()=>new u5,Pinch:()=>new A5,Rotation:()=>new h5,Fling:()=>new e5,LongPress:()=>new o5,ForceTouch:()=>new r5,Native:()=>new m5,Manual:()=>new E5,Hover:()=>new Xk,Race:(...t)=>new $s(...t),Simultaneous(...t){return new i5(...t)},Exclusive(...t){return new a5(...t)}};function Af(){return Af=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Af.apply(this,arguments)}const kh=_.forwardRef((t,e)=>_.createElement(pe,Af({ref:e,accessibilityRole:"button"},t)));function Hr(){return Hr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Hr.apply(this,arguments)}function bt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Kx=ba(kh,{shouldCancelWhenOutside:!1,shouldActivateOnStart:!1});class $x extends _.Component{constructor(e){super(e),bt(this,"lastActive",void 0),bt(this,"longPressTimeout",void 0),bt(this,"longPressDetected",void 0),bt(this,"handleEvent",({nativeEvent:n})=>{const{state:r,oldState:i,pointerInside:a}=n,s=a&&r===V.ACTIVE;s!==this.lastActive&&this.props.onActiveStateChange&&this.props.onActiveStateChange(s),!this.longPressDetected&&i===V.ACTIVE&&r!==V.CANCELLED&&this.lastActive&&this.props.onPress&&this.props.onPress(a),!this.lastActive&&r===(ue.OS!=="android"?V.ACTIVE:V.BEGAN)&&a?(this.longPressDetected=!1,this.props.onLongPress&&(this.longPressTimeout=setTimeout(this.onLongPress,this.props.delayLongPress))):r===V.ACTIVE&&!a&&this.longPressTimeout!==void 0?(clearTimeout(this.longPressTimeout),this.longPressTimeout=void 0):this.longPressTimeout!==void 0&&(r===V.END||r===V.CANCELLED||r===V.FAILED)&&(clearTimeout(this.longPressTimeout),this.longPressTimeout=void 0),this.lastActive=s}),bt(this,"onLongPress",()=>{var n,r;this.longPressDetected=!0,(n=(r=this.props).onLongPress)===null||n===void 0||n.call(r)}),bt(this,"onHandlerStateChange",n=>{var r,i;(r=(i=this.props).onHandlerStateChange)===null||r===void 0||r.call(i,n),this.handleEvent(n)}),bt(this,"onGestureEvent",n=>{var r,i;(r=(i=this.props).onGestureEvent)===null||r===void 0||r.call(i,n),this.handleEvent(n)}),this.lastActive=!1,this.longPressDetected=!1}render(){const{rippleColor:e,style:n,...r}=this.props;return _.createElement(Kx,Hr({ref:this.props.innerRef,rippleColor:Tf(e),style:[n,ue.OS==="ios"&&{cursor:void 0}]},r,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange}))}}bt($x,"defaultProps",{delayLongPress:600});const su=_.forwardRef((t,e)=>_.createElement($x,Hr({innerRef:e},t))),x5=Ae.createAnimatedComponent(su),y5=he.create({underlay:{position:"absolute",left:0,right:0,bottom:0,top:0}});class jx extends _.Component{constructor(e){super(e),bt(this,"opacity",void 0),bt(this,"onActiveStateChange",n=>{var r,i;ue.OS!=="android"&&this.opacity.setValue(n?this.props.activeOpacity:0),(r=(i=this.props).onActiveStateChange)===null||r===void 0||r.call(i,n)}),this.opacity=new Ae.Value(0)}render(){const{children:e,style:n,...r}=this.props,i=he.flatten(n??{});return _.createElement(su,Hr({},r,{ref:this.props.innerRef,style:i,onActiveStateChange:this.onActiveStateChange}),_.createElement(Ae.View,{style:[y5.underlay,{opacity:this.opacity,backgroundColor:this.props.underlayColor,borderRadius:i.borderRadius,borderTopLeftRadius:i.borderTopLeftRadius,borderTopRightRadius:i.borderTopRightRadius,borderBottomLeftRadius:i.borderBottomLeftRadius,borderBottomRightRadius:i.borderBottomRightRadius}]}),e)}}bt(jx,"defaultProps",{activeOpacity:.105,underlayColor:"black"});const I5=_.forwardRef((t,e)=>_.createElement(jx,Hr({innerRef:e},t)));class Qx extends _.Component{constructor(e){super(e),bt(this,"opacity",void 0),bt(this,"onActiveStateChange",n=>{var r,i;ue.OS!=="android"&&this.opacity.setValue(n?this.props.activeOpacity:1),(r=(i=this.props).onActiveStateChange)===null||r===void 0||r.call(i,n)}),this.opacity=new Ae.Value(1)}render(){const{children:e,style:n,innerRef:r,...i}=this.props;return _.createElement(x5,Hr({},i,{innerRef:r,onActiveStateChange:this.onActiveStateChange,style:[n,ue.OS==="ios"&&{opacity:this.opacity}]}),e)}}bt(Qx,"defaultProps",{activeOpacity:.3,borderless:!0});const w5=_.forwardRef((t,e)=>_.createElement(Qx,Hr({innerRef:e},t)));function El(){return El=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},El.apply(this,arguments)}function hn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Te={UNDETERMINED:0,BEGAN:1,MOVED_OUTSIDE:2};class Gi extends _.Component{constructor(...e){super(...e),hn(this,"pressInTimeout",void 0),hn(this,"pressOutTimeout",void 0),hn(this,"longPressTimeout",void 0),hn(this,"longPressDetected",!1),hn(this,"pointerInside",!0),hn(this,"STATE",Te.UNDETERMINED),hn(this,"onGestureEvent",({nativeEvent:{pointerInside:n}})=>{this.pointerInside!==n&&(n?this.onMoveIn():this.onMoveOut()),this.pointerInside=n}),hn(this,"onHandlerStateChange",({nativeEvent:n})=>{const{state:r}=n;if(r===V.CANCELLED||r===V.FAILED)this.moveToState(Te.UNDETERMINED);else if(r===(ue.OS!=="android"?V.ACTIVE:V.BEGAN)&&this.STATE===Te.UNDETERMINED)this.handlePressIn();else if(r===V.END){const s=!this.longPressDetected&&this.STATE!==Te.MOVED_OUTSIDE&&this.pressOutTimeout===null;if(this.handleGoToUndetermined(),s){var i,a;(i=(a=this.props).onPress)===null||i===void 0||i.call(a)}}}),hn(this,"onLongPressDetected",()=>{var n,r;this.longPressDetected=!0,(n=(r=this.props).onLongPress)===null||n===void 0||n.call(r)})}handlePressIn(){if(this.props.delayPressIn?this.pressInTimeout=setTimeout(()=>{this.moveToState(Te.BEGAN),this.pressInTimeout=null},this.props.delayPressIn):this.moveToState(Te.BEGAN),this.props.onLongPress){const e=(this.props.delayPressIn||0)+(this.props.delayLongPress||0);this.longPressTimeout=setTimeout(this.onLongPressDetected,e)}}handleMoveOutside(){this.props.delayPressOut?this.pressOutTimeout=this.pressOutTimeout||setTimeout(()=>{this.moveToState(Te.MOVED_OUTSIDE),this.pressOutTimeout=null},this.props.delayPressOut):this.moveToState(Te.MOVED_OUTSIDE)}handleGoToUndetermined(){clearTimeout(this.pressOutTimeout),this.props.delayPressOut?this.pressOutTimeout=setTimeout(()=>{this.STATE===Te.UNDETERMINED&&this.moveToState(Te.BEGAN),this.moveToState(Te.UNDETERMINED),this.pressOutTimeout=null},this.props.delayPressOut):(this.STATE===Te.UNDETERMINED&&this.moveToState(Te.BEGAN),this.moveToState(Te.UNDETERMINED))}componentDidMount(){this.reset()}reset(){this.longPressDetected=!1,this.pointerInside=!0,clearTimeout(this.pressInTimeout),clearTimeout(this.pressOutTimeout),clearTimeout(this.longPressTimeout),this.pressOutTimeout=null,this.longPressTimeout=null,this.pressInTimeout=null}moveToState(e){var n,r;if(e!==this.STATE){if(e===Te.BEGAN){var i,a;(i=(a=this.props).onPressIn)===null||i===void 0||i.call(a)}else if(e===Te.MOVED_OUTSIDE){var s,o;(s=(o=this.props).onPressOut)===null||s===void 0||s.call(o)}else if(e===Te.UNDETERMINED&&(this.reset(),this.STATE===Te.BEGAN)){var l,c;(l=(c=this.props).onPressOut)===null||l===void 0||l.call(c)}(n=(r=this.props).onStateChange)===null||n===void 0||n.call(r,this.STATE,e),this.STATE=e}}componentWillUnmount(){this.reset()}onMoveIn(){this.STATE===Te.MOVED_OUTSIDE&&this.moveToState(Te.BEGAN)}onMoveOut(){clearTimeout(this.longPressTimeout),this.longPressTimeout=null,this.STATE===Te.BEGAN&&this.handleMoveOutside()}render(){var e,n;const r=(e=typeof this.props.hitSlop=="number"?{top:this.props.hitSlop,left:this.props.hitSlop,bottom:this.props.hitSlop,right:this.props.hitSlop}:this.props.hitSlop)!==null&&e!==void 0?e:void 0,i={accessible:this.props.accessible!==!1,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 _.createElement(su,El({style:this.props.containerStyle,onHandlerStateChange:this.props.disabled?void 0:this.onHandlerStateChange,onGestureEvent:this.onGestureEvent,hitSlop:r,userSelect:this.props.userSelect,shouldActivateOnStart:this.props.shouldActivateOnStart,disallowInterruption:this.props.disallowInterruption,testID:this.props.testID,touchSoundDisabled:(n=this.props.touchSoundDisabled)!==null&&n!==void 0?n:!1,enabled:!this.props.disabled},this.props.extraButtonProps),_.createElement(Ae.View,El({},i,{style:this.props.style}),this.props.children))}}hn(Gi,"defaultProps",{delayLongPress:600,extraButtonProps:{rippleColor:"transparent",exclusive:!0}});function ff(){return ff=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ff.apply(this,arguments)}const Mh=_.forwardRef((t,e)=>_.createElement(Gi,ff({ref:e},t)));Mh.defaultProps=Gi.defaultProps;function hf(){return hf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},hf.apply(this,arguments)}function ds(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Zx extends _.Component{constructor(...e){super(...e),ds(this,"getChildStyleOpacityWithDefault",()=>{const n=he.flatten(this.props.style)||{};return n.opacity==null?1:n.opacity.valueOf()}),ds(this,"opacity",new Ae.Value(this.getChildStyleOpacityWithDefault())),ds(this,"setOpacityTo",(n,r)=>{var i;Ae.timing(this.opacity,{toValue:n,duration:r,easing:Kh.inOut(Kh.quad),useNativeDriver:(i=this.props.useNativeAnimations)!==null&&i!==void 0?i:!0}).start()}),ds(this,"onStateChange",(n,r)=>{r===Te.BEGAN?this.setOpacityTo(this.props.activeOpacity,0):(r===Te.UNDETERMINED||r===Te.MOVED_OUTSIDE)&&this.setOpacityTo(this.getChildStyleOpacityWithDefault(),150)})}render(){const{style:e={},...n}=this.props;return _.createElement(Gi,hf({},n,{style:[e,{opacity:this.opacity}],onStateChange:this.onStateChange}),this.props.children?this.props.children:_.createElement(pe,null))}}ds(Zx,"defaultProps",{...Gi.defaultProps,activeOpacity:.2});function pf(){return pf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},pf.apply(this,arguments)}function As(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Jx extends _.Component{constructor(e){super(e),As(this,"showUnderlay",()=>{var n,r;this.hasPressHandler()&&(this.setState({extraChildStyle:{opacity:this.props.activeOpacity},extraUnderlayStyle:{backgroundColor:this.props.underlayColor}}),(n=(r=this.props).onShowUnderlay)===null||n===void 0||n.call(r))}),As(this,"hasPressHandler",()=>this.props.onPress||this.props.onPressIn||this.props.onPressOut||this.props.onLongPress),As(this,"hideUnderlay",()=>{var n,r;this.setState({extraChildStyle:null,extraUnderlayStyle:null}),(n=(r=this.props).onHideUnderlay)===null||n===void 0||n.call(r)}),As(this,"onStateChange",(n,r)=>{r===Te.BEGAN?this.showUnderlay():(r===Te.UNDETERMINED||r===Te.MOVED_OUTSIDE)&&this.hideUnderlay()}),this.state={extraChildStyle:null,extraUnderlayStyle:null}}renderChildren(){if(!this.props.children)return _.createElement(pe,null);const e=_.Children.only(this.props.children);return _.cloneElement(e,{style:he.compose(e.props.style,this.state.extraChildStyle)})}render(){const{style:e={},...n}=this.props,{extraUnderlayStyle:r}=this.state;return _.createElement(Gi,pf({},n,{style:[e,r],onStateChange:this.onStateChange}),this.renderChildren())}}As(Jx,"defaultProps",{...Gi.defaultProps,activeOpacity:.85,delayPressOut:100,underlayColor:"black"});function gf(){return gf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},gf.apply(this,arguments)}const ey=ba(ya,{disallowInterruption:!1}),b5=ba(b1,{shouldCancelWhenOutside:!1,shouldActivateOnStart:!0,disallowInterruption:!0}),S5=ba(Rf),_5=()=>(console.warn("DrawerLayoutAndroid is not supported on web!"),_.createElement(pe,null)),D5=ba(pe),T5=_.forwardRef((t,e)=>_.createElement(Lm,gf({ref:e},t,{renderScrollComponent:n=>_.createElement(ey,n)})));function vf(){return vf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},vf.apply(this,arguments)}function je(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const rv=.05;class ty extends _.Component{constructor(e){super(e),je(this,"onGestureEvent",void 0),je(this,"transX",void 0),je(this,"showLeftAction",void 0),je(this,"leftActionTranslate",void 0),je(this,"showRightAction",void 0),je(this,"rightActionTranslate",void 0),je(this,"updateAnimatedEvent",(r,i)=>{const{friction:a,overshootFriction:s}=r,{dragX:o,rowTranslation:l,leftWidth:c=0,rowWidth:u=0}=i,{rightOffset:A=u}=i,d=Math.max(0,u-A),{overshootLeft:f=c>0,overshootRight:p=d>0}=r,h=Ae.add(l,o.interpolate({inputRange:[0,a],outputRange:[0,1]})).interpolate({inputRange:[-d-1,-d,c,c+1],outputRange:[-d-(p?1/s:0),-d,c,c+(f?1/s:0)]});this.transX=h,this.showLeftAction=c>0?h.interpolate({inputRange:[-1,0,c],outputRange:[0,0,1]}):new Ae.Value(0),this.leftActionTranslate=this.showLeftAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:"clamp"}),this.showRightAction=d>0?h.interpolate({inputRange:[-d,0,1],outputRange:[1,0,0]}):new Ae.Value(0),this.rightActionTranslate=this.showRightAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:"clamp"})}),je(this,"onTapHandlerStateChange",({nativeEvent:r})=>{r.oldState===V.ACTIVE&&this.close()}),je(this,"onHandlerStateChange",r=>{if(r.nativeEvent.oldState===V.ACTIVE&&this.handleRelease(r),r.nativeEvent.state===V.ACTIVE){const{velocityX:l,translationX:c}=r.nativeEvent,{rowState:u}=this.state,{friction:A}=this.props,d=(c+rv*l)/A,f=u===-1?"right":u===1||d>0?"left":"right";if(u===0){var i,a;(i=(a=this.props).onSwipeableOpenStartDrag)===null||i===void 0||i.call(a,f)}else{var s,o;(s=(o=this.props).onSwipeableCloseStartDrag)===null||s===void 0||s.call(o,f)}}}),je(this,"handleRelease",r=>{const{velocityX:i,translationX:a}=r.nativeEvent,{leftWidth:s=0,rowWidth:o=0,rowState:l}=this.state,{rightOffset:c=o}=this.state,u=o-c,{friction:A,leftThreshold:d=s/2,rightThreshold:f=u/2}=this.props,p=this.currentOffset()+a/A,h=(a+rv*i)/A;let g=0;l===0?h>d?g=s:h<-f&&(g=-u):l===1?h>-d&&(g=s):h<f&&(g=-u),this.animateRow(p,g,i/A)}),je(this,"animateRow",(r,i,a)=>{const{dragX:s,rowTranslation:o}=this.state;if(s.setValue(0),o.setValue(r),this.setState({rowState:Math.sign(i)}),Ae.spring(o,{restSpeedThreshold:1.7,restDisplacementThreshold:.4,velocity:a,bounciness:0,toValue:i,useNativeDriver:this.props.useNativeAnimations,...this.props.animationOptions}).start(({finished:m})=>{if(m)if(i>0){var v,C,y,x;(v=(C=this.props).onSwipeableLeftOpen)===null||v===void 0||v.call(C),(y=(x=this.props).onSwipeableOpen)===null||y===void 0||y.call(x,"left",this)}else if(i<0){var w,S,D,I;(w=(S=this.props).onSwipeableRightOpen)===null||w===void 0||w.call(S),(D=(I=this.props).onSwipeableOpen)===null||D===void 0||D.call(I,"right",this)}else{var b,O;const T=r>0?"left":"right";(b=(O=this.props).onSwipeableClose)===null||b===void 0||b.call(O,T,this)}}),i>0){var l,c,u,A;(l=(c=this.props).onSwipeableLeftWillOpen)===null||l===void 0||l.call(c),(u=(A=this.props).onSwipeableWillOpen)===null||u===void 0||u.call(A,"left")}else if(i<0){var d,f,p,h;(d=(f=this.props).onSwipeableRightWillOpen)===null||d===void 0||d.call(f),(p=(h=this.props).onSwipeableWillOpen)===null||p===void 0||p.call(h,"right")}else{var g,E;const m=r>0?"left":"right";(g=(E=this.props).onSwipeableWillClose)===null||g===void 0||g.call(E,m)}}),je(this,"onRowLayout",({nativeEvent:r})=>{this.setState({rowWidth:r.layout.width})}),je(this,"currentOffset",()=>{const{leftWidth:r=0,rowWidth:i=0,rowState:a}=this.state,{rightOffset:s=i}=this.state,o=i-s;return a===1?r:a===-1?-o:0}),je(this,"close",()=>{this.animateRow(this.currentOffset(),0)}),je(this,"openLeft",()=>{const{leftWidth:r=0}=this.state;this.animateRow(this.currentOffset(),r)}),je(this,"openRight",()=>{const{rowWidth:r=0}=this.state,{rightOffset:i=r}=this.state,a=r-i;this.animateRow(this.currentOffset(),-a)}),je(this,"reset",()=>{const{dragX:r,rowTranslation:i}=this.state;r.setValue(0),i.setValue(0),this.setState({rowState:0})});const n=new Ae.Value(0);this.state={dragX:n,rowTranslation:new Ae.Value(0),rowState:0,leftWidth:void 0,rightOffset:void 0,rowWidth:void 0},this.updateAnimatedEvent(e,this.state),this.onGestureEvent=Ae.event([{nativeEvent:{translationX:n}}],{useNativeDriver:e.useNativeAnimations})}shouldComponentUpdate(e,n){return(this.props.friction!==e.friction||this.props.overshootLeft!==e.overshootLeft||this.props.overshootRight!==e.overshootRight||this.props.overshootFriction!==e.overshootFriction||this.state.leftWidth!==n.leftWidth||this.state.rightOffset!==n.rightOffset||this.state.rowWidth!==n.rowWidth)&&this.updateAnimatedEvent(e,n),!0}render(){const{rowState:e}=this.state,{children:n,renderLeftActions:r,renderRightActions:i,dragOffsetFromLeftEdge:a=10,dragOffsetFromRightEdge:s=10}=this.props,o=r&&_.createElement(Ae.View,{style:[ed.leftActions,{transform:[{translateX:this.leftActionTranslate}]}]},r(this.showLeftAction,this.transX,this),_.createElement(pe,{onLayout:({nativeEvent:c})=>this.setState({leftWidth:c.layout.x})})),l=i&&_.createElement(Ae.View,{style:[ed.rightActions,{transform:[{translateX:this.rightActionTranslate}]}]},i(this.showRightAction,this.transX,this),_.createElement(pe,{onLayout:({nativeEvent:c})=>this.setState({rightOffset:c.layout.x})}));return _.createElement(Oh,vf({activeOffsetX:[-s,a],touchAction:"pan-y"},this.props,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange}),_.createElement(Ae.View,{onLayout:this.onRowLayout,style:[ed.container,this.props.containerStyle]},o,l,_.createElement(Th,{enabled:e!==0,touchAction:"pan-y",onHandlerStateChange:this.onTapHandlerStateChange},_.createElement(Ae.View,{pointerEvents:e===0?"auto":"box-only",style:[{transform:[{translateX:this.transX}]},this.props.childrenContainerStyle]},n))))}}je(ty,"defaultProps",{friction:1,overshootFriction:1,useNativeAnimations:!0});const ed=he.create({container:{overflow:"hidden"},leftActions:{...he.absoluteFillObject,flexDirection:Yd.isRTL?"row-reverse":"row"},rightActions:{...he.absoluteFillObject,flexDirection:Yd.isRTL?"row":"row-reverse"}}),iv=t=>({left:t,right:t,top:t,bottom:t}),O5=(t,e)=>{var n,r,i,a,s,o,l,c;return{left:((n=t.left)!==null&&n!==void 0?n:0)+((r=e.left)!==null&&r!==void 0?r:0),right:((i=t.right)!==null&&i!==void 0?i:0)+((a=e.right)!==null&&a!==void 0?a:0),top:((s=t.top)!==null&&s!==void 0?s:0)+((o=e.top)!==null&&o!==void 0?o:0),bottom:((l=t.bottom)!==null&&l!==void 0?l:0)+((c=e.bottom)!==null&&c!==void 0?c:0)}},av=(t,e,n)=>({identifier:t.id,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:n,timestamp:e,touches:[],changedTouches:[]}),k5=(t,e,n)=>({identifier:t.handlerTag,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:n,timestamp:e,touches:[],changedTouches:[]}),M5=(t,e,n)=>{var r,i,a,s,o,l,c,u;return((r=n==null?void 0:n.x)!==null&&r!==void 0?r:0)<((i=e.right)!==null&&i!==void 0?i:0)+t.width&&((a=n==null?void 0:n.y)!==null&&a!==void 0?a:0)<((s=e.bottom)!==null&&s!==void 0?s:0)+t.height&&((o=n==null?void 0:n.x)!==null&&o!==void 0?o:0)>-((l=e.left)!==null&&l!==void 0?l:0)&&((c=n==null?void 0:n.y)!==null&&c!==void 0?c:0)>-((u=e.top)!==null&&u!==void 0?u:0)},Eo=t=>{const e=Date.now(),n=0,r=k5(t,e,n);return{nativeEvent:{touches:[r],changedTouches:[r],identifier:r.identifier,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:n,timestamp:e,force:void 0}}},jr=t=>{var e,n,r,i,a,s,o,l;const c=Date.now(),u=0,A=t.allTouches.map(f=>av(f,c,u)),d=t.changedTouches.map(f=>av(f,c,u));return{nativeEvent:{touches:A,changedTouches:d,identifier:t.handlerTag,locationX:(e=(n=t.allTouches.at(0))===null||n===void 0?void 0:n.x)!==null&&e!==void 0?e:-1,locationY:(r=(i=t.allTouches.at(0))===null||i===void 0?void 0:i.y)!==null&&r!==void 0?r:-1,pageX:(a=(s=t.allTouches.at(0))===null||s===void 0?void 0:s.absoluteX)!==null&&a!==void 0?a:-1,pageY:(o=(l=t.allTouches.at(0))===null||l===void 0?void 0:l.absoluteY)!==null&&o!==void 0?o:-1,target:u,timestamp:c,force:void 0}}};function mf(){return mf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},mf.apply(this,arguments)}const P5=500;function F5(t){var e,n;const{testOnly_pressed:r,hitSlop:i,pressRetentionOffset:a,delayHoverIn:s,onHoverIn:o,delayHoverOut:l,onHoverOut:c,delayLongPress:u,unstable_pressDelay:A,onPress:d,onPressIn:f,onPressOut:p,onLongPress:h,style:g,children:E,android_disableSound:m,android_ripple:v,disabled:C,...y}=t,[x,w]=_.useState(r??!1),S=_.useRef(null),D=_.useRef(!0),I=_.useRef(!1),b=_.useRef(!1),O=_.useMemo(()=>typeof i=="number"?iv(i):i??{},[i]),T=_.useMemo(()=>typeof a=="number"?iv(a):a??{},[a]),M=_.useRef(null),P=_.useRef(null),R=_.useMemo(()=>us.Hover().manualActivation(!0).cancelsTouchesInView(!1).onBegin(ne=>{if(P.current&&clearTimeout(P.current),s){M.current=setTimeout(()=>o==null?void 0:o(Eo(ne)),s);return}o==null||o(Eo(ne))}).onFinalize(ne=>{if(M.current&&clearTimeout(M.current),l){P.current=setTimeout(()=>c==null?void 0:c(Eo(ne)),l);return}c==null||c(Eo(ne))}),[s,l,o,c]),W=_.useRef(null),N=_.useRef(!1),U=_.useRef(null),Y=_.useCallback(ne=>{H.current&&(U.current=ne),N.current&&(U.current=null,f==null||f(ne),D.current=!0,W.current=null,w(!0))},[f]),G=_.useCallback(ne=>{!I.current||ne.nativeEvent.touches.length>ne.nativeEvent.changedTouches.length||(A&&W.current!==null&&(clearTimeout(W.current),Y(ne)),U.current&&(f==null||f(U.current),U.current=null),p==null||p(ne),D.current&&(d==null||d(ne)),z.current&&(clearTimeout(z.current),z.current=null),N.current=!1,I.current=!1,D.current=!0,w(!1))},[d,f,p,Y,A]),H=_.useRef(!1),L=_.useRef(null),B=_.useRef(!1),X=_.useCallback(ne=>{N.current&&(I.current&&(h==null||h(jr(ne)),D.current=!1),z.current&&(clearTimeout(z.current),z.current=null))},[h]),z=_.useRef(null),q=(u??P5)+(A??0),Q=_.useMemo(()=>us.LongPress().minDuration(bg).maxDistance(bg).cancelsTouchesInView(!1).onTouchesDown(ne=>{var Be;H.current=!0,(Be=S.current)===null||Be===void 0||Be.measure((ut,me,de,dt)=>{var At;if(!M5({width:de,height:dt},O,ne.changedTouches.at(-1))||I.current||B.current){B.current=!1,L.current=null,H.current=!1;return}I.current=!0,z.current===null&&(z.current=setTimeout(()=>X(ne),q)),A?W.current=setTimeout(()=>{Y(jr(ne))},A):Y(jr(ne)),(At=L.current)===null||At===void 0||At.call(L),L.current=null,H.current=!1})}).onTouchesUp(ne=>{if(H.current){L.current=()=>G(jr(ne));return}U.current!==null&&(b.current=!0),G(jr(ne))}).onTouchesCancelled(ne=>{if(D.current=!1,H.current){B.current=!0,L.current=()=>G(jr(ne));return}!I.current||ne.allTouches.length>ne.changedTouches.length||G(jr(ne))}),[X,q,O,Y,G,A]),ae=_.useMemo(()=>us.Native().onBegin(()=>{(ue.OS==="android"||ue.OS==="macos")&&(N.current=!0)}).onStart(()=>{if(ue.OS==="web"&&(N.current=!0),ue.OS==="ios"){if(U.current){N.current=!0,I.current?(Y(U.current),U.current=null):(G(U.current),N.current=!1);return}if(I.current){N.current=!0;return}if(b.current){b.current=!1;return}N.current=!0}}),[Y,G]),te=O5(O,T),re=C!==!0,Z=[Q,R,ae];for(const ne of Z)ne.enabled(re),ne.runOnJS(!0),ne.hitSlop(te),ne.shouldCancelWhenOutside(ue.OS!=="web");ae.hitSlop(O);const ie=us.Simultaneous(...Z),we=v?void 0:"transparent",be=ue.OS==="web"?{cursor:"pointer"}:{},Se=typeof g=="function"?g({pressed:x}):g,ye=typeof E=="function"?E({pressed:x}):E;return _t.createElement(qx,{gesture:ie},_t.createElement(kh,mf({},y,{ref:S,hitSlop:te,enabled:re,touchSoundDisabled:m??void 0,rippleColor:Tf((e=v==null?void 0:v.color)!==null&&e!==void 0?e:we),rippleRadius:(n=v==null?void 0:v.radius)!==null&&n!==void 0?n:void 0,style:[be,Se]}),ye,null))}function Xe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const R5=.05,Ua="Idle",td="Dragging",sv="Settling";class Ph extends _.Component{constructor(e){super(e),Xe(this,"openValue",void 0),Xe(this,"onGestureEvent",void 0),Xe(this,"accessibilityIsModalView",_.createRef()),Xe(this,"pointerEventsView",_.createRef()),Xe(this,"panGestureHandler",_.createRef()),Xe(this,"drawerShown",!1),Xe(this,"updateAnimatedEvent",(a,s)=>{const{drawerPosition:o,drawerWidth:l,drawerType:c}=a,{dragX:u,touchX:A,drawerTranslation:d,containerWidth:f}=s;let p=u,h=A;o!=="left"?(p=Ae.multiply(new Ae.Value(-1),u),h=Ae.add(new Ae.Value(f),Ae.multiply(new Ae.Value(-1),A)),A.setValue(f)):A.setValue(0);let g=p;if(c==="front"){const v=Ae.add(h,Ae.multiply(new Ae.Value(-1),p)).interpolate({inputRange:[l-1,l,l+1],outputRange:[0,0,1]});g=Ae.add(p,v)}this.openValue=Ae.add(g,d).interpolate({inputRange:[0,l],outputRange:[0,1],extrapolate:"clamp"});const E={useNativeDriver:a.useNativeAnimations};this.props.onDrawerSlide&&(E.listener=m=>{var v,C;const x=Math.floor(Math.abs(m.nativeEvent.translationX))/this.state.containerWidth;(v=(C=this.props).onDrawerSlide)===null||v===void 0||v.call(C,x)}),this.onGestureEvent=Ae.event([{nativeEvent:{translationX:u,x:A}}],E)}),Xe(this,"handleContainerLayout",({nativeEvent:a})=>{this.setState({containerWidth:a.layout.width})}),Xe(this,"emitStateChanged",(a,s)=>{var o,l;(o=(l=this.props).onDrawerStateChanged)===null||o===void 0||o.call(l,a,s)}),Xe(this,"openingHandlerStateChange",({nativeEvent:a})=>{a.oldState===V.ACTIVE?this.handleRelease({nativeEvent:a}):a.state===V.ACTIVE&&(this.emitStateChanged(td,!1),this.setState({drawerState:td}),this.props.keyboardDismissMode==="on-drag"&&ua.dismiss(),this.props.hideStatusBar&&qh.setHidden(!0,this.props.statusBarAnimation||"slide"))}),Xe(this,"onTapHandlerStateChange",({nativeEvent:a})=>{this.drawerShown&&a.oldState===V.ACTIVE&&this.props.drawerLockMode!=="locked-open"&&this.closeDrawer()}),Xe(this,"handleRelease",({nativeEvent:a})=>{const{drawerWidth:s,drawerPosition:o,drawerType:l}=this.props,{containerWidth:c}=this.state;let{translationX:u,velocityX:A,x:d}=a;o!=="left"&&(u=-u,d=c-d,A=-A);const f=d-u;let p=0;l==="front"&&(p=f>s?f-s:0);const h=u+p+(this.drawerShown?s:0);h+R5*A>s/2?this.animateDrawer(h,s,A):this.animateDrawer(h,0,A)}),Xe(this,"updateShowing",a=>{var s,o,l;this.drawerShown=a,(s=this.accessibilityIsModalView.current)===null||s===void 0||s.setNativeProps({accessibilityViewIsModal:a}),(o=this.pointerEventsView.current)===null||o===void 0||o.setNativeProps({pointerEvents:a?"auto":"none"});const{drawerPosition:c,minSwipeDistance:u,edgeWidth:A}=this.props,d=c==="left",f=(d?1:-1)*(this.drawerShown?-1:1),p=d?{left:0,width:a?void 0:A}:{right:0,width:a?void 0:A};(l=this.panGestureHandler.current)===null||l===void 0||l.setNativeProps({hitSlop:p,activeOffsetX:f*u})}),Xe(this,"animateDrawer",(a,s,o,l)=>{if(this.state.dragX.setValue(0),this.state.touchX.setValue(this.props.drawerPosition==="left"?0:this.state.containerWidth),a!=null){let u=a;this.props.useNativeAnimations&&(a<s&&o>0?u=Math.min(a+o/60,s):a>s&&o<0&&(u=Math.max(a+o/60,s))),this.state.drawerTranslation.setValue(u)}const c=s!==0;this.updateShowing(c),this.emitStateChanged(sv,c),this.setState({drawerState:sv}),this.props.hideStatusBar&&qh.setHidden(c,this.props.statusBarAnimation||"slide"),Ae.spring(this.state.drawerTranslation,{velocity:o,bounciness:0,toValue:s,useNativeDriver:this.props.useNativeAnimations,speed:l??void 0}).start(({finished:u})=>{if(u)if(this.emitStateChanged(Ua,c),this.setState({drawerOpened:c}),this.state.drawerState!==td&&this.setState({drawerState:Ua}),c){var A,d;(A=(d=this.props).onDrawerOpen)===null||A===void 0||A.call(d)}else{var f,p;(f=(p=this.props).onDrawerClose)===null||f===void 0||f.call(p)}})}),Xe(this,"openDrawer",(a={})=>{this.animateDrawer(void 0,this.props.drawerWidth,a.velocity?a.velocity:0,a.speed),this.forceUpdate()}),Xe(this,"closeDrawer",(a={})=>{this.animateDrawer(void 0,0,a.velocity?a.velocity:0,a.speed),this.forceUpdate()}),Xe(this,"renderOverlay",()=>{Qo(this.openValue,"should be set");let a;this.state.drawerState!==Ua?a=this.openValue:a=this.state.drawerOpened?1:0;const s={opacity:a,backgroundColor:this.props.overlayColor};return _.createElement(Th,{onHandlerStateChange:this.onTapHandlerStateChange},_.createElement(Ae.View,{pointerEvents:this.drawerShown?"auto":"none",ref:this.pointerEventsView,style:[Wa.overlay,s]}))}),Xe(this,"renderDrawer",()=>{const{drawerBackgroundColor:a,drawerWidth:s,drawerPosition:o,drawerType:l,drawerContainerStyle:c,contentContainerStyle:u}=this.props,A=o==="left",d=l!=="back",f=l!=="front",p=Yd.isRTL?A:!A,h={backgroundColor:a,width:s},g=this.openValue;Qo(g,"should be set");let E;f&&(E={transform:[{translateX:g.interpolate({inputRange:[0,1],outputRange:A?[0,s]:[0,-s],extrapolate:"clamp"})}]});let m=0;if(d){const C=A?-s:s;this.state.drawerState!==Ua?m=g.interpolate({inputRange:[0,1],outputRange:[C,0],extrapolate:"clamp"}):m=this.state.drawerOpened?0:C}const v={transform:[{translateX:m}],flexDirection:p?"row-reverse":"row"};return _.createElement(Ae.View,{style:Wa.main,onLayout:this.handleContainerLayout},_.createElement(Ae.View,{style:[l==="front"?Wa.containerOnBack:Wa.containerInFront,E,u],importantForAccessibility:this.drawerShown?"no-hide-descendants":"yes"},typeof this.props.children=="function"?this.props.children(this.openValue):this.props.children,this.renderOverlay()),_.createElement(Ae.View,{pointerEvents:"box-none",ref:this.accessibilityIsModalView,accessibilityViewIsModal:this.drawerShown,style:[Wa.drawerContainer,v,c]},_.createElement(pe,{style:h},this.props.renderNavigationView(this.openValue))))}),Xe(this,"setPanGestureRef",a=>{var s,o;this.panGestureHandler.current=a,(s=(o=this.props).onGestureRef)===null||s===void 0||s.call(o,a)});const n=new Ae.Value(0),r=new Ae.Value(0),i=new Ae.Value(0);this.state={dragX:n,touchX:r,drawerTranslation:i,containerWidth:0,drawerState:Ua,drawerOpened:!1},this.updateAnimatedEvent(e,this.state)}shouldComponentUpdate(e,n){return(this.props.drawerPosition!==e.drawerPosition||this.props.drawerWidth!==e.drawerWidth||this.props.drawerType!==e.drawerType||this.state.containerWidth!==n.containerWidth)&&this.updateAnimatedEvent(e,n),!0}render(){const{drawerPosition:e,drawerLockMode:n,edgeWidth:r,minSwipeDistance:i}=this.props,a=e==="left",s=(a?1:-1)*(this.drawerShown?-1:1),o=a?{left:0,width:this.drawerShown?void 0:r}:{right:0,width:this.drawerShown?void 0:r};return _.createElement(Oh,{userSelect:this.props.userSelect,activeCursor:this.props.activeCursor,mouseButton:this.props.mouseButton,enableContextMenu:this.props.enableContextMenu,ref:this.setPanGestureRef,hitSlop:o,activeOffsetX:s*i,failOffsetY:[-15,15],onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.openingHandlerStateChange,enableTrackpadTwoFingerGesture:this.props.enableTrackpadTwoFingerGesture,enabled:n!=="locked-closed"&&n!=="locked-open"},this.renderDrawer())}}Xe(Ph,"defaultProps",{drawerWidth:200,drawerPosition:"left",useNativeAnimations:!0,drawerType:"front",edgeWidth:20,minSwipeDistance:3,overlayColor:"rgba(0, 0, 0, 0.7)",drawerLockMode:"unlocked",enableTrackpadTwoFingerGesture:!1});Xe(Ph,"positions",{Left:"left",Right:"right"});const Wa=he.create({drawerContainer:{...he.absoluteFillObject,zIndex:1001,flexDirection:"row"},containerInFront:{...he.absoluteFillObject,zIndex:1002},containerOnBack:{...he.absoluteFillObject},main:{flex:1,zIndex:0,overflow:"hidden"},overlay:{...he.absoluteFillObject,zIndex:1e3}});ok();const N5=Object.freeze(Object.defineProperty({__proto__:null,BaseButton:su,BorderlessButton:w5,Directions:si,DrawerLayout:Ph,DrawerLayoutAndroid:_5,FlatList:T5,FlingGestureHandler:Mk,ForceTouchGestureHandler:Px,Gesture:us,GestureDetector:qx,GestureHandlerRootView:_x,get HoverEffect(){return uf},LongPressGestureHandler:Ik,get MouseButton(){return bn},NativeViewGestureHandler:Vx,PanGestureHandler:Oh,PinchGestureHandler:Dk,get PointerType(){return xt},Pressable:F5,PureNativeButton:kh,RawButton:Kx,RectButton:I5,RefreshControl:D5,RotationGestureHandler:Ok,ScrollView:ey,State:V,Swipeable:ty,Switch:b5,TapGestureHandler:Th,TextInput:S5,TouchableHighlight:Jx,TouchableNativeFeedback:s1,TouchableOpacity:Zx,TouchableWithoutFeedback:Mh,createNativeWrapper:ba,enableExperimentalWebImplementation:m8,enableLegacyWebImplementation:C8,gestureHandlerRootHOC:ck},Symbol.toStringTag,{value:"Module"})),ny=Gs(N5);var xo={},ov;function B5(){if(ov)return xo;ov=1,Object.defineProperty(xo,"__esModule",{value:!0}),xo.useAutoPlay=r;var t=n(_);function e(i){if(typeof WeakMap!="function")return null;var a=new WeakMap,s=new WeakMap;return(e=function(l){return l?s:a})(i)}function n(i,a){if(i&&i.__esModule)return i;if(i===null||typeof i!="object"&&typeof i!="function")return{default:i};var s=e(a);if(s&&s.has(i))return s.get(i);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in i)if(c!=="default"&&Object.prototype.hasOwnProperty.call(i,c)){var u=l?Object.getOwnPropertyDescriptor(i,c):null;u&&(u.get||u.set)?Object.defineProperty(o,c,u):o[c]=i[c]}return o.default=i,s&&s.set(i,o),o}function r(i){var a=i.autoPlay,s=a===void 0?!1:a,o=i.autoPlayReverse,l=o===void 0?!1:o,c=i.autoPlayInterval,u=i.carouselController,A=u.prev,d=u.next,f=t.useRef(),p=t.useRef(!s),h=t.useCallback(function(){p.current||(f.current&&clearTimeout(f.current),f.current=setTimeout(function(){l?A({onFinished:h}):d({onFinished:h})},c))},[l,c,A,d]),g=t.useCallback(function(){s&&(f.current&&clearTimeout(f.current),p.current=!0)},[s]),E=t.useCallback(function(){s&&(p.current=!1,h())},[h,s]);return t.useEffect(function(){return s?E():g(),g},[g,E,s]),{pause:g,start:E}}return xo}var yo={},yr={},lv;function Fh(){if(lv)return yr;lv=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.Easing=yr.DATA_LENGTH=void 0;var t=Tt,e;yr.DATA_LENGTH=e,function(r){r[r.SINGLE_ITEM=1]="SINGLE_ITEM",r[r.DOUBLE_ITEM=2]="DOUBLE_ITEM"}(e||(yr.DATA_LENGTH=e={}));var n={easeOutQuart:t.Easing.bezier(.25,1,.5,1)};return yr.Easing=n,yr}var Wn={},cv;function ou(){if(cv)return Wn;cv=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.computedFillDataWithAutoFillData=u,Wn.computedOffsetXValueWithAutoFillData=void 0,Wn.computedRealIndexWithAutoFillData=c,Wn.convertToSharedIndex=void 0;var t=Fh(),e=t.DATA_LENGTH.SINGLE_ITEM,n=t.DATA_LENGTH.DOUBLE_ITEM,r={code:`function isAutoFillData(params) { +`;return function(){var i=new Error("get-stack-trace"),a=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=window.console&&(window.console.warn||window.console.log);return s&&s.call(window.console,r,a),t.apply(this,arguments)}}var Ix=yx(function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===void 0)&&(t[r[i]]=e[r[i]]),i++;return t},"extend","Use `assign`."),B3=yx(function(t,e){return Ix(t,e,!0)},"merge","Use `assign`.");function G3(t,e,n){var r=e.prototype,i;i=t.prototype=Object.create(r),i.constructor=t,i._super=r,n&&Ti(i,n)}function $g(t,e){return function(){return t.apply(e,arguments)}}var se=function(){var t=function(n,r){return r===void 0&&(r={}),new Kg(n,cn({recognizers:Yg.concat()},r))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=sx,t.DIRECTION_DOWN=va,t.DIRECTION_LEFT=zs,t.DIRECTION_RIGHT=qs,t.DIRECTION_UP=Ks,t.DIRECTION_HORIZONTAL=Tn,t.DIRECTION_VERTICAL=wi,t.DIRECTION_NONE=vl,t.DIRECTION_DOWN=va,t.INPUT_START=yt,t.INPUT_MOVE=Ni,t.INPUT_END=ze,t.INPUT_CANCEL=Dt,t.STATE_POSSIBLE=Wo,t.STATE_BEGAN=qt,t.STATE_CHANGED=ma,t.STATE_ENDED=Pr,t.STATE_RECOGNIZED=dr,t.STATE_CANCELLED=Ns,t.STATE_FAILED=_n,t.Manager=Kg,t.Input=wa,t.TouchAction=lx,t.TouchInput=Ih,t.MouseInput=wh,t.PointerEventInput=hx,t.TouchMouseInput=px,t.SingleTouchInput=R3,t.Recognizer=$s,t.AttrRecognizer=Ca,t.Tap=of,t.Pan=bh,t.Swipe=vx,t.Pinch=mx,t.Rotate=Cx,t.Press=Ex,t.on=Es,t.off=xs,t.each=ur,t.merge=B3,t.extend=Ix,t.bindFn=$g,t.assign=Ti,t.inherit=G3,t.bindFn=$g,t.prefixed=iu,t.toArray=Rs,t.inArray=ki,t.uniqueArray=yh,t.splitStr=Fs,t.boolOrFn=au,t.hasParent=xh,t.addEventListeners=Es,t.removeEventListeners=xs,t.defaults=Ti({},xx,{preset:Yg}),t}();const L3=240,V3=50,H3=.1,U3=7,W3=Math.PI/180,X3={[se.INPUT_START]:V.BEGAN,[se.INPUT_MOVE]:V.ACTIVE,[se.INPUT_END]:V.END,[se.INPUT_CANCEL]:V.FAILED},xr={RIGHT:1,LEFT:2,UP:4,DOWN:8},Fr={};function kr(t){if(t in Fr)return Fr[t];throw new Error(`No handler for tag ${t}`)}function Y3(t,e){if(t in Fr)throw new Error(`Handler with tag ${t} already exists`);Fr[t]=e,Fr[t].handlerTag=t}function z3(t){t in Fr&&(kr(t).destroy(),delete Fr[t])}function q3(){return{...Fr}}const Mi=typeof setImmediate=="function"?setImmediate.bind(null):typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(null):queueMicrotask.bind(null);function Le(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let K3=0;class Sh{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(){Le(this,"handlerTag",void 0),Le(this,"isGestureRunning",!1),Le(this,"view",null),Le(this,"hasCustomActivationCriteria",void 0),Le(this,"hasGestureFailed",!1),Le(this,"hammer",null),Le(this,"initialRotation",null),Le(this,"__initialX",void 0),Le(this,"__initialY",void 0),Le(this,"config",{}),Le(this,"previousState",V.UNDETERMINED),Le(this,"pendingGestures",{}),Le(this,"oldState",V.UNDETERMINED),Le(this,"lastSentState",null),Le(this,"gestureInstance",void 0),Le(this,"_stillWaiting",void 0),Le(this,"propsRef",void 0),Le(this,"ref",void 0),Le(this,"clearSelfAsPending",()=>{if(Array.isArray(this.config.waitFor))for(const e of this.config.waitFor)e.removePendingGesture(this.id)}),Le(this,"destroy",()=>{this.clearSelfAsPending(),this.hammer&&(this.hammer.stop(!1),this.hammer.destroy()),this.hammer=null}),Le(this,"isPointInView",({x:e,y:n})=>{const r=this.view.getBoundingClientRect();return e>=r.left&&e<=r.right&&n>=r.top&&n<=r.bottom}),Le(this,"sendEvent",e=>{const{onGestureHandlerEvent:n,onGestureHandlerStateChange:r}=this.propsRef.current,i=this.transformEventData(e);lf(n,i),this.lastSentState!==i.nativeEvent.state&&(this.lastSentState=i.nativeEvent.state,lf(r,i))}),Le(this,"sync",()=>{const e=this.hammer.get(this.name);if(!e)return;const n=(i,a)=>{if(!this.config.enabled)return this.isGestureRunning=!1,this.hasGestureFailed=!1,!1;if(!a||!i.options||typeof a.maxPointers>"u")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 c of this._stillWaiting)if(!c.isDiscrete&&c.isGestureRunning)return this.hasGestureFailed=!0,this.isGestureRunning=!1,!1;return!1}}if(!this.hasCustomActivationCriteria)return!0;const s=this.initialRotation==null?0:a.rotation-this.initialRotation,{success:o,failed:l}=this.isGestureEnabledForEvent(this.getConfig(),i,{...a,deltaRotation:s});return l&&(this.simulateCancelEvent(a),this.hasGestureFailed=!0),o},r=this.getHammerConfig();e.set({...r,enable:n})}),this.gestureInstance=K3++,this.hasCustomActivationCriteria=!1}getConfig(){return this.config}onWaitingEnded(e){}removePendingGesture(e){delete this.pendingGestures[e]}addPendingGesture(e){this.pendingGestures[e.id]=e}isGestureEnabledForEvent(e,n,r){return{success:!0}}get NativeGestureClass(){throw new Error("Must override GestureHandler.NativeGestureClass")}updateHasCustomActivationCriteria(e){return!0}updateGestureConfig({enabled:e=!0,...n}){if(this.clearSelfAsPending(),this.config=this.ensureConfig({enabled:e,...n}),this.hasCustomActivationCriteria=this.updateHasCustomActivationCriteria(this.config),Array.isArray(this.config.waitFor))for(const r of this.config.waitFor)r.addPendingGesture(this);return this.hammer&&this.sync(),this.config}getState(e){return e==0?0:X3[e]}transformEventData(e){const{eventType:n,maxPointers:r}=e,i=e.changedPointers[0],a=this.isPointInView({x:i.clientX,y:i.clientY}),s=this.getState(n);return s!==this.previousState&&(this.oldState=this.previousState,this.previousState=s),{nativeEvent:{numberOfPointers:r,state:s,pointerInside:a,...this.transformNativeEvent(e),handlerTag:this.handlerTag,target:this.ref,oldState:s!==this.previousState||s!=4?this.oldState:void 0},timeStamp:Date.now()}}transformNativeEvent(e){return{}}cancelPendingGestures(e){for(const n of Object.values(this.pendingGestures))n&&n.isGestureRunning&&(n.hasGestureFailed=!0,n.cancelEvent(e))}notifyPendingGestures(){for(const e of Object.values(this.pendingGestures))e&&e.onWaitingEnded(this)}onGestureEnded(e){this.isGestureRunning=!1,this.cancelPendingGestures(e)}forceInvalidate(e){this.isGestureRunning&&(this.hasGestureFailed=!0,this.cancelEvent(e))}cancelEvent(e){this.notifyPendingGestures(),this.sendEvent({...e,eventType:se.INPUT_CANCEL,isFinal:!0}),this.onGestureEnded(e)}onRawEvent({isFirst:e}){e&&(this.hasGestureFailed=!1)}shouldUseTouchEvents(e){var n,r;return(n=(r=e.simultaneousHandlers)===null||r===void 0?void 0:r.some(i=>i.isNative))!==null&&n!==void 0?n:!1}setView(e,n){if(e==null){this.destroy(),this.view=null;return}const r="ontouchstart"in window;this.propsRef=n,this.ref=e,this.view=I1(e),this.hammer=r&&this.shouldUseTouchEvents(this.config)?new se.Manager(this.view,{inputClass:se.TouchInput}):new se.Manager(this.view),this.oldState=V.UNDETERMINED,this.previousState=V.UNDETERMINED,this.lastSentState=null;const{NativeGestureClass:i}=this,a=new i(this.getHammerConfig());this.hammer.add(a),this.hammer.on("hammer.input",s=>{if(!this.config.enabled){this.hasGestureFailed=!1,this.isGestureRunning=!1;return}this.onRawEvent(s),this.initialRotation===null&&s.rotation!==0&&(this.initialRotation=s.rotation),s.isFinal&&setTimeout(()=>{this.initialRotation=null,this.hasGestureFailed=!1})}),this.setupEvents(),this.sync()}setupEvents(){this.isDiscrete||(this.hammer.on(`${this.name}start`,e=>this.onStart(e)),this.hammer.on(`${this.name}end ${this.name}cancel`,e=>{this.onGestureEnded(e)})),this.hammer.on(this.name,e=>this.onGestureActivated(e))}onStart({deltaX:e,deltaY:n,rotation:r}){this.oldState=V.UNDETERMINED,this.previousState=V.UNDETERMINED,this.lastSentState=null,this.isGestureRunning=!0,this.__initialX=e,this.__initialY=n,this.initialRotation=r}onGestureActivated(e){this.sendEvent(e)}onSuccess(){}_getPendingGestures(){return Array.isArray(this.config.waitFor)&&this.config.waitFor.length?this.config.waitFor.filter(({hasGestureFailed:n})=>n===!1):[]}getHammerConfig(){return{pointers:this.config.minPointers===this.config.maxPointers?this.config.minPointers:0}}simulateCancelEvent(e){}ensureConfig(e){const n={...e};if("minDist"in e&&(n.minDist=e.minDist,n.minDistSq=n.minDist*n.minDist),"minVelocity"in e&&(n.minVelocity=e.minVelocity,n.minVelocitySq=n.minVelocity*n.minVelocity),"maxDist"in e&&(n.maxDist=e.maxDist,n.maxDistSq=e.maxDist*e.maxDist),"waitFor"in e?n.waitFor=jg(e.waitFor).map(({handlerTag:i})=>kr(i)).filter(i=>i):n.waitFor=null,"simultaneousHandlers"in e){const i=this.shouldUseTouchEvents(this.config);n.simultaneousHandlers=jg(e.simultaneousHandlers).map(a=>kr(typeof a=="number"?a:a.handlerTag)).filter(a=>a),i!==this.shouldUseTouchEvents(n)&&Mi(()=>{this.destroy(),this.setView(this.ref,this.propsRef)})}else n.simultaneousHandlers=null;return["minPointers","maxPointers","minDist","maxDist","maxDistSq","minVelocitySq","minDistSq","minVelocity","failOffsetXStart","failOffsetYStart","failOffsetXEnd","failOffsetYEnd","activeOffsetXStart","activeOffsetXEnd","activeOffsetYStart","activeOffsetYEnd"].forEach(i=>{typeof n[i]>"u"&&(n[i]=Number.NaN)}),n}}function lf(t,e){if(t){if(typeof t=="function")t(e);else if("__getHandler"in t&&typeof t.__getHandler=="function"){const n=t.__getHandler();lf(n,e)}else if("__nodeConfig"in t){const{argMapping:n}=t.__nodeConfig;if(Array.isArray(n)){for(const[r,[i,a]]of n.entries())if(i in e.nativeEvent){const s=e.nativeEvent[i];a&&a.setValue?a.setValue(s):t.__nodeConfig.argMapping[r]=[i,s]}}}}}function jg(t){return t==null?[]:Array.isArray(t)?t:[t]}const Ve=t=>Number.isNaN(t),gn=t=>typeof t=="number"&&!Number.isNaN(t),cs=(t,e)=>!Ve(e)&&(e<0&&t<=e||e>=0&&t>=e),cf=({x:t=0,y:e=0}={})=>t*t+e*e,Hu=(t,e)=>!Ve(e)&&(e<0&&t<e||e>=0&&t>e);function Qg(t,e){return e?setTimeout(()=>t(),e):(t(),null)}class _h extends Sh{get isDiscrete(){return!0}get shouldEnableGestureOnSetup(){return!0}shouldFailUnderCustomCriteria({x:e,y:n,deltaX:r,deltaY:i},{maxDeltaX:a,maxDeltaY:s,maxDistSq:o,shouldCancelWhenOutside:l}){return l&&!this.isPointInView({x:e,y:n})?!0:Hu(Math.abs(r),a)||Hu(Math.abs(i),s)||Hu(Math.abs(i*i+r*r),o)}transformNativeEvent({center:{x:e,y:n}}){const r=this.view.getBoundingClientRect();return{absoluteX:e,absoluteY:n,x:e-r.left,y:n-r.top}}isGestureEnabledForEvent({minPointers:e,maxPointers:n,maxDeltaX:r,maxDeltaY:i,maxDistSq:a,shouldCancelWhenOutside:s},o,{maxPointers:l,center:c,deltaX:u,deltaY:A}){const d=l>=e&&l<=n;return this.shouldFailUnderCustomCriteria({...c,deltaX:u,deltaY:A},{maxDeltaX:r,maxDeltaY:i,maxDistSq:a,shouldCancelWhenOutside:s})||!d&&this.isGestureRunning?{failed:!0}:{success:d}}}function Uu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class wx extends _h{constructor(...e){super(...e),Uu(this,"visualFeedbackTimer",void 0),Uu(this,"initialEvent",null),Uu(this,"shouldDelayTouches",!0)}get name(){return"press"}get minDurationMs(){return Ve(this.config.minDurationMs)?5:this.config.minDurationMs}get maxDist(){return Ve(this.config.maxDist)?9:this.config.maxDist}get NativeGestureClass(){return se.Press}simulateCancelEvent(e){this.hasGestureFailed=!0,this.cancelEvent(e)}updateHasCustomActivationCriteria({shouldCancelWhenOutside:e,maxDistSq:n}){return e||!gn(n)}getState(e){return{[se.INPUT_START]:V.BEGAN,[se.INPUT_MOVE]:V.ACTIVE,[se.INPUT_END]:V.END,[se.INPUT_CANCEL]:V.CANCELLED}[e]}getConfig(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}getHammerConfig(){return{...super.getHammerConfig(),time:this.minDurationMs}}onGestureActivated(e){this.onGestureStart(e)}shouldDelayTouchForEvent({pointerType:e}){return this.shouldDelayTouches&&e==="touch"}onGestureStart(e){this.isGestureRunning=!0,clearTimeout(this.visualFeedbackTimer),this.initialEvent=e,this.visualFeedbackTimer=Qg(()=>{this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null},this.shouldDelayTouchForEvent(e)&&L3)}sendGestureStartedEvent(e){clearTimeout(this.visualFeedbackTimer),this.visualFeedbackTimer=null,this.sendEvent({...e,eventType:se.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 n;this.visualFeedbackTimer&&(n=V3,this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null),Qg(()=>{this.sendEvent({...e,eventType:se.INPUT_END,isFinal:!0}),this.onGestureEnded()},n)}else this.sendEvent({...e,eventType:se.INPUT_MOVE,isFinal:!1})}updateGestureConfig({shouldActivateOnStart:e=!1,disallowInterruption:n=!1,shouldCancelWhenOutside:r=!0,minDurationMs:i=Number.NaN,maxDist:a=Number.NaN,minPointers:s=1,maxPointers:o=1,...l}){return super.updateGestureConfig({shouldActivateOnStart:e,disallowInterruption:n,shouldCancelWhenOutside:r,minDurationMs:i,maxDist:a,minPointers:s,maxPointers:o,...l})}}let $3=class extends wx{get isNative(){return!0}onRawEvent(e){if(super.onRawEvent(e),!e.isFinal&&cs(cf({x:e.deltaX,y:e.deltaY}),10)&&this.config.disallowInterruption){const n=Object.values(q3()).filter(r=>{const{handlerTag:i,view:a,isGestureRunning:s}=r;return i!==this.handlerTag&&s&&r instanceof _h&&a&&this.view.contains(a)});for(const r of n)r.forceInvalidate(e)}}};class bx extends Sh{get shouldEnableGestureOnSetup(){return!0}transformNativeEvent({deltaX:e,deltaY:n,velocityX:r,velocityY:i,center:{x:a,y:s}}){const o=this.view.getBoundingClientRect(),l=u1.get();return{translationX:e-(this.__initialX||0),translationY:n-(this.__initialY||0),absoluteX:a,absoluteY:s,velocityX:r*l,velocityY:i*l,x:a-o.left,y:s-o.top}}}let j3=class extends bx{get name(){return"pan"}get NativeGestureClass(){return se.Pan}getHammerConfig(){return{...super.getHammerConfig(),direction:this.getDirection()}}getState(e){const n=super.getState(e);return this.previousState===V.UNDETERMINED&&n===V.ACTIVE?V.BEGAN:n}getDirection(){const e=this.getConfig(),{activeOffsetXStart:n,activeOffsetXEnd:r,activeOffsetYStart:i,activeOffsetYEnd:a,minDist:s}=e;let o=[],l=[];if(!Ve(s))return se.DIRECTION_ALL;Ve(n)||l.push(se.DIRECTION_LEFT),Ve(r)||l.push(se.DIRECTION_RIGHT),l.length===2&&(l=[se.DIRECTION_HORIZONTAL]),o=o.concat(l);let c=[];return Ve(i)||c.push(se.DIRECTION_UP),Ve(a)||c.push(se.DIRECTION_DOWN),c.length===2&&(c=[se.DIRECTION_VERTICAL]),o=o.concat(c),o.length?o[0]===se.DIRECTION_HORIZONTAL&&o[1]===se.DIRECTION_VERTICAL||l.length&&c.length?se.DIRECTION_ALL:o[0]:se.DIRECTION_NONE}getConfig(){return this.hasCustomActivationCriteria?this.config:{minDistSq:10}}shouldFailUnderCustomCriteria({deltaX:e,deltaY:n},r){return!Ve(r.failOffsetXStart)&&e<r.failOffsetXStart||!Ve(r.failOffsetXEnd)&&e>r.failOffsetXEnd||!Ve(r.failOffsetYStart)&&n<r.failOffsetYStart||!Ve(r.failOffsetYEnd)&&n>r.failOffsetYEnd}shouldActivateUnderCustomCriteria({deltaX:e,deltaY:n,velocity:r},i){return!Ve(i.activeOffsetXStart)&&e<i.activeOffsetXStart||!Ve(i.activeOffsetXEnd)&&e>i.activeOffsetXEnd||!Ve(i.activeOffsetYStart)&&n<i.activeOffsetYStart||!Ve(i.activeOffsetYEnd)&&n>i.activeOffsetYEnd||cs(cf({x:e,y:n}),i.minDistSq)||cs(r.x,i.minVelocityX)||cs(r.y,i.minVelocityY)||cs(cf(r),i.minVelocitySq)}shouldMultiFingerPanFail({pointerLength:e,scale:n,deltaRotation:r}){if(e<=1)return!1;const i=Math.abs(n-1),a=Math.abs(r);return i>H3||a>U3}updateHasCustomActivationCriteria(e){return gn(e.minDistSq)||gn(e.minVelocityX)||gn(e.minVelocityY)||gn(e.minVelocitySq)||gn(e.activeOffsetXStart)||gn(e.activeOffsetXEnd)||gn(e.activeOffsetYStart)||gn(e.activeOffsetYEnd)}isGestureEnabledForEvent(e,n,r){if(this.shouldFailUnderCustomCriteria(r,e))return{failed:!0};const i={x:r.velocityX,y:r.velocityY};return this.hasCustomActivationCriteria&&this.shouldActivateUnderCustomCriteria({deltaX:r.deltaX,deltaY:r.deltaY,velocity:i},e)?this.shouldMultiFingerPanFail({pointerLength:r.maxPointers,scale:r.scale,deltaRotation:r.deltaRotation})?{failed:!0}:{success:!0}:{success:!1}}};function Eo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let Q3=class extends _h{constructor(...e){super(...e),Eo(this,"_shouldFireEndEvent",null),Eo(this,"_timer",void 0),Eo(this,"_multiTapTimer",void 0),Eo(this,"onSuccessfulTap",n=>{if(this._getPendingGestures().length){this._shouldFireEndEvent=n;return}n.eventType===se.INPUT_END&&this.sendEvent({...n,eventType:se.INPUT_MOVE}),this.sendEvent({...n,isFinal:!0}),this.onGestureEnded(n)})}get name(){return"tap"}get NativeGestureClass(){return se.Tap}get maxDelayMs(){return Ve(this.config.maxDelayMs)?300:this.config.maxDelayMs}simulateCancelEvent(e){this.isGestureRunning&&this.cancelEvent(e)}onGestureActivated(e){this.isGestureRunning&&this.onSuccessfulTap(e)}onRawEvent(e){if(super.onRawEvent(e),!this.hasGestureFailed&&!this.isGestureRunning&&!e.isFinal){const n=this.hammer.get(this.name);n.options.enable(n,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 n=this.hammer.get(this.name);n.options.enable(n,e)&&(clearTimeout(this._multiTapTimer),this.onStart(e),this.sendEvent(e))}}}getHammerConfig(){return{...super.getHammerConfig(),event:this.name,taps:Ve(this.config.numberOfTaps)?1:this.config.numberOfTaps,interval:this.maxDelayMs,time:Ve(this.config.maxDurationMs)||this.config.maxDurationMs==null?250:this.config.maxDurationMs}}updateGestureConfig({shouldCancelWhenOutside:e=!0,maxDeltaX:n=Number.NaN,maxDeltaY:r=Number.NaN,numberOfTaps:i=1,minDurationMs:a=525,maxDelayMs:s=Number.NaN,maxDurationMs:o=Number.NaN,maxDist:l=2,minPointers:c=1,maxPointers:u=1,...A}){return super.updateGestureConfig({shouldCancelWhenOutside:e,numberOfTaps:i,maxDeltaX:n,maxDeltaY:r,minDurationMs:a,maxDelayMs:s,maxDist:l,minPointers:c,maxPointers:u,...A})}onGestureEnded(...e){clearTimeout(this._timer),super.onGestureEnded(...e)}onWaitingEnded(e){this._shouldFireEndEvent&&(this.onSuccessfulTap(this._shouldFireEndEvent),this._shouldFireEndEvent=null)}},Z3=class extends wx{get minDurationMs(){return Ve(this.config.minDurationMs)?251:this.config.minDurationMs}get maxDist(){return Ve(this.config.maxDist)?9:this.config.maxDist}updateHasCustomActivationCriteria({maxDistSq:e}){return!gn(e)}getConfig(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}getHammerConfig(){return{...super.getHammerConfig(),time:this.minDurationMs}}getState(e){return{[se.INPUT_START]:V.ACTIVE,[se.INPUT_MOVE]:V.ACTIVE,[se.INPUT_END]:V.END,[se.INPUT_CANCEL]:V.FAILED}[e]}};class Sx extends Sh{get shouldEnableGestureOnSetup(){return!1}updateGestureConfig({minPointers:e=2,maxPointers:n=2,...r}){return super.updateGestureConfig({minPointers:e,maxPointers:n,...r})}isGestureEnabledForEvent({minPointers:e,maxPointers:n},r,{maxPointers:i}){return i>n?{failed:!0}:{success:i>=e}}}let J3=class extends Sx{get name(){return"pinch"}get NativeGestureClass(){return se.Pinch}transformNativeEvent({scale:e,velocity:n,center:r}){return{focalX:r.x,focalY:r.y,velocity:n,scale:e}}},ek=class extends Sx{get name(){return"rotate"}get NativeGestureClass(){return se.Rotate}transformNativeEvent({rotation:e,velocity:n,center:r}){var i;return{rotation:(e-((i=this.initialRotation)!==null&&i!==void 0?i:0))*W3,anchorX:r.x,anchorY:r.y,velocity:n}}};class tk extends Error{constructor(e,n,r){super(`Invalid property \`${e}: ${n}\` expected \`${r}\``)}}let nk=class extends bx{get name(){return"swipe"}get NativeGestureClass(){return se.Swipe}onGestureActivated(e){this.sendEvent({...e,eventType:se.INPUT_MOVE,isFinal:!1,isFirst:!0}),this.isGestureRunning=!1,this.hasGestureFailed=!1,this.sendEvent({...e,eventType:se.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 n=this.hammer.get(this.name);n.options.enable(n,e)&&(this.onStart(e),this.sendEvent(e))}}}getHammerConfig(){return{pointers:this.config.numberOfPointers,direction:this.getDirection()}}getTargetDirections(e){const n=[];return e&xr.RIGHT&&n.push(se.DIRECTION_RIGHT),e&xr.LEFT&&n.push(se.DIRECTION_LEFT),e&xr.UP&&n.push(se.DIRECTION_UP),e&xr.DOWN&&n.push(se.DIRECTION_DOWN),n}getDirection(){const{direction:e}=this.getConfig();let n=[];return e&xr.RIGHT&&n.push(se.DIRECTION_HORIZONTAL),e&xr.LEFT&&n.push(se.DIRECTION_HORIZONTAL),e&xr.UP&&n.push(se.DIRECTION_VERTICAL),e&xr.DOWN&&n.push(se.DIRECTION_VERTICAL),n=[...new Set(n)],n.length===0?se.DIRECTION_NONE:n.length===1?n[0]:se.DIRECTION_ALL}isGestureEnabledForEvent({numberOfPointers:e},n,{maxPointers:r}){const i=r===e;return!i&&this.isGestureRunning?{failed:!0}:{success:i}}updateGestureConfig({numberOfPointers:e=1,direction:n,...r}){if(Ve(n)||typeof n!="number")throw new tk("direction",n,"number");return super.updateGestureConfig({numberOfPointers:e,direction:n,...r})}};const Zg={NativeViewGestureHandler:j8,PanGestureHandler:_8,TapGestureHandler:D8,LongPressGestureHandler:k8,PinchGestureHandler:P8,RotationGestureHandler:N8,FlingGestureHandler:$8,ManualGestureHandler:Q8,HoverGestureHandler:J8},Jg={NativeViewGestureHandler:$3,PanGestureHandler:j3,TapGestureHandler:Q3,LongPressGestureHandler:Z3,PinchGestureHandler:J3,RotationGestureHandler:ek,FlingGestureHandler:nk};function Vr(t){if((t==null?void 0:t.viewTag)!==void 0)return Vr(t.viewTag);if(t instanceof Element)return t.style.display==="contents"?Vr(t.firstChild):t;if(X8(t))return t.elementRef.current;let e=t==null?void 0:t.current;for(;e&&e.style.display==="contents";)e=e.firstChild;return e}function Wu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Dh{constructor(e){Wu(this,"view",void 0),Wu(this,"pointersInBounds",[]),Wu(this,"activePointersCounter",void 0),this.view=e,this.activePointersCounter=0}onPointerDown(e){}onPointerAdd(e){}onPointerUp(e){}onPointerRemove(e){}onPointerMove(e){}onPointerLeave(e){}onPointerEnter(e){}onPointerCancel(e){}onPointerOutOfBounds(e){}onPointerMoveOver(e){}onPointerMoveOut(e){}onWheel(e){}setOnPointerDown(e){this.onPointerDown=e}setOnPointerAdd(e){this.onPointerAdd=e}setOnPointerUp(e){this.onPointerUp=e}setOnPointerRemove(e){this.onPointerRemove=e}setOnPointerMove(e){this.onPointerMove=e}setOnPointerLeave(e){this.onPointerLeave=e}setOnPointerEnter(e){this.onPointerEnter=e}setOnPointerCancel(e){this.onPointerCancel=e}setOnPointerOutOfBounds(e){this.onPointerOutOfBounds=e}setOnPointerMoveOver(e){this.onPointerMoveOver=e}setOnPointerMoveOut(e){this.onPointerMoveOut=e}setOnWheel(e){this.onWheel=e}markAsInBounds(e){this.pointersInBounds.indexOf(e)>=0||this.pointersInBounds.push(e)}markAsOutOfBounds(e){const n=this.pointersInBounds.indexOf(e);n<0||this.pointersInBounds.splice(n,1)}resetManager(){this.activePointersCounter=0,this.pointersInBounds=[]}}function fn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Xu=new Set(["SELECT","INPUT"]);class rk extends Dh{constructor(e){super(e),fn(this,"trackedPointers",new Set),fn(this,"mouseButtonsMapper",new Map),fn(this,"lastPosition",void 0),fn(this,"pointerDownCallback",n=>{if(!nf(this.view,{x:n.clientX,y:n.clientY}))return;const r=this.mapEvent(n,ce.DOWN),i=n.target;Xu.has(i.tagName)||i.setPointerCapture(r.pointerId),this.markAsInBounds(r.pointerId),this.trackedPointers.add(r.pointerId),++this.activePointersCounter>1?(r.eventType=ce.ADDITIONAL_POINTER_DOWN,this.onPointerAdd(r)):this.onPointerDown(r)}),fn(this,"pointerUpCallback",n=>{if(this.activePointersCounter===0)return;const r=this.mapEvent(n,ce.UP),i=n.target;Xu.has(i.tagName)||i.releasePointerCapture(r.pointerId),this.markAsOutOfBounds(r.pointerId),this.trackedPointers.delete(r.pointerId),--this.activePointersCounter>0?(r.eventType=ce.ADDITIONAL_POINTER_UP,this.onPointerRemove(r)):this.onPointerUp(r)}),fn(this,"pointerMoveCallback",n=>{const r=this.mapEvent(n,ce.MOVE),i=n.target;!i.hasPointerCapture(n.pointerId)&&!Xu.has(i.tagName)&&i.setPointerCapture(n.pointerId);const a=nf(this.view,{x:r.x,y:r.y}),s=this.pointersInBounds.indexOf(r.pointerId);a?s<0?(r.eventType=ce.ENTER,this.onPointerEnter(r),this.markAsInBounds(r.pointerId)):this.onPointerMove(r):s>=0?(r.eventType=ce.LEAVE,this.onPointerLeave(r),this.markAsOutOfBounds(r.pointerId)):this.onPointerOutOfBounds(r),this.lastPosition.x=n.x,this.lastPosition.y=n.y}),fn(this,"pointerCancelCallback",n=>{const r=this.mapEvent(n,ce.CANCEL);this.onPointerCancel(r),this.markAsOutOfBounds(r.pointerId),this.activePointersCounter=0,this.trackedPointers.clear()}),fn(this,"pointerEnterCallback",n=>{const r=this.mapEvent(n,ce.ENTER);this.onPointerMoveOver(r)}),fn(this,"pointerLeaveCallback",n=>{const r=this.mapEvent(n,ce.LEAVE);this.onPointerMoveOut(r)}),fn(this,"lostPointerCaptureCallback",n=>{const r=this.mapEvent(n,ce.CANCEL);this.trackedPointers.has(r.pointerId)&&(this.onPointerCancel(r),this.activePointersCounter=0,this.trackedPointers.clear())}),this.mouseButtonsMapper.set(0,bn.LEFT),this.mouseButtonsMapper.set(1,bn.MIDDLE),this.mouseButtonsMapper.set(2,bn.RIGHT),this.mouseButtonsMapper.set(3,bn.BUTTON_4),this.mouseButtonsMapper.set(4,bn.BUTTON_5),this.lastPosition={x:-1/0,y:-1/0}}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,n){var r;const i=this.view.getBoundingClientRect(),{scaleX:a,scaleY:s}=L8(this.view);return{x:e.clientX,y:e.clientY,offsetX:(e.clientX-i.left)/a,offsetY:(e.clientY-i.top)/s,pointerId:e.pointerId,eventType:n,pointerType:(r=QE.get(e.pointerType))!==null&&r!==void 0?r:xt.OTHER,button:this.mouseButtonsMapper.get(e.button),time:e.timeStamp,stylusData:V8(e)}}resetManager(){super.resetManager(),this.trackedPointers.clear()}}function La(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class ik extends Dh{constructor(...e){super(...e),La(this,"activationKeys",["Enter"," "]),La(this,"cancelationKeys",["Tab"]),La(this,"isPressed",!1),La(this,"keyDownCallback",n=>{if(this.cancelationKeys.indexOf(n.key)!==-1&&this.isPressed){this.dispatchEvent(n,ce.CANCEL);return}this.activationKeys.indexOf(n.key)!==-1&&this.dispatchEvent(n,ce.DOWN)}),La(this,"keyUpCallback",n=>{this.activationKeys.indexOf(n.key)===-1||!this.isPressed||this.dispatchEvent(n,ce.UP)})}dispatchEvent(e,n){if(!(e.target instanceof HTMLElement))return;const r=this.mapEvent(e,n);switch(n){case ce.UP:this.isPressed=!1,this.onPointerUp(r);break;case ce.DOWN:this.isPressed=!0,this.onPointerDown(r);break;case ce.CANCEL:this.isPressed=!1,this.onPointerCancel(r);break}}registerListeners(){this.view.addEventListener("keydown",this.keyDownCallback),this.view.addEventListener("keyup",this.keyUpCallback)}unregisterListeners(){this.view.removeEventListener("keydown",this.keyDownCallback),this.view.removeEventListener("keyup",this.keyUpCallback)}mapEvent(e,n){const r=e.target.getBoundingClientRect(),i={x:(r==null?void 0:r.x)+(r==null?void 0:r.width)/2,y:(r==null?void 0:r.y)+(r==null?void 0:r.height)/2},a={x:(r==null?void 0:r.width)/2,y:(r==null?void 0:r.height)/2};return{x:i.x,y:i.y,offsetX:a.x,offsetY:a.y,pointerId:0,eventType:n,pointerType:xt.KEY,time:e.timeStamp}}}function Yu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class ak extends Dh{constructor(...e){super(...e),Yu(this,"wheelDelta",{x:0,y:0}),Yu(this,"resetDelta",n=>{this.wheelDelta={x:0,y:0}}),Yu(this,"wheelCallback",n=>{this.wheelDelta.x+=n.deltaX,this.wheelDelta.y+=n.deltaY;const r=this.mapEvent(n);this.onWheel(r)})}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:ce.MOVE,pointerType:xt.OTHER,time:e.timeStamp,wheelDeltaY:e.wheelDeltaY}}resetManager(){super.resetManager()}}function Va(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class sk{constructor(){Va(this,"isInitialized",!1),Va(this,"view",void 0),Va(this,"gestureHandler",void 0),Va(this,"eventManagers",[]),Va(this,"defaultViewStyles",{userSelect:"",touchAction:""})}getView(){return this.view}init(e,n){if(!e)throw new Error(`Cannot find HTML Element for handler ${n.getTag()}`);this.isInitialized=!0,this.gestureHandler=n,this.view=Vr(e),this.defaultViewStyles={userSelect:this.view.style.userSelect,touchAction:this.view.style.touchAction};const r=n.getConfig();this.setUserSelect(r.enabled),this.setTouchAction(r.enabled),this.setContextMenu(r.enabled),this.eventManagers.push(new rk(this.view)),this.eventManagers.push(new ik(this.view)),this.eventManagers.push(new ak(this.view)),this.eventManagers.forEach(i=>this.gestureHandler.attachEventManager(i))}isPointerInBounds({x:e,y:n}){return nf(this.view,{x:e,y:n})}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.getConfig();e.activeCursor&&e.activeCursor!=="auto"&&this.gestureHandler.getState()===V.ACTIVE&&(this.view.style.cursor="auto")}shouldDisableContextMenu(e){return e.enableContextMenu===void 0&&this.gestureHandler.isButtonInConfig(bn.RIGHT)||e.enableContextMenu===!1}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:n}=this.gestureHandler.getConfig();this.view.style.userSelect=e?n??"none":this.defaultViewStyles.userSelect,this.view.style.webkitUserSelect=e?n??"none":this.defaultViewStyles.userSelect}setTouchAction(e){const{touchAction:n}=this.gestureHandler.getConfig();this.view.style.touchAction=e?n??"none":this.defaultViewStyles.touchAction,this.view.style.WebkitTouchCallout=e?n??"none":this.defaultViewStyles.touchAction}setContextMenu(e){const n=this.gestureHandler.getConfig();e?this.addContextMenuListeners(n):this.removeContextMenuListeners(n)}onEnabledChange(e){this.isInitialized&&(this.setUserSelect(e),this.setTouchAction(e),this.setContextMenu(e))}onBegin(){}onActivate(){const e=this.gestureHandler.getConfig();(!this.view.style.cursor||this.view.style.cursor==="auto")&&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(n=>{n.unregisterListeners()})}}let ev=!1;const St={handleSetJSResponder(t,e){console.warn("handleSetJSResponder: ",t,e)},handleClearJSResponder(){console.warn("handleClearJSResponder: ")},createGestureHandler(t,e,n){if(Zr()){if(!(t in Zg))throw new Error(`react-native-gesture-handler: ${t} is not supported on web.`);const r=Zg[t];Bt.createGestureHandler(e,new r(new sk)),rr.getInstance().configureInteractions(Bt.getHandler(e),n)}else{if(!(t in Jg))throw new Error(`react-native-gesture-handler: ${t} is not supported on web.`);const r=Jg[t];Y3(e,new r)}this.updateGestureHandler(e,n)},attachGestureHandler(t,e,n,r){if(!(e instanceof Element||e instanceof _t.Component)){ev=!0;const a=(Zr()?Bt.getHandler(t):kr(t)).constructor.name;throw new Error(`${a} with tag ${t} received child that is not valid HTML element.`)}Zr()?Bt.getHandler(t).init(e,r):kr(t).setView(e,r)},updateGestureHandler(t,e){Zr()?(Bt.getHandler(t).updateGestureConfig(e),rr.getInstance().configureInteractions(Bt.getHandler(t),e)):kr(t).updateGestureConfig(e)},getGestureHandlerNode(t){return Zr()?Bt.getHandler(t):kr(t)},dropGestureHandler(t){ev||(Zr()?Bt.dropGestureHandler(t):z3(t))},flushOperations(){}};function ok(){g8()}const Th=_t.createContext(!1);function uf(){return uf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},uf.apply(this,arguments)}function _x({style:t,...e}){return _.createElement(Th.Provider,{value:!0},_.createElement(pe,uf({style:t??lk.container},e)))}const lk=he.create({container:{flex:1}});function ck(t,e){function n(r){return _.createElement(_x,{style:[uk.container,e]},_.createElement(t,r))}return n.displayName=`gestureHandlerRootHOC(${t.displayName||t.name})`,t1(n,t),n}const uk=he.create({container:{flex:1}});let dk=1;function Dx(){return dk++}function Ak(t,e){return t!==void 0&&(t!==Object(t)||!("__isNative"in t))&&e!=="onHandlerStateChange"&&e!=="onGestureEvent"}function oa(t,e,n={}){const r={...n};for(const i of e){let a=t[i];Ak(a,i)&&(i==="simultaneousHandlers"||i==="waitFor"?a=fk(t[i]):i==="hitSlop"&&typeof a!="object"&&(a={top:a,left:a,bottom:a,right:a}),r[i]=a)}return r}function fk(t){return t=s8(t),ue.OS==="web"?t.map(({current:e})=>e).filter(e=>e):t.map(e=>{var n;return Lo[e]||((n=e.current)===null||n===void 0?void 0:n.handlerTag)||-1}).filter(e=>e>0)}let zu=!1;function la(){zu||(zu=!0,Mi(()=>{St.flushOperations(),zu=!1}))}const li={REANIMATED_WORKLET:1,NATIVE_ANIMATED_EVENT:2,JS_FUNCTION_OLD_API:3,JS_FUNCTION_NEW_API:4};var qu,Ku,$u;function gt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ir=w1,hk={topOnGestureHandlerEvent:{registrationName:"onGestureHandlerEvent"},topOnGestureHandlerStateChange:{registrationName:"onGestureHandlerStateChange"}},Tx={onGestureHandlerEvent:{registrationName:"onGestureHandlerEvent"},onGestureHandlerStateChange:{registrationName:"onGestureHandlerStateChange"},...l8()&&ue.OS==="android"&&hk};ir.genericDirectEventTypes={...ir.genericDirectEventTypes,...Tx};const ju=(qu=(Ku=ir.getViewManagerConfig)===null||Ku===void 0?void 0:Ku.call(ir,"getConstants"))!==null&&qu!==void 0?qu:($u=ir.getConstants)===null||$u===void 0?void 0:$u.call(ir);ju&&(ju.genericDirectEventTypes={...ju.genericDirectEventTypes,...Tx});const{setJSResponder:pk=()=>{},clearJSResponder:gk=()=>{}}=ir;ir.setJSResponder=(t,e)=>{St.handleSetJSResponder(t,e),pk(t,e)};ir.clearJSResponder=()=>{St.handleClearJSResponder(),gk()};let vk=!0;function tv(t){const e=n=>Array.isArray(n)?n.some(r=>r&&r.current===null):n&&n.current===null;return e(t.simultaneousHandlers)||e(t.waitFor)}const mk={[V.UNDETERMINED]:void 0,[V.BEGAN]:"onBegan",[V.FAILED]:"onFailed",[V.CANCELLED]:"onCancelled",[V.ACTIVE]:"onActivated",[V.END]:"onEnded"},nv=1;function Xr({name:t,allowedProps:e=[],config:n={},transformProps:r,customNativeProps:i=[]}){class a extends _.Component{constructor(o){if(super(o),gt(this,"handlerTag",void 0),gt(this,"config",void 0),gt(this,"propsRef",void 0),gt(this,"isMountedRef",void 0),gt(this,"viewNode",void 0),gt(this,"viewTag",void 0),gt(this,"inspectorToggleListener",void 0),gt(this,"onGestureHandlerEvent",l=>{if(l.nativeEvent.handlerTag===this.handlerTag){if(typeof this.props.onGestureEvent=="function"){var c,u;(c=(u=this.props).onGestureEvent)===null||c===void 0||c.call(u,l)}}else{var A,d;(A=(d=this.props).onGestureHandlerEvent)===null||A===void 0||A.call(d,l)}}),gt(this,"onGestureHandlerStateChange",l=>{if(l.nativeEvent.handlerTag===this.handlerTag){if(typeof this.props.onHandlerStateChange=="function"){var c,u;(c=(u=this.props).onHandlerStateChange)===null||c===void 0||c.call(u,l)}const f=l.nativeEvent.state,p=mk[f],h=p&&this.props[p];h&&typeof h=="function"&&h(l)}else{var A,d;(A=(d=this.props).onGestureHandlerStateChange)===null||A===void 0||A.call(d,l)}}),gt(this,"refHandler",l=>{this.viewNode=l;const c=_.Children.only(this.props.children),{ref:u}=c;u!==null&&(typeof u=="function"?u(l):u.current=l)}),gt(this,"createGestureHandler",l=>{this.config=l,St.createGestureHandler(t,this.handlerTag,l)}),gt(this,"attachGestureHandler",l=>{if(this.viewTag=l,ue.OS==="web")St.attachGestureHandler(this.handlerTag,l,li.JS_FUNCTION_OLD_API,this.propsRef);else{u8(this.handlerTag,{onGestureEvent:this.onGestureHandlerEvent,onGestureStateChange:this.onGestureHandlerStateChange});const c=(()=>{var u,A;const d=(u=this.props)===null||u===void 0?void 0:u.onGestureEvent,f=d&&("current"in d||"workletEventHandler"in d),p=(A=this.props)===null||A===void 0?void 0:A.onHandlerStateChange,h=p&&("current"in p||"workletEventHandler"in p);return f||h?li.REANIMATED_WORKLET:d&&"__isNative"in d?li.NATIVE_ANIMATED_EVENT:li.JS_FUNCTION_OLD_API})();St.attachGestureHandler(this.handlerTag,l,c)}la()}),gt(this,"updateGestureHandler",l=>{this.config=l,St.updateGestureHandler(this.handlerTag,l),la()}),this.handlerTag=Dx(),this.config={},this.propsRef=_.createRef(),this.isMountedRef=_.createRef(),this.state={allowTouches:vk},o.id){if(Lo[o.id]!==void 0)throw new Error(`Handler with ID "${o.id}" already registered`);Lo[o.id]=this.handlerTag}}componentDidMount(){const o=this.props;this.isMountedRef.current=!0,tv(o)&&Mi(()=>{this.update(nv)}),this.createGestureHandler(oa(r?r(this.props):this.props,[...e,...i],n)),this.attachGestureHandler(Vr(this.viewNode))}componentDidUpdate(){const o=Vr(this.viewNode);this.viewTag!==o&&this.attachGestureHandler(o),this.update(nv)}componentWillUnmount(){var o;(o=this.inspectorToggleListener)===null||o===void 0||o.remove(),this.isMountedRef.current=!1,St.dropGestureHandler(this.handlerTag),la();const l=this.props.id;l&&delete Lo[l]}update(o){if(!this.isMountedRef.current)return;const l=this.props;if(tv(l)&&o>0)Mi(()=>{this.update(o-1)});else{const c=oa(r?r(this.props):this.props,[...e,...i],n);HE(this.config,c)||this.updateGestureHandler(c)}}setNativeProps(o){const l={...this.props,...o},c=oa(r?r(l):l,[...e,...i],n);this.updateGestureHandler(c)}render(){var o;let l=this.onGestureHandlerEvent;const{onGestureEvent:c,onGestureHandlerEvent:u}=this.props;if(c&&typeof c!="function"){if(u)throw new Error("Nesting touch handlers with native animated driver is not supported yet");l=c}else if(u&&typeof u!="function")throw new Error("Nesting touch handlers with native animated driver is not supported yet");let A=this.onGestureHandlerStateChange;const{onHandlerStateChange:d,onGestureHandlerStateChange:f}=this.props;if(d&&typeof d!="function"){if(f)throw new Error("Nesting touch handlers with native animated driver is not supported yet");A=d}else if(f&&typeof f!="function")throw new Error("Nesting touch handlers with native animated driver is not supported yet");const p={onGestureHandlerEvent:this.state.allowTouches?l:void 0,onGestureHandlerStateChange:this.state.allowTouches?A:void 0};this.propsRef.current=p;let h=null;try{h=_.Children.only(this.props.children)}catch{throw new Error(Xs(`${t} 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 g=h.props.children;return _.cloneElement(h,{ref:this.refHandler,collapsable:!1,...vh()?{handlerType:t,handlerTag:this.handlerTag,enabled:this.props.enabled}:{},testID:(o=this.props.testID)!==null&&o!==void 0?o:h.props.testID,...p},g)}}return gt(a,"displayName",t),gt(a,"contextType",Th),a}const Ox=["maxDurationMs","maxDelayMs","numberOfTaps","maxDeltaX","maxDeltaY","maxDist","minPointers"],Ck="TapGestureHandler",Oh=Xr({name:Ck,allowedProps:[...Wr,...Ox],config:{shouldCancelWhenOutside:!0}}),ca={get forceTouchAvailable(){return!1}};function Ek(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const kx=["minForce","maxForce","feedbackOnActivation"];class Mx extends _t.Component{componentDidMount(){console.warn(Xs("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}}Ek(Mx,"forceTouchAvailable",!1);const xk="ForceTouchGestureHandler",Px=ca!=null&&ca.forceTouchAvailable?Xr({name:xk,allowedProps:[...Wr,...kx],config:{}}):Mx;Px.forceTouchAvailable=(ca==null?void 0:ca.forceTouchAvailable)||!1;const Fx=["minDurationMs","maxDist","numberOfPointers"],yk="LongPressGestureHandler",Ik=Xr({name:yk,allowedProps:[...Wr,...Fx],config:{shouldCancelWhenOutside:!0}}),Rx=["activeOffsetY","activeOffsetX","failOffsetY","failOffsetX","minDist","minVelocity","minVelocityX","minVelocityY","minPointers","maxPointers","avgTouches","enableTrackpadTwoFingerGesture","activateAfterLongPress"],Nx=["activeOffsetYStart","activeOffsetYEnd","activeOffsetXStart","activeOffsetXEnd","failOffsetYStart","failOffsetYEnd","failOffsetXStart","failOffsetXEnd"],wk="PanGestureHandler",kh=Xr({name:wk,allowedProps:[...Wr,...Rx],config:{},transformProps:Sk,customNativeProps:Nx});function bk(t){const e={...t};return t.activeOffsetX!==void 0&&(delete e.activeOffsetX,Array.isArray(t.activeOffsetX)?(e.activeOffsetXStart=t.activeOffsetX[0],e.activeOffsetXEnd=t.activeOffsetX[1]):t.activeOffsetX<0?e.activeOffsetXStart=t.activeOffsetX:e.activeOffsetXEnd=t.activeOffsetX),t.activeOffsetY!==void 0&&(delete e.activeOffsetY,Array.isArray(t.activeOffsetY)?(e.activeOffsetYStart=t.activeOffsetY[0],e.activeOffsetYEnd=t.activeOffsetY[1]):t.activeOffsetY<0?e.activeOffsetYStart=t.activeOffsetY:e.activeOffsetYEnd=t.activeOffsetY),t.failOffsetX!==void 0&&(delete e.failOffsetX,Array.isArray(t.failOffsetX)?(e.failOffsetXStart=t.failOffsetX[0],e.failOffsetXEnd=t.failOffsetX[1]):t.failOffsetX<0?e.failOffsetXStart=t.failOffsetX:e.failOffsetXEnd=t.failOffsetX),t.failOffsetY!==void 0&&(delete e.failOffsetY,Array.isArray(t.failOffsetY)?(e.failOffsetYStart=t.failOffsetY[0],e.failOffsetYEnd=t.failOffsetY[1]):t.failOffsetY<0?e.failOffsetYStart=t.failOffsetY:e.failOffsetYEnd=t.failOffsetY),e}function Sk(t){return bk(t)}const _k="PinchGestureHandler",Dk=Xr({name:_k,allowedProps:Wr,config:{}}),Tk="RotationGestureHandler",Ok=Xr({name:Tk,allowedProps:Wr,config:{}}),Bx=["numberOfPointers","direction"],kk="FlingGestureHandler",Mk=Xr({name:kk,allowedProps:[...Wr,...Bx],config:{}}),Gx=["shouldActivateOnStart","disallowInterruption"],Lx=[...Wr,...Gx],Pk="NativeViewGestureHandler",Vx=Xr({name:Pk,allowedProps:Lx,config:{}});function El(){return El=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},El.apply(this,arguments)}const Fk=[...Lx,"onGestureHandlerEvent","onGestureHandlerStateChange"];function ba(t,e={}){var n;const r=_.forwardRef((i,a)=>{const s=Object.keys(i).reduce((c,u)=>(Fk.includes(u)&&(c[u]=i[u]),c),{...e}),o=_.useRef(),l=_.useRef();return _.useImperativeHandle(a,()=>{const c=l.current;return o.current&&c?(o.current.handlerTag=c.handlerTag,o.current):null},[o,l]),_.createElement(Vx,El({},s,{ref:l}),_.createElement(t,El({},i,{ref:o})))});return r.displayName=(t==null?void 0:t.displayName)||(t==null||(n=t.render)===null||n===void 0?void 0:n.name)||typeof t=="string"&&t||"ComponentWrapper",r}function Ha(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ee={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 Hx{}let Rk=0;class Bi extends Hx{constructor(){super(),Ha(this,"gestureId",-1),Ha(this,"handlerTag",-1),Ha(this,"handlerName",""),Ha(this,"config",{}),Ha(this,"handlers",{gestureId:-1,handlerTag:-1,isWorklet:[]}),this.gestureId=Rk++,this.handlers.gestureId=this.gestureId}addDependency(e,n){const r=this.config[e];this.config[e]=r?Array().concat(r,n):[n]}withRef(e){return this.config.ref=e,this}isWorklet(e){return e.__workletHash!==void 0}onBegin(e){return this.handlers.onBegin=e,this.handlers.isWorklet[Ee.BEGAN]=this.isWorklet(e),this}onStart(e){return this.handlers.onStart=e,this.handlers.isWorklet[Ee.START]=this.isWorklet(e),this}onEnd(e){return this.handlers.onEnd=e,this.handlers.isWorklet[Ee.END]=this.isWorklet(e),this}onFinalize(e){return this.handlers.onFinalize=e,this.handlers.isWorklet[Ee.FINALIZE]=this.isWorklet(e),this}onTouchesDown(e){return this.config.needsPointerData=!0,this.handlers.onTouchesDown=e,this.handlers.isWorklet[Ee.TOUCHES_DOWN]=this.isWorklet(e),this}onTouchesMove(e){return this.config.needsPointerData=!0,this.handlers.onTouchesMove=e,this.handlers.isWorklet[Ee.TOUCHES_MOVE]=this.isWorklet(e),this}onTouchesUp(e){return this.config.needsPointerData=!0,this.handlers.onTouchesUp=e,this.handlers.isWorklet[Ee.TOUCHES_UP]=this.isWorklet(e),this}onTouchesCancelled(e){return this.config.needsPointerData=!0,this.handlers.onTouchesCancelled=e,this.handlers.isWorklet[Ee.TOUCHES_CANCELLED]=this.isWorklet(e),this}enabled(e){return this.config.enabled=e,this}shouldCancelWhenOutside(e){return this.config.shouldCancelWhenOutside=e,this}hitSlop(e){return this.config.hitSlop=e,this}activeCursor(e){return this.config.activeCursor=e,this}mouseButton(e){return this.config.mouseButton=e,this}runOnJS(e){return this.config.runOnJS=e,this}simultaneousWithExternalGesture(...e){for(const n of e)this.addDependency("simultaneousWith",n);return this}requireExternalGestureToFail(...e){for(const n of e)this.addDependency("requireToFail",n);return this}blocksExternalGesture(...e){for(const n of e)this.addDependency("blocksHandlers",n);return this}withTestId(e){return this.config.testId=e,this}cancelsTouchesInView(e){return this.config.cancelsTouchesInView=e,this}initialize(){this.handlerTag=Dx(),this.handlers={...this.handlers,handlerTag:this.handlerTag},this.config.ref&&(this.config.ref.current=this)}toGestureArray(){return[this]}prepare(){}get shouldUseReanimated(){return this.config.runOnJS!==!0&&!this.handlers.isWorklet.includes(!1)&&!c8()}}class Sa extends Bi{onUpdate(e){return this.handlers.onUpdate=e,this.handlers.isWorklet[Ee.UPDATE]=this.isWorklet(e),this}onChange(e){return this.handlers.onChange=e,this.handlers.isWorklet[Ee.CHANGE]=this.isWorklet(e),this}manualActivation(e){return this.config.manualActivation=e,this}}const Tt=Gs(oT);var Qu;let an;try{an=Tt}catch{an=void 0}(Qu=an)!==null&&Qu!==void 0&&Qu.useSharedValue||(an=void 0);an!==void 0&&!an.setGestureState&&(an.setGestureState=()=>{"worklet";console.warn(Xs("Please use newer version of react-native-reanimated in order to control state of the gestures."))});function Nk(t,e){"worklet";switch(t){case Ee.BEGAN:return e.onBegin;case Ee.START:return e.onStart;case Ee.UPDATE:return e.onUpdate;case Ee.CHANGE:return e.onChange;case Ee.END:return e.onEnd;case Ee.FINALIZE:return e.onFinalize;case Ee.TOUCHES_DOWN:return e.onTouchesDown;case Ee.TOUCHES_MOVE:return e.onTouchesMove;case Ee.TOUCHES_UP:return e.onTouchesUp;case Ee.TOUCHES_CANCELLED:return e.onTouchesCancelled}}function Bk(t){"worklet";switch(t){case nr.TOUCHES_DOWN:return Ee.TOUCHES_DOWN;case nr.TOUCHES_MOVE:return Ee.TOUCHES_MOVE;case nr.TOUCHES_UP:return Ee.TOUCHES_UP;case nr.TOUCHES_CANCELLED:return Ee.TOUCHES_CANCELLED}return Ee.UNDEFINED}function Un(t,e,n,...r){"worklet";const i=Nk(t,e);e.isWorklet[t]?i==null||i(n,...r):i&&console.warn(Xs("Animated gesture callback must be a worklet"))}function Gk(t){"worklet";return t.oldState!=null}function Lk(t){"worklet";return t.eventType!=null}function Vk(t,e){if(!an)return;const n=an.useSharedValue(null),r=an.useSharedValue([]),i=[],a=o=>{"worklet";const l=n.value;if(l)for(let u=0;u<l.length;u++){const A=l[u];if(o.handlerTag===A.handlerTag){if(Gk(o))o.oldState===V.UNDETERMINED&&o.state===V.BEGAN?Un(Ee.BEGAN,A,o):(o.oldState===V.BEGAN||o.oldState===V.UNDETERMINED)&&o.state===V.ACTIVE?(Un(Ee.START,A,o),r.value[A.handlerTag]=void 0):o.oldState!==o.state&&o.state===V.END?(o.oldState===V.ACTIVE&&Un(Ee.END,A,o,!0),Un(Ee.FINALIZE,A,o,!0)):(o.state===V.FAILED||o.state===V.CANCELLED)&&o.state!==o.oldState&&(o.oldState===V.ACTIVE&&Un(Ee.END,A,o,!1),Un(Ee.FINALIZE,A,o,!1));else if(Lk(o))i[u]||(i[u]=YE.create(o.handlerTag)),o.eventType!==nr.UNDETERMINED&&Un(Bk(o.eventType),A,o,i[u]);else if(Un(Ee.UPDATE,A,o),A.onChange&&A.changeEventCalculator){var c;Un(Ee.CHANGE,A,(c=A.changeEventCalculator)===null||c===void 0?void 0:c.call(A,o,r.value[A.handlerTag])),r.value[A.handlerTag]=o}}}},s=an.useEvent(a,["onGestureHandlerStateChange","onGestureHandlerEvent"],e);t.animatedEventHandler=s,t.animatedHandlers=n}function Hk(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let df;(function(t){t[t.NONE=0]="NONE",t[t.LIFT=1]="LIFT",t[t.HIGHLIGHT=2]="HIGHLIGHT"})(df||(df={}));const Uk=["hoverEffect"];function Wk(t,e){"worklet";let n;return e===void 0?n={changeX:t.x,changeY:t.y}:n={changeX:t.x-e.x,changeY:t.y-e.y},{...t,...n}}class Xk extends Sa{constructor(){super(),Hk(this,"config",{}),this.handlerName="HoverGestureHandler"}effect(e){return this.config.hoverEffect=e,this}onChange(e){return this.handlers.changeEventCalculator=Wk,super.onChange(e)}}const Af=[...S8,...Ox,...Rx,...Nx,...Fx,...kx,...Bx,...Uk,...Gx];function Yk(t){if(typeof t=="number")return t;if(t instanceof Bi)return t.handlerTag;var e,n;return(e=(n=t.current)===null||n===void 0?void 0:n.handlerTag)!==null&&e!==void 0?e:-1}function Zu(t){var e,n;return(e=t==null||(n=t.map(Yk))===null||n===void 0?void 0:n.filter(r=>r>0))!==null&&e!==void 0?e:[]}function Ux(t){const e=Zu(t.config.requireToFail),n=Zu(t.config.simultaneousWith),r=Zu(t.config.blocksHandlers);return{waitFor:e,simultaneousHandlers:n,blocksHandlers:r}}function zk(){const[t,e]=_.useState(!1);return _.useCallback(()=>{e(!t)},[t,e])}function qk(){return _.useRef({onGestureHandlerEvent:t=>{gl(t.nativeEvent)},onGestureHandlerStateChange:Zr()?t=>{gl(t.nativeEvent)}:void 0})}function Wx({preparedGesture:t,gestureConfig:e,gesturesToAttach:n,viewTag:r,webEventHandlersRef:i}){e.initialize(),Mi(()=>{t.isMounted&&e.prepare()});for(const a of n)St.createGestureHandler(a.handlerName,a.handlerTag,oa(a.config,Af)),XE(a.handlerTag,a,a.config.testId);Mi(()=>{if(t.isMounted){for(const a of n)St.updateGestureHandler(a.handlerTag,oa(a.config,Af,Ux(a)));la()}});for(const a of n){const s=a.shouldUseReanimated?li.REANIMATED_WORKLET:li.JS_FUNCTION_NEW_API;ue.OS==="web"?St.attachGestureHandler(a.handlerTag,r,li.JS_FUNCTION_OLD_API,i):St.attachGestureHandler(a.handlerTag,r,s)}if(t.attachedGestures=n,t.animatedHandlers){const a=s=>s.shouldUseReanimated;t.animatedHandlers.value=n.filter(a).map(s=>s.handlers)}}function Xx(t,e){if(e.length!==t.attachedGestures.length)return!0;for(let n=0;n<e.length;n++)if(e[n].handlerName!==t.attachedGestures[n].handlerName||e[n].shouldUseReanimated!==t.attachedGestures[n].shouldUseReanimated)return!0;return!1}function Yx(t){for(const e of t.attachedGestures)St.dropGestureHandler(e.handlerTag),d8(e.handlerTag,e.config.testId);la()}const zx=_.forwardRef(({children:t},e)=>{try{var n;const r=_t.Children.only(t);return((n=Object.getPrototypeOf(r==null?void 0:r.type))===null||n===void 0?void 0:n.name)==="WebShape"?_t.cloneElement(r,{ref:e},r.props.children):_t.createElement("div",{ref:e,style:{display:"contents"}},r)}catch{throw new Error(Xs("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."))}}),Kk=zx;function $k(t,e,n){e.prepare();for(let r=0;r<n.length;r++){const i=t.attachedGestures[r];n[r].handlerTag!==i.handlerTag&&(n[r].handlerTag=i.handlerTag,n[r].handlers.handlerTag=i.handlerTag)}Mi(()=>{if(!t.isMounted)return;let r=t.attachedGestures.length!==n.length;for(let i=0;i<n.length;i++){const a=t.attachedGestures[i];a.handlers.gestureId!==n[i].handlers.gestureId&&(n[i].shouldUseReanimated||a.shouldUseReanimated)&&(r=!0),a.config=n[i].config,a.handlers=n[i].handlers,St.updateGestureHandler(a.handlerTag,oa(a.config,Af,Ux(a))),XE(a.handlerTag,a,a.config.testId)}if(t.animatedHandlers&&r){const i=t.attachedGestures.filter(a=>a.shouldUseReanimated).map(a=>a.handlers);t.animatedHandlers.value=i}la()})}function jk(t,e,n,r,i){const a=zk();return _.useCallback(o=>{const l=Vr(t.viewRef),c=l!==t.previousViewTag;c||Xx(e,n)?(t.viewRef,Yx(e),Wx({preparedGesture:e,gestureConfig:r,gesturesToAttach:n,webEventHandlersRef:i,viewTag:l}),c&&(t.previousViewTag=l,t.forceRebuildReanimatedEvent=!0,a())):o||$k(e,r,n)},[a,r,n,e,t,i])}function Qk(t,e){return _.useCallback(r=>{r!==null&&(t.viewRef=r,t.previousViewTag===-1&&(t.previousViewTag=Vr(t.viewRef)),t.firstRender||e(!0))},[t,e])}function Zk(t,e){const n=["userSelect","enableContextMenu","touchAction"];for(const r of n){const i=t[r];if(i!==void 0)for(const a of e.toGestureArray()){const s=a.config;s[r]=i}}}const qx=t=>{_.useContext(Th);const e=t.gesture;Zk(t,e);const n=_.useMemo(()=>e.toGestureArray(),[e]),r=n.some(u=>u.shouldUseReanimated),i=qk(),a=_.useRef({firstRender:!0,viewRef:null,previousViewTag:-1,forceRebuildReanimatedEvent:!1}).current,s=_t.useRef({attachedGestures:[],animatedEventHandler:null,animatedHandlers:null,shouldUseReanimated:r,isMounted:!1}).current,o=jk(a,s,n,e,i),l=Qk(a,o),c=a.firstRender||a.forceRebuildReanimatedEvent||Xx(s,n);return a.forceRebuildReanimatedEvent=!1,Vk(s,c),_.useLayoutEffect(()=>{const u=Vr(a.viewRef);return s.isMounted=!0,Wx({preparedGesture:s,gestureConfig:e,gesturesToAttach:n,webEventHandlersRef:i,viewTag:u}),()=>{s.isMounted=!1,Yx(s)}},[]),_.useEffect(()=>{a.firstRender?a.firstRender=!1:o()},[t]),r?_t.createElement(Kk,{ref:l,onGestureHandlerEvent:s.animatedEventHandler},t.children):_t.createElement(zx,{ref:l},t.children)};function Jk(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class e5 extends Bi{constructor(){super(),Jk(this,"config",{}),this.handlerName="FlingGestureHandler"}numberOfPointers(e){return this.config.numberOfPointers=e,this}direction(e){return this.config.direction=e,this}}function t5(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n5(t,e){"worklet";let n;return e===void 0?n={forceChange:t.force}:n={forceChange:t.force-e.force},{...t,...n}}class r5 extends Sa{constructor(){super(),t5(this,"config",{}),this.handlerName="ForceTouchGestureHandler"}minForce(e){return this.config.minForce=e,this}maxForce(e){return this.config.maxForce=e,this}feedbackOnActivation(e){return this.config.feedbackOnActivation=e,this}onChange(e){return this.handlers.changeEventCalculator=n5,super.onChange(e)}}function Ju(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rv(t,e){return t===void 0?[...e]:[...t,...e]}class js extends Hx{constructor(...e){super(),Ju(this,"gestures",[]),Ju(this,"simultaneousGestures",[]),Ju(this,"requireGesturesToFail",[]),this.gestures=e}prepareSingleGesture(e,n,r){if(e instanceof Bi){const i={...e.config};i.simultaneousWith=rv(i.simultaneousWith,n),i.requireToFail=rv(i.requireToFail,r),e.config=i}else e instanceof js&&(e.simultaneousGestures=n,e.requireGesturesToFail=r,e.prepare())}prepare(){for(const e of this.gestures)this.prepareSingleGesture(e,this.simultaneousGestures,this.requireGesturesToFail)}initialize(){for(const e of this.gestures)e.initialize()}toGestureArray(){return this.gestures.flatMap(e=>e.toGestureArray())}}class i5 extends js{prepare(){const e=this.gestures.map(n=>this.gestures.filter(r=>r!==n).flatMap(r=>r.toGestureArray()));for(let n=0;n<this.gestures.length;n++)this.prepareSingleGesture(this.gestures[n],e[n],this.requireGesturesToFail)}}class a5 extends js{prepare(){const e=this.gestures.map(r=>r.toGestureArray());let n=[];for(let r=0;r<this.gestures.length;r++)this.prepareSingleGesture(this.gestures[r],this.simultaneousGestures,this.requireGesturesToFail.concat(n)),n=n.concat(e[r])}}function s5(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class o5 extends Bi{constructor(){super(),s5(this,"config",{}),this.handlerName="LongPressGestureHandler",this.shouldCancelWhenOutside(!0)}minDuration(e){return this.config.minDurationMs=e,this}maxDistance(e){return this.config.maxDist=e,this}numberOfPointers(e){return this.config.numberOfPointers=e,this}}function l5(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c5(t,e){"worklet";let n;return e===void 0?n={changeX:t.translationX,changeY:t.translationY}:n={changeX:t.translationX-e.translationX,changeY:t.translationY-e.translationY},{...t,...n}}class u5 extends Sa{constructor(){super(),l5(this,"config",{}),this.handlerName="PanGestureHandler"}activeOffsetY(e){return Array.isArray(e)?(this.config.activeOffsetYStart=e[0],this.config.activeOffsetYEnd=e[1]):e<0?this.config.activeOffsetYStart=e:this.config.activeOffsetYEnd=e,this}activeOffsetX(e){return Array.isArray(e)?(this.config.activeOffsetXStart=e[0],this.config.activeOffsetXEnd=e[1]):e<0?this.config.activeOffsetXStart=e:this.config.activeOffsetXEnd=e,this}failOffsetY(e){return Array.isArray(e)?(this.config.failOffsetYStart=e[0],this.config.failOffsetYEnd=e[1]):e<0?this.config.failOffsetYStart=e:this.config.failOffsetYEnd=e,this}failOffsetX(e){return Array.isArray(e)?(this.config.failOffsetXStart=e[0],this.config.failOffsetXEnd=e[1]):e<0?this.config.failOffsetXStart=e:this.config.failOffsetXEnd=e,this}minPointers(e){return this.config.minPointers=e,this}maxPointers(e){return this.config.maxPointers=e,this}minDistance(e){return this.config.minDist=e,this}minVelocity(e){return this.config.minVelocity=e,this}minVelocityX(e){return this.config.minVelocityX=e,this}minVelocityY(e){return this.config.minVelocityY=e,this}averageTouches(e){return this.config.avgTouches=e,this}enableTrackpadTwoFingerGesture(e){return this.config.enableTrackpadTwoFingerGesture=e,this}activateAfterLongPress(e){return this.config.activateAfterLongPress=e,this}onChange(e){return this.handlers.changeEventCalculator=c5,super.onChange(e)}}function d5(t,e){"worklet";let n;return e===void 0?n={scaleChange:t.scale}:n={scaleChange:t.scale/e.scale},{...t,...n}}class A5 extends Sa{constructor(){super(),this.handlerName="PinchGestureHandler"}onChange(e){return this.handlers.changeEventCalculator=d5,super.onChange(e)}}function f5(t,e){"worklet";let n;return e===void 0?n={rotationChange:t.rotation}:n={rotationChange:t.rotation-e.rotation},{...t,...n}}class h5 extends Sa{constructor(){super(),this.handlerName="RotationGestureHandler"}onChange(e){return this.handlers.changeEventCalculator=f5,super.onChange(e)}}function p5(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class g5 extends Bi{constructor(){super(),p5(this,"config",{}),this.handlerName="TapGestureHandler",this.shouldCancelWhenOutside(!0)}minPointers(e){return this.config.minPointers=e,this}numberOfTaps(e){return this.config.numberOfTaps=e,this}maxDistance(e){return this.config.maxDist=e,this}maxDuration(e){return this.config.maxDurationMs=e,this}maxDelay(e){return this.config.maxDelayMs=e,this}maxDeltaX(e){return this.config.maxDeltaX=e,this}maxDeltaY(e){return this.config.maxDeltaY=e,this}}function v5(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class m5 extends Bi{constructor(){super(),v5(this,"config",{}),this.handlerName="NativeViewGestureHandler"}shouldActivateOnStart(e){return this.config.shouldActivateOnStart=e,this}disallowInterruption(e){return this.config.disallowInterruption=e,this}}function C5(t,e){"worklet";return t}class E5 extends Sa{constructor(){super(),this.handlerName="ManualGestureHandler"}onChange(e){return this.handlers.changeEventCalculator=C5,super.onChange(e)}}const us={Tap:()=>new g5,Pan:()=>new u5,Pinch:()=>new A5,Rotation:()=>new h5,Fling:()=>new e5,LongPress:()=>new o5,ForceTouch:()=>new r5,Native:()=>new m5,Manual:()=>new E5,Hover:()=>new Xk,Race:(...t)=>new js(...t),Simultaneous(...t){return new i5(...t)},Exclusive(...t){return new a5(...t)}};function ff(){return ff=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ff.apply(this,arguments)}const Mh=_.forwardRef((t,e)=>_.createElement(pe,ff({ref:e,accessibilityRole:"button"},t)));function Hr(){return Hr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Hr.apply(this,arguments)}function bt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Kx=ba(Mh,{shouldCancelWhenOutside:!1,shouldActivateOnStart:!1});class $x extends _.Component{constructor(e){super(e),bt(this,"lastActive",void 0),bt(this,"longPressTimeout",void 0),bt(this,"longPressDetected",void 0),bt(this,"handleEvent",({nativeEvent:n})=>{const{state:r,oldState:i,pointerInside:a}=n,s=a&&r===V.ACTIVE;s!==this.lastActive&&this.props.onActiveStateChange&&this.props.onActiveStateChange(s),!this.longPressDetected&&i===V.ACTIVE&&r!==V.CANCELLED&&this.lastActive&&this.props.onPress&&this.props.onPress(a),!this.lastActive&&r===(ue.OS!=="android"?V.ACTIVE:V.BEGAN)&&a?(this.longPressDetected=!1,this.props.onLongPress&&(this.longPressTimeout=setTimeout(this.onLongPress,this.props.delayLongPress))):r===V.ACTIVE&&!a&&this.longPressTimeout!==void 0?(clearTimeout(this.longPressTimeout),this.longPressTimeout=void 0):this.longPressTimeout!==void 0&&(r===V.END||r===V.CANCELLED||r===V.FAILED)&&(clearTimeout(this.longPressTimeout),this.longPressTimeout=void 0),this.lastActive=s}),bt(this,"onLongPress",()=>{var n,r;this.longPressDetected=!0,(n=(r=this.props).onLongPress)===null||n===void 0||n.call(r)}),bt(this,"onHandlerStateChange",n=>{var r,i;(r=(i=this.props).onHandlerStateChange)===null||r===void 0||r.call(i,n),this.handleEvent(n)}),bt(this,"onGestureEvent",n=>{var r,i;(r=(i=this.props).onGestureEvent)===null||r===void 0||r.call(i,n),this.handleEvent(n)}),this.lastActive=!1,this.longPressDetected=!1}render(){const{rippleColor:e,style:n,...r}=this.props;return _.createElement(Kx,Hr({ref:this.props.innerRef,rippleColor:Of(e),style:[n,ue.OS==="ios"&&{cursor:void 0}]},r,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange}))}}bt($x,"defaultProps",{delayLongPress:600});const su=_.forwardRef((t,e)=>_.createElement($x,Hr({innerRef:e},t))),x5=Ae.createAnimatedComponent(su),y5=he.create({underlay:{position:"absolute",left:0,right:0,bottom:0,top:0}});class jx extends _.Component{constructor(e){super(e),bt(this,"opacity",void 0),bt(this,"onActiveStateChange",n=>{var r,i;ue.OS!=="android"&&this.opacity.setValue(n?this.props.activeOpacity:0),(r=(i=this.props).onActiveStateChange)===null||r===void 0||r.call(i,n)}),this.opacity=new Ae.Value(0)}render(){const{children:e,style:n,...r}=this.props,i=he.flatten(n??{});return _.createElement(su,Hr({},r,{ref:this.props.innerRef,style:i,onActiveStateChange:this.onActiveStateChange}),_.createElement(Ae.View,{style:[y5.underlay,{opacity:this.opacity,backgroundColor:this.props.underlayColor,borderRadius:i.borderRadius,borderTopLeftRadius:i.borderTopLeftRadius,borderTopRightRadius:i.borderTopRightRadius,borderBottomLeftRadius:i.borderBottomLeftRadius,borderBottomRightRadius:i.borderBottomRightRadius}]}),e)}}bt(jx,"defaultProps",{activeOpacity:.105,underlayColor:"black"});const I5=_.forwardRef((t,e)=>_.createElement(jx,Hr({innerRef:e},t)));class Qx extends _.Component{constructor(e){super(e),bt(this,"opacity",void 0),bt(this,"onActiveStateChange",n=>{var r,i;ue.OS!=="android"&&this.opacity.setValue(n?this.props.activeOpacity:1),(r=(i=this.props).onActiveStateChange)===null||r===void 0||r.call(i,n)}),this.opacity=new Ae.Value(1)}render(){const{children:e,style:n,innerRef:r,...i}=this.props;return _.createElement(x5,Hr({},i,{innerRef:r,onActiveStateChange:this.onActiveStateChange,style:[n,ue.OS==="ios"&&{opacity:this.opacity}]}),e)}}bt(Qx,"defaultProps",{activeOpacity:.3,borderless:!0});const w5=_.forwardRef((t,e)=>_.createElement(Qx,Hr({innerRef:e},t)));function xl(){return xl=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xl.apply(this,arguments)}function hn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Te={UNDETERMINED:0,BEGAN:1,MOVED_OUTSIDE:2};class Gi extends _.Component{constructor(...e){super(...e),hn(this,"pressInTimeout",void 0),hn(this,"pressOutTimeout",void 0),hn(this,"longPressTimeout",void 0),hn(this,"longPressDetected",!1),hn(this,"pointerInside",!0),hn(this,"STATE",Te.UNDETERMINED),hn(this,"onGestureEvent",({nativeEvent:{pointerInside:n}})=>{this.pointerInside!==n&&(n?this.onMoveIn():this.onMoveOut()),this.pointerInside=n}),hn(this,"onHandlerStateChange",({nativeEvent:n})=>{const{state:r}=n;if(r===V.CANCELLED||r===V.FAILED)this.moveToState(Te.UNDETERMINED);else if(r===(ue.OS!=="android"?V.ACTIVE:V.BEGAN)&&this.STATE===Te.UNDETERMINED)this.handlePressIn();else if(r===V.END){const s=!this.longPressDetected&&this.STATE!==Te.MOVED_OUTSIDE&&this.pressOutTimeout===null;if(this.handleGoToUndetermined(),s){var i,a;(i=(a=this.props).onPress)===null||i===void 0||i.call(a)}}}),hn(this,"onLongPressDetected",()=>{var n,r;this.longPressDetected=!0,(n=(r=this.props).onLongPress)===null||n===void 0||n.call(r)})}handlePressIn(){if(this.props.delayPressIn?this.pressInTimeout=setTimeout(()=>{this.moveToState(Te.BEGAN),this.pressInTimeout=null},this.props.delayPressIn):this.moveToState(Te.BEGAN),this.props.onLongPress){const e=(this.props.delayPressIn||0)+(this.props.delayLongPress||0);this.longPressTimeout=setTimeout(this.onLongPressDetected,e)}}handleMoveOutside(){this.props.delayPressOut?this.pressOutTimeout=this.pressOutTimeout||setTimeout(()=>{this.moveToState(Te.MOVED_OUTSIDE),this.pressOutTimeout=null},this.props.delayPressOut):this.moveToState(Te.MOVED_OUTSIDE)}handleGoToUndetermined(){clearTimeout(this.pressOutTimeout),this.props.delayPressOut?this.pressOutTimeout=setTimeout(()=>{this.STATE===Te.UNDETERMINED&&this.moveToState(Te.BEGAN),this.moveToState(Te.UNDETERMINED),this.pressOutTimeout=null},this.props.delayPressOut):(this.STATE===Te.UNDETERMINED&&this.moveToState(Te.BEGAN),this.moveToState(Te.UNDETERMINED))}componentDidMount(){this.reset()}reset(){this.longPressDetected=!1,this.pointerInside=!0,clearTimeout(this.pressInTimeout),clearTimeout(this.pressOutTimeout),clearTimeout(this.longPressTimeout),this.pressOutTimeout=null,this.longPressTimeout=null,this.pressInTimeout=null}moveToState(e){var n,r;if(e!==this.STATE){if(e===Te.BEGAN){var i,a;(i=(a=this.props).onPressIn)===null||i===void 0||i.call(a)}else if(e===Te.MOVED_OUTSIDE){var s,o;(s=(o=this.props).onPressOut)===null||s===void 0||s.call(o)}else if(e===Te.UNDETERMINED&&(this.reset(),this.STATE===Te.BEGAN)){var l,c;(l=(c=this.props).onPressOut)===null||l===void 0||l.call(c)}(n=(r=this.props).onStateChange)===null||n===void 0||n.call(r,this.STATE,e),this.STATE=e}}componentWillUnmount(){this.reset()}onMoveIn(){this.STATE===Te.MOVED_OUTSIDE&&this.moveToState(Te.BEGAN)}onMoveOut(){clearTimeout(this.longPressTimeout),this.longPressTimeout=null,this.STATE===Te.BEGAN&&this.handleMoveOutside()}render(){var e,n;const r=(e=typeof this.props.hitSlop=="number"?{top:this.props.hitSlop,left:this.props.hitSlop,bottom:this.props.hitSlop,right:this.props.hitSlop}:this.props.hitSlop)!==null&&e!==void 0?e:void 0,i={accessible:this.props.accessible!==!1,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 _.createElement(su,xl({style:this.props.containerStyle,onHandlerStateChange:this.props.disabled?void 0:this.onHandlerStateChange,onGestureEvent:this.onGestureEvent,hitSlop:r,userSelect:this.props.userSelect,shouldActivateOnStart:this.props.shouldActivateOnStart,disallowInterruption:this.props.disallowInterruption,testID:this.props.testID,touchSoundDisabled:(n=this.props.touchSoundDisabled)!==null&&n!==void 0?n:!1,enabled:!this.props.disabled},this.props.extraButtonProps),_.createElement(Ae.View,xl({},i,{style:this.props.style}),this.props.children))}}hn(Gi,"defaultProps",{delayLongPress:600,extraButtonProps:{rippleColor:"transparent",exclusive:!0}});function hf(){return hf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},hf.apply(this,arguments)}const Ph=_.forwardRef((t,e)=>_.createElement(Gi,hf({ref:e},t)));Ph.defaultProps=Gi.defaultProps;function pf(){return pf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},pf.apply(this,arguments)}function ds(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Zx extends _.Component{constructor(...e){super(...e),ds(this,"getChildStyleOpacityWithDefault",()=>{const n=he.flatten(this.props.style)||{};return n.opacity==null?1:n.opacity.valueOf()}),ds(this,"opacity",new Ae.Value(this.getChildStyleOpacityWithDefault())),ds(this,"setOpacityTo",(n,r)=>{var i;Ae.timing(this.opacity,{toValue:n,duration:r,easing:$h.inOut($h.quad),useNativeDriver:(i=this.props.useNativeAnimations)!==null&&i!==void 0?i:!0}).start()}),ds(this,"onStateChange",(n,r)=>{r===Te.BEGAN?this.setOpacityTo(this.props.activeOpacity,0):(r===Te.UNDETERMINED||r===Te.MOVED_OUTSIDE)&&this.setOpacityTo(this.getChildStyleOpacityWithDefault(),150)})}render(){const{style:e={},...n}=this.props;return _.createElement(Gi,pf({},n,{style:[e,{opacity:this.opacity}],onStateChange:this.onStateChange}),this.props.children?this.props.children:_.createElement(pe,null))}}ds(Zx,"defaultProps",{...Gi.defaultProps,activeOpacity:.2});function gf(){return gf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},gf.apply(this,arguments)}function As(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Jx extends _.Component{constructor(e){super(e),As(this,"showUnderlay",()=>{var n,r;this.hasPressHandler()&&(this.setState({extraChildStyle:{opacity:this.props.activeOpacity},extraUnderlayStyle:{backgroundColor:this.props.underlayColor}}),(n=(r=this.props).onShowUnderlay)===null||n===void 0||n.call(r))}),As(this,"hasPressHandler",()=>this.props.onPress||this.props.onPressIn||this.props.onPressOut||this.props.onLongPress),As(this,"hideUnderlay",()=>{var n,r;this.setState({extraChildStyle:null,extraUnderlayStyle:null}),(n=(r=this.props).onHideUnderlay)===null||n===void 0||n.call(r)}),As(this,"onStateChange",(n,r)=>{r===Te.BEGAN?this.showUnderlay():(r===Te.UNDETERMINED||r===Te.MOVED_OUTSIDE)&&this.hideUnderlay()}),this.state={extraChildStyle:null,extraUnderlayStyle:null}}renderChildren(){if(!this.props.children)return _.createElement(pe,null);const e=_.Children.only(this.props.children);return _.cloneElement(e,{style:he.compose(e.props.style,this.state.extraChildStyle)})}render(){const{style:e={},...n}=this.props,{extraUnderlayStyle:r}=this.state;return _.createElement(Gi,gf({},n,{style:[e,r],onStateChange:this.onStateChange}),this.renderChildren())}}As(Jx,"defaultProps",{...Gi.defaultProps,activeOpacity:.85,delayPressOut:100,underlayColor:"black"});function vf(){return vf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},vf.apply(this,arguments)}const ey=ba(ya,{disallowInterruption:!1}),b5=ba(b1,{shouldCancelWhenOutside:!1,shouldActivateOnStart:!0,disallowInterruption:!0}),S5=ba(Nf),_5=()=>(console.warn("DrawerLayoutAndroid is not supported on web!"),_.createElement(pe,null)),D5=ba(pe),T5=_.forwardRef((t,e)=>_.createElement(Lm,vf({ref:e},t,{renderScrollComponent:n=>_.createElement(ey,n)})));function mf(){return mf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},mf.apply(this,arguments)}function Qe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const iv=.05;class ty extends _.Component{constructor(e){super(e),Qe(this,"onGestureEvent",void 0),Qe(this,"transX",void 0),Qe(this,"showLeftAction",void 0),Qe(this,"leftActionTranslate",void 0),Qe(this,"showRightAction",void 0),Qe(this,"rightActionTranslate",void 0),Qe(this,"updateAnimatedEvent",(r,i)=>{const{friction:a,overshootFriction:s}=r,{dragX:o,rowTranslation:l,leftWidth:c=0,rowWidth:u=0}=i,{rightOffset:A=u}=i,d=Math.max(0,u-A),{overshootLeft:f=c>0,overshootRight:p=d>0}=r,h=Ae.add(l,o.interpolate({inputRange:[0,a],outputRange:[0,1]})).interpolate({inputRange:[-d-1,-d,c,c+1],outputRange:[-d-(p?1/s:0),-d,c,c+(f?1/s:0)]});this.transX=h,this.showLeftAction=c>0?h.interpolate({inputRange:[-1,0,c],outputRange:[0,0,1]}):new Ae.Value(0),this.leftActionTranslate=this.showLeftAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:"clamp"}),this.showRightAction=d>0?h.interpolate({inputRange:[-d,0,1],outputRange:[1,0,0]}):new Ae.Value(0),this.rightActionTranslate=this.showRightAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:"clamp"})}),Qe(this,"onTapHandlerStateChange",({nativeEvent:r})=>{r.oldState===V.ACTIVE&&this.close()}),Qe(this,"onHandlerStateChange",r=>{if(r.nativeEvent.oldState===V.ACTIVE&&this.handleRelease(r),r.nativeEvent.state===V.ACTIVE){const{velocityX:l,translationX:c}=r.nativeEvent,{rowState:u}=this.state,{friction:A}=this.props,d=(c+iv*l)/A,f=u===-1?"right":u===1||d>0?"left":"right";if(u===0){var i,a;(i=(a=this.props).onSwipeableOpenStartDrag)===null||i===void 0||i.call(a,f)}else{var s,o;(s=(o=this.props).onSwipeableCloseStartDrag)===null||s===void 0||s.call(o,f)}}}),Qe(this,"handleRelease",r=>{const{velocityX:i,translationX:a}=r.nativeEvent,{leftWidth:s=0,rowWidth:o=0,rowState:l}=this.state,{rightOffset:c=o}=this.state,u=o-c,{friction:A,leftThreshold:d=s/2,rightThreshold:f=u/2}=this.props,p=this.currentOffset()+a/A,h=(a+iv*i)/A;let g=0;l===0?h>d?g=s:h<-f&&(g=-u):l===1?h>-d&&(g=s):h<f&&(g=-u),this.animateRow(p,g,i/A)}),Qe(this,"animateRow",(r,i,a)=>{const{dragX:s,rowTranslation:o}=this.state;if(s.setValue(0),o.setValue(r),this.setState({rowState:Math.sign(i)}),Ae.spring(o,{restSpeedThreshold:1.7,restDisplacementThreshold:.4,velocity:a,bounciness:0,toValue:i,useNativeDriver:this.props.useNativeAnimations,...this.props.animationOptions}).start(({finished:m})=>{if(m)if(i>0){var v,C,y,x;(v=(C=this.props).onSwipeableLeftOpen)===null||v===void 0||v.call(C),(y=(x=this.props).onSwipeableOpen)===null||y===void 0||y.call(x,"left",this)}else if(i<0){var w,S,D,I;(w=(S=this.props).onSwipeableRightOpen)===null||w===void 0||w.call(S),(D=(I=this.props).onSwipeableOpen)===null||D===void 0||D.call(I,"right",this)}else{var b,O;const T=r>0?"left":"right";(b=(O=this.props).onSwipeableClose)===null||b===void 0||b.call(O,T,this)}}),i>0){var l,c,u,A;(l=(c=this.props).onSwipeableLeftWillOpen)===null||l===void 0||l.call(c),(u=(A=this.props).onSwipeableWillOpen)===null||u===void 0||u.call(A,"left")}else if(i<0){var d,f,p,h;(d=(f=this.props).onSwipeableRightWillOpen)===null||d===void 0||d.call(f),(p=(h=this.props).onSwipeableWillOpen)===null||p===void 0||p.call(h,"right")}else{var g,E;const m=r>0?"left":"right";(g=(E=this.props).onSwipeableWillClose)===null||g===void 0||g.call(E,m)}}),Qe(this,"onRowLayout",({nativeEvent:r})=>{this.setState({rowWidth:r.layout.width})}),Qe(this,"currentOffset",()=>{const{leftWidth:r=0,rowWidth:i=0,rowState:a}=this.state,{rightOffset:s=i}=this.state,o=i-s;return a===1?r:a===-1?-o:0}),Qe(this,"close",()=>{this.animateRow(this.currentOffset(),0)}),Qe(this,"openLeft",()=>{const{leftWidth:r=0}=this.state;this.animateRow(this.currentOffset(),r)}),Qe(this,"openRight",()=>{const{rowWidth:r=0}=this.state,{rightOffset:i=r}=this.state,a=r-i;this.animateRow(this.currentOffset(),-a)}),Qe(this,"reset",()=>{const{dragX:r,rowTranslation:i}=this.state;r.setValue(0),i.setValue(0),this.setState({rowState:0})});const n=new Ae.Value(0);this.state={dragX:n,rowTranslation:new Ae.Value(0),rowState:0,leftWidth:void 0,rightOffset:void 0,rowWidth:void 0},this.updateAnimatedEvent(e,this.state),this.onGestureEvent=Ae.event([{nativeEvent:{translationX:n}}],{useNativeDriver:e.useNativeAnimations})}shouldComponentUpdate(e,n){return(this.props.friction!==e.friction||this.props.overshootLeft!==e.overshootLeft||this.props.overshootRight!==e.overshootRight||this.props.overshootFriction!==e.overshootFriction||this.state.leftWidth!==n.leftWidth||this.state.rightOffset!==n.rightOffset||this.state.rowWidth!==n.rowWidth)&&this.updateAnimatedEvent(e,n),!0}render(){const{rowState:e}=this.state,{children:n,renderLeftActions:r,renderRightActions:i,dragOffsetFromLeftEdge:a=10,dragOffsetFromRightEdge:s=10}=this.props,o=r&&_.createElement(Ae.View,{style:[ed.leftActions,{transform:[{translateX:this.leftActionTranslate}]}]},r(this.showLeftAction,this.transX,this),_.createElement(pe,{onLayout:({nativeEvent:c})=>this.setState({leftWidth:c.layout.x})})),l=i&&_.createElement(Ae.View,{style:[ed.rightActions,{transform:[{translateX:this.rightActionTranslate}]}]},i(this.showRightAction,this.transX,this),_.createElement(pe,{onLayout:({nativeEvent:c})=>this.setState({rightOffset:c.layout.x})}));return _.createElement(kh,mf({activeOffsetX:[-s,a],touchAction:"pan-y"},this.props,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange}),_.createElement(Ae.View,{onLayout:this.onRowLayout,style:[ed.container,this.props.containerStyle]},o,l,_.createElement(Oh,{enabled:e!==0,touchAction:"pan-y",onHandlerStateChange:this.onTapHandlerStateChange},_.createElement(Ae.View,{pointerEvents:e===0?"auto":"box-only",style:[{transform:[{translateX:this.transX}]},this.props.childrenContainerStyle]},n))))}}Qe(ty,"defaultProps",{friction:1,overshootFriction:1,useNativeAnimations:!0});const ed=he.create({container:{overflow:"hidden"},leftActions:{...he.absoluteFillObject,flexDirection:zd.isRTL?"row-reverse":"row"},rightActions:{...he.absoluteFillObject,flexDirection:zd.isRTL?"row":"row-reverse"}}),av=t=>({left:t,right:t,top:t,bottom:t}),O5=(t,e)=>{var n,r,i,a,s,o,l,c;return{left:((n=t.left)!==null&&n!==void 0?n:0)+((r=e.left)!==null&&r!==void 0?r:0),right:((i=t.right)!==null&&i!==void 0?i:0)+((a=e.right)!==null&&a!==void 0?a:0),top:((s=t.top)!==null&&s!==void 0?s:0)+((o=e.top)!==null&&o!==void 0?o:0),bottom:((l=t.bottom)!==null&&l!==void 0?l:0)+((c=e.bottom)!==null&&c!==void 0?c:0)}},sv=(t,e,n)=>({identifier:t.id,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:n,timestamp:e,touches:[],changedTouches:[]}),k5=(t,e,n)=>({identifier:t.handlerTag,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:n,timestamp:e,touches:[],changedTouches:[]}),M5=(t,e,n)=>{var r,i,a,s,o,l,c,u;return((r=n==null?void 0:n.x)!==null&&r!==void 0?r:0)<((i=e.right)!==null&&i!==void 0?i:0)+t.width&&((a=n==null?void 0:n.y)!==null&&a!==void 0?a:0)<((s=e.bottom)!==null&&s!==void 0?s:0)+t.height&&((o=n==null?void 0:n.x)!==null&&o!==void 0?o:0)>-((l=e.left)!==null&&l!==void 0?l:0)&&((c=n==null?void 0:n.y)!==null&&c!==void 0?c:0)>-((u=e.top)!==null&&u!==void 0?u:0)},xo=t=>{const e=Date.now(),n=0,r=k5(t,e,n);return{nativeEvent:{touches:[r],changedTouches:[r],identifier:r.identifier,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:n,timestamp:e,force:void 0}}},jr=t=>{var e,n,r,i,a,s,o,l;const c=Date.now(),u=0,A=t.allTouches.map(f=>sv(f,c,u)),d=t.changedTouches.map(f=>sv(f,c,u));return{nativeEvent:{touches:A,changedTouches:d,identifier:t.handlerTag,locationX:(e=(n=t.allTouches.at(0))===null||n===void 0?void 0:n.x)!==null&&e!==void 0?e:-1,locationY:(r=(i=t.allTouches.at(0))===null||i===void 0?void 0:i.y)!==null&&r!==void 0?r:-1,pageX:(a=(s=t.allTouches.at(0))===null||s===void 0?void 0:s.absoluteX)!==null&&a!==void 0?a:-1,pageY:(o=(l=t.allTouches.at(0))===null||l===void 0?void 0:l.absoluteY)!==null&&o!==void 0?o:-1,target:u,timestamp:c,force:void 0}}};function Cf(){return Cf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Cf.apply(this,arguments)}const P5=500;function F5(t){var e,n;const{testOnly_pressed:r,hitSlop:i,pressRetentionOffset:a,delayHoverIn:s,onHoverIn:o,delayHoverOut:l,onHoverOut:c,delayLongPress:u,unstable_pressDelay:A,onPress:d,onPressIn:f,onPressOut:p,onLongPress:h,style:g,children:E,android_disableSound:m,android_ripple:v,disabled:C,...y}=t,[x,w]=_.useState(r??!1),S=_.useRef(null),D=_.useRef(!0),I=_.useRef(!1),b=_.useRef(!1),O=_.useMemo(()=>typeof i=="number"?av(i):i??{},[i]),T=_.useMemo(()=>typeof a=="number"?av(a):a??{},[a]),M=_.useRef(null),P=_.useRef(null),R=_.useMemo(()=>us.Hover().manualActivation(!0).cancelsTouchesInView(!1).onBegin(ne=>{if(P.current&&clearTimeout(P.current),s){M.current=setTimeout(()=>o==null?void 0:o(xo(ne)),s);return}o==null||o(xo(ne))}).onFinalize(ne=>{if(M.current&&clearTimeout(M.current),l){P.current=setTimeout(()=>c==null?void 0:c(xo(ne)),l);return}c==null||c(xo(ne))}),[s,l,o,c]),W=_.useRef(null),N=_.useRef(!1),U=_.useRef(null),Y=_.useCallback(ne=>{H.current&&(U.current=ne),N.current&&(U.current=null,f==null||f(ne),D.current=!0,W.current=null,w(!0))},[f]),G=_.useCallback(ne=>{!I.current||ne.nativeEvent.touches.length>ne.nativeEvent.changedTouches.length||(A&&W.current!==null&&(clearTimeout(W.current),Y(ne)),U.current&&(f==null||f(U.current),U.current=null),p==null||p(ne),D.current&&(d==null||d(ne)),z.current&&(clearTimeout(z.current),z.current=null),N.current=!1,I.current=!1,D.current=!0,w(!1))},[d,f,p,Y,A]),H=_.useRef(!1),L=_.useRef(null),B=_.useRef(!1),X=_.useCallback(ne=>{N.current&&(I.current&&(h==null||h(jr(ne)),D.current=!1),z.current&&(clearTimeout(z.current),z.current=null))},[h]),z=_.useRef(null),q=(u??P5)+(A??0),Q=_.useMemo(()=>us.LongPress().minDuration(Sg).maxDistance(Sg).cancelsTouchesInView(!1).onTouchesDown(ne=>{var Be;H.current=!0,(Be=S.current)===null||Be===void 0||Be.measure((ut,me,de,dt)=>{var At;if(!M5({width:de,height:dt},O,ne.changedTouches.at(-1))||I.current||B.current){B.current=!1,L.current=null,H.current=!1;return}I.current=!0,z.current===null&&(z.current=setTimeout(()=>X(ne),q)),A?W.current=setTimeout(()=>{Y(jr(ne))},A):Y(jr(ne)),(At=L.current)===null||At===void 0||At.call(L),L.current=null,H.current=!1})}).onTouchesUp(ne=>{if(H.current){L.current=()=>G(jr(ne));return}U.current!==null&&(b.current=!0),G(jr(ne))}).onTouchesCancelled(ne=>{if(D.current=!1,H.current){B.current=!0,L.current=()=>G(jr(ne));return}!I.current||ne.allTouches.length>ne.changedTouches.length||G(jr(ne))}),[X,q,O,Y,G,A]),ae=_.useMemo(()=>us.Native().onBegin(()=>{(ue.OS==="android"||ue.OS==="macos")&&(N.current=!0)}).onStart(()=>{if(ue.OS==="web"&&(N.current=!0),ue.OS==="ios"){if(U.current){N.current=!0,I.current?(Y(U.current),U.current=null):(G(U.current),N.current=!1);return}if(I.current){N.current=!0;return}if(b.current){b.current=!1;return}N.current=!0}}),[Y,G]),te=O5(O,T),re=C!==!0,Z=[Q,R,ae];for(const ne of Z)ne.enabled(re),ne.runOnJS(!0),ne.hitSlop(te),ne.shouldCancelWhenOutside(ue.OS!=="web");ae.hitSlop(O);const ie=us.Simultaneous(...Z),we=v?void 0:"transparent",be=ue.OS==="web"?{cursor:"pointer"}:{},Se=typeof g=="function"?g({pressed:x}):g,ye=typeof E=="function"?E({pressed:x}):E;return _t.createElement(qx,{gesture:ie},_t.createElement(Mh,Cf({},y,{ref:S,hitSlop:te,enabled:re,touchSoundDisabled:m??void 0,rippleColor:Of((e=v==null?void 0:v.color)!==null&&e!==void 0?e:we),rippleRadius:(n=v==null?void 0:v.radius)!==null&&n!==void 0?n:void 0,style:[be,Se]}),ye,null))}function Xe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const R5=.05,Ua="Idle",td="Dragging",ov="Settling";class Fh extends _.Component{constructor(e){super(e),Xe(this,"openValue",void 0),Xe(this,"onGestureEvent",void 0),Xe(this,"accessibilityIsModalView",_.createRef()),Xe(this,"pointerEventsView",_.createRef()),Xe(this,"panGestureHandler",_.createRef()),Xe(this,"drawerShown",!1),Xe(this,"updateAnimatedEvent",(a,s)=>{const{drawerPosition:o,drawerWidth:l,drawerType:c}=a,{dragX:u,touchX:A,drawerTranslation:d,containerWidth:f}=s;let p=u,h=A;o!=="left"?(p=Ae.multiply(new Ae.Value(-1),u),h=Ae.add(new Ae.Value(f),Ae.multiply(new Ae.Value(-1),A)),A.setValue(f)):A.setValue(0);let g=p;if(c==="front"){const v=Ae.add(h,Ae.multiply(new Ae.Value(-1),p)).interpolate({inputRange:[l-1,l,l+1],outputRange:[0,0,1]});g=Ae.add(p,v)}this.openValue=Ae.add(g,d).interpolate({inputRange:[0,l],outputRange:[0,1],extrapolate:"clamp"});const E={useNativeDriver:a.useNativeAnimations};this.props.onDrawerSlide&&(E.listener=m=>{var v,C;const x=Math.floor(Math.abs(m.nativeEvent.translationX))/this.state.containerWidth;(v=(C=this.props).onDrawerSlide)===null||v===void 0||v.call(C,x)}),this.onGestureEvent=Ae.event([{nativeEvent:{translationX:u,x:A}}],E)}),Xe(this,"handleContainerLayout",({nativeEvent:a})=>{this.setState({containerWidth:a.layout.width})}),Xe(this,"emitStateChanged",(a,s)=>{var o,l;(o=(l=this.props).onDrawerStateChanged)===null||o===void 0||o.call(l,a,s)}),Xe(this,"openingHandlerStateChange",({nativeEvent:a})=>{a.oldState===V.ACTIVE?this.handleRelease({nativeEvent:a}):a.state===V.ACTIVE&&(this.emitStateChanged(td,!1),this.setState({drawerState:td}),this.props.keyboardDismissMode==="on-drag"&&ua.dismiss(),this.props.hideStatusBar&&Kh.setHidden(!0,this.props.statusBarAnimation||"slide"))}),Xe(this,"onTapHandlerStateChange",({nativeEvent:a})=>{this.drawerShown&&a.oldState===V.ACTIVE&&this.props.drawerLockMode!=="locked-open"&&this.closeDrawer()}),Xe(this,"handleRelease",({nativeEvent:a})=>{const{drawerWidth:s,drawerPosition:o,drawerType:l}=this.props,{containerWidth:c}=this.state;let{translationX:u,velocityX:A,x:d}=a;o!=="left"&&(u=-u,d=c-d,A=-A);const f=d-u;let p=0;l==="front"&&(p=f>s?f-s:0);const h=u+p+(this.drawerShown?s:0);h+R5*A>s/2?this.animateDrawer(h,s,A):this.animateDrawer(h,0,A)}),Xe(this,"updateShowing",a=>{var s,o,l;this.drawerShown=a,(s=this.accessibilityIsModalView.current)===null||s===void 0||s.setNativeProps({accessibilityViewIsModal:a}),(o=this.pointerEventsView.current)===null||o===void 0||o.setNativeProps({pointerEvents:a?"auto":"none"});const{drawerPosition:c,minSwipeDistance:u,edgeWidth:A}=this.props,d=c==="left",f=(d?1:-1)*(this.drawerShown?-1:1),p=d?{left:0,width:a?void 0:A}:{right:0,width:a?void 0:A};(l=this.panGestureHandler.current)===null||l===void 0||l.setNativeProps({hitSlop:p,activeOffsetX:f*u})}),Xe(this,"animateDrawer",(a,s,o,l)=>{if(this.state.dragX.setValue(0),this.state.touchX.setValue(this.props.drawerPosition==="left"?0:this.state.containerWidth),a!=null){let u=a;this.props.useNativeAnimations&&(a<s&&o>0?u=Math.min(a+o/60,s):a>s&&o<0&&(u=Math.max(a+o/60,s))),this.state.drawerTranslation.setValue(u)}const c=s!==0;this.updateShowing(c),this.emitStateChanged(ov,c),this.setState({drawerState:ov}),this.props.hideStatusBar&&Kh.setHidden(c,this.props.statusBarAnimation||"slide"),Ae.spring(this.state.drawerTranslation,{velocity:o,bounciness:0,toValue:s,useNativeDriver:this.props.useNativeAnimations,speed:l??void 0}).start(({finished:u})=>{if(u)if(this.emitStateChanged(Ua,c),this.setState({drawerOpened:c}),this.state.drawerState!==td&&this.setState({drawerState:Ua}),c){var A,d;(A=(d=this.props).onDrawerOpen)===null||A===void 0||A.call(d)}else{var f,p;(f=(p=this.props).onDrawerClose)===null||f===void 0||f.call(p)}})}),Xe(this,"openDrawer",(a={})=>{this.animateDrawer(void 0,this.props.drawerWidth,a.velocity?a.velocity:0,a.speed),this.forceUpdate()}),Xe(this,"closeDrawer",(a={})=>{this.animateDrawer(void 0,0,a.velocity?a.velocity:0,a.speed),this.forceUpdate()}),Xe(this,"renderOverlay",()=>{Zo(this.openValue,"should be set");let a;this.state.drawerState!==Ua?a=this.openValue:a=this.state.drawerOpened?1:0;const s={opacity:a,backgroundColor:this.props.overlayColor};return _.createElement(Oh,{onHandlerStateChange:this.onTapHandlerStateChange},_.createElement(Ae.View,{pointerEvents:this.drawerShown?"auto":"none",ref:this.pointerEventsView,style:[Wa.overlay,s]}))}),Xe(this,"renderDrawer",()=>{const{drawerBackgroundColor:a,drawerWidth:s,drawerPosition:o,drawerType:l,drawerContainerStyle:c,contentContainerStyle:u}=this.props,A=o==="left",d=l!=="back",f=l!=="front",p=zd.isRTL?A:!A,h={backgroundColor:a,width:s},g=this.openValue;Zo(g,"should be set");let E;f&&(E={transform:[{translateX:g.interpolate({inputRange:[0,1],outputRange:A?[0,s]:[0,-s],extrapolate:"clamp"})}]});let m=0;if(d){const C=A?-s:s;this.state.drawerState!==Ua?m=g.interpolate({inputRange:[0,1],outputRange:[C,0],extrapolate:"clamp"}):m=this.state.drawerOpened?0:C}const v={transform:[{translateX:m}],flexDirection:p?"row-reverse":"row"};return _.createElement(Ae.View,{style:Wa.main,onLayout:this.handleContainerLayout},_.createElement(Ae.View,{style:[l==="front"?Wa.containerOnBack:Wa.containerInFront,E,u],importantForAccessibility:this.drawerShown?"no-hide-descendants":"yes"},typeof this.props.children=="function"?this.props.children(this.openValue):this.props.children,this.renderOverlay()),_.createElement(Ae.View,{pointerEvents:"box-none",ref:this.accessibilityIsModalView,accessibilityViewIsModal:this.drawerShown,style:[Wa.drawerContainer,v,c]},_.createElement(pe,{style:h},this.props.renderNavigationView(this.openValue))))}),Xe(this,"setPanGestureRef",a=>{var s,o;this.panGestureHandler.current=a,(s=(o=this.props).onGestureRef)===null||s===void 0||s.call(o,a)});const n=new Ae.Value(0),r=new Ae.Value(0),i=new Ae.Value(0);this.state={dragX:n,touchX:r,drawerTranslation:i,containerWidth:0,drawerState:Ua,drawerOpened:!1},this.updateAnimatedEvent(e,this.state)}shouldComponentUpdate(e,n){return(this.props.drawerPosition!==e.drawerPosition||this.props.drawerWidth!==e.drawerWidth||this.props.drawerType!==e.drawerType||this.state.containerWidth!==n.containerWidth)&&this.updateAnimatedEvent(e,n),!0}render(){const{drawerPosition:e,drawerLockMode:n,edgeWidth:r,minSwipeDistance:i}=this.props,a=e==="left",s=(a?1:-1)*(this.drawerShown?-1:1),o=a?{left:0,width:this.drawerShown?void 0:r}:{right:0,width:this.drawerShown?void 0:r};return _.createElement(kh,{userSelect:this.props.userSelect,activeCursor:this.props.activeCursor,mouseButton:this.props.mouseButton,enableContextMenu:this.props.enableContextMenu,ref:this.setPanGestureRef,hitSlop:o,activeOffsetX:s*i,failOffsetY:[-15,15],onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.openingHandlerStateChange,enableTrackpadTwoFingerGesture:this.props.enableTrackpadTwoFingerGesture,enabled:n!=="locked-closed"&&n!=="locked-open"},this.renderDrawer())}}Xe(Fh,"defaultProps",{drawerWidth:200,drawerPosition:"left",useNativeAnimations:!0,drawerType:"front",edgeWidth:20,minSwipeDistance:3,overlayColor:"rgba(0, 0, 0, 0.7)",drawerLockMode:"unlocked",enableTrackpadTwoFingerGesture:!1});Xe(Fh,"positions",{Left:"left",Right:"right"});const Wa=he.create({drawerContainer:{...he.absoluteFillObject,zIndex:1001,flexDirection:"row"},containerInFront:{...he.absoluteFillObject,zIndex:1002},containerOnBack:{...he.absoluteFillObject},main:{flex:1,zIndex:0,overflow:"hidden"},overlay:{...he.absoluteFillObject,zIndex:1e3}});ok();const N5=Object.freeze(Object.defineProperty({__proto__:null,BaseButton:su,BorderlessButton:w5,Directions:si,DrawerLayout:Fh,DrawerLayoutAndroid:_5,FlatList:T5,FlingGestureHandler:Mk,ForceTouchGestureHandler:Px,Gesture:us,GestureDetector:qx,GestureHandlerRootView:_x,get HoverEffect(){return df},LongPressGestureHandler:Ik,get MouseButton(){return bn},NativeViewGestureHandler:Vx,PanGestureHandler:kh,PinchGestureHandler:Dk,get PointerType(){return xt},Pressable:F5,PureNativeButton:Mh,RawButton:Kx,RectButton:I5,RefreshControl:D5,RotationGestureHandler:Ok,ScrollView:ey,State:V,Swipeable:ty,Switch:b5,TapGestureHandler:Oh,TextInput:S5,TouchableHighlight:Jx,TouchableNativeFeedback:s1,TouchableOpacity:Zx,TouchableWithoutFeedback:Ph,createNativeWrapper:ba,enableExperimentalWebImplementation:m8,enableLegacyWebImplementation:C8,gestureHandlerRootHOC:ck},Symbol.toStringTag,{value:"Module"})),ny=Gs(N5);var yo={},lv;function B5(){if(lv)return yo;lv=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.useAutoPlay=r;var t=n(_);function e(i){if(typeof WeakMap!="function")return null;var a=new WeakMap,s=new WeakMap;return(e=function(l){return l?s:a})(i)}function n(i,a){if(i&&i.__esModule)return i;if(i===null||typeof i!="object"&&typeof i!="function")return{default:i};var s=e(a);if(s&&s.has(i))return s.get(i);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in i)if(c!=="default"&&Object.prototype.hasOwnProperty.call(i,c)){var u=l?Object.getOwnPropertyDescriptor(i,c):null;u&&(u.get||u.set)?Object.defineProperty(o,c,u):o[c]=i[c]}return o.default=i,s&&s.set(i,o),o}function r(i){var a=i.autoPlay,s=a===void 0?!1:a,o=i.autoPlayReverse,l=o===void 0?!1:o,c=i.autoPlayInterval,u=i.carouselController,A=u.prev,d=u.next,f=t.useRef(),p=t.useRef(!s),h=t.useCallback(function(){p.current||(f.current&&clearTimeout(f.current),f.current=setTimeout(function(){l?A({onFinished:h}):d({onFinished:h})},c))},[l,c,A,d]),g=t.useCallback(function(){s&&(f.current&&clearTimeout(f.current),p.current=!0)},[s]),E=t.useCallback(function(){s&&(p.current=!1,h())},[h,s]);return t.useEffect(function(){return s?E():g(),g},[g,E,s]),{pause:g,start:E}}return yo}var Io={},yr={},cv;function Rh(){if(cv)return yr;cv=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.Easing=yr.DATA_LENGTH=void 0;var t=Tt,e;yr.DATA_LENGTH=e,function(r){r[r.SINGLE_ITEM=1]="SINGLE_ITEM",r[r.DOUBLE_ITEM=2]="DOUBLE_ITEM"}(e||(yr.DATA_LENGTH=e={}));var n={easeOutQuart:t.Easing.bezier(.25,1,.5,1)};return yr.Easing=n,yr}var Wn={},uv;function ou(){if(uv)return Wn;uv=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.computedFillDataWithAutoFillData=u,Wn.computedOffsetXValueWithAutoFillData=void 0,Wn.computedRealIndexWithAutoFillData=c,Wn.convertToSharedIndex=void 0;var t=Rh(),e=t.DATA_LENGTH.SINGLE_ITEM,n=t.DATA_LENGTH.DOUBLE_ITEM,r={code:`function isAutoFillData(params) { return !!params.loop && !!params.autoFillData; }`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/computedWithAutoFillData.ts",sourceMap:'{"version":3,"names":["isAutoFillData","params","loop","autoFillData"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/computedWithAutoFillData.ts"],"mappings":"AAIA,SAAAA,cAASA,CAAeC,MAAA,EAAgD;EAEtE,OAAO,CAAC,CAACA,MAAM,CAACC,IAAI,IAAI,CAAC,CAACD,MAAM,CAACE,YAAY;AAC/C"}'},i=function(){var A=[new K.Error,1,-27],d=function(p){return!!p.loop&&!!p.autoFillData};return d._closure={},d.__initData=r,d.__workletHash=7389651216713,d.__stackDetails=A,d.__version="3.3.0",d}(),a={code:`function convertToSharedIndex(params) { const { @@ -98,7 +98,7 @@ Supported values: ["extend", "clamp", "identity", Extrapolatation.CLAMP, Extrapo } } return value; -}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/computedWithAutoFillData.ts",sourceMap:'{"version":3,"names":["computedOffsetXValueWithAutoFillData","params","isAutoFillData","SINGLE_ITEM","DOUBLE_ITEM","_closure","rawDataLength","value","size","loop","autoFillData"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/computedWithAutoFillData.ts"],"mappings":"AAgCO,SAAAA,oCAASA,CACdC,MAAA,EAIE;EAAA;IAAAC,cAAA;IAAAC,WAAA;IAAAC;EAAA,SAAAC,QAAA;EAIF,MAAM;IAAEC,aAAa,EAAbA,aAAa;IAAEC,KAAK,EAALA,KAAK;IAAEC,IAAI,EAAJA,IAAI;IAAEC,IAAI,EAAJA,IAAI;IAAEC,YAAA,EAAAA;EAAa,CAAC,GAAGT,MAAM;EAEjE,IAAIC,cAAc,CAAC;IAAEO,IAAI,EAAJA,IAAI;IAAEC,YAAA,EAAAA;EAAa,CAAC,CAAC,EAAE;IAC1C,QAAQJ,aAAa;MACnB,KAAKH,WAAW;QACd,OAAOI,KAAK,GAAGC,IAAI;MACrB,KAAKJ,WAAW;QACd,OAAOG,KAAK,IAAIC,IAAI,GAAG,CAAC,CAAC;IAC7B;EACF;EAEA,OAAOD,KAAK;AACd"}'},l=function(){var A=[new K.Error,-4,-27],d=function(p){var h=p.rawDataLength,g=p.value,E=p.size,m=p.loop,v=p.autoFillData;if(i({loop:m,autoFillData:v}))switch(h){case e:return g%E;case n:return g%(E*2)}return g};return d._closure={isAutoFillData:i,SINGLE_ITEM:e,DOUBLE_ITEM:n},d.__initData=o,d.__workletHash=0xf4bdb1c17d4,d.__stackDetails=A,d.__version="3.3.0",d}();Wn.computedOffsetXValueWithAutoFillData=l;function c(A){var d=A.index,f=A.dataLength,p=A.loop,h=A.autoFillData;if(i({loop:p,autoFillData:h}))switch(f){case e:return d%1;case n:return d%2}return d}function u(A){var d=A.data,f=A.loop,p=A.autoFillData,h=A.dataLength;if(i({loop:f,autoFillData:p}))switch(h){case e:return[d[0],d[0],d[0]];case n:return[d[0],d[1],d[0],d[1]]}return d}return Wn}var Xa={},uv;function ry(){if(uv)return Xa;uv=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.dealWithAnimation=void 0;var t=Tt,e={code:`function dealWithAnimation(withAnimation) { +}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/computedWithAutoFillData.ts",sourceMap:'{"version":3,"names":["computedOffsetXValueWithAutoFillData","params","isAutoFillData","SINGLE_ITEM","DOUBLE_ITEM","_closure","rawDataLength","value","size","loop","autoFillData"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/computedWithAutoFillData.ts"],"mappings":"AAgCO,SAAAA,oCAASA,CACdC,MAAA,EAIE;EAAA;IAAAC,cAAA;IAAAC,WAAA;IAAAC;EAAA,SAAAC,QAAA;EAIF,MAAM;IAAEC,aAAa,EAAbA,aAAa;IAAEC,KAAK,EAALA,KAAK;IAAEC,IAAI,EAAJA,IAAI;IAAEC,IAAI,EAAJA,IAAI;IAAEC,YAAA,EAAAA;EAAa,CAAC,GAAGT,MAAM;EAEjE,IAAIC,cAAc,CAAC;IAAEO,IAAI,EAAJA,IAAI;IAAEC,YAAA,EAAAA;EAAa,CAAC,CAAC,EAAE;IAC1C,QAAQJ,aAAa;MACnB,KAAKH,WAAW;QACd,OAAOI,KAAK,GAAGC,IAAI;MACrB,KAAKJ,WAAW;QACd,OAAOG,KAAK,IAAIC,IAAI,GAAG,CAAC,CAAC;IAC7B;EACF;EAEA,OAAOD,KAAK;AACd"}'},l=function(){var A=[new K.Error,-4,-27],d=function(p){var h=p.rawDataLength,g=p.value,E=p.size,m=p.loop,v=p.autoFillData;if(i({loop:m,autoFillData:v}))switch(h){case e:return g%E;case n:return g%(E*2)}return g};return d._closure={isAutoFillData:i,SINGLE_ITEM:e,DOUBLE_ITEM:n},d.__initData=o,d.__workletHash=0xf4bdb1c17d4,d.__stackDetails=A,d.__version="3.3.0",d}();Wn.computedOffsetXValueWithAutoFillData=l;function c(A){var d=A.index,f=A.dataLength,p=A.loop,h=A.autoFillData;if(i({loop:p,autoFillData:h}))switch(f){case e:return d%1;case n:return d%2}return d}function u(A){var d=A.data,f=A.loop,p=A.autoFillData,h=A.dataLength;if(i({loop:f,autoFillData:p}))switch(h){case e:return[d[0],d[0],d[0]];case n:return[d[0],d[1],d[0],d[1]]}return d}return Wn}var Xa={},dv;function ry(){if(dv)return Xa;dv=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.dealWithAnimation=void 0;var t=Tt,e={code:`function dealWithAnimation(withAnimation) { const { withSpring, withTiming @@ -127,14 +127,14 @@ Supported values: ["extend", "clamp", "identity", Extrapolatation.CLAMP, Extrapo cb } = this._closure; return cb(isFinished); -}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/dealWithAnimation.ts",sourceMap:'{"version":3,"names":["anonymous","isFinished","cb","_closure"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/dealWithAnimation.ts"],"mappings":"AAcoE,SAAAA,UAAAC,UAAU;EAAA;IAAAC;EAAA,SAAAC,QAAA;EAAA,OACtED,EAAE,CAACD,UAAqB;AAAA"}'},i=function(){var a=[new K.Error,-3,-27],s=function(l){switch(l.type){case"spring":return function(c,u){return(0,t.withSpring)(c,l.config,function(){var A=[new K.Error,-2,-27],d=function(p){return u(p)};return d._closure={cb:u},d.__initData=n,d.__workletHash=6414328185064,d.__stackDetails=A,d.__version="3.3.0",d}())};case"timing":return function(c,u){return(0,t.withTiming)(c,l.config,function(){var A=[new K.Error,-2,-27],d=function(p){return u(p)};return d._closure={cb:u},d.__initData=r,d.__workletHash=6414328185064,d.__stackDetails=A,d.__version="3.3.0",d}())}}};return s._closure={withSpring:t.withSpring,withTiming:t.withTiming},s.__initData=e,s.__workletHash=0xc3423b3c47d,s.__stackDetails=a,s.__version="3.3.0",s}();return Xa.dealWithAnimation=i,Xa}var Ya={},dv;function iy(){if(dv)return Ya;dv=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.handlerOffsetDirection=void 0;var t={code:`function handlerOffsetDirection(handlerOffset) { +}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/dealWithAnimation.ts",sourceMap:'{"version":3,"names":["anonymous","isFinished","cb","_closure"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/dealWithAnimation.ts"],"mappings":"AAcoE,SAAAA,UAAAC,UAAU;EAAA;IAAAC;EAAA,SAAAC,QAAA;EAAA,OACtED,EAAE,CAACD,UAAqB;AAAA"}'},i=function(){var a=[new K.Error,-3,-27],s=function(l){switch(l.type){case"spring":return function(c,u){return(0,t.withSpring)(c,l.config,function(){var A=[new K.Error,-2,-27],d=function(p){return u(p)};return d._closure={cb:u},d.__initData=n,d.__workletHash=6414328185064,d.__stackDetails=A,d.__version="3.3.0",d}())};case"timing":return function(c,u){return(0,t.withTiming)(c,l.config,function(){var A=[new K.Error,-2,-27],d=function(p){return u(p)};return d._closure={cb:u},d.__initData=r,d.__workletHash=6414328185064,d.__stackDetails=A,d.__version="3.3.0",d}())}}};return s._closure={withSpring:t.withSpring,withTiming:t.withTiming},s.__initData=e,s.__workletHash=0xc3423b3c47d,s.__stackDetails=a,s.__version="3.3.0",s}();return Xa.dealWithAnimation=i,Xa}var Ya={},Av;function iy(){if(Av)return Ya;Av=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.handlerOffsetDirection=void 0;var t={code:`function handlerOffsetDirection(handlerOffset) { const isPositiveZero = Object.is(handlerOffset.value, +0); const isNegativeZero = Object.is(handlerOffset.value, -0); const direction = isPositiveZero ? 1 : isNegativeZero ? -1 : Math.sign(handlerOffset.value); return direction; -}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/handlerOffsetDirection.ts",sourceMap:'{"version":3,"names":["handlerOffsetDirection","handlerOffset","isPositiveZero","Object","is","value","isNegativeZero","direction","Math","sign"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/handlerOffsetDirection.ts"],"mappings":"AAEO,SAAAA,sBAASA,CAAuBC,aAAA,EAAmC;EAGxE,MAAMC,cAAc,GAAGC,MAAM,CAACC,EAAE,CAACH,aAAa,CAACI,KAAK,EAAE,CAAC,CAAC,CAAC;EACzD,MAAMC,cAAc,GAAGH,MAAM,CAACC,EAAE,CAACH,aAAa,CAACI,KAAK,EAAE,CAAC,CAAC,CAAC;EACzD,MAAME,SAAS,GAAGL,cAAc,GAC5B,CAAC,GACDI,cAAc,GACZ,CAAC,CAAC,GACFE,IAAI,CAACC,IAAI,CAACR,aAAa,CAACI,KAAK,CAAW;EAE9C,OAAOE,SAAS;AAClB"}'},e=function(){var n=[new K.Error,1,-27],r=function(a){var s=Object.is(a.value,0),o=Object.is(a.value,-0),l=s?1:o?-1:Math.sign(a.value);return l};return r._closure={},r.__initData=t,r.__workletHash=0xc98f98c9908,r.__stackDetails=n,r.__version="3.3.0",r}();return Ya.handlerOffsetDirection=e,Ya}var Qi={},Av;function G5(){if(Av)return Qi;Av=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.log=t,Qi.round=void 0;function t(){var r;(r=console).log.apply(r,arguments)}var e={code:`function round(number) { +}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/handlerOffsetDirection.ts",sourceMap:'{"version":3,"names":["handlerOffsetDirection","handlerOffset","isPositiveZero","Object","is","value","isNegativeZero","direction","Math","sign"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/handlerOffsetDirection.ts"],"mappings":"AAEO,SAAAA,sBAASA,CAAuBC,aAAA,EAAmC;EAGxE,MAAMC,cAAc,GAAGC,MAAM,CAACC,EAAE,CAACH,aAAa,CAACI,KAAK,EAAE,CAAC,CAAC,CAAC;EACzD,MAAMC,cAAc,GAAGH,MAAM,CAACC,EAAE,CAACH,aAAa,CAACI,KAAK,EAAE,CAAC,CAAC,CAAC;EACzD,MAAME,SAAS,GAAGL,cAAc,GAC5B,CAAC,GACDI,cAAc,GACZ,CAAC,CAAC,GACFE,IAAI,CAACC,IAAI,CAACR,aAAa,CAACI,KAAK,CAAW;EAE9C,OAAOE,SAAS;AAClB"}'},e=function(){var n=[new K.Error,1,-27],r=function(a){var s=Object.is(a.value,0),o=Object.is(a.value,-0),l=s?1:o?-1:Math.sign(a.value);return l};return r._closure={},r.__initData=t,r.__workletHash=0xc98f98c9908,r.__stackDetails=n,r.__version="3.3.0",r}();return Ya.handlerOffsetDirection=e,Ya}var Qi={},fv;function G5(){if(fv)return Qi;fv=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.log=t,Qi.round=void 0;function t(){var r;(r=console).log.apply(r,arguments)}var e={code:`function round(number) { return Math.round(number); -}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/log.ts",sourceMap:'{"version":3,"names":["round","number","Math"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/log.ts"],"mappings":"AASO,SAAAA,KAASA,CAAMC,MAAA,EAAc;EAElC,OAAOC,IAAI,CAACF,KAAK,CAACC,MAAM,CAAC;AAC3B"}'},n=function(){var r=[new K.Error,1,-27],i=function(s){return Math.round(s)};return i._closure={},i.__initData=e,i.__workletHash=0xc5214806dac,i.__stackDetails=r,i.__version="3.3.0",i}();return Qi.round=n,Qi}var fv;function L5(){if(fv)return yo;fv=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.useCarouselController=p;var t=l(_),e=Tt,n=Fh(),r=ou(),i=ry(),a=iy(),s=G5();function o(h){if(typeof WeakMap!="function")return null;var g=new WeakMap,E=new WeakMap;return(o=function(v){return v?E:g})(h)}function l(h,g){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var E=o(g);if(E&&E.has(h))return E.get(h);var m={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in h)if(C!=="default"&&Object.prototype.hasOwnProperty.call(h,C)){var y=v?Object.getOwnPropertyDescriptor(h,C):null;y&&(y.get||y.set)?Object.defineProperty(m,C,y):m[C]=h[C]}return m.default=h,E&&E.set(h,m),m}var c={code:`function anonymous() { +}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/log.ts",sourceMap:'{"version":3,"names":["round","number","Math"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/log.ts"],"mappings":"AASO,SAAAA,KAASA,CAAMC,MAAA,EAAc;EAElC,OAAOC,IAAI,CAACF,KAAK,CAACC,MAAM,CAAC;AAC3B"}'},n=function(){var r=[new K.Error,1,-27],i=function(s){return Math.round(s)};return i._closure={},i.__initData=e,i.__workletHash=0xc5214806dac,i.__stackDetails=r,i.__version="3.3.0",i}();return Qi.round=n,Qi}var hv;function L5(){if(hv)return Io;hv=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.useCarouselController=p;var t=l(_),e=Tt,n=Rh(),r=ou(),i=ry(),a=iy(),s=G5();function o(h){if(typeof WeakMap!="function")return null;var g=new WeakMap,E=new WeakMap;return(o=function(v){return v?E:g})(h)}function l(h,g){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var E=o(g);if(E&&E.has(h))return E.get(h);var m={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in h)if(C!=="default"&&Object.prototype.hasOwnProperty.call(h,C)){var y=v?Object.getOwnPropertyDescriptor(h,C):null;y&&(y.get||y.set)?Object.defineProperty(m,C,y):m[C]=h[C]}return m.default=h,E&&E.set(h,m),m}var c={code:`function anonymous() { const { handlerOffset, round, @@ -233,7 +233,7 @@ Supported values: ["extend", "clamp", "identity", Extrapolatation.CLAMP, Extrapo handlerOffset.value = -nextPage * size; onFinished === null || onFinished === void 0 ? void 0 : onFinished(); } -}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:'{"version":3,"names":["anonymous","opts","canSliding","loop","index","dataInfo","onScrollBegin","currentFixedPage","handlerOffset","scrollWithTiming","size","_closure","_onScrollBegin","count","animated","onFinished","value","length","nextPage"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx"],"mappings":"AAuKI,SAACA,SAAgCA,CAACC,IAAK;EAAA;IAAAC,UAAA;IAAAC,IAAA;IAAAC,KAAA;IAAAC,QAAA;IAAAC,aAAA;IAAAC,gBAAA;IAAAC,aAAA;IAAAC,gBAAA;IAAAC;EAAA,SAAAC,QAAA;EAAA,IAAAC,cAAA;EAErC,MAAM;IAAEC,KAAK,GAAG,CAAC;IAAEC,QAAQ,GAAG,IAAI;IAAEC,UAAA,EAAAA;EAAW,CAAC,GAAGd,IAAI;EACvD,IAAI,CAACC,UAAU,CAAC,CAAC,IAAK,CAACC,IAAI,IAAIC,KAAK,CAACY,KAAK,IAAIX,QAAQ,CAACY,MAAM,GAAG,CAAE,EAChE;EAEF,CAAAL,cAAA,GAAAN,aAAa,cAAAM,cAAA,uBAAbA,cAAA,CAAgB,CAAC;EAEjB,MAAMM,QAAQ,GAAGX,gBAAgB,CAAC,CAAC,GAAGM,KAAK;EAC3CT,KAAK,CAACY,KAAK,GAAGE,QAAQ;EAEtB,IAAIJ,QAAQ,EAAE;IACZN,aAAa,CAACQ,KAAK,GAAGP,gBAAgB,CACpC,CAACS,QAAQ,GAAGR,IAAI,EAChBK,UACF,CAAQ;EACV,CAAC,MACI;IACHP,aAAa,CAACQ,KAAK,GAAG,CAACE,QAAQ,GAAGR,IAAI;IACtCK,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAG,CAAC;EAChB;AACF"}'};function p(h){var g=h.size,E=h.loop,m=h.dataLength,v=h.handlerOffset,C=h.withAnimation,y=h.defaultIndex,x=y===void 0?0:y,w=h.duration,S=h.autoFillData,D=t.default.useMemo(function(){return{length:m,disable:!m,originalLength:m}},[m]),I=(0,e.useSharedValue)(x),b=(0,t.useRef)(x),O=(0,t.useRef)(x),T=t.default.useCallback(function(){if(E)return-Math.round(v.value/g);var B=v.value/g%D.length;return Math.round(v.value<=0?Math.abs(B):Math.abs(B>0?D.length-B:0))},[v,D,g,E]);function M(B){b.current=B}(0,e.useAnimatedReaction)(function(){var B=[new K.Error,-8,-27],X=function(){var q=v.value,Q=(0,s.round)(q/g)%D.length,ae=q<=0,te=Math.abs(ae?Q:Q>0?D.length-Q:0),re=(0,r.convertToSharedIndex)({loop:E,rawDataLength:D.originalLength,autoFillData:S,index:te});return{i:te,newSharedIndexValue:re}};return X._closure={handlerOffset:v,round:s.round,size:g,dataInfo:D,convertToSharedIndex:r.convertToSharedIndex,loop:E,autoFillData:S},X.__initData=c,X.__workletHash=0xaced0f9f622,X.__stackDetails=B,X.__version="3.3.0",X}(),function(){var B=[new K.Error,-4,-27],X=function(q){var Q=q.i,ae=q.newSharedIndexValue;I.value=Q,(0,e.runOnJS)(M)(ae)};return X._closure={index:I,runOnJS:e.runOnJS,setSharedIndex:M},X.__initData=u,X.__workletHash=6063199752963,X.__stackDetails=B,X.__version="3.3.0",X}(),[O,b,g,D,I,E,S,v]);var P=t.default.useCallback(function(){var B=(0,r.computedRealIndexWithAutoFillData)({index:I.value,dataLength:D.originalLength,loop:E,autoFillData:S});return B},[I,S,D,E]),R=t.default.useCallback(function(){return!D.disable},[D]),W=t.default.useCallback(function(){h.onScrollEnd==null||h.onScrollEnd()},[h]),N=t.default.useCallback(function(){h.onScrollBegin==null||h.onScrollBegin()},[h]),U=t.default.useCallback(function(){var B=[new K.Error,-7,-27],X=function(q,Q){var ae=function(){var re=[new K.Error,-4,-27],Z=function(we){we&&((0,e.runOnJS)(W)(),Q&&(0,e.runOnJS)(Q)())};return Z._closure={runOnJS:e.runOnJS,onScrollEnd:W,onFinished:Q},Z.__initData=d,Z.__workletHash=1856840040824,Z.__stackDetails=re,Z.__version="3.3.0",Z}(),te={type:"timing",config:{duration:w,easing:n.Easing.easeOutQuart}};return(0,i.dealWithAnimation)(C??te)(q,ae)};return X._closure={runOnJS:e.runOnJS,onScrollEnd:W,duration:w,Easing:n.Easing,dealWithAnimation:i.dealWithAnimation,withAnimation:C},X.__initData=A,X.__workletHash=8876815392037,X.__stackDetails=B,X.__version="3.3.0",X}(),[w,C,W]),Y=t.default.useCallback(function(){var B=[new K.Error,-10,-27],X=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=q.count,ae=Q===void 0?1:Q,te=q.animated,re=te===void 0?!0:te,Z=q.onFinished;if(!(!R()||!E&&I.value>=D.length-1)){N==null||N();var ie=T()+ae;I.value=ie,re?v.value=U(-ie*g,Z):(v.value=-ie*g,Z==null||Z())}};return X._closure={canSliding:R,loop:E,index:I,dataInfo:D,onScrollBegin:N,currentFixedPage:T,handlerOffset:v,scrollWithTiming:U,size:g},X.__initData=f,X.__workletHash=7037612364285,X.__stackDetails=B,X.__version="3.3.0",X}(),[R,E,I,D,N,v,g,U,T]),G=t.default.useCallback(function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},X=B.count,z=X===void 0?1:X,q=B.animated,Q=q===void 0?!0:q,ae=B.onFinished;if(!(!R()||!E&&I.value<=0)){N==null||N();var te=T()-z;I.value=te,Q?v.value=U(-te*g,ae):(v.value=-te*g,ae==null||ae())}},[R,E,I,N,v,g,U,T]),H=t.default.useCallback(function(B){var X=B.i,z=B.animated,q=z===void 0?!1:z,Q=B.onFinished;if(X!==I.value&&R()){N==null||N();var ae=(0,a.handlerOffsetDirection)(v),te=X*g*ae,re=D.length*g,Z=!1;E&&(Z=Math.abs(v.value%re)/re>=.5);var ie=(Math.floor(Math.abs(v.value/re))+(Z?1:0))*re*ae+te;q?(I.value=X,v.value=U(ie,Q)):(v.value=ie,I.value=X,Q==null||Q())}},[I,R,N,v,g,D.length,E,U]),L=t.default.useCallback(function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},X=B.index,z=B.count,q=B.animated,Q=q===void 0?!1:q,ae=B.onFinished;if(typeof X=="number"&&X>-1){H({i:X,animated:Q,onFinished:ae});return}if(z){var te=Math.round(z);te<0?G({count:Math.abs(te),animated:Q,onFinished:ae}):Y({count:te,animated:Q,onFinished:ae})}},[G,Y,H]);return{next:Y,prev:G,scrollTo:L,getCurrentIndex:P,getSharedIndex:function(){return b.current}}}return yo}var Io={},Qr={},hv;function V5(){if(hv)return Qr;hv=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.omitZero=Qr.computeNewIndexWhenDataChanges=void 0;var t={code:`function omitZero(a, b) { +}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:'{"version":3,"names":["anonymous","opts","canSliding","loop","index","dataInfo","onScrollBegin","currentFixedPage","handlerOffset","scrollWithTiming","size","_closure","_onScrollBegin","count","animated","onFinished","value","length","nextPage"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx"],"mappings":"AAuKI,SAACA,SAAgCA,CAACC,IAAK;EAAA;IAAAC,UAAA;IAAAC,IAAA;IAAAC,KAAA;IAAAC,QAAA;IAAAC,aAAA;IAAAC,gBAAA;IAAAC,aAAA;IAAAC,gBAAA;IAAAC;EAAA,SAAAC,QAAA;EAAA,IAAAC,cAAA;EAErC,MAAM;IAAEC,KAAK,GAAG,CAAC;IAAEC,QAAQ,GAAG,IAAI;IAAEC,UAAA,EAAAA;EAAW,CAAC,GAAGd,IAAI;EACvD,IAAI,CAACC,UAAU,CAAC,CAAC,IAAK,CAACC,IAAI,IAAIC,KAAK,CAACY,KAAK,IAAIX,QAAQ,CAACY,MAAM,GAAG,CAAE,EAChE;EAEF,CAAAL,cAAA,GAAAN,aAAa,cAAAM,cAAA,uBAAbA,cAAA,CAAgB,CAAC;EAEjB,MAAMM,QAAQ,GAAGX,gBAAgB,CAAC,CAAC,GAAGM,KAAK;EAC3CT,KAAK,CAACY,KAAK,GAAGE,QAAQ;EAEtB,IAAIJ,QAAQ,EAAE;IACZN,aAAa,CAACQ,KAAK,GAAGP,gBAAgB,CACpC,CAACS,QAAQ,GAAGR,IAAI,EAChBK,UACF,CAAQ;EACV,CAAC,MACI;IACHP,aAAa,CAACQ,KAAK,GAAG,CAACE,QAAQ,GAAGR,IAAI;IACtCK,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAG,CAAC;EAChB;AACF"}'};function p(h){var g=h.size,E=h.loop,m=h.dataLength,v=h.handlerOffset,C=h.withAnimation,y=h.defaultIndex,x=y===void 0?0:y,w=h.duration,S=h.autoFillData,D=t.default.useMemo(function(){return{length:m,disable:!m,originalLength:m}},[m]),I=(0,e.useSharedValue)(x),b=(0,t.useRef)(x),O=(0,t.useRef)(x),T=t.default.useCallback(function(){if(E)return-Math.round(v.value/g);var B=v.value/g%D.length;return Math.round(v.value<=0?Math.abs(B):Math.abs(B>0?D.length-B:0))},[v,D,g,E]);function M(B){b.current=B}(0,e.useAnimatedReaction)(function(){var B=[new K.Error,-8,-27],X=function(){var q=v.value,Q=(0,s.round)(q/g)%D.length,ae=q<=0,te=Math.abs(ae?Q:Q>0?D.length-Q:0),re=(0,r.convertToSharedIndex)({loop:E,rawDataLength:D.originalLength,autoFillData:S,index:te});return{i:te,newSharedIndexValue:re}};return X._closure={handlerOffset:v,round:s.round,size:g,dataInfo:D,convertToSharedIndex:r.convertToSharedIndex,loop:E,autoFillData:S},X.__initData=c,X.__workletHash=0xaced0f9f622,X.__stackDetails=B,X.__version="3.3.0",X}(),function(){var B=[new K.Error,-4,-27],X=function(q){var Q=q.i,ae=q.newSharedIndexValue;I.value=Q,(0,e.runOnJS)(M)(ae)};return X._closure={index:I,runOnJS:e.runOnJS,setSharedIndex:M},X.__initData=u,X.__workletHash=6063199752963,X.__stackDetails=B,X.__version="3.3.0",X}(),[O,b,g,D,I,E,S,v]);var P=t.default.useCallback(function(){var B=(0,r.computedRealIndexWithAutoFillData)({index:I.value,dataLength:D.originalLength,loop:E,autoFillData:S});return B},[I,S,D,E]),R=t.default.useCallback(function(){return!D.disable},[D]),W=t.default.useCallback(function(){h.onScrollEnd==null||h.onScrollEnd()},[h]),N=t.default.useCallback(function(){h.onScrollBegin==null||h.onScrollBegin()},[h]),U=t.default.useCallback(function(){var B=[new K.Error,-7,-27],X=function(q,Q){var ae=function(){var re=[new K.Error,-4,-27],Z=function(we){we&&((0,e.runOnJS)(W)(),Q&&(0,e.runOnJS)(Q)())};return Z._closure={runOnJS:e.runOnJS,onScrollEnd:W,onFinished:Q},Z.__initData=d,Z.__workletHash=1856840040824,Z.__stackDetails=re,Z.__version="3.3.0",Z}(),te={type:"timing",config:{duration:w,easing:n.Easing.easeOutQuart}};return(0,i.dealWithAnimation)(C??te)(q,ae)};return X._closure={runOnJS:e.runOnJS,onScrollEnd:W,duration:w,Easing:n.Easing,dealWithAnimation:i.dealWithAnimation,withAnimation:C},X.__initData=A,X.__workletHash=8876815392037,X.__stackDetails=B,X.__version="3.3.0",X}(),[w,C,W]),Y=t.default.useCallback(function(){var B=[new K.Error,-10,-27],X=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=q.count,ae=Q===void 0?1:Q,te=q.animated,re=te===void 0?!0:te,Z=q.onFinished;if(!(!R()||!E&&I.value>=D.length-1)){N==null||N();var ie=T()+ae;I.value=ie,re?v.value=U(-ie*g,Z):(v.value=-ie*g,Z==null||Z())}};return X._closure={canSliding:R,loop:E,index:I,dataInfo:D,onScrollBegin:N,currentFixedPage:T,handlerOffset:v,scrollWithTiming:U,size:g},X.__initData=f,X.__workletHash=7037612364285,X.__stackDetails=B,X.__version="3.3.0",X}(),[R,E,I,D,N,v,g,U,T]),G=t.default.useCallback(function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},X=B.count,z=X===void 0?1:X,q=B.animated,Q=q===void 0?!0:q,ae=B.onFinished;if(!(!R()||!E&&I.value<=0)){N==null||N();var te=T()-z;I.value=te,Q?v.value=U(-te*g,ae):(v.value=-te*g,ae==null||ae())}},[R,E,I,N,v,g,U,T]),H=t.default.useCallback(function(B){var X=B.i,z=B.animated,q=z===void 0?!1:z,Q=B.onFinished;if(X!==I.value&&R()){N==null||N();var ae=(0,a.handlerOffsetDirection)(v),te=X*g*ae,re=D.length*g,Z=!1;E&&(Z=Math.abs(v.value%re)/re>=.5);var ie=(Math.floor(Math.abs(v.value/re))+(Z?1:0))*re*ae+te;q?(I.value=X,v.value=U(ie,Q)):(v.value=ie,I.value=X,Q==null||Q())}},[I,R,N,v,g,D.length,E,U]),L=t.default.useCallback(function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},X=B.index,z=B.count,q=B.animated,Q=q===void 0?!1:q,ae=B.onFinished;if(typeof X=="number"&&X>-1){H({i:X,animated:Q,onFinished:ae});return}if(z){var te=Math.round(z);te<0?G({count:Math.abs(te),animated:Q,onFinished:ae}):Y({count:te,animated:Q,onFinished:ae})}},[G,Y,H]);return{next:Y,prev:G,scrollTo:L,getCurrentIndex:P,getSharedIndex:function(){return b.current}}}return Io}var wo={},Qr={},pv;function V5(){if(pv)return Qr;pv=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.omitZero=Qr.computeNewIndexWhenDataChanges=void 0;var t={code:`function omitZero(a, b) { if (a === 0) return 0; return b; }`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/computeNewIndexWhenDataChanges.ts",sourceMap:'{"version":3,"names":["omitZero","a","b"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/computeNewIndexWhenDataChanges.ts"],"mappings":"AAAO,SAAAA,QAASA,CAASC,CAAC,EAAQC,CAAG,EAAQ;EAE3C,IAAID,CAAC,KAAK,CAAC,EACT,OAAO,CAAC;EAEV,OAAOC,CAAC;AACV"}'},e=function(){var i=[new K.Error,1,-27],a=function(o,l){return o===0?0:l};return a._closure={},a.__initData=t,a.__workletHash=2585996741034,a.__stackDetails=i,a.__version="3.3.0",a}();Qr.omitZero=e;var n={code:`function computeNewIndexWhenDataChanges(params) { @@ -268,7 +268,7 @@ Supported values: ["extend", "clamp", "identity", Extrapolatation.CLAMP, Extrapo handlerOffset += changedOffset * direction; } return handlerOffset; -}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/computeNewIndexWhenDataChanges.ts",sourceMap:'{"version":3,"names":["computeNewIndexWhenDataChanges","params","omitZero","_closure","direction","handlerOffset","_handlerOffset","size","previousLength","currentLength","positionIndex","round","isPositive","Math","abs","parseInt","String","prevOffset","prevIndex","changedLength","changedOffset"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/computeNewIndexWhenDataChanges.ts"],"mappings":"AAQO,SAAAA,8BAASA,CAA+BC,MAAA,EAM9C;EAAA;IAAAC;EAAA,SAAAC,QAAA;EAEC,MAAM;IAAEC,SAAS,EAATA,SAAS;IAAEC,aAAa,EAAEC,cAAc;IAAEC,IAAI,EAAJA,IAAI;IAAEC,cAAc,EAAdA,cAAc;IAAEC,aAAA,EAAAA;EAAc,CAAC,GAAGR,MAAM;EAEhG,IAAII,aAAa,GAAGC,cAAc;EAClC,IAAII,aAAa;EACjB,IAAIC,KAAK;EAET,MAAMC,UAAU,GAAGR,SAAS,GAAG,CAAC;EAEhC,IAAIQ,UAAU,EAAE;IACdF,aAAa,GAAIG,IAAI,CAACC,GAAG,CAACT,aAAa,CAAC,GAAIE,IAAI;IAChDI,KAAK,GAAGI,QAAQ,CAACC,MAAM,CAACd,QAAQ,CAACM,cAAc,EAAEE,aAAa,GAAGF,cAAc,CAAC,CAAC,CAAC;EACpF,CAAC,MACI;IACHE,aAAa,GAAG,CAACG,IAAI,CAACC,GAAG,CAACT,aAAa,CAAC,GAAGE,IAAI,IAAIA,IAAI;IACvDI,KAAK,GAAGI,QAAQ,CAACC,MAAM,CAACd,QAAQ,CAACM,cAAc,EAAEE,aAAa,GAAGF,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC;EACxF;EAEA,MAAMS,UAAU,GAAGf,QAAQ,CAACM,cAAc,EAAEE,aAAa,GAAGF,cAAc,CAAC;EAC3E,MAAMU,SAAS,GAAGN,UAAU,GAAGK,UAAU,GAAGT,cAAc,GAAGS,UAAU,GAAG,CAAC;EAC3E,MAAME,aAAa,GAAGR,KAAK,IAAIF,aAAa,GAAGD,cAAc,CAAC;EAC9D,MAAMY,aAAa,GAAGD,aAAa,GAAGZ,IAAI;EAC1C,IAAIW,SAAS,GAAGT,aAAa,GAAG,CAAC,IAAIA,aAAa,GAAGD,cAAc,EAAE;IACnE,IAAII,UAAU,EACZP,aAAa,GAAG,CAACI,aAAa,GAAG,CAAC,IAAIF,IAAI,GAAGH,SAAS,CAAC,KAGvDC,aAAa,GAAG,CAACI,aAAa,GAAG,CAAC,IAAIF,IAAI,GAAG,CAAC,CAAC;EACnD,CAAC,MACI;IACHF,aAAa,IAAIe,aAAa,GAAGhB,SAAS;EAC5C;EAEA,OAAOC,aAAa;AACtB"}'},r=function(){var i=[new K.Error,-2,-27],a=function(o){var l=o.direction,c=o.handlerOffset,u=o.size,A=o.previousLength,d=o.currentLength,f=c,p,h,g=l<0;g?(p=Math.abs(f)/u,h=parseInt(String(e(A,p/A)))):(p=(Math.abs(f)-u)/u,h=parseInt(String(e(A,p/A)))+1);var E=e(A,p%A),m=g?E:A-E-1,v=h*(d-A),C=v*u;return m>d-1&&d<A?g?f=(d-1)*u*l:f=(d-1)*u*-1:f+=C*l,f};return a._closure={omitZero:e},a.__initData=n,a.__workletHash=1218774587822,a.__stackDetails=i,a.__version="3.3.0",a}();return Qr.computeNewIndexWhenDataChanges=r,Qr}var pv;function H5(){if(pv)return Io;pv=1;var t=An;Object.defineProperty(Io,"__esModule",{value:!0}),Io.useCommonVariables=o;var e=t(_),n=Tt,r=V5(),i=iy(),a={code:`function anonymous() { +}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/computeNewIndexWhenDataChanges.ts",sourceMap:'{"version":3,"names":["computeNewIndexWhenDataChanges","params","omitZero","_closure","direction","handlerOffset","_handlerOffset","size","previousLength","currentLength","positionIndex","round","isPositive","Math","abs","parseInt","String","prevOffset","prevIndex","changedLength","changedOffset"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/computeNewIndexWhenDataChanges.ts"],"mappings":"AAQO,SAAAA,8BAASA,CAA+BC,MAAA,EAM9C;EAAA;IAAAC;EAAA,SAAAC,QAAA;EAEC,MAAM;IAAEC,SAAS,EAATA,SAAS;IAAEC,aAAa,EAAEC,cAAc;IAAEC,IAAI,EAAJA,IAAI;IAAEC,cAAc,EAAdA,cAAc;IAAEC,aAAA,EAAAA;EAAc,CAAC,GAAGR,MAAM;EAEhG,IAAII,aAAa,GAAGC,cAAc;EAClC,IAAII,aAAa;EACjB,IAAIC,KAAK;EAET,MAAMC,UAAU,GAAGR,SAAS,GAAG,CAAC;EAEhC,IAAIQ,UAAU,EAAE;IACdF,aAAa,GAAIG,IAAI,CAACC,GAAG,CAACT,aAAa,CAAC,GAAIE,IAAI;IAChDI,KAAK,GAAGI,QAAQ,CAACC,MAAM,CAACd,QAAQ,CAACM,cAAc,EAAEE,aAAa,GAAGF,cAAc,CAAC,CAAC,CAAC;EACpF,CAAC,MACI;IACHE,aAAa,GAAG,CAACG,IAAI,CAACC,GAAG,CAACT,aAAa,CAAC,GAAGE,IAAI,IAAIA,IAAI;IACvDI,KAAK,GAAGI,QAAQ,CAACC,MAAM,CAACd,QAAQ,CAACM,cAAc,EAAEE,aAAa,GAAGF,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC;EACxF;EAEA,MAAMS,UAAU,GAAGf,QAAQ,CAACM,cAAc,EAAEE,aAAa,GAAGF,cAAc,CAAC;EAC3E,MAAMU,SAAS,GAAGN,UAAU,GAAGK,UAAU,GAAGT,cAAc,GAAGS,UAAU,GAAG,CAAC;EAC3E,MAAME,aAAa,GAAGR,KAAK,IAAIF,aAAa,GAAGD,cAAc,CAAC;EAC9D,MAAMY,aAAa,GAAGD,aAAa,GAAGZ,IAAI;EAC1C,IAAIW,SAAS,GAAGT,aAAa,GAAG,CAAC,IAAIA,aAAa,GAAGD,cAAc,EAAE;IACnE,IAAII,UAAU,EACZP,aAAa,GAAG,CAACI,aAAa,GAAG,CAAC,IAAIF,IAAI,GAAGH,SAAS,CAAC,KAGvDC,aAAa,GAAG,CAACI,aAAa,GAAG,CAAC,IAAIF,IAAI,GAAG,CAAC,CAAC;EACnD,CAAC,MACI;IACHF,aAAa,IAAIe,aAAa,GAAGhB,SAAS;EAC5C;EAEA,OAAOC,aAAa;AACtB"}'},r=function(){var i=[new K.Error,-2,-27],a=function(o){var l=o.direction,c=o.handlerOffset,u=o.size,A=o.previousLength,d=o.currentLength,f=c,p,h,g=l<0;g?(p=Math.abs(f)/u,h=parseInt(String(e(A,p/A)))):(p=(Math.abs(f)-u)/u,h=parseInt(String(e(A,p/A)))+1);var E=e(A,p%A),m=g?E:A-E-1,v=h*(d-A),C=v*u;return m>d-1&&d<A?g?f=(d-1)*u*l:f=(d-1)*u*-1:f+=C*l,f};return a._closure={omitZero:e},a.__initData=n,a.__workletHash=1218774587822,a.__stackDetails=i,a.__version="3.3.0",a}();return Qr.computeNewIndexWhenDataChanges=r,Qr}var gv;function H5(){if(gv)return wo;gv=1;var t=An;Object.defineProperty(wo,"__esModule",{value:!0}),wo.useCommonVariables=o;var e=t(_),n=Tt,r=V5(),i=iy(),a={code:`function anonymous() { const { prevDataLength, dataLength, @@ -305,7 +305,7 @@ Supported values: ["extend", "clamp", "identity", Extrapolatation.CLAMP, Extrapo handlerOffset: handlerOffset.value }); } -}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCommonVariables.ts",sourceMap:'{"version":3,"names":["anonymous","shouldComputed","previousLength","currentLength","handlerOffsetDirection","handlerOffset","computeNewIndexWhenDataChanges","size","_closure","direction","value"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCommonVariables.ts"],"mappings":"AAoDK,SAACA,UAAA;EAAEC,cAAc,EAAdA,cAAc;EAAEC,cAAc,EAAdA,cAAc;EAAEC,aAAA,EAAAA;AAAc,CAAC,EAAK;EAAA;IAAAC,sBAAA;IAAAC,aAAA;IAAAC,8BAAA;IAAAC;EAAA,SAAAC,QAAA;EACxD,IAAIP,cAAc,EAAE;IAElB,MAAMQ,SAAS,GAAGL,sBAAsB,CAACC,aAAa,CAAC;IAEvDA,aAAa,CAACK,KAAK,GAAGJ,8BAA8B,CAAC;MACnDG,SAAS,EAATA,SAAS;MACTP,cAAc,EAAdA,cAAc;MACdC,aAAa,EAAbA,aAAa;MACbI,IAAI,EAAJA,IAAI;MACJF,aAAa,EAAEA,aAAa,CAACK;IAC/B,CAAC,CAAC;EACJ;AACF"}'};function o(l){var c=l.vertical,u=l.height,A=l.width,d=l.dataLength,f=l.defaultIndex,p=l.defaultScrollOffsetValue,h=l.loop,g=c?u:A,E=d-1,m=-Math.abs(f*g),v=(0,n.useSharedValue)(m),C=p??v,y=(0,n.useSharedValue)(d);return e.default.useEffect(function(){C.value=m},[c,C,m]),(0,n.useAnimatedReaction)(function(){var x=[new K.Error,-4,-27],w=function(){var D=y.value,I=d,b=D!==I,O=b&&h;return O&&(y.value=d),{shouldComputed:O,previousLength:D,currentLength:I}};return w._closure={prevDataLength:y,dataLength:d,loop:h},w.__initData=a,w.__workletHash=0x9b046977847,w.__stackDetails=x,w.__version="3.3.0",w}(),function(){var x=[new K.Error,-5,-27],w=function(D){var I=D.shouldComputed,b=D.previousLength,O=D.currentLength;if(I){var T=(0,i.handlerOffsetDirection)(C);C.value=(0,r.computeNewIndexWhenDataChanges)({direction:T,previousLength:b,currentLength:O,size:g,handlerOffset:C.value})}};return w._closure={handlerOffsetDirection:i.handlerOffsetDirection,handlerOffset:C,computeNewIndexWhenDataChanges:r.computeNewIndexWhenDataChanges,size:g},w.__initData=s,w.__workletHash=0xfbf4d29b4f4,w.__stackDetails=x,w.__version="3.3.0",w}(),[d,h]),{size:g,validLength:E,handlerOffset:C}}return Io}var wo={},gv;function U5(){if(gv)return wo;gv=1;var t=An;Object.defineProperty(wo,"__esModule",{value:!0}),wo.useInitProps=r;var e=t(_),n=ou();function r(i){var a,s=i.defaultIndex,o=s===void 0?0:s,l=i.data,c=l===void 0?[]:l,u=i.loop,A=u===void 0?!0:u,d=i.autoPlayInterval,f=d===void 0?1e3:d,p=i.scrollAnimationDuration,h=p===void 0?500:p,g=i.style,E=g===void 0?{}:g,m=i.panGestureHandlerProps,v=m===void 0?{}:m,C=i.autoFillData,y=C===void 0?!0:C,x=i.enabled,w=x===void 0?!0:x,S=i.pagingEnabled,D=S===void 0?!0:S,I=i.overscrollEnabled,b=I===void 0?!0:I,O=i.snapEnabled,T=O===void 0?(a=i.enableSnap)!=null?a:!0:O,M=i.width,P=i.height,R=Math.round(M||0),W=Math.round(P||0),N=Math.max(f,0),U=e.default.useMemo(function(){return(0,n.computedFillDataWithAutoFillData)({loop:A,autoFillData:y,data:c,dataLength:c.length})},[c,A,y]),Y=U.length,G=c.length;if(i.mode==="vertical-stack"||i.mode==="horizontal-stack"){var H,L;i.modeConfig||(i.modeConfig={}),i.modeConfig.showLength=(H=(L=i.modeConfig)==null?void 0:L.showLength)!=null?H:Y-1}return Object.assign({},i,{defaultIndex:o,autoFillData:y,data:U,dataLength:Y,rawData:c,rawDataLength:G,loop:A,enabled:w,autoPlayInterval:N,scrollAnimationDuration:h,style:E,panGestureHandlerProps:v,pagingEnabled:D,snapEnabled:T,overscrollEnabled:b,width:R,height:W})}return wo}var bo={},za={},So={},vv;function W5(){if(vv)return So;vv=1,Object.defineProperty(So,"__esModule",{value:!0}),So.normalLayout=n;var t=Tt,e={code:`function anonymous(value) { +}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCommonVariables.ts",sourceMap:'{"version":3,"names":["anonymous","shouldComputed","previousLength","currentLength","handlerOffsetDirection","handlerOffset","computeNewIndexWhenDataChanges","size","_closure","direction","value"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCommonVariables.ts"],"mappings":"AAoDK,SAACA,UAAA;EAAEC,cAAc,EAAdA,cAAc;EAAEC,cAAc,EAAdA,cAAc;EAAEC,aAAA,EAAAA;AAAc,CAAC,EAAK;EAAA;IAAAC,sBAAA;IAAAC,aAAA;IAAAC,8BAAA;IAAAC;EAAA,SAAAC,QAAA;EACxD,IAAIP,cAAc,EAAE;IAElB,MAAMQ,SAAS,GAAGL,sBAAsB,CAACC,aAAa,CAAC;IAEvDA,aAAa,CAACK,KAAK,GAAGJ,8BAA8B,CAAC;MACnDG,SAAS,EAATA,SAAS;MACTP,cAAc,EAAdA,cAAc;MACdC,aAAa,EAAbA,aAAa;MACbI,IAAI,EAAJA,IAAI;MACJF,aAAa,EAAEA,aAAa,CAACK;IAC/B,CAAC,CAAC;EACJ;AACF"}'};function o(l){var c=l.vertical,u=l.height,A=l.width,d=l.dataLength,f=l.defaultIndex,p=l.defaultScrollOffsetValue,h=l.loop,g=c?u:A,E=d-1,m=-Math.abs(f*g),v=(0,n.useSharedValue)(m),C=p??v,y=(0,n.useSharedValue)(d);return e.default.useEffect(function(){C.value=m},[c,C,m]),(0,n.useAnimatedReaction)(function(){var x=[new K.Error,-4,-27],w=function(){var D=y.value,I=d,b=D!==I,O=b&&h;return O&&(y.value=d),{shouldComputed:O,previousLength:D,currentLength:I}};return w._closure={prevDataLength:y,dataLength:d,loop:h},w.__initData=a,w.__workletHash=0x9b046977847,w.__stackDetails=x,w.__version="3.3.0",w}(),function(){var x=[new K.Error,-5,-27],w=function(D){var I=D.shouldComputed,b=D.previousLength,O=D.currentLength;if(I){var T=(0,i.handlerOffsetDirection)(C);C.value=(0,r.computeNewIndexWhenDataChanges)({direction:T,previousLength:b,currentLength:O,size:g,handlerOffset:C.value})}};return w._closure={handlerOffsetDirection:i.handlerOffsetDirection,handlerOffset:C,computeNewIndexWhenDataChanges:r.computeNewIndexWhenDataChanges,size:g},w.__initData=s,w.__workletHash=0xfbf4d29b4f4,w.__stackDetails=x,w.__version="3.3.0",w}(),[d,h]),{size:g,validLength:E,handlerOffset:C}}return wo}var bo={},vv;function U5(){if(vv)return bo;vv=1;var t=An;Object.defineProperty(bo,"__esModule",{value:!0}),bo.useInitProps=r;var e=t(_),n=ou();function r(i){var a,s=i.defaultIndex,o=s===void 0?0:s,l=i.data,c=l===void 0?[]:l,u=i.loop,A=u===void 0?!0:u,d=i.autoPlayInterval,f=d===void 0?1e3:d,p=i.scrollAnimationDuration,h=p===void 0?500:p,g=i.style,E=g===void 0?{}:g,m=i.panGestureHandlerProps,v=m===void 0?{}:m,C=i.autoFillData,y=C===void 0?!0:C,x=i.enabled,w=x===void 0?!0:x,S=i.pagingEnabled,D=S===void 0?!0:S,I=i.overscrollEnabled,b=I===void 0?!0:I,O=i.snapEnabled,T=O===void 0?(a=i.enableSnap)!=null?a:!0:O,M=i.width,P=i.height,R=Math.round(M||0),W=Math.round(P||0),N=Math.max(f,0),U=e.default.useMemo(function(){return(0,n.computedFillDataWithAutoFillData)({loop:A,autoFillData:y,data:c,dataLength:c.length})},[c,A,y]),Y=U.length,G=c.length;if(i.mode==="vertical-stack"||i.mode==="horizontal-stack"){var H,L;i.modeConfig||(i.modeConfig={}),i.modeConfig.showLength=(H=(L=i.modeConfig)==null?void 0:L.showLength)!=null?H:Y-1}return Object.assign({},i,{defaultIndex:o,autoFillData:y,data:U,dataLength:Y,rawData:c,rawDataLength:G,loop:A,enabled:w,autoPlayInterval:N,scrollAnimationDuration:h,style:E,panGestureHandlerProps:v,pagingEnabled:D,snapEnabled:T,overscrollEnabled:b,width:R,height:W})}return bo}var So={},za={},_o={},mv;function W5(){if(mv)return _o;mv=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.normalLayout=n;var t=Tt,e={code:`function anonymous(value) { const { interpolate, size, @@ -319,7 +319,7 @@ Supported values: ["extend", "clamp", "identity", Extrapolatation.CLAMP, Extrapo translateX: translate }] }; -}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/layouts/normal.ts",sourceMap:'{"version":3,"names":["anonymous","value","interpolate","size","vertical","_closure","translate","transform","translateY","translateX"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/layouts/normal.ts"],"mappings":"AAKS,SAACA,SAAkBA,CAAAC,KAAA;EAAA;IAAAC,WAAA;IAAAC,IAAA;IAAAC;EAAA,SAAAC,QAAA;EAExB,MAAMC,SAAS,GAAGJ,WAAW,CAACD,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAACE,IAAI,EAAE,CAAC,EAAEA,IAAI,CAAC,CAAC;EAElE,OAAO;IACLI,SAAS,EAAE,CACTH,QAAQ,GACJ;MACAI,UAAU,EAAEF;IACd,CAAC,GACC;MACAG,UAAU,EAAEH;IACd,CAAC;EAEP,CAAC;AACH"}'};function n(r){var i=r.size,a=r.vertical;return function(){var s=[new K.Error,-4,-27],o=function(c){var u=(0,t.interpolate)(c,[-1,0,1],[-i,0,i]);return{transform:[a?{translateY:u}:{translateX:u}]}};return o._closure={interpolate:t.interpolate,size:i,vertical:a},o.__initData=e,o.__workletHash=6911475201616,o.__stackDetails=s,o.__version="3.3.0",o}()}return So}var _o={},mv;function X5(){if(mv)return _o;mv=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.parallaxLayout=n;var t=Tt,e={code:`function anonymous(value) { +}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/layouts/normal.ts",sourceMap:'{"version":3,"names":["anonymous","value","interpolate","size","vertical","_closure","translate","transform","translateY","translateX"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/layouts/normal.ts"],"mappings":"AAKS,SAACA,SAAkBA,CAAAC,KAAA;EAAA;IAAAC,WAAA;IAAAC,IAAA;IAAAC;EAAA,SAAAC,QAAA;EAExB,MAAMC,SAAS,GAAGJ,WAAW,CAACD,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAACE,IAAI,EAAE,CAAC,EAAEA,IAAI,CAAC,CAAC;EAElE,OAAO;IACLI,SAAS,EAAE,CACTH,QAAQ,GACJ;MACAI,UAAU,EAAEF;IACd,CAAC,GACC;MACAG,UAAU,EAAEH;IACd,CAAC;EAEP,CAAC;AACH"}'};function n(r){var i=r.size,a=r.vertical;return function(){var s=[new K.Error,-4,-27],o=function(c){var u=(0,t.interpolate)(c,[-1,0,1],[-i,0,i]);return{transform:[a?{translateY:u}:{translateX:u}]}};return o._closure={interpolate:t.interpolate,size:i,vertical:a},o.__initData=e,o.__workletHash=6911475201616,o.__stackDetails=s,o.__version="3.3.0",o}()}return _o}var Do={},Cv;function X5(){if(Cv)return Do;Cv=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.parallaxLayout=n;var t=Tt,e={code:`function anonymous(value) { const { interpolate, size, @@ -342,7 +342,7 @@ Supported values: ["extend", "clamp", "identity", Extrapolatation.CLAMP, Extrapo }], zIndex: zIndex }; -}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/layouts/parallax.ts",sourceMap:'{"version":3,"names":["anonymous","value","interpolate","size","parallaxScrollingOffset","Extrapolate","parallaxAdjacentItemScale","parallaxScrollingScale","vertical","_closure","translate","zIndex","CLAMP","scale","transform","translateY","translateX"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/layouts/parallax.ts"],"mappings":"AA8CS,SAACA,SAAkBA,CAAAC,KAAA;EAAA;IAAAC,WAAA;IAAAC,IAAA;IAAAC,uBAAA;IAAAC,WAAA;IAAAC,yBAAA;IAAAC,sBAAA;IAAAC;EAAA,SAAAC,QAAA;EAExB,MAAMC,SAAS,GAAGR,WAAW,CAC3BD,KAAK,EACL,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EACV,CAAC,CAACE,IAAI,GAAGC,uBAAuB,EAAE,CAAC,EAAED,IAAI,GAAGC,uBAAuB,CACrE,CAAC;EAED,MAAMO,MAAM,GAAGT,WAAW,CACxBD,KAAK,EACL,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EACV,CAAC,CAAC,EAAEE,IAAI,EAAE,CAAC,CAAC,EACZE,WAAW,CAACO,KACd,CAAC;EAED,MAAMC,KAAK,GAAGX,WAAW,CACvBD,KAAK,EACL,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EACV,CACEK,yBAAyB,EACzBC,sBAAsB,EACtBD,yBAAyB,CAC1B,EACDD,WAAW,CAACO,KACd,CAAC;EAED,OAAO;IACLE,SAAS,EAAE,CACTN,QAAQ,GACJ;MACAO,UAAU,EAAEL;IACd,CAAC,GACC;MACAM,UAAU,EAAEN;IACd,CAAC,EACH;MACEG,KAAA,EAAAA;IACF,CAAC,CACF;IACDF,MAAA,EAAAA;EACF,CAAC;AACH"}'};function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.size,s=r.vertical,o=i.parallaxScrollingOffset,l=o===void 0?100:o,c=i.parallaxScrollingScale,u=c===void 0?.8:c,A=i.parallaxAdjacentItemScale,d=A===void 0?u**2:A;return function(){var f=[new K.Error,-8,-27],p=function(g){var E=(0,t.interpolate)(g,[-1,0,1],[-a+l,0,a-l]),m=(0,t.interpolate)(g,[-1,0,1],[0,a,0],t.Extrapolate.CLAMP),v=(0,t.interpolate)(g,[-1,0,1],[d,u,d],t.Extrapolate.CLAMP);return{transform:[s?{translateY:E}:{translateX:E},{scale:v}],zIndex:m}};return p._closure={interpolate:t.interpolate,size:a,parallaxScrollingOffset:l,Extrapolate:t.Extrapolate,parallaxAdjacentItemScale:d,parallaxScrollingScale:u,vertical:s},p.__initData=e,p.__workletHash=6622793889829,p.__stackDetails=f,p.__version="3.3.0",p}()}return _o}var Zi={},Cv;function ay(){if(Cv)return Zi;Cv=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.horizontalStackLayout=a,Zi.useHorizontalStackLayout=s,Zi.verticalStackLayout=l;var t=_,e=Uc,n=Tt,r=e.Dimensions.get("window"),i={code:`function anonymous(_value) { +}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/layouts/parallax.ts",sourceMap:'{"version":3,"names":["anonymous","value","interpolate","size","parallaxScrollingOffset","Extrapolate","parallaxAdjacentItemScale","parallaxScrollingScale","vertical","_closure","translate","zIndex","CLAMP","scale","transform","translateY","translateX"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/layouts/parallax.ts"],"mappings":"AA8CS,SAACA,SAAkBA,CAAAC,KAAA;EAAA;IAAAC,WAAA;IAAAC,IAAA;IAAAC,uBAAA;IAAAC,WAAA;IAAAC,yBAAA;IAAAC,sBAAA;IAAAC;EAAA,SAAAC,QAAA;EAExB,MAAMC,SAAS,GAAGR,WAAW,CAC3BD,KAAK,EACL,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EACV,CAAC,CAACE,IAAI,GAAGC,uBAAuB,EAAE,CAAC,EAAED,IAAI,GAAGC,uBAAuB,CACrE,CAAC;EAED,MAAMO,MAAM,GAAGT,WAAW,CACxBD,KAAK,EACL,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EACV,CAAC,CAAC,EAAEE,IAAI,EAAE,CAAC,CAAC,EACZE,WAAW,CAACO,KACd,CAAC;EAED,MAAMC,KAAK,GAAGX,WAAW,CACvBD,KAAK,EACL,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EACV,CACEK,yBAAyB,EACzBC,sBAAsB,EACtBD,yBAAyB,CAC1B,EACDD,WAAW,CAACO,KACd,CAAC;EAED,OAAO;IACLE,SAAS,EAAE,CACTN,QAAQ,GACJ;MACAO,UAAU,EAAEL;IACd,CAAC,GACC;MACAM,UAAU,EAAEN;IACd,CAAC,EACH;MACEG,KAAA,EAAAA;IACF,CAAC,CACF;IACDF,MAAA,EAAAA;EACF,CAAC;AACH"}'};function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.size,s=r.vertical,o=i.parallaxScrollingOffset,l=o===void 0?100:o,c=i.parallaxScrollingScale,u=c===void 0?.8:c,A=i.parallaxAdjacentItemScale,d=A===void 0?u**2:A;return function(){var f=[new K.Error,-8,-27],p=function(g){var E=(0,t.interpolate)(g,[-1,0,1],[-a+l,0,a-l]),m=(0,t.interpolate)(g,[-1,0,1],[0,a,0],t.Extrapolate.CLAMP),v=(0,t.interpolate)(g,[-1,0,1],[d,u,d],t.Extrapolate.CLAMP);return{transform:[s?{translateY:E}:{translateX:E},{scale:v}],zIndex:m}};return p._closure={interpolate:t.interpolate,size:a,parallaxScrollingOffset:l,Extrapolate:t.Extrapolate,parallaxAdjacentItemScale:d,parallaxScrollingScale:u,vertical:s},p.__initData=e,p.__workletHash=6622793889829,p.__stackDetails=f,p.__version="3.3.0",p}()}return Do}var Zi={},Ev;function ay(){if(Ev)return Zi;Ev=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.horizontalStackLayout=a,Zi.useHorizontalStackLayout=s,Zi.verticalStackLayout=l;var t=_,e=Wc,n=Tt,r=e.Dimensions.get("window"),i={code:`function anonymous(_value) { const { screen, modeConfig, @@ -516,7 +516,7 @@ Supported values: ["extend", "clamp", "identity", Extrapolatation.CLAMP, Extrapo zIndex: zIndex, opacity: opacity }; -}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/layouts/stack.ts",sourceMap:'{"version":3,"names":["getCommonStyles","opts","interpolate","_closure","snapDirection","validLength","value","opacityInterval","zIndex","opacity","Math","floor","Number","MIN_VALUE","Error"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/layouts/stack.ts"],"mappings":"AAySA,SAAAA,eAASA,CAAgBC,IAAA,EAKxB;EAAA;IAAAC;EAAA,SAAAC,QAAA;EAGC,MAAM;IAAEC,aAAa,EAAbA,aAAa;IAAEC,WAAW,EAAXA,WAAW;IAAEC,KAAK,EAALA,KAAK;IAAEC,eAAA,EAAAA;EAAgB,CAAC,GAAGN,IAAI;EAEnE,IAAIO,MAAc;EAClB,IAAIC,OAAe;EAEnB,IAAIL,aAAa,KAAK,MAAM,EAAE;IAC5BI,MAAM,GACIE,IAAI,CAACC,KAAK,CAChBT,WAAW,CACTI,KAAK,EACL,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,GAAGM,MAAM,CAACC,SAAS,EAAE,CAAC,EAAER,WAAW,CAAC,EACjD,CACEO,MAAM,CAACC,SAAS,EAChBR,WAAW,EACXA,WAAW,EACXA,WAAW,GAAG,CAAC,EACf,CAAC,CAAC,CAEN,CAAC,GAAG,KACN,CAAC,GAAG,GAAG;IAETI,OAAO,GAAGP,WAAW,CACnBI,KAAK,EACL,CAAC,CAAC,CAAC,EAAE,CAAC,EAAED,WAAW,GAAG,CAAC,EAAEA,WAAW,CAAC,EACrC,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,GAAG,CAACA,WAAW,GAAG,CAAC,IAAIE,eAAe,EAAE,IAAI,CACzD,CAAC;EACH,CAAC,MACI,IAAIH,aAAa,KAAK,OAAO,EAAE;IAClCI,MAAM,GACIE,IAAI,CAACC,KAAK,CAChBT,WAAW,CACTI,KAAK,EACL,CAAC,CAACD,WAAW,EAAE,CAAC,EAAE,CAAC,GAAGO,MAAM,CAACC,SAAS,EAAE,CAAC,EAAE,GAAG,CAAC,EAC/C,CACE,CAAC,EACDR,WAAW,GAAG,CAAC,EACfA,WAAW,EACXA,WAAW,EACXO,MAAM,CAACC,SAAS,CAEpB,CAAC,GAAG,KACN,CAAC,GAAG,GAAG;IACTJ,OAAO,GAAGP,WAAW,CACnBI,KAAK,EACL,CAAC,CAACD,WAAW,EAAE,CAAC,GAAGA,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC,EACrC,CAAC,IAAI,EAAE,CAAC,GAAG,CAACA,WAAW,GAAG,CAAC,IAAIE,eAAe,EAAE,CAAC,EAAE,IAAI,CACzD,CAAC;EACH,CAAC,MACI;IACH,MAAM,IAAIO,KAAK,CAAC,mDAAmD,CAAC;EACtE;EAEA,OAAO;IACLN,MAAM,EAANA,MAAM;IACNC,OAAA,EAAAA;EACF,CAAC;AACH"}'},d=function(){var f=[new K.Error,-2,-27],p=function(g){var E=g.snapDirection,m=g.validLength,v=g.value,C=g.opacityInterval,y,x;if(E==="left")y=Math.floor((0,n.interpolate)(v,[-1.5,-1,-1+Number.MIN_VALUE,0,m],[Number.MIN_VALUE,m,m,m-1,-1])*1e4)/100,x=(0,n.interpolate)(v,[-1,0,m-1,m],[.25,1,1-(m-1)*C,.25]);else if(E==="right")y=Math.floor((0,n.interpolate)(v,[-m,0,1-Number.MIN_VALUE,1,1.5],[1,m-1,m,m,Number.MIN_VALUE])*1e4)/100,x=(0,n.interpolate)(v,[-m,1-m,0,1],[.25,1-(m-1)*C,1,.25]);else throw new Error("snapDirection must be set to either left or right");return{zIndex:y,opacity:x}};return p._closure={interpolate:n.interpolate},p.__initData=A,p.__workletHash=1169076184363,p.__stackDetails=f,p.__version="3.3.0",p}();return Zi}var Ev;function Y5(){if(Ev)return za;Ev=1,Object.defineProperty(za,"__esModule",{value:!0}),za.Layouts=void 0;var t=W5(),e=X5(),n=ay(),r={normal:t.normalLayout,parallax:e.parallaxLayout,horizontalStack:n.horizontalStackLayout,verticalStack:n.verticalStackLayout};return za.Layouts=r,za}var xv;function z5(){if(xv)return bo;xv=1;var t=An;Object.defineProperty(bo,"__esModule",{value:!0}),bo.useLayoutConfig=r;var e=t(_),n=Y5();function r(i){var a=i,s=a.size,o=a.vertical;return e.default.useMemo(function(){var l={size:s,vertical:o};switch(i.mode){case"parallax":return n.Layouts.parallax(l,i.modeConfig);case"horizontal-stack":return n.Layouts.horizontalStack(i.modeConfig);case"vertical-stack":return n.Layouts.verticalStack(i.modeConfig);default:return n.Layouts.normal(l)}},[i.mode,i.modeConfig,s,o])}return bo}var Do={},yv;function q5(){if(yv)return Do;yv=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.useOnProgressChange=i;var t=Tt,e=ou(),n={code:`function anonymous() { +}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/layouts/stack.ts",sourceMap:'{"version":3,"names":["getCommonStyles","opts","interpolate","_closure","snapDirection","validLength","value","opacityInterval","zIndex","opacity","Math","floor","Number","MIN_VALUE","Error"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/layouts/stack.ts"],"mappings":"AAySA,SAAAA,eAASA,CAAgBC,IAAA,EAKxB;EAAA;IAAAC;EAAA,SAAAC,QAAA;EAGC,MAAM;IAAEC,aAAa,EAAbA,aAAa;IAAEC,WAAW,EAAXA,WAAW;IAAEC,KAAK,EAALA,KAAK;IAAEC,eAAA,EAAAA;EAAgB,CAAC,GAAGN,IAAI;EAEnE,IAAIO,MAAc;EAClB,IAAIC,OAAe;EAEnB,IAAIL,aAAa,KAAK,MAAM,EAAE;IAC5BI,MAAM,GACIE,IAAI,CAACC,KAAK,CAChBT,WAAW,CACTI,KAAK,EACL,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,GAAGM,MAAM,CAACC,SAAS,EAAE,CAAC,EAAER,WAAW,CAAC,EACjD,CACEO,MAAM,CAACC,SAAS,EAChBR,WAAW,EACXA,WAAW,EACXA,WAAW,GAAG,CAAC,EACf,CAAC,CAAC,CAEN,CAAC,GAAG,KACN,CAAC,GAAG,GAAG;IAETI,OAAO,GAAGP,WAAW,CACnBI,KAAK,EACL,CAAC,CAAC,CAAC,EAAE,CAAC,EAAED,WAAW,GAAG,CAAC,EAAEA,WAAW,CAAC,EACrC,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,GAAG,CAACA,WAAW,GAAG,CAAC,IAAIE,eAAe,EAAE,IAAI,CACzD,CAAC;EACH,CAAC,MACI,IAAIH,aAAa,KAAK,OAAO,EAAE;IAClCI,MAAM,GACIE,IAAI,CAACC,KAAK,CAChBT,WAAW,CACTI,KAAK,EACL,CAAC,CAACD,WAAW,EAAE,CAAC,EAAE,CAAC,GAAGO,MAAM,CAACC,SAAS,EAAE,CAAC,EAAE,GAAG,CAAC,EAC/C,CACE,CAAC,EACDR,WAAW,GAAG,CAAC,EACfA,WAAW,EACXA,WAAW,EACXO,MAAM,CAACC,SAAS,CAEpB,CAAC,GAAG,KACN,CAAC,GAAG,GAAG;IACTJ,OAAO,GAAGP,WAAW,CACnBI,KAAK,EACL,CAAC,CAACD,WAAW,EAAE,CAAC,GAAGA,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC,EACrC,CAAC,IAAI,EAAE,CAAC,GAAG,CAACA,WAAW,GAAG,CAAC,IAAIE,eAAe,EAAE,CAAC,EAAE,IAAI,CACzD,CAAC;EACH,CAAC,MACI;IACH,MAAM,IAAIO,KAAK,CAAC,mDAAmD,CAAC;EACtE;EAEA,OAAO;IACLN,MAAM,EAANA,MAAM;IACNC,OAAA,EAAAA;EACF,CAAC;AACH"}'},d=function(){var f=[new K.Error,-2,-27],p=function(g){var E=g.snapDirection,m=g.validLength,v=g.value,C=g.opacityInterval,y,x;if(E==="left")y=Math.floor((0,n.interpolate)(v,[-1.5,-1,-1+Number.MIN_VALUE,0,m],[Number.MIN_VALUE,m,m,m-1,-1])*1e4)/100,x=(0,n.interpolate)(v,[-1,0,m-1,m],[.25,1,1-(m-1)*C,.25]);else if(E==="right")y=Math.floor((0,n.interpolate)(v,[-m,0,1-Number.MIN_VALUE,1,1.5],[1,m-1,m,m,Number.MIN_VALUE])*1e4)/100,x=(0,n.interpolate)(v,[-m,1-m,0,1],[.25,1-(m-1)*C,1,.25]);else throw new Error("snapDirection must be set to either left or right");return{zIndex:y,opacity:x}};return p._closure={interpolate:n.interpolate},p.__initData=A,p.__workletHash=1169076184363,p.__stackDetails=f,p.__version="3.3.0",p}();return Zi}var xv;function Y5(){if(xv)return za;xv=1,Object.defineProperty(za,"__esModule",{value:!0}),za.Layouts=void 0;var t=W5(),e=X5(),n=ay(),r={normal:t.normalLayout,parallax:e.parallaxLayout,horizontalStack:n.horizontalStackLayout,verticalStack:n.verticalStackLayout};return za.Layouts=r,za}var yv;function z5(){if(yv)return So;yv=1;var t=An;Object.defineProperty(So,"__esModule",{value:!0}),So.useLayoutConfig=r;var e=t(_),n=Y5();function r(i){var a=i,s=a.size,o=a.vertical;return e.default.useMemo(function(){var l={size:s,vertical:o};switch(i.mode){case"parallax":return n.Layouts.parallax(l,i.modeConfig);case"horizontal-stack":return n.Layouts.horizontalStack(i.modeConfig);case"vertical-stack":return n.Layouts.verticalStack(i.modeConfig);default:return n.Layouts.normal(l)}},[i.mode,i.modeConfig,s,o])}return So}var To={},Iv;function q5(){if(Iv)return To;Iv=1,Object.defineProperty(To,"__esModule",{value:!0}),To.useOnProgressChange=i;var t=Tt,e=ou(),n={code:`function anonymous() { const { offsetX } = this._closure; @@ -544,7 +544,7 @@ Supported values: ["extend", "clamp", "identity", Extrapolatation.CLAMP, Extrapo let absoluteProgress = Math.abs(value / size); if (value > 0) absoluteProgress = rawDataLength - absoluteProgress; if (onProgressChange) runOnJS(onProgressChange)(value, absoluteProgress); -}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useOnProgressChange.ts",sourceMap:'{"version":3,"names":["anonymous","_value","computedOffsetXValueWithAutoFillData","rawDataLength","size","autoFillData","loop","onProgressChange","runOnJS","_closure","value","Math","max","min","absoluteProgress","abs"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useOnProgressChange.ts"],"mappings":"AAuBK,SAAAA,SAAMA,CAAKC,MAAA;EAAA;IAAAC,oCAAA;IAAAC,aAAA;IAAAC,IAAA;IAAAC,YAAA;IAAAC,IAAA;IAAAC,gBAAA;IAAAC;EAAA,SAAAC,QAAA;EACV,IAAIC,KAAK,GAAGR,oCAAoC,CAAC;IAC/CQ,KAAK,EAAET,MAAM;IACbE,aAAa,EAAbA,aAAa;IACbC,IAAI,EAAJA,IAAI;IACJC,YAAY,EAAZA,YAAY;IACZC,IAAA,EAAAA;EACF,CAAC,CAAC;EAEF,IAAI,CAACA,IAAI,EAAE;IACTI,KAAK,GAAGC,IAAI,CAACC,GAAG,CACd,EAAE,CAACT,aAAa,GAAG,CAAC,IAAIC,IAAI,CAAC,EAC7BO,IAAI,CAACE,GAAG,CAACH,KAAK,EAAE,CAAC,CACnB,CAAC;EACH;EAEA,IAAII,gBAAgB,GAAGH,IAAI,CAACI,GAAG,CAACL,KAAK,GAAGN,IAAI,CAAC;EAE7C,IAAIM,KAAK,GAAG,CAAC,EACXI,gBAAgB,GAAGX,aAAa,GAAGW,gBAAgB;EAErD,IAAIP,gBAAgB,EAClBC,OAAO,CAACD,gBAAgB,CAAC,CAACG,KAAK,EAAEI,gBAAgB,CAAC;AACtD"}'};function i(a){var s=a.autoFillData,o=a.loop,l=a.offsetX,c=a.size,u=a.rawDataLength,A=a.onProgressChange;(0,t.useAnimatedReaction)(function(){var d=[new K.Error,-2,-27],f=function(){return l.value};return f._closure={offsetX:l},f.__initData=n,f.__workletHash=0xe0543e9a5ec,f.__stackDetails=d,f.__version="3.3.0",f}(),function(){var d=[new K.Error,-8,-27],f=function(h){var g=(0,e.computedOffsetXValueWithAutoFillData)({value:h,rawDataLength:u,size:c,autoFillData:s,loop:o});o||(g=Math.max(-((u-1)*c),Math.min(g,0)));var E=Math.abs(g/c);g>0&&(E=u-E),A&&(0,t.runOnJS)(A)(g,E)};return f._closure={computedOffsetXValueWithAutoFillData:e.computedOffsetXValueWithAutoFillData,rawDataLength:u,size:c,autoFillData:s,loop:o,onProgressChange:A,runOnJS:t.runOnJS},f.__initData=r,f.__workletHash=2512862808065,f.__stackDetails=d,f.__version="3.3.0",f}(),[o,s,u,A])}return Do}var To={},Iv;function K5(){if(Iv)return To;Iv=1;var t=An;Object.defineProperty(To,"__esModule",{value:!0}),To.usePropsErrorBoundary=n;var e=t(_);function n(r){e.default.useEffect(function(){var i=r.defaultIndex,a=r.dataLength;if(typeof i=="number"&&a>0&&(i<0||i>=a))throw new Error("DefaultIndex must be in the range of data length.");if(!r.mode||r.mode==="parallax"){if(!r.vertical&&!r.width)throw new Error("`width` must be specified for horizontal carousels.");if(r.vertical&&!r.height)throw new Error("`height` must be specified for vertical carousels.")}},[r])}return To}var Oo={},wv;function $5(){if(wv)return Oo;wv=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.useVisibleRanges=n;var t=Tt,e={code:`function anonymous() { +}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useOnProgressChange.ts",sourceMap:'{"version":3,"names":["anonymous","_value","computedOffsetXValueWithAutoFillData","rawDataLength","size","autoFillData","loop","onProgressChange","runOnJS","_closure","value","Math","max","min","absoluteProgress","abs"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useOnProgressChange.ts"],"mappings":"AAuBK,SAAAA,SAAMA,CAAKC,MAAA;EAAA;IAAAC,oCAAA;IAAAC,aAAA;IAAAC,IAAA;IAAAC,YAAA;IAAAC,IAAA;IAAAC,gBAAA;IAAAC;EAAA,SAAAC,QAAA;EACV,IAAIC,KAAK,GAAGR,oCAAoC,CAAC;IAC/CQ,KAAK,EAAET,MAAM;IACbE,aAAa,EAAbA,aAAa;IACbC,IAAI,EAAJA,IAAI;IACJC,YAAY,EAAZA,YAAY;IACZC,IAAA,EAAAA;EACF,CAAC,CAAC;EAEF,IAAI,CAACA,IAAI,EAAE;IACTI,KAAK,GAAGC,IAAI,CAACC,GAAG,CACd,EAAE,CAACT,aAAa,GAAG,CAAC,IAAIC,IAAI,CAAC,EAC7BO,IAAI,CAACE,GAAG,CAACH,KAAK,EAAE,CAAC,CACnB,CAAC;EACH;EAEA,IAAII,gBAAgB,GAAGH,IAAI,CAACI,GAAG,CAACL,KAAK,GAAGN,IAAI,CAAC;EAE7C,IAAIM,KAAK,GAAG,CAAC,EACXI,gBAAgB,GAAGX,aAAa,GAAGW,gBAAgB;EAErD,IAAIP,gBAAgB,EAClBC,OAAO,CAACD,gBAAgB,CAAC,CAACG,KAAK,EAAEI,gBAAgB,CAAC;AACtD"}'};function i(a){var s=a.autoFillData,o=a.loop,l=a.offsetX,c=a.size,u=a.rawDataLength,A=a.onProgressChange;(0,t.useAnimatedReaction)(function(){var d=[new K.Error,-2,-27],f=function(){return l.value};return f._closure={offsetX:l},f.__initData=n,f.__workletHash=0xe0543e9a5ec,f.__stackDetails=d,f.__version="3.3.0",f}(),function(){var d=[new K.Error,-8,-27],f=function(h){var g=(0,e.computedOffsetXValueWithAutoFillData)({value:h,rawDataLength:u,size:c,autoFillData:s,loop:o});o||(g=Math.max(-((u-1)*c),Math.min(g,0)));var E=Math.abs(g/c);g>0&&(E=u-E),A&&(0,t.runOnJS)(A)(g,E)};return f._closure={computedOffsetXValueWithAutoFillData:e.computedOffsetXValueWithAutoFillData,rawDataLength:u,size:c,autoFillData:s,loop:o,onProgressChange:A,runOnJS:t.runOnJS},f.__initData=r,f.__workletHash=2512862808065,f.__stackDetails=d,f.__version="3.3.0",f}(),[o,s,u,A])}return To}var Oo={},wv;function K5(){if(wv)return Oo;wv=1;var t=An;Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.usePropsErrorBoundary=n;var e=t(_);function n(r){e.default.useEffect(function(){var i=r.defaultIndex,a=r.dataLength;if(typeof i=="number"&&a>0&&(i<0||i>=a))throw new Error("DefaultIndex must be in the range of data length.");if(!r.mode||r.mode==="parallax"){if(!r.vertical&&!r.width)throw new Error("`width` must be specified for horizontal carousels.");if(r.vertical&&!r.height)throw new Error("`height` must be specified for vertical carousels.")}},[r])}return Oo}var ko={},bv;function $5(){if(bv)return ko;bv=1,Object.defineProperty(ko,"__esModule",{value:!0}),ko.useVisibleRanges=n;var t=Tt,e={code:`function anonymous() { const { windowSize, translation, @@ -569,8 +569,8 @@ Supported values: ["extend", "clamp", "identity", Extrapolatation.CLAMP, Extrapo negativeRange: negativeRange, positiveRange: positiveRange }; -}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useVisibleRanges.tsx",sourceMap:'{"version":3,"names":["anonymous","windowSize","translation","viewSize","total","_closure","positiveCount","Math","round","negativeCount","curIndex","value","negativeRange","positiveRange"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useVisibleRanges.tsx"],"mappings":"AAuBiC,SAAAA,SAAMA,CAAA;EAAA;IAAAC,UAAA;IAAAC,WAAA;IAAAC,QAAA;IAAAC;EAAA,SAAAC,QAAA;EACnC,MAAMC,aAAa,GAAGC,IAAI,CAACC,KAAK,CAACP,UAAU,GAAG,CAAC,CAAC;EAChD,MAAMQ,aAAa,GAAGR,UAAU,GAAGK,aAAa;EAChD,IAAII,QAAQ,GAAGH,IAAI,CAACC,KAAK,CAAC,CAACN,WAAW,CAACS,KAAK,GAAGR,QAAQ,CAAC;EACxDO,QAAQ,GAAGA,QAAQ,GAAG,CAAC,GAAIA,QAAQ,GAAGN,KAAK,GAAIA,KAAK,GAAGM,QAAQ;EAC/D,MAAME,aAAa,GAAG,CACpB,CAACF,QAAQ,GAAGD,aAAa,GAAGL,KAAK,IAAIA,KAAK,EAC1C,CAACM,QAAQ,GAAG,CAAC,GAAGN,KAAK,IAAIA,KAAK,CAC/B;EACD,MAAMS,aAAa,GAAG,CACpB,CAACH,QAAQ,GAAGN,KAAK,IAAIA,KAAK,EAC1B,CAACM,QAAQ,GAAGJ,aAAa,GAAGF,KAAK,IAAIA,KAAK,CAC3C;EACD,IAAIQ,aAAa,CAAC,CAAC,CAAC,GAAGR,KAAK,IAAIQ,aAAa,CAAC,CAAC,CAAC,GAAGA,aAAa,CAAC,CAAC,CAAC,EAAE;IACnEA,aAAa,CAAC,CAAC,CAAC,GAAGR,KAAK,GAAG,CAAC;IAC5BS,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC;EACtB;EACA,IAAIA,aAAa,CAAC,CAAC,CAAC,GAAGA,aAAa,CAAC,CAAC,CAAC,EAAE;IACvCD,aAAa,CAAC,CAAC,CAAC,GAAGR,KAAK,GAAG,CAAC;IAC5BS,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC;EACtB;EACA,OAAO;IAAED,aAAa,EAAbA,aAAa;IAAEC,aAAA,EAAAA;EAAc,CAAC;AACzC"}'};function n(r){var i=r.total,a=i===void 0?0:i,s=r.viewSize,o=r.translation,l=r.windowSize,c=l===void 0?0:l,u=a<=c?a:c,A=(0,t.useDerivedValue)(function(){var d=[new K.Error,-5,-27],f=function(){var h=Math.round(u/2),g=u-h,E=Math.round(-o.value/s);E=E<0?E%a+a:E;var m=[(E-g+a)%a,(E-1+a)%a],v=[(E+a)%a,(E+h+a)%a];return m[0]<a&&m[0]>m[1]&&(m[1]=a-1,v[0]=0),v[0]>v[1]&&(m[1]=a-1,v[0]=0),{negativeRange:m,positiveRange:v}};return f._closure={windowSize:u,translation:o,viewSize:s,total:a},f.__initData=e,f.__workletHash=1686155145629,f.__stackDetails=d,f.__version="3.3.0",f}(),[a,u,o]);return A}return Oo}var qa={},nd={exports:{}},rd={exports:{}},bv;function j5(){return bv||(bv=1,function(t){function e(n){if(Array.isArray(n))return n}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(rd)),rd.exports}var id={exports:{}},Sv;function Q5(){return Sv||(Sv=1,function(t){function e(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var a,s,o,l,c=[],u=!0,A=!1;try{if(o=(i=i.call(n)).next,r===0){if(Object(i)!==i)return;u=!1}else for(;!(u=(a=o.call(i)).done)&&(c.push(a.value),c.length!==r);u=!0);}catch(d){A=!0,s=d}finally{try{if(!u&&i.return!=null&&(l=i.return(),Object(l)!==l))return}finally{if(A)throw s}}return c}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(id)),id.exports}var ad={exports:{}},sd={exports:{}},_v;function Z5(){return _v||(_v=1,function(t){function e(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,a=Array(r);i<r;i++)a[i]=n[i];return a}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(sd)),sd.exports}var Dv;function J5(){return Dv||(Dv=1,function(t){var e=Z5();function n(r,i){if(r){if(typeof r=="string")return e(r,i);var a={}.toString.call(r).slice(8,-1);return a==="Object"&&r.constructor&&(a=r.constructor.name),a==="Map"||a==="Set"?Array.from(r):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?e(r,i):void 0}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(ad)),ad.exports}var od={exports:{}},Tv;function eM(){return Tv||(Tv=1,function(t){function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(od)),od.exports}var Ov;function tM(){return Ov||(Ov=1,function(t){var e=j5(),n=Q5(),r=J5(),i=eM();function a(s,o){return e(s)||n(s,o)||r(s,o)||i()}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}(nd)),nd.exports}var ko={},kv;function nM(){if(kv)return ko;kv=1;var t=An;Object.defineProperty(ko,"__esModule",{value:!0}),ko.useCheckMounted=n;var e=t(_);function n(){var r=e.default.useRef(!1);return e.default.useEffect(function(){return r.current=!0,function(){r.current=!1}},[]),r}return ko}var Ka={},Mv;function rM(){if(Mv)return Ka;Mv=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.useOffsetX=void 0;var t=Tt,e={code:`function anonymous() { +}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useVisibleRanges.tsx",sourceMap:'{"version":3,"names":["anonymous","windowSize","translation","viewSize","total","_closure","positiveCount","Math","round","negativeCount","curIndex","value","negativeRange","positiveRange"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useVisibleRanges.tsx"],"mappings":"AAuBiC,SAAAA,SAAMA,CAAA;EAAA;IAAAC,UAAA;IAAAC,WAAA;IAAAC,QAAA;IAAAC;EAAA,SAAAC,QAAA;EACnC,MAAMC,aAAa,GAAGC,IAAI,CAACC,KAAK,CAACP,UAAU,GAAG,CAAC,CAAC;EAChD,MAAMQ,aAAa,GAAGR,UAAU,GAAGK,aAAa;EAChD,IAAII,QAAQ,GAAGH,IAAI,CAACC,KAAK,CAAC,CAACN,WAAW,CAACS,KAAK,GAAGR,QAAQ,CAAC;EACxDO,QAAQ,GAAGA,QAAQ,GAAG,CAAC,GAAIA,QAAQ,GAAGN,KAAK,GAAIA,KAAK,GAAGM,QAAQ;EAC/D,MAAME,aAAa,GAAG,CACpB,CAACF,QAAQ,GAAGD,aAAa,GAAGL,KAAK,IAAIA,KAAK,EAC1C,CAACM,QAAQ,GAAG,CAAC,GAAGN,KAAK,IAAIA,KAAK,CAC/B;EACD,MAAMS,aAAa,GAAG,CACpB,CAACH,QAAQ,GAAGN,KAAK,IAAIA,KAAK,EAC1B,CAACM,QAAQ,GAAGJ,aAAa,GAAGF,KAAK,IAAIA,KAAK,CAC3C;EACD,IAAIQ,aAAa,CAAC,CAAC,CAAC,GAAGR,KAAK,IAAIQ,aAAa,CAAC,CAAC,CAAC,GAAGA,aAAa,CAAC,CAAC,CAAC,EAAE;IACnEA,aAAa,CAAC,CAAC,CAAC,GAAGR,KAAK,GAAG,CAAC;IAC5BS,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC;EACtB;EACA,IAAIA,aAAa,CAAC,CAAC,CAAC,GAAGA,aAAa,CAAC,CAAC,CAAC,EAAE;IACvCD,aAAa,CAAC,CAAC,CAAC,GAAGR,KAAK,GAAG,CAAC;IAC5BS,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC;EACtB;EACA,OAAO;IAAED,aAAa,EAAbA,aAAa;IAAEC,aAAA,EAAAA;EAAc,CAAC;AACzC"}'};function n(r){var i=r.total,a=i===void 0?0:i,s=r.viewSize,o=r.translation,l=r.windowSize,c=l===void 0?0:l,u=a<=c?a:c,A=(0,t.useDerivedValue)(function(){var d=[new K.Error,-5,-27],f=function(){var h=Math.round(u/2),g=u-h,E=Math.round(-o.value/s);E=E<0?E%a+a:E;var m=[(E-g+a)%a,(E-1+a)%a],v=[(E+a)%a,(E+h+a)%a];return m[0]<a&&m[0]>m[1]&&(m[1]=a-1,v[0]=0),v[0]>v[1]&&(m[1]=a-1,v[0]=0),{negativeRange:m,positiveRange:v}};return f._closure={windowSize:u,translation:o,viewSize:s,total:a},f.__initData=e,f.__workletHash=1686155145629,f.__stackDetails=d,f.__version="3.3.0",f}(),[a,u,o]);return A}return ko}var qa={},nd={exports:{}},rd={exports:{}},Sv;function j5(){return Sv||(Sv=1,function(t){function e(n){if(Array.isArray(n))return n}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(rd)),rd.exports}var id={exports:{}},_v;function Q5(){return _v||(_v=1,function(t){function e(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var a,s,o,l,c=[],u=!0,A=!1;try{if(o=(i=i.call(n)).next,r===0){if(Object(i)!==i)return;u=!1}else for(;!(u=(a=o.call(i)).done)&&(c.push(a.value),c.length!==r);u=!0);}catch(d){A=!0,s=d}finally{try{if(!u&&i.return!=null&&(l=i.return(),Object(l)!==l))return}finally{if(A)throw s}}return c}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(id)),id.exports}var ad={exports:{}},sd={exports:{}},Dv;function Z5(){return Dv||(Dv=1,function(t){function e(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,a=Array(r);i<r;i++)a[i]=n[i];return a}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(sd)),sd.exports}var Tv;function J5(){return Tv||(Tv=1,function(t){var e=Z5();function n(r,i){if(r){if(typeof r=="string")return e(r,i);var a={}.toString.call(r).slice(8,-1);return a==="Object"&&r.constructor&&(a=r.constructor.name),a==="Map"||a==="Set"?Array.from(r):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?e(r,i):void 0}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(ad)),ad.exports}var od={exports:{}},Ov;function eM(){return Ov||(Ov=1,function(t){function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(od)),od.exports}var kv;function tM(){return kv||(kv=1,function(t){var e=j5(),n=Q5(),r=J5(),i=eM();function a(s,o){return e(s)||n(s,o)||r(s,o)||i()}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}(nd)),nd.exports}var Mo={},Mv;function nM(){if(Mv)return Mo;Mv=1;var t=An;Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.useCheckMounted=n;var e=t(_);function n(){var r=e.default.useRef(!1);return e.default.useEffect(function(){return r.current=!0,function(){r.current=!1}},[]),r}return Mo}var Ka={},Pv;function rM(){if(Pv)return Ka;Pv=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.useOffsetX=void 0;var t=Tt,e={code:`function anonymous() { const { visibleRanges, index, @@ -596,7 +596,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return interpolate(handlerOffset.value, inputRange, outputRange, Extrapolate.CLAMP); } return handlerOffset.value + size * index; -}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useOffsetX.ts",sourceMap:'{"version":3,"names":["anonymous","visibleRanges","index","loop","TOTAL_WIDTH","MIN","HALF_WIDTH","startPos","MAX","interpolate","handlerOffset","Extrapolate","size","_closure","negativeRange","positiveRange","value","Number","MAX_SAFE_INTEGER","inputRange","MIN_VALUE","outputRange","CLAMP"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useOffsetX.ts"],"mappings":"AA8C4B,SAAAA,SAAMA,CAAA;EAAA;IAAAC,aAAA;IAAAC,KAAA;IAAAC,IAAA;IAAAC,WAAA;IAAAC,GAAA;IAAAC,UAAA;IAAAC,QAAA;IAAAC,GAAA;IAAAC,WAAA;IAAAC,aAAA;IAAAC,WAAA;IAAAC;EAAA,SAAAC,QAAA;EAC9B,MAAM;IAAEC,aAAa,EAAbA,aAAa;IAAEC,aAAA,EAAAA;EAAc,CAAC,GAAGd,aAAa,CAACe,KAAK;EAC5D,IACE,CAACd,KAAK,GAAGY,aAAa,CAAC,CAAC,CAAC,IAAIZ,KAAK,GAAGY,aAAa,CAAC,CAAC,CAAC,MAC3CZ,KAAK,GAAGa,aAAa,CAAC,CAAC,CAAC,IAAIb,KAAK,GAAGa,aAAa,CAAC,CAAC,CAAC,CAAC,EAE/D,OAAOE,MAAM,CAACC,gBAAgB;EAEhC,IAAIf,IAAI,EAAE;IACR,MAAMgB,UAAU,GAAG,CACjB,CAACf,WAAW,EACZC,GAAG,GAAGC,UAAU,GAAGC,QAAQ,GAAGU,MAAM,CAACG,SAAS,EAC9Cf,GAAG,GAAGC,UAAU,GAAGC,QAAQ,EAC3B,CAAC,EACDC,GAAG,GAAGF,UAAU,GAAGC,QAAQ,EAC3BC,GAAG,GAAGF,UAAU,GAAGC,QAAQ,GAAGU,MAAM,CAACG,SAAS,EAC9ChB,WAAW,CACZ;IAED,MAAMiB,WAAW,GAAG,CAClBd,QAAQ,EACRC,GAAG,GAAGF,UAAU,GAAGW,MAAM,CAACG,SAAS,EACnCf,GAAG,GAAGC,UAAU,EAChBC,QAAQ,EACRC,GAAG,GAAGF,UAAU,EAChBD,GAAG,GAAGC,UAAU,GAAGW,MAAM,CAACG,SAAS,EACnCb,QAAQ,CACT;IAED,OAAOE,WAAW,CAChBC,aAAa,CAACM,KAAK,EACnBG,UAAU,EACVE,WAAW,EACXV,WAAW,CAACW,KACd,CAAC;EACH;EAEA,OAAOZ,aAAa,CAACM,KAAK,GAAGJ,IAAI,GAAGV,KAAK;AAC3C"}'},n=function(i,a){var s=i.handlerOffset,o=i.index,l=i.size,c=i.loop,u=i.dataLength,A=i.type,d=A===void 0?"positive":A,f=i.viewCount,p=u,h=p-1,g=l*p,E=.5*l,m=f??Math.round((p-1)/2),v=d==="positive"?m:h-m,C=l*o;o>v&&(C=(o-p)*l);var y=v*l,x=-((h-v)*l),w=(0,t.useDerivedValue)(function(){var S=[new K.Error,-13,-27],D=function(){var b=a.value,O=b.negativeRange,T=b.positiveRange;if((o<O[0]||o>O[1])&&(o<T[0]||o>T[1]))return Number.MAX_SAFE_INTEGER;if(c){var M=[-g,x-E-C-Number.MIN_VALUE,x-E-C,0,y+E-C,y+E-C+Number.MIN_VALUE,g],P=[C,y+E-Number.MIN_VALUE,x-E,C,y+E,x-E+Number.MIN_VALUE,C];return(0,t.interpolate)(s.value,M,P,t.Extrapolate.CLAMP)}return s.value+l*o};return D._closure={visibleRanges:a,index:o,loop:c,TOTAL_WIDTH:g,MIN:x,HALF_WIDTH:E,startPos:C,MAX:y,interpolate:t.interpolate,handlerOffset:s,Extrapolate:t.Extrapolate,size:l},D.__initData=e,D.__workletHash=63816918029,D.__stackDetails=S,D.__version="3.3.0",D}(),[c,u,m,d,l,a]);return w};return Ka.useOffsetX=n,Ka}var $a={},Pv;function iM(){if(Pv)return $a;Pv=1;var t=An;Object.defineProperty($a,"__esModule",{value:!0}),$a.LazyView=void 0,t(_);var e=k,n=function(i){var a=i.shouldUpdate,s=i.children;return a?(0,e.jsx)(e.Fragment,{children:s}):(0,e.jsx)(e.Fragment,{})};return $a.LazyView=n,$a}var ja={},Fv;function Rh(){if(Fv)return ja;Fv=1;var t=An;Object.defineProperty(ja,"__esModule",{value:!0}),ja.CTX=void 0;var e=t(_),n=e.default.createContext({});return ja.CTX=n,ja}var Rv;function aM(){if(Rv)return qa;Rv=1;var t=An;Object.defineProperty(qa,"__esModule",{value:!0}),qa.BaseLayout=void 0;var e=t(tM()),n=t(_),r=u(Tt),i=nM(),a=rM(),s=iM(),o=Rh(),l=k;function c(g){if(typeof WeakMap!="function")return null;var E=new WeakMap,m=new WeakMap;return(c=function(C){return C?m:E})(g)}function u(g,E){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var m=c(E);if(m&&m.has(g))return m.get(g);var v={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in g)if(y!=="default"&&Object.prototype.hasOwnProperty.call(g,y)){var x=C?Object.getOwnPropertyDescriptor(g,y):null;x&&(x.get||x.set)?Object.defineProperty(v,y,x):v[y]=g[y]}return v.default=g,m&&m.set(g,v),v}var A={code:`function anonymous() { +}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useOffsetX.ts",sourceMap:'{"version":3,"names":["anonymous","visibleRanges","index","loop","TOTAL_WIDTH","MIN","HALF_WIDTH","startPos","MAX","interpolate","handlerOffset","Extrapolate","size","_closure","negativeRange","positiveRange","value","Number","MAX_SAFE_INTEGER","inputRange","MIN_VALUE","outputRange","CLAMP"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useOffsetX.ts"],"mappings":"AA8C4B,SAAAA,SAAMA,CAAA;EAAA;IAAAC,aAAA;IAAAC,KAAA;IAAAC,IAAA;IAAAC,WAAA;IAAAC,GAAA;IAAAC,UAAA;IAAAC,QAAA;IAAAC,GAAA;IAAAC,WAAA;IAAAC,aAAA;IAAAC,WAAA;IAAAC;EAAA,SAAAC,QAAA;EAC9B,MAAM;IAAEC,aAAa,EAAbA,aAAa;IAAEC,aAAA,EAAAA;EAAc,CAAC,GAAGd,aAAa,CAACe,KAAK;EAC5D,IACE,CAACd,KAAK,GAAGY,aAAa,CAAC,CAAC,CAAC,IAAIZ,KAAK,GAAGY,aAAa,CAAC,CAAC,CAAC,MAC3CZ,KAAK,GAAGa,aAAa,CAAC,CAAC,CAAC,IAAIb,KAAK,GAAGa,aAAa,CAAC,CAAC,CAAC,CAAC,EAE/D,OAAOE,MAAM,CAACC,gBAAgB;EAEhC,IAAIf,IAAI,EAAE;IACR,MAAMgB,UAAU,GAAG,CACjB,CAACf,WAAW,EACZC,GAAG,GAAGC,UAAU,GAAGC,QAAQ,GAAGU,MAAM,CAACG,SAAS,EAC9Cf,GAAG,GAAGC,UAAU,GAAGC,QAAQ,EAC3B,CAAC,EACDC,GAAG,GAAGF,UAAU,GAAGC,QAAQ,EAC3BC,GAAG,GAAGF,UAAU,GAAGC,QAAQ,GAAGU,MAAM,CAACG,SAAS,EAC9ChB,WAAW,CACZ;IAED,MAAMiB,WAAW,GAAG,CAClBd,QAAQ,EACRC,GAAG,GAAGF,UAAU,GAAGW,MAAM,CAACG,SAAS,EACnCf,GAAG,GAAGC,UAAU,EAChBC,QAAQ,EACRC,GAAG,GAAGF,UAAU,EAChBD,GAAG,GAAGC,UAAU,GAAGW,MAAM,CAACG,SAAS,EACnCb,QAAQ,CACT;IAED,OAAOE,WAAW,CAChBC,aAAa,CAACM,KAAK,EACnBG,UAAU,EACVE,WAAW,EACXV,WAAW,CAACW,KACd,CAAC;EACH;EAEA,OAAOZ,aAAa,CAACM,KAAK,GAAGJ,IAAI,GAAGV,KAAK;AAC3C"}'},n=function(i,a){var s=i.handlerOffset,o=i.index,l=i.size,c=i.loop,u=i.dataLength,A=i.type,d=A===void 0?"positive":A,f=i.viewCount,p=u,h=p-1,g=l*p,E=.5*l,m=f??Math.round((p-1)/2),v=d==="positive"?m:h-m,C=l*o;o>v&&(C=(o-p)*l);var y=v*l,x=-((h-v)*l),w=(0,t.useDerivedValue)(function(){var S=[new K.Error,-13,-27],D=function(){var b=a.value,O=b.negativeRange,T=b.positiveRange;if((o<O[0]||o>O[1])&&(o<T[0]||o>T[1]))return Number.MAX_SAFE_INTEGER;if(c){var M=[-g,x-E-C-Number.MIN_VALUE,x-E-C,0,y+E-C,y+E-C+Number.MIN_VALUE,g],P=[C,y+E-Number.MIN_VALUE,x-E,C,y+E,x-E+Number.MIN_VALUE,C];return(0,t.interpolate)(s.value,M,P,t.Extrapolate.CLAMP)}return s.value+l*o};return D._closure={visibleRanges:a,index:o,loop:c,TOTAL_WIDTH:g,MIN:x,HALF_WIDTH:E,startPos:C,MAX:y,interpolate:t.interpolate,handlerOffset:s,Extrapolate:t.Extrapolate,size:l},D.__initData=e,D.__workletHash=63816918029,D.__stackDetails=S,D.__version="3.3.0",D}(),[c,u,m,d,l,a]);return w};return Ka.useOffsetX=n,Ka}var $a={},Fv;function iM(){if(Fv)return $a;Fv=1;var t=An;Object.defineProperty($a,"__esModule",{value:!0}),$a.LazyView=void 0,t(_);var e=k,n=function(i){var a=i.shouldUpdate,s=i.children;return a?(0,e.jsx)(e.Fragment,{children:s}):(0,e.jsx)(e.Fragment,{})};return $a.LazyView=n,$a}var ja={},Rv;function Nh(){if(Rv)return ja;Rv=1;var t=An;Object.defineProperty(ja,"__esModule",{value:!0}),ja.CTX=void 0;var e=t(_),n=e.default.createContext({});return ja.CTX=n,ja}var Nv;function aM(){if(Nv)return qa;Nv=1;var t=An;Object.defineProperty(qa,"__esModule",{value:!0}),qa.BaseLayout=void 0;var e=t(tM()),n=t(_),r=u(Tt),i=nM(),a=rM(),s=iM(),o=Nh(),l=k;function c(g){if(typeof WeakMap!="function")return null;var E=new WeakMap,m=new WeakMap;return(c=function(C){return C?m:E})(g)}function u(g,E){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var m=c(E);if(m&&m.has(g))return m.get(g);var v={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in g)if(y!=="default"&&Object.prototype.hasOwnProperty.call(g,y)){var x=C?Object.getOwnPropertyDescriptor(g,y):null;x&&(x.get||x.set)?Object.defineProperty(v,y,x):v[y]=g[y]}return v.default=g,m&&m.set(g,v),v}var A={code:`function anonymous() { const { x, size @@ -621,7 +621,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho visibleRanges } = this._closure; runOnJS(updateView)(visibleRanges.value.negativeRange, visibleRanges.value.positiveRange); -}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/layouts/BaseLayout.tsx",sourceMap:'{"version":3,"names":["anonymous","runOnJS","updateView","visibleRanges","_closure","value","negativeRange","positiveRange"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/layouts/BaseLayout.tsx"],"mappings":"AA4FI,SAAAA,SAAMA,CAAA;EAAA;IAAAC,OAAA;IAAAC,UAAA;IAAAC;EAAA,SAAAC,QAAA;EACJH,OAAO,CAACC,UAAU,CAAC,CACjBC,aAAa,CAACE,KAAK,CAACC,aAAa,EACjCH,aAAa,CAACE,KAAK,CAACE,aACtB,CAAC;AACH"}'},h=function(E){var m=(0,i.useCheckMounted)(),v=E.handlerOffset,C=E.index,y=E.children,x=E.visibleRanges,w=E.animationStyle,S=n.default.useContext(o.CTX),D=S.props,I=D.loop,b=D.dataLength,O=D.width,T=D.height,M=D.vertical,P=D.customConfig,R=D.mode,W=D.modeConfig,N=M?T:O,U=n.default.useState(!1),Y=(0,e.default)(U,2),G=Y[0],H=Y[1],L=Object.assign({handlerOffset:v,index:C,size:N,dataLength:b,loop:I},typeof P=="function"?P():{});if(R==="horizontal-stack"){var B=W,X=B.snapDirection,z=B.showLength;L={handlerOffset:v,index:C,size:N,dataLength:b,loop:I,type:X==="right"?"negative":"positive",viewCount:z}}var q=(0,a.useOffsetX)(L,x),Q=(0,r.useDerivedValue)(function(){var re=[new K.Error,-3,-27],Z=function(){return q.value/N};return Z._closure={x:q,size:N},Z.__initData=A,Z.__workletHash=3217166169285,Z.__stackDetails=re,Z.__version="3.3.0",Z}(),[q,N]),ae=(0,r.useAnimatedStyle)(function(){var re=[new K.Error,-4,-27],Z=function(){return w(q.value/N)};return Z._closure={animationStyle:w,x:q,size:N},Z.__initData=d,Z.__workletHash=0xa4748822602,Z.__stackDetails=re,Z.__version="3.3.0",Z}(),[w]),te=n.default.useCallback(function(re,Z){m.current&&H(C>=re[0]&&C<=re[1]||C>=Z[0]&&C<=Z[1])},[C,m]);return(0,r.useAnimatedReaction)(function(){var re=[new K.Error,-2,-27],Z=function(){return x.value};return Z._closure={visibleRanges:x},Z.__initData=f,Z.__workletHash=0xa1b769d9fec,Z.__stackDetails=re,Z.__version="3.3.0",Z}(),function(){var re=[new K.Error,-4,-27],Z=function(){(0,r.runOnJS)(te)(x.value.negativeRange,x.value.positiveRange)};return Z._closure={runOnJS:r.runOnJS,updateView:te,visibleRanges:x},Z.__initData=p,Z.__workletHash=0xdc25395e6c5,Z.__stackDetails=re,Z.__version="3.3.0",Z}(),[x.value]),(0,l.jsx)(r.default.View,{style:[{width:O||"100%",height:T||"100%",position:"absolute"},ae],testID:`__CAROUSEL_ITEM_${C}_${G?"READY":"NOT_READY"}__`,children:(0,l.jsx)(s.LazyView,{shouldUpdate:G,children:y({animationValue:Q})})})};return qa.BaseLayout=h,qa}var Qa={},Nv;function sM(){if(Nv)return Qa;Nv=1;var t=An;Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.ScrollViewGesture=void 0;var e=t(_),n=ny,r=c(Tt),i=Fh(),a=Rh(),s=ry(),o=k;function l(b){if(typeof WeakMap!="function")return null;var O=new WeakMap,T=new WeakMap;return(l=function(P){return P?T:O})(b)}function c(b,O){if(b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var T=l(O);if(T&&T.has(b))return T.get(b);var M={},P=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in b)if(R!=="default"&&Object.prototype.hasOwnProperty.call(b,R)){var W=P?Object.getOwnPropertyDescriptor(b,R):null;W&&(W.get||W.set)?Object.defineProperty(M,R,W):M[R]=b[R]}return M.default=b,T&&T.set(b,M),M}var u={code:`function anonymous() { +}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/layouts/BaseLayout.tsx",sourceMap:'{"version":3,"names":["anonymous","runOnJS","updateView","visibleRanges","_closure","value","negativeRange","positiveRange"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/layouts/BaseLayout.tsx"],"mappings":"AA4FI,SAAAA,SAAMA,CAAA;EAAA;IAAAC,OAAA;IAAAC,UAAA;IAAAC;EAAA,SAAAC,QAAA;EACJH,OAAO,CAACC,UAAU,CAAC,CACjBC,aAAa,CAACE,KAAK,CAACC,aAAa,EACjCH,aAAa,CAACE,KAAK,CAACE,aACtB,CAAC;AACH"}'},h=function(E){var m=(0,i.useCheckMounted)(),v=E.handlerOffset,C=E.index,y=E.children,x=E.visibleRanges,w=E.animationStyle,S=n.default.useContext(o.CTX),D=S.props,I=D.loop,b=D.dataLength,O=D.width,T=D.height,M=D.vertical,P=D.customConfig,R=D.mode,W=D.modeConfig,N=M?T:O,U=n.default.useState(!1),Y=(0,e.default)(U,2),G=Y[0],H=Y[1],L=Object.assign({handlerOffset:v,index:C,size:N,dataLength:b,loop:I},typeof P=="function"?P():{});if(R==="horizontal-stack"){var B=W,X=B.snapDirection,z=B.showLength;L={handlerOffset:v,index:C,size:N,dataLength:b,loop:I,type:X==="right"?"negative":"positive",viewCount:z}}var q=(0,a.useOffsetX)(L,x),Q=(0,r.useDerivedValue)(function(){var re=[new K.Error,-3,-27],Z=function(){return q.value/N};return Z._closure={x:q,size:N},Z.__initData=A,Z.__workletHash=3217166169285,Z.__stackDetails=re,Z.__version="3.3.0",Z}(),[q,N]),ae=(0,r.useAnimatedStyle)(function(){var re=[new K.Error,-4,-27],Z=function(){return w(q.value/N)};return Z._closure={animationStyle:w,x:q,size:N},Z.__initData=d,Z.__workletHash=0xa4748822602,Z.__stackDetails=re,Z.__version="3.3.0",Z}(),[w]),te=n.default.useCallback(function(re,Z){m.current&&H(C>=re[0]&&C<=re[1]||C>=Z[0]&&C<=Z[1])},[C,m]);return(0,r.useAnimatedReaction)(function(){var re=[new K.Error,-2,-27],Z=function(){return x.value};return Z._closure={visibleRanges:x},Z.__initData=f,Z.__workletHash=0xa1b769d9fec,Z.__stackDetails=re,Z.__version="3.3.0",Z}(),function(){var re=[new K.Error,-4,-27],Z=function(){(0,r.runOnJS)(te)(x.value.negativeRange,x.value.positiveRange)};return Z._closure={runOnJS:r.runOnJS,updateView:te,visibleRanges:x},Z.__initData=p,Z.__workletHash=0xdc25395e6c5,Z.__stackDetails=re,Z.__version="3.3.0",Z}(),[x.value]),(0,l.jsx)(r.default.View,{style:[{width:O||"100%",height:T||"100%",position:"absolute"},ae],testID:`__CAROUSEL_ITEM_${C}_${G?"READY":"NOT_READY"}__`,children:(0,l.jsx)(s.LazyView,{shouldUpdate:G,children:y({animationValue:Q})})})};return qa.BaseLayout=h,qa}var Qa={},Bv;function sM(){if(Bv)return Qa;Bv=1;var t=An;Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.ScrollViewGesture=void 0;var e=t(_),n=ny,r=c(Tt),i=Rh(),a=Nh(),s=ry(),o=k;function l(b){if(typeof WeakMap!="function")return null;var O=new WeakMap,T=new WeakMap;return(l=function(P){return P?T:O})(b)}function c(b,O){if(b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var T=l(O);if(T&&T.has(b))return T.get(b);var M={},P=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in b)if(R!=="default"&&Object.prototype.hasOwnProperty.call(b,R)){var W=P?Object.getOwnPropertyDescriptor(b,R):null;W&&(W.get||W.set)?Object.defineProperty(M,R,W):M[R]=b[R]}return M.default=b,T&&T.set(b,M),M}var u={code:`function anonymous() { const { vertical } = this._closure; @@ -888,7 +888,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho endWithSpring(onScrollEnd); } if (!infinite) touching.value = false; -}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/ScrollViewGesture.tsx",sourceMap:'{"version":3,"names":["anonymous","e","ctx","scrollEndVelocity","isHorizontal","scrollEndTranslation","maxScrollDistancePerSwipe","size","translation","withSpring","withProcessTranslation","onScrollEnd","endWithSpring","infinite","touching","_closure","velocityX","velocityY","translationX","translationY","value","totalTranslation","Math","abs","nextPage","round","panOffset","sign"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/ScrollViewGesture.tsx"],"mappings":"AAsTa,SAACA,SAAMA,CAAKC,CAAA,EAAAC,GAAA;EAAA;IAAAC,iBAAA;IAAAC,YAAA;IAAAC,oBAAA;IAAAC,yBAAA;IAAAC,IAAA;IAAAC,WAAA;IAAAC,UAAA;IAAAC,sBAAA;IAAAC,WAAA;IAAAC,aAAA;IAAAC,QAAA;IAAAC;EAAA,SAAAC,QAAA;EACjB,MAAM;IAAEC,SAAS,EAATA,SAAS;IAAEC,SAAS,EAATA,SAAS;IAAEC,YAAY,EAAZA,YAAY;IAAEC,YAAA,EAAAA;EAAa,CAAC,GAAGlB,CAAC;EAC9DE,iBAAiB,CAACiB,KAAK,GAAGhB,YAAY,CAACgB,KAAK,GACxCJ,SAAS,GACTC,SAAS;EACbZ,oBAAoB,CAACe,KAAK,GAAGhB,YAAY,CAACgB,KAAK,GAC3CF,YAAY,GACZC,YAAY;EAEhB,MAAME,gBAAgB,GAAGjB,YAAY,CAACgB,KAAK,GAAGF,YAAY,GAAGC,YAAY;EAEzE,IAAI,OAAOb,yBAAyB,KAAK,QAAQ,IAAIgB,IAAI,CAACC,GAAG,CAACF,gBAAgB,CAAC,GAAGf,yBAAyB,EAAE;IAC3G,MAAMkB,QAAQ,GAAGF,IAAI,CAACG,KAAK,CAAC,CAACvB,GAAG,CAACwB,SAAS,GAAGpB,yBAAyB,GAAGgB,IAAI,CAACK,IAAI,CAACN,gBAAgB,CAAC,IAAId,IAAI,CAAC,GAAGA,IAAI;IACpHC,WAAW,CAACY,KAAK,GAAGX,UAAU,CAACC,sBAAsB,CAACc,QAAQ,CAAC,EAAEb,WAAW,CAAC;EAC/E,CAAC,MACI;IACHC,aAAa,CAACD,WAAW,CAAC;EAC5B;EAEA,IAAI,CAACE,QAAQ,EACXC,QAAQ,CAACM,KAAK,GAAG,KAAK;AAC1B"}'},D=function(O){var T=e.default.useContext(a.CTX),M=T.props,P=M.vertical,R=M.pagingEnabled,W=M.snapEnabled,N=M.panGestureHandlerProps,U=M.loop,Y=M.scrollAnimationDuration,G=M.withAnimation,H=M.enabled,L=M.dataLength,B=M.overscrollEnabled,X=M.maxScrollDistancePerSwipe,z=O.size,q=O.translation,Q=O.testID,ae=O.style,te=ae===void 0?{}:ae,re=O.onScrollBegin,Z=O.onScrollEnd,ie=O.onTouchBegin,we=O.onTouchEnd,be=L,Se=(0,r.useDerivedValue)(function(){var Ie=[new K.Error,-2,-27],$=function(){return!P};return $._closure={vertical:P},$.__initData=u,$.__workletHash=0x92fc1b734e8,$.__stackDetails=Ie,$.__version="3.3.0",$}(),[P]),ye=(0,r.useSharedValue)(!1),ne=(0,r.useSharedValue)(0),Be=(0,r.useSharedValue)(0),ut=(0,r.useAnimatedRef)(),me=e.default.useCallback(function(){var Ie=[new K.Error,-7,-27],$=function(){if(!U&&!B){var Ce=(0,r.measure)(ut),fe=Ce.width,Ge=fe===void 0?0:fe;return L*z<Ge?0:L*z-Ge}return L*z};return $._closure={infinite:U,overscrollEnabled:B,measure:r.measure,containerRef:ut,dataLength:L,size:z},$.__initData=A,$.__workletHash=736417391548,$.__stackDetails=Ie,$.__version="3.3.0",$}(),[U,z,L,B]),de=e.default.useCallback(function(){var Ie=[new K.Error,-6,-27],$=function(Ce,fe){var Ge={type:"timing",config:{duration:Y+100,easing:i.Easing.easeOutQuart}};return(0,s.dealWithAnimation)(G??Ge)(Ce,function(){var De=[new K.Error,-3,-27],xe=function(ft){ft&&fe&&(0,r.runOnJS)(fe)()};return xe._closure={onFinished:fe,runOnJS:r.runOnJS},xe.__initData=f,xe.__workletHash=0xe3f2cebca98,xe.__stackDetails=De,xe.__version="3.3.0",xe}())};return $._closure={scrollAnimationDuration:Y,Easing:i.Easing,dealWithAnimation:s.dealWithAnimation,withAnimation:G,runOnJS:r.runOnJS},$.__initData=d,$.__workletHash=38454346678,$.__stackDetails=Ie,$.__version="3.3.0",$}(),[Y,G]),dt=e.default.useCallback(function(){var Ie=[new K.Error,-14,-27],$=function(Ce){var fe=q.value,Ge=Be.value,De=(0,r.withDecay)({velocity:Ge,deceleration:.999});if(typeof X=="number"&&Math.abs(ne.value)>X)De=fe;else{if(R){var xe=-(ne.value>=0?1:-1),Ut=xe<0?Math.ceil:Math.floor,ft=Ut(-q.value/z);if(U){var Ot=ft+xe;De=de(gr(-Ot*z),Ce)}else{var Gn=Math.min(be-1,Math.max(0,ft+xe));De=de(gr(-Gn*z),Ce)}}if(!R&&W){var Da=Math.round((fe+Ge*.4)/z)*z;De=de(gr(Da),Ce)}}q.value=De;function gr(zr){if(!U&&!B){var cu=me(),uu=Math.sign(zr);return uu*Math.max(0,Math.min(cu,Math.abs(zr)))}return zr}};return $._closure={translation:q,scrollEndVelocity:Be,withDecay:r.withDecay,maxScrollDistancePerSwipe:X,scrollEndTranslation:ne,pagingEnabled:R,size:z,infinite:U,withSpring:de,maxPage:be,snapEnabled:W,overscrollEnabled:B,getLimit:me},$.__initData=p,$.__workletHash=0xe2f395fe550,$.__stackDetails=Ie,$.__version="3.3.0",$}(),[de,z,be,U,W,q,R,Be.value,X,ne.value]),At=e.default.useCallback(function(){var Ie=[new K.Error,-4,-27],$=function(Ce){Ce&&(ye.value=!1,Z&&(0,r.runOnJS)(Z)())};return $._closure={touching:ye,onScrollEnd:Z,runOnJS:r.runOnJS},$.__initData=h,$.__workletHash=0xd66a2cd499c,$.__stackDetails=Ie,$.__version="3.3.0",$}(),[Z,ye]),Vt=e.default.useCallback(function(){var Ie=[new K.Error,-6,-27],$=function(){ye.value=!0,q.value=(0,r.withDecay)({velocity:Be.value},function(){var Ce=[new K.Error,-2,-27],fe=function(De){return At(De)};return fe._closure={onFinish:At},fe.__initData=E,fe.__workletHash=0xa47406a7948,fe.__stackDetails=Ce,fe.__version="3.3.0",fe}())};return $._closure={touching:ye,translation:q,withDecay:r.withDecay,scrollEndVelocity:Be,onFinish:At},$.__initData=g,$.__workletHash=0xd5579ffb432,$.__stackDetails=Ie,$.__version="3.3.0",$}(),[At,Be.value,ye,q]),pt=e.default.useCallback(function(){var Ie=[new K.Error,-9,-27],$=function(){if(!ye.value){if(q.value>0){if(ne.value<0){Vt();return}if(!U){q.value=de(0);return}}if(q.value<-((be-1)*z)){if(ne.value>0){Vt();return}U||(q.value=de(-((be-1)*z)))}}};return $._closure={touching:ye,translation:q,scrollEndTranslation:ne,activeDecay:Vt,infinite:U,withSpring:de,maxPage:be,size:z},$.__initData=m,$.__workletHash=5253258937186,$.__stackDetails=Ie,$.__version="3.3.0",$}(),[ye.value,q,be,z,ne.value,U,Vt,de]);(0,r.useAnimatedReaction)(function(){var Ie=[new K.Error,-2,-27],$=function(){return q.value};return $._closure={translation:q},$.__initData=v,$.__workletHash=0xe7d5a122b2c,$.__stackDetails=Ie,$.__version="3.3.0",$}(),function(){var Ie=[new K.Error,-3,-27],$=function(){R||pt()};return $._closure={pagingEnabled:R,resetBoundary:pt},$.__initData=C,$.__workletHash=0xb517b95180b,$.__stackDetails=Ie,$.__version="3.3.0",$}(),[R,pt]);var Ht=function(){var Ie=[new K.Error,-4,-27],$=function(Ce){if(!U&&!B){var fe=me(),Ge=Math.sign(Ce);return Ge*Math.max(0,Math.min(fe,Math.abs(Ce)))}return Ce};return $._closure={infinite:U,overscrollEnabled:B,getLimit:me},$.__initData=y,$.__workletHash=0xa64a453634d,$.__stackDetails=Ie,$.__version="3.3.0",$}(),_a=(0,r.useAnimatedGestureHandler)({onStart:function(){var Ie=[new K.Error,-10,-27],$=function(Ce,fe){ye.value=!0,fe.validStart=!0,re&&(0,r.runOnJS)(re)(),fe.max=(be-1)*z,!U&&!B&&(fe.max=me()),fe.panOffset=q.value};return $._closure={touching:ye,onScrollBegin:re,runOnJS:r.runOnJS,maxPage:be,size:z,infinite:U,overscrollEnabled:B,getLimit:me,translation:q},$.__initData=x,$.__workletHash=6283859030724,$.__stackDetails=Ie,$.__version="3.3.0",$}(),onActive:function(){var Ie=[new K.Error,-7,-27],$=function(Ce,fe){fe.validStart&&(fe.validStart=!1,(0,r.cancelAnimation)(q)),ye.value=!0;var Ge=Ce.translationX,De=Ce.translationY,xe=Se.value?Ge:De;if(typeof X=="number"&&Math.abs(xe)>X){var Ut=Math.abs(xe)-X,ft=X+Ut*.5;Ge=Se.value?ft*Math.sign(Ge):Ge,De=Se.value?De:ft*Math.sign(De)}var Ot=Se.value?Ge:De;if(!U&&(q.value>0||q.value<-fe.max)){var Gn=q.value>0?0:-fe.max,Da=Gn-fe.panOffset,gr=Ot-Da;q.value=Gn+gr*.5;return}var zr=fe.panOffset+Ot;q.value=zr};return $._closure={cancelAnimation:r.cancelAnimation,translation:q,touching:ye,isHorizontal:Se,maxScrollDistancePerSwipe:X,infinite:U},$.__initData=w,$.__workletHash=0xd2eceeda264,$.__stackDetails=Ie,$.__version="3.3.0",$}(),onEnd:function(){var Ie=[new K.Error,-13,-27],$=function(Ce,fe){var Ge=Ce.velocityX,De=Ce.velocityY,xe=Ce.translationX,Ut=Ce.translationY;Be.value=Se.value?Ge:De,ne.value=Se.value?xe:Ut;var ft=Se.value?xe:Ut;if(typeof X=="number"&&Math.abs(ft)>X){var Ot=Math.round((fe.panOffset+X*Math.sign(ft))/z)*z;q.value=de(Ht(Ot),Z)}else dt(Z);U||(ye.value=!1)};return $._closure={scrollEndVelocity:Be,isHorizontal:Se,scrollEndTranslation:ne,maxScrollDistancePerSwipe:X,size:z,translation:q,withSpring:de,withProcessTranslation:Ht,onScrollEnd:Z,endWithSpring:dt,infinite:U,touching:ye},$.__initData=S,$.__workletHash=0xe208545ba9c,$.__stackDetails=Ie,$.__version="3.3.0",$}()},[R,Se.value,U,be,z,W,re,Z]);return(0,o.jsx)(n.PanGestureHandler,Object.assign({},N,{enabled:H,onGestureEvent:_a,children:(0,o.jsx)(r.default.View,{ref:ut,testID:Q,style:te,onTouchStart:ie,onTouchEnd:we,children:O.children})}))},I=D;return Qa.ScrollViewGesture=I,Qa}var Bv;function oM(){if(Bv)return Ra;Bv=1;var t=An;Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.default=void 0;var e=t(_),n=Uc,r=ny,i=Tt,a=B5(),s=L5(),o=H5(),l=U5(),c=z5(),u=q5(),A=K5(),d=$5(),f=aM(),p=sM(),h=Rh(),g=ou(),E=k,m={code:`function anonymous() { +}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/ScrollViewGesture.tsx",sourceMap:'{"version":3,"names":["anonymous","e","ctx","scrollEndVelocity","isHorizontal","scrollEndTranslation","maxScrollDistancePerSwipe","size","translation","withSpring","withProcessTranslation","onScrollEnd","endWithSpring","infinite","touching","_closure","velocityX","velocityY","translationX","translationY","value","totalTranslation","Math","abs","nextPage","round","panOffset","sign"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/ScrollViewGesture.tsx"],"mappings":"AAsTa,SAACA,SAAMA,CAAKC,CAAA,EAAAC,GAAA;EAAA;IAAAC,iBAAA;IAAAC,YAAA;IAAAC,oBAAA;IAAAC,yBAAA;IAAAC,IAAA;IAAAC,WAAA;IAAAC,UAAA;IAAAC,sBAAA;IAAAC,WAAA;IAAAC,aAAA;IAAAC,QAAA;IAAAC;EAAA,SAAAC,QAAA;EACjB,MAAM;IAAEC,SAAS,EAATA,SAAS;IAAEC,SAAS,EAATA,SAAS;IAAEC,YAAY,EAAZA,YAAY;IAAEC,YAAA,EAAAA;EAAa,CAAC,GAAGlB,CAAC;EAC9DE,iBAAiB,CAACiB,KAAK,GAAGhB,YAAY,CAACgB,KAAK,GACxCJ,SAAS,GACTC,SAAS;EACbZ,oBAAoB,CAACe,KAAK,GAAGhB,YAAY,CAACgB,KAAK,GAC3CF,YAAY,GACZC,YAAY;EAEhB,MAAME,gBAAgB,GAAGjB,YAAY,CAACgB,KAAK,GAAGF,YAAY,GAAGC,YAAY;EAEzE,IAAI,OAAOb,yBAAyB,KAAK,QAAQ,IAAIgB,IAAI,CAACC,GAAG,CAACF,gBAAgB,CAAC,GAAGf,yBAAyB,EAAE;IAC3G,MAAMkB,QAAQ,GAAGF,IAAI,CAACG,KAAK,CAAC,CAACvB,GAAG,CAACwB,SAAS,GAAGpB,yBAAyB,GAAGgB,IAAI,CAACK,IAAI,CAACN,gBAAgB,CAAC,IAAId,IAAI,CAAC,GAAGA,IAAI;IACpHC,WAAW,CAACY,KAAK,GAAGX,UAAU,CAACC,sBAAsB,CAACc,QAAQ,CAAC,EAAEb,WAAW,CAAC;EAC/E,CAAC,MACI;IACHC,aAAa,CAACD,WAAW,CAAC;EAC5B;EAEA,IAAI,CAACE,QAAQ,EACXC,QAAQ,CAACM,KAAK,GAAG,KAAK;AAC1B"}'},D=function(O){var T=e.default.useContext(a.CTX),M=T.props,P=M.vertical,R=M.pagingEnabled,W=M.snapEnabled,N=M.panGestureHandlerProps,U=M.loop,Y=M.scrollAnimationDuration,G=M.withAnimation,H=M.enabled,L=M.dataLength,B=M.overscrollEnabled,X=M.maxScrollDistancePerSwipe,z=O.size,q=O.translation,Q=O.testID,ae=O.style,te=ae===void 0?{}:ae,re=O.onScrollBegin,Z=O.onScrollEnd,ie=O.onTouchBegin,we=O.onTouchEnd,be=L,Se=(0,r.useDerivedValue)(function(){var Ie=[new K.Error,-2,-27],$=function(){return!P};return $._closure={vertical:P},$.__initData=u,$.__workletHash=0x92fc1b734e8,$.__stackDetails=Ie,$.__version="3.3.0",$}(),[P]),ye=(0,r.useSharedValue)(!1),ne=(0,r.useSharedValue)(0),Be=(0,r.useSharedValue)(0),ut=(0,r.useAnimatedRef)(),me=e.default.useCallback(function(){var Ie=[new K.Error,-7,-27],$=function(){if(!U&&!B){var Ce=(0,r.measure)(ut),fe=Ce.width,Ge=fe===void 0?0:fe;return L*z<Ge?0:L*z-Ge}return L*z};return $._closure={infinite:U,overscrollEnabled:B,measure:r.measure,containerRef:ut,dataLength:L,size:z},$.__initData=A,$.__workletHash=736417391548,$.__stackDetails=Ie,$.__version="3.3.0",$}(),[U,z,L,B]),de=e.default.useCallback(function(){var Ie=[new K.Error,-6,-27],$=function(Ce,fe){var Ge={type:"timing",config:{duration:Y+100,easing:i.Easing.easeOutQuart}};return(0,s.dealWithAnimation)(G??Ge)(Ce,function(){var De=[new K.Error,-3,-27],xe=function(ft){ft&&fe&&(0,r.runOnJS)(fe)()};return xe._closure={onFinished:fe,runOnJS:r.runOnJS},xe.__initData=f,xe.__workletHash=0xe3f2cebca98,xe.__stackDetails=De,xe.__version="3.3.0",xe}())};return $._closure={scrollAnimationDuration:Y,Easing:i.Easing,dealWithAnimation:s.dealWithAnimation,withAnimation:G,runOnJS:r.runOnJS},$.__initData=d,$.__workletHash=38454346678,$.__stackDetails=Ie,$.__version="3.3.0",$}(),[Y,G]),dt=e.default.useCallback(function(){var Ie=[new K.Error,-14,-27],$=function(Ce){var fe=q.value,Ge=Be.value,De=(0,r.withDecay)({velocity:Ge,deceleration:.999});if(typeof X=="number"&&Math.abs(ne.value)>X)De=fe;else{if(R){var xe=-(ne.value>=0?1:-1),Ut=xe<0?Math.ceil:Math.floor,ft=Ut(-q.value/z);if(U){var Ot=ft+xe;De=de(gr(-Ot*z),Ce)}else{var Gn=Math.min(be-1,Math.max(0,ft+xe));De=de(gr(-Gn*z),Ce)}}if(!R&&W){var Da=Math.round((fe+Ge*.4)/z)*z;De=de(gr(Da),Ce)}}q.value=De;function gr(zr){if(!U&&!B){var cu=me(),uu=Math.sign(zr);return uu*Math.max(0,Math.min(cu,Math.abs(zr)))}return zr}};return $._closure={translation:q,scrollEndVelocity:Be,withDecay:r.withDecay,maxScrollDistancePerSwipe:X,scrollEndTranslation:ne,pagingEnabled:R,size:z,infinite:U,withSpring:de,maxPage:be,snapEnabled:W,overscrollEnabled:B,getLimit:me},$.__initData=p,$.__workletHash=0xe2f395fe550,$.__stackDetails=Ie,$.__version="3.3.0",$}(),[de,z,be,U,W,q,R,Be.value,X,ne.value]),At=e.default.useCallback(function(){var Ie=[new K.Error,-4,-27],$=function(Ce){Ce&&(ye.value=!1,Z&&(0,r.runOnJS)(Z)())};return $._closure={touching:ye,onScrollEnd:Z,runOnJS:r.runOnJS},$.__initData=h,$.__workletHash=0xd66a2cd499c,$.__stackDetails=Ie,$.__version="3.3.0",$}(),[Z,ye]),Vt=e.default.useCallback(function(){var Ie=[new K.Error,-6,-27],$=function(){ye.value=!0,q.value=(0,r.withDecay)({velocity:Be.value},function(){var Ce=[new K.Error,-2,-27],fe=function(De){return At(De)};return fe._closure={onFinish:At},fe.__initData=E,fe.__workletHash=0xa47406a7948,fe.__stackDetails=Ce,fe.__version="3.3.0",fe}())};return $._closure={touching:ye,translation:q,withDecay:r.withDecay,scrollEndVelocity:Be,onFinish:At},$.__initData=g,$.__workletHash=0xd5579ffb432,$.__stackDetails=Ie,$.__version="3.3.0",$}(),[At,Be.value,ye,q]),pt=e.default.useCallback(function(){var Ie=[new K.Error,-9,-27],$=function(){if(!ye.value){if(q.value>0){if(ne.value<0){Vt();return}if(!U){q.value=de(0);return}}if(q.value<-((be-1)*z)){if(ne.value>0){Vt();return}U||(q.value=de(-((be-1)*z)))}}};return $._closure={touching:ye,translation:q,scrollEndTranslation:ne,activeDecay:Vt,infinite:U,withSpring:de,maxPage:be,size:z},$.__initData=m,$.__workletHash=5253258937186,$.__stackDetails=Ie,$.__version="3.3.0",$}(),[ye.value,q,be,z,ne.value,U,Vt,de]);(0,r.useAnimatedReaction)(function(){var Ie=[new K.Error,-2,-27],$=function(){return q.value};return $._closure={translation:q},$.__initData=v,$.__workletHash=0xe7d5a122b2c,$.__stackDetails=Ie,$.__version="3.3.0",$}(),function(){var Ie=[new K.Error,-3,-27],$=function(){R||pt()};return $._closure={pagingEnabled:R,resetBoundary:pt},$.__initData=C,$.__workletHash=0xb517b95180b,$.__stackDetails=Ie,$.__version="3.3.0",$}(),[R,pt]);var Ht=function(){var Ie=[new K.Error,-4,-27],$=function(Ce){if(!U&&!B){var fe=me(),Ge=Math.sign(Ce);return Ge*Math.max(0,Math.min(fe,Math.abs(Ce)))}return Ce};return $._closure={infinite:U,overscrollEnabled:B,getLimit:me},$.__initData=y,$.__workletHash=0xa64a453634d,$.__stackDetails=Ie,$.__version="3.3.0",$}(),_a=(0,r.useAnimatedGestureHandler)({onStart:function(){var Ie=[new K.Error,-10,-27],$=function(Ce,fe){ye.value=!0,fe.validStart=!0,re&&(0,r.runOnJS)(re)(),fe.max=(be-1)*z,!U&&!B&&(fe.max=me()),fe.panOffset=q.value};return $._closure={touching:ye,onScrollBegin:re,runOnJS:r.runOnJS,maxPage:be,size:z,infinite:U,overscrollEnabled:B,getLimit:me,translation:q},$.__initData=x,$.__workletHash=6283859030724,$.__stackDetails=Ie,$.__version="3.3.0",$}(),onActive:function(){var Ie=[new K.Error,-7,-27],$=function(Ce,fe){fe.validStart&&(fe.validStart=!1,(0,r.cancelAnimation)(q)),ye.value=!0;var Ge=Ce.translationX,De=Ce.translationY,xe=Se.value?Ge:De;if(typeof X=="number"&&Math.abs(xe)>X){var Ut=Math.abs(xe)-X,ft=X+Ut*.5;Ge=Se.value?ft*Math.sign(Ge):Ge,De=Se.value?De:ft*Math.sign(De)}var Ot=Se.value?Ge:De;if(!U&&(q.value>0||q.value<-fe.max)){var Gn=q.value>0?0:-fe.max,Da=Gn-fe.panOffset,gr=Ot-Da;q.value=Gn+gr*.5;return}var zr=fe.panOffset+Ot;q.value=zr};return $._closure={cancelAnimation:r.cancelAnimation,translation:q,touching:ye,isHorizontal:Se,maxScrollDistancePerSwipe:X,infinite:U},$.__initData=w,$.__workletHash=0xd2eceeda264,$.__stackDetails=Ie,$.__version="3.3.0",$}(),onEnd:function(){var Ie=[new K.Error,-13,-27],$=function(Ce,fe){var Ge=Ce.velocityX,De=Ce.velocityY,xe=Ce.translationX,Ut=Ce.translationY;Be.value=Se.value?Ge:De,ne.value=Se.value?xe:Ut;var ft=Se.value?xe:Ut;if(typeof X=="number"&&Math.abs(ft)>X){var Ot=Math.round((fe.panOffset+X*Math.sign(ft))/z)*z;q.value=de(Ht(Ot),Z)}else dt(Z);U||(ye.value=!1)};return $._closure={scrollEndVelocity:Be,isHorizontal:Se,scrollEndTranslation:ne,maxScrollDistancePerSwipe:X,size:z,translation:q,withSpring:de,withProcessTranslation:Ht,onScrollEnd:Z,endWithSpring:dt,infinite:U,touching:ye},$.__initData=S,$.__workletHash=0xe208545ba9c,$.__stackDetails=Ie,$.__version="3.3.0",$}()},[R,Se.value,U,be,z,W,re,Z]);return(0,o.jsx)(n.PanGestureHandler,Object.assign({},N,{enabled:H,onGestureEvent:_a,children:(0,o.jsx)(r.default.View,{ref:ut,testID:Q,style:te,onTouchStart:ie,onTouchEnd:we,children:O.children})}))},I=D;return Qa.ScrollViewGesture=I,Qa}var Gv;function oM(){if(Gv)return Ra;Gv=1;var t=An;Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.default=void 0;var e=t(_),n=Wc,r=ny,i=Tt,a=B5(),s=L5(),o=H5(),l=U5(),c=z5(),u=q5(),A=K5(),d=$5(),f=aM(),p=sM(),h=Nh(),g=ou(),E=k,m={code:`function anonymous() { const { size, dataLength, @@ -899,7 +899,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const x = handlerOffset.value % totalSize; if (!loop) return handlerOffset.value; return isNaN(x) ? 0 : x; -}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/Carousel.tsx",sourceMap:'{"version":3,"names":["anonymous","size","dataLength","handlerOffset","loop","_closure","totalSize","x","value","isNaN"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/Carousel.tsx"],"mappings":"AA2DoC,SAAAA,SAAMA,CAAA;EAAA;IAAAC,IAAA;IAAAC,UAAA;IAAAC,aAAA;IAAAC;EAAA,SAAAC,QAAA;EACpC,MAAMC,SAAS,GAAGL,IAAI,GAAGC,UAAU;EACnC,MAAMK,CAAC,GAAGJ,aAAa,CAACK,KAAK,GAAGF,SAAS;EAEzC,IAAI,CAACF,IAAI,EACP,OAAOD,aAAa,CAACK,KAAK;EAE5B,OAAOC,KAAK,CAACF,CAAC,CAAC,GAAG,CAAC,GAAGA,CAAC;AACzB"}'},v=e.default.forwardRef(function(x,w){var S=(0,l.useInitProps)(x),D=S.testID,I=S.loop,b=S.autoFillData,O=S.data,T=S.dataLength,M=S.rawData,P=S.rawDataLength,R=S.mode,W=S.style,N=S.width,U=S.height,Y=S.vertical,G=S.autoPlay,H=S.windowSize,L=S.autoPlayReverse,B=S.autoPlayInterval,X=S.scrollAnimationDuration,z=S.withAnimation,q=S.renderItem,Q=S.onScrollEnd,ae=S.onSnapToItem,te=S.onScrollBegin,re=S.onProgressChange,Z=S.customAnimation,ie=S.defaultIndex,we=(0,o.useCommonVariables)(S),be=we.size,Se=we.handlerOffset,ye=(0,i.useDerivedValue)(function(){var De=[new K.Error,-5,-27],xe=function(){var ft=be*T,Ot=Se.value%ft;return I?isNaN(Ot)?0:Ot:Se.value};return xe._closure={size:be,dataLength:T,handlerOffset:Se,loop:I},xe.__initData=m,xe.__workletHash=0x93577184796,xe.__stackDetails=De,xe.__version="3.3.0",xe}(),[I,be,T]);(0,A.usePropsErrorBoundary)(Object.assign({},S,{dataLength:T})),(0,u.useOnProgressChange)({autoFillData:b,loop:I,size:be,offsetX:ye,rawDataLength:P,onProgressChange:re});var ne=(0,s.useCarouselController)({loop:I,size:be,dataLength:T,autoFillData:b,handlerOffset:Se,withAnimation:z,defaultIndex:ie,onScrollEnd:function(){return(0,i.runOnJS)(Ht)()},onScrollBegin:function(){return!!te&&(0,i.runOnJS)(te)()},duration:X}),Be=ne.next,ut=ne.prev,me=ne.scrollTo,de=ne.getSharedIndex,dt=ne.getCurrentIndex,At=(0,a.useAutoPlay)({autoPlay:G,autoPlayInterval:B,autoPlayReverse:L,carouselController:ne}),Vt=At.start,pt=At.pause,Ht=e.default.useCallback(function(){var De=Math.round(de()),xe=(0,g.computedRealIndexWithAutoFillData)({index:De,dataLength:P,loop:I,autoFillData:b});ae&&ae(xe),Q&&Q(xe)},[I,b,P,de,ae,Q]),_a=e.default.useCallback(function(){pt(),te==null||te()},[te,pt]),Ie=e.default.useCallback(function(){Vt(),Ht()},[Ht,Vt]),$=e.default.useCallback(pt,[pt]),We=e.default.useCallback(Vt,[Vt]);e.default.useImperativeHandle(w,function(){return{next:Be,prev:ut,getCurrentIndex:dt,scrollTo:me}},[dt,Be,ut,me]);var Ce=(0,d.useVisibleRanges)({total:T,viewSize:be,translation:Se,windowSize:H}),fe=(0,c.useLayoutConfig)(Object.assign({},S,{size:be})),Ge=e.default.useCallback(function(De,xe){var Ut=(0,g.computedRealIndexWithAutoFillData)({index:xe,dataLength:P,loop:I,autoFillData:b});return(0,E.jsx)(f.BaseLayout,{index:xe,handlerOffset:ye,visibleRanges:Ce,animationStyle:Z||fe,children:function(Ot){var Gn=Ot.animationValue;return q({item:De,index:Ut,animationValue:Gn})}},xe)},[I,M,ye,Ce,b,q,fe,Z]);return(0,E.jsx)(r.GestureHandlerRootView,{children:(0,E.jsx)(h.CTX.Provider,{value:{props:S,common:we},children:(0,E.jsx)(p.ScrollViewGesture,{size:be,translation:Se,style:[y.container,{width:N||"100%",height:U||"100%"},W,Y?y.itemsVertical:y.itemsHorizontal],testID:D,onScrollBegin:_a,onScrollEnd:Ie,onTouchBegin:$,onTouchEnd:We,children:O.map(Ge)},R)})})}),C=v;Ra.default=C;var y=n.StyleSheet.create({container:{overflow:"hidden"},itemsHorizontal:{flexDirection:"row"},itemsVertical:{flexDirection:"column"}});return Ra}(function(t){var e=An;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ILayoutConfig",{enumerable:!0,get:function(){return r.ILayoutConfig}}),t.default=void 0;var n=e(oM()),r=ay(),i=n.default;t.default=i})(LE);const lM=Ur(LE),xl=({children:t,waitBeforeShow:e=500})=>{const[n,r]=_.useState(!1);return _.useEffect(()=>{const i=setTimeout(()=>{r(!0)},e);return()=>clearTimeout(i)},[e]),n?t:k.jsx(S1,{testID:"DelayPleaseWait"})};try{xl.displayName="Delay",xl.__docgenInfo={description:"",displayName:"Delay",props:{waitBeforeShow:{defaultValue:{value:"500"},description:"",name:"waitBeforeShow",required:!1,type:{name:"number"}}}}}catch{}const Cf=_.forwardRef(({children:t,grow:e,withBottomInset:n=!1,...r},i)=>{const a=Ls();return k.jsx(ya,{contentContainerStyle:!!e&&_1.grow,keyboardShouldPersistTaps:e?"handled":void 0,ref:i,scrollIndicatorInsets:{right:Number.MIN_VALUE},style:!!n&&{paddingBottom:a.bottom},...r,children:t})});try{Cf.displayName="ScrollView",Cf.__docgenInfo={description:"",displayName:"ScrollView",props:{grow:{defaultValue:null,description:"",name:"grow",required:!1,type:{name:"boolean"}},withBottomInset:{defaultValue:{value:"false"},description:"",name:"withBottomInset",required:!1,type:{name:"boolean"}}}}}catch{}const cM=({isActive:t=!0,platform:e}={})=>{const n=Bn(),r=_.useRef(null),i=d1(),a=Ff(),[s,o]=_.useState(!1),[l,c]=_.useState(!1);return _.useLayoutEffect(()=>(c(!0),()=>{c(!1)}),[]),Zm(_.useCallback(()=>(o(!0),()=>{o(!1)}),[])),_.useLayoutEffect(()=>{if(e&&ue.OS!==e||!r.current||!t||!s||!l||!a)return;i(r.current);const u=setTimeout(()=>i(r.current),Mf.normal);return()=>clearTimeout(u)},[n,i,r,t,s,l,a,e]),r},uM=t=>_.createElement("svg",{width:78,height:48,viewBox:"0 0 78 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-0.000244141 11.2875L4.24626 7.05467L-0.000244141 2.82187L2.83076 0L7.07726 4.2328L11.3238 0L14.1548 2.82187L9.90826 7.05467L14.1548 11.2875L11.3238 14.1093L7.07726 9.87654L2.83076 14.1093L-0.000244141 11.2875ZM24.7852 1.28395C22.6619 1.28395 21.1615 2.79365 21.1615 4.93827C21.1615 7.097 22.6336 8.62081 24.7144 8.62081C26.7386 8.62081 28.1399 7.35097 28.1399 5.54497V4.44444H24.9834V5.62963H26.6961V5.81305C26.6961 6.75838 25.9034 7.40741 24.7569 7.40741C23.5112 7.40741 22.6336 6.39153 22.6336 4.93827C22.6336 3.51323 23.5254 2.51146 24.8135 2.51146C25.5071 2.51146 26.0874 2.76543 26.4838 3.21693L27.418 2.32804C26.7669 1.63668 25.861 1.28395 24.7852 1.28395ZM56.7047 17.1005C56.7047 15.4356 57.8088 14.2645 59.3659 14.2645C60.0878 14.2645 60.6681 14.575 61.0503 15.1534H61.0786V11.8942H62.4234V19.7672H61.1494V18.9347H61.1211C60.7672 19.5414 60.1161 19.9083 59.3659 19.9083C57.8088 19.8942 56.7047 18.7372 56.7047 17.1005ZM61.0645 17.0864C61.0645 16.1129 60.47 15.478 59.5782 15.478C58.6864 15.478 58.0919 16.127 58.0919 17.0864C58.0919 18.0459 58.6864 18.6949 59.5782 18.6949C60.47 18.6949 61.0645 18.0459 61.0645 17.0864ZM25.3372 12.6984H23.7094L20.8501 19.7531H22.3081L22.9026 18.2011H26.0591L26.6536 19.7531H28.1682L25.3372 12.6984ZM25.6345 17.0441H23.3414L24.4738 14.067H24.5021L25.6345 17.0441ZM30.334 14.4056H29.0742V19.7672H30.4189V16.7901C30.4189 15.9295 30.7728 15.4497 31.3956 15.4497C32.0326 15.4497 32.3298 15.8589 32.3298 16.7478V19.7672H33.6745V16.7901C33.6745 15.9153 34.0284 15.4497 34.6512 15.4497C35.274 15.4497 35.5855 15.873 35.5855 16.7478V19.7672H36.9302V16.522C36.9302 15.0123 36.2932 14.2787 34.9626 14.2787C34.1983 14.2787 33.6038 14.6032 33.2782 15.1958C32.9526 14.5891 32.4289 14.2787 31.7353 14.2787C31.1125 14.2787 30.6312 14.5891 30.3623 15.1393H30.334V14.4056ZM39.4215 17.5097C38.6854 17.2981 37.9777 16.903 37.9777 15.9295C37.9777 14.9418 38.8128 14.2645 40.0443 14.2645C40.8794 14.2645 41.5164 14.5608 41.8703 15.097L41.0918 15.873C40.8228 15.5344 40.4548 15.351 40.0443 15.351C39.5913 15.351 39.3082 15.5626 39.3082 15.8871C39.3082 16.2667 39.6493 16.37 40.1743 16.529C40.2543 16.5532 40.3385 16.5787 40.4265 16.6067C41.1625 16.8183 41.8703 17.2134 41.8703 18.1869C41.8703 19.2028 40.9927 19.8942 39.7187 19.8942C38.8836 19.8942 38.2041 19.5979 37.8078 19.0476L38.5863 18.2716C38.8836 18.6243 39.2799 18.8078 39.7046 18.8078C40.2283 18.8078 40.5397 18.5961 40.5397 18.2293C40.5397 17.8544 40.1844 17.7451 39.6409 17.578C39.5708 17.5564 39.4975 17.5339 39.4215 17.5097ZM43.2999 15.5203V17.8483C43.2999 19.1323 43.9369 19.8095 45.1826 19.8095C45.4232 19.8095 45.7204 19.7813 45.8903 19.739V18.6102C45.7771 18.6384 45.5931 18.6667 45.4373 18.6667C44.9278 18.6667 44.6588 18.3704 44.6588 17.8483V15.5203H45.9611V14.4056H44.6588V12.9524H43.4981V13.7848C43.4981 14.2363 43.3283 14.4056 42.8753 14.4056H42.3799V15.5203H43.2999ZM46.6122 17.0864C46.6122 15.4215 47.7305 14.2787 49.33 14.2787C50.9295 14.2787 52.0477 15.4215 52.0477 17.0582C52.0477 17.1534 52.0318 17.2963 52.0179 17.4213C52.0132 17.463 52.0088 17.5026 52.0053 17.5379H47.9711C48.0702 18.2716 48.693 18.7513 49.4857 18.7513C50.0802 18.7513 50.5898 18.5397 50.9295 18.1446L51.7505 18.9347C51.2551 19.5697 50.4058 19.9083 49.4291 19.9083C47.7729 19.8942 46.6122 18.7372 46.6122 17.0864ZM50.6889 16.5362C50.6039 15.8307 50.0519 15.351 49.33 15.351C48.5939 15.351 48.056 15.8307 47.9711 16.5362H50.6889ZM54.4541 14.4056H53.1943V19.7813H54.539V16.9594C54.539 16.1552 54.9778 15.6332 55.6714 15.6332C55.8837 15.6332 56.181 15.6614 56.3367 15.7037V14.4198C56.2518 14.3915 56.0253 14.3633 55.8554 14.3633C55.2185 14.3633 54.7372 14.6878 54.4824 15.2945H54.4541V14.4056ZM65.7498 16.5644C64.3201 16.5785 63.4567 17.1993 63.4567 18.2293C63.4567 19.2169 64.2352 19.8942 65.3393 19.8942C66.0187 19.8942 66.5708 19.6261 66.9105 19.1323H66.9388C67.0521 19.5273 67.4059 19.7672 67.9155 19.7672H68.5525V18.709H68.4534C68.2269 18.709 68.142 18.6243 68.142 18.4268V16.2963C68.142 15.0406 67.2361 14.2645 65.7923 14.2645C64.858 14.2645 64.1078 14.575 63.6407 15.1534L64.4617 15.9436C64.7589 15.6049 65.1836 15.4215 65.6649 15.4215C66.4009 15.4215 66.7973 15.746 66.7973 16.381V16.5503L65.7498 16.5644ZM66.7973 17.4533V17.7637C66.7973 18.4409 66.316 18.9065 65.5941 18.9065C65.1411 18.9065 64.8156 18.6102 64.8156 18.2011C64.8156 17.7213 65.1978 17.4815 65.9055 17.4674L66.7973 17.4533ZM69.6141 14.4056H70.8739V15.1393H70.9022C71.1712 14.5891 71.6524 14.2787 72.2753 14.2787C72.9688 14.2787 73.4926 14.5891 73.8181 15.1958C74.1437 14.6032 74.7382 14.2787 75.5026 14.2787C76.8332 14.2787 77.4701 15.0123 77.4701 16.522V19.7672H76.1254V16.7478C76.1254 15.873 75.814 15.4497 75.1912 15.4497C74.5542 15.4497 74.2145 15.9153 74.2145 16.7901V19.7672H72.8698V16.7478C72.8698 15.8589 72.5725 15.4497 71.9355 15.4497C71.3127 15.4497 70.9588 15.9295 70.9588 16.7901V19.7672H69.6141V14.4056ZM29.06 5.79894C29.06 4.13404 30.1782 2.99118 31.7778 2.99118C33.3773 2.99118 34.4955 4.13404 34.4955 5.77072C34.4955 5.86597 34.4796 6.00884 34.4657 6.13385C34.461 6.17551 34.4566 6.21518 34.4531 6.25044H30.4189C30.518 6.98413 31.1408 7.46384 31.9335 7.46384C32.528 7.46384 33.0376 7.2522 33.3773 6.85714L34.1983 7.64727C33.7028 8.28219 32.8535 8.62081 31.8768 8.62081C30.2066 8.62081 29.06 7.44973 29.06 5.79894ZM33.1366 5.26279C33.0517 4.55732 32.4997 4.0776 31.7778 4.0776C31.0559 4.0776 30.4897 4.55732 30.4189 5.26279H33.1366ZM36.8736 3.11817H35.6138V8.47972H36.9585V5.50265C36.9585 4.64197 37.3124 4.16226 37.9352 4.16226C38.5722 4.16226 38.8694 4.57143 38.8694 5.46032V8.47972H40.2141V5.50265C40.2141 4.62787 40.568 4.16226 41.1908 4.16226C41.8137 4.16226 42.1251 4.58554 42.1251 5.46032V8.47972H43.4698V5.23457C43.4698 3.72487 42.8328 2.99118 41.5023 2.99118C40.7379 2.99118 40.1434 3.3157 39.8178 3.90829C39.4922 3.30159 38.9685 2.99118 38.2749 2.99118C37.6521 2.99118 37.1708 3.30159 36.9019 3.85185H36.8736V3.11817ZM44.5597 5.79894C44.5597 4.13404 45.678 2.99118 47.2775 2.99118C48.877 2.99118 49.9953 4.13404 49.9953 5.77072C49.9953 5.86596 49.9793 6.00882 49.9654 6.13382C49.9608 6.17548 49.9563 6.21517 49.9528 6.25044H45.9186C46.0177 6.98413 46.6405 7.46384 47.4332 7.46384C48.0277 7.46384 48.5373 7.2522 48.877 6.85714L49.698 7.64727C49.2026 8.28219 48.3533 8.62081 47.3766 8.62081C45.7063 8.62081 44.5597 7.44973 44.5597 5.79894ZM48.6364 5.26279C48.5515 4.55732 47.9994 4.0776 47.2775 4.0776C46.5414 4.0776 45.9894 4.55732 45.9186 5.26279H48.6364ZM53.4916 2.99118C51.892 2.99118 50.7738 4.13404 50.7738 5.79894C50.7738 7.44973 51.9345 8.62081 53.5906 8.62081C54.5673 8.62081 55.4166 8.28219 55.9121 7.64727L55.0911 6.85714C54.7514 7.2522 54.2418 7.46384 53.6473 7.46384C52.8546 7.46384 52.2318 6.98413 52.1327 6.25044H56.1668C56.1704 6.21517 56.1748 6.17548 56.1795 6.13382C56.1934 6.00882 56.2093 5.86596 56.2093 5.77072C56.2093 4.13404 55.0911 2.99118 53.4916 2.99118ZM53.5057 4.0776C54.2276 4.0776 54.7797 4.55732 54.8646 5.26279H52.1468C52.2176 4.55732 52.7555 4.0776 53.5057 4.0776ZM57.3559 3.11817H58.6157V3.85185H58.644C58.8988 3.3157 59.4366 2.99118 60.0736 2.99118C61.4184 2.99118 62.1261 3.7672 62.1261 5.23457V8.47972H60.7814V5.50265C60.7814 4.58554 60.4558 4.16226 59.7622 4.16226C59.0686 4.16226 58.7006 4.64197 58.7006 5.53086V8.47972H57.3559V3.11817ZM63.853 4.2328V6.56085C63.853 7.85891 64.4758 8.52205 65.7356 8.52205C65.9763 8.52205 66.2735 8.49383 66.4434 8.4515V7.32275C66.3301 7.35097 66.1461 7.37919 65.9904 7.37919C65.4808 7.37919 65.2119 7.08289 65.2119 6.56085V4.2328H66.5142V3.11817H65.2119V1.6649H64.0512V2.49735C64.0512 2.94885 63.8813 3.11817 63.4284 3.11817H62.9329V4.2328H63.853ZM67.1653 5.79894C67.1653 4.13404 68.2835 2.99118 69.8831 2.99118C71.4826 2.99118 72.6008 4.13404 72.6008 5.77072C72.6008 5.86584 72.5849 6.00845 72.571 6.13333L72.571 6.13346V6.13353L72.571 6.13369L72.5707 6.136C72.5662 6.17687 72.5618 6.21578 72.5583 6.25044H68.5242C68.6233 6.98413 69.2461 7.46384 70.0388 7.46384C70.6333 7.46384 71.1429 7.2522 71.4826 6.85714L72.3036 7.64727C71.8081 8.28219 70.9588 8.62081 69.9821 8.62081C68.3118 8.62081 67.1653 7.44973 67.1653 5.79894ZM68.5242 5.26279H71.2419C71.157 4.55732 70.605 4.0776 69.8831 4.0776C69.147 4.0776 68.5949 4.55732 68.5242 5.26279ZM4.24626 40.9453L-0.000244141 45.1781L2.83076 48L7.07726 43.7672L11.3238 48L14.1548 45.1781L9.90826 40.9453L14.1548 36.7125L11.3238 33.8907L7.07726 38.1235L2.83076 33.8907L-0.000244141 36.7125L4.24626 40.9453ZM4.24626 24.0141L-0.000244141 28.2469L2.83076 31.0688L7.07726 26.836L11.3238 31.0688L14.1548 28.2469L9.90826 24.0141L14.1548 19.7813L11.3238 16.9594L7.07726 21.1922L2.83076 16.9594L-0.000244141 19.7813L4.24626 24.0141Z",fill:"#E42313"})),dM=()=>null,Gv={AZTEC:"AZTEC",CODE128:"CODE128",PDF417:"PDF417",QR:"QR",EAN13:"EAN13",UPCA:"UPCA"},Lv=80,AM=40,Vv=100,ld=44,yl=({value:t,format:e,width:n})=>{const r=Nn(),i=_.useMemo(()=>{const s=ue.OS==="android"?Lv:Lv+AM,o=ue.OS==="android"&&e==="CODE128"?ld/2:void 0,l=ue.OS==="ios"&&e==="QR"?ld/2:void 0,c=ue.OS==="ios"?Vv:Vv+ld;return{heightCode128:s,padding:l,paddingVertical:o,sizeQR:c}},[e]),a=fM(e,i.heightCode128,i.padding,i.paddingVertical,i.sizeQR,n);return k.jsx(pe,{style:a.container,children:k.jsx(dM,{background:r.color.barcode.background,foregroundColor:r.color.barcode.foreground,format:e==="QR"?Gv.QR:Gv.CODE128,style:a.barcode,value:t})})},fM=(t,e,n,r,i,a)=>he.create({container:{padding:n,paddingVertical:r},barcode:{paddingVertical:0,marginVertical:0,height:t==="QR"?i:e,width:t==="QR"?i:a}});try{yl.displayName="BarCode",yl.__docgenInfo={description:"",displayName:"BarCode",props:{format:{defaultValue:null,description:"",name:"format",required:!0,type:{name:"enum",value:[{value:'"QR"'},{value:'"CODE128"'}]}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"number"}}}}}catch{}const sy=312,oy=550,hM=.33;No.citypass,No.cityPassChildBudget,No.cityPassUsage;const ly=t=>Math.min(t*.8,sy),Hv=(t,e)=>t?t.replace(new RegExp(`.{1,${e}}`,"g"),"$& ").trim():"",Za=10,Ef=({index:t,isCurrentIndex:e,itemCount:n,cityPass:{firstname:r,infix:i,lastname:a,passNumberComplete:s,dateEndFormatted:o}})=>{const{width:l}=qm(),c=ly(l),u=cM({isActive:e}),A=On(d=>pM(d,c));return k.jsx(Qh,{hide:!e,style:A.container,children:k.jsx(pe,{style:A.containerInner,children:k.jsx(Cf,{accessibilityLabel:`De stadspas van ${r} ${i||""} ${a} kan nu gescand worden. Stadspas ${Hv(s,4)}. Geldig tot en met ${o}. Pas ${t+1} van ${n}. Swipe naar links of rechts om door de passen te navigeren.`,accessible:!0,ref:u,style:A.pass,children:k.jsx(Qh,{children:k.jsxs(Dn,{grow:1,gutter:"md",children:[k.jsx(pe,{style:A.passHeader,children:k.jsx(hr,{children:k.jsx(uM,{})})}),k.jsx(pe,{style:A.passInner,children:k.jsxs(Dn,{grow:1,gutter:"md",halign:"center",children:[k.jsxs(kn,{emphasis:"strong",testID:"CityPassCityPassName",children:[r," ",i," ",a]}),k.jsxs(Dn,{halign:"center",children:[k.jsx(xl,{children:k.jsx(yl,{format:"CODE128",value:s,width:c})}),k.jsx(pe,{style:A.passNumber,children:k.jsx(kn,{emphasis:"strong",testID:"CityPassCityPassPassNumber",children:Hv(s,4)})})]}),k.jsx(xl,{children:k.jsx(yl,{format:"QR",value:s})}),k.jsxs(D1,{textAlign:"center",children:["Geldig tot en met ",o]})]})})]})})})})})},pM=({color:t,size:e},n)=>he.create({container:{flex:1,justifyContent:"center",alignItems:"center"},containerInner:{overflow:"hidden",borderRadius:Za},pass:{backgroundColor:t.cityPass.passBackground,width:n,maxHeight:oy,borderRadius:Za},passHeader:{backgroundColor:t.cityPass.passHeader,borderTopLeftRadius:Za,borderTopRightRadius:Za},passInner:{backgroundColor:t.cityPass.passInner,borderRadius:Za,paddingTop:e.spacing.md,paddingBottom:e.spacing.md},passNumber:{marginTop:-e.spacing.md}});try{Ef.displayName="CityPass",Ef.__docgenInfo={description:"",displayName:"CityPass",props:{cityPass:{defaultValue:null,description:"",name:"cityPass",required:!0,type:{name:"CityPassPass"}},index:{defaultValue:null,description:"",name:"index",required:!0,type:{name:"number"}},isCurrentIndex:{defaultValue:null,description:"",name:"isCurrentIndex",required:!1,type:{name:"boolean"}},itemCount:{defaultValue:null,description:"",name:"itemCount",required:!0,type:{name:"number"}}}}}catch{}const xf=t=>{const{animValue:e,dotStyle:n,activeDotStyle:r,index:i,count:a,size:s,horizontal:o,children:l,...c}=t,u=10,A={width:s||(n==null?void 0:n.width)||u,height:s||(n==null?void 0:n.height)||u},{width:d}=A,{height:f}=A,p=Fn(()=>{const h=o?f:d,g=[i-1,i,i+1],E=[-h,0,h];return{transform:[{translateX:Lt(e==null?void 0:e.value,g,E,Ye.CLAMP)}]}},[e,i,a,o]);return k.jsx(pe,{...c,style:[{width:d,height:f},Uv.dot,n],children:k.jsx($t.View,{style:[Uv.activeDot,p,r],children:l})})},Uv=he.create({dot:{overflow:"hidden"},activeDot:{backgroundColor:"black",flex:1}});try{xf.displayName="PaginationItem",xf.__docgenInfo={description:"",displayName:"PaginationItem",props:{activeDotStyle:{defaultValue:null,description:"",name:"activeDotStyle",required:!1,type:{name:"DotStyle"}},animValue:{defaultValue:null,description:"",name:"animValue",required:!0,type:{name:"SharedValue<number>"}},count:{defaultValue:null,description:"",name:"count",required:!0,type:{name:"number"}},dotStyle:{defaultValue:null,description:"",name:"dotStyle",required:!1,type:{name:"DotStyle"}},horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"boolean"}},index:{defaultValue:null,description:"",name:"index",required:!0,type:{name:"number"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"number"}}}}}catch{}const yf=t=>{const{activeDotStyle:e,currentIndex:n,dotStyle:r,progress:i,horizontal:a=!0,data:s,size:o,containerStyle:l,renderItem:c,onPress:u}=t;if(typeof o=="string"||typeof(r==null?void 0:r.width)=="string"||typeof(r==null?void 0:r.height)=="string")throw new Error("size/width/height must be a number");return k.jsx(pe,{style:[gM.container,l],children:s.map((A,d)=>k.jsx(Mh,{hitSlop:5,onPress:()=>u==null?void 0:u(d),children:k.jsx(xf,{accessibilityLabel:n===d?`Huidige slide, ${d+1}`:`Ga naar slide ${d+1}`,activeDotStyle:e,animValue:i,count:s.length,dotStyle:r,horizontal:!a,index:d,size:o,children:c==null?void 0:c(A,d)})},d))})},gM=he.create({container:{justifyContent:"space-between",alignSelf:"center",flexDirection:"row"}});try{yf.displayName="Basic",yf.__docgenInfo={description:"",displayName:"Basic",props:{activeDotStyle:{defaultValue:null,description:"",name:"activeDotStyle",required:!1,type:{name:"DotStyle"}},containerStyle:{defaultValue:null,description:"",name:"containerStyle",required:!1,type:{name:"StyleProp<ViewStyle>"}},currentIndex:{defaultValue:null,description:"",name:"currentIndex",required:!1,type:{name:"number"}},data:{defaultValue:null,description:"",name:"data",required:!0,type:{name:"T[]"}},dotStyle:{defaultValue:null,description:"",name:"dotStyle",required:!1,type:{name:"DotStyle"}},horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"boolean"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!1,type:{name:"((index: number) => void)"}},progress:{defaultValue:null,description:"",name:"progress",required:!0,type:{name:"SharedValue<number>"}},renderItem:{defaultValue:null,description:"",name:"renderItem",required:!1,type:{name:"((item: T, index: number) => ReactNode)"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"number"}}}}}catch{}const vM=(t,e,n)=>(t-e)*.5*(1+n),Wv=50,mM=()=>{const e=On(CM),n=RE(),{width:r}=qm(),i=_.useRef(null),[a,s]=_.useState(0),o=et(B4),l=ct(0),c=A=>{var d;(d=i.current)==null||d.scrollTo({count:A-l.value,animated:!0})},u=ly(r);return k.jsxs(pe,{style:e.container,children:[k.jsx(lM,{data:n,defaultIndex:o,loop:!1,mode:"parallax",modeConfig:{parallaxScrollingScale:1,parallaxScrollingOffset:vM(r,u,hM),parallaxAdjacentItemScale:1},onProgressChange:(A,d)=>{s(Math.round(d)),l.value=d<0?0:d},pagingEnabled:!0,ref:i,renderItem:({item:A,index:d})=>k.jsx(Ef,{cityPass:A,index:d,isCurrentIndex:a===d,itemCount:n.length}),snapEnabled:!0,style:{width:r},vertical:!1,width:r}),k.jsx(pe,{style:e.paginationContainer,children:k.jsx(yf,{activeDotStyle:e.paginationItemActive,containerStyle:e.pagination,currentIndex:a,data:n,dotStyle:e.paginationItem,onPress:c,progress:l})})]})},CM=({color:t,size:e,border:n})=>he.create({container:{flexBasis:oy+Wv},paginationContainer:{height:Wv,justifyContent:"flex-end"},pagination:{borderRadius:25,backgroundColor:t.pagination.container.background,alignItems:"center",paddingHorizontal:e.spacing.sm,paddingVertical:12},paginationItem:{width:e.spacing.sm,height:e.spacing.sm,marginHorizontal:e.spacing.xs,backgroundColor:t.pagination.item.inactive,borderRadius:n.radius.sm},paginationItemActive:{backgroundColor:t.pagination.item.active}}),cy=()=>{const t=Bn(),e=et(N4),{color:n}=Nn();_.useEffect(()=>(e&&H4(vt.PORTRAIT_UP),()=>{U4()}),[e]);const r=_.useCallback(()=>{const i="Dit scherm staat geen schermafdrukken toe";Jn.alert(i),T1.announceForAccessibilityWithOptions(i,{queue:!0})},[]);return r8({enabled:e,onScreenshot:r}),i8({enabled:e}),e?k.jsx($A,{backgroundColor:n.cityPass.overlay,closeButtonContainerWidth:sy,onClose:()=>{t(F4())},children:k.jsx(mM,{})}):null};cy.renderBeforeServerModules=!0;var uy=(t=>(t.budget="Budget",t.cityPassDetails="CityPassDetails",t.cityPassLogout="CityPassLogout",t.dashboard="Dashboard",t.securityCode="SecurityCode",t))(uy||{});const EM={linking:{[uy.dashboard]:"stadspas/:loginResult/:accessToken?/:refreshToken?"},logDimension:nn.cityPassModule,name:"CityPassModule",HeaderComponent:G4,PreRenderComponent:cy,reduxConfigs:[{key:le.cityPass,slice:NE,persistVersion:0,persistWhitelist:["isCityPassOwnerRegistered"]}],slug:Ke["city-pass"]},dy=Um?60:3,xM=({id:t,type:e})=>`${e}${t}`,yM=(t,e)=>{if(!e||e.length===0)return 0;const n=e.map(({meta_id:i})=>xM(i)),r=t.map(({id:i})=>i);return n.filter(i=>!r.includes(i)).length},IM=(t,e)=>_.useMemo(()=>yM(t,e),[t,e]);var pn=(t=>(t.articles="articles",t.projectDetails="projectDetails",t.projectFollow="projectFollow",t.projectNews="projectNews",t.projectUnfollow="projectUnfollow",t.projectWarning="projectWarning",t.projects="projects",t.projectsFollowedArticles="projectsFollowedArticles",t.projectsSearch="projectsSearch",t))(pn||{});const wM=t=>({...t,fields:t.fields.join(","),query_fields:t.query_fields.join(",")}),bM=t=>{var e;return t.timeline?{...t,timeline:{...t.timeline,items:((e=t.timeline.items)==null?void 0:e.map(n=>({...n,progress:"Huidig"})))??null}}:t};var Xn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,62,0,63,52,53,54,55,56,57,58,59,60,61,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,0,0,0,0,63,0,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],SM=function(e,n){for(var r=e.length,i=e[r-2]==="="?2:e[r-1]==="="?1:0,a,s=0,o=r-i&4294967292,l=0;l<o;l+=4)a=Xn[e.charCodeAt(l)]<<18|Xn[e.charCodeAt(l+1)]<<12|Xn[e.charCodeAt(l+2)]<<6|Xn[e.charCodeAt(l+3)],n[s++]=a>>16&255,n[s++]=a>>8&255,n[s++]=a&255;i===1&&(a=Xn[e.charCodeAt(l)]<<10|Xn[e.charCodeAt(l+1)]<<4|Xn[e.charCodeAt(l+2)]>>2,n[s++]=a>>8&255,n[s++]=a&255),i===2&&(a=Xn[e.charCodeAt(l)]<<2|Xn[e.charCodeAt(l+1)]>>4,n[s++]=a&255)};const _M=SM,{NativeModules:Mo}=Uc;class DM extends Error{}class TM extends Error{}let Xv=!1;function OM(t){Xv||(console.warn("Using an insecure random number generator, this should only happen when running in a debugger without support for crypto.getRandomValues"),Xv=!0);for(let e=0,n;e<t.length;e++)e&3||(n=Math.random()*4294967296),t[e]=n>>>((e&3)<<3)&255;return t}function kM(t){if(Mo.RNGetRandomValues)return Mo.RNGetRandomValues.getRandomBase64(t);if(Mo.ExpoRandom)return Mo.ExpoRandom.getRandomBase64String(t);if(K.ExpoModules)return K.ExpoModules.ExpoRandom.getRandomBase64String(t);throw new Error("Native module not found")}function MM(t){if(!(t instanceof Int8Array||t instanceof Uint8Array||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8ClampedArray))throw new DM("Expected an integer array");if(t.byteLength>65536)throw new TM("Can only request a maximum of 65536 bytes");return K.expo&&K.expo.modules&&K.expo.modules.ExpoCrypto&&K.expo.modules.ExpoCrypto.getRandomValues?(K.expo.modules.ExpoCrypto.getRandomValues(t),t):PM()?OM(t):(_M(kM(t.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t)}function PM(){return"RN$Bridgeless"in K&&RN$Bridgeless===!0,!1}typeof K.crypto!="object"&&(K.crypto={});typeof K.crypto.getRandomValues!="function"&&(K.crypto.getRandomValues=MM);var Ay={exports:{}},cd={exports:{}},Yv;function ve(){return Yv||(Yv=1,function(t,e){(function(n,r){t.exports=r()})(K,function(){var n=n||function(r,i){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof K<"u"&&K.crypto&&(a=K.crypto),!a&&typeof O1=="function")try{a=RT}catch{}var s=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function m(){}return function(v){var C;return m.prototype=v,C=new m,m.prototype=null,C}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(m){var v=o(this);return m&&v.mixIn(m),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var v in m)m.hasOwnProperty(v)&&(this[v]=m[v]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),A=c.WordArray=u.extend({init:function(m,v){m=this.words=m||[],v!=i?this.sigBytes=v:this.sigBytes=m.length*4},toString:function(m){return(m||f).stringify(this)},concat:function(m){var v=this.words,C=m.words,y=this.sigBytes,x=m.sigBytes;if(this.clamp(),y%4)for(var w=0;w<x;w++){var S=C[w>>>2]>>>24-w%4*8&255;v[y+w>>>2]|=S<<24-(y+w)%4*8}else for(var D=0;D<x;D+=4)v[y+D>>>2]=C[D>>>2];return this.sigBytes+=x,this},clamp:function(){var m=this.words,v=this.sigBytes;m[v>>>2]&=4294967295<<32-v%4*8,m.length=r.ceil(v/4)},clone:function(){var m=u.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var v=[],C=0;C<m;C+=4)v.push(s());return new A.init(v,m)}}),d=l.enc={},f=d.Hex={stringify:function(m){for(var v=m.words,C=m.sigBytes,y=[],x=0;x<C;x++){var w=v[x>>>2]>>>24-x%4*8&255;y.push((w>>>4).toString(16)),y.push((w&15).toString(16))}return y.join("")},parse:function(m){for(var v=m.length,C=[],y=0;y<v;y+=2)C[y>>>3]|=parseInt(m.substr(y,2),16)<<24-y%8*4;return new A.init(C,v/2)}},p=d.Latin1={stringify:function(m){for(var v=m.words,C=m.sigBytes,y=[],x=0;x<C;x++){var w=v[x>>>2]>>>24-x%4*8&255;y.push(String.fromCharCode(w))}return y.join("")},parse:function(m){for(var v=m.length,C=[],y=0;y<v;y++)C[y>>>2]|=(m.charCodeAt(y)&255)<<24-y%4*8;return new A.init(C,v)}},h=d.Utf8={stringify:function(m){try{return decodeURIComponent(escape(p.stringify(m)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(m){return p.parse(unescape(encodeURIComponent(m)))}},g=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new A.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=h.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var v,C=this._data,y=C.words,x=C.sigBytes,w=this.blockSize,S=w*4,D=x/S;m?D=r.ceil(D):D=r.max((D|0)-this._minBufferSize,0);var I=D*w,b=r.min(I*4,x);if(I){for(var O=0;O<I;O+=w)this._doProcessBlock(y,O);v=y.splice(0,I),C.sigBytes-=b}return new A.init(v,b)},clone:function(){var m=u.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});c.Hasher=g.extend({cfg:u.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(m){return function(v,C){return new m.init(C).finalize(v)}},_createHmacHelper:function(m){return function(v,C){return new E.HMAC.init(m,C).finalize(v)}}});var E=l.algo={};return l}(Math);return n})}(cd)),cd.exports}var ud={exports:{}},zv;function lu(){return zv||(zv=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){return function(r){var i=n,a=i.lib,s=a.Base,o=a.WordArray,l=i.x64={};l.Word=s.extend({init:function(c,u){this.high=c,this.low=u}}),l.WordArray=s.extend({init:function(c,u){c=this.words=c||[],u!=r?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,A=[],d=0;d<u;d++){var f=c[d];A.push(f.high),A.push(f.low)}return o.create(A,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),u=c.words=this.words.slice(0),A=u.length,d=0;d<A;d++)u[d]=u[d].clone();return c}})}(),n})}(ud)),ud.exports}var dd={exports:{}},qv;function FM(){return qv||(qv=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,i=r.lib,a=i.WordArray,s=a.init,o=a.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var c=l.byteLength,u=[],A=0;A<c;A++)u[A>>>2]|=l[A]<<24-A%4*8;s.call(this,u,c)}else s.apply(this,arguments)};o.prototype=a}}(),n.lib.WordArray})}(dd)),dd.exports}var Ad={exports:{}},Kv;function RM(){return Kv||(Kv=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,s=r.enc;s.Utf16=s.Utf16BE={stringify:function(l){for(var c=l.words,u=l.sigBytes,A=[],d=0;d<u;d+=2){var f=c[d>>>2]>>>16-d%4*8&65535;A.push(String.fromCharCode(f))}return A.join("")},parse:function(l){for(var c=l.length,u=[],A=0;A<c;A++)u[A>>>1]|=l.charCodeAt(A)<<16-A%2*16;return a.create(u,c*2)}},s.Utf16LE={stringify:function(l){for(var c=l.words,u=l.sigBytes,A=[],d=0;d<u;d+=2){var f=o(c[d>>>2]>>>16-d%4*8&65535);A.push(String.fromCharCode(f))}return A.join("")},parse:function(l){for(var c=l.length,u=[],A=0;A<c;A++)u[A>>>1]|=o(l.charCodeAt(A)<<16-A%2*16);return a.create(u,c*2)}};function o(l){return l<<8&4278255360|l>>>8&16711935}}(),n.enc.Utf16})}(Ad)),Ad.exports}var fd={exports:{}},$v;function Li(){return $v||($v=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,s=r.enc;s.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,A=this._map;l.clamp();for(var d=[],f=0;f<u;f+=3)for(var p=c[f>>>2]>>>24-f%4*8&255,h=c[f+1>>>2]>>>24-(f+1)%4*8&255,g=c[f+2>>>2]>>>24-(f+2)%4*8&255,E=p<<16|h<<8|g,m=0;m<4&&f+m*.75<u;m++)d.push(A.charAt(E>>>6*(3-m)&63));var v=A.charAt(64);if(v)for(;d.length%4;)d.push(v);return d.join("")},parse:function(l){var c=l.length,u=this._map,A=this._reverseMap;if(!A){A=this._reverseMap=[];for(var d=0;d<u.length;d++)A[u.charCodeAt(d)]=d}var f=u.charAt(64);if(f){var p=l.indexOf(f);p!==-1&&(c=p)}return o(l,c,A)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(l,c,u){for(var A=[],d=0,f=0;f<c;f++)if(f%4){var p=u[l.charCodeAt(f-1)]<<f%4*2,h=u[l.charCodeAt(f)]>>>6-f%4*2,g=p|h;A[d>>>2]|=g<<24-d%4*8,d++}return a.create(A,d)}}(),n.enc.Base64})}(fd)),fd.exports}var hd={exports:{}},jv;function NM(){return jv||(jv=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,s=r.enc;s.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var u=l.words,A=l.sigBytes,d=c?this._safe_map:this._map;l.clamp();for(var f=[],p=0;p<A;p+=3)for(var h=u[p>>>2]>>>24-p%4*8&255,g=u[p+1>>>2]>>>24-(p+1)%4*8&255,E=u[p+2>>>2]>>>24-(p+2)%4*8&255,m=h<<16|g<<8|E,v=0;v<4&&p+v*.75<A;v++)f.push(d.charAt(m>>>6*(3-v)&63));var C=d.charAt(64);if(C)for(;f.length%4;)f.push(C);return f.join("")},parse:function(l,c){c===void 0&&(c=!0);var u=l.length,A=c?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<A.length;f++)d[A.charCodeAt(f)]=f}var p=A.charAt(64);if(p){var h=l.indexOf(p);h!==-1&&(u=h)}return o(l,u,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function o(l,c,u){for(var A=[],d=0,f=0;f<c;f++)if(f%4){var p=u[l.charCodeAt(f-1)]<<f%4*2,h=u[l.charCodeAt(f)]>>>6-f%4*2,g=p|h;A[d>>>2]|=g<<24-d%4*8,d++}return a.create(A,d)}}(),n.enc.Base64url})}(hd)),hd.exports}var pd={exports:{}},Qv;function Vi(){return Qv||(Qv=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){return function(r){var i=n,a=i.lib,s=a.WordArray,o=a.Hasher,l=i.algo,c=[];(function(){for(var h=0;h<64;h++)c[h]=r.abs(r.sin(h+1))*4294967296|0})();var u=l.MD5=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,g){for(var E=0;E<16;E++){var m=g+E,v=h[m];h[m]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var C=this._hash.words,y=h[g+0],x=h[g+1],w=h[g+2],S=h[g+3],D=h[g+4],I=h[g+5],b=h[g+6],O=h[g+7],T=h[g+8],M=h[g+9],P=h[g+10],R=h[g+11],W=h[g+12],N=h[g+13],U=h[g+14],Y=h[g+15],G=C[0],H=C[1],L=C[2],B=C[3];G=A(G,H,L,B,y,7,c[0]),B=A(B,G,H,L,x,12,c[1]),L=A(L,B,G,H,w,17,c[2]),H=A(H,L,B,G,S,22,c[3]),G=A(G,H,L,B,D,7,c[4]),B=A(B,G,H,L,I,12,c[5]),L=A(L,B,G,H,b,17,c[6]),H=A(H,L,B,G,O,22,c[7]),G=A(G,H,L,B,T,7,c[8]),B=A(B,G,H,L,M,12,c[9]),L=A(L,B,G,H,P,17,c[10]),H=A(H,L,B,G,R,22,c[11]),G=A(G,H,L,B,W,7,c[12]),B=A(B,G,H,L,N,12,c[13]),L=A(L,B,G,H,U,17,c[14]),H=A(H,L,B,G,Y,22,c[15]),G=d(G,H,L,B,x,5,c[16]),B=d(B,G,H,L,b,9,c[17]),L=d(L,B,G,H,R,14,c[18]),H=d(H,L,B,G,y,20,c[19]),G=d(G,H,L,B,I,5,c[20]),B=d(B,G,H,L,P,9,c[21]),L=d(L,B,G,H,Y,14,c[22]),H=d(H,L,B,G,D,20,c[23]),G=d(G,H,L,B,M,5,c[24]),B=d(B,G,H,L,U,9,c[25]),L=d(L,B,G,H,S,14,c[26]),H=d(H,L,B,G,T,20,c[27]),G=d(G,H,L,B,N,5,c[28]),B=d(B,G,H,L,w,9,c[29]),L=d(L,B,G,H,O,14,c[30]),H=d(H,L,B,G,W,20,c[31]),G=f(G,H,L,B,I,4,c[32]),B=f(B,G,H,L,T,11,c[33]),L=f(L,B,G,H,R,16,c[34]),H=f(H,L,B,G,U,23,c[35]),G=f(G,H,L,B,x,4,c[36]),B=f(B,G,H,L,D,11,c[37]),L=f(L,B,G,H,O,16,c[38]),H=f(H,L,B,G,P,23,c[39]),G=f(G,H,L,B,N,4,c[40]),B=f(B,G,H,L,y,11,c[41]),L=f(L,B,G,H,S,16,c[42]),H=f(H,L,B,G,b,23,c[43]),G=f(G,H,L,B,M,4,c[44]),B=f(B,G,H,L,W,11,c[45]),L=f(L,B,G,H,Y,16,c[46]),H=f(H,L,B,G,w,23,c[47]),G=p(G,H,L,B,y,6,c[48]),B=p(B,G,H,L,O,10,c[49]),L=p(L,B,G,H,U,15,c[50]),H=p(H,L,B,G,I,21,c[51]),G=p(G,H,L,B,W,6,c[52]),B=p(B,G,H,L,S,10,c[53]),L=p(L,B,G,H,P,15,c[54]),H=p(H,L,B,G,x,21,c[55]),G=p(G,H,L,B,T,6,c[56]),B=p(B,G,H,L,Y,10,c[57]),L=p(L,B,G,H,b,15,c[58]),H=p(H,L,B,G,N,21,c[59]),G=p(G,H,L,B,D,6,c[60]),B=p(B,G,H,L,R,10,c[61]),L=p(L,B,G,H,w,15,c[62]),H=p(H,L,B,G,M,21,c[63]),C[0]=C[0]+G|0,C[1]=C[1]+H|0,C[2]=C[2]+L|0,C[3]=C[3]+B|0},_doFinalize:function(){var h=this._data,g=h.words,E=this._nDataBytes*8,m=h.sigBytes*8;g[m>>>5]|=128<<24-m%32;var v=r.floor(E/4294967296),C=E;g[(m+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,g[(m+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,h.sigBytes=(g.length+1)*4,this._process();for(var y=this._hash,x=y.words,w=0;w<4;w++){var S=x[w];x[w]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return y},clone:function(){var h=o.clone.call(this);return h._hash=this._hash.clone(),h}});function A(h,g,E,m,v,C,y){var x=h+(g&E|~g&m)+v+y;return(x<<C|x>>>32-C)+g}function d(h,g,E,m,v,C,y){var x=h+(g&m|E&~m)+v+y;return(x<<C|x>>>32-C)+g}function f(h,g,E,m,v,C,y){var x=h+(g^E^m)+v+y;return(x<<C|x>>>32-C)+g}function p(h,g,E,m,v,C,y){var x=h+(E^(g|~m))+v+y;return(x<<C|x>>>32-C)+g}i.MD5=o._createHelper(u),i.HmacMD5=o._createHmacHelper(u)}(Math),n.MD5})}(pd)),pd.exports}var gd={exports:{}},Zv;function fy(){return Zv||(Zv=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,s=i.Hasher,o=r.algo,l=[],c=o.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,A){for(var d=this._hash.words,f=d[0],p=d[1],h=d[2],g=d[3],E=d[4],m=0;m<80;m++){if(m<16)l[m]=u[A+m]|0;else{var v=l[m-3]^l[m-8]^l[m-14]^l[m-16];l[m]=v<<1|v>>>31}var C=(f<<5|f>>>27)+E+l[m];m<20?C+=(p&h|~p&g)+1518500249:m<40?C+=(p^h^g)+1859775393:m<60?C+=(p&h|p&g|h&g)-1894007588:C+=(p^h^g)-899497514,E=g,g=h,h=p<<30|p>>>2,p=f,f=C}d[0]=d[0]+f|0,d[1]=d[1]+p|0,d[2]=d[2]+h|0,d[3]=d[3]+g|0,d[4]=d[4]+E|0},_doFinalize:function(){var u=this._data,A=u.words,d=this._nDataBytes*8,f=u.sigBytes*8;return A[f>>>5]|=128<<24-f%32,A[(f+64>>>9<<4)+14]=Math.floor(d/4294967296),A[(f+64>>>9<<4)+15]=d,u.sigBytes=A.length*4,this._process(),this._hash},clone:function(){var u=s.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA1=s._createHelper(c),r.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}(gd)),gd.exports}var vd={exports:{}},Jv;function Nh(){return Jv||(Jv=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){return function(r){var i=n,a=i.lib,s=a.WordArray,o=a.Hasher,l=i.algo,c=[],u=[];(function(){function f(E){for(var m=r.sqrt(E),v=2;v<=m;v++)if(!(E%v))return!1;return!0}function p(E){return(E-(E|0))*4294967296|0}for(var h=2,g=0;g<64;)f(h)&&(g<8&&(c[g]=p(r.pow(h,1/2))),u[g]=p(r.pow(h,1/3)),g++),h++})();var A=[],d=l.SHA256=o.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(f,p){for(var h=this._hash.words,g=h[0],E=h[1],m=h[2],v=h[3],C=h[4],y=h[5],x=h[6],w=h[7],S=0;S<64;S++){if(S<16)A[S]=f[p+S]|0;else{var D=A[S-15],I=(D<<25|D>>>7)^(D<<14|D>>>18)^D>>>3,b=A[S-2],O=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;A[S]=I+A[S-7]+O+A[S-16]}var T=C&y^~C&x,M=g&E^g&m^E&m,P=(g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22),R=(C<<26|C>>>6)^(C<<21|C>>>11)^(C<<7|C>>>25),W=w+R+T+u[S]+A[S],N=P+M;w=x,x=y,y=C,C=v+W|0,v=m,m=E,E=g,g=W+N|0}h[0]=h[0]+g|0,h[1]=h[1]+E|0,h[2]=h[2]+m|0,h[3]=h[3]+v|0,h[4]=h[4]+C|0,h[5]=h[5]+y|0,h[6]=h[6]+x|0,h[7]=h[7]+w|0},_doFinalize:function(){var f=this._data,p=f.words,h=this._nDataBytes*8,g=f.sigBytes*8;return p[g>>>5]|=128<<24-g%32,p[(g+64>>>9<<4)+14]=r.floor(h/4294967296),p[(g+64>>>9<<4)+15]=h,f.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var f=o.clone.call(this);return f._hash=this._hash.clone(),f}});i.SHA256=o._createHelper(d),i.HmacSHA256=o._createHmacHelper(d)}(Math),n.SHA256})}(vd)),vd.exports}var md={exports:{}},em;function BM(){return em||(em=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Nh())})(K,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,s=r.algo,o=s.SHA256,l=s.SHA224=o.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=o._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=o._createHelper(l),r.HmacSHA224=o._createHmacHelper(l)}(),n.SHA224})}(md)),md.exports}var Cd={exports:{}},tm;function hy(){return tm||(tm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),lu())})(K,function(n){return function(){var r=n,i=r.lib,a=i.Hasher,s=r.x64,o=s.Word,l=s.WordArray,c=r.algo;function u(){return o.create.apply(o,arguments)}var A=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],d=[];(function(){for(var p=0;p<80;p++)d[p]=u()})();var f=c.SHA512=a.extend({_doReset:function(){this._hash=new l.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(p,h){for(var g=this._hash.words,E=g[0],m=g[1],v=g[2],C=g[3],y=g[4],x=g[5],w=g[6],S=g[7],D=E.high,I=E.low,b=m.high,O=m.low,T=v.high,M=v.low,P=C.high,R=C.low,W=y.high,N=y.low,U=x.high,Y=x.low,G=w.high,H=w.low,L=S.high,B=S.low,X=D,z=I,q=b,Q=O,ae=T,te=M,re=P,Z=R,ie=W,we=N,be=U,Se=Y,ye=G,ne=H,Be=L,ut=B,me=0;me<80;me++){var de,dt,At=d[me];if(me<16)dt=At.high=p[h+me*2]|0,de=At.low=p[h+me*2+1]|0;else{var Vt=d[me-15],pt=Vt.high,Ht=Vt.low,_a=(pt>>>1|Ht<<31)^(pt>>>8|Ht<<24)^pt>>>7,Ie=(Ht>>>1|pt<<31)^(Ht>>>8|pt<<24)^(Ht>>>7|pt<<25),$=d[me-2],We=$.high,Ce=$.low,fe=(We>>>19|Ce<<13)^(We<<3|Ce>>>29)^We>>>6,Ge=(Ce>>>19|We<<13)^(Ce<<3|We>>>29)^(Ce>>>6|We<<26),De=d[me-7],xe=De.high,Ut=De.low,ft=d[me-16],Ot=ft.high,Gn=ft.low;de=Ie+Ut,dt=_a+xe+(de>>>0<Ie>>>0?1:0),de=de+Ge,dt=dt+fe+(de>>>0<Ge>>>0?1:0),de=de+Gn,dt=dt+Ot+(de>>>0<Gn>>>0?1:0),At.high=dt,At.low=de}var Da=ie&be^~ie&ye,gr=we&Se^~we&ne,zr=X&q^X&ae^q&ae,cu=z&Q^z&te^Q&te,uu=(X>>>28|z<<4)^(X<<30|z>>>2)^(X<<25|z>>>7),Gh=(z>>>28|X<<4)^(z<<30|X>>>2)^(z<<25|X>>>7),Iy=(ie>>>14|we<<18)^(ie>>>18|we<<14)^(ie<<23|we>>>9),wy=(we>>>14|ie<<18)^(we>>>18|ie<<14)^(we<<23|ie>>>9),Lh=A[me],by=Lh.high,Vh=Lh.low,kt=ut+wy,vr=Be+Iy+(kt>>>0<ut>>>0?1:0),kt=kt+gr,vr=vr+Da+(kt>>>0<gr>>>0?1:0),kt=kt+Vh,vr=vr+by+(kt>>>0<Vh>>>0?1:0),kt=kt+de,vr=vr+dt+(kt>>>0<de>>>0?1:0),Hh=Gh+cu,Sy=uu+zr+(Hh>>>0<Gh>>>0?1:0);Be=ye,ut=ne,ye=be,ne=Se,be=ie,Se=we,we=Z+kt|0,ie=re+vr+(we>>>0<Z>>>0?1:0)|0,re=ae,Z=te,ae=q,te=Q,q=X,Q=z,z=kt+Hh|0,X=vr+Sy+(z>>>0<kt>>>0?1:0)|0}I=E.low=I+z,E.high=D+X+(I>>>0<z>>>0?1:0),O=m.low=O+Q,m.high=b+q+(O>>>0<Q>>>0?1:0),M=v.low=M+te,v.high=T+ae+(M>>>0<te>>>0?1:0),R=C.low=R+Z,C.high=P+re+(R>>>0<Z>>>0?1:0),N=y.low=N+we,y.high=W+ie+(N>>>0<we>>>0?1:0),Y=x.low=Y+Se,x.high=U+be+(Y>>>0<Se>>>0?1:0),H=w.low=H+ne,w.high=G+ye+(H>>>0<ne>>>0?1:0),B=S.low=B+ut,S.high=L+Be+(B>>>0<ut>>>0?1:0)},_doFinalize:function(){var p=this._data,h=p.words,g=this._nDataBytes*8,E=p.sigBytes*8;h[E>>>5]|=128<<24-E%32,h[(E+128>>>10<<5)+30]=Math.floor(g/4294967296),h[(E+128>>>10<<5)+31]=g,p.sigBytes=h.length*4,this._process();var m=this._hash.toX32();return m},clone:function(){var p=a.clone.call(this);return p._hash=this._hash.clone(),p},blockSize:1024/32});r.SHA512=a._createHelper(f),r.HmacSHA512=a._createHmacHelper(f)}(),n.SHA512})}(Cd)),Cd.exports}var Ed={exports:{}},nm;function GM(){return nm||(nm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),lu(),hy())})(K,function(n){return function(){var r=n,i=r.x64,a=i.Word,s=i.WordArray,o=r.algo,l=o.SHA512,c=o.SHA384=l.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=16,u}});r.SHA384=l._createHelper(c),r.HmacSHA384=l._createHmacHelper(c)}(),n.SHA384})}(Ed)),Ed.exports}var xd={exports:{}},rm;function LM(){return rm||(rm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),lu())})(K,function(n){return function(r){var i=n,a=i.lib,s=a.WordArray,o=a.Hasher,l=i.x64,c=l.Word,u=i.algo,A=[],d=[],f=[];(function(){for(var g=1,E=0,m=0;m<24;m++){A[g+5*E]=(m+1)*(m+2)/2%64;var v=E%5,C=(2*g+3*E)%5;g=v,E=C}for(var g=0;g<5;g++)for(var E=0;E<5;E++)d[g+5*E]=E+(2*g+3*E)%5*5;for(var y=1,x=0;x<24;x++){for(var w=0,S=0,D=0;D<7;D++){if(y&1){var I=(1<<D)-1;I<32?S^=1<<I:w^=1<<I-32}y&128?y=y<<1^113:y<<=1}f[x]=c.create(w,S)}})();var p=[];(function(){for(var g=0;g<25;g++)p[g]=c.create()})();var h=u.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var g=this._state=[],E=0;E<25;E++)g[E]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(g,E){for(var m=this._state,v=this.blockSize/2,C=0;C<v;C++){var y=g[E+2*C],x=g[E+2*C+1];y=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360;var w=m[C];w.high^=x,w.low^=y}for(var S=0;S<24;S++){for(var D=0;D<5;D++){for(var I=0,b=0,O=0;O<5;O++){var w=m[D+5*O];I^=w.high,b^=w.low}var T=p[D];T.high=I,T.low=b}for(var D=0;D<5;D++)for(var M=p[(D+4)%5],P=p[(D+1)%5],R=P.high,W=P.low,I=M.high^(R<<1|W>>>31),b=M.low^(W<<1|R>>>31),O=0;O<5;O++){var w=m[D+5*O];w.high^=I,w.low^=b}for(var N=1;N<25;N++){var I,b,w=m[N],U=w.high,Y=w.low,G=A[N];G<32?(I=U<<G|Y>>>32-G,b=Y<<G|U>>>32-G):(I=Y<<G-32|U>>>64-G,b=U<<G-32|Y>>>64-G);var H=p[d[N]];H.high=I,H.low=b}var L=p[0],B=m[0];L.high=B.high,L.low=B.low;for(var D=0;D<5;D++)for(var O=0;O<5;O++){var N=D+5*O,w=m[N],X=p[N],z=p[(D+1)%5+5*O],q=p[(D+2)%5+5*O];w.high=X.high^~z.high&q.high,w.low=X.low^~z.low&q.low}var w=m[0],Q=f[S];w.high^=Q.high,w.low^=Q.low}},_doFinalize:function(){var g=this._data,E=g.words;this._nDataBytes*8;var m=g.sigBytes*8,v=this.blockSize*32;E[m>>>5]|=1<<24-m%32,E[(r.ceil((m+1)/v)*v>>>5)-1]|=128,g.sigBytes=E.length*4,this._process();for(var C=this._state,y=this.cfg.outputLength/8,x=y/8,w=[],S=0;S<x;S++){var D=C[S],I=D.high,b=D.low;I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w.push(b),w.push(I)}return new s.init(w,y)},clone:function(){for(var g=o.clone.call(this),E=g._state=this._state.slice(0),m=0;m<25;m++)E[m]=E[m].clone();return g}});i.SHA3=o._createHelper(h),i.HmacSHA3=o._createHmacHelper(h)}(Math),n.SHA3})}(xd)),xd.exports}var yd={exports:{}},im;function VM(){return im||(im=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){/** @preserve +}`,location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/Carousel.tsx",sourceMap:'{"version":3,"names":["anonymous","size","dataLength","handlerOffset","loop","_closure","totalSize","x","value","isNaN"],"sources":["/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/Carousel.tsx"],"mappings":"AA2DoC,SAAAA,SAAMA,CAAA;EAAA;IAAAC,IAAA;IAAAC,UAAA;IAAAC,aAAA;IAAAC;EAAA,SAAAC,QAAA;EACpC,MAAMC,SAAS,GAAGL,IAAI,GAAGC,UAAU;EACnC,MAAMK,CAAC,GAAGJ,aAAa,CAACK,KAAK,GAAGF,SAAS;EAEzC,IAAI,CAACF,IAAI,EACP,OAAOD,aAAa,CAACK,KAAK;EAE5B,OAAOC,KAAK,CAACF,CAAC,CAAC,GAAG,CAAC,GAAGA,CAAC;AACzB"}'},v=e.default.forwardRef(function(x,w){var S=(0,l.useInitProps)(x),D=S.testID,I=S.loop,b=S.autoFillData,O=S.data,T=S.dataLength,M=S.rawData,P=S.rawDataLength,R=S.mode,W=S.style,N=S.width,U=S.height,Y=S.vertical,G=S.autoPlay,H=S.windowSize,L=S.autoPlayReverse,B=S.autoPlayInterval,X=S.scrollAnimationDuration,z=S.withAnimation,q=S.renderItem,Q=S.onScrollEnd,ae=S.onSnapToItem,te=S.onScrollBegin,re=S.onProgressChange,Z=S.customAnimation,ie=S.defaultIndex,we=(0,o.useCommonVariables)(S),be=we.size,Se=we.handlerOffset,ye=(0,i.useDerivedValue)(function(){var De=[new K.Error,-5,-27],xe=function(){var ft=be*T,Ot=Se.value%ft;return I?isNaN(Ot)?0:Ot:Se.value};return xe._closure={size:be,dataLength:T,handlerOffset:Se,loop:I},xe.__initData=m,xe.__workletHash=0x93577184796,xe.__stackDetails=De,xe.__version="3.3.0",xe}(),[I,be,T]);(0,A.usePropsErrorBoundary)(Object.assign({},S,{dataLength:T})),(0,u.useOnProgressChange)({autoFillData:b,loop:I,size:be,offsetX:ye,rawDataLength:P,onProgressChange:re});var ne=(0,s.useCarouselController)({loop:I,size:be,dataLength:T,autoFillData:b,handlerOffset:Se,withAnimation:z,defaultIndex:ie,onScrollEnd:function(){return(0,i.runOnJS)(Ht)()},onScrollBegin:function(){return!!te&&(0,i.runOnJS)(te)()},duration:X}),Be=ne.next,ut=ne.prev,me=ne.scrollTo,de=ne.getSharedIndex,dt=ne.getCurrentIndex,At=(0,a.useAutoPlay)({autoPlay:G,autoPlayInterval:B,autoPlayReverse:L,carouselController:ne}),Vt=At.start,pt=At.pause,Ht=e.default.useCallback(function(){var De=Math.round(de()),xe=(0,g.computedRealIndexWithAutoFillData)({index:De,dataLength:P,loop:I,autoFillData:b});ae&&ae(xe),Q&&Q(xe)},[I,b,P,de,ae,Q]),_a=e.default.useCallback(function(){pt(),te==null||te()},[te,pt]),Ie=e.default.useCallback(function(){Vt(),Ht()},[Ht,Vt]),$=e.default.useCallback(pt,[pt]),We=e.default.useCallback(Vt,[Vt]);e.default.useImperativeHandle(w,function(){return{next:Be,prev:ut,getCurrentIndex:dt,scrollTo:me}},[dt,Be,ut,me]);var Ce=(0,d.useVisibleRanges)({total:T,viewSize:be,translation:Se,windowSize:H}),fe=(0,c.useLayoutConfig)(Object.assign({},S,{size:be})),Ge=e.default.useCallback(function(De,xe){var Ut=(0,g.computedRealIndexWithAutoFillData)({index:xe,dataLength:P,loop:I,autoFillData:b});return(0,E.jsx)(f.BaseLayout,{index:xe,handlerOffset:ye,visibleRanges:Ce,animationStyle:Z||fe,children:function(Ot){var Gn=Ot.animationValue;return q({item:De,index:Ut,animationValue:Gn})}},xe)},[I,M,ye,Ce,b,q,fe,Z]);return(0,E.jsx)(r.GestureHandlerRootView,{children:(0,E.jsx)(h.CTX.Provider,{value:{props:S,common:we},children:(0,E.jsx)(p.ScrollViewGesture,{size:be,translation:Se,style:[y.container,{width:N||"100%",height:U||"100%"},W,Y?y.itemsVertical:y.itemsHorizontal],testID:D,onScrollBegin:_a,onScrollEnd:Ie,onTouchBegin:$,onTouchEnd:We,children:O.map(Ge)},R)})})}),C=v;Ra.default=C;var y=n.StyleSheet.create({container:{overflow:"hidden"},itemsHorizontal:{flexDirection:"row"},itemsVertical:{flexDirection:"column"}});return Ra}(function(t){var e=An;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ILayoutConfig",{enumerable:!0,get:function(){return r.ILayoutConfig}}),t.default=void 0;var n=e(oM()),r=ay(),i=n.default;t.default=i})(LE);const lM=Ur(LE),yl=({children:t,waitBeforeShow:e=500})=>{const[n,r]=_.useState(!1);return _.useEffect(()=>{const i=setTimeout(()=>{r(!0)},e);return()=>clearTimeout(i)},[e]),n?t:k.jsx(S1,{testID:"DelayPleaseWait"})};try{yl.displayName="Delay",yl.__docgenInfo={description:"",displayName:"Delay",props:{waitBeforeShow:{defaultValue:{value:"500"},description:"",name:"waitBeforeShow",required:!1,type:{name:"number"}}}}}catch{}const Ef=_.forwardRef(({children:t,grow:e,withBottomInset:n=!1,...r},i)=>{const a=Ls();return k.jsx(ya,{contentContainerStyle:!!e&&_1.grow,keyboardShouldPersistTaps:e?"handled":void 0,ref:i,scrollIndicatorInsets:{right:Number.MIN_VALUE},style:!!n&&{paddingBottom:a.bottom},...r,children:t})});try{Ef.displayName="ScrollView",Ef.__docgenInfo={description:"",displayName:"ScrollView",props:{grow:{defaultValue:null,description:"",name:"grow",required:!1,type:{name:"boolean"}},withBottomInset:{defaultValue:{value:"false"},description:"",name:"withBottomInset",required:!1,type:{name:"boolean"}}}}}catch{}const cM=({isActive:t=!0,platform:e}={})=>{const n=Bn(),r=_.useRef(null),i=d1(),a=Rf(),[s,o]=_.useState(!1),[l,c]=_.useState(!1);return _.useLayoutEffect(()=>(c(!0),()=>{c(!1)}),[]),Zm(_.useCallback(()=>(o(!0),()=>{o(!1)}),[])),_.useLayoutEffect(()=>{if(e&&ue.OS!==e||!r.current||!t||!s||!l||!a)return;i(r.current);const u=setTimeout(()=>i(r.current),Pf.normal);return()=>clearTimeout(u)},[n,i,r,t,s,l,a,e]),r},uM=t=>_.createElement("svg",{width:78,height:48,viewBox:"0 0 78 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-0.000244141 11.2875L4.24626 7.05467L-0.000244141 2.82187L2.83076 0L7.07726 4.2328L11.3238 0L14.1548 2.82187L9.90826 7.05467L14.1548 11.2875L11.3238 14.1093L7.07726 9.87654L2.83076 14.1093L-0.000244141 11.2875ZM24.7852 1.28395C22.6619 1.28395 21.1615 2.79365 21.1615 4.93827C21.1615 7.097 22.6336 8.62081 24.7144 8.62081C26.7386 8.62081 28.1399 7.35097 28.1399 5.54497V4.44444H24.9834V5.62963H26.6961V5.81305C26.6961 6.75838 25.9034 7.40741 24.7569 7.40741C23.5112 7.40741 22.6336 6.39153 22.6336 4.93827C22.6336 3.51323 23.5254 2.51146 24.8135 2.51146C25.5071 2.51146 26.0874 2.76543 26.4838 3.21693L27.418 2.32804C26.7669 1.63668 25.861 1.28395 24.7852 1.28395ZM56.7047 17.1005C56.7047 15.4356 57.8088 14.2645 59.3659 14.2645C60.0878 14.2645 60.6681 14.575 61.0503 15.1534H61.0786V11.8942H62.4234V19.7672H61.1494V18.9347H61.1211C60.7672 19.5414 60.1161 19.9083 59.3659 19.9083C57.8088 19.8942 56.7047 18.7372 56.7047 17.1005ZM61.0645 17.0864C61.0645 16.1129 60.47 15.478 59.5782 15.478C58.6864 15.478 58.0919 16.127 58.0919 17.0864C58.0919 18.0459 58.6864 18.6949 59.5782 18.6949C60.47 18.6949 61.0645 18.0459 61.0645 17.0864ZM25.3372 12.6984H23.7094L20.8501 19.7531H22.3081L22.9026 18.2011H26.0591L26.6536 19.7531H28.1682L25.3372 12.6984ZM25.6345 17.0441H23.3414L24.4738 14.067H24.5021L25.6345 17.0441ZM30.334 14.4056H29.0742V19.7672H30.4189V16.7901C30.4189 15.9295 30.7728 15.4497 31.3956 15.4497C32.0326 15.4497 32.3298 15.8589 32.3298 16.7478V19.7672H33.6745V16.7901C33.6745 15.9153 34.0284 15.4497 34.6512 15.4497C35.274 15.4497 35.5855 15.873 35.5855 16.7478V19.7672H36.9302V16.522C36.9302 15.0123 36.2932 14.2787 34.9626 14.2787C34.1983 14.2787 33.6038 14.6032 33.2782 15.1958C32.9526 14.5891 32.4289 14.2787 31.7353 14.2787C31.1125 14.2787 30.6312 14.5891 30.3623 15.1393H30.334V14.4056ZM39.4215 17.5097C38.6854 17.2981 37.9777 16.903 37.9777 15.9295C37.9777 14.9418 38.8128 14.2645 40.0443 14.2645C40.8794 14.2645 41.5164 14.5608 41.8703 15.097L41.0918 15.873C40.8228 15.5344 40.4548 15.351 40.0443 15.351C39.5913 15.351 39.3082 15.5626 39.3082 15.8871C39.3082 16.2667 39.6493 16.37 40.1743 16.529C40.2543 16.5532 40.3385 16.5787 40.4265 16.6067C41.1625 16.8183 41.8703 17.2134 41.8703 18.1869C41.8703 19.2028 40.9927 19.8942 39.7187 19.8942C38.8836 19.8942 38.2041 19.5979 37.8078 19.0476L38.5863 18.2716C38.8836 18.6243 39.2799 18.8078 39.7046 18.8078C40.2283 18.8078 40.5397 18.5961 40.5397 18.2293C40.5397 17.8544 40.1844 17.7451 39.6409 17.578C39.5708 17.5564 39.4975 17.5339 39.4215 17.5097ZM43.2999 15.5203V17.8483C43.2999 19.1323 43.9369 19.8095 45.1826 19.8095C45.4232 19.8095 45.7204 19.7813 45.8903 19.739V18.6102C45.7771 18.6384 45.5931 18.6667 45.4373 18.6667C44.9278 18.6667 44.6588 18.3704 44.6588 17.8483V15.5203H45.9611V14.4056H44.6588V12.9524H43.4981V13.7848C43.4981 14.2363 43.3283 14.4056 42.8753 14.4056H42.3799V15.5203H43.2999ZM46.6122 17.0864C46.6122 15.4215 47.7305 14.2787 49.33 14.2787C50.9295 14.2787 52.0477 15.4215 52.0477 17.0582C52.0477 17.1534 52.0318 17.2963 52.0179 17.4213C52.0132 17.463 52.0088 17.5026 52.0053 17.5379H47.9711C48.0702 18.2716 48.693 18.7513 49.4857 18.7513C50.0802 18.7513 50.5898 18.5397 50.9295 18.1446L51.7505 18.9347C51.2551 19.5697 50.4058 19.9083 49.4291 19.9083C47.7729 19.8942 46.6122 18.7372 46.6122 17.0864ZM50.6889 16.5362C50.6039 15.8307 50.0519 15.351 49.33 15.351C48.5939 15.351 48.056 15.8307 47.9711 16.5362H50.6889ZM54.4541 14.4056H53.1943V19.7813H54.539V16.9594C54.539 16.1552 54.9778 15.6332 55.6714 15.6332C55.8837 15.6332 56.181 15.6614 56.3367 15.7037V14.4198C56.2518 14.3915 56.0253 14.3633 55.8554 14.3633C55.2185 14.3633 54.7372 14.6878 54.4824 15.2945H54.4541V14.4056ZM65.7498 16.5644C64.3201 16.5785 63.4567 17.1993 63.4567 18.2293C63.4567 19.2169 64.2352 19.8942 65.3393 19.8942C66.0187 19.8942 66.5708 19.6261 66.9105 19.1323H66.9388C67.0521 19.5273 67.4059 19.7672 67.9155 19.7672H68.5525V18.709H68.4534C68.2269 18.709 68.142 18.6243 68.142 18.4268V16.2963C68.142 15.0406 67.2361 14.2645 65.7923 14.2645C64.858 14.2645 64.1078 14.575 63.6407 15.1534L64.4617 15.9436C64.7589 15.6049 65.1836 15.4215 65.6649 15.4215C66.4009 15.4215 66.7973 15.746 66.7973 16.381V16.5503L65.7498 16.5644ZM66.7973 17.4533V17.7637C66.7973 18.4409 66.316 18.9065 65.5941 18.9065C65.1411 18.9065 64.8156 18.6102 64.8156 18.2011C64.8156 17.7213 65.1978 17.4815 65.9055 17.4674L66.7973 17.4533ZM69.6141 14.4056H70.8739V15.1393H70.9022C71.1712 14.5891 71.6524 14.2787 72.2753 14.2787C72.9688 14.2787 73.4926 14.5891 73.8181 15.1958C74.1437 14.6032 74.7382 14.2787 75.5026 14.2787C76.8332 14.2787 77.4701 15.0123 77.4701 16.522V19.7672H76.1254V16.7478C76.1254 15.873 75.814 15.4497 75.1912 15.4497C74.5542 15.4497 74.2145 15.9153 74.2145 16.7901V19.7672H72.8698V16.7478C72.8698 15.8589 72.5725 15.4497 71.9355 15.4497C71.3127 15.4497 70.9588 15.9295 70.9588 16.7901V19.7672H69.6141V14.4056ZM29.06 5.79894C29.06 4.13404 30.1782 2.99118 31.7778 2.99118C33.3773 2.99118 34.4955 4.13404 34.4955 5.77072C34.4955 5.86597 34.4796 6.00884 34.4657 6.13385C34.461 6.17551 34.4566 6.21518 34.4531 6.25044H30.4189C30.518 6.98413 31.1408 7.46384 31.9335 7.46384C32.528 7.46384 33.0376 7.2522 33.3773 6.85714L34.1983 7.64727C33.7028 8.28219 32.8535 8.62081 31.8768 8.62081C30.2066 8.62081 29.06 7.44973 29.06 5.79894ZM33.1366 5.26279C33.0517 4.55732 32.4997 4.0776 31.7778 4.0776C31.0559 4.0776 30.4897 4.55732 30.4189 5.26279H33.1366ZM36.8736 3.11817H35.6138V8.47972H36.9585V5.50265C36.9585 4.64197 37.3124 4.16226 37.9352 4.16226C38.5722 4.16226 38.8694 4.57143 38.8694 5.46032V8.47972H40.2141V5.50265C40.2141 4.62787 40.568 4.16226 41.1908 4.16226C41.8137 4.16226 42.1251 4.58554 42.1251 5.46032V8.47972H43.4698V5.23457C43.4698 3.72487 42.8328 2.99118 41.5023 2.99118C40.7379 2.99118 40.1434 3.3157 39.8178 3.90829C39.4922 3.30159 38.9685 2.99118 38.2749 2.99118C37.6521 2.99118 37.1708 3.30159 36.9019 3.85185H36.8736V3.11817ZM44.5597 5.79894C44.5597 4.13404 45.678 2.99118 47.2775 2.99118C48.877 2.99118 49.9953 4.13404 49.9953 5.77072C49.9953 5.86596 49.9793 6.00882 49.9654 6.13382C49.9608 6.17548 49.9563 6.21517 49.9528 6.25044H45.9186C46.0177 6.98413 46.6405 7.46384 47.4332 7.46384C48.0277 7.46384 48.5373 7.2522 48.877 6.85714L49.698 7.64727C49.2026 8.28219 48.3533 8.62081 47.3766 8.62081C45.7063 8.62081 44.5597 7.44973 44.5597 5.79894ZM48.6364 5.26279C48.5515 4.55732 47.9994 4.0776 47.2775 4.0776C46.5414 4.0776 45.9894 4.55732 45.9186 5.26279H48.6364ZM53.4916 2.99118C51.892 2.99118 50.7738 4.13404 50.7738 5.79894C50.7738 7.44973 51.9345 8.62081 53.5906 8.62081C54.5673 8.62081 55.4166 8.28219 55.9121 7.64727L55.0911 6.85714C54.7514 7.2522 54.2418 7.46384 53.6473 7.46384C52.8546 7.46384 52.2318 6.98413 52.1327 6.25044H56.1668C56.1704 6.21517 56.1748 6.17548 56.1795 6.13382C56.1934 6.00882 56.2093 5.86596 56.2093 5.77072C56.2093 4.13404 55.0911 2.99118 53.4916 2.99118ZM53.5057 4.0776C54.2276 4.0776 54.7797 4.55732 54.8646 5.26279H52.1468C52.2176 4.55732 52.7555 4.0776 53.5057 4.0776ZM57.3559 3.11817H58.6157V3.85185H58.644C58.8988 3.3157 59.4366 2.99118 60.0736 2.99118C61.4184 2.99118 62.1261 3.7672 62.1261 5.23457V8.47972H60.7814V5.50265C60.7814 4.58554 60.4558 4.16226 59.7622 4.16226C59.0686 4.16226 58.7006 4.64197 58.7006 5.53086V8.47972H57.3559V3.11817ZM63.853 4.2328V6.56085C63.853 7.85891 64.4758 8.52205 65.7356 8.52205C65.9763 8.52205 66.2735 8.49383 66.4434 8.4515V7.32275C66.3301 7.35097 66.1461 7.37919 65.9904 7.37919C65.4808 7.37919 65.2119 7.08289 65.2119 6.56085V4.2328H66.5142V3.11817H65.2119V1.6649H64.0512V2.49735C64.0512 2.94885 63.8813 3.11817 63.4284 3.11817H62.9329V4.2328H63.853ZM67.1653 5.79894C67.1653 4.13404 68.2835 2.99118 69.8831 2.99118C71.4826 2.99118 72.6008 4.13404 72.6008 5.77072C72.6008 5.86584 72.5849 6.00845 72.571 6.13333L72.571 6.13346V6.13353L72.571 6.13369L72.5707 6.136C72.5662 6.17687 72.5618 6.21578 72.5583 6.25044H68.5242C68.6233 6.98413 69.2461 7.46384 70.0388 7.46384C70.6333 7.46384 71.1429 7.2522 71.4826 6.85714L72.3036 7.64727C71.8081 8.28219 70.9588 8.62081 69.9821 8.62081C68.3118 8.62081 67.1653 7.44973 67.1653 5.79894ZM68.5242 5.26279H71.2419C71.157 4.55732 70.605 4.0776 69.8831 4.0776C69.147 4.0776 68.5949 4.55732 68.5242 5.26279ZM4.24626 40.9453L-0.000244141 45.1781L2.83076 48L7.07726 43.7672L11.3238 48L14.1548 45.1781L9.90826 40.9453L14.1548 36.7125L11.3238 33.8907L7.07726 38.1235L2.83076 33.8907L-0.000244141 36.7125L4.24626 40.9453ZM4.24626 24.0141L-0.000244141 28.2469L2.83076 31.0688L7.07726 26.836L11.3238 31.0688L14.1548 28.2469L9.90826 24.0141L14.1548 19.7813L11.3238 16.9594L7.07726 21.1922L2.83076 16.9594L-0.000244141 19.7813L4.24626 24.0141Z",fill:"#E42313"})),dM=()=>null,Lv={AZTEC:"AZTEC",CODE128:"CODE128",PDF417:"PDF417",QR:"QR",EAN13:"EAN13",UPCA:"UPCA"},Vv=80,AM=40,Hv=100,ld=44,Il=({value:t,format:e,width:n})=>{const r=Nn(),i=_.useMemo(()=>{const s=ue.OS==="android"?Vv:Vv+AM,o=ue.OS==="android"&&e==="CODE128"?ld/2:void 0,l=ue.OS==="ios"&&e==="QR"?ld/2:void 0,c=ue.OS==="ios"?Hv:Hv+ld;return{heightCode128:s,padding:l,paddingVertical:o,sizeQR:c}},[e]),a=fM(e,i.heightCode128,i.padding,i.paddingVertical,i.sizeQR,n);return k.jsx(pe,{style:a.container,children:k.jsx(dM,{background:r.color.barcode.background,foregroundColor:r.color.barcode.foreground,format:e==="QR"?Lv.QR:Lv.CODE128,style:a.barcode,value:t})})},fM=(t,e,n,r,i,a)=>he.create({container:{padding:n,paddingVertical:r},barcode:{paddingVertical:0,marginVertical:0,height:t==="QR"?i:e,width:t==="QR"?i:a}});try{Il.displayName="BarCode",Il.__docgenInfo={description:"",displayName:"BarCode",props:{format:{defaultValue:null,description:"",name:"format",required:!0,type:{name:"enum",value:[{value:'"QR"'},{value:'"CODE128"'}]}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"number"}}}}}catch{}const sy=312,oy=550,hM=.33;Bo.citypass,Bo.cityPassChildBudget,Bo.cityPassUsage;const ly=t=>Math.min(t*.8,sy),Uv=(t,e)=>t?t.replace(new RegExp(`.{1,${e}}`,"g"),"$& ").trim():"",Za=10,xf=({index:t,isCurrentIndex:e,itemCount:n,cityPass:{firstname:r,infix:i,lastname:a,passNumberComplete:s,dateEndFormatted:o}})=>{const{width:l}=qm(),c=ly(l),u=cM({isActive:e}),A=On(d=>pM(d,c));return k.jsx(Zh,{hide:!e,style:A.container,children:k.jsx(pe,{style:A.containerInner,children:k.jsx(Ef,{accessibilityLabel:`De stadspas van ${r} ${i||""} ${a} kan nu gescand worden. Stadspas ${Uv(s,4)}. Geldig tot en met ${o}. Pas ${t+1} van ${n}. Swipe naar links of rechts om door de passen te navigeren.`,accessible:!0,ref:u,style:A.pass,children:k.jsx(Zh,{children:k.jsxs(Dn,{grow:1,gutter:"md",children:[k.jsx(pe,{style:A.passHeader,children:k.jsx(hr,{children:k.jsx(uM,{})})}),k.jsx(pe,{style:A.passInner,children:k.jsxs(Dn,{grow:1,gutter:"md",halign:"center",children:[k.jsxs(kn,{emphasis:"strong",testID:"CityPassCityPassName",children:[r," ",i," ",a]}),k.jsxs(Dn,{halign:"center",children:[k.jsx(yl,{children:k.jsx(Il,{format:"CODE128",value:s,width:c})}),k.jsx(pe,{style:A.passNumber,children:k.jsx(kn,{emphasis:"strong",testID:"CityPassCityPassPassNumber",children:Uv(s,4)})})]}),k.jsx(yl,{children:k.jsx(Il,{format:"QR",value:s})}),k.jsxs(D1,{textAlign:"center",children:["Geldig tot en met ",o]})]})})]})})})})})},pM=({color:t,size:e},n)=>he.create({container:{flex:1,justifyContent:"center",alignItems:"center"},containerInner:{overflow:"hidden",borderRadius:Za},pass:{backgroundColor:t.cityPass.passBackground,width:n,maxHeight:oy,borderRadius:Za},passHeader:{backgroundColor:t.cityPass.passHeader,borderTopLeftRadius:Za,borderTopRightRadius:Za},passInner:{backgroundColor:t.cityPass.passInner,borderRadius:Za,paddingTop:e.spacing.md,paddingBottom:e.spacing.md},passNumber:{marginTop:-e.spacing.md}});try{xf.displayName="CityPass",xf.__docgenInfo={description:"",displayName:"CityPass",props:{cityPass:{defaultValue:null,description:"",name:"cityPass",required:!0,type:{name:"CityPassPass"}},index:{defaultValue:null,description:"",name:"index",required:!0,type:{name:"number"}},isCurrentIndex:{defaultValue:null,description:"",name:"isCurrentIndex",required:!1,type:{name:"boolean"}},itemCount:{defaultValue:null,description:"",name:"itemCount",required:!0,type:{name:"number"}}}}}catch{}const yf=t=>{const{animValue:e,dotStyle:n,activeDotStyle:r,index:i,count:a,size:s,horizontal:o,children:l,...c}=t,u=10,A={width:s||(n==null?void 0:n.width)||u,height:s||(n==null?void 0:n.height)||u},{width:d}=A,{height:f}=A,p=Fn(()=>{const h=o?f:d,g=[i-1,i,i+1],E=[-h,0,h];return{transform:[{translateX:Lt(e==null?void 0:e.value,g,E,Ye.CLAMP)}]}},[e,i,a,o]);return k.jsx(pe,{...c,style:[{width:d,height:f},Wv.dot,n],children:k.jsx($t.View,{style:[Wv.activeDot,p,r],children:l})})},Wv=he.create({dot:{overflow:"hidden"},activeDot:{backgroundColor:"black",flex:1}});try{yf.displayName="PaginationItem",yf.__docgenInfo={description:"",displayName:"PaginationItem",props:{activeDotStyle:{defaultValue:null,description:"",name:"activeDotStyle",required:!1,type:{name:"DotStyle"}},animValue:{defaultValue:null,description:"",name:"animValue",required:!0,type:{name:"SharedValue<number>"}},count:{defaultValue:null,description:"",name:"count",required:!0,type:{name:"number"}},dotStyle:{defaultValue:null,description:"",name:"dotStyle",required:!1,type:{name:"DotStyle"}},horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"boolean"}},index:{defaultValue:null,description:"",name:"index",required:!0,type:{name:"number"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"number"}}}}}catch{}const If=t=>{const{activeDotStyle:e,currentIndex:n,dotStyle:r,progress:i,horizontal:a=!0,data:s,size:o,containerStyle:l,renderItem:c,onPress:u}=t;if(typeof o=="string"||typeof(r==null?void 0:r.width)=="string"||typeof(r==null?void 0:r.height)=="string")throw new Error("size/width/height must be a number");return k.jsx(pe,{style:[gM.container,l],children:s.map((A,d)=>k.jsx(Ph,{hitSlop:5,onPress:()=>u==null?void 0:u(d),children:k.jsx(yf,{accessibilityLabel:n===d?`Huidige slide, ${d+1}`:`Ga naar slide ${d+1}`,activeDotStyle:e,animValue:i,count:s.length,dotStyle:r,horizontal:!a,index:d,size:o,children:c==null?void 0:c(A,d)})},d))})},gM=he.create({container:{justifyContent:"space-between",alignSelf:"center",flexDirection:"row"}});try{If.displayName="Basic",If.__docgenInfo={description:"",displayName:"Basic",props:{activeDotStyle:{defaultValue:null,description:"",name:"activeDotStyle",required:!1,type:{name:"DotStyle"}},containerStyle:{defaultValue:null,description:"",name:"containerStyle",required:!1,type:{name:"StyleProp<ViewStyle>"}},currentIndex:{defaultValue:null,description:"",name:"currentIndex",required:!1,type:{name:"number"}},data:{defaultValue:null,description:"",name:"data",required:!0,type:{name:"T[]"}},dotStyle:{defaultValue:null,description:"",name:"dotStyle",required:!1,type:{name:"DotStyle"}},horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"boolean"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!1,type:{name:"((index: number) => void)"}},progress:{defaultValue:null,description:"",name:"progress",required:!0,type:{name:"SharedValue<number>"}},renderItem:{defaultValue:null,description:"",name:"renderItem",required:!1,type:{name:"((item: T, index: number) => ReactNode)"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"number"}}}}}catch{}const vM=(t,e,n)=>(t-e)*.5*(1+n),Xv=50,mM=()=>{const e=On(CM),n=RE(),{width:r}=qm(),i=_.useRef(null),[a,s]=_.useState(0),o=tt(B4),l=ct(0),c=A=>{var d;(d=i.current)==null||d.scrollTo({count:A-l.value,animated:!0})},u=ly(r);return k.jsxs(pe,{style:e.container,children:[k.jsx(lM,{data:n,defaultIndex:o,loop:!1,mode:"parallax",modeConfig:{parallaxScrollingScale:1,parallaxScrollingOffset:vM(r,u,hM),parallaxAdjacentItemScale:1},onProgressChange:(A,d)=>{s(Math.round(d)),l.value=d<0?0:d},pagingEnabled:!0,ref:i,renderItem:({item:A,index:d})=>k.jsx(xf,{cityPass:A,index:d,isCurrentIndex:a===d,itemCount:n.length}),snapEnabled:!0,style:{width:r},vertical:!1,width:r}),k.jsx(pe,{style:e.paginationContainer,children:k.jsx(If,{activeDotStyle:e.paginationItemActive,containerStyle:e.pagination,currentIndex:a,data:n,dotStyle:e.paginationItem,onPress:c,progress:l})})]})},CM=({color:t,size:e,border:n})=>he.create({container:{flexBasis:oy+Xv},paginationContainer:{height:Xv,justifyContent:"flex-end"},pagination:{borderRadius:25,backgroundColor:t.pagination.container.background,alignItems:"center",paddingHorizontal:e.spacing.sm,paddingVertical:12},paginationItem:{width:e.spacing.sm,height:e.spacing.sm,marginHorizontal:e.spacing.xs,backgroundColor:t.pagination.item.inactive,borderRadius:n.radius.sm},paginationItemActive:{backgroundColor:t.pagination.item.active}}),cy=()=>{const t=Bn(),e=tt(N4),{color:n}=Nn();_.useEffect(()=>(e&&H4(vt.PORTRAIT_UP),()=>{U4()}),[e]);const r=_.useCallback(()=>{const i="Dit scherm staat geen schermafdrukken toe";Jn.alert(i),T1.announceForAccessibilityWithOptions(i,{queue:!0})},[]);return r8({enabled:e,onScreenshot:r}),i8({enabled:e}),e?k.jsx(jA,{backgroundColor:n.cityPass.overlay,closeButtonContainerWidth:sy,onClose:()=>{t(F4())},children:k.jsx(mM,{})}):null};cy.renderBeforeServerModules=!0;var uy=(t=>(t.budget="Budget",t.cityPassDetails="CityPassDetails",t.cityPassLogout="CityPassLogout",t.dashboard="Dashboard",t.securityCode="SecurityCode",t))(uy||{});const EM={linking:{[uy.dashboard]:"stadspas/:loginResult/:accessToken?/:refreshToken?"},logDimension:nn.cityPassModule,name:"CityPassModule",HeaderComponent:G4,PreRenderComponent:cy,reduxConfigs:[{key:le.cityPass,slice:NE,persistVersion:0,persistWhitelist:["isCityPassOwnerRegistered"]}],slug:$e["city-pass"]},dy=Um?60:3,xM=({id:t,type:e})=>`${e}${t}`,yM=(t,e)=>{if(!e||e.length===0)return 0;const n=e.map(({meta_id:i})=>xM(i)),r=t.map(({id:i})=>i);return n.filter(i=>!r.includes(i)).length},IM=(t,e)=>_.useMemo(()=>yM(t,e),[t,e]);var pn=(t=>(t.articles="articles",t.projectDetails="projectDetails",t.projectFollow="projectFollow",t.projectNews="projectNews",t.projectUnfollow="projectUnfollow",t.projectWarning="projectWarning",t.projects="projects",t.projectsFollowedArticles="projectsFollowedArticles",t.projectsSearch="projectsSearch",t))(pn||{});const wM=t=>({...t,fields:t.fields.join(","),query_fields:t.query_fields.join(",")}),bM=t=>{var e;return t.timeline?{...t,timeline:{...t.timeline,items:((e=t.timeline.items)==null?void 0:e.map(n=>({...n,progress:"Huidig"})))??null}}:t};var Xn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,62,0,63,52,53,54,55,56,57,58,59,60,61,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,0,0,0,0,63,0,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],SM=function(e,n){for(var r=e.length,i=e[r-2]==="="?2:e[r-1]==="="?1:0,a,s=0,o=r-i&4294967292,l=0;l<o;l+=4)a=Xn[e.charCodeAt(l)]<<18|Xn[e.charCodeAt(l+1)]<<12|Xn[e.charCodeAt(l+2)]<<6|Xn[e.charCodeAt(l+3)],n[s++]=a>>16&255,n[s++]=a>>8&255,n[s++]=a&255;i===1&&(a=Xn[e.charCodeAt(l)]<<10|Xn[e.charCodeAt(l+1)]<<4|Xn[e.charCodeAt(l+2)]>>2,n[s++]=a>>8&255,n[s++]=a&255),i===2&&(a=Xn[e.charCodeAt(l)]<<2|Xn[e.charCodeAt(l+1)]>>4,n[s++]=a&255)};const _M=SM,{NativeModules:Po}=Wc;class DM extends Error{}class TM extends Error{}let Yv=!1;function OM(t){Yv||(console.warn("Using an insecure random number generator, this should only happen when running in a debugger without support for crypto.getRandomValues"),Yv=!0);for(let e=0,n;e<t.length;e++)e&3||(n=Math.random()*4294967296),t[e]=n>>>((e&3)<<3)&255;return t}function kM(t){if(Po.RNGetRandomValues)return Po.RNGetRandomValues.getRandomBase64(t);if(Po.ExpoRandom)return Po.ExpoRandom.getRandomBase64String(t);if(K.ExpoModules)return K.ExpoModules.ExpoRandom.getRandomBase64String(t);throw new Error("Native module not found")}function MM(t){if(!(t instanceof Int8Array||t instanceof Uint8Array||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8ClampedArray))throw new DM("Expected an integer array");if(t.byteLength>65536)throw new TM("Can only request a maximum of 65536 bytes");return K.expo&&K.expo.modules&&K.expo.modules.ExpoCrypto&&K.expo.modules.ExpoCrypto.getRandomValues?(K.expo.modules.ExpoCrypto.getRandomValues(t),t):PM()?OM(t):(_M(kM(t.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t)}function PM(){return"RN$Bridgeless"in K&&RN$Bridgeless===!0,!1}typeof K.crypto!="object"&&(K.crypto={});typeof K.crypto.getRandomValues!="function"&&(K.crypto.getRandomValues=MM);var Ay={exports:{}},cd={exports:{}},zv;function ve(){return zv||(zv=1,function(t,e){(function(n,r){t.exports=r()})(K,function(){var n=n||function(r,i){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof K<"u"&&K.crypto&&(a=K.crypto),!a&&typeof O1=="function")try{a=RT}catch{}var s=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function m(){}return function(v){var C;return m.prototype=v,C=new m,m.prototype=null,C}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(m){var v=o(this);return m&&v.mixIn(m),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var v in m)m.hasOwnProperty(v)&&(this[v]=m[v]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),A=c.WordArray=u.extend({init:function(m,v){m=this.words=m||[],v!=i?this.sigBytes=v:this.sigBytes=m.length*4},toString:function(m){return(m||f).stringify(this)},concat:function(m){var v=this.words,C=m.words,y=this.sigBytes,x=m.sigBytes;if(this.clamp(),y%4)for(var w=0;w<x;w++){var S=C[w>>>2]>>>24-w%4*8&255;v[y+w>>>2]|=S<<24-(y+w)%4*8}else for(var D=0;D<x;D+=4)v[y+D>>>2]=C[D>>>2];return this.sigBytes+=x,this},clamp:function(){var m=this.words,v=this.sigBytes;m[v>>>2]&=4294967295<<32-v%4*8,m.length=r.ceil(v/4)},clone:function(){var m=u.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var v=[],C=0;C<m;C+=4)v.push(s());return new A.init(v,m)}}),d=l.enc={},f=d.Hex={stringify:function(m){for(var v=m.words,C=m.sigBytes,y=[],x=0;x<C;x++){var w=v[x>>>2]>>>24-x%4*8&255;y.push((w>>>4).toString(16)),y.push((w&15).toString(16))}return y.join("")},parse:function(m){for(var v=m.length,C=[],y=0;y<v;y+=2)C[y>>>3]|=parseInt(m.substr(y,2),16)<<24-y%8*4;return new A.init(C,v/2)}},p=d.Latin1={stringify:function(m){for(var v=m.words,C=m.sigBytes,y=[],x=0;x<C;x++){var w=v[x>>>2]>>>24-x%4*8&255;y.push(String.fromCharCode(w))}return y.join("")},parse:function(m){for(var v=m.length,C=[],y=0;y<v;y++)C[y>>>2]|=(m.charCodeAt(y)&255)<<24-y%4*8;return new A.init(C,v)}},h=d.Utf8={stringify:function(m){try{return decodeURIComponent(escape(p.stringify(m)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(m){return p.parse(unescape(encodeURIComponent(m)))}},g=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new A.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=h.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var v,C=this._data,y=C.words,x=C.sigBytes,w=this.blockSize,S=w*4,D=x/S;m?D=r.ceil(D):D=r.max((D|0)-this._minBufferSize,0);var I=D*w,b=r.min(I*4,x);if(I){for(var O=0;O<I;O+=w)this._doProcessBlock(y,O);v=y.splice(0,I),C.sigBytes-=b}return new A.init(v,b)},clone:function(){var m=u.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});c.Hasher=g.extend({cfg:u.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(m){return function(v,C){return new m.init(C).finalize(v)}},_createHmacHelper:function(m){return function(v,C){return new E.HMAC.init(m,C).finalize(v)}}});var E=l.algo={};return l}(Math);return n})}(cd)),cd.exports}var ud={exports:{}},qv;function lu(){return qv||(qv=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){return function(r){var i=n,a=i.lib,s=a.Base,o=a.WordArray,l=i.x64={};l.Word=s.extend({init:function(c,u){this.high=c,this.low=u}}),l.WordArray=s.extend({init:function(c,u){c=this.words=c||[],u!=r?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,A=[],d=0;d<u;d++){var f=c[d];A.push(f.high),A.push(f.low)}return o.create(A,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),u=c.words=this.words.slice(0),A=u.length,d=0;d<A;d++)u[d]=u[d].clone();return c}})}(),n})}(ud)),ud.exports}var dd={exports:{}},Kv;function FM(){return Kv||(Kv=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,i=r.lib,a=i.WordArray,s=a.init,o=a.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var c=l.byteLength,u=[],A=0;A<c;A++)u[A>>>2]|=l[A]<<24-A%4*8;s.call(this,u,c)}else s.apply(this,arguments)};o.prototype=a}}(),n.lib.WordArray})}(dd)),dd.exports}var Ad={exports:{}},$v;function RM(){return $v||($v=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,s=r.enc;s.Utf16=s.Utf16BE={stringify:function(l){for(var c=l.words,u=l.sigBytes,A=[],d=0;d<u;d+=2){var f=c[d>>>2]>>>16-d%4*8&65535;A.push(String.fromCharCode(f))}return A.join("")},parse:function(l){for(var c=l.length,u=[],A=0;A<c;A++)u[A>>>1]|=l.charCodeAt(A)<<16-A%2*16;return a.create(u,c*2)}},s.Utf16LE={stringify:function(l){for(var c=l.words,u=l.sigBytes,A=[],d=0;d<u;d+=2){var f=o(c[d>>>2]>>>16-d%4*8&65535);A.push(String.fromCharCode(f))}return A.join("")},parse:function(l){for(var c=l.length,u=[],A=0;A<c;A++)u[A>>>1]|=o(l.charCodeAt(A)<<16-A%2*16);return a.create(u,c*2)}};function o(l){return l<<8&4278255360|l>>>8&16711935}}(),n.enc.Utf16})}(Ad)),Ad.exports}var fd={exports:{}},jv;function Li(){return jv||(jv=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,s=r.enc;s.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,A=this._map;l.clamp();for(var d=[],f=0;f<u;f+=3)for(var p=c[f>>>2]>>>24-f%4*8&255,h=c[f+1>>>2]>>>24-(f+1)%4*8&255,g=c[f+2>>>2]>>>24-(f+2)%4*8&255,E=p<<16|h<<8|g,m=0;m<4&&f+m*.75<u;m++)d.push(A.charAt(E>>>6*(3-m)&63));var v=A.charAt(64);if(v)for(;d.length%4;)d.push(v);return d.join("")},parse:function(l){var c=l.length,u=this._map,A=this._reverseMap;if(!A){A=this._reverseMap=[];for(var d=0;d<u.length;d++)A[u.charCodeAt(d)]=d}var f=u.charAt(64);if(f){var p=l.indexOf(f);p!==-1&&(c=p)}return o(l,c,A)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(l,c,u){for(var A=[],d=0,f=0;f<c;f++)if(f%4){var p=u[l.charCodeAt(f-1)]<<f%4*2,h=u[l.charCodeAt(f)]>>>6-f%4*2,g=p|h;A[d>>>2]|=g<<24-d%4*8,d++}return a.create(A,d)}}(),n.enc.Base64})}(fd)),fd.exports}var hd={exports:{}},Qv;function NM(){return Qv||(Qv=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,s=r.enc;s.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var u=l.words,A=l.sigBytes,d=c?this._safe_map:this._map;l.clamp();for(var f=[],p=0;p<A;p+=3)for(var h=u[p>>>2]>>>24-p%4*8&255,g=u[p+1>>>2]>>>24-(p+1)%4*8&255,E=u[p+2>>>2]>>>24-(p+2)%4*8&255,m=h<<16|g<<8|E,v=0;v<4&&p+v*.75<A;v++)f.push(d.charAt(m>>>6*(3-v)&63));var C=d.charAt(64);if(C)for(;f.length%4;)f.push(C);return f.join("")},parse:function(l,c){c===void 0&&(c=!0);var u=l.length,A=c?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<A.length;f++)d[A.charCodeAt(f)]=f}var p=A.charAt(64);if(p){var h=l.indexOf(p);h!==-1&&(u=h)}return o(l,u,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function o(l,c,u){for(var A=[],d=0,f=0;f<c;f++)if(f%4){var p=u[l.charCodeAt(f-1)]<<f%4*2,h=u[l.charCodeAt(f)]>>>6-f%4*2,g=p|h;A[d>>>2]|=g<<24-d%4*8,d++}return a.create(A,d)}}(),n.enc.Base64url})}(hd)),hd.exports}var pd={exports:{}},Zv;function Vi(){return Zv||(Zv=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){return function(r){var i=n,a=i.lib,s=a.WordArray,o=a.Hasher,l=i.algo,c=[];(function(){for(var h=0;h<64;h++)c[h]=r.abs(r.sin(h+1))*4294967296|0})();var u=l.MD5=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,g){for(var E=0;E<16;E++){var m=g+E,v=h[m];h[m]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var C=this._hash.words,y=h[g+0],x=h[g+1],w=h[g+2],S=h[g+3],D=h[g+4],I=h[g+5],b=h[g+6],O=h[g+7],T=h[g+8],M=h[g+9],P=h[g+10],R=h[g+11],W=h[g+12],N=h[g+13],U=h[g+14],Y=h[g+15],G=C[0],H=C[1],L=C[2],B=C[3];G=A(G,H,L,B,y,7,c[0]),B=A(B,G,H,L,x,12,c[1]),L=A(L,B,G,H,w,17,c[2]),H=A(H,L,B,G,S,22,c[3]),G=A(G,H,L,B,D,7,c[4]),B=A(B,G,H,L,I,12,c[5]),L=A(L,B,G,H,b,17,c[6]),H=A(H,L,B,G,O,22,c[7]),G=A(G,H,L,B,T,7,c[8]),B=A(B,G,H,L,M,12,c[9]),L=A(L,B,G,H,P,17,c[10]),H=A(H,L,B,G,R,22,c[11]),G=A(G,H,L,B,W,7,c[12]),B=A(B,G,H,L,N,12,c[13]),L=A(L,B,G,H,U,17,c[14]),H=A(H,L,B,G,Y,22,c[15]),G=d(G,H,L,B,x,5,c[16]),B=d(B,G,H,L,b,9,c[17]),L=d(L,B,G,H,R,14,c[18]),H=d(H,L,B,G,y,20,c[19]),G=d(G,H,L,B,I,5,c[20]),B=d(B,G,H,L,P,9,c[21]),L=d(L,B,G,H,Y,14,c[22]),H=d(H,L,B,G,D,20,c[23]),G=d(G,H,L,B,M,5,c[24]),B=d(B,G,H,L,U,9,c[25]),L=d(L,B,G,H,S,14,c[26]),H=d(H,L,B,G,T,20,c[27]),G=d(G,H,L,B,N,5,c[28]),B=d(B,G,H,L,w,9,c[29]),L=d(L,B,G,H,O,14,c[30]),H=d(H,L,B,G,W,20,c[31]),G=f(G,H,L,B,I,4,c[32]),B=f(B,G,H,L,T,11,c[33]),L=f(L,B,G,H,R,16,c[34]),H=f(H,L,B,G,U,23,c[35]),G=f(G,H,L,B,x,4,c[36]),B=f(B,G,H,L,D,11,c[37]),L=f(L,B,G,H,O,16,c[38]),H=f(H,L,B,G,P,23,c[39]),G=f(G,H,L,B,N,4,c[40]),B=f(B,G,H,L,y,11,c[41]),L=f(L,B,G,H,S,16,c[42]),H=f(H,L,B,G,b,23,c[43]),G=f(G,H,L,B,M,4,c[44]),B=f(B,G,H,L,W,11,c[45]),L=f(L,B,G,H,Y,16,c[46]),H=f(H,L,B,G,w,23,c[47]),G=p(G,H,L,B,y,6,c[48]),B=p(B,G,H,L,O,10,c[49]),L=p(L,B,G,H,U,15,c[50]),H=p(H,L,B,G,I,21,c[51]),G=p(G,H,L,B,W,6,c[52]),B=p(B,G,H,L,S,10,c[53]),L=p(L,B,G,H,P,15,c[54]),H=p(H,L,B,G,x,21,c[55]),G=p(G,H,L,B,T,6,c[56]),B=p(B,G,H,L,Y,10,c[57]),L=p(L,B,G,H,b,15,c[58]),H=p(H,L,B,G,N,21,c[59]),G=p(G,H,L,B,D,6,c[60]),B=p(B,G,H,L,R,10,c[61]),L=p(L,B,G,H,w,15,c[62]),H=p(H,L,B,G,M,21,c[63]),C[0]=C[0]+G|0,C[1]=C[1]+H|0,C[2]=C[2]+L|0,C[3]=C[3]+B|0},_doFinalize:function(){var h=this._data,g=h.words,E=this._nDataBytes*8,m=h.sigBytes*8;g[m>>>5]|=128<<24-m%32;var v=r.floor(E/4294967296),C=E;g[(m+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,g[(m+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,h.sigBytes=(g.length+1)*4,this._process();for(var y=this._hash,x=y.words,w=0;w<4;w++){var S=x[w];x[w]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return y},clone:function(){var h=o.clone.call(this);return h._hash=this._hash.clone(),h}});function A(h,g,E,m,v,C,y){var x=h+(g&E|~g&m)+v+y;return(x<<C|x>>>32-C)+g}function d(h,g,E,m,v,C,y){var x=h+(g&m|E&~m)+v+y;return(x<<C|x>>>32-C)+g}function f(h,g,E,m,v,C,y){var x=h+(g^E^m)+v+y;return(x<<C|x>>>32-C)+g}function p(h,g,E,m,v,C,y){var x=h+(E^(g|~m))+v+y;return(x<<C|x>>>32-C)+g}i.MD5=o._createHelper(u),i.HmacMD5=o._createHmacHelper(u)}(Math),n.MD5})}(pd)),pd.exports}var gd={exports:{}},Jv;function fy(){return Jv||(Jv=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,s=i.Hasher,o=r.algo,l=[],c=o.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,A){for(var d=this._hash.words,f=d[0],p=d[1],h=d[2],g=d[3],E=d[4],m=0;m<80;m++){if(m<16)l[m]=u[A+m]|0;else{var v=l[m-3]^l[m-8]^l[m-14]^l[m-16];l[m]=v<<1|v>>>31}var C=(f<<5|f>>>27)+E+l[m];m<20?C+=(p&h|~p&g)+1518500249:m<40?C+=(p^h^g)+1859775393:m<60?C+=(p&h|p&g|h&g)-1894007588:C+=(p^h^g)-899497514,E=g,g=h,h=p<<30|p>>>2,p=f,f=C}d[0]=d[0]+f|0,d[1]=d[1]+p|0,d[2]=d[2]+h|0,d[3]=d[3]+g|0,d[4]=d[4]+E|0},_doFinalize:function(){var u=this._data,A=u.words,d=this._nDataBytes*8,f=u.sigBytes*8;return A[f>>>5]|=128<<24-f%32,A[(f+64>>>9<<4)+14]=Math.floor(d/4294967296),A[(f+64>>>9<<4)+15]=d,u.sigBytes=A.length*4,this._process(),this._hash},clone:function(){var u=s.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA1=s._createHelper(c),r.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}(gd)),gd.exports}var vd={exports:{}},em;function Bh(){return em||(em=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){return function(r){var i=n,a=i.lib,s=a.WordArray,o=a.Hasher,l=i.algo,c=[],u=[];(function(){function f(E){for(var m=r.sqrt(E),v=2;v<=m;v++)if(!(E%v))return!1;return!0}function p(E){return(E-(E|0))*4294967296|0}for(var h=2,g=0;g<64;)f(h)&&(g<8&&(c[g]=p(r.pow(h,1/2))),u[g]=p(r.pow(h,1/3)),g++),h++})();var A=[],d=l.SHA256=o.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(f,p){for(var h=this._hash.words,g=h[0],E=h[1],m=h[2],v=h[3],C=h[4],y=h[5],x=h[6],w=h[7],S=0;S<64;S++){if(S<16)A[S]=f[p+S]|0;else{var D=A[S-15],I=(D<<25|D>>>7)^(D<<14|D>>>18)^D>>>3,b=A[S-2],O=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;A[S]=I+A[S-7]+O+A[S-16]}var T=C&y^~C&x,M=g&E^g&m^E&m,P=(g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22),R=(C<<26|C>>>6)^(C<<21|C>>>11)^(C<<7|C>>>25),W=w+R+T+u[S]+A[S],N=P+M;w=x,x=y,y=C,C=v+W|0,v=m,m=E,E=g,g=W+N|0}h[0]=h[0]+g|0,h[1]=h[1]+E|0,h[2]=h[2]+m|0,h[3]=h[3]+v|0,h[4]=h[4]+C|0,h[5]=h[5]+y|0,h[6]=h[6]+x|0,h[7]=h[7]+w|0},_doFinalize:function(){var f=this._data,p=f.words,h=this._nDataBytes*8,g=f.sigBytes*8;return p[g>>>5]|=128<<24-g%32,p[(g+64>>>9<<4)+14]=r.floor(h/4294967296),p[(g+64>>>9<<4)+15]=h,f.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var f=o.clone.call(this);return f._hash=this._hash.clone(),f}});i.SHA256=o._createHelper(d),i.HmacSHA256=o._createHmacHelper(d)}(Math),n.SHA256})}(vd)),vd.exports}var md={exports:{}},tm;function BM(){return tm||(tm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Bh())})(K,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,s=r.algo,o=s.SHA256,l=s.SHA224=o.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=o._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=o._createHelper(l),r.HmacSHA224=o._createHmacHelper(l)}(),n.SHA224})}(md)),md.exports}var Cd={exports:{}},nm;function hy(){return nm||(nm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),lu())})(K,function(n){return function(){var r=n,i=r.lib,a=i.Hasher,s=r.x64,o=s.Word,l=s.WordArray,c=r.algo;function u(){return o.create.apply(o,arguments)}var A=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],d=[];(function(){for(var p=0;p<80;p++)d[p]=u()})();var f=c.SHA512=a.extend({_doReset:function(){this._hash=new l.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(p,h){for(var g=this._hash.words,E=g[0],m=g[1],v=g[2],C=g[3],y=g[4],x=g[5],w=g[6],S=g[7],D=E.high,I=E.low,b=m.high,O=m.low,T=v.high,M=v.low,P=C.high,R=C.low,W=y.high,N=y.low,U=x.high,Y=x.low,G=w.high,H=w.low,L=S.high,B=S.low,X=D,z=I,q=b,Q=O,ae=T,te=M,re=P,Z=R,ie=W,we=N,be=U,Se=Y,ye=G,ne=H,Be=L,ut=B,me=0;me<80;me++){var de,dt,At=d[me];if(me<16)dt=At.high=p[h+me*2]|0,de=At.low=p[h+me*2+1]|0;else{var Vt=d[me-15],pt=Vt.high,Ht=Vt.low,_a=(pt>>>1|Ht<<31)^(pt>>>8|Ht<<24)^pt>>>7,Ie=(Ht>>>1|pt<<31)^(Ht>>>8|pt<<24)^(Ht>>>7|pt<<25),$=d[me-2],We=$.high,Ce=$.low,fe=(We>>>19|Ce<<13)^(We<<3|Ce>>>29)^We>>>6,Ge=(Ce>>>19|We<<13)^(Ce<<3|We>>>29)^(Ce>>>6|We<<26),De=d[me-7],xe=De.high,Ut=De.low,ft=d[me-16],Ot=ft.high,Gn=ft.low;de=Ie+Ut,dt=_a+xe+(de>>>0<Ie>>>0?1:0),de=de+Ge,dt=dt+fe+(de>>>0<Ge>>>0?1:0),de=de+Gn,dt=dt+Ot+(de>>>0<Gn>>>0?1:0),At.high=dt,At.low=de}var Da=ie&be^~ie&ye,gr=we&Se^~we&ne,zr=X&q^X&ae^q&ae,cu=z&Q^z&te^Q&te,uu=(X>>>28|z<<4)^(X<<30|z>>>2)^(X<<25|z>>>7),Lh=(z>>>28|X<<4)^(z<<30|X>>>2)^(z<<25|X>>>7),Iy=(ie>>>14|we<<18)^(ie>>>18|we<<14)^(ie<<23|we>>>9),wy=(we>>>14|ie<<18)^(we>>>18|ie<<14)^(we<<23|ie>>>9),Vh=A[me],by=Vh.high,Hh=Vh.low,kt=ut+wy,vr=Be+Iy+(kt>>>0<ut>>>0?1:0),kt=kt+gr,vr=vr+Da+(kt>>>0<gr>>>0?1:0),kt=kt+Hh,vr=vr+by+(kt>>>0<Hh>>>0?1:0),kt=kt+de,vr=vr+dt+(kt>>>0<de>>>0?1:0),Uh=Lh+cu,Sy=uu+zr+(Uh>>>0<Lh>>>0?1:0);Be=ye,ut=ne,ye=be,ne=Se,be=ie,Se=we,we=Z+kt|0,ie=re+vr+(we>>>0<Z>>>0?1:0)|0,re=ae,Z=te,ae=q,te=Q,q=X,Q=z,z=kt+Uh|0,X=vr+Sy+(z>>>0<kt>>>0?1:0)|0}I=E.low=I+z,E.high=D+X+(I>>>0<z>>>0?1:0),O=m.low=O+Q,m.high=b+q+(O>>>0<Q>>>0?1:0),M=v.low=M+te,v.high=T+ae+(M>>>0<te>>>0?1:0),R=C.low=R+Z,C.high=P+re+(R>>>0<Z>>>0?1:0),N=y.low=N+we,y.high=W+ie+(N>>>0<we>>>0?1:0),Y=x.low=Y+Se,x.high=U+be+(Y>>>0<Se>>>0?1:0),H=w.low=H+ne,w.high=G+ye+(H>>>0<ne>>>0?1:0),B=S.low=B+ut,S.high=L+Be+(B>>>0<ut>>>0?1:0)},_doFinalize:function(){var p=this._data,h=p.words,g=this._nDataBytes*8,E=p.sigBytes*8;h[E>>>5]|=128<<24-E%32,h[(E+128>>>10<<5)+30]=Math.floor(g/4294967296),h[(E+128>>>10<<5)+31]=g,p.sigBytes=h.length*4,this._process();var m=this._hash.toX32();return m},clone:function(){var p=a.clone.call(this);return p._hash=this._hash.clone(),p},blockSize:1024/32});r.SHA512=a._createHelper(f),r.HmacSHA512=a._createHmacHelper(f)}(),n.SHA512})}(Cd)),Cd.exports}var Ed={exports:{}},rm;function GM(){return rm||(rm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),lu(),hy())})(K,function(n){return function(){var r=n,i=r.x64,a=i.Word,s=i.WordArray,o=r.algo,l=o.SHA512,c=o.SHA384=l.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=16,u}});r.SHA384=l._createHelper(c),r.HmacSHA384=l._createHmacHelper(c)}(),n.SHA384})}(Ed)),Ed.exports}var xd={exports:{}},im;function LM(){return im||(im=1,function(t,e){(function(n,r,i){t.exports=r(ve(),lu())})(K,function(n){return function(r){var i=n,a=i.lib,s=a.WordArray,o=a.Hasher,l=i.x64,c=l.Word,u=i.algo,A=[],d=[],f=[];(function(){for(var g=1,E=0,m=0;m<24;m++){A[g+5*E]=(m+1)*(m+2)/2%64;var v=E%5,C=(2*g+3*E)%5;g=v,E=C}for(var g=0;g<5;g++)for(var E=0;E<5;E++)d[g+5*E]=E+(2*g+3*E)%5*5;for(var y=1,x=0;x<24;x++){for(var w=0,S=0,D=0;D<7;D++){if(y&1){var I=(1<<D)-1;I<32?S^=1<<I:w^=1<<I-32}y&128?y=y<<1^113:y<<=1}f[x]=c.create(w,S)}})();var p=[];(function(){for(var g=0;g<25;g++)p[g]=c.create()})();var h=u.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var g=this._state=[],E=0;E<25;E++)g[E]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(g,E){for(var m=this._state,v=this.blockSize/2,C=0;C<v;C++){var y=g[E+2*C],x=g[E+2*C+1];y=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360;var w=m[C];w.high^=x,w.low^=y}for(var S=0;S<24;S++){for(var D=0;D<5;D++){for(var I=0,b=0,O=0;O<5;O++){var w=m[D+5*O];I^=w.high,b^=w.low}var T=p[D];T.high=I,T.low=b}for(var D=0;D<5;D++)for(var M=p[(D+4)%5],P=p[(D+1)%5],R=P.high,W=P.low,I=M.high^(R<<1|W>>>31),b=M.low^(W<<1|R>>>31),O=0;O<5;O++){var w=m[D+5*O];w.high^=I,w.low^=b}for(var N=1;N<25;N++){var I,b,w=m[N],U=w.high,Y=w.low,G=A[N];G<32?(I=U<<G|Y>>>32-G,b=Y<<G|U>>>32-G):(I=Y<<G-32|U>>>64-G,b=U<<G-32|Y>>>64-G);var H=p[d[N]];H.high=I,H.low=b}var L=p[0],B=m[0];L.high=B.high,L.low=B.low;for(var D=0;D<5;D++)for(var O=0;O<5;O++){var N=D+5*O,w=m[N],X=p[N],z=p[(D+1)%5+5*O],q=p[(D+2)%5+5*O];w.high=X.high^~z.high&q.high,w.low=X.low^~z.low&q.low}var w=m[0],Q=f[S];w.high^=Q.high,w.low^=Q.low}},_doFinalize:function(){var g=this._data,E=g.words;this._nDataBytes*8;var m=g.sigBytes*8,v=this.blockSize*32;E[m>>>5]|=1<<24-m%32,E[(r.ceil((m+1)/v)*v>>>5)-1]|=128,g.sigBytes=E.length*4,this._process();for(var C=this._state,y=this.cfg.outputLength/8,x=y/8,w=[],S=0;S<x;S++){var D=C[S],I=D.high,b=D.low;I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w.push(b),w.push(I)}return new s.init(w,y)},clone:function(){for(var g=o.clone.call(this),E=g._state=this._state.slice(0),m=0;m<25;m++)E[m]=E[m].clone();return g}});i.SHA3=o._createHelper(h),i.HmacSHA3=o._createHmacHelper(h)}(Math),n.SHA3})}(xd)),xd.exports}var yd={exports:{}},am;function VM(){return am||(am=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -908,8 +908,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */return function(r){var i=n,a=i.lib,s=a.WordArray,o=a.Hasher,l=i.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),A=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=s.create([0,1518500249,1859775393,2400959708,2840853838]),p=s.create([1352829926,1548603684,1836072691,2053994217,0]),h=l.RIPEMD160=o.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,w){for(var S=0;S<16;S++){var D=w+S,I=x[D];x[D]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}var b=this._hash.words,O=f.words,T=p.words,M=c.words,P=u.words,R=A.words,W=d.words,N,U,Y,G,H,L,B,X,z,q;L=N=b[0],B=U=b[1],X=Y=b[2],z=G=b[3],q=H=b[4];for(var Q,S=0;S<80;S+=1)Q=N+x[w+M[S]]|0,S<16?Q+=g(U,Y,G)+O[0]:S<32?Q+=E(U,Y,G)+O[1]:S<48?Q+=m(U,Y,G)+O[2]:S<64?Q+=v(U,Y,G)+O[3]:Q+=C(U,Y,G)+O[4],Q=Q|0,Q=y(Q,R[S]),Q=Q+H|0,N=H,H=G,G=y(Y,10),Y=U,U=Q,Q=L+x[w+P[S]]|0,S<16?Q+=C(B,X,z)+T[0]:S<32?Q+=v(B,X,z)+T[1]:S<48?Q+=m(B,X,z)+T[2]:S<64?Q+=E(B,X,z)+T[3]:Q+=g(B,X,z)+T[4],Q=Q|0,Q=y(Q,W[S]),Q=Q+q|0,L=q,q=z,z=y(X,10),X=B,B=Q;Q=b[1]+Y+z|0,b[1]=b[2]+G+q|0,b[2]=b[3]+H+L|0,b[3]=b[4]+N+B|0,b[4]=b[0]+U+X|0,b[0]=Q},_doFinalize:function(){var x=this._data,w=x.words,S=this._nDataBytes*8,D=x.sigBytes*8;w[D>>>5]|=128<<24-D%32,w[(D+64>>>9<<4)+14]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,x.sigBytes=(w.length+1)*4,this._process();for(var I=this._hash,b=I.words,O=0;O<5;O++){var T=b[O];b[O]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return I},clone:function(){var x=o.clone.call(this);return x._hash=this._hash.clone(),x}});function g(x,w,S){return x^w^S}function E(x,w,S){return x&w|~x&S}function m(x,w,S){return(x|~w)^S}function v(x,w,S){return x&S|w&~S}function C(x,w,S){return x^(w|~S)}function y(x,w){return x<<w|x>>>32-w}i.RIPEMD160=o._createHelper(h),i.HmacRIPEMD160=o._createHmacHelper(h)}(),n.RIPEMD160})}(yd)),yd.exports}var Id={exports:{}},am;function Bh(){return am||(am=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){(function(){var r=n,i=r.lib,a=i.Base,s=r.enc,o=s.Utf8,l=r.algo;l.HMAC=a.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=o.parse(u));var A=c.blockSize,d=A*4;u.sigBytes>d&&(u=c.finalize(u)),u.clamp();for(var f=this._oKey=u.clone(),p=this._iKey=u.clone(),h=f.words,g=p.words,E=0;E<A;E++)h[E]^=1549556828,g[E]^=909522486;f.sigBytes=p.sigBytes=d,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,A=u.finalize(c);u.reset();var d=u.finalize(this._oKey.clone().concat(A));return d}})})()})}(Id)),Id.exports}var wd={exports:{}},sm;function HM(){return sm||(sm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Nh(),Bh())})(K,function(n){return function(){var r=n,i=r.lib,a=i.Base,s=i.WordArray,o=r.algo,l=o.SHA256,c=o.HMAC,u=o.PBKDF2=a.extend({cfg:a.extend({keySize:128/32,hasher:l,iterations:25e4}),init:function(A){this.cfg=this.cfg.extend(A)},compute:function(A,d){for(var f=this.cfg,p=c.create(f.hasher,A),h=s.create(),g=s.create([1]),E=h.words,m=g.words,v=f.keySize,C=f.iterations;E.length<v;){var y=p.update(d).finalize(g);p.reset();for(var x=y.words,w=x.length,S=y,D=1;D<C;D++){S=p.finalize(S),p.reset();for(var I=S.words,b=0;b<w;b++)x[b]^=I[b]}h.concat(y),m[0]++}return h.sigBytes=v*4,h}});r.PBKDF2=function(A,d,f){return u.create(f).compute(A,d)}}(),n.PBKDF2})}(wd)),wd.exports}var bd={exports:{}},om;function Yr(){return om||(om=1,function(t,e){(function(n,r,i){t.exports=r(ve(),fy(),Bh())})(K,function(n){return function(){var r=n,i=r.lib,a=i.Base,s=i.WordArray,o=r.algo,l=o.MD5,c=o.EvpKDF=a.extend({cfg:a.extend({keySize:128/32,hasher:l,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,A){for(var d,f=this.cfg,p=f.hasher.create(),h=s.create(),g=h.words,E=f.keySize,m=f.iterations;g.length<E;){d&&p.update(d),d=p.update(u).finalize(A),p.reset();for(var v=1;v<m;v++)d=p.finalize(d),p.reset();h.concat(d)}return h.sigBytes=E*4,h}});r.EvpKDF=function(u,A,d){return c.create(d).compute(u,A)}}(),n.EvpKDF})}(bd)),bd.exports}var Sd={exports:{}},lm;function rt(){return lm||(lm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Yr())})(K,function(n){n.lib.Cipher||function(r){var i=n,a=i.lib,s=a.Base,o=a.WordArray,l=a.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var u=c.Base64,A=i.algo,d=A.EvpKDF,f=a.Cipher=l.extend({cfg:s.extend(),createEncryptor:function(I,b){return this.create(this._ENC_XFORM_MODE,I,b)},createDecryptor:function(I,b){return this.create(this._DEC_XFORM_MODE,I,b)},init:function(I,b,O){this.cfg=this.cfg.extend(O),this._xformMode=I,this._key=b,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var b=this._doFinalize();return b},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function I(b){return typeof b=="string"?D:x}return function(b){return{encrypt:function(O,T,M){return I(T).encrypt(b,O,T,M)},decrypt:function(O,T,M){return I(T).decrypt(b,O,T,M)}}}}()});a.StreamCipher=f.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1});var p=i.mode={},h=a.BlockCipherMode=s.extend({createEncryptor:function(I,b){return this.Encryptor.create(I,b)},createDecryptor:function(I,b){return this.Decryptor.create(I,b)},init:function(I,b){this._cipher=I,this._iv=b}}),g=p.CBC=function(){var I=h.extend();I.Encryptor=I.extend({processBlock:function(O,T){var M=this._cipher,P=M.blockSize;b.call(this,O,T,P),M.encryptBlock(O,T),this._prevBlock=O.slice(T,T+P)}}),I.Decryptor=I.extend({processBlock:function(O,T){var M=this._cipher,P=M.blockSize,R=O.slice(T,T+P);M.decryptBlock(O,T),b.call(this,O,T,P),this._prevBlock=R}});function b(O,T,M){var P,R=this._iv;R?(P=R,this._iv=r):P=this._prevBlock;for(var W=0;W<M;W++)O[T+W]^=P[W]}return I}(),E=i.pad={},m=E.Pkcs7={pad:function(I,b){for(var O=b*4,T=O-I.sigBytes%O,M=T<<24|T<<16|T<<8|T,P=[],R=0;R<T;R+=4)P.push(M);var W=o.create(P,T);I.concat(W)},unpad:function(I){var b=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=b}};a.BlockCipher=f.extend({cfg:f.cfg.extend({mode:g,padding:m}),reset:function(){var I;f.reset.call(this);var b=this.cfg,O=b.iv,T=b.mode;this._xformMode==this._ENC_XFORM_MODE?I=T.createEncryptor:(I=T.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,O&&O.words):(this._mode=I.call(T,this,O&&O.words),this._mode.__creator=I)},_doProcessBlock:function(I,b){this._mode.processBlock(I,b)},_doFinalize:function(){var I,b=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(b.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),b.unpad(I)),I},blockSize:128/32});var v=a.CipherParams=s.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),C=i.format={},y=C.OpenSSL={stringify:function(I){var b,O=I.ciphertext,T=I.salt;return T?b=o.create([1398893684,1701076831]).concat(T).concat(O):b=O,b.toString(u)},parse:function(I){var b,O=u.parse(I),T=O.words;return T[0]==1398893684&&T[1]==1701076831&&(b=o.create(T.slice(2,4)),T.splice(0,4),O.sigBytes-=16),v.create({ciphertext:O,salt:b})}},x=a.SerializableCipher=s.extend({cfg:s.extend({format:y}),encrypt:function(I,b,O,T){T=this.cfg.extend(T);var M=I.createEncryptor(O,T),P=M.finalize(b),R=M.cfg;return v.create({ciphertext:P,key:O,iv:R.iv,algorithm:I,mode:R.mode,padding:R.padding,blockSize:I.blockSize,formatter:T.format})},decrypt:function(I,b,O,T){T=this.cfg.extend(T),b=this._parse(b,T.format);var M=I.createDecryptor(O,T).finalize(b.ciphertext);return M},_parse:function(I,b){return typeof I=="string"?b.parse(I,this):I}}),w=i.kdf={},S=w.OpenSSL={execute:function(I,b,O,T,M){if(T||(T=o.random(64/8)),M)var P=d.create({keySize:b+O,hasher:M}).compute(I,T);else var P=d.create({keySize:b+O}).compute(I,T);var R=o.create(P.words.slice(b),O*4);return P.sigBytes=b*4,v.create({key:P,iv:R,salt:T})}},D=a.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:S}),encrypt:function(I,b,O,T){T=this.cfg.extend(T);var M=T.kdf.execute(O,I.keySize,I.ivSize,T.salt,T.hasher);T.iv=M.iv;var P=x.encrypt.call(this,I,b,M.key,T);return P.mixIn(M),P},decrypt:function(I,b,O,T){T=this.cfg.extend(T),b=this._parse(b,T.format);var M=T.kdf.execute(O,I.keySize,I.ivSize,b.salt,T.hasher);T.iv=M.iv;var P=x.decrypt.call(this,I,b,M.key,T);return P}})}()})}(Sd)),Sd.exports}var _d={exports:{}},cm;function UM(){return cm||(cm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.mode.CFB=function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(a,s){var o=this._cipher,l=o.blockSize;i.call(this,a,s,l,o),this._prevBlock=a.slice(s,s+l)}}),r.Decryptor=r.extend({processBlock:function(a,s){var o=this._cipher,l=o.blockSize,c=a.slice(s,s+l);i.call(this,a,s,l,o),this._prevBlock=c}});function i(a,s,o,l){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var A=0;A<o;A++)a[s+A]^=c[A]}return r}(),n.mode.CFB})}(_d)),_d.exports}var Dd={exports:{}},um;function WM(){return um||(um=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.mode.CTR=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(a,s){var o=this._cipher,l=o.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var A=u.slice(0);o.encryptBlock(A,0),u[l-1]=u[l-1]+1|0;for(var d=0;d<l;d++)a[s+d]^=A[d]}});return r.Decryptor=i,r}(),n.mode.CTR})}(Dd)),Dd.exports}var Td={exports:{}},dm;function XM(){return dm||(dm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){/** @preserve + */return function(r){var i=n,a=i.lib,s=a.WordArray,o=a.Hasher,l=i.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),A=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=s.create([0,1518500249,1859775393,2400959708,2840853838]),p=s.create([1352829926,1548603684,1836072691,2053994217,0]),h=l.RIPEMD160=o.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,w){for(var S=0;S<16;S++){var D=w+S,I=x[D];x[D]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}var b=this._hash.words,O=f.words,T=p.words,M=c.words,P=u.words,R=A.words,W=d.words,N,U,Y,G,H,L,B,X,z,q;L=N=b[0],B=U=b[1],X=Y=b[2],z=G=b[3],q=H=b[4];for(var Q,S=0;S<80;S+=1)Q=N+x[w+M[S]]|0,S<16?Q+=g(U,Y,G)+O[0]:S<32?Q+=E(U,Y,G)+O[1]:S<48?Q+=m(U,Y,G)+O[2]:S<64?Q+=v(U,Y,G)+O[3]:Q+=C(U,Y,G)+O[4],Q=Q|0,Q=y(Q,R[S]),Q=Q+H|0,N=H,H=G,G=y(Y,10),Y=U,U=Q,Q=L+x[w+P[S]]|0,S<16?Q+=C(B,X,z)+T[0]:S<32?Q+=v(B,X,z)+T[1]:S<48?Q+=m(B,X,z)+T[2]:S<64?Q+=E(B,X,z)+T[3]:Q+=g(B,X,z)+T[4],Q=Q|0,Q=y(Q,W[S]),Q=Q+q|0,L=q,q=z,z=y(X,10),X=B,B=Q;Q=b[1]+Y+z|0,b[1]=b[2]+G+q|0,b[2]=b[3]+H+L|0,b[3]=b[4]+N+B|0,b[4]=b[0]+U+X|0,b[0]=Q},_doFinalize:function(){var x=this._data,w=x.words,S=this._nDataBytes*8,D=x.sigBytes*8;w[D>>>5]|=128<<24-D%32,w[(D+64>>>9<<4)+14]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,x.sigBytes=(w.length+1)*4,this._process();for(var I=this._hash,b=I.words,O=0;O<5;O++){var T=b[O];b[O]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return I},clone:function(){var x=o.clone.call(this);return x._hash=this._hash.clone(),x}});function g(x,w,S){return x^w^S}function E(x,w,S){return x&w|~x&S}function m(x,w,S){return(x|~w)^S}function v(x,w,S){return x&S|w&~S}function C(x,w,S){return x^(w|~S)}function y(x,w){return x<<w|x>>>32-w}i.RIPEMD160=o._createHelper(h),i.HmacRIPEMD160=o._createHmacHelper(h)}(),n.RIPEMD160})}(yd)),yd.exports}var Id={exports:{}},sm;function Gh(){return sm||(sm=1,function(t,e){(function(n,r){t.exports=r(ve())})(K,function(n){(function(){var r=n,i=r.lib,a=i.Base,s=r.enc,o=s.Utf8,l=r.algo;l.HMAC=a.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=o.parse(u));var A=c.blockSize,d=A*4;u.sigBytes>d&&(u=c.finalize(u)),u.clamp();for(var f=this._oKey=u.clone(),p=this._iKey=u.clone(),h=f.words,g=p.words,E=0;E<A;E++)h[E]^=1549556828,g[E]^=909522486;f.sigBytes=p.sigBytes=d,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,A=u.finalize(c);u.reset();var d=u.finalize(this._oKey.clone().concat(A));return d}})})()})}(Id)),Id.exports}var wd={exports:{}},om;function HM(){return om||(om=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Bh(),Gh())})(K,function(n){return function(){var r=n,i=r.lib,a=i.Base,s=i.WordArray,o=r.algo,l=o.SHA256,c=o.HMAC,u=o.PBKDF2=a.extend({cfg:a.extend({keySize:128/32,hasher:l,iterations:25e4}),init:function(A){this.cfg=this.cfg.extend(A)},compute:function(A,d){for(var f=this.cfg,p=c.create(f.hasher,A),h=s.create(),g=s.create([1]),E=h.words,m=g.words,v=f.keySize,C=f.iterations;E.length<v;){var y=p.update(d).finalize(g);p.reset();for(var x=y.words,w=x.length,S=y,D=1;D<C;D++){S=p.finalize(S),p.reset();for(var I=S.words,b=0;b<w;b++)x[b]^=I[b]}h.concat(y),m[0]++}return h.sigBytes=v*4,h}});r.PBKDF2=function(A,d,f){return u.create(f).compute(A,d)}}(),n.PBKDF2})}(wd)),wd.exports}var bd={exports:{}},lm;function Yr(){return lm||(lm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),fy(),Gh())})(K,function(n){return function(){var r=n,i=r.lib,a=i.Base,s=i.WordArray,o=r.algo,l=o.MD5,c=o.EvpKDF=a.extend({cfg:a.extend({keySize:128/32,hasher:l,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,A){for(var d,f=this.cfg,p=f.hasher.create(),h=s.create(),g=h.words,E=f.keySize,m=f.iterations;g.length<E;){d&&p.update(d),d=p.update(u).finalize(A),p.reset();for(var v=1;v<m;v++)d=p.finalize(d),p.reset();h.concat(d)}return h.sigBytes=E*4,h}});r.EvpKDF=function(u,A,d){return c.create(d).compute(u,A)}}(),n.EvpKDF})}(bd)),bd.exports}var Sd={exports:{}},cm;function rt(){return cm||(cm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Yr())})(K,function(n){n.lib.Cipher||function(r){var i=n,a=i.lib,s=a.Base,o=a.WordArray,l=a.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var u=c.Base64,A=i.algo,d=A.EvpKDF,f=a.Cipher=l.extend({cfg:s.extend(),createEncryptor:function(I,b){return this.create(this._ENC_XFORM_MODE,I,b)},createDecryptor:function(I,b){return this.create(this._DEC_XFORM_MODE,I,b)},init:function(I,b,O){this.cfg=this.cfg.extend(O),this._xformMode=I,this._key=b,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var b=this._doFinalize();return b},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function I(b){return typeof b=="string"?D:x}return function(b){return{encrypt:function(O,T,M){return I(T).encrypt(b,O,T,M)},decrypt:function(O,T,M){return I(T).decrypt(b,O,T,M)}}}}()});a.StreamCipher=f.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1});var p=i.mode={},h=a.BlockCipherMode=s.extend({createEncryptor:function(I,b){return this.Encryptor.create(I,b)},createDecryptor:function(I,b){return this.Decryptor.create(I,b)},init:function(I,b){this._cipher=I,this._iv=b}}),g=p.CBC=function(){var I=h.extend();I.Encryptor=I.extend({processBlock:function(O,T){var M=this._cipher,P=M.blockSize;b.call(this,O,T,P),M.encryptBlock(O,T),this._prevBlock=O.slice(T,T+P)}}),I.Decryptor=I.extend({processBlock:function(O,T){var M=this._cipher,P=M.blockSize,R=O.slice(T,T+P);M.decryptBlock(O,T),b.call(this,O,T,P),this._prevBlock=R}});function b(O,T,M){var P,R=this._iv;R?(P=R,this._iv=r):P=this._prevBlock;for(var W=0;W<M;W++)O[T+W]^=P[W]}return I}(),E=i.pad={},m=E.Pkcs7={pad:function(I,b){for(var O=b*4,T=O-I.sigBytes%O,M=T<<24|T<<16|T<<8|T,P=[],R=0;R<T;R+=4)P.push(M);var W=o.create(P,T);I.concat(W)},unpad:function(I){var b=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=b}};a.BlockCipher=f.extend({cfg:f.cfg.extend({mode:g,padding:m}),reset:function(){var I;f.reset.call(this);var b=this.cfg,O=b.iv,T=b.mode;this._xformMode==this._ENC_XFORM_MODE?I=T.createEncryptor:(I=T.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,O&&O.words):(this._mode=I.call(T,this,O&&O.words),this._mode.__creator=I)},_doProcessBlock:function(I,b){this._mode.processBlock(I,b)},_doFinalize:function(){var I,b=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(b.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),b.unpad(I)),I},blockSize:128/32});var v=a.CipherParams=s.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),C=i.format={},y=C.OpenSSL={stringify:function(I){var b,O=I.ciphertext,T=I.salt;return T?b=o.create([1398893684,1701076831]).concat(T).concat(O):b=O,b.toString(u)},parse:function(I){var b,O=u.parse(I),T=O.words;return T[0]==1398893684&&T[1]==1701076831&&(b=o.create(T.slice(2,4)),T.splice(0,4),O.sigBytes-=16),v.create({ciphertext:O,salt:b})}},x=a.SerializableCipher=s.extend({cfg:s.extend({format:y}),encrypt:function(I,b,O,T){T=this.cfg.extend(T);var M=I.createEncryptor(O,T),P=M.finalize(b),R=M.cfg;return v.create({ciphertext:P,key:O,iv:R.iv,algorithm:I,mode:R.mode,padding:R.padding,blockSize:I.blockSize,formatter:T.format})},decrypt:function(I,b,O,T){T=this.cfg.extend(T),b=this._parse(b,T.format);var M=I.createDecryptor(O,T).finalize(b.ciphertext);return M},_parse:function(I,b){return typeof I=="string"?b.parse(I,this):I}}),w=i.kdf={},S=w.OpenSSL={execute:function(I,b,O,T,M){if(T||(T=o.random(64/8)),M)var P=d.create({keySize:b+O,hasher:M}).compute(I,T);else var P=d.create({keySize:b+O}).compute(I,T);var R=o.create(P.words.slice(b),O*4);return P.sigBytes=b*4,v.create({key:P,iv:R,salt:T})}},D=a.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:S}),encrypt:function(I,b,O,T){T=this.cfg.extend(T);var M=T.kdf.execute(O,I.keySize,I.ivSize,T.salt,T.hasher);T.iv=M.iv;var P=x.encrypt.call(this,I,b,M.key,T);return P.mixIn(M),P},decrypt:function(I,b,O,T){T=this.cfg.extend(T),b=this._parse(b,T.format);var M=T.kdf.execute(O,I.keySize,I.ivSize,b.salt,T.hasher);T.iv=M.iv;var P=x.decrypt.call(this,I,b,M.key,T);return P}})}()})}(Sd)),Sd.exports}var _d={exports:{}},um;function UM(){return um||(um=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.mode.CFB=function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(a,s){var o=this._cipher,l=o.blockSize;i.call(this,a,s,l,o),this._prevBlock=a.slice(s,s+l)}}),r.Decryptor=r.extend({processBlock:function(a,s){var o=this._cipher,l=o.blockSize,c=a.slice(s,s+l);i.call(this,a,s,l,o),this._prevBlock=c}});function i(a,s,o,l){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var A=0;A<o;A++)a[s+A]^=c[A]}return r}(),n.mode.CFB})}(_d)),_d.exports}var Dd={exports:{}},dm;function WM(){return dm||(dm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.mode.CTR=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(a,s){var o=this._cipher,l=o.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var A=u.slice(0);o.encryptBlock(A,0),u[l-1]=u[l-1]+1|0;for(var d=0;d<l;d++)a[s+d]^=A[d]}});return r.Decryptor=i,r}(),n.mode.CTR})}(Dd)),Dd.exports}var Td={exports:{}},Am;function XM(){return Am||(Am=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){/** @preserve * Counter block mode compatible with Dr Brian Gladman fileenc.c * derived from CryptoJS.mode.CTR * Jan Hruby jhruby.web@gmail.com - */return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function i(o){if((o>>24&255)===255){var l=o>>16&255,c=o>>8&255,u=o&255;l===255?(l=0,c===255?(c=0,u===255?u=0:++u):++c):++l,o=0,o+=l<<16,o+=c<<8,o+=u}else o+=1<<24;return o}function a(o){return(o[0]=i(o[0]))===0&&(o[1]=i(o[1])),o}var s=r.Encryptor=r.extend({processBlock:function(o,l){var c=this._cipher,u=c.blockSize,A=this._iv,d=this._counter;A&&(d=this._counter=A.slice(0),this._iv=void 0),a(d);var f=d.slice(0);c.encryptBlock(f,0);for(var p=0;p<u;p++)o[l+p]^=f[p]}});return r.Decryptor=s,r}(),n.mode.CTRGladman})}(Td)),Td.exports}var Od={exports:{}},Am;function YM(){return Am||(Am=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(a,s){var o=this._cipher,l=o.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),o.encryptBlock(u,0);for(var A=0;A<l;A++)a[s+A]^=u[A]}});return r.Decryptor=i,r}(),n.mode.OFB})}(Od)),Od.exports}var kd={exports:{}},fm;function zM(){return fm||(fm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,a){this._cipher.encryptBlock(i,a)}}),r.Decryptor=r.extend({processBlock:function(i,a){this._cipher.decryptBlock(i,a)}}),r}(),n.mode.ECB})}(kd)),kd.exports}var Md={exports:{}},hm;function qM(){return hm||(hm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.pad.AnsiX923={pad:function(r,i){var a=r.sigBytes,s=i*4,o=s-a%s,l=a+o-1;r.clamp(),r.words[l>>>2]|=o<<24-l%4*8,r.sigBytes+=o},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Ansix923})}(Md)),Md.exports}var Pd={exports:{}},pm;function KM(){return pm||(pm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.pad.Iso10126={pad:function(r,i){var a=i*4,s=a-r.sigBytes%a;r.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Iso10126})}(Pd)),Pd.exports}var Fd={exports:{}},gm;function $M(){return gm||(gm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.pad.Iso97971={pad:function(r,i){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,i)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(Fd)),Fd.exports}var Rd={exports:{}},vm;function jM(){return vm||(vm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.pad.ZeroPadding={pad:function(r,i){var a=i*4;r.clamp(),r.sigBytes+=a-(r.sigBytes%a||a)},unpad:function(r){for(var i=r.words,a=r.sigBytes-1,a=r.sigBytes-1;a>=0;a--)if(i[a>>>2]>>>24-a%4*8&255){r.sigBytes=a+1;break}}},n.pad.ZeroPadding})}(Rd)),Rd.exports}var Nd={exports:{}},mm;function QM(){return mm||(mm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(Nd)),Nd.exports}var Bd={exports:{}},Cm;function ZM(){return Cm||(Cm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return function(r){var i=n,a=i.lib,s=a.CipherParams,o=i.enc,l=o.Hex,c=i.format;c.Hex={stringify:function(u){return u.ciphertext.toString(l)},parse:function(u){var A=l.parse(u);return s.create({ciphertext:A})}}}(),n.format.Hex})}(Bd)),Bd.exports}var Gd={exports:{}},Em;function JM(){return Em||(Em=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Li(),Vi(),Yr(),rt())})(K,function(n){return function(){var r=n,i=r.lib,a=i.BlockCipher,s=r.algo,o=[],l=[],c=[],u=[],A=[],d=[],f=[],p=[],h=[],g=[];(function(){for(var v=[],C=0;C<256;C++)C<128?v[C]=C<<1:v[C]=C<<1^283;for(var y=0,x=0,C=0;C<256;C++){var w=x^x<<1^x<<2^x<<3^x<<4;w=w>>>8^w&255^99,o[y]=w,l[w]=y;var S=v[y],D=v[S],I=v[D],b=v[w]*257^w*16843008;c[y]=b<<24|b>>>8,u[y]=b<<16|b>>>16,A[y]=b<<8|b>>>24,d[y]=b;var b=I*16843009^D*65537^S*257^y*16843008;f[w]=b<<24|b>>>8,p[w]=b<<16|b>>>16,h[w]=b<<8|b>>>24,g[w]=b,y?(y=S^v[v[v[I^S]]],x^=v[v[x]]):y=x=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],m=s.AES=a.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var C=this._keyPriorReset=this._key,y=C.words,x=C.sigBytes/4,w=this._nRounds=x+6,S=(w+1)*4,D=this._keySchedule=[],I=0;I<S;I++)I<x?D[I]=y[I]:(v=D[I-1],I%x?x>6&&I%x==4&&(v=o[v>>>24]<<24|o[v>>>16&255]<<16|o[v>>>8&255]<<8|o[v&255]):(v=v<<8|v>>>24,v=o[v>>>24]<<24|o[v>>>16&255]<<16|o[v>>>8&255]<<8|o[v&255],v^=E[I/x|0]<<24),D[I]=D[I-x]^v);for(var b=this._invKeySchedule=[],O=0;O<S;O++){var I=S-O;if(O%4)var v=D[I];else var v=D[I-4];O<4||I<=4?b[O]=v:b[O]=f[o[v>>>24]]^p[o[v>>>16&255]]^h[o[v>>>8&255]]^g[o[v&255]]}}},encryptBlock:function(v,C){this._doCryptBlock(v,C,this._keySchedule,c,u,A,d,o)},decryptBlock:function(v,C){var y=v[C+1];v[C+1]=v[C+3],v[C+3]=y,this._doCryptBlock(v,C,this._invKeySchedule,f,p,h,g,l);var y=v[C+1];v[C+1]=v[C+3],v[C+3]=y},_doCryptBlock:function(v,C,y,x,w,S,D,I){for(var b=this._nRounds,O=v[C]^y[0],T=v[C+1]^y[1],M=v[C+2]^y[2],P=v[C+3]^y[3],R=4,W=1;W<b;W++){var N=x[O>>>24]^w[T>>>16&255]^S[M>>>8&255]^D[P&255]^y[R++],U=x[T>>>24]^w[M>>>16&255]^S[P>>>8&255]^D[O&255]^y[R++],Y=x[M>>>24]^w[P>>>16&255]^S[O>>>8&255]^D[T&255]^y[R++],G=x[P>>>24]^w[O>>>16&255]^S[T>>>8&255]^D[M&255]^y[R++];O=N,T=U,M=Y,P=G}var N=(I[O>>>24]<<24|I[T>>>16&255]<<16|I[M>>>8&255]<<8|I[P&255])^y[R++],U=(I[T>>>24]<<24|I[M>>>16&255]<<16|I[P>>>8&255]<<8|I[O&255])^y[R++],Y=(I[M>>>24]<<24|I[P>>>16&255]<<16|I[O>>>8&255]<<8|I[T&255])^y[R++],G=(I[P>>>24]<<24|I[O>>>16&255]<<16|I[T>>>8&255]<<8|I[M&255])^y[R++];v[C]=N,v[C+1]=U,v[C+2]=Y,v[C+3]=G},keySize:256/32});r.AES=a._createHelper(m)}(),n.AES})}(Gd)),Gd.exports}var Ld={exports:{}},xm;function eP(){return xm||(xm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Li(),Vi(),Yr(),rt())})(K,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,s=i.BlockCipher,o=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],A=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=o.DES=s.extend({_doReset:function(){for(var E=this._key,m=E.words,v=[],C=0;C<56;C++){var y=l[C]-1;v[C]=m[y>>>5]>>>31-y%32&1}for(var x=this._subKeys=[],w=0;w<16;w++){for(var S=x[w]=[],D=u[w],C=0;C<24;C++)S[C/6|0]|=v[(c[C]-1+D)%28]<<31-C%6,S[4+(C/6|0)]|=v[28+(c[C+24]-1+D)%28]<<31-C%6;S[0]=S[0]<<1|S[0]>>>31;for(var C=1;C<7;C++)S[C]=S[C]>>>(C-1)*4+3;S[7]=S[7]<<5|S[7]>>>27}for(var I=this._invSubKeys=[],C=0;C<16;C++)I[C]=x[15-C]},encryptBlock:function(E,m){this._doCryptBlock(E,m,this._subKeys)},decryptBlock:function(E,m){this._doCryptBlock(E,m,this._invSubKeys)},_doCryptBlock:function(E,m,v){this._lBlock=E[m],this._rBlock=E[m+1],p.call(this,4,252645135),p.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),p.call(this,1,1431655765);for(var C=0;C<16;C++){for(var y=v[C],x=this._lBlock,w=this._rBlock,S=0,D=0;D<8;D++)S|=A[D][((w^y[D])&d[D])>>>0];this._lBlock=w,this._rBlock=x^S}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,p.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),E[m]=this._lBlock,E[m+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function p(E,m){var v=(this._lBlock>>>E^this._rBlock)&m;this._rBlock^=v,this._lBlock^=v<<E}function h(E,m){var v=(this._rBlock>>>E^this._lBlock)&m;this._lBlock^=v,this._rBlock^=v<<E}r.DES=s._createHelper(f);var g=o.TripleDES=s.extend({_doReset:function(){var E=this._key,m=E.words;if(m.length!==2&&m.length!==4&&m.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=m.slice(0,2),C=m.length<4?m.slice(0,2):m.slice(2,4),y=m.length<6?m.slice(0,2):m.slice(4,6);this._des1=f.createEncryptor(a.create(v)),this._des2=f.createEncryptor(a.create(C)),this._des3=f.createEncryptor(a.create(y))},encryptBlock:function(E,m){this._des1.encryptBlock(E,m),this._des2.decryptBlock(E,m),this._des3.encryptBlock(E,m)},decryptBlock:function(E,m){this._des3.decryptBlock(E,m),this._des2.encryptBlock(E,m),this._des1.decryptBlock(E,m)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(g)}(),n.TripleDES})}(Ld)),Ld.exports}var Vd={exports:{}},ym;function tP(){return ym||(ym=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Li(),Vi(),Yr(),rt())})(K,function(n){return function(){var r=n,i=r.lib,a=i.StreamCipher,s=r.algo,o=s.RC4=a.extend({_doReset:function(){for(var u=this._key,A=u.words,d=u.sigBytes,f=this._S=[],p=0;p<256;p++)f[p]=p;for(var p=0,h=0;p<256;p++){var g=p%d,E=A[g>>>2]>>>24-g%4*8&255;h=(h+f[p]+E)%256;var m=f[p];f[p]=f[h],f[h]=m}this._i=this._j=0},_doProcessBlock:function(u,A){u[A]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var u=this._S,A=this._i,d=this._j,f=0,p=0;p<4;p++){A=(A+1)%256,d=(d+u[A])%256;var h=u[A];u[A]=u[d],u[d]=h,f|=u[(u[A]+u[d])%256]<<24-p*8}return this._i=A,this._j=d,f}r.RC4=a._createHelper(o);var c=s.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)l.call(this)}});r.RC4Drop=a._createHelper(c)}(),n.RC4})}(Vd)),Vd.exports}var Hd={exports:{}},Im;function nP(){return Im||(Im=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Li(),Vi(),Yr(),rt())})(K,function(n){return function(){var r=n,i=r.lib,a=i.StreamCipher,s=r.algo,o=[],l=[],c=[],u=s.Rabbit=a.extend({_doReset:function(){for(var d=this._key.words,f=this.cfg.iv,p=0;p<4;p++)d[p]=(d[p]<<8|d[p]>>>24)&16711935|(d[p]<<24|d[p]>>>8)&4278255360;var h=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],g=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var p=0;p<4;p++)A.call(this);for(var p=0;p<8;p++)g[p]^=h[p+4&7];if(f){var E=f.words,m=E[0],v=E[1],C=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,y=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,x=C>>>16|y&4294901760,w=y<<16|C&65535;g[0]^=C,g[1]^=x,g[2]^=y,g[3]^=w,g[4]^=C,g[5]^=x,g[6]^=y,g[7]^=w;for(var p=0;p<4;p++)A.call(this)}},_doProcessBlock:function(d,f){var p=this._X;A.call(this),o[0]=p[0]^p[5]>>>16^p[3]<<16,o[1]=p[2]^p[7]>>>16^p[5]<<16,o[2]=p[4]^p[1]>>>16^p[7]<<16,o[3]=p[6]^p[3]>>>16^p[1]<<16;for(var h=0;h<4;h++)o[h]=(o[h]<<8|o[h]>>>24)&16711935|(o[h]<<24|o[h]>>>8)&4278255360,d[f+h]^=o[h]},blockSize:128/32,ivSize:64/32});function A(){for(var d=this._X,f=this._C,p=0;p<8;p++)l[p]=f[p];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0<l[0]>>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0<l[1]>>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0<l[2]>>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0<l[3]>>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0<l[4]>>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0<l[5]>>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0<l[6]>>>0?1:0)|0,this._b=f[7]>>>0<l[7]>>>0?1:0;for(var p=0;p<8;p++){var h=d[p]+f[p],g=h&65535,E=h>>>16,m=((g*g>>>17)+g*E>>>15)+E*E,v=((h&4294901760)*h|0)+((h&65535)*h|0);c[p]=m^v}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=a._createHelper(u)}(),n.Rabbit})}(Hd)),Hd.exports}var Ud={exports:{}},wm;function rP(){return wm||(wm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Li(),Vi(),Yr(),rt())})(K,function(n){return function(){var r=n,i=r.lib,a=i.StreamCipher,s=r.algo,o=[],l=[],c=[],u=s.RabbitLegacy=a.extend({_doReset:function(){var d=this._key.words,f=this.cfg.iv,p=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],h=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var g=0;g<4;g++)A.call(this);for(var g=0;g<8;g++)h[g]^=p[g+4&7];if(f){var E=f.words,m=E[0],v=E[1],C=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,y=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,x=C>>>16|y&4294901760,w=y<<16|C&65535;h[0]^=C,h[1]^=x,h[2]^=y,h[3]^=w,h[4]^=C,h[5]^=x,h[6]^=y,h[7]^=w;for(var g=0;g<4;g++)A.call(this)}},_doProcessBlock:function(d,f){var p=this._X;A.call(this),o[0]=p[0]^p[5]>>>16^p[3]<<16,o[1]=p[2]^p[7]>>>16^p[5]<<16,o[2]=p[4]^p[1]>>>16^p[7]<<16,o[3]=p[6]^p[3]>>>16^p[1]<<16;for(var h=0;h<4;h++)o[h]=(o[h]<<8|o[h]>>>24)&16711935|(o[h]<<24|o[h]>>>8)&4278255360,d[f+h]^=o[h]},blockSize:128/32,ivSize:64/32});function A(){for(var d=this._X,f=this._C,p=0;p<8;p++)l[p]=f[p];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0<l[0]>>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0<l[1]>>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0<l[2]>>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0<l[3]>>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0<l[4]>>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0<l[5]>>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0<l[6]>>>0?1:0)|0,this._b=f[7]>>>0<l[7]>>>0?1:0;for(var p=0;p<8;p++){var h=d[p]+f[p],g=h&65535,E=h>>>16,m=((g*g>>>17)+g*E>>>15)+E*E,v=((h&4294901760)*h|0)+((h&65535)*h|0);c[p]=m^v}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=a._createHelper(u)}(),n.RabbitLegacy})}(Ud)),Ud.exports}var Wd={exports:{}},bm;function iP(){return bm||(bm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Li(),Vi(),Yr(),rt())})(K,function(n){return function(){var r=n,i=r.lib,a=i.BlockCipher,s=r.algo;const o=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function A(g,E){let m=E>>24&255,v=E>>16&255,C=E>>8&255,y=E&255,x=g.sbox[0][m]+g.sbox[1][v];return x=x^g.sbox[2][C],x=x+g.sbox[3][y],x}function d(g,E,m){let v=E,C=m,y;for(let x=0;x<o;++x)v=v^g.pbox[x],C=A(g,v)^C,y=v,v=C,C=y;return y=v,v=C,C=y,C=C^g.pbox[o],v=v^g.pbox[o+1],{left:v,right:C}}function f(g,E,m){let v=E,C=m,y;for(let x=o+1;x>1;--x)v=v^g.pbox[x],C=A(g,v)^C,y=v,v=C,C=y;return y=v,v=C,C=y,C=C^g.pbox[1],v=v^g.pbox[0],{left:v,right:C}}function p(g,E,m){for(let w=0;w<4;w++){g.sbox[w]=[];for(let S=0;S<256;S++)g.sbox[w][S]=c[w][S]}let v=0;for(let w=0;w<o+2;w++)g.pbox[w]=l[w]^E[v],v++,v>=m&&(v=0);let C=0,y=0,x=0;for(let w=0;w<o+2;w+=2)x=d(g,C,y),C=x.left,y=x.right,g.pbox[w]=C,g.pbox[w+1]=y;for(let w=0;w<4;w++)for(let S=0;S<256;S+=2)x=d(g,C,y),C=x.left,y=x.right,g.sbox[w][S]=C,g.sbox[w][S+1]=y;return!0}var h=s.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var g=this._keyPriorReset=this._key,E=g.words,m=g.sigBytes/4;p(u,E,m)}},encryptBlock:function(g,E){var m=d(u,g[E],g[E+1]);g[E]=m.left,g[E+1]=m.right},decryptBlock:function(g,E){var m=f(u,g[E],g[E+1]);g[E]=m.left,g[E+1]=m.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=a._createHelper(h)}(),n.Blowfish})}(Wd)),Wd.exports}(function(t,e){(function(n,r,i){t.exports=r(ve(),lu(),FM(),RM(),Li(),NM(),Vi(),fy(),Nh(),BM(),hy(),GM(),LM(),VM(),Bh(),HM(),Yr(),rt(),UM(),WM(),XM(),YM(),zM(),qM(),KM(),$M(),jM(),QM(),ZM(),JM(),eP(),tP(),nP(),rP(),iP())})(K,function(n){return n})})(Ay);var aP=Ay.exports;const sP=t=>aP.SHA256(t).toString(),oP=sP(k1()),er={deviceid:oP},Qn=({params:t={},path:e})=>{const n=Object.entries(t).filter(([,a])=>Array.isArray(a)).flatMap(([a,s])=>s.flatMap(o=>`${a}=${o}`)),r=Object.entries(t).filter(([,a])=>!!a&&!Array.isArray(a)).flatMap(([a,s])=>`${a}=${s}`),i=n.concat(r).join("&");return i.length===0?e??"":[e,i].join("?")},lP=1e3,Yn=Ke["construction-work"],cP=ru.injectEndpoints({endpoints:t=>({[pn.articles]:t.query({providesTags:["Articles"],query:e=>({slug:Yn,url:Qn({path:"/articles",params:e})}),keepUnusedDataFor:vn.minute}),[pn.projectDetails]:t.query({providesTags:["FollowedProjects","Projects"],query:e=>({slug:Yn,url:Qn({path:"/project/details",params:e}),headers:er}),keepUnusedDataFor:vn.hour,transformResponse:bM}),[pn.projectNews]:t.query({query:e=>({slug:Yn,url:Qn({path:"/project/news",params:e})}),keepUnusedDataFor:vn.minute}),[pn.projectWarning]:t.query({query:e=>({slug:Yn,url:Qn({path:"/project/warning",params:e})}),keepUnusedDataFor:vn.minute}),[pn.projects]:t.query({providesTags:["FollowedProjects","Projects"],query:e=>({slug:Yn,url:e?Qn({path:"/projects",params:e}):"/projects",headers:er}),keepUnusedDataFor:vn.hour}),[pn.projectUnfollow]:t.mutation({invalidatesTags:["FollowedProjects"],query:e=>({body:e,method:"DELETE",slug:Yn,url:"/projects/follow",headers:er})}),[pn.projectFollow]:t.mutation({invalidatesTags:["FollowedProjects"],query:e=>({body:e,method:"POST",slug:Yn,url:"/projects/follow",headers:er})}),[pn.projectsFollowedArticles]:t.query({providesTags:["Articles","FollowedProjects"],query:e=>({slug:Yn,url:e?Qn({path:"/projects/followed/articles",params:e}):"/projects/followed/articles",headers:er}),keepUnusedDataFor:vn.hour}),[pn.projectsSearch]:t.query({providesTags:["Projects"],query:e=>({slug:Yn,url:Qn({path:"/projects/search",params:{page_size:lP,...wM(e)}})}),keepUnusedDataFor:vn.hour})}),overrideExisting:!0}),{useArticlesQuery:iF,useProjectDetailsQuery:aF,useProjectFollowMutation:sF,useProjectNewsQuery:oF,useProjectUnfollowMutation:lF,useProjectWarningQuery:cF,useProjectsFollowedArticlesQuery:uP,useProjectsQuery:dP,useProjectsSearchQuery:uF}=cP,AP={readArticles:[],searchText:""},py=He({name:le.constructionWork,initialState:AP,reducers:{addReadArticle:(t,{payload:e})=>{t.readArticles.push(e)},deleteReadArticle:(t,{payload:e})=>{t.readArticles=t.readArticles.filter(n=>n.id!==e)},setSearchText:(t,{payload:e})=>{t.searchText=e}}});py.actions;const fP=t=>t[le.constructionWork].readArticles,hP=()=>{const t=et(fP),{data:e,refetch:n}=uP({article_max_age:dy}),r=_.useCallback(()=>{n()},[n]);Zm(r);const i=_.useMemo(()=>e&&Object.keys(e).flatMap(s=>e[s]),[e]),a=IM(t,i);return a?k.jsx(Ym,{accessibilityLabel:TE`${a} ongelezen bericht[|en]`,testID:"ConstructionWorkBadge",value:a}):null};var If=(t=>(t.registerDevice="registerDevice",t.unregisterDevice="unregisterDevice",t))(If||{});const pP=ru.injectEndpoints({endpoints:t=>({[If.registerDevice]:t.mutation({query:e=>({body:{os:ue.OS,...e},method:"POST",slug:Wo.notification,url:"/device/register",headers:er})}),[If.unregisterDevice]:t.mutation({query:()=>({method:"DELETE",slug:Wo.notification,url:"/device/register",headers:er})})}),overrideExisting:!0}),{useRegisterDeviceMutation:gP,useUnregisterDeviceMutation:vP}=pP,mP=()=>{const[t]=gP(),[e]=vP(),n=Hc(),{hasPermission:r,requestPermission:i}=OE(ti.notifications),a=_.useCallback(()=>{K1().getToken().then(o=>{t({firebase_token:o})}).catch(o=>{n(Zn.registerDevice,"useRegisterDevice.ts",{error:o})})},[t,n]);return{registerDeviceIfPermitted:_.useCallback((o=!1)=>new Promise((l,c)=>{o?i().then(u=>{u&&a(),l(u)}):(r&&a(),l(r))}),[i,a,r]),unregisterDevice:e}},CP={nearestProjectsRadius:1e3,projectItemListPageSize:20,searchBoxDebounceDuration:300},EP=()=>{const{registerDeviceIfPermitted:t}=mP(),[e,n]=_.useState(!1),{data:r}=dP({article_max_age:dy,page_size:CP.projectItemListPageSize,page:1},{skip:e});return _.useEffect(()=>{var i;(i=r==null?void 0:r.result)!=null&&i[0].followed&&!e&&(t(!0),n(!0))},[r==null?void 0:r.result,e,t]),null};var wf=(t=>(t.constructionWork="ConstructionWork",t.project="Project",t.projectNews="ProjectNews",t.projectSegment="ProjectSegment",t.projectWarning="ProjectWarning",t.search="ConstructionWorkSearch",t))(wf||{});const xP=["readArticles"],yP={PreRenderComponent:EP,BadgeValue:hP,linking:{[wf.projectNews]:"news/:id/:screenHeaderTitle/:screenTitle/:isPushNotificationDeeplink?",[wf.projectWarning]:"warning/:id/:screenHeaderTitle/:screenTitle/:isPushNotificationDeeplink?"},logDimension:nn.constructionWorkModule,name:"ConstructionWorkModule",reduxConfigs:[{key:le.constructionWork,persistVersion:0,persistWhitelist:xP,slice:py}],requiresFirebaseToken:!0,slug:Ke["construction-work"]},Sm={},gy=He({name:le.messageDraft,initialState:Sm,reducers:{clearDraft:()=>Sm,setCurrentProjectId:(t,{payload:e})=>{t.currentProjectId=e},setMainImage:(t,{payload:{projectId:e,mainImage:n}})=>{t[e]={...t[e],mainImage:n}},setMainImageDescription:(t,{payload:{projectId:e,mainImageDescription:n}})=>{t[e]={...t[e],mainImageDescription:n}},setNotification:(t,{payload:{projectId:e,notification:n}})=>{t[e]={...t[e],notification:n}},setProject:(t,{payload:e})=>{t[e.id]={...t[e.id],project:e}},setMessage:(t,{payload:{projectId:e,message:n}})=>{t[e]={...t[e],message:n}}}});gy.actions;xi(t=>t[le.messageDraft],t=>t==null?void 0:t.currentProjectId);xi(t=>t[le.messageDraft],t=>t.currentProjectId);var vy=(t=>(t.addMainImageToMessage="AddMainImageToMessage",t.authorizedProjects="AuthorizedProjects",t.confirmMessage="ConfirmMessage",t.createMessage="CreateMessage",t))(vy||{});const _m={accessToken:void 0,hasSeenWelcomeMessage:!1,hasAutoFollowedProjects:!1},my=He({name:le.constructionWorkEditor,initialState:_m,reducers:{saveConstructionWorkEditorToken:(t,{payload:e})=>{t.accessToken=e},removeConstructionWorkEditorToken:t=>{t.accessToken=void 0},setHasSeenWelcomeMessage:(t,{payload:e})=>{t.hasSeenWelcomeMessage=e},setHasAutoFollowedProjects:(t,{payload:e})=>{t.hasAutoFollowedProjects=e},removeConstructionWorkEditor:()=>_m}});my.actions;const IP={requiresAuthorization:!0,linking:{[vy.authorizedProjects]:"construction-work-editor/:accessToken?"},logDimension:nn.constructionWorkEditorModule,name:"ConstructionWorkEditorModule",reduxConfigs:[{key:le.constructionWorkEditor,persistVersion:0,slice:my},{key:le.messageDraft,persistVersion:0,slice:gy}],slug:Ke["construction-work-editor"]},Cy=He({name:le.contact,initialState:{},reducers:{setSelectedCityOffice:(t,{payload:e})=>{t.selectedCityOfficeId=e}}});Cy.actions;const wP={logDimension:nn.contactModule,name:"ContactModule",reduxConfigs:[{key:le.contact,persistVersion:0,slice:Cy}],slug:Ke.contact},bP={name:"HomeModule",screenOptions:{cardStyleInterpolator:({current:t})=>({cardStyle:{opacity:t.progress}})},slug:Ke.home},SP=ru.injectEndpoints({endpoints:t=>({getNotifications:t.query({providesTags:["Notifications"],query:()=>({slug:Wo.notification,url:Qn({path:"/notifications",params:{}}),headers:er}),keepUnusedDataFor:vn.minute}),markAllNotificationsRead:t.mutation({invalidatesTags:["Notifications"],query:()=>({slug:Wo.notification,method:"POST",url:Qn({path:"/notifications/mark_all_read",params:{}}),headers:er})})}),overrideExisting:!0}),{useGetNotificationsQuery:_P,useMarkAllNotificationsReadMutation:dF}=SP,DP=()=>{const t=x1(),{data:e}=_P(),n=(e==null?void 0:e.filter(({is_read:r})=>!r).length)??0;return k.jsx(Si,{accessibilityLabel:"Meldingen",badgeValue:n>0?n:void 0,icon:k.jsx(Mn,{color:"link",name:"alarmFilled",size:"lg",testID:"HeaderNotificationHistoryIcon"}),onPress:()=>t.navigate(Ke["notification-history"]),testID:"HeaderNotificationHistoryButton"})},TP={hiddenInMenu:!0,name:"NotificationHistoryModule",HeaderComponent:DP,slug:Ke["notification-history"],alwaysEnabled:!0},OP={hasSeenOnboarding:!1},Ey=He({name:le.onboarding,initialState:OP,reducers:{setHasSeenOnboarding:(t,{payload:e})=>{t.hasSeenOnboarding=e}}});Ey.actions;const kP={alwaysEnabled:!0,hiddenInMenu:!0,name:"OnboardingModule",reduxConfigs:[{key:le.onboarding,persistVersion:-1,slice:Ey}],slug:Ke.onboarding,screenOptions:{cardStyleInterpolator:({current:t})=>({cardStyle:{opacity:t.progress}})}},MP={name:"OpenWasteContainerModule",slug:Ke["open-waste-container"]},PP={logDimension:nn.redirectsModule,name:"RedirectsModule",slug:Ke.redirects};var xy=(t=>(t.reportProblem="ReportProblem",t.reportProblemWebView="ReportProblemWebView",t))(xy||{});const FP={logDimension:nn.reportProblemModule,name:"ReportProblemModule",slug:Ke["report-problem"],screenOptions:({route:t})=>({gestureEnabled:R1(t)!==xy.reportProblemWebView})},RP={name:"UserModule",slug:Ke.user},NP={contracts:void 0},yy=He({name:le.wasteGuide,initialState:NP,reducers:{addContract:(t,{payload:e})=>{t.contracts={...t.contracts,...e}},resetContracts:({contracts:t,...e})=>e}});yy.actions;const BP={logDimension:nn.wasteGuideModule,name:"WasteGuideModule",reduxConfigs:[{key:le.wasteGuide,persistVersion:0,slice:yy}],slug:Ke["waste-guide"]},AF=[Z1,AI,bP,kP,RP],fF=[$1,y4,EM,IP,yP,wP,MP,PP,FP,BP,TP];export{If as D,q1 as L,V6 as a,nC as b,fF as c,nu as d,pO as e,M1 as f,H6 as g,oE as h,ST as i,I4 as j,yO as k,ru as l,AF as m,Y4 as o,iI as p,_4 as s,$m as v}; + */return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function i(o){if((o>>24&255)===255){var l=o>>16&255,c=o>>8&255,u=o&255;l===255?(l=0,c===255?(c=0,u===255?u=0:++u):++c):++l,o=0,o+=l<<16,o+=c<<8,o+=u}else o+=1<<24;return o}function a(o){return(o[0]=i(o[0]))===0&&(o[1]=i(o[1])),o}var s=r.Encryptor=r.extend({processBlock:function(o,l){var c=this._cipher,u=c.blockSize,A=this._iv,d=this._counter;A&&(d=this._counter=A.slice(0),this._iv=void 0),a(d);var f=d.slice(0);c.encryptBlock(f,0);for(var p=0;p<u;p++)o[l+p]^=f[p]}});return r.Decryptor=s,r}(),n.mode.CTRGladman})}(Td)),Td.exports}var Od={exports:{}},fm;function YM(){return fm||(fm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(a,s){var o=this._cipher,l=o.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),o.encryptBlock(u,0);for(var A=0;A<l;A++)a[s+A]^=u[A]}});return r.Decryptor=i,r}(),n.mode.OFB})}(Od)),Od.exports}var kd={exports:{}},hm;function zM(){return hm||(hm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,a){this._cipher.encryptBlock(i,a)}}),r.Decryptor=r.extend({processBlock:function(i,a){this._cipher.decryptBlock(i,a)}}),r}(),n.mode.ECB})}(kd)),kd.exports}var Md={exports:{}},pm;function qM(){return pm||(pm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.pad.AnsiX923={pad:function(r,i){var a=r.sigBytes,s=i*4,o=s-a%s,l=a+o-1;r.clamp(),r.words[l>>>2]|=o<<24-l%4*8,r.sigBytes+=o},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Ansix923})}(Md)),Md.exports}var Pd={exports:{}},gm;function KM(){return gm||(gm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.pad.Iso10126={pad:function(r,i){var a=i*4,s=a-r.sigBytes%a;r.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Iso10126})}(Pd)),Pd.exports}var Fd={exports:{}},vm;function $M(){return vm||(vm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.pad.Iso97971={pad:function(r,i){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,i)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(Fd)),Fd.exports}var Rd={exports:{}},mm;function jM(){return mm||(mm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.pad.ZeroPadding={pad:function(r,i){var a=i*4;r.clamp(),r.sigBytes+=a-(r.sigBytes%a||a)},unpad:function(r){for(var i=r.words,a=r.sigBytes-1,a=r.sigBytes-1;a>=0;a--)if(i[a>>>2]>>>24-a%4*8&255){r.sigBytes=a+1;break}}},n.pad.ZeroPadding})}(Rd)),Rd.exports}var Nd={exports:{}},Cm;function QM(){return Cm||(Cm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(Nd)),Nd.exports}var Bd={exports:{}},Em;function ZM(){return Em||(Em=1,function(t,e){(function(n,r,i){t.exports=r(ve(),rt())})(K,function(n){return function(r){var i=n,a=i.lib,s=a.CipherParams,o=i.enc,l=o.Hex,c=i.format;c.Hex={stringify:function(u){return u.ciphertext.toString(l)},parse:function(u){var A=l.parse(u);return s.create({ciphertext:A})}}}(),n.format.Hex})}(Bd)),Bd.exports}var Gd={exports:{}},xm;function JM(){return xm||(xm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Li(),Vi(),Yr(),rt())})(K,function(n){return function(){var r=n,i=r.lib,a=i.BlockCipher,s=r.algo,o=[],l=[],c=[],u=[],A=[],d=[],f=[],p=[],h=[],g=[];(function(){for(var v=[],C=0;C<256;C++)C<128?v[C]=C<<1:v[C]=C<<1^283;for(var y=0,x=0,C=0;C<256;C++){var w=x^x<<1^x<<2^x<<3^x<<4;w=w>>>8^w&255^99,o[y]=w,l[w]=y;var S=v[y],D=v[S],I=v[D],b=v[w]*257^w*16843008;c[y]=b<<24|b>>>8,u[y]=b<<16|b>>>16,A[y]=b<<8|b>>>24,d[y]=b;var b=I*16843009^D*65537^S*257^y*16843008;f[w]=b<<24|b>>>8,p[w]=b<<16|b>>>16,h[w]=b<<8|b>>>24,g[w]=b,y?(y=S^v[v[v[I^S]]],x^=v[v[x]]):y=x=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],m=s.AES=a.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var C=this._keyPriorReset=this._key,y=C.words,x=C.sigBytes/4,w=this._nRounds=x+6,S=(w+1)*4,D=this._keySchedule=[],I=0;I<S;I++)I<x?D[I]=y[I]:(v=D[I-1],I%x?x>6&&I%x==4&&(v=o[v>>>24]<<24|o[v>>>16&255]<<16|o[v>>>8&255]<<8|o[v&255]):(v=v<<8|v>>>24,v=o[v>>>24]<<24|o[v>>>16&255]<<16|o[v>>>8&255]<<8|o[v&255],v^=E[I/x|0]<<24),D[I]=D[I-x]^v);for(var b=this._invKeySchedule=[],O=0;O<S;O++){var I=S-O;if(O%4)var v=D[I];else var v=D[I-4];O<4||I<=4?b[O]=v:b[O]=f[o[v>>>24]]^p[o[v>>>16&255]]^h[o[v>>>8&255]]^g[o[v&255]]}}},encryptBlock:function(v,C){this._doCryptBlock(v,C,this._keySchedule,c,u,A,d,o)},decryptBlock:function(v,C){var y=v[C+1];v[C+1]=v[C+3],v[C+3]=y,this._doCryptBlock(v,C,this._invKeySchedule,f,p,h,g,l);var y=v[C+1];v[C+1]=v[C+3],v[C+3]=y},_doCryptBlock:function(v,C,y,x,w,S,D,I){for(var b=this._nRounds,O=v[C]^y[0],T=v[C+1]^y[1],M=v[C+2]^y[2],P=v[C+3]^y[3],R=4,W=1;W<b;W++){var N=x[O>>>24]^w[T>>>16&255]^S[M>>>8&255]^D[P&255]^y[R++],U=x[T>>>24]^w[M>>>16&255]^S[P>>>8&255]^D[O&255]^y[R++],Y=x[M>>>24]^w[P>>>16&255]^S[O>>>8&255]^D[T&255]^y[R++],G=x[P>>>24]^w[O>>>16&255]^S[T>>>8&255]^D[M&255]^y[R++];O=N,T=U,M=Y,P=G}var N=(I[O>>>24]<<24|I[T>>>16&255]<<16|I[M>>>8&255]<<8|I[P&255])^y[R++],U=(I[T>>>24]<<24|I[M>>>16&255]<<16|I[P>>>8&255]<<8|I[O&255])^y[R++],Y=(I[M>>>24]<<24|I[P>>>16&255]<<16|I[O>>>8&255]<<8|I[T&255])^y[R++],G=(I[P>>>24]<<24|I[O>>>16&255]<<16|I[T>>>8&255]<<8|I[M&255])^y[R++];v[C]=N,v[C+1]=U,v[C+2]=Y,v[C+3]=G},keySize:256/32});r.AES=a._createHelper(m)}(),n.AES})}(Gd)),Gd.exports}var Ld={exports:{}},ym;function eP(){return ym||(ym=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Li(),Vi(),Yr(),rt())})(K,function(n){return function(){var r=n,i=r.lib,a=i.WordArray,s=i.BlockCipher,o=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],A=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=o.DES=s.extend({_doReset:function(){for(var E=this._key,m=E.words,v=[],C=0;C<56;C++){var y=l[C]-1;v[C]=m[y>>>5]>>>31-y%32&1}for(var x=this._subKeys=[],w=0;w<16;w++){for(var S=x[w]=[],D=u[w],C=0;C<24;C++)S[C/6|0]|=v[(c[C]-1+D)%28]<<31-C%6,S[4+(C/6|0)]|=v[28+(c[C+24]-1+D)%28]<<31-C%6;S[0]=S[0]<<1|S[0]>>>31;for(var C=1;C<7;C++)S[C]=S[C]>>>(C-1)*4+3;S[7]=S[7]<<5|S[7]>>>27}for(var I=this._invSubKeys=[],C=0;C<16;C++)I[C]=x[15-C]},encryptBlock:function(E,m){this._doCryptBlock(E,m,this._subKeys)},decryptBlock:function(E,m){this._doCryptBlock(E,m,this._invSubKeys)},_doCryptBlock:function(E,m,v){this._lBlock=E[m],this._rBlock=E[m+1],p.call(this,4,252645135),p.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),p.call(this,1,1431655765);for(var C=0;C<16;C++){for(var y=v[C],x=this._lBlock,w=this._rBlock,S=0,D=0;D<8;D++)S|=A[D][((w^y[D])&d[D])>>>0];this._lBlock=w,this._rBlock=x^S}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,p.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),E[m]=this._lBlock,E[m+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function p(E,m){var v=(this._lBlock>>>E^this._rBlock)&m;this._rBlock^=v,this._lBlock^=v<<E}function h(E,m){var v=(this._rBlock>>>E^this._lBlock)&m;this._lBlock^=v,this._rBlock^=v<<E}r.DES=s._createHelper(f);var g=o.TripleDES=s.extend({_doReset:function(){var E=this._key,m=E.words;if(m.length!==2&&m.length!==4&&m.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=m.slice(0,2),C=m.length<4?m.slice(0,2):m.slice(2,4),y=m.length<6?m.slice(0,2):m.slice(4,6);this._des1=f.createEncryptor(a.create(v)),this._des2=f.createEncryptor(a.create(C)),this._des3=f.createEncryptor(a.create(y))},encryptBlock:function(E,m){this._des1.encryptBlock(E,m),this._des2.decryptBlock(E,m),this._des3.encryptBlock(E,m)},decryptBlock:function(E,m){this._des3.decryptBlock(E,m),this._des2.encryptBlock(E,m),this._des1.decryptBlock(E,m)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(g)}(),n.TripleDES})}(Ld)),Ld.exports}var Vd={exports:{}},Im;function tP(){return Im||(Im=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Li(),Vi(),Yr(),rt())})(K,function(n){return function(){var r=n,i=r.lib,a=i.StreamCipher,s=r.algo,o=s.RC4=a.extend({_doReset:function(){for(var u=this._key,A=u.words,d=u.sigBytes,f=this._S=[],p=0;p<256;p++)f[p]=p;for(var p=0,h=0;p<256;p++){var g=p%d,E=A[g>>>2]>>>24-g%4*8&255;h=(h+f[p]+E)%256;var m=f[p];f[p]=f[h],f[h]=m}this._i=this._j=0},_doProcessBlock:function(u,A){u[A]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var u=this._S,A=this._i,d=this._j,f=0,p=0;p<4;p++){A=(A+1)%256,d=(d+u[A])%256;var h=u[A];u[A]=u[d],u[d]=h,f|=u[(u[A]+u[d])%256]<<24-p*8}return this._i=A,this._j=d,f}r.RC4=a._createHelper(o);var c=s.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)l.call(this)}});r.RC4Drop=a._createHelper(c)}(),n.RC4})}(Vd)),Vd.exports}var Hd={exports:{}},wm;function nP(){return wm||(wm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Li(),Vi(),Yr(),rt())})(K,function(n){return function(){var r=n,i=r.lib,a=i.StreamCipher,s=r.algo,o=[],l=[],c=[],u=s.Rabbit=a.extend({_doReset:function(){for(var d=this._key.words,f=this.cfg.iv,p=0;p<4;p++)d[p]=(d[p]<<8|d[p]>>>24)&16711935|(d[p]<<24|d[p]>>>8)&4278255360;var h=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],g=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var p=0;p<4;p++)A.call(this);for(var p=0;p<8;p++)g[p]^=h[p+4&7];if(f){var E=f.words,m=E[0],v=E[1],C=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,y=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,x=C>>>16|y&4294901760,w=y<<16|C&65535;g[0]^=C,g[1]^=x,g[2]^=y,g[3]^=w,g[4]^=C,g[5]^=x,g[6]^=y,g[7]^=w;for(var p=0;p<4;p++)A.call(this)}},_doProcessBlock:function(d,f){var p=this._X;A.call(this),o[0]=p[0]^p[5]>>>16^p[3]<<16,o[1]=p[2]^p[7]>>>16^p[5]<<16,o[2]=p[4]^p[1]>>>16^p[7]<<16,o[3]=p[6]^p[3]>>>16^p[1]<<16;for(var h=0;h<4;h++)o[h]=(o[h]<<8|o[h]>>>24)&16711935|(o[h]<<24|o[h]>>>8)&4278255360,d[f+h]^=o[h]},blockSize:128/32,ivSize:64/32});function A(){for(var d=this._X,f=this._C,p=0;p<8;p++)l[p]=f[p];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0<l[0]>>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0<l[1]>>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0<l[2]>>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0<l[3]>>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0<l[4]>>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0<l[5]>>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0<l[6]>>>0?1:0)|0,this._b=f[7]>>>0<l[7]>>>0?1:0;for(var p=0;p<8;p++){var h=d[p]+f[p],g=h&65535,E=h>>>16,m=((g*g>>>17)+g*E>>>15)+E*E,v=((h&4294901760)*h|0)+((h&65535)*h|0);c[p]=m^v}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=a._createHelper(u)}(),n.Rabbit})}(Hd)),Hd.exports}var Ud={exports:{}},bm;function rP(){return bm||(bm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Li(),Vi(),Yr(),rt())})(K,function(n){return function(){var r=n,i=r.lib,a=i.StreamCipher,s=r.algo,o=[],l=[],c=[],u=s.RabbitLegacy=a.extend({_doReset:function(){var d=this._key.words,f=this.cfg.iv,p=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],h=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var g=0;g<4;g++)A.call(this);for(var g=0;g<8;g++)h[g]^=p[g+4&7];if(f){var E=f.words,m=E[0],v=E[1],C=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,y=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,x=C>>>16|y&4294901760,w=y<<16|C&65535;h[0]^=C,h[1]^=x,h[2]^=y,h[3]^=w,h[4]^=C,h[5]^=x,h[6]^=y,h[7]^=w;for(var g=0;g<4;g++)A.call(this)}},_doProcessBlock:function(d,f){var p=this._X;A.call(this),o[0]=p[0]^p[5]>>>16^p[3]<<16,o[1]=p[2]^p[7]>>>16^p[5]<<16,o[2]=p[4]^p[1]>>>16^p[7]<<16,o[3]=p[6]^p[3]>>>16^p[1]<<16;for(var h=0;h<4;h++)o[h]=(o[h]<<8|o[h]>>>24)&16711935|(o[h]<<24|o[h]>>>8)&4278255360,d[f+h]^=o[h]},blockSize:128/32,ivSize:64/32});function A(){for(var d=this._X,f=this._C,p=0;p<8;p++)l[p]=f[p];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0<l[0]>>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0<l[1]>>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0<l[2]>>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0<l[3]>>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0<l[4]>>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0<l[5]>>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0<l[6]>>>0?1:0)|0,this._b=f[7]>>>0<l[7]>>>0?1:0;for(var p=0;p<8;p++){var h=d[p]+f[p],g=h&65535,E=h>>>16,m=((g*g>>>17)+g*E>>>15)+E*E,v=((h&4294901760)*h|0)+((h&65535)*h|0);c[p]=m^v}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=a._createHelper(u)}(),n.RabbitLegacy})}(Ud)),Ud.exports}var Wd={exports:{}},Sm;function iP(){return Sm||(Sm=1,function(t,e){(function(n,r,i){t.exports=r(ve(),Li(),Vi(),Yr(),rt())})(K,function(n){return function(){var r=n,i=r.lib,a=i.BlockCipher,s=r.algo;const o=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function A(g,E){let m=E>>24&255,v=E>>16&255,C=E>>8&255,y=E&255,x=g.sbox[0][m]+g.sbox[1][v];return x=x^g.sbox[2][C],x=x+g.sbox[3][y],x}function d(g,E,m){let v=E,C=m,y;for(let x=0;x<o;++x)v=v^g.pbox[x],C=A(g,v)^C,y=v,v=C,C=y;return y=v,v=C,C=y,C=C^g.pbox[o],v=v^g.pbox[o+1],{left:v,right:C}}function f(g,E,m){let v=E,C=m,y;for(let x=o+1;x>1;--x)v=v^g.pbox[x],C=A(g,v)^C,y=v,v=C,C=y;return y=v,v=C,C=y,C=C^g.pbox[1],v=v^g.pbox[0],{left:v,right:C}}function p(g,E,m){for(let w=0;w<4;w++){g.sbox[w]=[];for(let S=0;S<256;S++)g.sbox[w][S]=c[w][S]}let v=0;for(let w=0;w<o+2;w++)g.pbox[w]=l[w]^E[v],v++,v>=m&&(v=0);let C=0,y=0,x=0;for(let w=0;w<o+2;w+=2)x=d(g,C,y),C=x.left,y=x.right,g.pbox[w]=C,g.pbox[w+1]=y;for(let w=0;w<4;w++)for(let S=0;S<256;S+=2)x=d(g,C,y),C=x.left,y=x.right,g.sbox[w][S]=C,g.sbox[w][S+1]=y;return!0}var h=s.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var g=this._keyPriorReset=this._key,E=g.words,m=g.sigBytes/4;p(u,E,m)}},encryptBlock:function(g,E){var m=d(u,g[E],g[E+1]);g[E]=m.left,g[E+1]=m.right},decryptBlock:function(g,E){var m=f(u,g[E],g[E+1]);g[E]=m.left,g[E+1]=m.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=a._createHelper(h)}(),n.Blowfish})}(Wd)),Wd.exports}(function(t,e){(function(n,r,i){t.exports=r(ve(),lu(),FM(),RM(),Li(),NM(),Vi(),fy(),Bh(),BM(),hy(),GM(),LM(),VM(),Gh(),HM(),Yr(),rt(),UM(),WM(),XM(),YM(),zM(),qM(),KM(),$M(),jM(),QM(),ZM(),JM(),eP(),tP(),nP(),rP(),iP())})(K,function(n){return n})})(Ay);var aP=Ay.exports;const sP=t=>aP.SHA256(t).toString(),oP=sP(k1()),er={deviceid:oP},Qn=({params:t={},path:e})=>{const n=Object.entries(t).filter(([,a])=>Array.isArray(a)).flatMap(([a,s])=>s.flatMap(o=>`${a}=${o}`)),r=Object.entries(t).filter(([,a])=>!!a&&!Array.isArray(a)).flatMap(([a,s])=>`${a}=${s}`),i=n.concat(r).join("&");return i.length===0?e??"":[e,i].join("?")},lP=1e3,Yn=$e["construction-work"],cP=ru.injectEndpoints({endpoints:t=>({[pn.articles]:t.query({providesTags:["Articles"],query:e=>({slug:Yn,url:Qn({path:"/articles",params:e})}),keepUnusedDataFor:vn.minute}),[pn.projectDetails]:t.query({providesTags:["FollowedProjects","Projects"],query:e=>({slug:Yn,url:Qn({path:"/project/details",params:e}),headers:er}),keepUnusedDataFor:vn.hour,transformResponse:bM}),[pn.projectNews]:t.query({query:e=>({slug:Yn,url:Qn({path:"/project/news",params:e})}),keepUnusedDataFor:vn.minute}),[pn.projectWarning]:t.query({query:e=>({slug:Yn,url:Qn({path:"/project/warning",params:e})}),keepUnusedDataFor:vn.minute}),[pn.projects]:t.query({providesTags:["FollowedProjects","Projects"],query:e=>({slug:Yn,url:e?Qn({path:"/projects",params:e}):"/projects",headers:er}),keepUnusedDataFor:vn.hour}),[pn.projectUnfollow]:t.mutation({invalidatesTags:["FollowedProjects"],query:e=>({body:e,method:"DELETE",slug:Yn,url:"/projects/follow",headers:er})}),[pn.projectFollow]:t.mutation({invalidatesTags:["FollowedProjects"],query:e=>({body:e,method:"POST",slug:Yn,url:"/projects/follow",headers:er})}),[pn.projectsFollowedArticles]:t.query({providesTags:["Articles","FollowedProjects"],query:e=>({slug:Yn,url:e?Qn({path:"/projects/followed/articles",params:e}):"/projects/followed/articles",headers:er}),keepUnusedDataFor:vn.hour}),[pn.projectsSearch]:t.query({providesTags:["Projects"],query:e=>({slug:Yn,url:Qn({path:"/projects/search",params:{page_size:lP,...wM(e)}})}),keepUnusedDataFor:vn.hour})}),overrideExisting:!0}),{useArticlesQuery:iF,useProjectDetailsQuery:aF,useProjectFollowMutation:sF,useProjectNewsQuery:oF,useProjectUnfollowMutation:lF,useProjectWarningQuery:cF,useProjectsFollowedArticlesQuery:uP,useProjectsQuery:dP,useProjectsSearchQuery:uF}=cP,AP={readArticles:[],searchText:""},py=He({name:le.constructionWork,initialState:AP,reducers:{addReadArticle:(t,{payload:e})=>{t.readArticles.push(e)},deleteReadArticle:(t,{payload:e})=>{t.readArticles=t.readArticles.filter(n=>n.id!==e)},setSearchText:(t,{payload:e})=>{t.searchText=e}}});py.actions;const fP=t=>t[le.constructionWork].readArticles,hP=()=>{const t=tt(fP),{data:e,refetch:n}=uP({article_max_age:dy}),r=_.useCallback(()=>{n()},[n]);Zm(r);const i=_.useMemo(()=>e&&Object.keys(e).flatMap(s=>e[s]),[e]),a=IM(t,i);return a?k.jsx(Ym,{accessibilityLabel:TE`${a} ongelezen bericht[|en]`,testID:"ConstructionWorkBadge",value:a}):null};var wf=(t=>(t.registerDevice="registerDevice",t.unregisterDevice="unregisterDevice",t))(wf||{});const pP=ru.injectEndpoints({endpoints:t=>({[wf.registerDevice]:t.mutation({query:e=>({body:{os:ue.OS,...e},method:"POST",slug:Xo.notification,url:"/device/register",headers:er})}),[wf.unregisterDevice]:t.mutation({query:()=>({method:"DELETE",slug:Xo.notification,url:"/device/register",headers:er})})}),overrideExisting:!0}),{useRegisterDeviceMutation:gP,useUnregisterDeviceMutation:vP}=pP,mP=()=>{const[t]=gP(),[e]=vP(),n=Uc(),{hasPermission:r,requestPermission:i}=OE(ti.notifications),a=_.useCallback(()=>{K1().getToken().then(o=>{t({firebase_token:o})}).catch(o=>{n(Zn.registerDevice,"useRegisterDevice.ts",{error:o})})},[t,n]);return{registerDeviceIfPermitted:_.useCallback((o=!1)=>new Promise((l,c)=>{o?i().then(u=>{u&&a(),l(u)}):(r&&a(),l(r))}),[i,a,r]),unregisterDevice:e}},CP={nearestProjectsRadius:1e3,projectItemListPageSize:20,searchBoxDebounceDuration:300},EP=()=>{const{registerDeviceIfPermitted:t}=mP(),[e,n]=_.useState(!1),{data:r}=dP({article_max_age:dy,page_size:CP.projectItemListPageSize,page:1},{skip:e});return _.useEffect(()=>{var i;(i=r==null?void 0:r.result)!=null&&i[0].followed&&!e&&(t(!0),n(!0))},[r==null?void 0:r.result,e,t]),null};var bf=(t=>(t.constructionWork="ConstructionWork",t.project="Project",t.projectNews="ProjectNews",t.projectSegment="ProjectSegment",t.projectWarning="ProjectWarning",t.search="ConstructionWorkSearch",t))(bf||{});const xP=["readArticles"],yP={PreRenderComponent:EP,BadgeValue:hP,linking:{[bf.projectNews]:"news/:id/:screenHeaderTitle/:screenTitle/:isPushNotificationDeeplink?",[bf.projectWarning]:"warning/:id/:screenHeaderTitle/:screenTitle/:isPushNotificationDeeplink?"},logDimension:nn.constructionWorkModule,name:"ConstructionWorkModule",reduxConfigs:[{key:le.constructionWork,persistVersion:0,persistWhitelist:xP,slice:py}],requiresFirebaseToken:!0,slug:$e["construction-work"]},_m={},gy=He({name:le.messageDraft,initialState:_m,reducers:{clearDraft:()=>_m,setCurrentProjectId:(t,{payload:e})=>{t.currentProjectId=e},setMainImage:(t,{payload:{projectId:e,mainImage:n}})=>{t[e]={...t[e],mainImage:n}},setMainImageDescription:(t,{payload:{projectId:e,mainImageDescription:n}})=>{t[e]={...t[e],mainImageDescription:n}},setNotification:(t,{payload:{projectId:e,notification:n}})=>{t[e]={...t[e],notification:n}},setProject:(t,{payload:e})=>{t[e.id]={...t[e.id],project:e}},setMessage:(t,{payload:{projectId:e,message:n}})=>{t[e]={...t[e],message:n}}}});gy.actions;xi(t=>t[le.messageDraft],t=>t==null?void 0:t.currentProjectId);xi(t=>t[le.messageDraft],t=>t.currentProjectId);var vy=(t=>(t.addMainImageToMessage="AddMainImageToMessage",t.authorizedProjects="AuthorizedProjects",t.confirmMessage="ConfirmMessage",t.createMessage="CreateMessage",t))(vy||{});const Dm={accessToken:void 0,hasSeenWelcomeMessage:!1,hasAutoFollowedProjects:!1},my=He({name:le.constructionWorkEditor,initialState:Dm,reducers:{saveConstructionWorkEditorToken:(t,{payload:e})=>{t.accessToken=e},removeConstructionWorkEditorToken:t=>{t.accessToken=void 0},setHasSeenWelcomeMessage:(t,{payload:e})=>{t.hasSeenWelcomeMessage=e},setHasAutoFollowedProjects:(t,{payload:e})=>{t.hasAutoFollowedProjects=e},removeConstructionWorkEditor:()=>Dm}});my.actions;const IP={requiresAuthorization:!0,linking:{[vy.authorizedProjects]:"construction-work-editor/:accessToken?"},logDimension:nn.constructionWorkEditorModule,name:"ConstructionWorkEditorModule",reduxConfigs:[{key:le.constructionWorkEditor,persistVersion:0,slice:my},{key:le.messageDraft,persistVersion:0,slice:gy}],slug:$e["construction-work-editor"]},Cy=He({name:le.contact,initialState:{},reducers:{setSelectedCityOffice:(t,{payload:e})=>{t.selectedCityOfficeId=e}}});Cy.actions;const wP={logDimension:nn.contactModule,name:"ContactModule",reduxConfigs:[{key:le.contact,persistVersion:0,slice:Cy}],slug:$e.contact},bP={name:"HomeModule",screenOptions:{cardStyleInterpolator:({current:t})=>({cardStyle:{opacity:t.progress}})},slug:$e.home},SP=ru.injectEndpoints({endpoints:t=>({getNotifications:t.query({providesTags:["Notifications"],query:()=>({slug:Xo.notification,url:Qn({path:"/notifications",params:{}}),headers:er}),keepUnusedDataFor:vn.minute}),markAllNotificationsRead:t.mutation({invalidatesTags:["Notifications"],query:()=>({slug:Xo.notification,method:"POST",url:Qn({path:"/notifications/mark_all_read",params:{}}),headers:er})})}),overrideExisting:!0}),{useGetNotificationsQuery:_P,useMarkAllNotificationsReadMutation:dF}=SP,DP=()=>{const t=x1(),{data:e}=_P(),n=(e==null?void 0:e.filter(({is_read:r})=>!r).length)??0;return k.jsx(Si,{accessibilityLabel:"Meldingen",badgeValue:n>0?n:void 0,icon:k.jsx(Mn,{color:"link",name:"alarmFilled",size:"lg",testID:"HeaderNotificationHistoryIcon"}),onPress:()=>t.navigate($e["notification-history"]),testID:"HeaderNotificationHistoryButton"})},TP={hiddenInMenu:!0,name:"NotificationHistoryModule",HeaderComponent:DP,slug:$e["notification-history"],alwaysEnabled:!0},OP={hasSeenOnboarding:!1},Ey=He({name:le.onboarding,initialState:OP,reducers:{setHasSeenOnboarding:(t,{payload:e})=>{t.hasSeenOnboarding=e}}});Ey.actions;const kP={alwaysEnabled:!0,hiddenInMenu:!0,name:"OnboardingModule",reduxConfigs:[{key:le.onboarding,persistVersion:-1,slice:Ey}],slug:$e.onboarding,screenOptions:{cardStyleInterpolator:({current:t})=>({cardStyle:{opacity:t.progress}})}},MP={name:"OpenWasteContainerModule",slug:$e["open-waste-container"]},PP={logDimension:nn.redirectsModule,name:"RedirectsModule",slug:$e.redirects};var xy=(t=>(t.reportProblem="ReportProblem",t.reportProblemWebView="ReportProblemWebView",t))(xy||{});const FP={logDimension:nn.reportProblemModule,name:"ReportProblemModule",slug:$e["report-problem"],screenOptions:({route:t})=>({gestureEnabled:R1(t)!==xy.reportProblemWebView})},RP={name:"UserModule",slug:$e.user},NP={contracts:void 0},yy=He({name:le.wasteGuide,initialState:NP,reducers:{addContract:(t,{payload:e})=>{t.contracts={...t.contracts,...e}},resetContracts:({contracts:t,...e})=>e}});yy.actions;const BP={logDimension:nn.wasteGuideModule,name:"WasteGuideModule",reduxConfigs:[{key:le.wasteGuide,persistVersion:0,slice:yy}],slug:$e["waste-guide"]},AF=[Z1,AI,bP,kP,RP],fF=[$1,y4,EM,IP,yP,wP,MP,PP,FP,BP,TP];export{wf as D,q1 as L,V6 as a,nC as b,fF as c,Ah as d,pO as e,M1 as f,H6 as g,oE as h,ST as i,I4 as j,yO as k,ru as l,AF as m,Y4 as o,iI as p,_4 as s,$m as v}; diff --git a/assets/preview-BWv0N7lx.js b/assets/preview-CEwHxKlx.js similarity index 97% rename from assets/preview-BWv0N7lx.js rename to assets/preview-CEwHxKlx.js index 1598ee07..830a3af6 100644 --- a/assets/preview-BWv0N7lx.js +++ b/assets/preview-CEwHxKlx.js @@ -1 +1 @@ -import{j as $}from"./jsx-runtime-Bxcv0yjW.js";import{D as nt}from"./useDeviceContext-Cm8FgCCV.js";import{g as ot,R as it,i as st,c as J,b as I,t as at,d as ut,e as lt}from"./useThemable-ua4U8LzO.js";import{f as q,v as Ce,g as Ie,a as je,L as ct,D as dt,b as ft,e as pt,h as mt,i as ht,o as vt,p as gt,j as yt,s as bt,k as St,l as te,m as xt,c as wt}from"./modules-DWXNg6GW.js";import{e as Pt,A as Ot}from"./useTrackException-Cm6KdDpO.js";import{g as ke,c as Et}from"./_commonjsHelpers-BosuxZz1.js";import{c as Rt,A as Ct}from"./development-LhlsWDYu.js";import{r as s}from"./index-mfbfsM12.js";import{i as It}from"./Fader-CBhy3bI5.js";import{L as fe}from"./useOpenUrl-BQFKyC8S.js";import{b as D}from"./base-color-B2rPH-Aj.js";import{N as pe,r as jt,C as me,q as kt}from"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import{N as At,a as Lt}from"./Tooltip-6N6xDP0A.js";import"./index-8JwjhRSi.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./index-BXDkY5MO.js";import"./index-DFkxGuuM.js";import"./index-CAyeAlm6.js";import"./index-BP1Ij_Cs.js";import"./Animated-CFNSbqHF.js";import"./extends-CF3RwP-h.js";import"./index-2SHDvLR_.js";import"./useTheme-ChTiG3MC.js";import"./index-DbcoTUCW.js";import"./Column-CFK5NdwL.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useAccessibilityFocus-jeKlJ74P.js";import"./index-DEfxrPnc.js";import"./index-CDv7s-w8.js";import"./useIsScreenReaderEnabled-A65pchNu.js";import"./duration-A4BOymd5.js";import"./Pressable-0Of7HZos.js";import"./PressableBase-DhkKVuqd.js";import"./index-CIcog7m4.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./Size-ByzkQpGs.js";import"./Phrase-D4XuA9hP.js";import"./index-Ce74jbsy.js";import"./IconButton-CciMcnyz.js";import"./config-BZnShabN.js";import"./Badge-gxv3290q.js";import"./Row-D-wvv0CV.js";import"./types-BJ_48vsK.js";import"./Icon-X_MsqpOP.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Title-DmDbCZFx.js";import"./Gutter-BrZ2VZou.js";import"./ChatSystemEntry-DUcFLRjf.js";import"./Button-_M7GwRMx.js";import"./index-DZxzYa9i.js";import"./Center-2_hcwEx9.js";import"./index-k6NSpe5t.js";import"./HideFromAccessibility-B6TCA_vV.js";import"./PleaseWait-B-bOq08A.js";import"./Paragraph-ypvGdTJ3.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-CkqLweLe.js";import"./client-BGlHIwA3.js";import"./index-BW2XZOZc.js";import"./useOpenMailUrl-Blrf_PL9.js";import"./useOpenPhoneUrl-TB9t0oDt.js";import"./Triangle-rmeRPZtY.js";import"./SingleSelectable-BAFROorM.js";let Nt="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",he=(e=21)=>{let t="",r=e;for(;r--;)t+=Nt[Math.random()*64|0];return t};const _t='Another navigator is already registered for this container. You likely have multiple navigators under a single "NavigationContainer" or "Screen". Make sure each navigator is under a separate "Screen" container. See https://reactnavigation.org/docs/nesting-navigators for a guide on nesting.',Tt=s.createContext(void 0);function Mt(e){let{children:t}=e;const r=s.useRef(),n=s.useMemo(()=>({register(o){const i=r.current;if(i!==void 0&&o!==i)throw new Error(_t);r.current=o},unregister(o){const i=r.current;o===i&&(r.current=void 0)}}),[]);return s.createElement(Tt.Provider,{value:n},t)}const Ae=s.createContext({onDispatchAction:()=>{},onOptionsChange:()=>{}}),Ft=s.createContext(void 0),V="Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'? See https://reactnavigation.org/docs/getting-started for setup instructions.",re=s.createContext({isDefault:!0,get getKey(){throw new Error(V)},get setKey(){throw new Error(V)},get getState(){throw new Error(V)},get setState(){throw new Error(V)},get getIsInitial(){throw new Error(V)}}),Dt=s.createContext(void 0);function Ut(){const{current:e}=s.useRef({action:[],focus:[]}),t=s.useCallback((r,n)=>{e[r].push(n);let o=!1;return()=>{const i=e[r].indexOf(n);!o&&i>-1&&(o=!0,e[r].splice(i,1))}},[e]);return{listeners:e,addListener:t}}function $t(e){const t=s.useRef(e);s.useEffect(()=>{t.current=e});const r=s.useRef(Object.create(null)),n=s.useCallback(i=>{const u=(l,c)=>{const f=r.current[l]?r.current[l][i]:void 0;if(!f)return;const d=f.indexOf(c);d>-1&&f.splice(d,1)};return{addListener:(l,c)=>{r.current[l]=r.current[l]||{},r.current[l][i]=r.current[l][i]||[],r.current[l][i].push(c);let f=!1;return()=>{f||(f=!0,u(l,c))}},removeListener:u}},[]),o=s.useCallback(i=>{var u,a;let{type:l,data:c,target:f,canPreventDefault:d}=i;const h=r.current[l]||{},p=f!==void 0?(u=h[f])===null||u===void 0?void 0:u.slice():[].concat(...Object.keys(h).map(y=>h[y])).filter((y,v,S)=>S.lastIndexOf(y)===v),g={get type(){return l}};if(f!==void 0&&Object.defineProperty(g,"target",{enumerable:!0,get(){return f}}),c!==void 0&&Object.defineProperty(g,"data",{enumerable:!0,get(){return c}}),d){let y=!1;Object.defineProperties(g,{defaultPrevented:{enumerable:!0,get(){return y}},preventDefault:{enumerable:!0,value(){y=!0}}})}return(a=t.current)===null||a===void 0||a.call(t,g),p==null||p.forEach(y=>y(g)),g},[]);return s.useMemo(()=>({create:n,emit:o}),[n,o])}function Kt(){const{current:e}=s.useRef(Object.assign(Object.create(null),{getState:{},beforeRemove:{}})),t=s.useCallback((r,n,o)=>(e[r][n]=o,()=>{e[r][n]=void 0}),[e]);return{keyedListeners:e,addKeyedListener:t}}function Gt(e){let{key:t,options:r,navigation:n}=e;const o=s.useRef(r),i=s.useRef({}),{onOptionsChange:u}=s.useContext(Ae),{addOptionsGetter:a}=s.useContext(re),l=s.useCallback(()=>{const h=(n==null?void 0:n.isFocused())??!0,p=Object.keys(i.current).length;h&&!p&&u(o.current??{})},[n,u]);s.useEffect(()=>(o.current=r,l(),n==null?void 0:n.addListener("focus",l)),[n,r,l]);const c=s.useCallback(()=>{for(let g in i.current)if(i.current.hasOwnProperty(g)){var h,p;const y=(h=(p=i.current)[g])===null||h===void 0?void 0:h.call(p);if(y!==null)return y}return null},[]),f=s.useCallback(()=>{if(!((n==null?void 0:n.isFocused())??!0))return null;const p=c();return p!==null?p:o.current},[n,c]);return s.useEffect(()=>a==null?void 0:a(t,f),[f,a,t]),{addOptionsGetter:s.useCallback((h,p)=>(i.current[h]=p,l(),()=>{delete i.current[h],l()}),[l]),getCurrentOptions:f}}const ve="Couldn't find a schedule context.",Vt=s.createContext({scheduleUpdate(){throw new Error(ve)},flushUpdates(){throw new Error(ve)}}),ge={};function zt(e){const t=s.useRef(ge),r=s.useRef(!1),n=s.useRef(!0);s.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),t.current===ge&&(t.current=typeof e=="function"?e():e);const[o,i]=s.useState(t.current),u=s.useCallback(()=>t.current,[]),a=s.useCallback(d=>{d===t.current||!n.current||(t.current=d,r.current||i(d))},[]),l=s.useCallback(d=>{r.current=!0;try{d()}finally{r.current=!1}},[]),c=s.useCallback(()=>{n.current&&i(t.current)},[]);o!==t.current&&i(t.current);const f=t.current;return s.useDebugValue(f),[f,u,a,l,c]}const Le=e=>{if(e===void 0)return;const{key:t,routeNames:r,...n}=e;return{...n,stale:!0,routes:e.routes.map(o=>o.state===void 0?o:{...o,state:Le(o.state)})}},Wt=s.forwardRef(function(t,r){let{initialState:n,onStateChange:o,onUnhandledAction:i,independent:u,children:a}=t;if(!s.useContext(re).isDefault&&!u)throw new Error("Looks like you have nested a 'NavigationContainer' inside another. Normally you need only one container at the root of the app, so this was probably an error. If this was intentional, pass 'independent={true}' explicitly. Note that this will make the child navigators disconnected from the parent and you won't be able to navigate between them.");const[c,f,d,h,p]=zt(()=>Le(n??void 0)),g=s.useRef(!0),y=s.useRef(),v=s.useCallback(()=>y.current,[]),S=s.useCallback(P=>{y.current=P},[]),{listeners:O,addListener:x}=Ut(),{keyedListeners:b,addKeyedListener:E}=Kt(),m=s.useCallback(P=>{O.focus[0]==null?console.error(pe):O.focus[0](k=>k.dispatch(P))},[O.focus]),j=s.useCallback(()=>{if(O.focus[0]==null)return!1;const{result:P,handled:k}=O.focus[0](W=>W.canGoBack());return k?P:!1},[O.focus]),w=s.useCallback(P=>{var k,W;const de=(P==null?void 0:P.key)??((k=(W=b.getState).root)===null||k===void 0?void 0:k.call(W).key);de==null?console.error(pe):O.focus[0](rt=>rt.dispatch({...jt(P),target:de}))},[b.getState,O.focus]),R=s.useCallback(()=>{var P,k;return(P=(k=b.getState).root)===null||P===void 0?void 0:P.call(k)},[b.getState]),L=s.useCallback(()=>{const P=R();return P==null?void 0:q(P)},[R]),C=$t(),{addOptionsGetter:A,getCurrentOptions:_}=Gt({}),T=s.useMemo(()=>({...Object.keys(me).reduce((P,k)=>(P[k]=function(){return m(me[k](...arguments))},P),{}),...C.create("root"),dispatch:m,resetRoot:w,isFocused:()=>!0,canGoBack:j,getParent:()=>{},getState:()=>ce.current,getRootState:R,getCurrentRoute:L,getCurrentOptions:_,isReady:()=>O.focus[0]!=null,setOptions:()=>{throw new Error("Cannot call setOptions outside a screen")}}),[j,m,C,_,L,R,O.focus,w]);s.useImperativeHandle(r,()=>T,[T]);const M=s.useCallback((P,k)=>{C.emit({type:"__unsafe_action__",data:{action:P,noop:k,stack:ae.current}})},[C]),F=s.useRef(),Z=s.useCallback(P=>{F.current!==P&&(F.current=P,C.emit({type:"options",data:{options:P}}))},[C]),ae=s.useRef(),Ze=s.useMemo(()=>({addListener:x,addKeyedListener:E,onDispatchAction:M,onOptionsChange:Z,stackRef:ae}),[x,E,M,Z]),Qe=s.useMemo(()=>({scheduleUpdate:h,flushUpdates:p}),[h,p]),ue=s.useRef(!0),le=s.useCallback(()=>ue.current,[]),et=s.useMemo(()=>({state:c,getState:f,setState:d,getKey:v,setKey:S,getIsInitial:le,addOptionsGetter:A}),[c,f,d,v,S,le,A]),Q=s.useRef(o),ce=s.useRef(c);s.useEffect(()=>{ue.current=!1,Q.current=o,ce.current=c}),s.useEffect(()=>{const P=R();C.emit({type:"state",data:{state:c}}),!g.current&&Q.current&&Q.current(P),g.current=!1},[R,C,c]);const tt=s.useCallback(P=>{},[]);let ee=s.createElement(At.Provider,{value:T},s.createElement(Vt.Provider,{value:Qe},s.createElement(Ae.Provider,{value:Ze},s.createElement(re.Provider,{value:et},s.createElement(Dt.Provider,{value:i??tt},s.createElement(Mt,null,a))))));return u&&(ee=s.createElement(Ft.Provider,{value:void 0},s.createElement(Lt.Provider,{value:void 0},ee))),ee});function Ne(e){return e.reduce((t,r)=>{let[n,o]=r;if(t.hasOwnProperty(n))throw new Error(`A value for key '${n}' already exists in the object.`);return t[n]=o,t},{})}const _e=e=>{const t=typeof e.index=="number"?e.routes[e.index]:e.routes[e.routes.length-1];return t.state?_e(t.state):t};function Te(e,t){if(e==null)throw Error("Got 'undefined' for the navigation state. You must pass a valid state object.");t&&Ce(t);const r=t!=null&&t.screens?Me(t==null?void 0:t.screens):{};let n="/",o=e;const i={};for(;o;){let l=typeof o.index=="number"?o.index:0,c=o.routes[l],f,d,h=_e(e),p=r,g=[],y=!0;for(;c.name in p&&y;){if(f=p[c.name].pattern,g.push(c.name),c.params){var u;const v=(u=p[c.name])===null||u===void 0?void 0:u.stringify,S=Ne(Object.entries(c.params).map(O=>{let[x,b]=O;return[x,v!=null&&v[x]?v[x](b):String(b)]}));if(f&&Object.assign(i,S),h===c){var a;d={...S},(a=f)===null||a===void 0||a.split("/").filter(O=>O.startsWith(":")).forEach(O=>{const x=ye(O);d&&delete d[x]})}}if(!p[c.name].screens||c.state===void 0)y=!1;else{l=typeof c.state.index=="number"?c.state.index:c.state.routes.length-1;const v=c.state.routes[l],S=p[c.name].screens;S&&v.name in S?(c=v,p=S):y=!1}}if(f===void 0&&(f=g.join("/")),p[c.name]!==void 0?n+=f.split("/").map(v=>{const S=ye(v);if(v==="*")return c.name;if(v.startsWith(":")){const O=i[S];return O===void 0&&v.endsWith("?")?"":encodeURIComponent(O)}return encodeURIComponent(v)}).join("/"):n+=encodeURIComponent(c.name),d||(d=h.params),c.state)n+="/";else if(d){for(let S in d)d[S]==="undefined"&&delete d[S];const v=kt.stringify(d,{sort:!1});v&&(n+=`?${v}`)}o=c.state}return n=n.replace(/\/+/g,"/"),n=n.length>1?n.replace(/\/$/,""):n,n}const ye=e=>e.replace(/^:/,"").replace(/\?$/,""),be=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return[].concat(...t.map(n=>n.split("/"))).filter(Boolean).join("/")},Ht=(e,t)=>{var r;if(typeof e=="string")return{pattern:t?be(t,e):e};let n;if(e.exact&&e.path===void 0)throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");n=e.exact!==!0?be(t||"",e.path||""):e.path||"";const o=e.screens?Me(e.screens,n):void 0;return{pattern:(r=n)===null||r===void 0?void 0:r.split("/").filter(Boolean).join("/"),stringify:e.stringify,screens:o}},Me=(e,t)=>Ne(Object.entries(e).map(r=>{let[n,o]=r;const i=Ht(o,t);return[n,i]}));function qt(){const e=ot();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],o=t;for(;o;)n.push(o),o=o.next;return n},subscribe(n){let o=!0,i=r={callback:n,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const Se={notify(){},get:()=>[]};function Bt(e,t){let r,n=Se,o=0,i=!1;function u(y){f();const v=n.subscribe(y);let S=!1;return()=>{S||(S=!0,v(),d())}}function a(){n.notify()}function l(){g.onStateChange&&g.onStateChange()}function c(){return i}function f(){o++,r||(r=e.subscribe(l),n=qt())}function d(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=Se)}function h(){i||(i=!0,f())}function p(){i&&(i=!1,d())}const g={addNestedSub:u,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:c,trySubscribe:h,tryUnsubscribe:p,getListeners:()=>n};return g}const Xt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Jt=Xt?s.useLayoutEffect:s.useEffect;function Yt({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:i="once"}){const u=s.useMemo(()=>{const c=Bt(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:o,noopCheck:i}},[e,n,o,i]),a=s.useMemo(()=>e.getState(),[e]);Jt(()=>{const{subscription:c}=u;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[u,a]);const l=t||it;return s.createElement(l.Provider,{value:u},r)}const Fe={dark:!1,colors:{primary:"rgb(0, 122, 255)",background:"rgb(242, 242, 242)",card:"rgb(255, 255, 255)",text:"rgb(28, 28, 30)",border:"rgb(216, 216, 216)",notification:"rgb(255, 59, 48)"}},De=s.createContext(Fe);De.displayName="ThemeContext";function Zt(e){let{value:t,children:r}=e;return s.createElement(De.Provider,{value:t},r)}function Qt(e){let{enabled:t=!0,formatter:r=(n,o)=>(n==null?void 0:n.title)??(o==null?void 0:o.name)}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};s.useEffect(()=>{if(!t)return;const n=e.current;if(n){const o=r(n.getCurrentOptions(),n.getCurrentRoute());document.title=o}return n==null?void 0:n.addListener("options",o=>{const i=r(o.data.options,n==null?void 0:n.getCurrentRoute());document.title=i})})}var er=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var u=i[o];if(!e(t[u],r[u]))return!1}return!0}return t!==t&&r!==r};const tr=ke(er);function rr(){let e=0,t=[];const r=[],n=()=>{r.forEach(i=>{const u=i.cb;i.cb=()=>u(!0)})};return{get index(){var i;const u=(i=window.history.state)===null||i===void 0?void 0:i.id;if(u){const a=t.findIndex(l=>l.id===u);return a>-1?a:0}return 0},get(i){return t[i]},backIndex(i){let{path:u}=i;for(let a=e-1;a>=0;a--)if(t[a].path===u)return a;return-1},push(i){let{path:u,state:a}=i;n();const l=he();t=t.slice(0,e+1),t.push({path:u,state:a,id:l}),e=t.length-1,window.history.pushState({id:l},"",u)},replace(i){var u;let{path:a,state:l}=i;n();const c=((u=window.history.state)===null||u===void 0?void 0:u.id)??he();let f=a;!t.length||t.findIndex(d=>d.id===c)<0?(f=f+location.hash,t=[{path:f,state:l,id:c}],e=0):(t[e].path===a&&(f=f+location.hash),t[e]={path:a,state:l,id:c}),window.history.replaceState({id:c},"",f)},go(i){n();const u=e+i,a=t.length-1;if(i<0&&!t[u]?(i=-e,e=0):i>0&&u>a?(i=a-e,e=a):e=u,i!==0)return new Promise((l,c)=>{const f=p=>{if(clearTimeout(d),p){c(new Error("History was changed during navigation."));return}const{title:g}=window.document;window.document.title="",window.document.title=g,l()};r.push({ref:f,cb:f});const d=setTimeout(()=>{const p=r.findIndex(g=>g.ref===f);p>-1&&(r[p].cb(),r.splice(p,1))},100),h=()=>{var p;const g=(p=window.history.state)===null||p===void 0?void 0:p.id,y=t.findIndex(S=>S.id===g);e=Math.max(y,0);const v=r.pop();window.removeEventListener("popstate",h),v==null||v.cb()};window.addEventListener("popstate",h),window.history.go(i)})},listen(i){const u=()=>{r.length||i()};return window.addEventListener("popstate",u),()=>window.removeEventListener("popstate",u)}}}const nr=s.createContext(void 0),Ue=(e,t)=>{if(e===void 0||t===void 0||e.key!==t.key)return[void 0,void 0];const r=e.history?e.history.length:e.routes.length,n=t.history?t.history.length:t.routes.length,o=e.routes[e.index],i=t.routes[t.index],u=o.state,a=i.state;return r!==n||o.key!==i.key||u===void 0||a===void 0||u.key!==a.key?[e,t]:Ue(u,a)},or=e=>{let t=Promise.resolve();return()=>{t=t.then(e)}};function ir(e,t){let{independent:r,enabled:n=!0,config:o,getStateFromPath:i=Ie,getPathFromState:u=Te,getActionFromState:a=je}=t;s.useEffect(()=>{},[n,r]);const[l]=s.useState(rr),c=s.useRef(n),f=s.useRef(o),d=s.useRef(i),h=s.useRef(u),p=s.useRef(a);s.useEffect(()=>{c.current=n,f.current=o,d.current=i,h.current=u,p.current=a});const g=s.useContext(nr),y=s.useCallback(()=>{let x;if(c.current){const E=(g==null?void 0:g.location)??(typeof window<"u"?window.location:void 0),m=E?E.pathname+E.search:void 0;m&&(x=d.current(m,f.current))}const b={then(E){return Promise.resolve(E?E(x):x)},catch(){return b}};return b},[]),v=s.useRef(void 0),S=s.useRef(void 0),O=s.useRef(void 0);return s.useEffect(()=>(v.current=l.index,l.listen(()=>{const x=e.current;if(!x||!n)return;const{location:b}=window,E=b.pathname+b.search,m=l.index,j=v.current??0;v.current=m,O.current=E;const w=l.get(m);if((w==null?void 0:w.path)===E&&w!==null&&w!==void 0&&w.state){x.resetRoot(w.state);return}const R=d.current(E,f.current);if(R){const L=x.getRootState();if(R.routes.some(C=>!(L!=null&&L.routeNames.includes(C.name)))){console.warn("The navigation state parsed from the URL contains routes not present in the root navigator. This usually means that the linking configuration doesn't match the navigation structure. See https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.");return}if(m>j){const C=p.current(R,f.current);if(C!==void 0)try{x.dispatch(C)}catch(A){console.warn(`An error occurred when trying to handle the link '${E}': ${typeof A=="object"&&A!=null&&"message"in A?A.message:A}`)}else x.resetRoot(R)}else x.resetRoot(R)}else x.resetRoot(R)})),[n,l,e]),s.useEffect(()=>{var x;if(!n)return;const b=(m,j)=>{if(m!=null&&m.path){const w=d.current(m.path,f.current);if(w){const R=q(w);if(R&&R.name===m.name&&tr(R.params,m.params))return m.path}}return h.current(j,f.current)};if(e.current){const m=e.current.getRootState();if(m){const j=q(m),w=b(j,m);S.current===void 0&&(S.current=m),l.replace({path:w,state:m})}}const E=async()=>{const m=e.current;if(!m||!n)return;const j=S.current,w=m.getRootState();if(!w)return;const R=O.current,L=q(w),C=b(L,w);S.current=w,O.current=void 0;const[A,_]=Ue(j,w);if(A&&_&&C!==R){const T=(_.history?_.history.length:_.routes.length)-(A.history?A.history.length:A.routes.length);if(T>0)l.push({path:C,state:w});else if(T<0){const M=l.backIndex({path:C}),F=l.index;try{M!==-1&&M<F&&l.get(M-F)?await l.go(M-F):await l.go(T),l.replace({path:C,state:w})}catch{}}else l.replace({path:C,state:w})}else l.replace({path:C,state:w})};return(x=e.current)===null||x===void 0?void 0:x.addListener("state",or(E))},[n,l,e]),{getInitialState:y}}function sr(e){const[t]=s.useState(e);let r=[!1,void 0];t.then(u=>{r=[!0,u]});const[n,o]=s.useState(r),[i]=n;return s.useEffect(()=>{let u=!1;return i||(async()=>{let l;try{l=await t}finally{u||o([!0,l])}})(),()=>{u=!0}},[t,i]),n}function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ne.apply(this,arguments)}global.REACT_NAVIGATION_DEVTOOLS=new WeakMap;function ar(e,t){let{theme:r=Fe,linking:n,fallback:o=null,documentTitle:i,onReady:u,...a}=e;const l=n?n.enabled!==!1:!1;n!=null&&n.config&&Ce(n.config);const c=s.useRef(null);Qt(c,i);const{getInitialState:f}=ir(c,{independent:a.independent,enabled:l,prefixes:[],...n});s.useEffect(()=>{c.current&&REACT_NAVIGATION_DEVTOOLS.set(c.current,{get linking(){return{...n,enabled:l,prefixes:(n==null?void 0:n.prefixes)??[],getStateFromPath:(n==null?void 0:n.getStateFromPath)??Ie,getPathFromState:(n==null?void 0:n.getPathFromState)??Te,getActionFromState:(n==null?void 0:n.getActionFromState)??je}}})});const[d,h]=sr(f);s.useImperativeHandle(t,()=>c.current);const p=s.useMemo(()=>({options:n}),[n]),g=a.initialState!=null||!l||d,y=s.useRef(u);return s.useEffect(()=>{y.current=u}),s.useEffect(()=>{if(g){var v;(v=y.current)===null||v===void 0||v.call(y)}},[g]),g?s.createElement(ct.Provider,{value:p},s.createElement(Zt,{value:r},s.createElement(Wt,ne({},a,{initialState:a.initialState==null?h:a.initialState,ref:c})))):o}const ur=s.forwardRef(ar);var lr={iphone5:{name:"iPhone 5",styles:{height:"568px",width:"320px"},type:"mobile"},iphone6:{name:"iPhone 6",styles:{height:"667px",width:"375px"},type:"mobile"},iphone6p:{name:"iPhone 6 Plus",styles:{height:"736px",width:"414px"},type:"mobile"},iphone8p:{name:"iPhone 8 Plus",styles:{height:"736px",width:"414px"},type:"mobile"},iphonex:{name:"iPhone X",styles:{height:"812px",width:"375px"},type:"mobile"},iphonexr:{name:"iPhone XR",styles:{height:"896px",width:"414px"},type:"mobile"},iphonexsmax:{name:"iPhone XS Max",styles:{height:"896px",width:"414px"},type:"mobile"},iphonese2:{name:"iPhone SE (2nd generation)",styles:{height:"667px",width:"375px"},type:"mobile"},iphone12mini:{name:"iPhone 12 mini",styles:{height:"812px",width:"375px"},type:"mobile"},iphone12:{name:"iPhone 12",styles:{height:"844px",width:"390px"},type:"mobile"},iphone12promax:{name:"iPhone 12 Pro Max",styles:{height:"926px",width:"428px"},type:"mobile"},iphoneSE3:{name:"iPhone SE 3rd generation",styles:{height:"667px",width:"375px"},type:"mobile"},iphone13:{name:"iPhone 13",styles:{height:"844px",width:"390px"},type:"mobile"},iphone13pro:{name:"iPhone 13 Pro",styles:{height:"844px",width:"390px"},type:"mobile"},iphone13promax:{name:"iPhone 13 Pro Max",styles:{height:"926px",width:"428px"},type:"mobile"},iphone14:{name:"iPhone 14",styles:{height:"844px",width:"390px"},type:"mobile"},iphone14pro:{name:"iPhone 14 Pro",styles:{height:"852px",width:"393px"},type:"mobile"},iphone14promax:{name:"iPhone 14 Pro Max",styles:{height:"932px",width:"430px"},type:"mobile"},ipad:{name:"iPad",styles:{height:"1024px",width:"768px"},type:"tablet"},ipad10p:{name:"iPad Pro 10.5-in",styles:{height:"1112px",width:"834px"},type:"tablet"},ipad11p:{name:"iPad Pro 11-in",styles:{height:"1194px",width:"834px"},type:"tablet"},ipad12p:{name:"iPad Pro 12.9-in",styles:{height:"1366px",width:"1024px"},type:"tablet"},galaxys5:{name:"Galaxy S5",styles:{height:"640px",width:"360px"},type:"mobile"},galaxys9:{name:"Galaxy S9",styles:{height:"740px",width:"360px"},type:"mobile"},nexus5x:{name:"Nexus 5X",styles:{height:"660px",width:"412px"},type:"mobile"},nexus6p:{name:"Nexus 6P",styles:{height:"732px",width:"412px"},type:"mobile"},pixel:{name:"Pixel",styles:{height:"960px",width:"540px"},type:"mobile"},pixelxl:{name:"Pixel XL",styles:{height:"1280px",width:"720px"},type:"mobile"}},cr=lr,se="persist:",$e="persist/FLUSH",Ke="persist/REHYDRATE",Ge="persist/PAUSE",Ve="persist/PERSIST",ze="persist/PURGE",dr="persist/REGISTER",We=-1;function B(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?B=function(r){return typeof r}:B=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},B(e)}function xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function fr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xe(r,!0).forEach(function(n){pr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xe(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mr(e,t,r,n){n.debug;var o=fr({},r);return e&&B(e)==="object"&&Object.keys(e).forEach(function(i){i!=="_persist"&&t[i]===r[i]&&(o[i]=e[i])}),o}function hr(e){var t=e.blacklist||null,r=e.whitelist||null,n=e.transforms||[],o=e.throttle||0,i="".concat(e.keyPrefix!==void 0?e.keyPrefix:se).concat(e.key),u=e.storage,a;e.serialize===!1?a=function(E){return E}:typeof e.serialize=="function"?a=e.serialize:a=vr;var l=e.writeFailHandler||null,c={},f={},d=[],h=null,p=null,g=function(E){Object.keys(E).forEach(function(m){S(m)&&c[m]!==E[m]&&d.indexOf(m)===-1&&d.push(m)}),Object.keys(c).forEach(function(m){E[m]===void 0&&S(m)&&d.indexOf(m)===-1&&c[m]!==void 0&&d.push(m)}),h===null&&(h=setInterval(y,o)),c=E};function y(){if(d.length===0){h&&clearInterval(h),h=null;return}var b=d.shift(),E=n.reduce(function(m,j){return j.in(m,b,c)},c[b]);if(E!==void 0)try{f[b]=a(E)}catch(m){console.error("redux-persist/createPersistoid: error serializing state",m)}else delete f[b];d.length===0&&v()}function v(){Object.keys(f).forEach(function(b){c[b]===void 0&&delete f[b]}),p=u.setItem(i,a(f)).catch(O)}function S(b){return!(r&&r.indexOf(b)===-1&&b!=="_persist"||t&&t.indexOf(b)!==-1)}function O(b){l&&l(b)}var x=function(){for(;d.length!==0;)y();return p||Promise.resolve()};return{update:g,flush:x}}function vr(e){return JSON.stringify(e)}function gr(e){var t=e.transforms||[],r="".concat(e.keyPrefix!==void 0?e.keyPrefix:se).concat(e.key),n=e.storage;e.debug;var o;return e.deserialize===!1?o=function(u){return u}:typeof e.deserialize=="function"?o=e.deserialize:o=yr,n.getItem(r).then(function(i){if(i)try{var u={},a=o(i);return Object.keys(a).forEach(function(l){u[l]=t.reduceRight(function(c,f){return f.out(c,l,a)},o(a[l]))}),u}catch(l){throw l}else return})}function yr(e){return JSON.parse(e)}function br(e){var t=e.storage,r="".concat(e.keyPrefix!==void 0?e.keyPrefix:se).concat(e.key);return t.removeItem(r,Sr)}function Sr(e){}function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?we(r,!0).forEach(function(n){xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wr(e,t){if(e==null)return{};var r=Pr(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Pr(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Or=5e3;function Er(e,t){var r=e.version!==void 0?e.version:We;e.debug;var n=e.stateReconciler===void 0?mr:e.stateReconciler,o=e.getStoredState||gr,i=e.timeout!==void 0?e.timeout:Or,u=null,a=!1,l=!0,c=function(d){return d._persist.rehydrated&&u&&!l&&u.update(d),d};return function(f,d){var h=f||{},p=h._persist,g=wr(h,["_persist"]),y=g;if(d.type===Ve){var v=!1,S=function(w,R){v||(d.rehydrate(e.key,w,R),v=!0)};if(i&&setTimeout(function(){!v&&S(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),l=!1,u||(u=hr(e)),p)return N({},t(y,d),{_persist:p});if(typeof d.rehydrate!="function"||typeof d.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return d.register(e.key),o(e).then(function(j){var w=e.migrate||function(R,L){return Promise.resolve(R)};w(j,r).then(function(R){S(R)},function(R){S(void 0,R)})},function(j){S(void 0,j)}),N({},t(y,d),{_persist:{version:r,rehydrated:!1}})}else{if(d.type===ze)return a=!0,d.result(br(e)),N({},t(y,d),{_persist:p});if(d.type===$e)return d.result(u&&u.flush()),N({},t(y,d),{_persist:p});if(d.type===Ge)l=!0;else if(d.type===Ke){if(a)return N({},y,{_persist:N({},p,{rehydrated:!0})});if(d.key===e.key){var O=t(y,d),x=d.payload,b=n!==!1&&x!==void 0?n(x,f,O,e):O,E=N({},b,{_persist:N({},p,{rehydrated:!0})});return c(E)}}}if(!p)return t(f,d);var m=t(y,d);return m===y?f:c(N({},m,{_persist:p}))}}function Rr(e,t){return function(r,n){if(!r)return Promise.resolve(void 0);var o=r._persist&&r._persist.version!==void 0?r._persist.version:We;if(o===n||o>n)return Promise.resolve(r);var i=Object.keys(e).map(function(a){return parseInt(a)}).filter(function(a){return n>=a&&a>o}).sort(function(a,l){return a-l});try{var u=i.reduce(function(a,l){return e[l](a)},r);return Promise.resolve(u)}catch(a){return Promise.reject(a)}}}const Cr=(e,t)=>e===dt.unregisterDevice&&(t==null?void 0:t.status)===404&&(t==null?void 0:t.data)==="No record found",Ir=[0,"0"],jr=e=>e!==void 0&&!Ir.includes(e),kr=e=>{var a,l,c,f,d,h,p,g;const t=(l=(a=e.meta)==null?void 0:a.arg)==null?void 0:l.endpointName,r=(c=e.payload)==null?void 0:c.originalStatus,n=(f=e.payload)==null?void 0:f.status;if(!jr(r??n)||Cr(t,e.payload))return;let o="Rejected RTK action";t&&(o=`${r??n??"Error"} for ${t}`);const i=`All request retries failed: ${o}`,u=(p=(h=(d=e.meta)==null?void 0:d.baseQueryMeta)==null?void 0:h.request)==null?void 0:p.url;u&&!u.startsWith("http://localhost")&&Pt.trackException({exception:new Error(i),properties:{endpoint:t,originalStatus:r,status:n,error:(g=e.payload)==null?void 0:g.error,url:u}})},Ar=()=>e=>t=>(st(t)&&kr(t),e(t));var Lr=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype};const X=Lr,{hasOwnProperty:He}=Object.prototype,{propertyIsEnumerable:Nr}=Object,K=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0}),_r=Et,Pe={concatArrays:!1,ignoreUndefined:!1},Y=e=>{const t=[];for(const r in e)He.call(e,r)&&t.push(r);if(Object.getOwnPropertySymbols){const r=Object.getOwnPropertySymbols(e);for(const n of r)Nr.call(e,n)&&t.push(n)}return t};function G(e){return Array.isArray(e)?Tr(e):X(e)?Mr(e):e}function Tr(e){const t=e.slice(0,0);return Y(e).forEach(r=>{K(t,r,G(e[r]))}),t}function Mr(e){const t=Object.getPrototypeOf(e)===null?Object.create(null):{};return Y(e).forEach(r=>{K(t,r,G(e[r]))}),t}const qe=(e,t,r,n)=>(r.forEach(o=>{typeof t[o]>"u"&&n.ignoreUndefined||(o in e&&e[o]!==Object.getPrototypeOf(e)?K(e,o,oe(e[o],t[o],n)):K(e,o,G(t[o])))}),e),Fr=(e,t,r)=>{let n=e.slice(0,0),o=0;return[e,t].forEach(i=>{const u=[];for(let a=0;a<i.length;a++)He.call(i,a)&&(u.push(String(a)),i===e?K(n,o++,i[a]):K(n,o++,G(i[a])));n=qe(n,i,Y(i).filter(a=>!u.includes(a)),r)}),n};function oe(e,t,r){return r.concatArrays&&Array.isArray(e)&&Array.isArray(t)?Fr(e,t,r):!X(t)||!X(e)?G(t):qe(e,t,Y(t),r)}var Dr=function(...e){const t=oe(G(Pe),this!==_r&&this||{},Pe);let r={_:{}};for(const n of e)if(n!==void 0){if(!X(n))throw new TypeError("`"+n+"` is not an Option Object");r=oe(r,{_:n},t)}return r._};const Ur=ke(Dr),$r=Ur.bind({concatArrays:!0,ignoreUndefined:!0});function Kr(e,t){const r=window.localStorage.getItem(e);if(r){const n=JSON.parse(r),o=JSON.parse(t),i=JSON.stringify($r(n,o));window.localStorage.setItem(e,i)}else window.localStorage.setItem(e,t)}function U(e,t){return new Promise((r,n)=>{try{const o=e();t==null||t(null,o),r(o)}catch(o){t==null||t(o),n(o)}})}function H(e,t,r){return Promise.all(e).then(n=>{const o=(r==null?void 0:r(n))??null;return t==null||t(null,o),Promise.resolve(o)},n=>(t==null||t(n),Promise.reject(n)))}const z={getItem:(e,t)=>U(()=>window.localStorage.getItem(e),t),setItem:(e,t,r)=>U(()=>window.localStorage.setItem(e,t),r),removeItem:(e,t)=>U(()=>window.localStorage.removeItem(e),t),mergeItem:(e,t,r)=>U(()=>Kr(e,t),r),clear:e=>U(()=>window.localStorage.clear(),e),getAllKeys:e=>U(()=>{const t=window.localStorage.length,r=[];for(let n=0;n<t;n+=1){const o=window.localStorage.key(n)||"";r.push(o)}return r},e),flushGetRequests:()=>{},multiGet:(e,t)=>{const r=e.map(o=>z.getItem(o));return H(r,t,o=>o.map((i,u)=>[e[u],i]))},multiSet:(e,t)=>{const r=e.map(n=>z.setItem(n[0],n[1]));return H(r,t)},multiRemove:(e,t)=>{const r=e.map(n=>z.removeItem(n));return H(r,t)},multiMerge:(e,t)=>{const r=e.map(n=>z.mergeItem(n[0],n[1]));return H(r,t)}},Oe=e=>e.reduce((t,{reduxConfigs:r})=>r?[...t,...r]:t,[]),Gr=e=>{const t={};return e.forEach(r=>{const{key:n,migrations:o,slice:i,persistWhitelist:u,persistVersion:a}=r;if(a===void 0){t[n]=i.reducer;return}t[n]=Er({key:n,storage:z,migrate:o?Rr(o,{debug:Rt===Ct.local}):void 0,version:a,whitelist:u},i.reducer)}),t},Ee={},Be=J({name:I.alert,initialState:Ee,reducers:{resetAlert:()=>Ee,setAlert:(e,{payload:t})=>(It||fe.configureNext(fe.Presets.easeInEaseOut),t)}});Be.actions;const Vr={isConnected:null,isInternetReachable:null,isNoInternetFullScreenErrorVisible:!1},Xe=J({name:I.internetConnection,initialState:Vr,reducers:{setInternetState:(e,{payload:{isConnected:t,isInternetReachable:r}})=>{e.isConnected=t,e.isInternetReachable=r},setIsNoInternetFullScreenErrorVisible:(e,{payload:t})=>{e.isNoInternetFullScreenErrorVisible=t}}});Xe.actions;const Re={disabledModules:[],authorizedModules:[],cachedServerModules:void 0},Je=J({name:I.modules,initialState:Re,reducers:{resetModules:()=>Re,toggleModule:(e,{payload:t})=>{const{disabledModules:r}=e;if(r!=null&&r.includes(t))return{...e,disabledModules:r.filter(n=>n!==t)};e.disabledModules=[...e.disabledModules,t]},addAuthorizedModule:(e,{payload:t})=>{const{authorizedModules:r}=e;r!=null&&r.includes(t)||(e.authorizedModules=[...e.authorizedModules,t])},removeAuthorizedModule:(e,{payload:t})=>{const{authorizedModules:r}=e;r!=null&&r.includes(t)&&(e.authorizedModules=r.filter(n=>n!==t))},setCachedServerModules:(e,{payload:t})=>{e.cachedServerModules=t}}});Je.actions;const Ye=J({name:I.updateApp,initialState:{},reducers:{setLastSeenTimestamp:(e,{payload:t})=>({...e,lastSeenTimestamp:t})}});Ye.actions.setLastSeenTimestamp(Date.now());const zr=[{key:I.accessCode,slice:ft},{key:I.alert,slice:Be},{key:I.bottomSheet,slice:pt},{key:I.chat,slice:mt},{key:I.environment,slice:ht,persistVersion:0},{key:I.internetConnection,slice:Xe},{key:I.modules,slice:Je,persistVersion:0},{key:I.overlay,slice:vt},{key:I.permissions,slice:gt},{key:I.productTour,slice:yt,persistVersion:0},{key:I.secureStorage,slice:bt,persistVersion:0},{key:I.theme,slice:at},{key:I.screen,slice:St},{key:I.updateApp,slice:Ye,persistVersion:0}],Wr=Gr([...zr,...Oe(xt),...Oe(wt)]),Hr=ut({enhancers:e=>e,reducer:lt({[te.reducerPath]:te.reducer,...Wr}),middleware:e=>e({serializableCheck:{ignoredActions:[$e,Ke,Ge,Ve,ze,dr],warnAfter:256},immutableCheck:{warnAfter:256}}).concat([te.middleware,Ar])}),ie=({children:e})=>$.jsx(Yt,{store:Hr,children:e});try{ie.displayName="StoreProvider",ie.__docgenInfo={description:"",displayName:"StoreProvider",props:{}}}catch{}const qr=e=>$.jsx(Ot,{children:$.jsx(ur,{children:$.jsx(ie,{children:$.jsx(nt,{children:$.jsx(e,{})})})})}),fo={decorators:[qr],parameters:{backgrounds:{values:[{name:"custom-grey0",value:D.custom.grey0},{name:"primary-blue",value:D.primary.blue},{name:"primary-red",value:D.primary.red},{name:"primary-black",value:D.primary.black},{name:"secondary-yellow",value:D.secondary.yellow},{name:"secondary-purple",value:D.secondary.purple}]},controls:{matchers:{color:/(background|color)$/i,date:/Date$/}},viewport:{viewports:cr,defaultViewport:"iphonex"}},tags:["autodocs"]};export{fo as default}; +import{j as $}from"./jsx-runtime-Bxcv0yjW.js";import{D as nt}from"./useDeviceContext-Cm8FgCCV.js";import{g as ot,R as it,i as st,c as J,b as I,t as at,d as ut,e as lt}from"./useThemable-ua4U8LzO.js";import{f as q,v as Ce,g as Ie,a as je,L as ct,D as dt,b as ft,e as pt,h as mt,i as ht,o as vt,p as gt,j as yt,s as bt,k as St,l as te,m as xt,c as wt}from"./modules-hTTKIr_p.js";import{e as Pt,A as Ot}from"./useTrackException-Cm6KdDpO.js";import{g as ke,c as Et}from"./_commonjsHelpers-BosuxZz1.js";import{c as Rt,A as Ct}from"./development-LhlsWDYu.js";import{r as s}from"./index-mfbfsM12.js";import{i as It}from"./Fader-CBhy3bI5.js";import{L as fe}from"./useOpenUrl-DnQVF1wQ.js";import{b as D}from"./base-color-B2rPH-Aj.js";import{N as pe,r as jt,C as me,q as kt}from"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import{N as At,a as Lt}from"./Tooltip-CFX6LweZ.js";import"./index-8JwjhRSi.js";import"./index-BowPbij1.js";import"./NativeEventEmitter-MQ3wzVGe.js";import"./index-DSI0shHu.js";import"./TextAncestorContext-Dg3XKfar.js";import"./index-kbHxBZ_W.js";import"./index-BXDkY5MO.js";import"./index-DFkxGuuM.js";import"./index-CAyeAlm6.js";import"./index-BP1Ij_Cs.js";import"./Animated-CFNSbqHF.js";import"./extends-CF3RwP-h.js";import"./index-2SHDvLR_.js";import"./useTheme-ChTiG3MC.js";import"./index-DbcoTUCW.js";import"./Column-CFK5NdwL.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useAccessibilityFocus-jeKlJ74P.js";import"./index-DEfxrPnc.js";import"./index-CDv7s-w8.js";import"./useIsScreenReaderEnabled-A65pchNu.js";import"./duration-A4BOymd5.js";import"./Pressable-0Of7HZos.js";import"./PressableBase-DhkKVuqd.js";import"./index-CIcog7m4.js";import"./Box-CEQ9kk6v.js";import"./layoutStyles-hLwHoe51.js";import"./Size-ByzkQpGs.js";import"./Phrase-CZOdtc60.js";import"./index-Ce74jbsy.js";import"./IconButton-S0EpSLVW.js";import"./config-BZnShabN.js";import"./Badge-BAkGihjF.js";import"./Row-D-wvv0CV.js";import"./types-BJ_48vsK.js";import"./Icon-DbPHcDCx.js";import"./index-BtN4QjYR.js";import"./index-Dk74W0Oi.js";import"./Title-DyZpgX2c.js";import"./Gutter-BrZ2VZou.js";import"./ChatSystemEntry-CUUCUyCa.js";import"./Button-BgT1eW_K.js";import"./index-DZxzYa9i.js";import"./Center-2_hcwEx9.js";import"./index-k6NSpe5t.js";import"./HideFromAccessibility-B6TCA_vV.js";import"./PleaseWait-CKlP_x4g.js";import"./Paragraph-4J4ihaTP.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-CkqLweLe.js";import"./client-BGlHIwA3.js";import"./index-BW2XZOZc.js";import"./useOpenMailUrl-Blrf_PL9.js";import"./useOpenPhoneUrl-TB9t0oDt.js";import"./Triangle-rmeRPZtY.js";import"./SingleSelectable-BAFROorM.js";let Nt="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",he=(e=21)=>{let t="",r=e;for(;r--;)t+=Nt[Math.random()*64|0];return t};const _t='Another navigator is already registered for this container. You likely have multiple navigators under a single "NavigationContainer" or "Screen". Make sure each navigator is under a separate "Screen" container. See https://reactnavigation.org/docs/nesting-navigators for a guide on nesting.',Tt=s.createContext(void 0);function Mt(e){let{children:t}=e;const r=s.useRef(),n=s.useMemo(()=>({register(o){const i=r.current;if(i!==void 0&&o!==i)throw new Error(_t);r.current=o},unregister(o){const i=r.current;o===i&&(r.current=void 0)}}),[]);return s.createElement(Tt.Provider,{value:n},t)}const Ae=s.createContext({onDispatchAction:()=>{},onOptionsChange:()=>{}}),Ft=s.createContext(void 0),V="Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'? See https://reactnavigation.org/docs/getting-started for setup instructions.",re=s.createContext({isDefault:!0,get getKey(){throw new Error(V)},get setKey(){throw new Error(V)},get getState(){throw new Error(V)},get setState(){throw new Error(V)},get getIsInitial(){throw new Error(V)}}),Dt=s.createContext(void 0);function Ut(){const{current:e}=s.useRef({action:[],focus:[]}),t=s.useCallback((r,n)=>{e[r].push(n);let o=!1;return()=>{const i=e[r].indexOf(n);!o&&i>-1&&(o=!0,e[r].splice(i,1))}},[e]);return{listeners:e,addListener:t}}function $t(e){const t=s.useRef(e);s.useEffect(()=>{t.current=e});const r=s.useRef(Object.create(null)),n=s.useCallback(i=>{const u=(l,c)=>{const f=r.current[l]?r.current[l][i]:void 0;if(!f)return;const d=f.indexOf(c);d>-1&&f.splice(d,1)};return{addListener:(l,c)=>{r.current[l]=r.current[l]||{},r.current[l][i]=r.current[l][i]||[],r.current[l][i].push(c);let f=!1;return()=>{f||(f=!0,u(l,c))}},removeListener:u}},[]),o=s.useCallback(i=>{var u,a;let{type:l,data:c,target:f,canPreventDefault:d}=i;const h=r.current[l]||{},p=f!==void 0?(u=h[f])===null||u===void 0?void 0:u.slice():[].concat(...Object.keys(h).map(y=>h[y])).filter((y,v,S)=>S.lastIndexOf(y)===v),g={get type(){return l}};if(f!==void 0&&Object.defineProperty(g,"target",{enumerable:!0,get(){return f}}),c!==void 0&&Object.defineProperty(g,"data",{enumerable:!0,get(){return c}}),d){let y=!1;Object.defineProperties(g,{defaultPrevented:{enumerable:!0,get(){return y}},preventDefault:{enumerable:!0,value(){y=!0}}})}return(a=t.current)===null||a===void 0||a.call(t,g),p==null||p.forEach(y=>y(g)),g},[]);return s.useMemo(()=>({create:n,emit:o}),[n,o])}function Kt(){const{current:e}=s.useRef(Object.assign(Object.create(null),{getState:{},beforeRemove:{}})),t=s.useCallback((r,n,o)=>(e[r][n]=o,()=>{e[r][n]=void 0}),[e]);return{keyedListeners:e,addKeyedListener:t}}function Gt(e){let{key:t,options:r,navigation:n}=e;const o=s.useRef(r),i=s.useRef({}),{onOptionsChange:u}=s.useContext(Ae),{addOptionsGetter:a}=s.useContext(re),l=s.useCallback(()=>{const h=(n==null?void 0:n.isFocused())??!0,p=Object.keys(i.current).length;h&&!p&&u(o.current??{})},[n,u]);s.useEffect(()=>(o.current=r,l(),n==null?void 0:n.addListener("focus",l)),[n,r,l]);const c=s.useCallback(()=>{for(let g in i.current)if(i.current.hasOwnProperty(g)){var h,p;const y=(h=(p=i.current)[g])===null||h===void 0?void 0:h.call(p);if(y!==null)return y}return null},[]),f=s.useCallback(()=>{if(!((n==null?void 0:n.isFocused())??!0))return null;const p=c();return p!==null?p:o.current},[n,c]);return s.useEffect(()=>a==null?void 0:a(t,f),[f,a,t]),{addOptionsGetter:s.useCallback((h,p)=>(i.current[h]=p,l(),()=>{delete i.current[h],l()}),[l]),getCurrentOptions:f}}const ve="Couldn't find a schedule context.",Vt=s.createContext({scheduleUpdate(){throw new Error(ve)},flushUpdates(){throw new Error(ve)}}),ge={};function zt(e){const t=s.useRef(ge),r=s.useRef(!1),n=s.useRef(!0);s.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),t.current===ge&&(t.current=typeof e=="function"?e():e);const[o,i]=s.useState(t.current),u=s.useCallback(()=>t.current,[]),a=s.useCallback(d=>{d===t.current||!n.current||(t.current=d,r.current||i(d))},[]),l=s.useCallback(d=>{r.current=!0;try{d()}finally{r.current=!1}},[]),c=s.useCallback(()=>{n.current&&i(t.current)},[]);o!==t.current&&i(t.current);const f=t.current;return s.useDebugValue(f),[f,u,a,l,c]}const Le=e=>{if(e===void 0)return;const{key:t,routeNames:r,...n}=e;return{...n,stale:!0,routes:e.routes.map(o=>o.state===void 0?o:{...o,state:Le(o.state)})}},Wt=s.forwardRef(function(t,r){let{initialState:n,onStateChange:o,onUnhandledAction:i,independent:u,children:a}=t;if(!s.useContext(re).isDefault&&!u)throw new Error("Looks like you have nested a 'NavigationContainer' inside another. Normally you need only one container at the root of the app, so this was probably an error. If this was intentional, pass 'independent={true}' explicitly. Note that this will make the child navigators disconnected from the parent and you won't be able to navigate between them.");const[c,f,d,h,p]=zt(()=>Le(n??void 0)),g=s.useRef(!0),y=s.useRef(),v=s.useCallback(()=>y.current,[]),S=s.useCallback(P=>{y.current=P},[]),{listeners:O,addListener:x}=Ut(),{keyedListeners:b,addKeyedListener:E}=Kt(),m=s.useCallback(P=>{O.focus[0]==null?console.error(pe):O.focus[0](k=>k.dispatch(P))},[O.focus]),j=s.useCallback(()=>{if(O.focus[0]==null)return!1;const{result:P,handled:k}=O.focus[0](W=>W.canGoBack());return k?P:!1},[O.focus]),w=s.useCallback(P=>{var k,W;const de=(P==null?void 0:P.key)??((k=(W=b.getState).root)===null||k===void 0?void 0:k.call(W).key);de==null?console.error(pe):O.focus[0](rt=>rt.dispatch({...jt(P),target:de}))},[b.getState,O.focus]),R=s.useCallback(()=>{var P,k;return(P=(k=b.getState).root)===null||P===void 0?void 0:P.call(k)},[b.getState]),L=s.useCallback(()=>{const P=R();return P==null?void 0:q(P)},[R]),C=$t(),{addOptionsGetter:A,getCurrentOptions:_}=Gt({}),T=s.useMemo(()=>({...Object.keys(me).reduce((P,k)=>(P[k]=function(){return m(me[k](...arguments))},P),{}),...C.create("root"),dispatch:m,resetRoot:w,isFocused:()=>!0,canGoBack:j,getParent:()=>{},getState:()=>ce.current,getRootState:R,getCurrentRoute:L,getCurrentOptions:_,isReady:()=>O.focus[0]!=null,setOptions:()=>{throw new Error("Cannot call setOptions outside a screen")}}),[j,m,C,_,L,R,O.focus,w]);s.useImperativeHandle(r,()=>T,[T]);const M=s.useCallback((P,k)=>{C.emit({type:"__unsafe_action__",data:{action:P,noop:k,stack:ae.current}})},[C]),F=s.useRef(),Z=s.useCallback(P=>{F.current!==P&&(F.current=P,C.emit({type:"options",data:{options:P}}))},[C]),ae=s.useRef(),Ze=s.useMemo(()=>({addListener:x,addKeyedListener:E,onDispatchAction:M,onOptionsChange:Z,stackRef:ae}),[x,E,M,Z]),Qe=s.useMemo(()=>({scheduleUpdate:h,flushUpdates:p}),[h,p]),ue=s.useRef(!0),le=s.useCallback(()=>ue.current,[]),et=s.useMemo(()=>({state:c,getState:f,setState:d,getKey:v,setKey:S,getIsInitial:le,addOptionsGetter:A}),[c,f,d,v,S,le,A]),Q=s.useRef(o),ce=s.useRef(c);s.useEffect(()=>{ue.current=!1,Q.current=o,ce.current=c}),s.useEffect(()=>{const P=R();C.emit({type:"state",data:{state:c}}),!g.current&&Q.current&&Q.current(P),g.current=!1},[R,C,c]);const tt=s.useCallback(P=>{},[]);let ee=s.createElement(At.Provider,{value:T},s.createElement(Vt.Provider,{value:Qe},s.createElement(Ae.Provider,{value:Ze},s.createElement(re.Provider,{value:et},s.createElement(Dt.Provider,{value:i??tt},s.createElement(Mt,null,a))))));return u&&(ee=s.createElement(Ft.Provider,{value:void 0},s.createElement(Lt.Provider,{value:void 0},ee))),ee});function Ne(e){return e.reduce((t,r)=>{let[n,o]=r;if(t.hasOwnProperty(n))throw new Error(`A value for key '${n}' already exists in the object.`);return t[n]=o,t},{})}const _e=e=>{const t=typeof e.index=="number"?e.routes[e.index]:e.routes[e.routes.length-1];return t.state?_e(t.state):t};function Te(e,t){if(e==null)throw Error("Got 'undefined' for the navigation state. You must pass a valid state object.");t&&Ce(t);const r=t!=null&&t.screens?Me(t==null?void 0:t.screens):{};let n="/",o=e;const i={};for(;o;){let l=typeof o.index=="number"?o.index:0,c=o.routes[l],f,d,h=_e(e),p=r,g=[],y=!0;for(;c.name in p&&y;){if(f=p[c.name].pattern,g.push(c.name),c.params){var u;const v=(u=p[c.name])===null||u===void 0?void 0:u.stringify,S=Ne(Object.entries(c.params).map(O=>{let[x,b]=O;return[x,v!=null&&v[x]?v[x](b):String(b)]}));if(f&&Object.assign(i,S),h===c){var a;d={...S},(a=f)===null||a===void 0||a.split("/").filter(O=>O.startsWith(":")).forEach(O=>{const x=ye(O);d&&delete d[x]})}}if(!p[c.name].screens||c.state===void 0)y=!1;else{l=typeof c.state.index=="number"?c.state.index:c.state.routes.length-1;const v=c.state.routes[l],S=p[c.name].screens;S&&v.name in S?(c=v,p=S):y=!1}}if(f===void 0&&(f=g.join("/")),p[c.name]!==void 0?n+=f.split("/").map(v=>{const S=ye(v);if(v==="*")return c.name;if(v.startsWith(":")){const O=i[S];return O===void 0&&v.endsWith("?")?"":encodeURIComponent(O)}return encodeURIComponent(v)}).join("/"):n+=encodeURIComponent(c.name),d||(d=h.params),c.state)n+="/";else if(d){for(let S in d)d[S]==="undefined"&&delete d[S];const v=kt.stringify(d,{sort:!1});v&&(n+=`?${v}`)}o=c.state}return n=n.replace(/\/+/g,"/"),n=n.length>1?n.replace(/\/$/,""):n,n}const ye=e=>e.replace(/^:/,"").replace(/\?$/,""),be=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return[].concat(...t.map(n=>n.split("/"))).filter(Boolean).join("/")},Ht=(e,t)=>{var r;if(typeof e=="string")return{pattern:t?be(t,e):e};let n;if(e.exact&&e.path===void 0)throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");n=e.exact!==!0?be(t||"",e.path||""):e.path||"";const o=e.screens?Me(e.screens,n):void 0;return{pattern:(r=n)===null||r===void 0?void 0:r.split("/").filter(Boolean).join("/"),stringify:e.stringify,screens:o}},Me=(e,t)=>Ne(Object.entries(e).map(r=>{let[n,o]=r;const i=Ht(o,t);return[n,i]}));function qt(){const e=ot();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],o=t;for(;o;)n.push(o),o=o.next;return n},subscribe(n){let o=!0,i=r={callback:n,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const Se={notify(){},get:()=>[]};function Bt(e,t){let r,n=Se,o=0,i=!1;function u(y){f();const v=n.subscribe(y);let S=!1;return()=>{S||(S=!0,v(),d())}}function a(){n.notify()}function l(){g.onStateChange&&g.onStateChange()}function c(){return i}function f(){o++,r||(r=e.subscribe(l),n=qt())}function d(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=Se)}function h(){i||(i=!0,f())}function p(){i&&(i=!1,d())}const g={addNestedSub:u,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:c,trySubscribe:h,tryUnsubscribe:p,getListeners:()=>n};return g}const Xt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Jt=Xt?s.useLayoutEffect:s.useEffect;function Yt({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:i="once"}){const u=s.useMemo(()=>{const c=Bt(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:o,noopCheck:i}},[e,n,o,i]),a=s.useMemo(()=>e.getState(),[e]);Jt(()=>{const{subscription:c}=u;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[u,a]);const l=t||it;return s.createElement(l.Provider,{value:u},r)}const Fe={dark:!1,colors:{primary:"rgb(0, 122, 255)",background:"rgb(242, 242, 242)",card:"rgb(255, 255, 255)",text:"rgb(28, 28, 30)",border:"rgb(216, 216, 216)",notification:"rgb(255, 59, 48)"}},De=s.createContext(Fe);De.displayName="ThemeContext";function Zt(e){let{value:t,children:r}=e;return s.createElement(De.Provider,{value:t},r)}function Qt(e){let{enabled:t=!0,formatter:r=(n,o)=>(n==null?void 0:n.title)??(o==null?void 0:o.name)}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};s.useEffect(()=>{if(!t)return;const n=e.current;if(n){const o=r(n.getCurrentOptions(),n.getCurrentRoute());document.title=o}return n==null?void 0:n.addListener("options",o=>{const i=r(o.data.options,n==null?void 0:n.getCurrentRoute());document.title=i})})}var er=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var u=i[o];if(!e(t[u],r[u]))return!1}return!0}return t!==t&&r!==r};const tr=ke(er);function rr(){let e=0,t=[];const r=[],n=()=>{r.forEach(i=>{const u=i.cb;i.cb=()=>u(!0)})};return{get index(){var i;const u=(i=window.history.state)===null||i===void 0?void 0:i.id;if(u){const a=t.findIndex(l=>l.id===u);return a>-1?a:0}return 0},get(i){return t[i]},backIndex(i){let{path:u}=i;for(let a=e-1;a>=0;a--)if(t[a].path===u)return a;return-1},push(i){let{path:u,state:a}=i;n();const l=he();t=t.slice(0,e+1),t.push({path:u,state:a,id:l}),e=t.length-1,window.history.pushState({id:l},"",u)},replace(i){var u;let{path:a,state:l}=i;n();const c=((u=window.history.state)===null||u===void 0?void 0:u.id)??he();let f=a;!t.length||t.findIndex(d=>d.id===c)<0?(f=f+location.hash,t=[{path:f,state:l,id:c}],e=0):(t[e].path===a&&(f=f+location.hash),t[e]={path:a,state:l,id:c}),window.history.replaceState({id:c},"",f)},go(i){n();const u=e+i,a=t.length-1;if(i<0&&!t[u]?(i=-e,e=0):i>0&&u>a?(i=a-e,e=a):e=u,i!==0)return new Promise((l,c)=>{const f=p=>{if(clearTimeout(d),p){c(new Error("History was changed during navigation."));return}const{title:g}=window.document;window.document.title="",window.document.title=g,l()};r.push({ref:f,cb:f});const d=setTimeout(()=>{const p=r.findIndex(g=>g.ref===f);p>-1&&(r[p].cb(),r.splice(p,1))},100),h=()=>{var p;const g=(p=window.history.state)===null||p===void 0?void 0:p.id,y=t.findIndex(S=>S.id===g);e=Math.max(y,0);const v=r.pop();window.removeEventListener("popstate",h),v==null||v.cb()};window.addEventListener("popstate",h),window.history.go(i)})},listen(i){const u=()=>{r.length||i()};return window.addEventListener("popstate",u),()=>window.removeEventListener("popstate",u)}}}const nr=s.createContext(void 0),Ue=(e,t)=>{if(e===void 0||t===void 0||e.key!==t.key)return[void 0,void 0];const r=e.history?e.history.length:e.routes.length,n=t.history?t.history.length:t.routes.length,o=e.routes[e.index],i=t.routes[t.index],u=o.state,a=i.state;return r!==n||o.key!==i.key||u===void 0||a===void 0||u.key!==a.key?[e,t]:Ue(u,a)},or=e=>{let t=Promise.resolve();return()=>{t=t.then(e)}};function ir(e,t){let{independent:r,enabled:n=!0,config:o,getStateFromPath:i=Ie,getPathFromState:u=Te,getActionFromState:a=je}=t;s.useEffect(()=>{},[n,r]);const[l]=s.useState(rr),c=s.useRef(n),f=s.useRef(o),d=s.useRef(i),h=s.useRef(u),p=s.useRef(a);s.useEffect(()=>{c.current=n,f.current=o,d.current=i,h.current=u,p.current=a});const g=s.useContext(nr),y=s.useCallback(()=>{let x;if(c.current){const E=(g==null?void 0:g.location)??(typeof window<"u"?window.location:void 0),m=E?E.pathname+E.search:void 0;m&&(x=d.current(m,f.current))}const b={then(E){return Promise.resolve(E?E(x):x)},catch(){return b}};return b},[]),v=s.useRef(void 0),S=s.useRef(void 0),O=s.useRef(void 0);return s.useEffect(()=>(v.current=l.index,l.listen(()=>{const x=e.current;if(!x||!n)return;const{location:b}=window,E=b.pathname+b.search,m=l.index,j=v.current??0;v.current=m,O.current=E;const w=l.get(m);if((w==null?void 0:w.path)===E&&w!==null&&w!==void 0&&w.state){x.resetRoot(w.state);return}const R=d.current(E,f.current);if(R){const L=x.getRootState();if(R.routes.some(C=>!(L!=null&&L.routeNames.includes(C.name)))){console.warn("The navigation state parsed from the URL contains routes not present in the root navigator. This usually means that the linking configuration doesn't match the navigation structure. See https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.");return}if(m>j){const C=p.current(R,f.current);if(C!==void 0)try{x.dispatch(C)}catch(A){console.warn(`An error occurred when trying to handle the link '${E}': ${typeof A=="object"&&A!=null&&"message"in A?A.message:A}`)}else x.resetRoot(R)}else x.resetRoot(R)}else x.resetRoot(R)})),[n,l,e]),s.useEffect(()=>{var x;if(!n)return;const b=(m,j)=>{if(m!=null&&m.path){const w=d.current(m.path,f.current);if(w){const R=q(w);if(R&&R.name===m.name&&tr(R.params,m.params))return m.path}}return h.current(j,f.current)};if(e.current){const m=e.current.getRootState();if(m){const j=q(m),w=b(j,m);S.current===void 0&&(S.current=m),l.replace({path:w,state:m})}}const E=async()=>{const m=e.current;if(!m||!n)return;const j=S.current,w=m.getRootState();if(!w)return;const R=O.current,L=q(w),C=b(L,w);S.current=w,O.current=void 0;const[A,_]=Ue(j,w);if(A&&_&&C!==R){const T=(_.history?_.history.length:_.routes.length)-(A.history?A.history.length:A.routes.length);if(T>0)l.push({path:C,state:w});else if(T<0){const M=l.backIndex({path:C}),F=l.index;try{M!==-1&&M<F&&l.get(M-F)?await l.go(M-F):await l.go(T),l.replace({path:C,state:w})}catch{}}else l.replace({path:C,state:w})}else l.replace({path:C,state:w})};return(x=e.current)===null||x===void 0?void 0:x.addListener("state",or(E))},[n,l,e]),{getInitialState:y}}function sr(e){const[t]=s.useState(e);let r=[!1,void 0];t.then(u=>{r=[!0,u]});const[n,o]=s.useState(r),[i]=n;return s.useEffect(()=>{let u=!1;return i||(async()=>{let l;try{l=await t}finally{u||o([!0,l])}})(),()=>{u=!0}},[t,i]),n}function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ne.apply(this,arguments)}global.REACT_NAVIGATION_DEVTOOLS=new WeakMap;function ar(e,t){let{theme:r=Fe,linking:n,fallback:o=null,documentTitle:i,onReady:u,...a}=e;const l=n?n.enabled!==!1:!1;n!=null&&n.config&&Ce(n.config);const c=s.useRef(null);Qt(c,i);const{getInitialState:f}=ir(c,{independent:a.independent,enabled:l,prefixes:[],...n});s.useEffect(()=>{c.current&&REACT_NAVIGATION_DEVTOOLS.set(c.current,{get linking(){return{...n,enabled:l,prefixes:(n==null?void 0:n.prefixes)??[],getStateFromPath:(n==null?void 0:n.getStateFromPath)??Ie,getPathFromState:(n==null?void 0:n.getPathFromState)??Te,getActionFromState:(n==null?void 0:n.getActionFromState)??je}}})});const[d,h]=sr(f);s.useImperativeHandle(t,()=>c.current);const p=s.useMemo(()=>({options:n}),[n]),g=a.initialState!=null||!l||d,y=s.useRef(u);return s.useEffect(()=>{y.current=u}),s.useEffect(()=>{if(g){var v;(v=y.current)===null||v===void 0||v.call(y)}},[g]),g?s.createElement(ct.Provider,{value:p},s.createElement(Zt,{value:r},s.createElement(Wt,ne({},a,{initialState:a.initialState==null?h:a.initialState,ref:c})))):o}const ur=s.forwardRef(ar);var lr={iphone5:{name:"iPhone 5",styles:{height:"568px",width:"320px"},type:"mobile"},iphone6:{name:"iPhone 6",styles:{height:"667px",width:"375px"},type:"mobile"},iphone6p:{name:"iPhone 6 Plus",styles:{height:"736px",width:"414px"},type:"mobile"},iphone8p:{name:"iPhone 8 Plus",styles:{height:"736px",width:"414px"},type:"mobile"},iphonex:{name:"iPhone X",styles:{height:"812px",width:"375px"},type:"mobile"},iphonexr:{name:"iPhone XR",styles:{height:"896px",width:"414px"},type:"mobile"},iphonexsmax:{name:"iPhone XS Max",styles:{height:"896px",width:"414px"},type:"mobile"},iphonese2:{name:"iPhone SE (2nd generation)",styles:{height:"667px",width:"375px"},type:"mobile"},iphone12mini:{name:"iPhone 12 mini",styles:{height:"812px",width:"375px"},type:"mobile"},iphone12:{name:"iPhone 12",styles:{height:"844px",width:"390px"},type:"mobile"},iphone12promax:{name:"iPhone 12 Pro Max",styles:{height:"926px",width:"428px"},type:"mobile"},iphoneSE3:{name:"iPhone SE 3rd generation",styles:{height:"667px",width:"375px"},type:"mobile"},iphone13:{name:"iPhone 13",styles:{height:"844px",width:"390px"},type:"mobile"},iphone13pro:{name:"iPhone 13 Pro",styles:{height:"844px",width:"390px"},type:"mobile"},iphone13promax:{name:"iPhone 13 Pro Max",styles:{height:"926px",width:"428px"},type:"mobile"},iphone14:{name:"iPhone 14",styles:{height:"844px",width:"390px"},type:"mobile"},iphone14pro:{name:"iPhone 14 Pro",styles:{height:"852px",width:"393px"},type:"mobile"},iphone14promax:{name:"iPhone 14 Pro Max",styles:{height:"932px",width:"430px"},type:"mobile"},ipad:{name:"iPad",styles:{height:"1024px",width:"768px"},type:"tablet"},ipad10p:{name:"iPad Pro 10.5-in",styles:{height:"1112px",width:"834px"},type:"tablet"},ipad11p:{name:"iPad Pro 11-in",styles:{height:"1194px",width:"834px"},type:"tablet"},ipad12p:{name:"iPad Pro 12.9-in",styles:{height:"1366px",width:"1024px"},type:"tablet"},galaxys5:{name:"Galaxy S5",styles:{height:"640px",width:"360px"},type:"mobile"},galaxys9:{name:"Galaxy S9",styles:{height:"740px",width:"360px"},type:"mobile"},nexus5x:{name:"Nexus 5X",styles:{height:"660px",width:"412px"},type:"mobile"},nexus6p:{name:"Nexus 6P",styles:{height:"732px",width:"412px"},type:"mobile"},pixel:{name:"Pixel",styles:{height:"960px",width:"540px"},type:"mobile"},pixelxl:{name:"Pixel XL",styles:{height:"1280px",width:"720px"},type:"mobile"}},cr=lr,se="persist:",$e="persist/FLUSH",Ke="persist/REHYDRATE",Ge="persist/PAUSE",Ve="persist/PERSIST",ze="persist/PURGE",dr="persist/REGISTER",We=-1;function B(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?B=function(r){return typeof r}:B=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},B(e)}function xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function fr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xe(r,!0).forEach(function(n){pr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xe(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mr(e,t,r,n){n.debug;var o=fr({},r);return e&&B(e)==="object"&&Object.keys(e).forEach(function(i){i!=="_persist"&&t[i]===r[i]&&(o[i]=e[i])}),o}function hr(e){var t=e.blacklist||null,r=e.whitelist||null,n=e.transforms||[],o=e.throttle||0,i="".concat(e.keyPrefix!==void 0?e.keyPrefix:se).concat(e.key),u=e.storage,a;e.serialize===!1?a=function(E){return E}:typeof e.serialize=="function"?a=e.serialize:a=vr;var l=e.writeFailHandler||null,c={},f={},d=[],h=null,p=null,g=function(E){Object.keys(E).forEach(function(m){S(m)&&c[m]!==E[m]&&d.indexOf(m)===-1&&d.push(m)}),Object.keys(c).forEach(function(m){E[m]===void 0&&S(m)&&d.indexOf(m)===-1&&c[m]!==void 0&&d.push(m)}),h===null&&(h=setInterval(y,o)),c=E};function y(){if(d.length===0){h&&clearInterval(h),h=null;return}var b=d.shift(),E=n.reduce(function(m,j){return j.in(m,b,c)},c[b]);if(E!==void 0)try{f[b]=a(E)}catch(m){console.error("redux-persist/createPersistoid: error serializing state",m)}else delete f[b];d.length===0&&v()}function v(){Object.keys(f).forEach(function(b){c[b]===void 0&&delete f[b]}),p=u.setItem(i,a(f)).catch(O)}function S(b){return!(r&&r.indexOf(b)===-1&&b!=="_persist"||t&&t.indexOf(b)!==-1)}function O(b){l&&l(b)}var x=function(){for(;d.length!==0;)y();return p||Promise.resolve()};return{update:g,flush:x}}function vr(e){return JSON.stringify(e)}function gr(e){var t=e.transforms||[],r="".concat(e.keyPrefix!==void 0?e.keyPrefix:se).concat(e.key),n=e.storage;e.debug;var o;return e.deserialize===!1?o=function(u){return u}:typeof e.deserialize=="function"?o=e.deserialize:o=yr,n.getItem(r).then(function(i){if(i)try{var u={},a=o(i);return Object.keys(a).forEach(function(l){u[l]=t.reduceRight(function(c,f){return f.out(c,l,a)},o(a[l]))}),u}catch(l){throw l}else return})}function yr(e){return JSON.parse(e)}function br(e){var t=e.storage,r="".concat(e.keyPrefix!==void 0?e.keyPrefix:se).concat(e.key);return t.removeItem(r,Sr)}function Sr(e){}function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?we(r,!0).forEach(function(n){xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wr(e,t){if(e==null)return{};var r=Pr(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Pr(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Or=5e3;function Er(e,t){var r=e.version!==void 0?e.version:We;e.debug;var n=e.stateReconciler===void 0?mr:e.stateReconciler,o=e.getStoredState||gr,i=e.timeout!==void 0?e.timeout:Or,u=null,a=!1,l=!0,c=function(d){return d._persist.rehydrated&&u&&!l&&u.update(d),d};return function(f,d){var h=f||{},p=h._persist,g=wr(h,["_persist"]),y=g;if(d.type===Ve){var v=!1,S=function(w,R){v||(d.rehydrate(e.key,w,R),v=!0)};if(i&&setTimeout(function(){!v&&S(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),l=!1,u||(u=hr(e)),p)return N({},t(y,d),{_persist:p});if(typeof d.rehydrate!="function"||typeof d.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return d.register(e.key),o(e).then(function(j){var w=e.migrate||function(R,L){return Promise.resolve(R)};w(j,r).then(function(R){S(R)},function(R){S(void 0,R)})},function(j){S(void 0,j)}),N({},t(y,d),{_persist:{version:r,rehydrated:!1}})}else{if(d.type===ze)return a=!0,d.result(br(e)),N({},t(y,d),{_persist:p});if(d.type===$e)return d.result(u&&u.flush()),N({},t(y,d),{_persist:p});if(d.type===Ge)l=!0;else if(d.type===Ke){if(a)return N({},y,{_persist:N({},p,{rehydrated:!0})});if(d.key===e.key){var O=t(y,d),x=d.payload,b=n!==!1&&x!==void 0?n(x,f,O,e):O,E=N({},b,{_persist:N({},p,{rehydrated:!0})});return c(E)}}}if(!p)return t(f,d);var m=t(y,d);return m===y?f:c(N({},m,{_persist:p}))}}function Rr(e,t){return function(r,n){if(!r)return Promise.resolve(void 0);var o=r._persist&&r._persist.version!==void 0?r._persist.version:We;if(o===n||o>n)return Promise.resolve(r);var i=Object.keys(e).map(function(a){return parseInt(a)}).filter(function(a){return n>=a&&a>o}).sort(function(a,l){return a-l});try{var u=i.reduce(function(a,l){return e[l](a)},r);return Promise.resolve(u)}catch(a){return Promise.reject(a)}}}const Cr=(e,t)=>e===dt.unregisterDevice&&(t==null?void 0:t.status)===404&&(t==null?void 0:t.data)==="No record found",Ir=[0,"0"],jr=e=>e!==void 0&&!Ir.includes(e),kr=e=>{var a,l,c,f,d,h,p,g;const t=(l=(a=e.meta)==null?void 0:a.arg)==null?void 0:l.endpointName,r=(c=e.payload)==null?void 0:c.originalStatus,n=(f=e.payload)==null?void 0:f.status;if(!jr(r??n)||Cr(t,e.payload))return;let o="Rejected RTK action";t&&(o=`${r??n??"Error"} for ${t}`);const i=`All request retries failed: ${o}`,u=(p=(h=(d=e.meta)==null?void 0:d.baseQueryMeta)==null?void 0:h.request)==null?void 0:p.url;u&&!u.startsWith("http://localhost")&&Pt.trackException({exception:new Error(i),properties:{endpoint:t,originalStatus:r,status:n,error:(g=e.payload)==null?void 0:g.error,url:u}})},Ar=()=>e=>t=>(st(t)&&kr(t),e(t));var Lr=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype};const X=Lr,{hasOwnProperty:He}=Object.prototype,{propertyIsEnumerable:Nr}=Object,K=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0}),_r=Et,Pe={concatArrays:!1,ignoreUndefined:!1},Y=e=>{const t=[];for(const r in e)He.call(e,r)&&t.push(r);if(Object.getOwnPropertySymbols){const r=Object.getOwnPropertySymbols(e);for(const n of r)Nr.call(e,n)&&t.push(n)}return t};function G(e){return Array.isArray(e)?Tr(e):X(e)?Mr(e):e}function Tr(e){const t=e.slice(0,0);return Y(e).forEach(r=>{K(t,r,G(e[r]))}),t}function Mr(e){const t=Object.getPrototypeOf(e)===null?Object.create(null):{};return Y(e).forEach(r=>{K(t,r,G(e[r]))}),t}const qe=(e,t,r,n)=>(r.forEach(o=>{typeof t[o]>"u"&&n.ignoreUndefined||(o in e&&e[o]!==Object.getPrototypeOf(e)?K(e,o,oe(e[o],t[o],n)):K(e,o,G(t[o])))}),e),Fr=(e,t,r)=>{let n=e.slice(0,0),o=0;return[e,t].forEach(i=>{const u=[];for(let a=0;a<i.length;a++)He.call(i,a)&&(u.push(String(a)),i===e?K(n,o++,i[a]):K(n,o++,G(i[a])));n=qe(n,i,Y(i).filter(a=>!u.includes(a)),r)}),n};function oe(e,t,r){return r.concatArrays&&Array.isArray(e)&&Array.isArray(t)?Fr(e,t,r):!X(t)||!X(e)?G(t):qe(e,t,Y(t),r)}var Dr=function(...e){const t=oe(G(Pe),this!==_r&&this||{},Pe);let r={_:{}};for(const n of e)if(n!==void 0){if(!X(n))throw new TypeError("`"+n+"` is not an Option Object");r=oe(r,{_:n},t)}return r._};const Ur=ke(Dr),$r=Ur.bind({concatArrays:!0,ignoreUndefined:!0});function Kr(e,t){const r=window.localStorage.getItem(e);if(r){const n=JSON.parse(r),o=JSON.parse(t),i=JSON.stringify($r(n,o));window.localStorage.setItem(e,i)}else window.localStorage.setItem(e,t)}function U(e,t){return new Promise((r,n)=>{try{const o=e();t==null||t(null,o),r(o)}catch(o){t==null||t(o),n(o)}})}function H(e,t,r){return Promise.all(e).then(n=>{const o=(r==null?void 0:r(n))??null;return t==null||t(null,o),Promise.resolve(o)},n=>(t==null||t(n),Promise.reject(n)))}const z={getItem:(e,t)=>U(()=>window.localStorage.getItem(e),t),setItem:(e,t,r)=>U(()=>window.localStorage.setItem(e,t),r),removeItem:(e,t)=>U(()=>window.localStorage.removeItem(e),t),mergeItem:(e,t,r)=>U(()=>Kr(e,t),r),clear:e=>U(()=>window.localStorage.clear(),e),getAllKeys:e=>U(()=>{const t=window.localStorage.length,r=[];for(let n=0;n<t;n+=1){const o=window.localStorage.key(n)||"";r.push(o)}return r},e),flushGetRequests:()=>{},multiGet:(e,t)=>{const r=e.map(o=>z.getItem(o));return H(r,t,o=>o.map((i,u)=>[e[u],i]))},multiSet:(e,t)=>{const r=e.map(n=>z.setItem(n[0],n[1]));return H(r,t)},multiRemove:(e,t)=>{const r=e.map(n=>z.removeItem(n));return H(r,t)},multiMerge:(e,t)=>{const r=e.map(n=>z.mergeItem(n[0],n[1]));return H(r,t)}},Oe=e=>e.reduce((t,{reduxConfigs:r})=>r?[...t,...r]:t,[]),Gr=e=>{const t={};return e.forEach(r=>{const{key:n,migrations:o,slice:i,persistWhitelist:u,persistVersion:a}=r;if(a===void 0){t[n]=i.reducer;return}t[n]=Er({key:n,storage:z,migrate:o?Rr(o,{debug:Rt===Ct.local}):void 0,version:a,whitelist:u},i.reducer)}),t},Ee={},Be=J({name:I.alert,initialState:Ee,reducers:{resetAlert:()=>Ee,setAlert:(e,{payload:t})=>(It||fe.configureNext(fe.Presets.easeInEaseOut),t)}});Be.actions;const Vr={isConnected:null,isInternetReachable:null,isNoInternetFullScreenErrorVisible:!1},Xe=J({name:I.internetConnection,initialState:Vr,reducers:{setInternetState:(e,{payload:{isConnected:t,isInternetReachable:r}})=>{e.isConnected=t,e.isInternetReachable=r},setIsNoInternetFullScreenErrorVisible:(e,{payload:t})=>{e.isNoInternetFullScreenErrorVisible=t}}});Xe.actions;const Re={disabledModules:[],authorizedModules:[],cachedServerModules:void 0},Je=J({name:I.modules,initialState:Re,reducers:{resetModules:()=>Re,toggleModule:(e,{payload:t})=>{const{disabledModules:r}=e;if(r!=null&&r.includes(t))return{...e,disabledModules:r.filter(n=>n!==t)};e.disabledModules=[...e.disabledModules,t]},addAuthorizedModule:(e,{payload:t})=>{const{authorizedModules:r}=e;r!=null&&r.includes(t)||(e.authorizedModules=[...e.authorizedModules,t])},removeAuthorizedModule:(e,{payload:t})=>{const{authorizedModules:r}=e;r!=null&&r.includes(t)&&(e.authorizedModules=r.filter(n=>n!==t))},setCachedServerModules:(e,{payload:t})=>{e.cachedServerModules=t}}});Je.actions;const Ye=J({name:I.updateApp,initialState:{},reducers:{setLastSeenTimestamp:(e,{payload:t})=>({...e,lastSeenTimestamp:t})}});Ye.actions.setLastSeenTimestamp(Date.now());const zr=[{key:I.accessCode,slice:ft},{key:I.alert,slice:Be},{key:I.bottomSheet,slice:pt},{key:I.chat,slice:mt},{key:I.environment,slice:ht,persistVersion:0},{key:I.internetConnection,slice:Xe},{key:I.modules,slice:Je,persistVersion:0},{key:I.overlay,slice:vt},{key:I.permissions,slice:gt},{key:I.productTour,slice:yt,persistVersion:0},{key:I.secureStorage,slice:bt,persistVersion:0},{key:I.theme,slice:at},{key:I.screen,slice:St},{key:I.updateApp,slice:Ye,persistVersion:0}],Wr=Gr([...zr,...Oe(xt),...Oe(wt)]),Hr=ut({enhancers:e=>e,reducer:lt({[te.reducerPath]:te.reducer,...Wr}),middleware:e=>e({serializableCheck:{ignoredActions:[$e,Ke,Ge,Ve,ze,dr],warnAfter:256},immutableCheck:{warnAfter:256}}).concat([te.middleware,Ar])}),ie=({children:e})=>$.jsx(Yt,{store:Hr,children:e});try{ie.displayName="StoreProvider",ie.__docgenInfo={description:"",displayName:"StoreProvider",props:{}}}catch{}const qr=e=>$.jsx(Ot,{children:$.jsx(ur,{children:$.jsx(ie,{children:$.jsx(nt,{children:$.jsx(e,{})})})})}),fo={decorators:[qr],parameters:{backgrounds:{values:[{name:"custom-grey0",value:D.custom.grey0},{name:"primary-blue",value:D.primary.blue},{name:"primary-red",value:D.primary.red},{name:"primary-black",value:D.primary.black},{name:"secondary-yellow",value:D.secondary.yellow},{name:"secondary-purple",value:D.secondary.purple}]},controls:{matchers:{color:/(background|color)$/i,date:/Date$/}},viewport:{viewports:cr,defaultViewport:"iphonex"}},tags:["autodocs"]};export{fo as default}; diff --git a/assets/preview-DsjGcuSR.js b/assets/preview-D1ht1gPi.js similarity index 79% rename from assets/preview-DsjGcuSR.js rename to assets/preview-D1ht1gPi.js index 101471d0..6d8cbea6 100644 --- a/assets/preview-DsjGcuSR.js +++ b/assets/preview-D1ht1gPi.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-VG-WbEUv.js","./iframe-4y4VsLB1.js","./index-mfbfsM12.js","./_commonjsHelpers-BosuxZz1.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./jsx-runtime-Bxcv0yjW.js","./index-DFkxGuuM.js","./index-kifaGmES.js","./index-DrFu-skq.js","./react-18-ClY32pUF.js","./client-BGlHIwA3.js"])))=>i.map(i=>d[i]); -import{_ as a}from"./iframe-4y4VsLB1.js";import"../sb-preview/runtime.js";var i=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-CFRXHY34-VG-WbEUv.js").then(r=>r.ak),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>i[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-Bq5B5d5_.js","./iframe-Cclg9cWs.js","./index-mfbfsM12.js","./_commonjsHelpers-BosuxZz1.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./jsx-runtime-Bxcv0yjW.js","./index-DFkxGuuM.js","./index-kifaGmES.js","./index-DrFu-skq.js","./react-18-ClY32pUF.js","./client-BGlHIwA3.js"])))=>i.map(i=>d[i]); +import{_ as a}from"./iframe-Cclg9cWs.js";import"../sb-preview/runtime.js";var i=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-CFRXHY34-Bq5B5d5_.js").then(r=>r.ak),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>i[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters}; diff --git a/assets/preview-BAAlSrTu.js b/assets/preview-D56AvWTj.js similarity index 93% rename from assets/preview-BAAlSrTu.js rename to assets/preview-D56AvWTj.js index 57979e5a..73a97c0d 100644 --- a/assets/preview-BAAlSrTu.js +++ b/assets/preview-D56AvWTj.js @@ -1,2 +1,2 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./axe-Ct0p1Ykl.js","./_commonjsHelpers-BosuxZz1.js"])))=>i.map(i=>d[i]); -import{_ as S}from"./iframe-4y4VsLB1.js";import"../sb-preview/runtime.js";const{addons:f}=__STORYBOOK_MODULE_PREVIEW_API__,{global:U}=__STORYBOOK_MODULE_GLOBAL__;var o="storybook/a11y",y=`${o}/result`,L=`${o}/request`,d=`${o}/running`,A=`${o}/error`,T=`${o}/manual`,r={RESULT:y,REQUEST:L,RUNNING:d,ERROR:A,MANUAL:T},{document:g}=U,a=f.getChannel(),l=!1,_,R={config:{},options:{}},v=async(n,e)=>{e!=null&&e.manual||await i(n,e??R)},i=async(n,e=R)=>{_=n;try{if(!l){l=!0,a.emit(r.RUNNING);let{default:t}=await S(()=>import("./axe-Ct0p1Ykl.js").then(N=>N.a),__vite__mapDeps([0,1]),import.meta.url),{element:m="#storybook-root",config:s,options:O={}}=e,E=g.querySelector(m);if(!E)return;t.reset(),s&&t.configure(s);let c=await t.run(E,O),u=JSON.parse(JSON.stringify(c));_===n?a.emit(r.RESULT,u):(l=!1,i(_))}}catch(t){a.emit(r.ERROR,t)}finally{l=!1}};a.on(r.REQUEST,v);a.on(r.MANUAL,i); +import{_ as S}from"./iframe-Cclg9cWs.js";import"../sb-preview/runtime.js";const{addons:f}=__STORYBOOK_MODULE_PREVIEW_API__,{global:U}=__STORYBOOK_MODULE_GLOBAL__;var o="storybook/a11y",y=`${o}/result`,L=`${o}/request`,d=`${o}/running`,A=`${o}/error`,T=`${o}/manual`,r={RESULT:y,REQUEST:L,RUNNING:d,ERROR:A,MANUAL:T},{document:g}=U,a=f.getChannel(),l=!1,_,R={config:{},options:{}},v=async(n,e)=>{e!=null&&e.manual||await i(n,e??R)},i=async(n,e=R)=>{_=n;try{if(!l){l=!0,a.emit(r.RUNNING);let{default:t}=await S(()=>import("./axe-Ct0p1Ykl.js").then(N=>N.a),__vite__mapDeps([0,1]),import.meta.url),{element:m="#storybook-root",config:s,options:O={}}=e,E=g.querySelector(m);if(!E)return;t.reset(),s&&t.configure(s);let c=await t.run(E,O),u=JSON.parse(JSON.stringify(c));_===n?a.emit(r.RESULT,u):(l=!1,i(_))}}catch(t){a.emit(r.ERROR,t)}finally{l=!1}};a.on(r.REQUEST,v);a.on(r.MANUAL,i); diff --git a/assets/useOpenUrl-BQFKyC8S.js b/assets/useOpenUrl-DnQVF1wQ.js similarity index 99% rename from assets/useOpenUrl-BQFKyC8S.js rename to assets/useOpenUrl-DnQVF1wQ.js index b4e6e81a..be0ead29 100644 --- a/assets/useOpenUrl-BQFKyC8S.js +++ b/assets/useOpenUrl-DnQVF1wQ.js @@ -1,2 +1,2 @@ -import{a as ft}from"./_commonjsHelpers-BosuxZz1.js";import{e as re,c as A,s as f,_ as T,a as U,b as O,n as St,A as pt,p as _t,u as gt}from"./index-kbHxBZ_W.js";import{f as Pt}from"./index-DEfxrPnc.js";import{r as me,F as yt}from"./index-DFkxGuuM.js";import{h as Tt,c as bt}from"./client-BGlHIwA3.js";import{i as L,P as Be,D as Ot,N as Nt}from"./index-DSI0shHu.js";import{A as Ct}from"./index-CDv7s-w8.js";import{A as We,L as $e}from"./index-Ce74jbsy.js";import{_ as b}from"./extends-CF3RwP-h.js";import{r as i,R as M}from"./index-mfbfsM12.js";import{V as m}from"./index-BP1Ij_Cs.js";import{A as Dt}from"./index-CkqLweLe.js";import{d as At,I as fe,A as It,E as Lt,F as Mt,R as wt,a as kt,S as Vt,V as xt}from"./Animated-CFNSbqHF.js";import{I as qe,P as Gt}from"./index-2SHDvLR_.js";import{U as G,g as Se,e as Ht,p as Ut}from"./TextAncestorContext-Dg3XKfar.js";import{c as Xe,u as Yt,a as Ft,m as jt,b as Ke,g as zt}from"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import{T as Ze}from"./index-CAyeAlm6.js";import{M as Bt}from"./index-CIcog7m4.js";import{S as Wt}from"./index-k6NSpe5t.js";import{T as $t}from"./index-DZxzYa9i.js";import{M as qt}from"./index-BW2XZOZc.js";import{R as Xt,N as Kt}from"./NativeEventEmitter-MQ3wzVGe.js";import{u as Zt}from"./index-BXDkY5MO.js";import{j as Jt}from"./jsx-runtime-Bxcv0yjW.js";import{P as Qt}from"./Phrase-D4XuA9hP.js";import{u as ea}from"./useOpenMailUrl-Blrf_PL9.js";import{u as ta}from"./useOpenPhoneUrl-TB9t0oDt.js";import{u as aa,E as na}from"./useTrackException-Cm6KdDpO.js";const oe=me.unmountComponentAtNode;function ra(e,t){return re(t),Tt(t,e)}function oa(e,t){re(t);var a=bt(t);return a.render(e),a}function ia(e,t,a){return re(t),me.hydrate(e,t,a),{unmount:function(){return oe(t)}}}function Je(e,t,a){return re(t),me.render(e,t,a),{unmount:function(){return oe(t)}}}function sa(){return A&&window.matchMedia!=null?window.matchMedia("(prefers-color-scheme: dark)"):null}var k=sa(),$=new WeakMap,Ee={getColorScheme(){return k&&k.matches?"dark":"light"},addChangeListener(e){var t=$.get(e);t||(t=r=>{var n=r.matches;e({colorScheme:n?"dark":"light"})},$.set(e,t)),k&&k.addListener(t);function a(){var r=$.get(e);k&&r&&k.removeListener(r),$.delete(e)}return{remove:a}}},la=i.createContext(null),pe=i.forwardRef((e,t)=>{var a=e.children,r=e.WrapperComponent,n=i.createElement(m,{children:a,key:1,style:Ce.appContainer});return r&&(n=i.createElement(r,null,n)),i.createElement(la.Provider,{value:e.rootTag},i.createElement(m,{ref:t,style:Ce.appContainer},n))});pe.displayName="AppContainer";var Ce=f.create({appContainer:{flex:1,pointerEvents:"box-none"}});function ua(e,t,a,r){var n=r.hydrate,o=r.initialProps,s=r.mode,u=r.rootTag,c=n?s==="concurrent"?ra:ia:s==="concurrent"?oa:Je;return L(u,"Expect to have a valid rootTag, instead got ",u),c(M.createElement(pe,{WrapperComponent:t,ref:a,rootTag:u},M.createElement(e,o)),u)}function ca(e,t,a){var r=M.createElement(pe,{WrapperComponent:a,rootTag:{}},M.createElement(e,t)),n=o=>{var s=f.getSheet();return M.createElement("style",b({},o,{dangerouslySetInnerHTML:{__html:s.textContent},id:s.id}))};return{element:r,getStyleElement:n}}var De={},D={},le=e=>e(),F;class ae{static getAppKeys(){return Object.keys(D)}static getApplication(t,a){return L(D[t]&&D[t].getApplication,"Application "+t+" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),D[t].getApplication(a)}static registerComponent(t,a){return D[t]={getApplication:r=>ca(le(a),r?r.initialProps:De,F&&F(r)),run:r=>ua(le(a),F&&F(r),r.callback,{hydrate:r.hydrate||!1,initialProps:r.initialProps||De,mode:r.mode||"concurrent",rootTag:r.rootTag})},t}static registerConfig(t){t.forEach(a=>{var r=a.appKey,n=a.component,o=a.run;o?ae.registerRunnable(r,o):(L(n,"No component provider passed in"),ae.registerComponent(r,n))})}static registerRunnable(t,a){return D[t]={run:a},t}static runApplication(t,a){return L(D[t]&&D[t].run,'Application "'+t+'" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.'),D[t].run(a)}static setComponentProviderInstrumentationHook(t){le=t}static setWrapperComponentProvider(t){F=t}static unmountApplicationComponentAtRootTag(t){oe(t)}}function ue(){}var da={exitApp:ue,addEventListener(){return console.error("BackHandler is not supported on web and should not be used."),{remove:ue}},removeEventListener:ue},ce;class Ea{static isAvailable(){return ce===void 0&&(ce=typeof document.queryCommandSupported=="function"&&document.queryCommandSupported("copy")),ce}static getString(){return Promise.resolve("")}static setString(t){var a=!1,r=document.body;if(r){var n=document.createElement("span");n.textContent=t,n.style.opacity="0",n.style.position="absolute",n.style.whiteSpace="pre-wrap",n.style.userSelect="auto",r.appendChild(n);var o=window.getSelection();o.removeAllRanges();var s=document.createRange();s.selectNodeContents(n),o.addRange(s);try{document.execCommand("copy"),a=!0}catch{}o.removeAllRanges(),r.removeChild(n)}return a}}var ha={allowRTL(){},forceRTL(){},getConstants(){return{isRTL:!1}}},Ra={isVisible(){return!1},addListener(){return{remove:()=>{}}},dismiss(){At()},removeAllListeners(){},removeListener(){}};function q(e,t){Be.isTesting||G.configureNextLayoutAnimation(e,t??function(){},function(){})}function he(e,t,a){return{duration:e,create:{type:t,property:a},update:{type:t},delete:{type:t,property:a}}}var X={easeInEaseOut:he(300,"easeInEaseOut","opacity"),linear:he(500,"linear","opacity"),spring:{duration:700,create:{type:"linear",property:"opacity"},update:{type:"spring",springDamping:.4},delete:{type:"linear",property:"opacity"}}},va={configureNext:q,create:he,Types:Object.freeze({spring:"spring",linear:"linear",easeInEaseOut:"easeInEaseOut",easeIn:"easeIn",easeOut:"easeOut",keyboard:"keyboard"}),Properties:Object.freeze({opacity:"opacity",scaleX:"scaleX",scaleY:"scaleY",scaleXY:"scaleXY"}),checkConfig(){console.error("LayoutAnimation.checkConfig(...) has been disabled.")},Presets:X,easeInEaseOut:q.bind(null,X.easeInEaseOut),linear:q.bind(null,X.linear),spring:q.bind(null,X.spring)},g={centroidDimension:function(t,a,r,n){var o=t.touchBank,s=0,u=0,c=t.numberActiveTouches===1?t.touchBank[t.indexOfSingleActiveTouch]:null;if(c!==null)c.touchActive&&c.currentTimeStamp>a&&(s+=n&&r?c.currentPageX:n&&!r?c.currentPageY:!n&&r?c.previousPageX:c.previousPageY,u=1);else for(var d=0;d<o.length;d++){var E=o[d];if(E!=null&&E.touchActive&&E.currentTimeStamp>=a){var h=void 0;n&&r?h=E.currentPageX:n&&!r?h=E.currentPageY:!n&&r?h=E.previousPageX:h=E.previousPageY,s+=h,u++}}return u>0?s/u:g.noCentroid},currentCentroidXOfTouchesChangedAfter:function(t,a){return g.centroidDimension(t,a,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(t,a){return g.centroidDimension(t,a,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(t,a){return g.centroidDimension(t,a,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(t,a){return g.centroidDimension(t,a,!1,!1)},currentCentroidX:function(t){return g.centroidDimension(t,0,!0,!0)},currentCentroidY:function(t){return g.centroidDimension(t,0,!1,!0)},noCentroid:-1},Ae=g.currentCentroidXOfTouchesChangedAfter,Ie=g.currentCentroidYOfTouchesChangedAfter,ma=g.previousCentroidXOfTouchesChangedAfter,fa=g.previousCentroidYOfTouchesChangedAfter,Sa=g.currentCentroidX,pa=g.currentCentroidY,V={_initializeGestureState(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=Ae(t,e._accountsForMovesUpTo),e.moveY=Ie(t,e._accountsForMovesUpTo);var a=e._accountsForMovesUpTo,r=ma(t,a),n=Ae(t,a),o=fa(t,a),s=Ie(t,a),u=e.dx+(n-r),c=e.dy+(s-o),d=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(u-e.dx)/d,e.vy=(c-e.dy)/d,e.dx=u,e.dy=c,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create(e){var t={handle:null,shouldCancelClick:!1,timeout:null},a={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0},r={onStartShouldSetResponder(n){return e.onStartShouldSetPanResponder==null?!1:e.onStartShouldSetPanResponder(n,a)},onMoveShouldSetResponder(n){return e.onMoveShouldSetPanResponder==null?!1:e.onMoveShouldSetPanResponder(n,a)},onStartShouldSetResponderCapture(n){return n.nativeEvent.touches.length===1&&V._initializeGestureState(a),a.numberActiveTouches=n.touchHistory.numberActiveTouches,e.onStartShouldSetPanResponderCapture!=null?e.onStartShouldSetPanResponderCapture(n,a):!1},onMoveShouldSetResponderCapture(n){var o=n.touchHistory;return a._accountsForMovesUpTo===o.mostRecentTimeStamp?!1:(V._updateGestureStateOnMove(a,o),e.onMoveShouldSetPanResponderCapture?e.onMoveShouldSetPanResponderCapture(n,a):!1)},onResponderGrant(n){return t.handle||(t.handle=fe.createInteractionHandle()),t.timeout&&_a(t),t.shouldCancelClick=!0,a.x0=Sa(n.touchHistory),a.y0=pa(n.touchHistory),a.dx=0,a.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(n,a),e.onShouldBlockNativeResponder==null?!0:e.onShouldBlockNativeResponder(n,a)},onResponderReject(n){K(t,e.onPanResponderReject,n,a)},onResponderRelease(n){K(t,e.onPanResponderRelease,n,a),Le(t),V._initializeGestureState(a)},onResponderStart(n){var o=n.touchHistory;a.numberActiveTouches=o.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(n,a)},onResponderMove(n){var o=n.touchHistory;a._accountsForMovesUpTo!==o.mostRecentTimeStamp&&(V._updateGestureStateOnMove(a,o),e.onPanResponderMove&&e.onPanResponderMove(n,a))},onResponderEnd(n){var o=n.touchHistory;a.numberActiveTouches=o.numberActiveTouches,K(t,e.onPanResponderEnd,n,a)},onResponderTerminate(n){K(t,e.onPanResponderTerminate,n,a),Le(t),V._initializeGestureState(a)},onResponderTerminationRequest(n){return e.onPanResponderTerminationRequest==null?!0:e.onPanResponderTerminationRequest(n,a)},onClickCapture:n=>{t.shouldCancelClick===!0&&(n.stopPropagation(),n.preventDefault())}};return{panHandlers:r,getInteractionHandle(){return t.handle}}}};function K(e,t,a,r){e.handle&&(fe.clearInteractionHandle(e.handle),e.handle=null),t&&t(a,r)}function _a(e){clearTimeout(e.timeout)}function Le(e){e.timeout=setTimeout(()=>{e.shouldCancelClick=!1},250)}class ga{static share(t,a){return a===void 0&&(a={}),L(typeof t=="object"&&t!==null,"Content to share must be a valid object"),L(typeof t.url=="string"||typeof t.message=="string","At least one of URL and message is required"),L(typeof a=="object"&&a!==null,"Options must be a valid object"),L(!t.title||typeof t.title=="string","Invalid title: title should be a string."),window.navigator.share!==void 0?window.navigator.share({title:t.title,text:t.message,url:t.url}):Promise.reject(new Error("Share is not supported in this browser"))}static get sharedAction(){return"sharedAction"}static get dismissedAction(){return"dismissedAction"}}var Me=e=>{"vibrate"in window.navigator&&window.navigator.vibrate(e)},Pa={cancel(){Me(0)},vibrate(e){e===void 0&&(e=400),Me(e)}},ya=["animating","color","hidesWhenStopped","size","style"],we=e=>i.createElement("circle",{cx:"16",cy:"16",fill:"none",r:"14",strokeWidth:"4",style:e}),Qe=i.forwardRef((e,t)=>{var a=e.animating,r=a===void 0?!0:a,n=e.color,o=n===void 0?"#1976D2":n,s=e.hidesWhenStopped,u=s===void 0?!0:s,c=e.size,d=c===void 0?"small":c,E=e.style,h=T(e,ya),R=i.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},we({stroke:o,opacity:.2}),we({stroke:o,strokeDasharray:80,strokeDashoffset:60}));return i.createElement(m,b({},h,{"aria-valuemax":1,"aria-valuemin":0,ref:t,role:"progressbar",style:[Z.container,E]}),i.createElement(m,{children:R,style:[typeof d=="number"?{height:d,width:d}:Ta[d],Z.animation,!r&&Z.animationPause,!r&&u&&Z.hidesWhenStopped]}))});Qe.displayName="ActivityIndicator";var Z=f.create({container:{alignItems:"center",justifyContent:"center"},hidesWhenStopped:{visibility:"hidden"},animation:{animationDuration:"0.75s",animationKeyframes:[{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"},animationPause:{animationPlayState:"paused"}}),Ta=f.create({small:{width:20,height:20},large:{width:36,height:36}}),ba=["activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style"];function Oa(e,t){var a=e.activeOpacity,r=e.delayPressIn,n=e.delayPressOut,o=e.delayLongPress,s=e.disabled,u=e.focusable,c=e.onLongPress,d=e.onPress,E=e.onPressIn,h=e.onPressOut,R=e.rejectResponderTermination,v=e.style,_=T(e,ba),S=i.useRef(null),N=Se(t,S),C=i.useState("0s"),se=C[0],Pe=C[1],ye=i.useState(null),Te=ye[0],be=ye[1],B=i.useCallback((P,W)=>{be(P),Pe(W?W/1e3+"s":"0s")},[be,Pe]),Oe=i.useCallback(P=>{B(a??.2,P)},[a,B]),Ne=i.useCallback(P=>{B(null,P)},[B]),vt=i.useMemo(()=>({cancelable:!R,disabled:s,delayLongPress:o,delayPressStart:r,delayPressEnd:n,onLongPress:c,onPress:d,onPressStart(P){var W=P.dispatchConfig!=null?P.dispatchConfig.registrationName==="onResponderGrant":P.type==="keydown";Oe(W?0:150),E!=null&&E(P)},onPressEnd(P){Ne(250),h!=null&&h(P)}}),[o,r,n,s,c,d,E,h,R,Oe,Ne]),mt=Xe(S,vt);return i.createElement(m,b({},_,mt,{accessibilityDisabled:s,focusable:!s&&u!==!1,pointerEvents:s?"box-none":void 0,ref:N,style:[ke.root,!s&&ke.actionable,v,Te!=null&&{opacity:Te},{transitionDuration:se}]}))}var ke=f.create({root:{transitionProperty:"opacity",transitionDuration:"0.15s",userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),_e=i.memo(i.forwardRef(Oa));_e.displayName="TouchableOpacity";var et=i.forwardRef((e,t)=>{var a=e.accessibilityLabel,r=e.color,n=e.disabled,o=e.onPress,s=e.testID,u=e.title;return i.createElement(_e,{accessibilityLabel:a,accessibilityRole:"button",disabled:n,focusable:!n,onPress:o,ref:t,style:[J.button,r&&{backgroundColor:r},n&&J.buttonDisabled],testID:s},i.createElement(Ze,{style:[J.text,n&&J.textDisabled]},u))});et.displayName="Button";var J=f.create({button:{backgroundColor:"#2196F3",borderRadius:2},text:{color:"#fff",fontWeight:"500",padding:8,textAlign:"center",textTransform:"uppercase"},buttonDisabled:{backgroundColor:"#dfdfdf"},textDisabled:{color:"#a1a1a1"}}),Na=["aria-readonly","color","disabled","onChange","onValueChange","readOnly","style","value"],tt=i.forwardRef((e,t)=>{var a=e["aria-readonly"],r=e.color,n=e.disabled,o=e.onChange,s=e.onValueChange,u=e.readOnly,c=e.style,d=e.value,E=T(e,Na);function h(_){var S=_.nativeEvent.target.checked;_.nativeEvent.value=S,o&&o(_),s&&s(S)}var R=i.createElement(m,{style:[I.fakeControl,d&&I.fakeControlChecked,d&&r&&{backgroundColor:r,borderColor:r},n&&I.fakeControlDisabled,d&&n&&I.fakeControlCheckedAndDisabled]}),v=U("input",{checked:d,disabled:n,onChange:h,readOnly:u===!0||a===!0||E.accessibilityReadOnly===!0,ref:t,style:[I.nativeControl,I.cursorInherit],type:"checkbox"});return i.createElement(m,b({},E,{"aria-disabled":n,"aria-readonly":a,style:[I.root,c,n&&I.cursorDefault]}),R,v)});tt.displayName="CheckBox";var I=f.create({root:{cursor:"pointer",height:16,userSelect:"none",width:16},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},fakeControl:{alignItems:"center",backgroundColor:"#fff",borderColor:"#657786",borderRadius:2,borderStyle:"solid",borderWidth:2,height:"100%",justifyContent:"center",width:"100%"},fakeControlChecked:{backgroundColor:"#009688",backgroundImage:'url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K")',backgroundRepeat:"no-repeat",borderColor:"#009688"},fakeControlDisabled:{borderColor:"#CCD6DD"},fakeControlCheckedAndDisabled:{backgroundColor:"#AAB8C2",borderColor:"#AAB8C2"},nativeControl:O(O({},f.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})}),Ca=["children","style","imageStyle","imageRef"],Da={},at=i.forwardRef((e,t)=>{var a=e.children,r=e.style,n=r===void 0?Da:r,o=e.imageStyle,s=e.imageRef,u=T(e,Ca),c=f.flatten(n),d=c.height,E=c.width;return i.createElement(m,{ref:t,style:n},i.createElement(qe,b({},u,{ref:s,style:[{width:E,height:d,zIndex:-1},f.absoluteFill,o]})),a)});at.displayName="ImageBackground";var Aa=["behavior","contentContainerStyle","keyboardVerticalOffset"];class Ia extends i.Component{constructor(){super(...arguments),this.frame=null,this.onLayout=t=>{this.frame=t.nativeEvent.layout}}relativeKeyboardHeight(t){var a=this.frame;if(!a||!t)return 0;var r=t.screenY-(this.props.keyboardVerticalOffset||0);return Math.max(a.y+a.height-r,0)}onKeyboardChange(t){}render(){var t=this.props;t.behavior,t.contentContainerStyle,t.keyboardVerticalOffset;var a=T(t,Aa);return i.createElement(m,b({onLayout:this.onLayout},a))}}function La(e){var t=e.children,a=i.useRef(null);if(A&&!a.current){var r=document.createElement("div");r&&document.body&&(document.body.appendChild(r),a.current=r)}return i.useEffect(()=>{if(A)return()=>{document.body&&a.current&&(document.body.removeChild(a.current),a.current=null)}},[]),a.current&&A?yt.createPortal(t,a.current):null}var Ve=300;function Ma(e,t){return e==="slide"?t?ka:Va:e==="fade"?t?xa:Ga:t?p.container:p.hidden}function wa(e){var t=e.animationType,a=e.children,r=e.onDismiss,n=e.onShow,o=e.visible,s=i.useState(!1),u=s[0],c=s[1],d=i.useRef(!1),E=i.useRef(!1),h=t&&t!=="none",R=i.useCallback(v=>{v&&v.currentTarget!==v.target||(o?n&&n():c(!1))},[n,o]);return i.useEffect(()=>{E.current&&!u&&r&&r(),E.current=u},[u,r]),i.useEffect(()=>{o&&c(!0),o!==d.current&&!h&&R(),d.current=o},[h,o,R]),u||o?U("div",{style:u?Ma(t,o):p.hidden,onAnimationEnd:R,children:a}):null}var p=f.create({container:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:9999},animatedIn:{animationDuration:Ve+"ms",animationTimingFunction:"ease-in"},animatedOut:{pointerEvents:"none",animationDuration:Ve+"ms",animationTimingFunction:"ease-out"},fadeIn:{opacity:1,animationKeyframes:{"0%":{opacity:0},"100%":{opacity:1}}},fadeOut:{opacity:0,animationKeyframes:{"0%":{opacity:1},"100%":{opacity:0}}},slideIn:{transform:"translateY(0%)",animationKeyframes:{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0%)"}}},slideOut:{transform:"translateY(100%)",animationKeyframes:{"0%":{transform:"translateY(0%)"},"100%":{transform:"translateY(100%)"}}},hidden:{opacity:0}}),ka=[p.container,p.animatedIn,p.slideIn],Va=[p.container,p.animatedOut,p.slideOut],xa=[p.container,p.animatedIn,p.fadeIn],Ga=[p.container,p.animatedOut,p.fadeOut],Ha=["active","children","onRequestClose","transparent"],Ua=i.forwardRef((e,t)=>{var a=e.active,r=e.children,n=e.onRequestClose,o=e.transparent,s=T(e,Ha);i.useEffect(()=>{if(A){var c=d=>{a&&d.key==="Escape"&&(d.stopPropagation(),n&&n())};return document.addEventListener("keyup",c,!1),()=>document.removeEventListener("keyup",c,!1)}},[a,n]);var u=i.useMemo(()=>[Q.modal,o?Q.modalTransparent:Q.modalOpaque],[o]);return i.createElement(m,b({},s,{"aria-modal":!0,ref:t,role:a?"dialog":null,style:u}),i.createElement(m,{style:Q.container},r))}),Q=f.create({modal:{position:"fixed",top:0,right:0,bottom:0,left:0},modalTransparent:{backgroundColor:"transparent"},modalOpaque:{backgroundColor:"white"},container:{top:0,flex:1}}),xe=()=>U("div",{role:"none",tabIndex:0,style:Fa.focusBracket});function nt(e){if(!A)return!1;try{e.focus()}catch{}return document.activeElement===e}function rt(e){for(var t=0;t<e.childNodes.length;t++){var a=e.childNodes[t];if(nt(a)||rt(a))return!0}return!1}function ot(e){for(var t=e.childNodes.length-1;t>=0;t--){var a=e.childNodes[t];if(nt(a)||ot(a))return!0}return!1}var Ya=e=>{var t=e.active,a=e.children,r=i.useRef(),n=i.useRef({trapFocusInProgress:!1,lastFocusedElement:null});return i.useEffect(()=>{if(A){var o=()=>{if(!(r.current==null||n.current.trapFocusInProgress||!t)){try{if(n.current.trapFocusInProgress=!0,document.activeElement instanceof Node&&!r.current.contains(document.activeElement)){var s=rt(r.current);n.current.lastFocusedElement===document.activeElement&&(s=ot(r.current)),!s&&r.current!=null&&document.activeElement&&G.focus(r.current)}}finally{n.current.trapFocusInProgress=!1}n.current.lastFocusedElement=document.activeElement}};return o(),document.addEventListener("focus",o,!0),()=>document.removeEventListener("focus",o,!0)}},[t]),i.useEffect(function(){if(A){var o=document.activeElement;return function(){o&&document.contains(o)&&G.focus(o)}}},[]),i.createElement(i.Fragment,null,i.createElement(xe,null),i.createElement(m,{ref:r},a),i.createElement(xe,null))},Fa=f.create({focusBracket:{outlineStyle:"none"}}),ja=["animationType","children","onDismiss","onRequestClose","onShow","transparent","visible"],za=0,w=[],x={};function it(){if(w.length!==0){var e=w[w.length-1];w.forEach(t=>{t in x&&x[t](t===e)})}}function Re(e){e in x&&(x[e](!1),delete x[e]);var t=w.indexOf(e);t!==-1&&(w.splice(t,1),it())}function Ba(e,t){Re(e),w.push(e),x[e]=t,it()}var Wa=i.forwardRef((e,t)=>{var a=e.animationType,r=e.children,n=e.onDismiss,o=e.onRequestClose,s=e.onShow,u=e.transparent,c=e.visible,d=c===void 0?!0:c,E=T(e,ja),h=i.useMemo(()=>za++,[]),R=i.useState(!1),v=R[0],_=R[1],S=i.useCallback(()=>{Re(h),n&&n()},[h,n]),N=i.useCallback(()=>{Ba(h,_),s&&s()},[h,s]);return i.useEffect(()=>()=>Re(h),[h]),i.createElement(La,null,i.createElement(wa,{animationType:a,onDismiss:S,onShow:N,visible:d},i.createElement(Ya,{active:v},i.createElement(Ua,b({},E,{active:v,onRequestClose:o,ref:t,transparent:u}),r))))});function $a(e){var t=e.color,a=e.label,r=e.testID,n=e.value,o={color:t};return U("option",{children:a,style:o,testID:r,value:n})}var qa=["children","enabled","onValueChange","selectedValue","style","testID","itemStyle","mode","prompt"],st=i.forwardRef((e,t)=>{var a=e.children,r=e.enabled,n=e.onValueChange,o=e.selectedValue,s=e.style,u=e.testID;e.itemStyle,e.mode,e.prompt;var c=T(e,qa),d=i.useRef(null);function E(_){var S=_.target,N=S.selectedIndex,C=S.value;n&&n(C,N)}var h=O({children:a,disabled:r===!1?!0:void 0,onChange:E,style:[Xa.initial,s],testID:u,value:o},c),R=Ht(h),v=Se(d,R,t);return h.ref=v,U("select",h)});st.Item=$a;var Xa=f.create({initial:{fontFamily:"System",fontSize:"inherit",margin:0}}),Ka=["color","indeterminate","progress","trackColor","style"],lt=i.forwardRef((e,t)=>{var a=e.color,r=a===void 0?"#1976D2":a,n=e.indeterminate,o=n===void 0?!1:n,s=e.progress,u=s===void 0?0:s,c=e.trackColor,d=c===void 0?"transparent":c,E=e.style,h=T(e,Ka),R=u*100,v=o?"25%":R+"%";return i.createElement(m,b({},h,{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o?null:R,ref:t,role:"progressbar",style:[de.track,E,{backgroundColor:d}]}),i.createElement(m,{style:[{backgroundColor:r,width:v},de.progress,o&&de.animation]}))});lt.displayName="ProgressBar";var de=f.create({track:{forcedColorAdjust:"none",height:5,overflow:"hidden",userSelect:"none",zIndex:0},progress:{forcedColorAdjust:"none",height:"100%",zIndex:-1},animation:{animationDuration:"1s",animationKeyframes:[{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(400%)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"}}),Za=["style"],ee=function(){return A&&window.CSS&&window.CSS.supports&&window.CSS.supports("top: constant(safe-area-inset-top)")?"constant":"env"}(),ut=i.forwardRef((e,t)=>{var a=e.style,r=T(e,Za);return i.createElement(m,b({},r,{ref:t,style:[Ja.root,a]}))});ut.displayName="SafeAreaView";var Ja=f.create({root:{paddingTop:ee+"(safe-area-inset-top)",paddingRight:ee+"(safe-area-inset-right)",paddingBottom:ee+"(safe-area-inset-bottom)",paddingLeft:ee+"(safe-area-inset-left)"}}),j=()=>{};function Y(){return null}Y.setBackgroundColor=j;Y.setBarStyle=j;Y.setHidden=j;Y.setNetworkActivityIndicatorVisible=j;Y.setTranslucent=j;var ct=function(t,a){var r=this;if(r.instancePool.length){var n=r.instancePool.pop();return r.call(n,t,a),n}else return new r(t,a)},Qa=function(t){var a=this;t.destructor(),a.instancePool.length<a.poolSize&&a.instancePool.push(t)},en=10,tn=ct,an=function(t,a){var r=t;return r.instancePool=[],r.getPooled=a||tn,r.poolSize||(r.poolSize=en),r.release=Qa,r},ie={addPoolingTo:an,twoArgumentPooler:ct},nn=ie.twoArgumentPooler;function H(e,t){this.width=e,this.height=t}H.prototype.destructor=function(){this.width=null,this.height=null};H.getPooledFromElement=function(e){return H.getPooled(e.offsetWidth,e.offsetHeight)};ie.addPoolingTo(H,nn);var rn=ie.twoArgumentPooler;function ne(e,t){this.left=e,this.top=t}ne.prototype.destructor=function(){this.left=null,this.top=null};ie.addPoolingTo(ne,rn);var Ge=e=>{var t=e.touches,a=e.changedTouches,r=t&&t.length>0,n=a&&a.length>0;return!r&&n?a[0]:r?t[0]:e},l={NOT_RESPONDER:"NOT_RESPONDER",RESPONDER_INACTIVE_PRESS_IN:"RESPONDER_INACTIVE_PRESS_IN",RESPONDER_INACTIVE_PRESS_OUT:"RESPONDER_INACTIVE_PRESS_OUT",RESPONDER_ACTIVE_PRESS_IN:"RESPONDER_ACTIVE_PRESS_IN",RESPONDER_ACTIVE_PRESS_OUT:"RESPONDER_ACTIVE_PRESS_OUT",RESPONDER_ACTIVE_LONG_PRESS_IN:"RESPONDER_ACTIVE_LONG_PRESS_IN",RESPONDER_ACTIVE_LONG_PRESS_OUT:"RESPONDER_ACTIVE_LONG_PRESS_OUT",ERROR:"ERROR"},ge={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},He=O(O({},ge),{},{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),Ue=O(O({},ge),{},{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),Ye=O(O({},ge),{},{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),y={DELAY:"DELAY",RESPONDER_GRANT:"RESPONDER_GRANT",RESPONDER_RELEASE:"RESPONDER_RELEASE",RESPONDER_TERMINATED:"RESPONDER_TERMINATED",ENTER_PRESS_RECT:"ENTER_PRESS_RECT",LEAVE_PRESS_RECT:"LEAVE_PRESS_RECT",LONG_PRESS_DETECTED:"LONG_PRESS_DETECTED"},Fe={NOT_RESPONDER:{DELAY:l.ERROR,RESPONDER_GRANT:l.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:l.ERROR,RESPONDER_TERMINATED:l.ERROR,ENTER_PRESS_RECT:l.ERROR,LEAVE_PRESS_RECT:l.ERROR,LONG_PRESS_DETECTED:l.ERROR},RESPONDER_INACTIVE_PRESS_IN:{DELAY:l.RESPONDER_ACTIVE_PRESS_IN,RESPONDER_GRANT:l.ERROR,RESPONDER_RELEASE:l.NOT_RESPONDER,RESPONDER_TERMINATED:l.NOT_RESPONDER,ENTER_PRESS_RECT:l.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:l.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:l.ERROR},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:l.RESPONDER_ACTIVE_PRESS_OUT,RESPONDER_GRANT:l.ERROR,RESPONDER_RELEASE:l.NOT_RESPONDER,RESPONDER_TERMINATED:l.NOT_RESPONDER,ENTER_PRESS_RECT:l.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:l.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:l.ERROR},RESPONDER_ACTIVE_PRESS_IN:{DELAY:l.ERROR,RESPONDER_GRANT:l.ERROR,RESPONDER_RELEASE:l.NOT_RESPONDER,RESPONDER_TERMINATED:l.NOT_RESPONDER,ENTER_PRESS_RECT:l.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:l.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:l.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:l.ERROR,RESPONDER_GRANT:l.ERROR,RESPONDER_RELEASE:l.NOT_RESPONDER,RESPONDER_TERMINATED:l.NOT_RESPONDER,ENTER_PRESS_RECT:l.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:l.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:l.ERROR},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:l.ERROR,RESPONDER_GRANT:l.ERROR,RESPONDER_RELEASE:l.NOT_RESPONDER,RESPONDER_TERMINATED:l.NOT_RESPONDER,ENTER_PRESS_RECT:l.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:l.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:l.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:l.ERROR,RESPONDER_GRANT:l.ERROR,RESPONDER_RELEASE:l.NOT_RESPONDER,RESPONDER_TERMINATED:l.NOT_RESPONDER,ENTER_PRESS_RECT:l.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:l.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:l.ERROR},error:{DELAY:l.NOT_RESPONDER,RESPONDER_GRANT:l.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:l.NOT_RESPONDER,RESPONDER_TERMINATED:l.NOT_RESPONDER,ENTER_PRESS_RECT:l.NOT_RESPONDER,LEAVE_PRESS_RECT:l.NOT_RESPONDER,LONG_PRESS_DETECTED:l.NOT_RESPONDER}},ve=130,te=20,on=500,je=on-ve,sn=10,z={componentDidMount:function(){var t=this.getTouchableNode&&this.getTouchableNode();t&&t.addEventListener&&(this._touchableBlurListener=a=>{this._isTouchableKeyboardActive&&(this.state.touchable.touchState&&this.state.touchable.touchState!==l.NOT_RESPONDER&&this.touchableHandleResponderTerminate({nativeEvent:a}),this._isTouchableKeyboardActive=!1)},t.addEventListener("blur",this._touchableBlurListener))},componentWillUnmount:function(){var t=this.getTouchableNode&&this.getTouchableNode();t&&t.addEventListener&&t.removeEventListener("blur",this._touchableBlurListener),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressInLocation=null,this.state.touchable.responderID=null},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(t){var a=t.currentTarget;t.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=l.NOT_RESPONDER,this.state.touchable.responderID=a,this._receiveSignal(y.RESPONDER_GRANT,t);var r=this.touchableGetHighlightDelayMS!==void 0?Math.max(this.touchableGetHighlightDelayMS(),0):ve;r=isNaN(r)?ve:r,r!==0?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,t),r):this._handleDelay(t);var n=this.touchableGetLongPressDelayMS!==void 0?Math.max(this.touchableGetLongPressDelayMS(),10):je;n=isNaN(n)?je:n,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,t),n+r)},touchableHandleResponderRelease:function(t){this.pressInLocation=null,this._receiveSignal(y.RESPONDER_RELEASE,t)},touchableHandleResponderTerminate:function(t){this.pressInLocation=null,this._receiveSignal(y.RESPONDER_TERMINATED,t)},touchableHandleResponderMove:function(t){if(this.state.touchable.positionOnActivate){var a=this.state.touchable.positionOnActivate,r=this.state.touchable.dimensionsOnActivate,n=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:te,right:te,top:te,bottom:te},o=n.left,s=n.top,u=n.right,c=n.bottom,d=this.touchableGetHitSlop?this.touchableGetHitSlop():null;d&&(o+=d.left||0,s+=d.top||0,u+=d.right||0,c+=d.bottom||0);var E=Ge(t.nativeEvent),h=E&&E.pageX,R=E&&E.pageY;if(this.pressInLocation){var v=this._getDistanceBetweenPoints(h,R,this.pressInLocation.pageX,this.pressInLocation.pageY);v>sn&&this._cancelLongPressDelayTimeout()}var _=h>a.left-o&&R>a.top-s&&h<a.left+r.width+u&&R<a.top+r.height+c;if(_){var S=this.state.touchable.touchState;this._receiveSignal(y.ENTER_PRESS_RECT,t);var N=this.state.touchable.touchState;N===l.RESPONDER_INACTIVE_PRESS_IN&&S!==l.RESPONDER_INACTIVE_PRESS_IN&&this._cancelLongPressDelayTimeout()}else this._cancelLongPressDelayTimeout(),this._receiveSignal(y.LEAVE_PRESS_RECT,t)}},touchableHandleFocus:function(t){this.props.onFocus&&this.props.onFocus(t)},touchableHandleBlur:function(t){this.props.onBlur&&this.props.onBlur(t)},_remeasureMetricsOnActivation:function(){var t=this.state.touchable.responderID;t!=null&&G.measure(t,this._handleQueryLayout)},_handleQueryLayout:function(t,a,r,n,o,s){!t&&!a&&!r&&!n&&!o&&!s||(this.state.touchable.positionOnActivate&&ne.release(this.state.touchable.positionOnActivate),this.state.touchable.dimensionsOnActivate&&H.release(this.state.touchable.dimensionsOnActivate),this.state.touchable.positionOnActivate=ne.getPooled(o,s),this.state.touchable.dimensionsOnActivate=H.getPooled(r,n))},_handleDelay:function(t){this.touchableDelayTimeout=null,this._receiveSignal(y.DELAY,t)},_handleLongDelay:function(t){this.longPressDelayTimeout=null;var a=this.state.touchable.touchState;a!==l.RESPONDER_ACTIVE_PRESS_IN&&a!==l.RESPONDER_ACTIVE_LONG_PRESS_IN?console.error("Attempted to transition from state `"+a+"` to `"+l.RESPONDER_ACTIVE_LONG_PRESS_IN+"`, which is not supported. This is most likely due to `Touchable.longPressDelayTimeout` not being cancelled."):this._receiveSignal(y.LONG_PRESS_DETECTED,t)},_receiveSignal:function(t,a){var r=this.state.touchable.responderID,n=this.state.touchable.touchState,o=Fe[n]&&Fe[n][t];if(!(!r&&t===y.RESPONDER_RELEASE)){if(!o)throw new Error("Unrecognized signal `"+t+"` or state `"+n+"` for Touchable responder `"+r+"`");if(o===l.ERROR)throw new Error("Touchable cannot transition from `"+n+"` to `"+t+"` for responder `"+r+"`");n!==o&&(this._performSideEffectsForTransition(n,o,t,a),this.state.touchable.touchState=o)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(t){return t===l.RESPONDER_ACTIVE_PRESS_IN||t===l.RESPONDER_ACTIVE_LONG_PRESS_IN},_savePressInLocation:function(t){var a=Ge(t.nativeEvent),r=a&&a.pageX,n=a&&a.pageY,o=a&&a.locationX,s=a&&a.locationY;this.pressInLocation={pageX:r,pageY:n,locationX:o,locationY:s}},_getDistanceBetweenPoints:function(t,a,r,n){var o=t-r,s=a-n;return Math.sqrt(o*o+s*s)},_performSideEffectsForTransition:function(t,a,r,n){var o=this._isHighlight(t),s=this._isHighlight(a),u=r===y.RESPONDER_TERMINATED||r===y.RESPONDER_RELEASE;u&&this._cancelLongPressDelayTimeout();var c=t===l.NOT_RESPONDER&&a===l.RESPONDER_INACTIVE_PRESS_IN,d=!He[t]&&He[a];if((c||d)&&this._remeasureMetricsOnActivation(),Ue[t]&&r===y.LONG_PRESS_DETECTED&&this.touchableHandleLongPress&&this.touchableHandleLongPress(n),s&&!o?this._startHighlight(n):!s&&o&&this._endHighlight(n),Ue[t]&&r===y.RESPONDER_RELEASE){var E=!!this.props.onLongPress,h=Ye[t]&&(!E||!this.touchableLongPressCancelsPress()),R=!Ye[t]||h;R&&this.touchableHandlePress&&(!s&&!o&&(this._startHighlight(n),this._endHighlight(n)),this.touchableHandlePress(n))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_playTouchSound:function(){G.playTouchSound()},_startHighlight:function(t){this._savePressInLocation(t),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(t)},_endHighlight:function(t){this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout(()=>{this.touchableHandleActivePressOut(t)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(t))},touchableHandleKeyEvent:function(t){var a=t.type,r=t.key;(r==="Enter"||r===" ")&&(a==="keydown"?this._isTouchableKeyboardActive||(!this.state.touchable.touchState||this.state.touchable.touchState===l.NOT_RESPONDER)&&(this.touchableHandleResponderGrant(t),this._isTouchableKeyboardActive=!0):a==="keyup"&&this._isTouchableKeyboardActive&&this.state.touchable.touchState&&this.state.touchable.touchState!==l.NOT_RESPONDER&&(this.touchableHandleResponderRelease(t),this._isTouchableKeyboardActive=!1),t.stopPropagation(),r==="Enter"&&pt.propsToAriaRole(this.props)==="link"||t.preventDefault())},withoutDefaultFocusAndBlur:{}};z.touchableHandleFocus;z.touchableHandleBlur;var ln=T(z,["touchableHandleFocus","touchableHandleBlur"]);z.withoutDefaultFocusAndBlur=ln;var dt={Mixin:z,TOUCH_TARGET_DEBUG:!1,renderDebugView:e=>{var t=e.color,a=e.hitSlop;if(!dt.TOUCH_TARGET_DEBUG)return null;var r={};a=a||{top:0,bottom:0,left:0,right:0};for(var n in a)r[n]=-a[n];var o=St(t);if(typeof o!="number")return null;var s="#"+("00000000"+o.toString(16)).substr(-8);return M.createElement(m,{pointerEvents:"none",style:O({position:"absolute",borderColor:s.slice(0,-2)+"55",borderWidth:1,borderStyle:"dashed",backgroundColor:s.slice(0,-2)+"0F"},r)})}},un=["style"];function Et(e){var t=e.style,a=T(e,un);return M.createElement(m,b({},a,{style:[cn,t]}))}var cn={},dn={accessibilityDisabled:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,children:!0,disabled:!0,focusable:!0,nativeID:!0,onBlur:!0,onFocus:!0,onLayout:!0,testID:!0},En=e=>Ut(e,dn);function hn(e,t){var a=e.delayPressIn,r=e.delayPressOut,n=e.delayLongPress,o=e.disabled,s=e.focusable,u=e.onLongPress,c=e.onPress,d=e.onPressIn,E=e.onPressOut,h=e.rejectResponderTermination,R=i.useRef(null),v=i.useMemo(()=>({cancelable:!h,disabled:o,delayLongPress:n,delayPressStart:a,delayPressEnd:r,onLongPress:u,onPress:c,onPressStart:d,onPressEnd:E}),[o,a,r,n,u,c,d,E,h]),_=Xe(R,v),S=i.Children.only(e.children),N=[S.props.children],C=En(e);C.accessibilityDisabled=o,C.focusable=!o&&s!==!1,C.ref=Se(t,R,S.ref);var se=Object.assign(C,_);return i.cloneElement(S,se,...N)}var ht=i.memo(i.forwardRef(hn));ht.displayName="TouchableWithoutFeedback";function Rt(e){return M.createElement(Et,e)}Rt.ignoreWarnings=()=>{};var Rn={ignoreLogs(){},ignoreAllLogs(){},uninstall(){},install(){}};function vn(){var e=i.useState(Ee.getColorScheme()),t=e[0],a=e[1];return i.useEffect(()=>{function r(s){a(s.colorScheme)}var n=Ee.addChangeListener(r),o=n.remove;return o}),t}const mn=Object.freeze(Object.defineProperty({__proto__:null,AccessibilityInfo:Ct,ActivityIndicator:Qe,Alert:We,Animated:It,AppRegistry:ae,AppState:Dt,Appearance:Ee,BackHandler:da,Button:et,CheckBox:tt,Clipboard:Ea,DeviceEventEmitter:Xt,Dimensions:Ot,Easing:Lt,FlatList:Mt,I18nManager:ha,Image:qe,ImageBackground:at,InteractionManager:fe,Keyboard:Ra,KeyboardAvoidingView:Ia,LayoutAnimation:va,Linking:$e,LogBox:Rn,Modal:Wa,NativeEventEmitter:Kt,NativeModules:Nt,PanResponder:V,Picker:st,PixelRatio:Gt,Platform:Be,Pressable:Bt,ProgressBar:lt,RefreshControl:wt,SafeAreaView:ut,ScrollView:kt,SectionList:Vt,Share:ga,StatusBar:Y,StyleSheet:f,Switch:Wt,Text:Ze,TextInput:$t,Touchable:dt,TouchableHighlight:qt,TouchableNativeFeedback:Et,TouchableOpacity:_e,TouchableWithoutFeedback:ht,UIManager:G,Vibration:Pa,View:m,VirtualizedList:xt,YellowBox:Rt,findNodeHandle:Pt,processColor:_t,render:Je,unmountComponentAtNode:oe,unstable_createElement:U,useColorScheme:vn,useLocaleContext:gt,useWindowDimensions:Zt},Symbol.toStringTag,{value:"Module"})),qn=ft(mn),ze=({children:e,emphasis:t,inverse:a,onPress:r,phraseVariant:n,logAction:o=Ft.buttonPress,...s})=>{const u=Yt({...s,logAction:o,onEvent:r});return Jt.jsx(Qt,{accessibilityRole:"link",color:a?"inverse":"link",emphasis:t,onPress:u,underline:!0,variant:n,...s,children:e})};try{ze.displayName="InlineLink",ze.__docgenInfo={description:"",displayName:"InlineLink",props:{emphasis:{defaultValue:null,description:"Allows the phrase to convey more emphasis.",name:"emphasis",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"strong"'}]}},inverse:{defaultValue:null,description:"",name:"inverse",required:!1,type:{name:"boolean"}},onPress:{defaultValue:null,description:`This function is called on press. -Text intrinsically supports press handling with a default highlight state (which can be disabled with suppressHighlighting).`,name:"onPress",required:!1,type:{name:"(() => void) & ((event: GestureResponderEvent) => void)"}},phraseVariant:{defaultValue:null,description:"",name:"phraseVariant",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"body"'},{value:'"intro"'},{value:'"quote"'},{value:'"extraSmall"'}]}},testID:{defaultValue:null,description:"Used to locate this view in end-to-end tests.",name:"testID",required:!1,type:{name:"string"}},color:{defaultValue:null,description:"Defines the color of the phrase. Maps with the text color tokens.",name:"color",required:!1,type:{name:"enum",value:[{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"default"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"inverse"'},{value:'"warning"'}]}},flexShrink:{defaultValue:null,description:"Defines how to shrink the phrase in case the parent container is smaller than the phrase.",name:"flexShrink",required:!1,type:{name:"number"}},"logging-label":{defaultValue:null,description:"Label used for logging to Piwik and AppInsights.",name:"logging-label",required:!1,type:{name:"string"}},textAlign:{defaultValue:null,description:"Defines the alignment of the text. Maps with the textAlign style prop options.",name:"textAlign",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"center"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'}]}},underline:{defaultValue:null,description:"Whether the phrase is underlined. Use this for a link only.",name:"underline",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"Which variation of a phrase to display.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"body"'},{value:'"intro"'},{value:'"quote"'},{value:'"extraSmall"'}]}},logAction:{defaultValue:{value:"PiwikAction.buttonPress"},description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial<Record<CustomDimensionKeys, string>>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}const fn=e=>/^https?:\/\/([\w-.]+.)?amsterdam\.nl/.test(e),Sn=(e,t)=>{if(!fn(e))return e;const a=jt.stringify({app_from:1,app_module:t}),[r,n]=e.split("#"),o=n?`#${n}`:"",s=`${r.includes("?")?"&":"?"}${a}`;return`${r}${s}${o}`},pn=()=>{const e=aa(),{trackOutlink:t}=Ke();return i.useCallback(a=>{const r=Sn(a,zt());t(r),$e.openURL(r).catch(()=>{We.alert("Sorry, deze functie is niet beschikbaar."),e(na.openWebUrl,"useOpenWebUrl.ts",{url:a})})},[e,t])},Xn=()=>{const e=ea(),t=ta(),a=pn(),{trackOutlink:r}=Ke();return i.useCallback(n=>{if(r(n),n.startsWith("mailto:")){const[o,s]=n.substring(7).split("?subject=");e(o,s);return}if(n.startsWith("tel:")){t(n.substring(4));return}a(n)},[e,t,a,r])};export{ze as I,Ra as K,va as L,Wa as M,Y as S,Et as U,Rn as a,Xn as b,Ia as c,ha as d,qn as r,pn as u}; +import{a as ft}from"./_commonjsHelpers-BosuxZz1.js";import{e as re,c as A,s as f,_ as T,a as U,b as O,n as St,A as pt,p as _t,u as gt}from"./index-kbHxBZ_W.js";import{f as Pt}from"./index-DEfxrPnc.js";import{r as me,F as yt}from"./index-DFkxGuuM.js";import{h as Tt,c as bt}from"./client-BGlHIwA3.js";import{i as L,P as Be,D as Ot,N as Nt}from"./index-DSI0shHu.js";import{A as Ct}from"./index-CDv7s-w8.js";import{A as We,L as $e}from"./index-Ce74jbsy.js";import{_ as b}from"./extends-CF3RwP-h.js";import{r as i,R as M}from"./index-mfbfsM12.js";import{V as m}from"./index-BP1Ij_Cs.js";import{A as Dt}from"./index-CkqLweLe.js";import{d as At,I as fe,A as It,E as Lt,F as Mt,R as wt,a as kt,S as Vt,V as xt}from"./Animated-CFNSbqHF.js";import{I as qe,P as Gt}from"./index-2SHDvLR_.js";import{U as G,g as Se,e as Ht,p as Ut}from"./TextAncestorContext-Dg3XKfar.js";import{c as Xe,u as Yt,a as Ft,m as jt,b as Ke,g as zt}from"./usePiwikTrackCustomEventFromProps-CT_KpUEz.js";import{T as Ze}from"./index-CAyeAlm6.js";import{M as Bt}from"./index-CIcog7m4.js";import{S as Wt}from"./index-k6NSpe5t.js";import{T as $t}from"./index-DZxzYa9i.js";import{M as qt}from"./index-BW2XZOZc.js";import{R as Xt,N as Kt}from"./NativeEventEmitter-MQ3wzVGe.js";import{u as Zt}from"./index-BXDkY5MO.js";import{j as Jt}from"./jsx-runtime-Bxcv0yjW.js";import{P as Qt}from"./Phrase-CZOdtc60.js";import{u as ea}from"./useOpenMailUrl-Blrf_PL9.js";import{u as ta}from"./useOpenPhoneUrl-TB9t0oDt.js";import{u as aa,E as na}from"./useTrackException-Cm6KdDpO.js";const oe=me.unmountComponentAtNode;function ra(e,t){return re(t),Tt(t,e)}function oa(e,t){re(t);var a=bt(t);return a.render(e),a}function ia(e,t,a){return re(t),me.hydrate(e,t,a),{unmount:function(){return oe(t)}}}function Je(e,t,a){return re(t),me.render(e,t,a),{unmount:function(){return oe(t)}}}function sa(){return A&&window.matchMedia!=null?window.matchMedia("(prefers-color-scheme: dark)"):null}var k=sa(),$=new WeakMap,Ee={getColorScheme(){return k&&k.matches?"dark":"light"},addChangeListener(e){var t=$.get(e);t||(t=r=>{var n=r.matches;e({colorScheme:n?"dark":"light"})},$.set(e,t)),k&&k.addListener(t);function a(){var r=$.get(e);k&&r&&k.removeListener(r),$.delete(e)}return{remove:a}}},la=i.createContext(null),pe=i.forwardRef((e,t)=>{var a=e.children,r=e.WrapperComponent,n=i.createElement(m,{children:a,key:1,style:Ce.appContainer});return r&&(n=i.createElement(r,null,n)),i.createElement(la.Provider,{value:e.rootTag},i.createElement(m,{ref:t,style:Ce.appContainer},n))});pe.displayName="AppContainer";var Ce=f.create({appContainer:{flex:1,pointerEvents:"box-none"}});function ua(e,t,a,r){var n=r.hydrate,o=r.initialProps,s=r.mode,u=r.rootTag,c=n?s==="concurrent"?ra:ia:s==="concurrent"?oa:Je;return L(u,"Expect to have a valid rootTag, instead got ",u),c(M.createElement(pe,{WrapperComponent:t,ref:a,rootTag:u},M.createElement(e,o)),u)}function ca(e,t,a){var r=M.createElement(pe,{WrapperComponent:a,rootTag:{}},M.createElement(e,t)),n=o=>{var s=f.getSheet();return M.createElement("style",b({},o,{dangerouslySetInnerHTML:{__html:s.textContent},id:s.id}))};return{element:r,getStyleElement:n}}var De={},D={},le=e=>e(),F;class ae{static getAppKeys(){return Object.keys(D)}static getApplication(t,a){return L(D[t]&&D[t].getApplication,"Application "+t+" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),D[t].getApplication(a)}static registerComponent(t,a){return D[t]={getApplication:r=>ca(le(a),r?r.initialProps:De,F&&F(r)),run:r=>ua(le(a),F&&F(r),r.callback,{hydrate:r.hydrate||!1,initialProps:r.initialProps||De,mode:r.mode||"concurrent",rootTag:r.rootTag})},t}static registerConfig(t){t.forEach(a=>{var r=a.appKey,n=a.component,o=a.run;o?ae.registerRunnable(r,o):(L(n,"No component provider passed in"),ae.registerComponent(r,n))})}static registerRunnable(t,a){return D[t]={run:a},t}static runApplication(t,a){return L(D[t]&&D[t].run,'Application "'+t+'" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.'),D[t].run(a)}static setComponentProviderInstrumentationHook(t){le=t}static setWrapperComponentProvider(t){F=t}static unmountApplicationComponentAtRootTag(t){oe(t)}}function ue(){}var da={exitApp:ue,addEventListener(){return console.error("BackHandler is not supported on web and should not be used."),{remove:ue}},removeEventListener:ue},ce;class Ea{static isAvailable(){return ce===void 0&&(ce=typeof document.queryCommandSupported=="function"&&document.queryCommandSupported("copy")),ce}static getString(){return Promise.resolve("")}static setString(t){var a=!1,r=document.body;if(r){var n=document.createElement("span");n.textContent=t,n.style.opacity="0",n.style.position="absolute",n.style.whiteSpace="pre-wrap",n.style.userSelect="auto",r.appendChild(n);var o=window.getSelection();o.removeAllRanges();var s=document.createRange();s.selectNodeContents(n),o.addRange(s);try{document.execCommand("copy"),a=!0}catch{}o.removeAllRanges(),r.removeChild(n)}return a}}var ha={allowRTL(){},forceRTL(){},getConstants(){return{isRTL:!1}}},Ra={isVisible(){return!1},addListener(){return{remove:()=>{}}},dismiss(){At()},removeAllListeners(){},removeListener(){}};function q(e,t){Be.isTesting||G.configureNextLayoutAnimation(e,t??function(){},function(){})}function he(e,t,a){return{duration:e,create:{type:t,property:a},update:{type:t},delete:{type:t,property:a}}}var X={easeInEaseOut:he(300,"easeInEaseOut","opacity"),linear:he(500,"linear","opacity"),spring:{duration:700,create:{type:"linear",property:"opacity"},update:{type:"spring",springDamping:.4},delete:{type:"linear",property:"opacity"}}},va={configureNext:q,create:he,Types:Object.freeze({spring:"spring",linear:"linear",easeInEaseOut:"easeInEaseOut",easeIn:"easeIn",easeOut:"easeOut",keyboard:"keyboard"}),Properties:Object.freeze({opacity:"opacity",scaleX:"scaleX",scaleY:"scaleY",scaleXY:"scaleXY"}),checkConfig(){console.error("LayoutAnimation.checkConfig(...) has been disabled.")},Presets:X,easeInEaseOut:q.bind(null,X.easeInEaseOut),linear:q.bind(null,X.linear),spring:q.bind(null,X.spring)},g={centroidDimension:function(t,a,r,n){var o=t.touchBank,s=0,u=0,c=t.numberActiveTouches===1?t.touchBank[t.indexOfSingleActiveTouch]:null;if(c!==null)c.touchActive&&c.currentTimeStamp>a&&(s+=n&&r?c.currentPageX:n&&!r?c.currentPageY:!n&&r?c.previousPageX:c.previousPageY,u=1);else for(var d=0;d<o.length;d++){var E=o[d];if(E!=null&&E.touchActive&&E.currentTimeStamp>=a){var h=void 0;n&&r?h=E.currentPageX:n&&!r?h=E.currentPageY:!n&&r?h=E.previousPageX:h=E.previousPageY,s+=h,u++}}return u>0?s/u:g.noCentroid},currentCentroidXOfTouchesChangedAfter:function(t,a){return g.centroidDimension(t,a,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(t,a){return g.centroidDimension(t,a,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(t,a){return g.centroidDimension(t,a,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(t,a){return g.centroidDimension(t,a,!1,!1)},currentCentroidX:function(t){return g.centroidDimension(t,0,!0,!0)},currentCentroidY:function(t){return g.centroidDimension(t,0,!1,!0)},noCentroid:-1},Ae=g.currentCentroidXOfTouchesChangedAfter,Ie=g.currentCentroidYOfTouchesChangedAfter,ma=g.previousCentroidXOfTouchesChangedAfter,fa=g.previousCentroidYOfTouchesChangedAfter,Sa=g.currentCentroidX,pa=g.currentCentroidY,V={_initializeGestureState(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=Ae(t,e._accountsForMovesUpTo),e.moveY=Ie(t,e._accountsForMovesUpTo);var a=e._accountsForMovesUpTo,r=ma(t,a),n=Ae(t,a),o=fa(t,a),s=Ie(t,a),u=e.dx+(n-r),c=e.dy+(s-o),d=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(u-e.dx)/d,e.vy=(c-e.dy)/d,e.dx=u,e.dy=c,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create(e){var t={handle:null,shouldCancelClick:!1,timeout:null},a={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0},r={onStartShouldSetResponder(n){return e.onStartShouldSetPanResponder==null?!1:e.onStartShouldSetPanResponder(n,a)},onMoveShouldSetResponder(n){return e.onMoveShouldSetPanResponder==null?!1:e.onMoveShouldSetPanResponder(n,a)},onStartShouldSetResponderCapture(n){return n.nativeEvent.touches.length===1&&V._initializeGestureState(a),a.numberActiveTouches=n.touchHistory.numberActiveTouches,e.onStartShouldSetPanResponderCapture!=null?e.onStartShouldSetPanResponderCapture(n,a):!1},onMoveShouldSetResponderCapture(n){var o=n.touchHistory;return a._accountsForMovesUpTo===o.mostRecentTimeStamp?!1:(V._updateGestureStateOnMove(a,o),e.onMoveShouldSetPanResponderCapture?e.onMoveShouldSetPanResponderCapture(n,a):!1)},onResponderGrant(n){return t.handle||(t.handle=fe.createInteractionHandle()),t.timeout&&_a(t),t.shouldCancelClick=!0,a.x0=Sa(n.touchHistory),a.y0=pa(n.touchHistory),a.dx=0,a.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(n,a),e.onShouldBlockNativeResponder==null?!0:e.onShouldBlockNativeResponder(n,a)},onResponderReject(n){K(t,e.onPanResponderReject,n,a)},onResponderRelease(n){K(t,e.onPanResponderRelease,n,a),Le(t),V._initializeGestureState(a)},onResponderStart(n){var o=n.touchHistory;a.numberActiveTouches=o.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(n,a)},onResponderMove(n){var o=n.touchHistory;a._accountsForMovesUpTo!==o.mostRecentTimeStamp&&(V._updateGestureStateOnMove(a,o),e.onPanResponderMove&&e.onPanResponderMove(n,a))},onResponderEnd(n){var o=n.touchHistory;a.numberActiveTouches=o.numberActiveTouches,K(t,e.onPanResponderEnd,n,a)},onResponderTerminate(n){K(t,e.onPanResponderTerminate,n,a),Le(t),V._initializeGestureState(a)},onResponderTerminationRequest(n){return e.onPanResponderTerminationRequest==null?!0:e.onPanResponderTerminationRequest(n,a)},onClickCapture:n=>{t.shouldCancelClick===!0&&(n.stopPropagation(),n.preventDefault())}};return{panHandlers:r,getInteractionHandle(){return t.handle}}}};function K(e,t,a,r){e.handle&&(fe.clearInteractionHandle(e.handle),e.handle=null),t&&t(a,r)}function _a(e){clearTimeout(e.timeout)}function Le(e){e.timeout=setTimeout(()=>{e.shouldCancelClick=!1},250)}class ga{static share(t,a){return a===void 0&&(a={}),L(typeof t=="object"&&t!==null,"Content to share must be a valid object"),L(typeof t.url=="string"||typeof t.message=="string","At least one of URL and message is required"),L(typeof a=="object"&&a!==null,"Options must be a valid object"),L(!t.title||typeof t.title=="string","Invalid title: title should be a string."),window.navigator.share!==void 0?window.navigator.share({title:t.title,text:t.message,url:t.url}):Promise.reject(new Error("Share is not supported in this browser"))}static get sharedAction(){return"sharedAction"}static get dismissedAction(){return"dismissedAction"}}var Me=e=>{"vibrate"in window.navigator&&window.navigator.vibrate(e)},Pa={cancel(){Me(0)},vibrate(e){e===void 0&&(e=400),Me(e)}},ya=["animating","color","hidesWhenStopped","size","style"],we=e=>i.createElement("circle",{cx:"16",cy:"16",fill:"none",r:"14",strokeWidth:"4",style:e}),Qe=i.forwardRef((e,t)=>{var a=e.animating,r=a===void 0?!0:a,n=e.color,o=n===void 0?"#1976D2":n,s=e.hidesWhenStopped,u=s===void 0?!0:s,c=e.size,d=c===void 0?"small":c,E=e.style,h=T(e,ya),R=i.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},we({stroke:o,opacity:.2}),we({stroke:o,strokeDasharray:80,strokeDashoffset:60}));return i.createElement(m,b({},h,{"aria-valuemax":1,"aria-valuemin":0,ref:t,role:"progressbar",style:[Z.container,E]}),i.createElement(m,{children:R,style:[typeof d=="number"?{height:d,width:d}:Ta[d],Z.animation,!r&&Z.animationPause,!r&&u&&Z.hidesWhenStopped]}))});Qe.displayName="ActivityIndicator";var Z=f.create({container:{alignItems:"center",justifyContent:"center"},hidesWhenStopped:{visibility:"hidden"},animation:{animationDuration:"0.75s",animationKeyframes:[{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"},animationPause:{animationPlayState:"paused"}}),Ta=f.create({small:{width:20,height:20},large:{width:36,height:36}}),ba=["activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style"];function Oa(e,t){var a=e.activeOpacity,r=e.delayPressIn,n=e.delayPressOut,o=e.delayLongPress,s=e.disabled,u=e.focusable,c=e.onLongPress,d=e.onPress,E=e.onPressIn,h=e.onPressOut,R=e.rejectResponderTermination,v=e.style,_=T(e,ba),S=i.useRef(null),N=Se(t,S),C=i.useState("0s"),se=C[0],Pe=C[1],ye=i.useState(null),Te=ye[0],be=ye[1],B=i.useCallback((P,W)=>{be(P),Pe(W?W/1e3+"s":"0s")},[be,Pe]),Oe=i.useCallback(P=>{B(a??.2,P)},[a,B]),Ne=i.useCallback(P=>{B(null,P)},[B]),vt=i.useMemo(()=>({cancelable:!R,disabled:s,delayLongPress:o,delayPressStart:r,delayPressEnd:n,onLongPress:c,onPress:d,onPressStart(P){var W=P.dispatchConfig!=null?P.dispatchConfig.registrationName==="onResponderGrant":P.type==="keydown";Oe(W?0:150),E!=null&&E(P)},onPressEnd(P){Ne(250),h!=null&&h(P)}}),[o,r,n,s,c,d,E,h,R,Oe,Ne]),mt=Xe(S,vt);return i.createElement(m,b({},_,mt,{accessibilityDisabled:s,focusable:!s&&u!==!1,pointerEvents:s?"box-none":void 0,ref:N,style:[ke.root,!s&&ke.actionable,v,Te!=null&&{opacity:Te},{transitionDuration:se}]}))}var ke=f.create({root:{transitionProperty:"opacity",transitionDuration:"0.15s",userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),_e=i.memo(i.forwardRef(Oa));_e.displayName="TouchableOpacity";var et=i.forwardRef((e,t)=>{var a=e.accessibilityLabel,r=e.color,n=e.disabled,o=e.onPress,s=e.testID,u=e.title;return i.createElement(_e,{accessibilityLabel:a,accessibilityRole:"button",disabled:n,focusable:!n,onPress:o,ref:t,style:[J.button,r&&{backgroundColor:r},n&&J.buttonDisabled],testID:s},i.createElement(Ze,{style:[J.text,n&&J.textDisabled]},u))});et.displayName="Button";var J=f.create({button:{backgroundColor:"#2196F3",borderRadius:2},text:{color:"#fff",fontWeight:"500",padding:8,textAlign:"center",textTransform:"uppercase"},buttonDisabled:{backgroundColor:"#dfdfdf"},textDisabled:{color:"#a1a1a1"}}),Na=["aria-readonly","color","disabled","onChange","onValueChange","readOnly","style","value"],tt=i.forwardRef((e,t)=>{var a=e["aria-readonly"],r=e.color,n=e.disabled,o=e.onChange,s=e.onValueChange,u=e.readOnly,c=e.style,d=e.value,E=T(e,Na);function h(_){var S=_.nativeEvent.target.checked;_.nativeEvent.value=S,o&&o(_),s&&s(S)}var R=i.createElement(m,{style:[I.fakeControl,d&&I.fakeControlChecked,d&&r&&{backgroundColor:r,borderColor:r},n&&I.fakeControlDisabled,d&&n&&I.fakeControlCheckedAndDisabled]}),v=U("input",{checked:d,disabled:n,onChange:h,readOnly:u===!0||a===!0||E.accessibilityReadOnly===!0,ref:t,style:[I.nativeControl,I.cursorInherit],type:"checkbox"});return i.createElement(m,b({},E,{"aria-disabled":n,"aria-readonly":a,style:[I.root,c,n&&I.cursorDefault]}),R,v)});tt.displayName="CheckBox";var I=f.create({root:{cursor:"pointer",height:16,userSelect:"none",width:16},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},fakeControl:{alignItems:"center",backgroundColor:"#fff",borderColor:"#657786",borderRadius:2,borderStyle:"solid",borderWidth:2,height:"100%",justifyContent:"center",width:"100%"},fakeControlChecked:{backgroundColor:"#009688",backgroundImage:'url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K")',backgroundRepeat:"no-repeat",borderColor:"#009688"},fakeControlDisabled:{borderColor:"#CCD6DD"},fakeControlCheckedAndDisabled:{backgroundColor:"#AAB8C2",borderColor:"#AAB8C2"},nativeControl:O(O({},f.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})}),Ca=["children","style","imageStyle","imageRef"],Da={},at=i.forwardRef((e,t)=>{var a=e.children,r=e.style,n=r===void 0?Da:r,o=e.imageStyle,s=e.imageRef,u=T(e,Ca),c=f.flatten(n),d=c.height,E=c.width;return i.createElement(m,{ref:t,style:n},i.createElement(qe,b({},u,{ref:s,style:[{width:E,height:d,zIndex:-1},f.absoluteFill,o]})),a)});at.displayName="ImageBackground";var Aa=["behavior","contentContainerStyle","keyboardVerticalOffset"];class Ia extends i.Component{constructor(){super(...arguments),this.frame=null,this.onLayout=t=>{this.frame=t.nativeEvent.layout}}relativeKeyboardHeight(t){var a=this.frame;if(!a||!t)return 0;var r=t.screenY-(this.props.keyboardVerticalOffset||0);return Math.max(a.y+a.height-r,0)}onKeyboardChange(t){}render(){var t=this.props;t.behavior,t.contentContainerStyle,t.keyboardVerticalOffset;var a=T(t,Aa);return i.createElement(m,b({onLayout:this.onLayout},a))}}function La(e){var t=e.children,a=i.useRef(null);if(A&&!a.current){var r=document.createElement("div");r&&document.body&&(document.body.appendChild(r),a.current=r)}return i.useEffect(()=>{if(A)return()=>{document.body&&a.current&&(document.body.removeChild(a.current),a.current=null)}},[]),a.current&&A?yt.createPortal(t,a.current):null}var Ve=300;function Ma(e,t){return e==="slide"?t?ka:Va:e==="fade"?t?xa:Ga:t?p.container:p.hidden}function wa(e){var t=e.animationType,a=e.children,r=e.onDismiss,n=e.onShow,o=e.visible,s=i.useState(!1),u=s[0],c=s[1],d=i.useRef(!1),E=i.useRef(!1),h=t&&t!=="none",R=i.useCallback(v=>{v&&v.currentTarget!==v.target||(o?n&&n():c(!1))},[n,o]);return i.useEffect(()=>{E.current&&!u&&r&&r(),E.current=u},[u,r]),i.useEffect(()=>{o&&c(!0),o!==d.current&&!h&&R(),d.current=o},[h,o,R]),u||o?U("div",{style:u?Ma(t,o):p.hidden,onAnimationEnd:R,children:a}):null}var p=f.create({container:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:9999},animatedIn:{animationDuration:Ve+"ms",animationTimingFunction:"ease-in"},animatedOut:{pointerEvents:"none",animationDuration:Ve+"ms",animationTimingFunction:"ease-out"},fadeIn:{opacity:1,animationKeyframes:{"0%":{opacity:0},"100%":{opacity:1}}},fadeOut:{opacity:0,animationKeyframes:{"0%":{opacity:1},"100%":{opacity:0}}},slideIn:{transform:"translateY(0%)",animationKeyframes:{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0%)"}}},slideOut:{transform:"translateY(100%)",animationKeyframes:{"0%":{transform:"translateY(0%)"},"100%":{transform:"translateY(100%)"}}},hidden:{opacity:0}}),ka=[p.container,p.animatedIn,p.slideIn],Va=[p.container,p.animatedOut,p.slideOut],xa=[p.container,p.animatedIn,p.fadeIn],Ga=[p.container,p.animatedOut,p.fadeOut],Ha=["active","children","onRequestClose","transparent"],Ua=i.forwardRef((e,t)=>{var a=e.active,r=e.children,n=e.onRequestClose,o=e.transparent,s=T(e,Ha);i.useEffect(()=>{if(A){var c=d=>{a&&d.key==="Escape"&&(d.stopPropagation(),n&&n())};return document.addEventListener("keyup",c,!1),()=>document.removeEventListener("keyup",c,!1)}},[a,n]);var u=i.useMemo(()=>[Q.modal,o?Q.modalTransparent:Q.modalOpaque],[o]);return i.createElement(m,b({},s,{"aria-modal":!0,ref:t,role:a?"dialog":null,style:u}),i.createElement(m,{style:Q.container},r))}),Q=f.create({modal:{position:"fixed",top:0,right:0,bottom:0,left:0},modalTransparent:{backgroundColor:"transparent"},modalOpaque:{backgroundColor:"white"},container:{top:0,flex:1}}),xe=()=>U("div",{role:"none",tabIndex:0,style:Fa.focusBracket});function nt(e){if(!A)return!1;try{e.focus()}catch{}return document.activeElement===e}function rt(e){for(var t=0;t<e.childNodes.length;t++){var a=e.childNodes[t];if(nt(a)||rt(a))return!0}return!1}function ot(e){for(var t=e.childNodes.length-1;t>=0;t--){var a=e.childNodes[t];if(nt(a)||ot(a))return!0}return!1}var Ya=e=>{var t=e.active,a=e.children,r=i.useRef(),n=i.useRef({trapFocusInProgress:!1,lastFocusedElement:null});return i.useEffect(()=>{if(A){var o=()=>{if(!(r.current==null||n.current.trapFocusInProgress||!t)){try{if(n.current.trapFocusInProgress=!0,document.activeElement instanceof Node&&!r.current.contains(document.activeElement)){var s=rt(r.current);n.current.lastFocusedElement===document.activeElement&&(s=ot(r.current)),!s&&r.current!=null&&document.activeElement&&G.focus(r.current)}}finally{n.current.trapFocusInProgress=!1}n.current.lastFocusedElement=document.activeElement}};return o(),document.addEventListener("focus",o,!0),()=>document.removeEventListener("focus",o,!0)}},[t]),i.useEffect(function(){if(A){var o=document.activeElement;return function(){o&&document.contains(o)&&G.focus(o)}}},[]),i.createElement(i.Fragment,null,i.createElement(xe,null),i.createElement(m,{ref:r},a),i.createElement(xe,null))},Fa=f.create({focusBracket:{outlineStyle:"none"}}),ja=["animationType","children","onDismiss","onRequestClose","onShow","transparent","visible"],za=0,w=[],x={};function it(){if(w.length!==0){var e=w[w.length-1];w.forEach(t=>{t in x&&x[t](t===e)})}}function Re(e){e in x&&(x[e](!1),delete x[e]);var t=w.indexOf(e);t!==-1&&(w.splice(t,1),it())}function Ba(e,t){Re(e),w.push(e),x[e]=t,it()}var Wa=i.forwardRef((e,t)=>{var a=e.animationType,r=e.children,n=e.onDismiss,o=e.onRequestClose,s=e.onShow,u=e.transparent,c=e.visible,d=c===void 0?!0:c,E=T(e,ja),h=i.useMemo(()=>za++,[]),R=i.useState(!1),v=R[0],_=R[1],S=i.useCallback(()=>{Re(h),n&&n()},[h,n]),N=i.useCallback(()=>{Ba(h,_),s&&s()},[h,s]);return i.useEffect(()=>()=>Re(h),[h]),i.createElement(La,null,i.createElement(wa,{animationType:a,onDismiss:S,onShow:N,visible:d},i.createElement(Ya,{active:v},i.createElement(Ua,b({},E,{active:v,onRequestClose:o,ref:t,transparent:u}),r))))});function $a(e){var t=e.color,a=e.label,r=e.testID,n=e.value,o={color:t};return U("option",{children:a,style:o,testID:r,value:n})}var qa=["children","enabled","onValueChange","selectedValue","style","testID","itemStyle","mode","prompt"],st=i.forwardRef((e,t)=>{var a=e.children,r=e.enabled,n=e.onValueChange,o=e.selectedValue,s=e.style,u=e.testID;e.itemStyle,e.mode,e.prompt;var c=T(e,qa),d=i.useRef(null);function E(_){var S=_.target,N=S.selectedIndex,C=S.value;n&&n(C,N)}var h=O({children:a,disabled:r===!1?!0:void 0,onChange:E,style:[Xa.initial,s],testID:u,value:o},c),R=Ht(h),v=Se(d,R,t);return h.ref=v,U("select",h)});st.Item=$a;var Xa=f.create({initial:{fontFamily:"System",fontSize:"inherit",margin:0}}),Ka=["color","indeterminate","progress","trackColor","style"],lt=i.forwardRef((e,t)=>{var a=e.color,r=a===void 0?"#1976D2":a,n=e.indeterminate,o=n===void 0?!1:n,s=e.progress,u=s===void 0?0:s,c=e.trackColor,d=c===void 0?"transparent":c,E=e.style,h=T(e,Ka),R=u*100,v=o?"25%":R+"%";return i.createElement(m,b({},h,{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o?null:R,ref:t,role:"progressbar",style:[de.track,E,{backgroundColor:d}]}),i.createElement(m,{style:[{backgroundColor:r,width:v},de.progress,o&&de.animation]}))});lt.displayName="ProgressBar";var de=f.create({track:{forcedColorAdjust:"none",height:5,overflow:"hidden",userSelect:"none",zIndex:0},progress:{forcedColorAdjust:"none",height:"100%",zIndex:-1},animation:{animationDuration:"1s",animationKeyframes:[{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(400%)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"}}),Za=["style"],ee=function(){return A&&window.CSS&&window.CSS.supports&&window.CSS.supports("top: constant(safe-area-inset-top)")?"constant":"env"}(),ut=i.forwardRef((e,t)=>{var a=e.style,r=T(e,Za);return i.createElement(m,b({},r,{ref:t,style:[Ja.root,a]}))});ut.displayName="SafeAreaView";var Ja=f.create({root:{paddingTop:ee+"(safe-area-inset-top)",paddingRight:ee+"(safe-area-inset-right)",paddingBottom:ee+"(safe-area-inset-bottom)",paddingLeft:ee+"(safe-area-inset-left)"}}),j=()=>{};function Y(){return null}Y.setBackgroundColor=j;Y.setBarStyle=j;Y.setHidden=j;Y.setNetworkActivityIndicatorVisible=j;Y.setTranslucent=j;var ct=function(t,a){var r=this;if(r.instancePool.length){var n=r.instancePool.pop();return r.call(n,t,a),n}else return new r(t,a)},Qa=function(t){var a=this;t.destructor(),a.instancePool.length<a.poolSize&&a.instancePool.push(t)},en=10,tn=ct,an=function(t,a){var r=t;return r.instancePool=[],r.getPooled=a||tn,r.poolSize||(r.poolSize=en),r.release=Qa,r},ie={addPoolingTo:an,twoArgumentPooler:ct},nn=ie.twoArgumentPooler;function H(e,t){this.width=e,this.height=t}H.prototype.destructor=function(){this.width=null,this.height=null};H.getPooledFromElement=function(e){return H.getPooled(e.offsetWidth,e.offsetHeight)};ie.addPoolingTo(H,nn);var rn=ie.twoArgumentPooler;function ne(e,t){this.left=e,this.top=t}ne.prototype.destructor=function(){this.left=null,this.top=null};ie.addPoolingTo(ne,rn);var Ge=e=>{var t=e.touches,a=e.changedTouches,r=t&&t.length>0,n=a&&a.length>0;return!r&&n?a[0]:r?t[0]:e},l={NOT_RESPONDER:"NOT_RESPONDER",RESPONDER_INACTIVE_PRESS_IN:"RESPONDER_INACTIVE_PRESS_IN",RESPONDER_INACTIVE_PRESS_OUT:"RESPONDER_INACTIVE_PRESS_OUT",RESPONDER_ACTIVE_PRESS_IN:"RESPONDER_ACTIVE_PRESS_IN",RESPONDER_ACTIVE_PRESS_OUT:"RESPONDER_ACTIVE_PRESS_OUT",RESPONDER_ACTIVE_LONG_PRESS_IN:"RESPONDER_ACTIVE_LONG_PRESS_IN",RESPONDER_ACTIVE_LONG_PRESS_OUT:"RESPONDER_ACTIVE_LONG_PRESS_OUT",ERROR:"ERROR"},ge={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},He=O(O({},ge),{},{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),Ue=O(O({},ge),{},{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),Ye=O(O({},ge),{},{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),y={DELAY:"DELAY",RESPONDER_GRANT:"RESPONDER_GRANT",RESPONDER_RELEASE:"RESPONDER_RELEASE",RESPONDER_TERMINATED:"RESPONDER_TERMINATED",ENTER_PRESS_RECT:"ENTER_PRESS_RECT",LEAVE_PRESS_RECT:"LEAVE_PRESS_RECT",LONG_PRESS_DETECTED:"LONG_PRESS_DETECTED"},Fe={NOT_RESPONDER:{DELAY:l.ERROR,RESPONDER_GRANT:l.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:l.ERROR,RESPONDER_TERMINATED:l.ERROR,ENTER_PRESS_RECT:l.ERROR,LEAVE_PRESS_RECT:l.ERROR,LONG_PRESS_DETECTED:l.ERROR},RESPONDER_INACTIVE_PRESS_IN:{DELAY:l.RESPONDER_ACTIVE_PRESS_IN,RESPONDER_GRANT:l.ERROR,RESPONDER_RELEASE:l.NOT_RESPONDER,RESPONDER_TERMINATED:l.NOT_RESPONDER,ENTER_PRESS_RECT:l.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:l.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:l.ERROR},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:l.RESPONDER_ACTIVE_PRESS_OUT,RESPONDER_GRANT:l.ERROR,RESPONDER_RELEASE:l.NOT_RESPONDER,RESPONDER_TERMINATED:l.NOT_RESPONDER,ENTER_PRESS_RECT:l.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:l.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:l.ERROR},RESPONDER_ACTIVE_PRESS_IN:{DELAY:l.ERROR,RESPONDER_GRANT:l.ERROR,RESPONDER_RELEASE:l.NOT_RESPONDER,RESPONDER_TERMINATED:l.NOT_RESPONDER,ENTER_PRESS_RECT:l.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:l.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:l.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:l.ERROR,RESPONDER_GRANT:l.ERROR,RESPONDER_RELEASE:l.NOT_RESPONDER,RESPONDER_TERMINATED:l.NOT_RESPONDER,ENTER_PRESS_RECT:l.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:l.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:l.ERROR},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:l.ERROR,RESPONDER_GRANT:l.ERROR,RESPONDER_RELEASE:l.NOT_RESPONDER,RESPONDER_TERMINATED:l.NOT_RESPONDER,ENTER_PRESS_RECT:l.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:l.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:l.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:l.ERROR,RESPONDER_GRANT:l.ERROR,RESPONDER_RELEASE:l.NOT_RESPONDER,RESPONDER_TERMINATED:l.NOT_RESPONDER,ENTER_PRESS_RECT:l.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:l.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:l.ERROR},error:{DELAY:l.NOT_RESPONDER,RESPONDER_GRANT:l.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:l.NOT_RESPONDER,RESPONDER_TERMINATED:l.NOT_RESPONDER,ENTER_PRESS_RECT:l.NOT_RESPONDER,LEAVE_PRESS_RECT:l.NOT_RESPONDER,LONG_PRESS_DETECTED:l.NOT_RESPONDER}},ve=130,te=20,on=500,je=on-ve,sn=10,z={componentDidMount:function(){var t=this.getTouchableNode&&this.getTouchableNode();t&&t.addEventListener&&(this._touchableBlurListener=a=>{this._isTouchableKeyboardActive&&(this.state.touchable.touchState&&this.state.touchable.touchState!==l.NOT_RESPONDER&&this.touchableHandleResponderTerminate({nativeEvent:a}),this._isTouchableKeyboardActive=!1)},t.addEventListener("blur",this._touchableBlurListener))},componentWillUnmount:function(){var t=this.getTouchableNode&&this.getTouchableNode();t&&t.addEventListener&&t.removeEventListener("blur",this._touchableBlurListener),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressInLocation=null,this.state.touchable.responderID=null},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(t){var a=t.currentTarget;t.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=l.NOT_RESPONDER,this.state.touchable.responderID=a,this._receiveSignal(y.RESPONDER_GRANT,t);var r=this.touchableGetHighlightDelayMS!==void 0?Math.max(this.touchableGetHighlightDelayMS(),0):ve;r=isNaN(r)?ve:r,r!==0?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,t),r):this._handleDelay(t);var n=this.touchableGetLongPressDelayMS!==void 0?Math.max(this.touchableGetLongPressDelayMS(),10):je;n=isNaN(n)?je:n,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,t),n+r)},touchableHandleResponderRelease:function(t){this.pressInLocation=null,this._receiveSignal(y.RESPONDER_RELEASE,t)},touchableHandleResponderTerminate:function(t){this.pressInLocation=null,this._receiveSignal(y.RESPONDER_TERMINATED,t)},touchableHandleResponderMove:function(t){if(this.state.touchable.positionOnActivate){var a=this.state.touchable.positionOnActivate,r=this.state.touchable.dimensionsOnActivate,n=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:te,right:te,top:te,bottom:te},o=n.left,s=n.top,u=n.right,c=n.bottom,d=this.touchableGetHitSlop?this.touchableGetHitSlop():null;d&&(o+=d.left||0,s+=d.top||0,u+=d.right||0,c+=d.bottom||0);var E=Ge(t.nativeEvent),h=E&&E.pageX,R=E&&E.pageY;if(this.pressInLocation){var v=this._getDistanceBetweenPoints(h,R,this.pressInLocation.pageX,this.pressInLocation.pageY);v>sn&&this._cancelLongPressDelayTimeout()}var _=h>a.left-o&&R>a.top-s&&h<a.left+r.width+u&&R<a.top+r.height+c;if(_){var S=this.state.touchable.touchState;this._receiveSignal(y.ENTER_PRESS_RECT,t);var N=this.state.touchable.touchState;N===l.RESPONDER_INACTIVE_PRESS_IN&&S!==l.RESPONDER_INACTIVE_PRESS_IN&&this._cancelLongPressDelayTimeout()}else this._cancelLongPressDelayTimeout(),this._receiveSignal(y.LEAVE_PRESS_RECT,t)}},touchableHandleFocus:function(t){this.props.onFocus&&this.props.onFocus(t)},touchableHandleBlur:function(t){this.props.onBlur&&this.props.onBlur(t)},_remeasureMetricsOnActivation:function(){var t=this.state.touchable.responderID;t!=null&&G.measure(t,this._handleQueryLayout)},_handleQueryLayout:function(t,a,r,n,o,s){!t&&!a&&!r&&!n&&!o&&!s||(this.state.touchable.positionOnActivate&&ne.release(this.state.touchable.positionOnActivate),this.state.touchable.dimensionsOnActivate&&H.release(this.state.touchable.dimensionsOnActivate),this.state.touchable.positionOnActivate=ne.getPooled(o,s),this.state.touchable.dimensionsOnActivate=H.getPooled(r,n))},_handleDelay:function(t){this.touchableDelayTimeout=null,this._receiveSignal(y.DELAY,t)},_handleLongDelay:function(t){this.longPressDelayTimeout=null;var a=this.state.touchable.touchState;a!==l.RESPONDER_ACTIVE_PRESS_IN&&a!==l.RESPONDER_ACTIVE_LONG_PRESS_IN?console.error("Attempted to transition from state `"+a+"` to `"+l.RESPONDER_ACTIVE_LONG_PRESS_IN+"`, which is not supported. This is most likely due to `Touchable.longPressDelayTimeout` not being cancelled."):this._receiveSignal(y.LONG_PRESS_DETECTED,t)},_receiveSignal:function(t,a){var r=this.state.touchable.responderID,n=this.state.touchable.touchState,o=Fe[n]&&Fe[n][t];if(!(!r&&t===y.RESPONDER_RELEASE)){if(!o)throw new Error("Unrecognized signal `"+t+"` or state `"+n+"` for Touchable responder `"+r+"`");if(o===l.ERROR)throw new Error("Touchable cannot transition from `"+n+"` to `"+t+"` for responder `"+r+"`");n!==o&&(this._performSideEffectsForTransition(n,o,t,a),this.state.touchable.touchState=o)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(t){return t===l.RESPONDER_ACTIVE_PRESS_IN||t===l.RESPONDER_ACTIVE_LONG_PRESS_IN},_savePressInLocation:function(t){var a=Ge(t.nativeEvent),r=a&&a.pageX,n=a&&a.pageY,o=a&&a.locationX,s=a&&a.locationY;this.pressInLocation={pageX:r,pageY:n,locationX:o,locationY:s}},_getDistanceBetweenPoints:function(t,a,r,n){var o=t-r,s=a-n;return Math.sqrt(o*o+s*s)},_performSideEffectsForTransition:function(t,a,r,n){var o=this._isHighlight(t),s=this._isHighlight(a),u=r===y.RESPONDER_TERMINATED||r===y.RESPONDER_RELEASE;u&&this._cancelLongPressDelayTimeout();var c=t===l.NOT_RESPONDER&&a===l.RESPONDER_INACTIVE_PRESS_IN,d=!He[t]&&He[a];if((c||d)&&this._remeasureMetricsOnActivation(),Ue[t]&&r===y.LONG_PRESS_DETECTED&&this.touchableHandleLongPress&&this.touchableHandleLongPress(n),s&&!o?this._startHighlight(n):!s&&o&&this._endHighlight(n),Ue[t]&&r===y.RESPONDER_RELEASE){var E=!!this.props.onLongPress,h=Ye[t]&&(!E||!this.touchableLongPressCancelsPress()),R=!Ye[t]||h;R&&this.touchableHandlePress&&(!s&&!o&&(this._startHighlight(n),this._endHighlight(n)),this.touchableHandlePress(n))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_playTouchSound:function(){G.playTouchSound()},_startHighlight:function(t){this._savePressInLocation(t),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(t)},_endHighlight:function(t){this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout(()=>{this.touchableHandleActivePressOut(t)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(t))},touchableHandleKeyEvent:function(t){var a=t.type,r=t.key;(r==="Enter"||r===" ")&&(a==="keydown"?this._isTouchableKeyboardActive||(!this.state.touchable.touchState||this.state.touchable.touchState===l.NOT_RESPONDER)&&(this.touchableHandleResponderGrant(t),this._isTouchableKeyboardActive=!0):a==="keyup"&&this._isTouchableKeyboardActive&&this.state.touchable.touchState&&this.state.touchable.touchState!==l.NOT_RESPONDER&&(this.touchableHandleResponderRelease(t),this._isTouchableKeyboardActive=!1),t.stopPropagation(),r==="Enter"&&pt.propsToAriaRole(this.props)==="link"||t.preventDefault())},withoutDefaultFocusAndBlur:{}};z.touchableHandleFocus;z.touchableHandleBlur;var ln=T(z,["touchableHandleFocus","touchableHandleBlur"]);z.withoutDefaultFocusAndBlur=ln;var dt={Mixin:z,TOUCH_TARGET_DEBUG:!1,renderDebugView:e=>{var t=e.color,a=e.hitSlop;if(!dt.TOUCH_TARGET_DEBUG)return null;var r={};a=a||{top:0,bottom:0,left:0,right:0};for(var n in a)r[n]=-a[n];var o=St(t);if(typeof o!="number")return null;var s="#"+("00000000"+o.toString(16)).substr(-8);return M.createElement(m,{pointerEvents:"none",style:O({position:"absolute",borderColor:s.slice(0,-2)+"55",borderWidth:1,borderStyle:"dashed",backgroundColor:s.slice(0,-2)+"0F"},r)})}},un=["style"];function Et(e){var t=e.style,a=T(e,un);return M.createElement(m,b({},a,{style:[cn,t]}))}var cn={},dn={accessibilityDisabled:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,children:!0,disabled:!0,focusable:!0,nativeID:!0,onBlur:!0,onFocus:!0,onLayout:!0,testID:!0},En=e=>Ut(e,dn);function hn(e,t){var a=e.delayPressIn,r=e.delayPressOut,n=e.delayLongPress,o=e.disabled,s=e.focusable,u=e.onLongPress,c=e.onPress,d=e.onPressIn,E=e.onPressOut,h=e.rejectResponderTermination,R=i.useRef(null),v=i.useMemo(()=>({cancelable:!h,disabled:o,delayLongPress:n,delayPressStart:a,delayPressEnd:r,onLongPress:u,onPress:c,onPressStart:d,onPressEnd:E}),[o,a,r,n,u,c,d,E,h]),_=Xe(R,v),S=i.Children.only(e.children),N=[S.props.children],C=En(e);C.accessibilityDisabled=o,C.focusable=!o&&s!==!1,C.ref=Se(t,R,S.ref);var se=Object.assign(C,_);return i.cloneElement(S,se,...N)}var ht=i.memo(i.forwardRef(hn));ht.displayName="TouchableWithoutFeedback";function Rt(e){return M.createElement(Et,e)}Rt.ignoreWarnings=()=>{};var Rn={ignoreLogs(){},ignoreAllLogs(){},uninstall(){},install(){}};function vn(){var e=i.useState(Ee.getColorScheme()),t=e[0],a=e[1];return i.useEffect(()=>{function r(s){a(s.colorScheme)}var n=Ee.addChangeListener(r),o=n.remove;return o}),t}const mn=Object.freeze(Object.defineProperty({__proto__:null,AccessibilityInfo:Ct,ActivityIndicator:Qe,Alert:We,Animated:It,AppRegistry:ae,AppState:Dt,Appearance:Ee,BackHandler:da,Button:et,CheckBox:tt,Clipboard:Ea,DeviceEventEmitter:Xt,Dimensions:Ot,Easing:Lt,FlatList:Mt,I18nManager:ha,Image:qe,ImageBackground:at,InteractionManager:fe,Keyboard:Ra,KeyboardAvoidingView:Ia,LayoutAnimation:va,Linking:$e,LogBox:Rn,Modal:Wa,NativeEventEmitter:Kt,NativeModules:Nt,PanResponder:V,Picker:st,PixelRatio:Gt,Platform:Be,Pressable:Bt,ProgressBar:lt,RefreshControl:wt,SafeAreaView:ut,ScrollView:kt,SectionList:Vt,Share:ga,StatusBar:Y,StyleSheet:f,Switch:Wt,Text:Ze,TextInput:$t,Touchable:dt,TouchableHighlight:qt,TouchableNativeFeedback:Et,TouchableOpacity:_e,TouchableWithoutFeedback:ht,UIManager:G,Vibration:Pa,View:m,VirtualizedList:xt,YellowBox:Rt,findNodeHandle:Pt,processColor:_t,render:Je,unmountComponentAtNode:oe,unstable_createElement:U,useColorScheme:vn,useLocaleContext:gt,useWindowDimensions:Zt},Symbol.toStringTag,{value:"Module"})),qn=ft(mn),ze=({children:e,emphasis:t,inverse:a,onPress:r,phraseVariant:n,logAction:o=Ft.buttonPress,...s})=>{const u=Yt({...s,logAction:o,onEvent:r});return Jt.jsx(Qt,{accessibilityRole:"link",color:a?"inverse":"link",emphasis:t,onPress:u,underline:!0,variant:n,...s,children:e})};try{ze.displayName="InlineLink",ze.__docgenInfo={description:"",displayName:"InlineLink",props:{emphasis:{defaultValue:null,description:"Allows the phrase to convey more emphasis.",name:"emphasis",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"strong"'}]}},inverse:{defaultValue:null,description:"",name:"inverse",required:!1,type:{name:"boolean"}},onPress:{defaultValue:null,description:`This function is called on press. +Text intrinsically supports press handling with a default highlight state (which can be disabled with suppressHighlighting).`,name:"onPress",required:!1,type:{name:"(() => void) & ((event: GestureResponderEvent) => void)"}},phraseVariant:{defaultValue:null,description:"",name:"phraseVariant",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"body"'},{value:'"intro"'},{value:'"quote"'},{value:'"extraSmall"'}]}},testID:{defaultValue:null,description:"Used to locate this view in end-to-end tests.",name:"testID",required:!1,type:{name:"string"}},color:{defaultValue:null,description:"Defines the color of the phrase. Maps with the text color tokens.",name:"color",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"inverse"'},{value:'"warning"'}]}},flexShrink:{defaultValue:null,description:"Defines how to shrink the phrase in case the parent container is smaller than the phrase.",name:"flexShrink",required:!1,type:{name:"number"}},"logging-label":{defaultValue:null,description:"Label used for logging to Piwik and AppInsights.",name:"logging-label",required:!1,type:{name:"string"}},textAlign:{defaultValue:null,description:"Defines the alignment of the text. Maps with the textAlign style prop options.",name:"textAlign",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"center"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'}]}},underline:{defaultValue:null,description:"Whether the phrase is underlined. Use this for a link only.",name:"underline",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"Which variation of a phrase to display.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"body"'},{value:'"intro"'},{value:'"quote"'},{value:'"extraSmall"'}]}},logAction:{defaultValue:{value:"PiwikAction.buttonPress"},description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"access-code"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"notification-history"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"Custom dimensions to log with the event.",name:"logDimensions",required:!1,type:{name:"Partial<Record<CustomDimensionKeys, string>>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}const fn=e=>/^https?:\/\/([\w-.]+.)?amsterdam\.nl/.test(e),Sn=(e,t)=>{if(!fn(e))return e;const a=jt.stringify({app_from:1,app_module:t}),[r,n]=e.split("#"),o=n?`#${n}`:"",s=`${r.includes("?")?"&":"?"}${a}`;return`${r}${s}${o}`},pn=()=>{const e=aa(),{trackOutlink:t}=Ke();return i.useCallback(a=>{const r=Sn(a,zt());t(r),$e.openURL(r).catch(()=>{We.alert("Sorry, deze functie is niet beschikbaar."),e(na.openWebUrl,"useOpenWebUrl.ts",{url:a})})},[e,t])},Xn=()=>{const e=ea(),t=ta(),a=pn(),{trackOutlink:r}=Ke();return i.useCallback(n=>{if(r(n),n.startsWith("mailto:")){const[o,s]=n.substring(7).split("?subject=");e(o,s);return}if(n.startsWith("tel:")){t(n.substring(4));return}a(n)},[e,t,a,r])};export{ze as I,Ra as K,va as L,Wa as M,Y as S,Et as U,Rn as a,Xn as b,Ia as c,ha as d,qn as r,pn as u}; diff --git a/iframe.html b/iframe.html index 6d9188b7..641e542f 100644 --- a/iframe.html +++ b/iframe.html @@ -509,7 +509,7 @@ } </script> - <script type="module" crossorigin src="./assets/iframe-4y4VsLB1.js"></script> + <script type="module" crossorigin src="./assets/iframe-Cclg9cWs.js"></script> </head> <body> diff --git a/project.json b/project.json index 83cf6409..476f6eac 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1733947107767,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@types/jest":"29.5.12","babel-jest":"29.7.0","eslint-plugin-jest":"27.9.0","jest":"29.7.0","jest-matcher-deep-close-to":"3.0.2","jest-trx-results-processor":"3.0.2"},"packageManager":{"type":"npm","version":"10.8.1"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":0,"language":"typescript","storybookPackages":{"@storybook/react-vite":{"version":"8.4.2"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.4.2"}},"addons":{"@storybook/addon-essentials":{"version":"8.4.2"},"@storybook/addon-a11y":{"version":"8.4.2"}}} \ No newline at end of file +{"generatedAt":1733947423819,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@types/jest":"29.5.12","babel-jest":"29.7.0","eslint-plugin-jest":"27.9.0","jest":"29.7.0","jest-matcher-deep-close-to":"3.0.2","jest-trx-results-processor":"3.0.2"},"packageManager":{"type":"npm","version":"10.8.1"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":0,"language":"typescript","storybookPackages":{"@storybook/react-vite":{"version":"8.4.2"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.4.2"}},"addons":{"@storybook/addon-essentials":{"version":"8.4.2"},"@storybook/addon-a11y":{"version":"8.4.2"}}} \ No newline at end of file diff --git a/version.txt b/version.txt index 452bb866..da73e4f1 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.10.0.20241211.2 +1.10.0.20241211.3