PageSourceSearch

https://www.asaptelecom.com.br/assets/index-BrI9cKls.js

js asaptelecom.com.br collected 2026-10-05 19:05:07 UTC 854,750 bytes, 295 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FloatingChat-1dR4f6q-.js","assets/map-context-8T8ckZq5.js","assets/capacity-bWXC8W1W.js","assets/badge-DBo0VhBL.js","assets/CookieConsentBanner-Dk0RZAZR.js","assets/clarityTagging-DXHzvXA9.js","assets/routebotViability-o4nKRRJc.js","assets/circle-alert-D0AVmgFq.js","assets/productIconMapping-CKd80wdG.js","assets/googleAdsConversion-HB9iT4cO.js","assets/AAsap-DfRaaomh.js","assets/HeroBody-iZG2WVtU.js","assets/TypingHeroText-CIbCVc9m.js","assets/proxy-BUKcJtlL.js","assets/Provedores-BQa6PpM-.js","assets/embla-carousel-autoplay.esm-BMa-qFlt.js","assets/JsonLd-Bhe5VQSI.js","assets/circle-check-DfnTJZ6K.js","assets/trending-up-C0Vgd5LB.js","assets/chevron-left-DGVZ6Z_2.js","assets/chevron-right-Cg221iaa.js","assets/star-D-66Xx48.js","assets/Empresas-DbkUlEyG.js","assets/copy-51qejsst.js","assets/briefcase-fWAuXf8-.js","assets/package-C53jXkJ1.js","assets/megaphone-Cc3EfIQF.js","assets/headphones-NtRkpt_B.js","assets/lock-CAwDvhJz.js","assets/clock-V0t3RwYl.js","assets/DataCenter-CQkfNOJx.js","assets/alerta-arlei-B1d_PrYk.js","assets/accordion-je8CpjK5.js","assets/index-DQMzxqgL.js","assets/index-cC8qIDH2.js","assets/datacenter-hero-BJ67Bsl8.js","assets/play-juzN7PEK.js","assets/layers-DWf9lVi6.js","assets/zap-PkcqmZKQ.js","assets/bell-Bhkmuj-s.js","assets/monitor-DBUlg8Ll.js","assets/navigation-CDvwJXLv.js","assets/Comparativo-D3IjTtTR.js","assets/LinksDoOrganico-DgRIsxsI.js","assets/book-open-Cp01-OhB.js","assets/arrow-up-right-Bv1W3Jn5.js","assets/gauge-DKt3kJaa.js","assets/Ferramentas-CpklVqb6.js","assets/YouTubeVideosSection-C8VGUrr1.js","assets/youtubeVideosService-PWp4IRPO.js","assets/useReducedMotion-DAEeFUjH.js","assets/table-Cr97uf42.js","assets/index-CrGraqp7.js","assets/siteToolsService-DPv72LfH.js","assets/settingsService-BOWpVrVW.js","assets/arrow-up-C-lwip_w.js","assets/shield-DQUHeZs3.js","assets/route-DGptyj13.js","assets/log-in-BIO1qv_X.js","assets/chart-column-E0yg8y9o.js","assets/download-CQjYE5em.js","assets/file-text-CMsqi63K.js","assets/Blog-D_nQe-jc.js","assets/blogPostsService-CP4469z9.js","assets/googleIndexingService-BMsFkF2k.js","assets/blogCategoriesService-BNE1AoHl.js","assets/newsletterService-B_vULmuw.js","assets/types-BnTeS-Hg.js","assets/calendar-JJYXXTmA.js","assets/BlogPost-BUz6j25O.js","assets/arrow-left-7OElIKwa.js","assets/Breadcrumbs-SSofn0vE.js","assets/Busca-CEA2hk_i.js","assets/Contato-zF7nR59o.js","assets/handshake-TI8u35Rk.js","assets/users-B7pCgje0.js","assets/CentralCliente-BUtByU8s.js","assets/user-plus-D9yIqhG-.js","assets/ClienteDashboard-DX089JN2.js","assets/log-out-BGNcFn-_.js","assets/construction-JfWpWGUR.js","assets/settings-BrWe72hK.js","assets/Documentacao-DSfzHFF9.js","assets/card-WtjkvCKY.js","assets/file-json-eG41DtEO.js","assets/ApiDocs-BweRUkjU.js","assets/Guias-Bh3SAzLo.js","assets/guideCategoriesService-DLKToPSD.js","assets/sheet--Zuvv_oc.js","assets/scroll-area-DgxJXlr1.js","assets/index-BdQq_4o_.js","assets/PoliticaPrivacidade-Cb_AH3SP.js","assets/NotFound-0Yb6WZ4j.js","assets/Obrigado-D9NUrtmu.js","assets/LpCampanha-BKGQW3dd.js","assets/LpShell-C8tplbYn.js","assets/LpShell-BFmM5ZW6.css","assets/lpCampanha-CLtyWJS0.js","assets/AdminIndex-CGyxbVcg.js","assets/AdminLogin-DrfJG1DY.js","assets/LOGO_ASAP-CiCtH8B-.js","assets/AdminSignup-a-ZWBbIf.js","assets/select-Bns8S48C.js","assets/chevron-up-BugUtsB5.js","assets/refresh-cw-BMVWApbS.js","assets/AdminPending-Df7rY4Az.js","assets/circle-x-D4CZekAe.js","assets/AdminHome-DpdmJaT9.js","assets/AdminLayout-4hngj_-z.js","assets/collapsible-aVvM0VPf.js","assets/LOGO_ASAP_DARKBLUE-CkWx3GBd.js","assets/SectionTitle-W0tcqWGS.js","assets/PeriodoFilter-BQBU-b54.js","assets/calendar-CG78UJ8Q.js","assets/startOfMonth-vkF23T-U.js","assets/format-CuzBZQmx.js","assets/endOfMonth-pncB-UIs.js","assets/differenceInCalendarMonths-DhcDC4ff.js","assets/popover-DqTb4zDK.js","assets/skeleton-C8j0p8KR.js","assets/user-check-CgChr-8O.js","assets/formatDistanceToNow-5zcWFyxB.js","assets/constructNow-B88mW9oT.js","assets/trending-down-DbuL96n9.js","assets/AdminUsuariosNew-BQ39ZJ58.js","assets/AdminDocBanner-DCo3x5RT.js","assets/info-dzGYY7wF.js","assets/upload-C8Mbblrn.js","assets/tabs-C93t5z0H.js","assets/useMutation-D2FUPk3y.js","assets/settings-2-CmMqtqos.js","assets/AdminConfigPage-CDAg_bW3.js","assets/save-CQpK6x4o.js","assets/triangle-alert-MlzeGPMw.js","assets/link-BtXHmgOj.js","assets/AdminIntegracoes-Img3dhUP.js","assets/AdminCalendario-CoTJGf7L.js","assets/plus-WX4Le-GG.js","assets/list-DboAW1Ka.js","assets/pencil-9tj_SxTf.js","assets/trash-2-BVwhEGcM.js","assets/AdminGuiasPage-BhgVNK3F.js","assets/alert-dialog-CRzCWrvd.js","assets/eye-DbFtPr1p.js","assets/eye-off-BjaE5dcF.js","assets/guidePersonasService-CTclPABQ.js","assets/switch-BGSZHk-9.js","assets/grip-vertical-u7XG28eP.js","assets/arrow-down-CXK-dFru.js","assets/AdminGuiasEditor-RDhQxpW-.js","assets/RichTextEditor-CYjl-bsp.js","assets/image-plus-DQAd5QHI.js","assets/circle-help-CwH4Q8YB.js","assets/AdminVideosYT-EZ4SvWg6.js","assets/AdminIntranet-DmlSsjqG.js","assets/separator-jTrZ-85J.js","assets/tag-BGgejA6C.js","assets/AdminGaleria-DTVc84GK.js","assets/image-CZn-aFPd.js","assets/AdminSiteFerramentas--vYWR0dm.js","assets/AdminPOPsPage-C6C-jWPk.js","assets/geocodingService-BGkmeBsi.js","assets/CamadaDeFundo-BZMLp95d.js","assets/CamadaDeFundo-DFbJ4UAI.css","assets/filter-BmVOsCLk.js","assets/AdminBlogList-BUXi1Q3W.js","assets/AdminBlogNew-D8gigsvd.js","assets/AdminInstagram-CimpDBd-.js","assets/AdminSiteMateriais-C2SmhDHG.js","assets/progress-Da-BKG3a.js","assets/AdminHeroEditor-DqRA9FxB.js","assets/AdminSiteGaleriaDC-DMYTf40T.js","assets/AdminSiteLogos-DI3u3vmT.js","assets/AdminPerfil-BtR8WizP.js","assets/AdminNewsletter-CdxXltW1.js","assets/AdminLeadsAyla-DVO
16nNIt.js","assets/leadsService-elZkdAN4.js","assets/target-DtjdqvI8.js","assets/AdminLeadsAll-_DVZxh1F.js","assets/AdminNotFound-CQvnpmqX.js","assets/AdminResetPassword-CU23XECS.js","assets/AdminAIConfig-B0joHCrb.js","assets/database-BM_KcyWY.js","assets/ProductSpreadsheetManager-Qt-eRSmQ.js","assets/sparkles-Cnq1LPZh.js","assets/AdminAnalytics-BDeNJBNI.js","assets/analyticsService-6E7L9Jwa.js","assets/minus-BIc8BT4r.js","assets/generateCategoricalChart-CONwyoiE.js","assets/AreaChart-CCpWl72v.js","assets/AdminViability-nFeafBSA.js","assets/radio-nVmjXRxi.js","assets/arrow-up-down-Cw3jqnAm.js","assets/AdminProducts-CXIoJO4-.js","assets/AdminSiteTracking-D1JQA4mc.js","assets/AdminCampanhas-DXP9HSLW.js","assets/campaignAnalyticsService-emYdgfe5.js","assets/BarChart-CJOOSspS.js","assets/AdminPalavrasChave-DQ4rrH2G.js","assets/AdminLpTestes-KgV6Tim6.js","assets/history-EA5neFrD.js","assets/list-checks-BtZHcAfl.js","assets/AdminLeadSources-Ce3mwROX.js","assets/AdminLIAMetrics-DK_mJiOU.js","assets/chatAnalyticsService-BUNZlc6t.js","assets/AdminSZChat-ipB6fXCK.js","assets/AdminPerformance-CwrY1fNg.js","assets/AdminLIAPublicAPI-CHsHTm2c.js","assets/AdminLIATriggers-awTICu0x.js","assets/AdminBackups-ymyVWjAa.js","assets/Rede-sIRbnGiN.js"])))=>i.map(i=>d[i]);
2var Vl=t=>{throw TypeError(t)};var zo=(t,e,r)=>e.has(t)||Vl("Cannot "+r);var _=(t,e,r)=>(zo(t,e,"read from private field"),r?r.call(t):e.get(t)),G=(t,e,r)=>e.has(t)?Vl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),B=(t,e,r,a)=>(zo(t,e,"write to private field"),a?a.call(t,r):e.set(t,r),r),re=(t,e,r)=>(zo(t,e,"access private method"),r);var yn=(t,e,r,a)=>({set _(n){B(t,e,n,r)},get _(){return _(t,e,a)}});import{r as Ns,R as ku,c as we,u as wo,L as dt,a as cn,M as Ra,p as Si,o as Ci,b as Og,d as Ig,i as Ng,g as Rg,S as jg,_ as M,e as Lg,f as Dg,h as Fg,j as Mg,A as Ou,t as Bg,k as Ug,s as Iu,l as Nu,D as Rs,m as Ru,n as Hl,q as qg,v as Kl,B as Wg,w as Vg,x as Hg,y as k,N as $e,z as Kg,C as Go}from"./clarityTagging-DXHzvXA9.js";import{r as m,j as c,R as $,a as ju,g as dn,b as js,c as Fr}from"./map-context-8T8ckZq5.js";import{u as Oe,c as Xn,a as ne,b as Lu,d as zg,B as Pt,C as Gg}
2from"./CookieConsentBanner-Dk0RZAZR.js";import{t as Xg}from"./googleAdsConversion-HB9iT4cO.js";function Jg(t,e){for(var r=0;r<e.length;r++){const a=e[r];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in t)){const o=Object.getOwnPropertyDescriptor(a,n);o&&Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const Qg=1,Yg=1e6;let Xo=0;function Zg(){return Xo=(Xo+1)%Number.MAX_SAFE_INTEGER,Xo.toString()}const Jo=new Map,zl=t=>{if(Jo.has(t))return;const e=setTimeout(()=>{Jo.delete(t),ja({type:"REMOVE_TOAST",toastId:t})},Yg);Jo.set(t,e)},e0=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,Qg)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(r=>r.id===e.toast.id?{...r,...e.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=e;return r?zl(r):t.toasts.forEach(a=>{zl(a.id)}),{...t,toasts:t.toasts.map(a=>a.id===r||r===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==e.toastId)}}},Dn=[];let Fn={toasts:[]};function ja(t){Fn=e0(Fn,t),Dn.forEach(e=>{e(Fn)})}function t0({...t}){const e=Zg(),r=n=>ja({type:"UPDATE_TOAST",toast:{...n,id:e}}),a=()=>ja({type:"DISMISS_TOAST",toastId:e});return ja({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:n=>{n||a()}}}),{id:e,dismiss:a,update:r}}function r0(){const[t,e]=m.useState(Fn);return m.useEffect(()=>(Dn.push(e),()=>{const r=Dn.indexOf(e);r>-1&&Dn.splice(r,1)}),[t]),{...t,toast:t0,dismiss:r=>ja({type:"DISMISS_TOAST",toastId:r})}}function ge(t,e,{checkForDefaultPrevented:r=!0}={}){return function(n){if(t==null||t(n),r===!1||!n.defaultPrevented)return e==null?void 0:e(n)}}function a0(t,e){const r=m.createContext(e),a=o=>{const{children:i,...s}=o,l=m.useMemo(()=>s,Object.values(s));return c.jsx(r.Provider,{value:l,children:i})};a.displayName=t+"Provider";function n(o){const i=m.useContext(r);if(i)return i;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return[a,n]}function Pa(t,e=[]){let r=[];function a(o,i){const s=m.createContext(i),l=r.length;r=[...r,i];const d=p=>{var v;const{scope:f,children:h,...b}=p,y=((v=f==null?void 0:f[t])==null?void 0:v[l])||s,g=m.useMemo(()=>b,Object.values(b));return c.jsx(y.Provider,{value:g,children:h})};d.displayName=o+"Provider";function u(p,f){var y;const h=((y=f==null?void 0:f[t])==null?void 0:y[l])||s,b=m.useContext(h);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[d,u]}const n=()=>{const o=r.map(i=>m.createContext(i));return function(s){const l=(s==null?void 0:s[t])||o;return m.useMemo(()=>({[`__scope${t}`]:{...s,[t]:l}}),[s,l])}};return n.scopeName=t,[a,n0(n,...e)]}function n0(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const a=t.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=a.reduce((s,{useScope:l,scopeName:d})=>{const p=l(o)[`__scope${d}`];return{...s,...p}},{});return m.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return r.scopeName=e.scopeName,r}function o0(t){const e=t+"CollectionProvider",[r,a]=Pa(e),[n,o]=r(e,{collectionRef:{current:null},itemMap:new Map}),i=y=>{const{scope:g,children:v}=y,w=$.useRef(null),P=$.useRef(new Map).current;return c.jsx(n,{scope:g,itemMap:P,collectionRef:w,children:v})};i.displayName=e;const s=t+"CollectionSlot",l=Xn(s),d=$.forwardRef((y,g)=>{const{scope:v,children:w}=y,P=o(s,v),x=Oe(g,P.collectionRef);return c.jsx(l,{ref:x,children:w})});d.displayName=s;const u=t+"CollectionItemSlot",p="data-radix-collection-item",f=Xn(u),h=$.forwardRef((y,g)=>{const{scope:v,children:w,...P}=y,x=$.useRef(null),C=Oe(g,x),S=o(u,v);return $.useEffect(()=>(S.itemMap.set(x,{ref:x,...P}),()=>void S.itemMap.delete(x))),c.jsx(f,{[p]:"",ref:C,children:w})});h.displayName=u;function b(y){const g=o(t+"CollectionConsumer",y);return $.useCallback(()=>{const w=g.collectionRef.current;if(!w)return[];const P=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((S,A)=>P.indexOf(S.ref.current)-P.indexOf(A.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:d,ItemSlot:h},b,a]}var i0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ye=i0.reduce((t,e)=>{const r=Xn(`Primitive.${e}`),a=m.forwardRef((n,o)=>{const{asChild:i,...s}=n,l=i?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...s,ref:o})});return a.displayName=`Primitive.${e}`,{...t,[e]:a}},{});function Du(t,e){t&&Ns.flushSync(()=>t.dispatchEvent(e))}function _t(t){const e=m.useRef(t);return m.useEffect(()=>{e.current=t}),m.useMemo(()=>(...r)=>{var a;return(a=e.current)==null?void 0:a.call(e,...r)},[])}function s0(t,e=globalThis==null?void 0:globalThis.document){const r=_t(t);m.useEffect(()=>{const a=n=>{n.key==="Escape"&&r(n)};return e.addEventListener("keydown",a,{capture:!0}),()=>e.removeEventListener("keydown",a,{capture:!0})},[r,e])}
vendor: 5,678 bytes, line 2
2var l0="DismissableLayer",Ai="dismissableLayer.update",c0="dismissableLayer.pointerDownOutside",d0="dismissableLayer.focusOutside",Gl,Fu=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Po=m.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:n,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=t,d=m.useContext(Fu),[u,p]=m.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=m.useState({}),b=Oe(e,A=>p(A)),y=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),v=y.indexOf(g),w=u?y.indexOf(u):-1,P=d.layersWithOutsidePointerEventsDisabled.size>0,x=w>=v,C=h0(A=>{const I=A.target,T=[...d.branches].some(O=>O.contains(I));!x||T||(n==null||n(A),i==null||i(A),A.defaultPrevented||s==null||s())},f),S=p0(A=>{const I=A.target;[...d.branches].some(O=>O.contains(I))||(o==null||o(A),i==null||i(A),A.defaultPrevented||s==null||s())},f);return s0(A=>{w===d.layers.size-1&&(a==null||a(A),!A.defaultPrevented&&s&&(A.preventDefault(),s()))},f),m.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Gl=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Xl(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Gl)}},[u,f,r,d]),m.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Xl())},[u,d]),m.useEffect(()=>{const A=()=>h({});return document.addEventListener(Ai,A),()=>document.removeEventListener(Ai,A)},[]),c.jsx(ye.div,{...l,ref:b,style:{pointerEvents:P?x?"auto":"none":void 0,...t.style},onFocusCapture:ge(t.onFocusCapture,S.onFocusCapture),onBlurCapture:ge(t.onBlurCapture,S.onBlurCapture),onPointerDownCapture:ge(t.onPointerDownCapture,C.onPointerDownCapture)})});Po.displayName=l0;var u0="DismissableLayerBranch",Mu=m.forwardRef((t,e)=>{const r=m.useContext(Fu),a=m.useRef(null),n=Oe(e,a);return m.useEffect(()=>{const o=a.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),c.jsx(ye.div,{...t,ref:n})});Mu.displayName=u0;function h0(t,e=globalThis==null?void 0:globalThis.document){const r=_t(t),a=m.useRef(!1),n=m.useRef(()=>{});return m.useEffect(()=>{const o=s=>{if(s.target&&!a.current){let l=function(){Bu(c0,r,d,{discrete:!0})};const d={originalEvent:s};s.pointerType==="touch"?(e.removeEventListener("click",n.current),n.current=l,e.addEventListener("click",n.current,{once:!0})):l()}else e.removeEventListener("click",n.current);a.current=!1},i=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),e.removeEventListener("pointerdown",o),e.removeEventListener("click",n.current)}},[e,r]),{onPointerDownCapture:()=>a.current=!0}}function p0(t,e=globalThis==null?void 0:globalThis.document){const r=_t(t),a=m.useRef(!1);return m.useEffect(()=>{const n=o=>{o.target&&!a.current&&Bu(d0,r,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",n),()=>e.removeEventListener("focusin",n)},[e,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Xl(){const t=new CustomEvent(Ai);document.dispatchEvent(t)}function Bu(t,e,r,{discrete:a}){const n=r.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&n.addEventListener(t,e,{once:!0}),a?Du(n,o):n.dispatchEvent(o)}var f0=Po,m0=Mu,It=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},g0="Portal",Ls=m.forwardRef((t,e)=>{var s;const{container:r,...a}=t,[n,o]=m.useState(!1);It(()=>o(!0),[]);const i=r||n&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?ku.createPortal(c.jsx(ye.div,{...a,ref:e}),i):null});Ls.displayName=g0;function y0(t,e){return m.useReducer((r,a)=>e[r][a]??r,t)}var Nr=t=>{const{present:e,children:r}=t,a=b0(e),n=typeof r=="function"?r({present:a.isPresent}):m.Children.only(r),o=Oe(a.ref,v0(n));return typeof r=="function"||a.isPresent?m.cloneElement(n,{ref:o}):null};Nr.displayName="Presence";function b0(t){const[e,r]=m.useState(),a=m.useRef(null),n=m.useRef(t),o=m.useRef("none"),i=t?"mounted":"unmounted",[s,l]=y0(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const d=bn(a.current);o.current=s==="mounted"?d:"none"},[s]),It(()=>{const d=a.current,u=n.current;if(u!==t){const f=o.current,h=bn(d);t?l("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(u&&f!==h?"ANIMATION_OUT":"UNMOUNT"),n.current=t}},[t,l]),It(()=>{if(e){let d;const u=e.ownerDocument.defaultView??window,p=h=>{const y=bn(a.current).includes(h.animationName);if(h.target===e&&y&&(l("ANIMATION_END"),!n.current)){const g=e.style.animationFillMode;e.style.animationFillMode="forwards",d=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=g)})}},f=h=>{h.target===e&&(o.current=bn(a.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",p),e.addEventListener("animationend",p),()=>{u.clearTimeout(d),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",p),e.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:m.useCallback(d=>{a.current=d?getComputedStyle(d):null,r(d)},[])}}function bn(t){return(t==null?void 0:t.animationName)||"none"}function v0(t){var a,n;let e=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,r=e&&"isReactWarning"in e&&e.
2isReactWarning;return r?t.ref:(e=(n=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var w0=ju[" useInsertionEffect ".trim().toString()]||It;function xo({prop:t,defaultProp:e,onChange:r=()=>{},caller:a}){const[n,o,i]=P0({defaultProp:e,onChange:r}),s=t!==void 0,l=s?t:n;{const u=m.useRef(t!==void 0);m.useEffect(()=>{const p=u.current;p!==s&&console.warn(`${a} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,a])}const d=m.useCallback(u=>{var p;if(s){const f=x0(u)?u(t):u;f!==t&&((p=i.current)==null||p.call(i,f))}else o(u)},[s,t,o,i]);return[l,d]}function P0({defaultProp:t,onChange:e}){const[r,a]=m.useState(t),n=m.useRef(r),o=m.useRef(e);return w0(()=>{o.current=e},[e]),m.useEffect(()=>{var i;n.current!==r&&((i=o.current)==null||i.call(o,r),n.current=r)},[r,n]),[r,a,o]}function x0(t){return typeof t=="function"}var $0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),_0="VisuallyHidden",Ds=m.forwardRef((t,e)=>c.jsx(ye.span,{...t,ref:e,style:{...$0,...t.style}}));Ds.displayName=_0;var Fs="ToastProvider",[Ms,S0,C0]=o0("Toast"),[Uu]=Pa("Toast",[C0]),[A0,$o]=Uu(Fs),qu=t=>{const{__scopeToast:e,label:r="Notification",duration:a=5e3,swipeDirection:n="right",swipeThreshold:o=50,children:i}=t,[s,l]=m.useState(null),[d,u]=m.useState(0),p=m.useRef(!1),f=m.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Fs}\`. Expected non-empty \`string\`.`),c.jsx(Ms.Provider,{scope:e,children:c.jsx(A0,{scope:e,label:r,duration:a,swipeDirection:n,swipeThreshold:o,toastCount:d,viewport:s,onViewportChange:l,onToastAdd:m.useCallback(()=>u(h=>h+1),[]),onToastRemove:m.useCallback(()=>u(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:f,children:i})})};qu.displayName=Fs;var Wu="ToastViewport",E0=["F8"],Ei="toast.viewportPause",Ti="toast.viewportResume",Vu=m.forwardRef((t,e)=>{const{__scopeToast:r,hotkey:a=E0,label:n="Notifications ({hotkey})",...o}=t,i=$o(Wu,r),s=S0(r),l=m.useRef(null),d=m.useRef(null),u=m.useRef(null),p=m.useRef(null),f=Oe(e,p,i.onViewportChange),h=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;m.useEffect(()=>{const g=v=>{var P;a.length!==0&&a.every(x=>v[x]||v.code===x)&&((P=p.current)==null||P.focus())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[a]),m.useEffect(()=>{const g=l.current,v=p.current;if(b&&g&&v){const w=()=>{if(!i.isClosePausedRef.current){const S=new CustomEvent(Ei);v.dispatchEvent(S),i.isClosePausedRef.current=!0}},P=()=>{if(i.isClosePausedRef.current){const S=new CustomEvent(Ti);v.dispatchEvent(S),i.isClosePausedRef.current=!1}},x=S=>{!g.contains(S.relatedTarget)&&P()},C=()=>{g.contains(document.activeElement)||P()};return g.addEventListener("focusin",w),g.addEventListener("focusout",x),g.addEventListener("pointermove",w),g.addEventListener("pointerleave",C),window.addEventListener("blur",w),window.addEventListener("focus",P),()=>{g.removeEventListener("focusin",w),g.removeEventListener("focusout",x),g.removeEventListener("pointermove",w),g.removeEventListener("pointerleave",C),window.removeEventListener("blur",w),window.removeEventListener("focus",P)}}},[b,i.isClosePausedRef]);const y=m.useCallback(({tabbingDirection:g})=>{const w=s().map(P=>{const x=P.ref.current,C=[x,...U0(x)];return g==="forwards"?C:C.reverse()});return(g==="forwards"?w.reverse():w).flat()},[s]);return m.useEffect(()=>{const g=p.current;if(g){const v=w=>{var C,S,A;const P=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!P){const I=document.activeElement,T=w.shiftKey;if(w.target===g&&T){(C=d.current)==null||C.focus();return}const D=y({tabbingDirection:T?"backwards":"forwards"}),L=D.findIndex(R=>R===I);Qo(D.slice(L+1))?w.preventDefault():T?(S=d.current)==null||S.focus():(A=u.current)==null||A.focus()}};return g.addEventListener("keydown",v),()=>g.removeEventListener("keydown",v)}},[s,y]),c.jsxs(m0,{ref:l,role:"region","aria-label":n.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&c.jsx(ki,{ref:d,onFocusFromOutsideViewport:()=>{const g=y({tabbingDirection:"forwards"});Qo(g)}}),c.jsx(Ms.Slot,{scope:r,children:c.jsx(ye.ol,{tabIndex:-1,...o,ref:f})}),b&&c.jsx(ki,{ref:u,onFocusFromOutsideViewport:()=>{const g=y({tabbingDirection:"backwards"});Qo(g)}})]})});
2Vu.displayName=Wu;var Hu="ToastFocusProxy",ki=m.forwardRef((t,e)=>{const{__scopeToast:r,onFocusFromOutsideViewport:a,...n}=t,o=$o(Hu,r);return c.jsx(Ds,{"aria-hidden":!0,tabIndex:0,...n,ref:e,style:{position:"fixed"},onFocus:i=>{var d;const s=i.relatedTarget;!((d=o.viewport)!=null&&d.contains(s))&&a()}})});ki.displayName=Hu;var un="Toast",T0="toast.swipeStart",k0="toast.swipeMove",O0="toast.swipeCancel",I0="toast.swipeEnd",Ku=m.forwardRef((t,e)=>{const{forceMount:r,open:a,defaultOpen:n,onOpenChange:o,...i}=t,[s,l]=xo({prop:a,defaultProp:n??!0,onChange:o,caller:un});return c.jsx(Nr,{present:r||s,children:c.jsx(j0,{open:s,...i,ref:e,onClose:()=>l(!1),onPause:_t(t.onPause),onResume:_t(t.onResume),onSwipeStart:ge(t.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ge(t.onSwipeMove,d=>{const{x:u,y:p}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:ge(t.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ge(t.onSwipeEnd,d=>{const{x:u,y:p}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),l(!1)})})})});Ku.displayName=un;var[N0,R0]=Uu(un,{onClose(){}}),j0=m.forwardRef((t,e)=>{const{__scopeToast:r,type:a="foreground",duration:n,open:o,onClose:i,onEscapeKeyDown:s,onPause:l,onResume:d,onSwipeStart:u,onSwipeMove:p,onSwipeCancel:f,onSwipeEnd:h,...b}=t,y=$o(un,r),[g,v]=m.useState(null),w=Oe(e,R=>v(R)),P=m.useRef(null),x=m.useRef(null),C=n||y.duration,S=m.useRef(0),A=m.useRef(C),I=m.useRef(0),{onToastAdd:T,onToastRemove:O}=y,E=_t(()=>{var J;(g==null?void 0:g.contains(document.activeElement))&&((J=y.viewport)==null||J.focus()),i()}),D=m.useCallback(R=>{!R||R===1/0||(window.clearTimeout(I.current),S.current=new Date().getTime(),I.current=window.setTimeout(E,R))},[E]);m.useEffect(()=>{const R=y.viewport;if(R){const J=()=>{D(A.current),d==null||d()},z=()=>{const H=new Date().getTime()-S.current;A.current=A.current-H,window.clearTimeout(I.current),l==null||l()};return R.addEventListener(Ei,z),R.addEventListener(Ti,J),()=>{R.removeEventListener(Ei,z),R.removeEventListener(Ti,J)}}},[y.viewport,C,l,d,D]),m.useEffect(()=>{o&&!y.isClosePausedRef.current&&D(C)},[o,C,y.isClosePausedRef,D]),m.useEffect(()=>(T(),()=>O()),[T,O]);const L=m.useMemo(()=>g?Zu(g):null,[g]);return y.viewport?c.jsxs(c.Fragment,{children:[L&&c.jsx(L0,{__scopeToast:r,role:"status","aria-live":a==="foreground"?"assertive":"polite","aria-atomic":!0,children:L}),c.jsx(N0,{scope:r,onClose:E,children:Ns.createPortal(c.jsx(Ms.ItemSlot,{scope:r,children:c.jsx(f0,{asChild:!0,onEscapeKeyDown:ge(s,()=>{y.isFocusedToastEscapeKeyDownRef.current||E(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(ye.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":y.swipeDirection,...b,ref:w,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:ge(t.onKeyDown,R=>{R.key==="Escape"&&(s==null||s(R.nativeEvent),R.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,E()))}),onPointerDown:ge(t.onPointerDown,R=>{R.button===0&&(P.current={x:R.clientX,y:R.clientY})}),onPointerMove:ge(t.onPointerMove,R=>{if(!P.current)return;const J=R.clientX-P.current.x,z=R.clientY-P.current.y,H=!!x.current,W=["left","right"].includes(y.swipeDirection),U=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,se=W?U(0,J):0,Me=W?0:U(0,z),Y=R.pointerType==="touch"?10:2,ee={x:se,y:Me},oe={originalEvent:R,delta:ee};H?(x.current=ee,vn(k0,p,oe,{discrete:!1})):Jl(ee,y.swipeDirection,Y)?(x.current=ee,vn(T0,u,oe,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(J)>Y||Math.abs(z)>Y)&&(P.current=null)}),onPointerUp:ge(t.onPointerUp,R=>{const J=x.current,z=R.target;if(z.hasPointerCapture(R.pointerId)&&z.releasePointerCapture(R.pointerId),x.current=null,P.current=null,J){const H=R.currentTarget,W={originalEvent:R,delta:J};Jl(J,y.swipeDirection,y.swipeThreshold)?vn(I0,h,W,{discrete:!0}):vn(O0,f,W,{discrete:!0}),H.addEventListener("click",U=>U.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),L0=t=>{const{__scopeToast:e,children:r,...a}=t,n=$o(un,e),[o,i]=m.useState(!1),[s,l]=m.useState(!1);return M0(()=>i(!0)),m.useEffect(()=>{const d=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(d)},[]),s?null:c.jsx(Ls,{asChild:!0,children:c.jsx(Ds,{...a,children:o&&c.jsxs(c.Fragment,{children:[n.label," ",r]})})})},D0="ToastTitle",zu=m.forwardRef((t,e)=>{const{__scopeToast:r,...a}=t;return c.jsx(ye.div,{...a,ref:e})});zu.displayName=D0;var F0="ToastDescription",Gu=m.forwardRef((t,e)=>{const{__scopeToast:r,...a}=t;return c.jsx(ye.div,{...a,ref:e})});Gu.displayName=F0;var Xu="ToastAction",Ju=m.forwardRef((t,e)=>{const{altText:r,...a}=t;return r.trim()?c.jsx(Yu,{altText:r,asChild:!0,children:c.jsx(Bs,{...a,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${Xu}\`. Expected non-empty \`string\`.`),null)});Ju.displayName=Xu;var Qu="ToastClose",Bs=m.forwardRef((t,e)=>{const{__scopeToast:r,...a}=t,n=R0(Qu,r);return c.jsx(Yu,{asChild:!0,children:c.jsx(ye.button,{type:"button",...a,ref:e,onClick:ge(t.onClick,n.onClose)})})});Bs.displayName=Qu;var Yu=m.forwardRef((t,e)=>{const{__scopeToast:r,altText:a,...n}=t;return c.jsx(ye.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":a||void 0,...n,ref:e})});function Zu(t){const e=[];
vendor: 8,463 bytes, lines 2-97
2return Array.from(t.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&e.push(a.textContent),B0(a)){const n=a.ariaHidden||a.hidden||a.style.display==="none",o=a.dataset.radixToastAnnounceExclude==="";if(!n)if(o){const i=a.dataset.radixToastAnnounceAlt;i&&e.push(i)}else e.push(...Zu(a))}}),e}function vn(t,e,r,{discrete:a}){const n=r.originalEvent.currentTarget,o=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&n.addEventListener(t,e,{once:!0}),a?Du(n,o):n.dispatchEvent(o)}var Jl=(t,e,r=0)=>{const a=Math.abs(t.x),n=Math.abs(t.y),o=a>n;return e==="left"||e==="right"?o&&a>r:!o&&n>r};function M0(t=()=>{}){const e=_t(t);It(()=>{let r=0,a=0;return r=window.requestAnimationFrame(()=>a=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(a)}},[e])}function B0(t){return t.nodeType===t.ELEMENT_NODE}function U0(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const n=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||n?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function Qo(t){const e=document.activeElement;return t.some(r=>r===e?!0:(r.focus(),document.activeElement!==e))}var q0=qu,eh=Vu,th=Ku,rh=zu,ah=Gu,nh=Ju,oh=Bs;/**
3 * @license lucide-react v0.462.0 - ISC
4 *
5 * This source code is licensed under the ISC license.
6 * See the LICENSE file in the root directory of this source tree.
7 */const W0=we("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
8 * @license lucide-react v0.462.0 - ISC
9 *
10 * This source code is licensed under the ISC license.
11 * See the LICENSE file in the root directory of this source tree.
12 */const ih=we("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
13 * @license lucide-react v0.462.0 - ISC
14 *
15 * This source code is licensed under the ISC license.
16 * See the LICENSE file in the root directory of this source tree.
17 */const sh=we("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
18 * @license lucide-react v0.462.0 - ISC
19 *
20 * This source code is licensed under the ISC license.
21 * See the LICENSE file in the root directory of this source tree.
22 */const V0=we("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
23 * @license lucide-react v0.462.0 - ISC
24 *
25 * This source code is licensed under the ISC license.
26 * See the LICENSE file in the root directory of this source tree.
27 */const Ql=we("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
28 * @license lucide-react v0.462.0 - ISC
29 *
30 * This source code is licensed under the ISC license.
31 * See the LICENSE file in the root directory of this source tree.
32 */const H0=we("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
33 * @license lucide-react v0.462.0 - ISC
34 *
35 * This source code is licensed under the ISC license.
36 * See the LICENSE file in the root directory of this source tree.
37 */const Jn=we("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
38 * @license lucide-react v0.462.0 - ISC
39 *
40 * This source code is licensed under the ISC license.
41 * See the LICENSE file in the root directory of this source tree.
42 */const K0=we("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
43 * @license lucide-react v0.462.0 - ISC
44 *
45 * This source code is licensed under the ISC license.
46 * See the LICENSE file in the root directory of this source tree.
47 */const z0=we("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/**
48 * @license lucide-react v0.462.0 - ISC
49 *
50 * This source code is licensed under the ISC license.
51 * See the LICENSE file in the root directory of this source tree.
52 */const lh=we("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
53 * @license lucide-react v0.462.0 - ISC
54 *
55 * This source code is licensed under the ISC license.
56 * See the LICENSE file in the root directory of this source tree.
57 */const La=we("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
58 * @license lucide-react v0.462.0 - ISC
59 *
60 * This source code is licensed under the ISC license.
61 * See the LICENSE file in the root directory of this source tree.
62 */const G0=we("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
63 * @license lucide-react v0.462.0 - ISC
64 *
65 * This source code is licensed under the ISC license.
66 * See the LICENSE file in the root directory of this source tree.
67 */const X0=we("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
68 * @license lucide-react v0.462.0 - ISC
69 *
70 * This source code is licensed under the ISC license.
71 * See the LICENSE file in the root directory of this source tree.
72 */const J0=we("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
73 * @license lucide-react v0.462.0 - ISC
74 *
75 * This source code is licensed under the ISC license.
76 * See the LICENSE file in the root directory of this source tree.
77 */const Q0=we("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
78 * @license lucide-react v0.462.0 - ISC
79 *
80 * This source code is licensed under the ISC license.
81 * See the LICENSE file in the root directory of this source tree.
82 */const Yo=we("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
83 * @license lucide-react v0.462.0 - ISC
84 *
85 * This source code is licensed under the ISC license.
86 * See the LICENSE file in the root directory of this source tree.
87 */const Y0=we("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
88 * @license lucide-react v0.462.0 - ISC
89 *
90 * This source code is licensed under the ISC license.
91 * See the LICENSE file in the root directory of this source tree.
92 */const ch=we("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
93 * @license lucide-react v0.462.0 - ISC
94 *
95 * This source code is licensed under the ISC license.
96 * See the LICENSE file in the root directory of this source tree.
97 */const Z0=we("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}
vendor: 3,306 bytes, lines 97-117
97],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
98 * @license lucide-react v0.462.0 - ISC
99 *
100 * This source code is licensed under the ISC license.
101 * See the LICENSE file in the root directory of this source tree.
102 */const ey=we("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
103 * @license lucide-react v0.462.0 - ISC
104 *
105 * This source code is licensed under the ISC license.
106 * See the LICENSE file in the root directory of this source tree.
107 */const Yl=we("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
108 * @license lucide-react v0.462.0 - ISC
109 *
110 * This source code is licensed under the ISC license.
111 * See the LICENSE file in the root directory of this source tree.
112 */const Tr=we("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
113 * @license lucide-react v0.462.0 - ISC
114 *
115 * This source code is licensed under the ISC license.
116 * See the LICENSE file in the root directory of this source tree.
117 */const ty=we("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]),ry=q0,dh=m.forwardRef(({className:t,...e},r)=>c.jsx(eh,{ref:r,className:ne("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...e}));dh.displayName=eh.displayName;const ay=Lu("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),uh=m.forwardRef(({className:t,variant:e,...r},a)=>c.jsx(th,{ref:a,className:ne(ay({variant:e}),t),...r}));uh.displayName=th.displayName;const ny=m.forwardRef(({className:t,...e},r)=>c.jsx(nh,{ref:r,className:ne("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",t),...e}));ny.displayName=nh.displayName;
117const hh=m.forwardRef(({className:t,...e},r)=>c.jsx(oh,{ref:r,className:ne("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:c.jsx(Tr,{className:"h-4 w-4"})}));hh.displayName=oh.displayName;const ph=m.forwardRef(({className:t,...e},r)=>c.jsx(rh,{ref:r,className:ne("text-sm font-semibold",t),...e}));ph.displayName=rh.displayName;const fh=m.forwardRef(({className:t,...e},r)=>c.jsx(ah,{ref:r,className:ne("text-sm opacity-90",t),...e}));fh.displayName=ah.displayName;function oy(){const{toasts:t}=r0();return c.jsxs(ry,{children:[t.map(function({id:e,title:r,description:a,action:n,...o}){return c.jsxs(uh,{...o,children:[c.jsxs("div",{className:"grid gap-1",children:[r&&c.jsx(ph,{children:r}),a&&c.jsx(fh,{children:a})]}),n,c.jsx(hh,{})]},e)}),c.jsx(dh,{})]})}var Zl=["light","dark"],iy="(prefers-color-scheme: dark)",sy=m.createContext(void 0),ly={setTheme:t=>{},themes:[]},cy=()=>{var t;return(t=m.useContext(sy))!=null?t:ly};m.memo(({forcedTheme:t,storageKey:e,attribute:r,enableSystem:a,enableColorScheme:n,defaultTheme:o,value:i,attrs:s,nonce:l})=>{let d=o==="system",u=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${s.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,p=n?Zl.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(b,y=!1,g=!0)=>{let v=i?i[b]:b,w=y?b+"|| ''":`'${v}'`,P="";return n&&g&&!y&&Zl.includes(b)&&(P+=`d.style.colorScheme = '${b}';`),r==="class"?y||v?P+=`c.add(${w})`:P+="null":v&&(P+=`d[s](n,${w})`),P},h=t?`!function(){${u}${f(t)}}()`:a?`!function(){try{${u}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${d})){var t='${iy}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}${d?"":"else{"+f(o,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${e}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}else{${f(o,!1,!1)};}${p}}catch(t){}}();`;return m.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var dy=t=>{switch(t){case"success":return py;case"info":return my;case"warning":return fy;case"error":return gy;default:return null}},uy=Array(12).fill(0),hy=({visible:t,className:e})=>$.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},$.createElement("div",{className:"sonner-spinner"},uy.map((r,a)=>$.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),py=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),fy=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),my=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),gy=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),yy=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},$.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),$.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),by=()=>{let[t,e]=$.useState(document.hidden);return $.useEffect(()=>{let r=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),t}
117,Oi=1,vy=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:r,...a}=t,n=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:Oi++,o=this.toasts.find(s=>s.id===n),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(n)&&this.dismissedToasts.delete(n),o?this.toasts=this.toasts.map(s=>s.id===n?(this.publish({...s,...t,id:n,title:r}),{...s,...t,id:n,dismissible:i,title:r}):s):this.addToast({title:r,...a,dismissible:i,id:n}),n},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(r=>r({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let r;e.loading!==void 0&&(r=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let a=t instanceof Promise?t:t(),n=r!==void 0,o,i=a.then(async l=>{if(o=["resolve",l],$.isValidElement(l))n=!1,this.create({id:r,type:"default",message:l});else if(Py(l)&&!l.ok){n=!1;let d=typeof e.error=="function"?await e.error(`HTTP error! status: ${l.status}`):e.error,u=typeof e.description=="function"?await e.description(`HTTP error! status: ${l.status}`):e.description;this.create({id:r,type:"error",message:d,description:u})}else if(e.success!==void 0){n=!1;let d=typeof e.success=="function"?await e.success(l):e.success,u=typeof e.description=="function"?await e.description(l):e.description;this.create({id:r,type:"success",message:d,description:u})}}).catch(async l=>{if(o=["reject",l],e.error!==void 0){n=!1;let d=typeof e.error=="function"?await e.error(l):e.error,u=typeof e.description=="function"?await e.description(l):e.description;this.create({id:r,type:"error",message:d,description:u})}}).finally(()=>{var l;n&&(this.dismiss(r),r=void 0),(l=e.finally)==null||l.call(e)}),s=()=>new Promise((l,d)=>i.then(()=>o[0]==="reject"?d(o[1]):l(o[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:s}:Object.assign(r,{unwrap:s})},this.custom=(t,e)=>{let r=(e==null?void 0:e.id)||Oi++;return this.create({jsx:t(r),id:r,...e}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},qe=new vy,wy=(t,e)=>{let r=(e==null?void 0:e.id)||Oi++;return qe.addToast({title:t,...e,id:r}),r},Py=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",xy=wy,$y=()=>qe.toasts,_y=()=>qe.getActiveToasts(),SE=Object.assign(xy,{success:qe.success,info:qe.info,warning:qe.warning,error:qe.error,custom:qe.custom,message:qe.message,promise:qe.promise,dismiss:qe.dismiss,loading:qe.loading},{getHistory:$y,getToasts:_y});function Sy(t,{insertAt:e}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",e==="top"&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}Sy(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
117left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
117:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
117--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
118`);function wn(t){return t.label!==void 0}var Cy=3,Ay="32px",Ey="16px",ec=4e3,Ty=356,ky=14,Oy=20,Iy=200;function rt(...t){return t.filter(Boolean).join(" ")}function Ny(t){let[e,r]=t.split("-"),a=[];return e&&a.push(e),r&&a.push(r),a}var Ry=t=>{var e,r,a,n,o,i,s,l,d,u,p;let{invert:f,toast:h,unstyled:b,interacting:y,setHeights:g,visibleToasts:v,heights:w,index:P,toasts:x,expanded:C,removeToast:S,defaultRichColors:A,closeButton:I,style:T,cancelButtonStyle:O,actionButtonStyle:E,className:D="",descriptionClassName:L="",duration:R,position:J,gap:z,loadingIcon:H,expandByDefault:W,classNames:U,icons:se,closeButtonAriaLabel:Me="Close toast",pauseWhenPageIsHidden:Y}=t,[ee,oe]=$.useState(null),[V,de]=$.useState(null),[te,Ge]=$.useState(!1),[Z,le]=$.useState(!1),[Pe,ue]=$.useState(!1),[Ae,Re]=$.useState(!1),[ir,gt]=$.useState(!1),[Dt,Aa]=$.useState(0),[Rr,Fl]=$.useState(0),Ea=$.useRef(h.duration||R||ec),Ml=$.useRef(null),sr=$.useRef(null),xg=P===0,$g=P+1<=v,Xe=h.type,jr=h.dismissible!==!1,_g=h.className||"",Sg=h.descriptionClassName||"",gn=$.useMemo(()=>w.findIndex(Q=>Q.toastId===h.id)||0,[w,h.id]),Cg=$.useMemo(()=>{var Q;return(Q=h.closeButton)!=null?Q:I},[h.closeButton,I]),Bl=$.useMemo(()=>h.duration||R||ec,[h.duration,R]),Ho=$.useRef(0),Lr=$.useRef(0),Ul=$.useRef(0),Dr=$.useRef(null),[Ag,Eg]=J.split("-"),ql=$.useMemo(()=>w.reduce((Q,he,be)=>be>=gn?Q:Q+he.height,0),[w,gn]),Wl=by(),Tg=h.invert||f,Ko=Xe==="loading";Lr.current=$.useMemo(()=>gn*z+ql,[gn,ql]),$.useEffect(()=>{Ea.current=Bl},[Bl]),$.useEffect(()=>{Ge(!0)},[]),$.useEffect(()=>{let Q=sr.current;if(Q){let he=Q.getBoundingClientRect().height;return Fl(he),g(be=>[{toastId:h.id,height:he,position:h.position},...be]),()=>g(be=>be.filter(Ze=>Ze.toastId!==h.id))}},[g,h.id]),$.useLayoutEffect(()=>{if(!te)return;let Q=sr.current,he=Q.style.height;Q.style.height="auto";let be=Q.getBoundingClientRect().height;Q.style.height=he,Fl(be),g(Ze=>Ze.find(et=>et.toastId===h.id)?Ze.map(et=>et.toastId===h.id?{...et,height:be}:et):[{toastId:h.id,height:be,position:h.position},...Ze])},[te,h.title,h.description,g,h.id]);let Ft=$.useCallback(()=>{le(!0),Aa(Lr.current),g(Q=>Q.filter(he=>he.toastId!==h.id)),setTimeout(()=>{S(h)},Iy)},[h,S,g,Lr]);$.useEffect(()=>{if(h.promise&&Xe==="loading"||h.duration===1/0||h.type==="loading")return;let Q;return C||y||Y&&Wl?(()=>{if(Ul.current<Ho.current){let he=new Date().getTime()-Ho.current;Ea.current=Ea.current-he}
118Ul.current=new Date().getTime()})():Ea.current!==1/0&&(Ho.current=new Date().getTime(),Q=setTimeout(()=>{var he;(he=h.onAutoClose)==null||he.call(h,h),Ft()},Ea.current)),()=>clearTimeout(Q)},[C,y,h,Xe,Y,Wl,Ft]),$.useEffect(()=>{h.delete&&Ft()},[Ft,h.delete]);function kg(){var Q,he,be;return se!=null&&se.loading?$.createElement("div",{className:rt(U==null?void 0:U.loader,(Q=h==null?void 0:h.classNames)==null?void 0:Q.loader,"sonner-loader"),"data-visible":Xe==="loading"},se.loading):H?$.createElement("div",{className:rt(U==null?void 0:U.loader,(he=h==null?void 0:h.classNames)==null?void 0:he.loader,"sonner-loader"),"data-visible":Xe==="loading"},H):$.createElement(hy,{className:rt(U==null?void 0:U.loader,(be=h==null?void 0:h.classNames)==null?void 0:be.loader),visible:Xe==="loading"})}return $.createElement("li",{tabIndex:0,ref:sr,className:rt(D,_g,U==null?void 0:U.toast,(e=h==null?void 0:h.classNames)==null?void 0:e.toast,U==null?void 0:U.default,U==null?void 0:U[Xe],(r=h==null?void 0:h.classNames)==null?void 0:r[Xe]),"data-sonner-toast":"","data-rich-colors":(a=h.richColors)!=null?a:A,"data-styled":!(h.jsx||h.unstyled||b),"data-mounted":te,"data-promise":!!h.promise,"data-swiped":ir,"data-removed":Z,"data-visible":$g,"data-y-position":Ag,"data-x-position":Eg,"data-index":P,"data-front":xg,"data-swiping":Pe,"data-dismissible":jr,"data-type":Xe,"data-invert":Tg,"data-swipe-out":Ae,"data-swipe-direction":V,"data-expanded":!!(C||W&&te),style:{"--index":P,"--toasts-before":P,"--z-index":x.length-P,"--offset":`${Z?Dt:Lr.current}px`,"--initial-height":W?"auto":`${Rr}px`,...T,...h.style},onDragEnd:()=>{ue(!1),oe(null),Dr.current=null},onPointerDown:Q=>{Ko||!jr||(Ml.current=new Date,Aa(Lr.current),Q.target.setPointerCapture(Q.pointerId),Q.target.tagName!=="BUTTON"&&(ue(!0),Dr.current={x:Q.clientX,y:Q.clientY}))},onPointerUp:()=>{var Q,he,be,Ze;if(Ae||!jr)return;Dr.current=null;let et=Number(((Q=sr.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Mt=Number(((he=sr.current)==null?void 0:he.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),lr=new Date().getTime()-((be=Ml.current)==null?void 0:be.getTime()),tt=ee==="x"?et:Mt,Bt=Math.abs(tt)/lr;if(Math.abs(tt)>=Oy||Bt>.11){Aa(Lr.current),(Ze=h.onDismiss)==null||Ze.call(h,h),de(ee==="x"?et>0?"right":"left":Mt>0?"down":"up"),Ft(),Re(!0),gt(!1);return}ue(!1),oe(null)},onPointerMove:Q=>{var he,be,Ze,et;if(!Dr.current||!jr||((he=window.getSelection())==null?void 0:he.toString().length)>0)return;let Mt=Q.clientY-Dr.current.y,lr=Q.clientX-Dr.current.x,tt=(be=t.swipeDirections)!=null?be:Ny(J);!ee&&(Math.abs(lr)>1||Math.abs(Mt)>
1181)&&oe(Math.abs(lr)>Math.abs(Mt)?"x":"y");let Bt={x:0,y:0};ee==="y"?(tt.includes("top")||tt.includes("bottom"))&&(tt.includes("top")&&Mt<0||tt.includes("bottom")&&Mt>0)&&(Bt.y=Mt):ee==="x"&&(tt.includes("left")||tt.includes("right"))&&(tt.includes("left")&&lr<0||tt.includes("right")&&lr>0)&&(Bt.x=lr),(Math.abs(Bt.x)>0||Math.abs(Bt.y)>0)&&gt(!0),(Ze=sr.current)==null||Ze.style.setProperty("--swipe-amount-x",`${Bt.x}px`),(et=sr.current)==null||et.style.setProperty("--swipe-amount-y",`${Bt.y}px`)}},Cg&&!h.jsx?$.createElement("button",{"aria-label":Me,"data-disabled":Ko,"data-close-button":!0,onClick:Ko||!jr?()=>{}:()=>{var Q;Ft(),(Q=h.onDismiss)==null||Q.call(h,h)},className:rt(U==null?void 0:U.closeButton,(n=h==null?void 0:h.classNames)==null?void 0:n.closeButton)},(o=se==null?void 0:se.close)!=null?o:yy):null,h.jsx||m.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:$.createElement($.Fragment,null,Xe||h.icon||h.promise?$.createElement("div",{"data-icon":"",className:rt(U==null?void 0:U.icon,(i=h==null?void 0:h.classNames)==null?void 0:i.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||kg():null,h.type!=="loading"?h.icon||(se==null?void 0:se[Xe])||dy(Xe):null):null,$.createElement("div",{"data-content":"",className:rt(U==null?void 0:U.content,(s=h==null?void 0:h.classNames)==null?void 0:s.content)},$.createElement("div",{"data-title":"",className:rt(U==null?void 0:U.title,(l=h==null?void 0:h.classNames)==null?void 0:l.title)},typeof h.title=="function"?h.title():h.title),h.description?$.createElement("div",{"data-description":"",className:rt(L,Sg,U==null?void 0:U.description,(d=h==null?void 0:h.classNames)==null?void 0:d.description)},typeof h.description=="function"?h.description():h.description):null),m.isValidElement(h.cancel)?h.cancel:h.cancel&&wn(h.cancel)?$.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||O,onClick:Q=>{var he,be;wn(h.cancel)&&jr&&((be=(he=h.cancel).onClick)==null||be.call(he,Q),Ft())},className:rt(U==null?void 0:U.cancelButton,(u=h==null?void 0:h.classNames)==null?void 0:u.cancelButton)},h.cancel.label):null,m.isValidElement(h.action)?h.action:h.action&&wn(h.action)?$.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||E,onClick:Q=>{var he,be;wn(h.action)&&((be=(he=h.action).onClick)==null||be.call(he,Q),!Q.defaultPrevented&&Ft())},className:rt(U==null?void 0:U.actionButton,(p=h==null?void 0:h.classNames)==null?void 0:p.actionButton)},h.action.label):null))};function tc(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function jy(t,e){let r={};return[t,e].forEach((a,n)=>{let o=n===1,i=o?"--mobile-offset":"--offset",s=o?Ey:Ay;function l(d){["top","right","bottom","left"].forEach(u=>{r[`${i}-${u}`]=typeof d=="number"?`${d}px`:d})}typeof a=="number"||typeof a=="string"?l(a):typeof a=="object"?["top","right","bottom","left"].forEach(d=>{a[d]===void 0?r[`${i}-${d}`]=s:r[`${i}-${d}`]=typeof a[d]=="number"?`${a[d]}px`:a[d]}):l(s)}),r}var Ly=m.forwardRef(function(t,e){let{invert:r,position:a="bottom-right",hotkey:n=["altKey","KeyT"],expand:o,closeButton:i,className:s,offset:l,mobileOffset:d,theme:u="light",richColors:p,duration:f,style:h,visibleToasts:b=Cy,toastOptions:y,dir:g=tc(),gap:v=ky,loadingIcon:w,icons:P,containerAriaLabel:x="Notifications",pauseWhenPageIsHidden:C}=t,[S,A]=$.useState([]),I=$.useMemo(()=>Array.from(new Set([a].concat(S.filter(Y=>Y.position).map(Y=>Y.position)))),[S,a]),[T,O]=$.useState([]),[E,D]=$.useState(!1),[L,R]=$.useState(!1),[J,z]=$.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=$.useRef(null),W=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=$.useRef(null),se=$.useRef(!1),Me=$.useCallback(Y=>{A(ee=>{var oe;return(oe=ee.find(V=>V.id===Y.id))!=null&&oe.delete||qe.dismiss(Y.id),ee.filter(({id:V})=>V!==Y.id)})},[]);return $.useEffect(()=>qe.subscribe(Y=>{if(Y.dismiss){A(ee=>ee.map(oe=>oe.id===Y.id?{...oe,delete:!0}:oe));return}setTimeout(()=>{ku.flushSync(()=>{A(ee=>{let oe=ee.findIndex(V=>V.id===Y.id);return oe!==-1?[...ee.slice(0,oe),{...ee[oe],...Y},...ee.slice(oe+1)]:[Y,...ee]})})})}),[]),$.useEffect(()=>{if(u!=="system"){z(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;let Y=window.matchMedia("(prefers-color-scheme: dark)");try{Y.addEventListener("change",({matches:ee})=>{z(ee?"dark":"light")})}catch{Y.addListener(({matches:oe})=>{try{z(oe?"dark":"light")}catch(V){console.error(V)}})}},[u]),$.useEffect(()=>{S.length<=1&&D(!1)},[S]),$.useEffect(()=>{let Y=ee=>{var oe,V;n.every(de=>
vendor: 5,097 bytes, line 118
118ee[de]||ee.code===de)&&(D(!0),(oe=H.current)==null||oe.focus()),ee.code==="Escape"&&(document.activeElement===H.current||(V=H.current)!=null&&V.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[n]),$.useEffect(()=>{if(H.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,se.current=!1)}},[H.current]),$.createElement("section",{ref:e,"aria-label":`${x} ${W}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((Y,ee)=>{var oe;let[V,de]=Y.split("-");return S.length?$.createElement("ol",{key:Y,dir:g==="auto"?tc():g,tabIndex:-1,ref:H,className:s,"data-sonner-toaster":!0,"data-theme":J,"data-y-position":V,"data-lifted":E&&S.length>1&&!o,"data-x-position":de,style:{"--front-toast-height":`${((oe=T[0])==null?void 0:oe.height)||0}px`,"--width":`${Ty}px`,"--gap":`${v}px`,...h,...jy(l,d)},onBlur:te=>{se.current&&!te.currentTarget.contains(te.relatedTarget)&&(se.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||se.current||(se.current=!0,U.current=te.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{L||D(!1)},onDragEnd:()=>D(!1),onPointerDown:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||R(!0)},onPointerUp:()=>R(!1)},S.filter(te=>!te.position&&ee===0||te.position===Y).map((te,Ge)=>{var Z,le;return $.createElement(Ry,{key:te.id,icons:P,index:Ge,toast:te,defaultRichColors:p,duration:(Z=y==null?void 0:y.duration)!=null?Z:f,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:r,visibleToasts:b,closeButton:(le=y==null?void 0:y.closeButton)!=null?le:i,interacting:L,position:Y,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:Me,toasts:S.filter(Pe=>Pe.position==te.position),heights:T.filter(Pe=>Pe.position==te.position),setHeights:O,expandByDefault:o,gap:v,loadingIcon:w,expanded:E,pauseWhenPageIsHidden:C,swipeDirections:t.swipeDirections})})):null}))});const Dy=({...t})=>{const{theme:e="system"}=cy();return c.jsx(Ly,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};var Fy=ju[" useId ".trim().toString()]||(()=>{}),My=0;function Mn(t){const[e,r]=m.useState(Fy());return It(()=>{r(a=>a??String(My++))},[t]),t||(e?`radix-${e}`:"")}const By=["top","right","bottom","left"],tr=Math.min,He=Math.max,Qn=Math.round,Pn=Math.floor,$t=t=>({x:t,y:t}),Uy={left:"right",right:"left",bottom:"top",top:"bottom"},qy={start:"end",end:"start"};function Ii(t,e,r){return He(t,tr(e,r))}function Nt(t,e){return typeof t=="function"?t(e):t}function Rt(t){return t.split("-")[0]}function xa(t){return t.split("-")[1]}function Us(t){return t==="x"?"y":"x"}function qs(t){return t==="y"?"height":"width"}const Wy=new Set(["top","bottom"]);function xt(t){return Wy.has(Rt(t))?"y":"x"}function Ws(t){return Us(xt(t))}function Vy(t,e,r){r===void 0&&(r=!1);const a=xa(t),n=Ws(t),o=qs(n);let i=n==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(i=Yn(i)),[i,Yn(i)]}function Hy(t){const e=Yn(t);return[Ni(t),e,Ni(e)]}function Ni(t){return t.replace(/start|end/g,e=>qy[e])}const rc=["left","right"],ac=["right","left"],Ky=["top","bottom"],zy=["bottom","top"];function Gy(t,e,r){switch(t){case"top":case"bottom":return r?e?ac:rc:e?rc:ac;case"left":case"right":return e?Ky:zy;default:return[]}}function Xy(t,e,r,a){const n=xa(t);let o=Gy(Rt(t),r==="start",a);return n&&(o=o.map(i=>i+"-"+n),e&&(o=o.concat(o.map(Ni)))),o}function Yn(t){return t.replace(/left|right|bottom|top/g,e=>Uy[e])}function Jy(t){return{top:0,right:0,bottom:0,left:0,...t}}function mh(t){return typeof t!="number"?Jy(t):{top:t,right:t,bottom:t,left:t}}function Zn(t){const{x:e,y:r,width:a,height:n}=t;return{width:a,height:n,top:r,left:e,right:e+a,bottom:r+n,x:e,y:r}}function nc(t,e,r){let{reference:a,floating:n}=t;const o=xt(e),i=Ws(e),s=qs(i),l=Rt(e),d=o==="y",u=a.x+a.width/2-n.width/2,p=a.y+a.height/2-n.height/2,f=a[s]/2-n[s]/2;let h;switch(l){case"top":h={x:u,y:a.y-n.height};break;case"bottom":h={x:u,y:a.y+a.height};break;case"right":h={x:a.x+a.width,y:p};break;case"left":h={x:a.x-n.width,y:p};break;default:h={x:a.x,y:a.y}}switch(xa(e)){case"start":h[i]-=f*(r&&d?-1:1);break;case"end":h[i]+=f*(r&&d?-1:1);break}return h}const Qy=async(t,e,r)=>{const{placement:a="bottom",strategy:n="absolute",middleware:o=[],platform:i}
vendor: 9,933 bytes, line 118
118=r,s=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(e));let d=await i.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:p}=nc(d,a,l),f=a,h={},b=0;for(let y=0;y<s.length;y++){const{name:g,fn:v}=s[y],{x:w,y:P,data:x,reset:C}=await v({x:u,y:p,initialPlacement:a,placement:f,strategy:n,middlewareData:h,rects:d,platform:i,elements:{reference:t,floating:e}});u=w??u,p=P??p,h={...h,[g]:{...h[g],...x}},C&&b<=50&&(b++,typeof C=="object"&&(C.placement&&(f=C.placement),C.rects&&(d=C.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:n}):C.rects),{x:u,y:p}=nc(d,f,l)),y=-1)}return{x:u,y:p,placement:f,strategy:n,middlewareData:h}};async function Da(t,e){var r;e===void 0&&(e={});const{x:a,y:n,platform:o,rects:i,elements:s,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:h=0}=Nt(e,t),b=mh(h),g=s[f?p==="floating"?"reference":"floating":p],v=Zn(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(g)))==null||r?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:d,rootBoundary:u,strategy:l})),w=p==="floating"?{x:a,y:n,width:i.floating.width,height:i.floating.height}:i.reference,P=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),x=await(o.isElement==null?void 0:o.isElement(P))?await(o.getScale==null?void 0:o.getScale(P))||{x:1,y:1}:{x:1,y:1},C=Zn(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:P,strategy:l}):w);return{top:(v.top-C.top+b.top)/x.y,bottom:(C.bottom-v.bottom+b.bottom)/x.y,left:(v.left-C.left+b.left)/x.x,right:(C.right-v.right+b.right)/x.x}}const Yy=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:a,placement:n,rects:o,platform:i,elements:s,middlewareData:l}=e,{element:d,padding:u=0}=Nt(t,e)||{};if(d==null)return{};const p=mh(u),f={x:r,y:a},h=Ws(n),b=qs(h),y=await i.getDimensions(d),g=h==="y",v=g?"top":"left",w=g?"bottom":"right",P=g?"clientHeight":"clientWidth",x=o.reference[b]+o.reference[h]-f[h]-o.floating[b],C=f[h]-o.reference[h],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let A=S?S[P]:0;(!A||!await(i.isElement==null?void 0:i.isElement(S)))&&(A=s.floating[P]||o.floating[b]);const I=x/2-C/2,T=A/2-y[b]/2-1,O=tr(p[v],T),E=tr(p[w],T),D=O,L=A-y[b]-E,R=A/2-y[b]/2+I,J=Ii(D,R,L),z=!l.arrow&&xa(n)!=null&&R!==J&&o.reference[b]/2-(R<D?O:E)-y[b]/2<0,H=z?R<D?R-D:R-L:0;return{[h]:f[h]+H,data:{[h]:J,centerOffset:R-J-H,...z&&{alignmentOffset:H}},reset:z}}}),Zy=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,a;const{placement:n,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:d}=e,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...g}=Nt(t,e);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const v=Rt(n),w=xt(s),P=Rt(s)===s,x=await(l.isRTL==null?void 0:l.isRTL(d.floating)),C=f||(P||!y?[Yn(s)]:Hy(s)),S=b!=="none";!f&&S&&C.push(...Xy(s,y,b,x));const A=[s,...C],I=await Da(e,g),T=[];let O=((a=o.flip)==null?void 0:a.overflows)||[];if(u&&T.push(I[v]),p){const R=Vy(n,i,x);T.push(I[R[0]],I[R[1]])}if(O=[...O,{placement:n,overflows:T}],!T.every(R=>R<=0)){var E,D;const R=(((E=o.flip)==null?void 0:E.index)||0)+1,J=A[R];if(J&&(!(p==="alignment"?w!==xt(J):!1)||O.every(W=>W.overflows[0]>0&&xt(W.placement)===w)))return{data:{index:R,overflows:O},reset:{placement:J}};let z=(D=O.filter(H=>H.overflows[0]<=0).sort((H,W)=>H.overflows[1]-W.overflows[1])[0])==null?void 0:D.placement;if(!z)switch(h){case"bestFit":{var L;const H=(L=O.filter(W=>{if(S){const U=xt(W.placement);return U===w||U==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(U=>U>0).reduce((U,se)=>U+se,0)]).sort((W,U)=>W[1]-U[1])[0])==null?void 0:L[0];H&&(z=H);break}case"initialPlacement":z=s;break}if(n!==z)return{reset:{placement:z}}}return{}}}};function oc(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function ic(t){return By.some(e=>t[e]>=0)}const eb=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:a="referenceHidden",...n}=Nt(t,e);switch(a){case"referenceHidden":{const o=await Da(e,{...n,elementContext:"reference"}),i=oc(o,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ic(i)}}}case"escaped":{const o=await Da(e,{...n,altBoundary:!0}),i=oc(o,r.floating);return{data:{escapedOffsets:i,escaped:ic(i)}}}default:return{}}}}},gh=new Set(["left","top"]);async function tb(t,e){const{placement:r,platform:a,elements:n}=t,o=await(a.isRTL==null?void 0:a.isRTL(n.floating)),i=Rt(r),s=xa(r),l=xt(r)==="y",d=gh.has(i)?-1:1,u=o&&l?-1:1,p=Nt(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof b=="number"&&(h=s==="end"?b*-1:b),l?{x:h*u,y:f*d}:{x:f*d,y:h*u}}const rb=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,a;const{x:n,y:o,placement:i,middlewareData:s}=e,l=await tb(e,t);return i===((r=s.offset)==null?void 0:r.placement)&&(a=s.arrow)!=null&&a.alignmentOffset?{}:{x:n+l.x,y:o+l.y,data:{...l,placement:i}}}}},ab=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:a,placement:n}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:g=>{let{x:v,y:w}=g;return{x:v,y:w}}},...l}=Nt(t,e),d={x:r,y:a},u=await Da(e,l),p=xt(Rt(n)),f=Us(p);let h=d[f],b=d[p];if(o){const g=f==="y"?"top":"left",v=f==="y"?"bottom":"right",w=h+u[g],P=h-u[v];h=Ii(w,h,P)}if(i){const g=p==="y"?"top":"left",v=p==="y"?"bottom":"right",w=b+u[g],P=b-u[v];b=Ii(w,b,P)}const y=s.fn({...e,[f]:h,[p]:b});return{...y,data:{x:y.x-r,y:y.y-a,enabled:{[f]:o,[p]:i}}}}}},nb=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:a,placement:n,rects:o,middlewareData:i}=e,{offset:s=0,mainAxis:l=!0,crossAxis:d=!0}=Nt(t,e),u={x:r,y:a},p=xt(n),f=Us(p);let h=u[f],b=u[p];const y=Nt(s,e),g=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const P=f==="y"?"height":"width",x=o.reference[f]-o.floating[P]+g.mainAxis,C=o.reference[f]+o.reference[P]-g.mainAxis;h<x?h=x:h>C&&(h=C)}if(d){var v,w;const P=f==="y"?"width":"height",x=gh.has(Rt(n)),C=o.reference[p]-o.floating[P]+(x&&((v=i.offset)==null?void 0:v[p])||0)+(x?0:g.crossAxis),S=o.reference[p]+o.reference[P]+(x?0:((w=i.offset)==null?void 0:w[p])||0)-(x?g.crossAxis:0);b<C?b=C:b>S&&(b=S)}return{[f]:h,[p]:b}}}},ob=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,a;const{placement:n,rects:o,platform:i,elements:s}=e,{apply:l=()=>{},...d}=Nt(t,e),u=await Da(e,d),p=Rt(n),f=xa(n),h=xt(n)==="y",{width:b,height:y}=o.floating;let g,v;p==="top"||p==="bottom"?(g=p,v=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=p,g=f==="end"?"top":"bottom");const w=y-u.top-u.bottom,P=b-u.left-u.right,x=tr(y-u[g],w),C=tr(b-u[v],P),S=!e.middlewareData.shift;let A=x,I=C;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(I=P),(a=e.middlewareData.shift)!=null&&a.enabled.y&&(A=w),S&&!f){const O=He(u.left,0),E=He(u.right,0),D=He(u.top,0),L=He(u.bottom,0);h?I=b-2*(O!==0||E!==0?O+E:He(u.left,u.right)):A=y-2*(D!==0||L!==0?D+L:He(u.top,u.bottom))}await l({...e,availableWidth:I,availableHeight:A});const T=await i.getDimensions(s.floating);return b!==T.width||y!==T.height?{reset:{rects:!0}}:{}}}};function _o(){return typeof window<"u"}function $a(t){return yh(t)?(t.nodeName||"").toLowerCase():"#document"}function ze(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ct(t){var e;return(e=(yh(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function yh(t){return _o()?t instanceof Node||t instanceof ze(t).Node:!1}function ht(t){return _o()?t instanceof Element||t instanceof ze(t).Element:!1}function St(t){return _o()?t instanceof HTMLElement||t instanceof ze(t).HTMLElement:!1}function sc(t){return!_o()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ze(t).ShadowRoot}const ib=new Set(["inline","contents"]);function hn(t){const{overflow:e,overflowX:r,overflowY:a,display:n}=pt(t);return/auto|scroll|overlay|hidden|clip/.test(e+a+r)&&!ib.has(n)}const sb=new Set(["table","td","th"]);function lb(t){return sb.has($a(t))}const cb=[":popover-open",":modal"];function So(t){return cb.some(e=>{try{return t.matches(e)}catch{return!1}})}const db=["transform","translate","scale","rotate","perspective"],ub=["transform","translate","scale","rotate","perspective","filter"],hb=["paint","layout","strict","content"];function Vs(t){const e=Hs(),r=ht(t)?pt(t):t;return db.some(a=>r[a]?r[a]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||ub.some(a=>(r.willChange||"").includes(a))||hb.some(a=>(r.contain||"").includes(a))}function pb(t){let e=rr(t);for(;St(e)&&!ma(e);){if(Vs(e))return e;if(So(e))return null;e=rr(e)}return null}function Hs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const fb=new Set(["html","body","#document"]);function ma(t){return fb.has($a(t))}function pt(t){return ze(t).getComputedStyle(t)}function Co(t){return ht(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function rr(t){if($a(t)==="html")return t;const e=t.assignedSlot||t.parentNode||sc(t)&&t.host||Ct(t);return sc(e)?e.host:e}function bh(t){const e=rr(t);return ma(e)?t.ownerDocument?t.ownerDocument.body:t.body:St(e)&&hn(e)?e:bh(e)}function Fa(t,e,r){var a;e===void 0&&(e=[]),r===void 0&&(r=!0);const n=bh(t),o=n===((a=t.ownerDocument)==null?void 0:a.body),i=ze(n);if(o){const s=Ri(i);
vendor: 4,267 bytes, line 118
118return e.concat(i,i.visualViewport||[],hn(n)?n:[],s&&r?Fa(s):[])}return e.concat(n,Fa(n,[],r))}function Ri(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function vh(t){const e=pt(t);let r=parseFloat(e.width)||0,a=parseFloat(e.height)||0;const n=St(t),o=n?t.offsetWidth:r,i=n?t.offsetHeight:a,s=Qn(r)!==o||Qn(a)!==i;return s&&(r=o,a=i),{width:r,height:a,$:s}}function Ks(t){return ht(t)?t:t.contextElement}function Qr(t){const e=Ks(t);if(!St(e))return $t(1);const r=e.getBoundingClientRect(),{width:a,height:n,$:o}=vh(e);let i=(o?Qn(r.width):r.width)/a,s=(o?Qn(r.height):r.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const mb=$t(0);function wh(t){const e=ze(t);return!Hs()||!e.visualViewport?mb:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function gb(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ze(t)?!1:e}function kr(t,e,r,a){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=t.getBoundingClientRect(),o=Ks(t);let i=$t(1);e&&(a?ht(a)&&(i=Qr(a)):i=Qr(t));const s=gb(o,r,a)?wh(o):$t(0);let l=(n.left+s.x)/i.x,d=(n.top+s.y)/i.y,u=n.width/i.x,p=n.height/i.y;if(o){const f=ze(o),h=a&&ht(a)?ze(a):a;let b=f,y=Ri(b);for(;y&&a&&h!==b;){const g=Qr(y),v=y.getBoundingClientRect(),w=pt(y),P=v.left+(y.clientLeft+parseFloat(w.paddingLeft))*g.x,x=v.top+(y.clientTop+parseFloat(w.paddingTop))*g.y;l*=g.x,d*=g.y,u*=g.x,p*=g.y,l+=P,d+=x,b=ze(y),y=Ri(b)}}return Zn({width:u,height:p,x:l,y:d})}function zs(t,e){const r=Co(t).scrollLeft;return e?e.left+r:kr(Ct(t)).left+r}function Ph(t,e,r){r===void 0&&(r=!1);const a=t.getBoundingClientRect(),n=a.left+e.scrollLeft-(r?0:zs(t,a)),o=a.top+e.scrollTop;return{x:n,y:o}}function yb(t){let{elements:e,rect:r,offsetParent:a,strategy:n}=t;const o=n==="fixed",i=Ct(a),s=e?So(e.floating):!1;if(a===i||s&&o)return r;let l={scrollLeft:0,scrollTop:0},d=$t(1);const u=$t(0),p=St(a);if((p||!p&&!o)&&(($a(a)!=="body"||hn(i))&&(l=Co(a)),St(a))){const h=kr(a);d=Qr(a),u.x=h.x+a.clientLeft,u.y=h.y+a.clientTop}const f=i&&!p&&!o?Ph(i,l,!0):$t(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+u.x+f.x,y:r.y*d.y-l.scrollTop*d.y+u.y+f.y}}function bb(t){return Array.from(t.getClientRects())}function vb(t){const e=Ct(t),r=Co(t),a=t.ownerDocument.body,n=He(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),o=He(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight);let i=-r.scrollLeft+zs(t);const s=-r.scrollTop;return pt(a).direction==="rtl"&&(i+=He(e.clientWidth,a.clientWidth)-n),{width:n,height:o,x:i,y:s}}function wb(t,e){const r=ze(t),a=Ct(t),n=r.visualViewport;let o=a.clientWidth,i=a.clientHeight,s=0,l=0;if(n){o=n.width,i=n.height;const d=Hs();(!d||d&&e==="fixed")&&(s=n.offsetLeft,l=n.offsetTop)}return{width:o,height:i,x:s,y:l}}const Pb=new Set(["absolute","fixed"]);function xb(t,e){const r=kr(t,!0,e==="fixed"),a=r.top+t.clientTop,n=r.left+t.clientLeft,o=St(t)?Qr(t):$t(1),i=t.clientWidth*o.x,s=t.clientHeight*o.y,l=n*o.x,d=a*o.y;return{width:i,height:s,x:l,y:d}}function lc(t,e,r){let a;if(e==="viewport")a=wb(t,r);else if(e==="document")a=vb(Ct(t));else if(ht(e))a=xb(e,r);else{const n=wh(t);a={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Zn(a)}function xh(t,e){const r=rr(t);return r===e||!ht(r)||ma(r)?!1:pt(r).position==="fixed"||xh(r,e)}function $b(t,e){const r=e.get(t);if(r)return r;let a=Fa(t,[],!1).filter(s=>ht(s)&&$a(s)!=="body"),n=null;const o=pt(t).position==="fixed";let i=o?rr(t):t;for(;ht(i)&&!ma(i);){const s=pt(i),l=Vs(i);!l&&s.position==="fixed"&&(n=null),(o?!l&&!n:!l&&s.position==="static"&&!!n&&Pb.has(n.position)||hn(i)&&!l&&xh(t,i))?a=a.filter(u=>u!==i):n=s,i=rr(i)}return e.set(t,a),a}function _b(t){let{element:e,boundary:r,rootBoundary:a,strategy:n}=t;const i=[...r==="clippingAncestors"?So(e)?[]:$b(e,this._c):[].concat(r),a],s=i[0],l=i.reduce((d,u)=>{const p=lc(e,u,n);return d.top=He(p.top,d.top),d.right=tr(p.right,d.right),d.bottom=tr(p.bottom,d.bottom),d.left=He(p.left,d.left),d},lc(e,s,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Sb(t){const{width:e,height:r}=vh(t);return{width:e,height:r}}function Cb(t,e,r){const a=St(e),n=Ct(e),o=r==="fixed",i=kr(t,!0,o,e);let s={scrollLeft:0,scrollTop:0};const l=$t(0);function d(){l.x=zs(n)}
vendor: 9,658 bytes, line 118
118if(a||!a&&!o)if(($a(e)!=="body"||hn(n))&&(s=Co(e)),a){const h=kr(e,!0,o,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else n&&d();o&&!a&&n&&d();const u=n&&!a&&!o?Ph(n,s):$t(0),p=i.left+s.scrollLeft-l.x-u.x,f=i.top+s.scrollTop-l.y-u.y;return{x:p,y:f,width:i.width,height:i.height}}function Zo(t){return pt(t).position==="static"}function cc(t,e){if(!St(t)||pt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ct(t)===r&&(r=r.ownerDocument.body),r}function $h(t,e){const r=ze(t);if(So(t))return r;if(!St(t)){let n=rr(t);for(;n&&!ma(n);){if(ht(n)&&!Zo(n))return n;n=rr(n)}return r}let a=cc(t,e);for(;a&&lb(a)&&Zo(a);)a=cc(a,e);return a&&ma(a)&&Zo(a)&&!Vs(a)?r:a||pb(t)||r}const Ab=async function(t){const e=this.getOffsetParent||$h,r=this.getDimensions,a=await r(t.floating);return{reference:Cb(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function Eb(t){return pt(t).direction==="rtl"}const Tb={convertOffsetParentRelativeRectToViewportRelativeRect:yb,getDocumentElement:Ct,getClippingRect:_b,getOffsetParent:$h,getElementRects:Ab,getClientRects:bb,getDimensions:Sb,getScale:Qr,isElement:ht,isRTL:Eb};function _h(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function kb(t,e){let r=null,a;const n=Ct(t);function o(){var s;clearTimeout(a),(s=r)==null||s.disconnect(),r=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const d=t.getBoundingClientRect(),{left:u,top:p,width:f,height:h}=d;if(s||e(),!f||!h)return;const b=Pn(p),y=Pn(n.clientWidth-(u+f)),g=Pn(n.clientHeight-(p+h)),v=Pn(u),P={rootMargin:-b+"px "+-y+"px "+-g+"px "+-v+"px",threshold:He(0,tr(1,l))||1};let x=!0;function C(S){const A=S[0].intersectionRatio;if(A!==l){if(!x)return i();A?i(!1,A):a=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!_h(d,t.getBoundingClientRect())&&i(),x=!1}try{r=new IntersectionObserver(C,{...P,root:n.ownerDocument})}catch{r=new IntersectionObserver(C,P)}r.observe(t)}return i(!0),o}function Ob(t,e,r,a){a===void 0&&(a={});const{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=a,d=Ks(t),u=n||o?[...d?Fa(d):[],...Fa(e)]:[];u.forEach(v=>{n&&v.addEventListener("scroll",r,{passive:!0}),o&&v.addEventListener("resize",r)});const p=d&&s?kb(d,r):null;let f=-1,h=null;i&&(h=new ResizeObserver(v=>{let[w]=v;w&&w.target===d&&h&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var P;(P=h)==null||P.observe(e)})),r()}),d&&!l&&h.observe(d),h.observe(e));let b,y=l?kr(t):null;l&&g();function g(){const v=kr(t);y&&!_h(y,v)&&r(),y=v,b=requestAnimationFrame(g)}return r(),()=>{var v;u.forEach(w=>{n&&w.removeEventListener("scroll",r),o&&w.removeEventListener("resize",r)}),p==null||p(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(b)}}const Ib=rb,Nb=ab,Rb=Zy,jb=ob,Lb=eb,dc=Yy,Db=nb,Fb=(t,e,r)=>{const a=new Map,n={platform:Tb,...r},o={...n.platform,_c:a};return Qy(t,e,{...n,platform:o})};var Mb=typeof document<"u",Bb=function(){},Bn=Mb?m.useLayoutEffect:Bb;function eo(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,a,n;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(a=r;a--!==0;)if(!eo(t[a],e[a]))return!1;return!0}if(n=Object.keys(t),r=n.length,r!==Object.keys(e).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(e,n[a]))return!1;for(a=r;a--!==0;){const o=n[a];if(!(o==="_owner"&&t.$$typeof)&&!eo(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function Sh(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function uc(t,e){const r=Sh(t);return Math.round(e*r)/r}function ei(t){const e=m.useRef(t);return Bn(()=>{e.current=t}),e}function Ub(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:a=[],platform:n,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:l,open:d}=t,[u,p]=m.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[f,h]=m.useState(a);eo(f,a)||h(a);const[b,y]=m.useState(null),[g,v]=m.useState(null),w=m.useCallback(W=>{W!==S.current&&(S.current=W,y(W))},[]),P=m.useCallback(W=>{W!==A.current&&(A.current=W,v(W))},[]),x=o||b,C=i||g,S=m.useRef(null),A=m.useRef(null),I=m.useRef(u),T=l!=null,O=ei(l),E=ei(n),D=ei(d),L=m.useCallback(()=>{if(!S.current||!A.current)return;const W={placement:e,strategy:r,middleware:f};E.current&&(W.platform=E.current),Fb(S.current,A.current,W).then(U=>{const se={...U,isPositioned:D.current!==!1};R.current&&!eo(I.current,se)&&(I.current=se,Ns.flushSync(()=>{p(se)}))})},[f,e,r,E,D]);Bn(()=>{d===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,p(W=>({...W,isPositioned:!1})))},[d]);const R=m.useRef(!1);Bn(()=>(R.current=!0,()=>{R.current=!1}),[]),Bn(()=>{if(x&&(S.current=x),C&&(A.current=C),x&&C){if(O.current)return O.current(x,C,L);L()}},[x,C,L,O,T]);const J=m.useMemo(()=>({reference:S,floating:A,setReference:w,setFloating:P}),[w,P]),z=m.useMemo(()=>({reference:x,floating:C}),[x,C]),H=m.useMemo(()=>{const W={position:r,left:0,top:0};if(!z.floating)return W;const U=uc(z.floating,u.x),se=uc(z.floating,u.y);return s?{...W,transform:"translate("+U+"px, "+se+"px)",...Sh(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:U,top:se}},[r,s,z.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:L,refs:J,elements:z,floatingStyles:H}),[u,L,J,z,H])}const qb=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:a,padding:n}=typeof t=="function"?t(r):t;return a&&e(a)?a.current!=null?dc({element:a.current,padding:n}).fn(r):{}:a?dc({element:a,padding:n}).fn(r):{}}}},Wb=(t,e)=>({...Ib(t),options:[t,e]}),Vb=(t,e)=>({...Nb(t),options:[t,e]}),Hb=(t,e)=>({...Db(t),options:[t,e]}),Kb=(t,e)=>({...Rb(t),options:[t,e]}),zb=(t,e)=>({...jb(t),options:[t,e]}),Gb=(t,e)=>({...Lb(t),options:[t,e]}),Xb=(t,e)=>({...qb(t),options:[t,e]});var Jb="Arrow",Ch=m.forwardRef((t,e)=>{const{children:r,width:a=10,height:n=5,...o}=t;return c.jsx(ye.svg,{...o,ref:e,width:a,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ch.displayName=Jb;var Qb=Ch;function Ah(t){const[e,r]=m.useState(void 0);return It(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const a=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const o=n[0];let i,s;if("borderBoxSize"in o){const l=o.borderBoxSize,d=Array.isArray(l)?l[0]:l;i=d.inlineSize,s=d.blockSize}else i=t.offsetWidth,s=t.offsetHeight;r({width:i,height:s})});return a.observe(t,{box:"border-box"}),()=>a.unobserve(t)}else r(void 0)},[t]),e}var Gs="Popper",[Eh,Th]=Pa(Gs),[Yb,kh]=Eh(Gs),Oh=t=>{const{__scopePopper:e,children:r}=t,[a,n]=m.useState(null);return c.jsx(Yb,{scope:e,anchor:a,onAnchorChange:n,children:r})};Oh.displayName=Gs;var Ih="PopperAnchor",Nh=m.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:a,...n}=t,o=kh(Ih,r),i=m.useRef(null),s=Oe(e,i);return m.useEffect(()=>{o.onAnchorChange((a==null?void 0:a.current)||i.current)}),a?null:c.jsx(ye.div,{...n,ref:s})});Nh.displayName=Ih;var Xs="PopperContent",[Zb,ev]=Eh(Xs),Rh=m.forwardRef((t,e)=>{var te,Ge,Z,le,Pe,ue;const{__scopePopper:r,side:a="bottom",sideOffset:n=0,align:o="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:p="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:b,...y}=t,g=kh(Xs,r),[v,w]=m.useState(null),P=Oe(e,Ae=>w(Ae)),[x,C]=m.useState(null),S=Ah(x),A=(S==null?void 0:S.width)??0,I=(S==null?void 0:S.height)??0,T=a+(o!=="center"?"-"+o:""),O=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},E=Array.isArray(d)?d:[d],D=E.length>0,L={padding:O,boundary:E.filter(rv),altBoundary:D},{refs:R,floatingStyles:J,placement:z,isPositioned:H,middlewareData:W}=Ub({strategy:"fixed",placement:T,whileElementsMounted:(...Ae)=>Ob(...Ae,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[Wb({mainAxis:n+I,alignmentAxis:i}),l&&Vb({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Hb():void 0,...L}),l&&Kb({...L}),zb({...L,apply:({elements:Ae,rects:Re,availableWidth:ir,availableHeight:gt})=>{const{width:Dt,height:Aa}=Re.reference,Rr=Ae.floating.style;Rr.setProperty("--radix-popper-available-width",`${ir}px`),Rr.setProperty("--radix-popper-available-height",`${gt}px`),Rr.setProperty("--radix-popper-anchor-width",`${Dt}px`),Rr.setProperty("--radix-popper-anchor-height",`${Aa}px`)}}),x&&Xb({element:x,padding:s}),av({arrowWidth:A,arrowHeight:I}),f&&Gb({strategy:"referenceHidden",...L})]}),[U,se]=Dh(z),Me=_t(b);It(()=>{H&&(Me==null||Me())},[H,Me]);const Y=(te=W.arrow)==null?void 0:te.x,ee=(Ge=W.arrow)==null?void 0:Ge.y,oe=((Z=W.arrow)==null?void 0:Z.centerOffset)!==0,[V,de]=m.useState();return It(()=>{v&&de(window.getComputedStyle(v).zIndex)},[v]),c.jsx("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:H?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:V,"--radix-popper-transform-origin":[(le=W.transformOrigin)==null?void 0:le.x,(Pe=W.transformOrigin)==null?void 0:Pe.y].join(" "),...((ue=W.hide)==null?void 0:ue.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:c.jsx(Zb,{scope:r,placedSide:U,onArrowChange:C,arrowX:Y,arrowY:ee,shouldHideArrow:oe,children:c.jsx(ye.div,{"data-side":U,"data-align":se,...y,ref:P,style:{...y.style,animation:H?void 0:"none"}})})})});Rh.displayName=Xs;var jh="PopperArrow",tv={top:"bottom",right:"left",bottom:"top",left:"r
118ight"},Lh=m.forwardRef(function(e,r){const{__scopePopper:a,...n}=e,o=ev(jh,a),i=tv[o.placedSide];return c.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:c.jsx(Qb,{...n,ref:r,style:{...n.style,display:"block"}})})});Lh.displayName=jh;function rv(t){return t!==null}var av=t=>({name:"transformOrigin",options:t,fn(e){var g,v,w;const{placement:r,rects:a,middlewareData:n}=e,i=((g=n.arrow)==null?void 0:g.centerOffset)!==0,s=i?0:t.arrowWidth,l=i?0:t.arrowHeight,[d,u]=Dh(r),p={start:"0%",center:"50%",end:"100%"}[u],f=(((v=n.arrow)==null?void 0:v.x)??0)+s/2,h=(((w=n.arrow)==null?void 0:w.y)??0)+l/2;let b="",y="";return d==="bottom"?(b=i?p:`${f}px`,y=`${-l}px`):d==="top"?(b=i?p:`${f}px`,y=`${a.floating.height+l}px`):d==="right"?(b=`${-l}px`,y=i?p:`${h}px`):d==="left"&&(b=`${a.floating.width+l}px`,y=i?p:`${h}px`),{data:{x:b,y}}}});function Dh(t){const[e,r="center"]=t.split("-");return[e,r]}var nv=Oh,ov=Nh,iv=Rh,sv=Lh,lv=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),cv="VisuallyHidden",Fh=m.forwardRef((t,e)=>c.jsx(ye.span,{...t,ref:e,style:{...lv,...t.style}}));Fh.displayName=cv;var dv=Fh,[Ao]=Pa("Tooltip",[Th]),Eo=Th(),Mh="TooltipProvider",uv=700,ji="tooltip.open",[hv,Js]=Ao(Mh),Bh=t=>{const{__scopeTooltip:e,delayDuration:r=uv,skipDelayDuration:a=300,disableHoverableContent:n=!1,children:o}=t,i=m.useRef(!0),s=m.useRef(!1),l=m.useRef(0);return m.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),c.jsx(hv,{scope:e,isOpenDelayedRef:i,delayDuration:r,onOpen:m.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,a)},[a]),isPointerInTransitRef:s,onPointerInTransitChange:m.useCallback(d=>{s.current=d},[]),disableHoverableContent:n,children:o})};Bh.displayName=Mh;var Ma="Tooltip",[pv,To]=Ao(Ma),Uh=t=>{const{__scopeTooltip:e,children:r,open:a,defaultOpen:n,onOpenChange:o,disableHoverableContent:i,delayDuration:s}=t,l=Js(Ma,t.__scopeTooltip),d=Eo(e),[u,p]=m.useState(null),f=Mn(),h=m.useRef(0),b=i??l.disableHoverableContent,y=s??l.delayDuration,g=m.useRef(!1),[v,w]=xo({prop:a,defaultProp:n??!1,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(ji))):l.onClose(),o==null||o(A)},caller:Ma}),P=m.useMemo(()=>v?g.current?"delayed-open":"instant-open":"closed",[v]),x=m.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,w(!0)},[w]),C=m.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),S=m.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,w(!0),h.current=0},y)},[y,w]);return m.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),c.jsx(nv,{...d,children:c.jsx(pv,{scope:e,contentId:f,open:v,stateAttribute:P,trigger:u,onTriggerChange:p,onTriggerEnter:m.useCallback(()=>{l.isOpenDelayedRef.current?S():x()},[l.isOpenDelayedRef,S,x]),onTriggerLeave:m.useCallback(()=>{b?C():(window.clearTimeout(h.current),h.current=0)},[C,b]),onOpen:x,onClose:C,disableHoverableContent:b,children:r})})};Uh.displayName=Ma;var Li="TooltipTrigger",qh=m.forwardRef((t,e)=>{const{__scopeTooltip:r,...a}=t,n=To(Li,r),o=Js(Li,r),i=Eo(r),s=m.useRef(null),l=Oe(e,s,n.onTriggerChange),d=m.useRef(!1),u=m.useRef(!1),p=m.useCallback(()=>d.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(ov,{asChild:!0,...i,children:c.jsx(ye.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...a,ref:l,onPointerMove:ge(t.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!o.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:ge(t.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:ge(t.onPointerDown,()=>{n.open&&n.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ge(t.onFocus,()=>{d.current||n.onOpen()}),onBlur:ge(t.onBlur,n.onClose),onClick:ge(t.onClick,n.onClose)})})});qh.displayName=Li;var fv="TooltipPortal",[CE,mv]=Ao(fv,{forceMount:void 0}),ga="TooltipContent",Wh=m.forwardRef((t,e)=>{const r=mv(ga,t.__scopeTooltip),{forceMount:a=r.forceMount,side:n="top",...o}=t,i=To(ga,t.__scopeTooltip);return c.jsx(Nr,{present:a||i.open,children:i.disableHoverableContent?c.jsx(Vh,{side:n,...o,ref:e}):c.jsx(gv,{side:n,...o,ref:e})})}),gv=m.forwardRef((t,e)=>{const r=To(ga,t.__scopeTooltip),a=Js(ga,t.__scopeTooltip),n=m.useRef(null),o=Oe(e,n),[i,s]=m.useState(null),{trigger:l,onClose:d}=r,u=n.current,{onPointerInTransitChange:p}=a,f=m.useCallback(()=>{s(null),p(!1)},[p]),h=m.useCallback((b,y)=>{const g=b.currentTarget,v={x:b.clientX,y:b.clientY},w=Pv(v,g.getBoundingClientRect()),P=xv(v,w),x=$v(y.getBoundingClientRect()),C=Sv([...P,...x]);s(C),p(!0)},[p]);return m.useEffect(()=>()=>f(),[f]),m.useEffect(()=>{if(l&&u){const b=g=>h(g,u),y=g=>h(g,l);return l.addEventListener("pointerleave",b),u.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",y)}}},[l,u,h,f]),m.useEffect(()=>{if(i){const b=y=>{const g=y.target,v={x:y.clientX,y:y.clientY},w=(l==null?void 0:l.contains(g))||(u==null?void 0:u.contains(g)),P=!_v(v,i);w?f():P&&(f(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,u,i,d,f]),c.jsx(Vh,{...t,ref:o})}),[yv,bv]=Ao(Ma,{isInside:!1}),vv=zg("TooltipContent"),Vh=m.forwardRef((t,e)=>{const{__scopeTooltip:r,children:a,"aria-label":n,onEscapeKeyDown:o,onPointerDownOutside:i,...s}=t,l=To(ga,r),d=Eo(r),{onClose:u}=l;return m.useEffect(()=>(document.addEventListener(ji,u),()=>document.removeEventListener(ji,u)),[u]),m.useEffect(()=>{if(l.trigger){const p=f=>{const h=f.target;h!=null&&h.contains(l.trigger)&&u()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,u]),c.jsx(Po,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:u,children:c.jsxs(iv,{"data-state":l.stateAttribute,...d,...s,ref:e,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(vv,{children:a}),c.jsx(yv,{scope:r,isInside:!0,children:c.jsx(dv,{id:l.contentId,role:"tooltip",children:n||a})})]})})});Wh.displayName=ga;
118var Hh="TooltipArrow",wv=m.forwardRef((t,e)=>{const{__scopeTooltip:r,...a}=t,n=Eo(r);return bv(Hh,r).isInside?null:c.jsx(sv,{...n,...a,ref:e})});wv.displayName=Hh;function Pv(t,e){const r=Math.abs(e.top-t.y),a=Math.abs(e.bottom-t.y),n=Math.abs(e.right-t.x),o=Math.abs(e.left-t.x);switch(Math.min(r,a,n,o)){case o:return"left";case n:return"right";case r:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function xv(t,e,r=5){const a=[];switch(e){case"top":a.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":a.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":a.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":a.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return a}function $v(t){const{top:e,right:r,bottom:a,left:n}=t;return[{x:n,y:e},{x:r,y:e},{x:r,y:a},{x:n,y:a}]}function _v(t,e){const{x:r,y:a}=t;let n=!1;for(let o=0,i=e.length-1;o<e.length;i=o++){const s=e[o],l=e[i],d=s.x,u=s.y,p=l.x,f=l.y;u>a!=f>a&&r<(p-d)*(a-u)/(f-u)+d&&(n=!n)}return n}function Sv(t){const e=t.slice();return e.sort((r,a)=>r.x<a.x?-1:r.x>a.x?1:r.y<a.y?-1:r.y>a.y?1:0),Cv(e)}function Cv(t){if(t.length<=1)return t.slice();const e=[];for(let a=0;a<t.length;a++){const n=t[a];for(;e.length>=2;){const o=e[e.length-1],i=e[e.length-2];if((o.x-i.x)*(n.y-i.y)>=(o.y-i.y)*(n.x-i.x))e.pop();else break}e.push(n)}e.pop();const r=[];for(let a=t.length-1;a>=0;a--){const n=t[a];for(;r.length>=2;){const o=r[r.length-1],i=r[r.length-2];if((o.x-i.x)*(n.y-i.y)>=(o.y-i.y)*(n.x-i.x))r.pop();else break}r.push(n)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var Av=Bh,Ev=Uh,Tv=qh,Kh=Wh;const kv=Av,AE=Ev,EE=Tv,Ov=m.forwardRef(({className:t,sideOffset:e=4,...r},a)=>c.jsx(Kh,{ref:a,sideOffset:e,className:ne("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));Ov.displayName=Kh.displayName;var pn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Or=typeof window>"u"||"Deno"in globalThis;function We(){}function Iv(t,e){return typeof t=="function"?t(e):t}function Di(t){return typeof t=="number"&&t>=0&&t!==1/0}function zh(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Zt(t,e){return typeof t=="function"?t(e):t}function Qe(t,e){return typeof t=="function"?t(e):t}function hc(t,e){const{type:r="all",exact:a,fetchStatus:n,predicate:o,queryKey:i,stale:s}=t;if(i){if(a){if(e.queryHash!==Qs(i,e.options))return!1}else if(!Ua(e.queryKey,i))return!1}if(r!=="all"){const l=e.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||n&&n!==e.state.fetchStatus||o&&!o(e))}function pc(t,e){const{exact:r,status:a,predicate:n,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return!1;if(r){if(Ba(e.options.mutationKey)!==Ba(o))return!1}else if(!Ua(e.options.mutationKey,o))return!1}return!(a&&e.state.status!==a||n&&!n(e))}function Qs(t,e){return((e==null?void 0:e.queryKeyHashFn)||Ba)(t)}function Ba(t){return JSON.stringify(t,(e,r)=>Mi(r)?Object.keys(r).sort().reduce((a,n)=>(a[n]=r[n],a),{}):r)}function Ua(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(r=>Ua(t[r],e[r])):!1}function Gh(t,e){if(t===e)return t;const r=fc(t)&&fc(e);if(r||Mi(t)&&Mi(e)){const a=r?t:Object.keys(t),n=a.length,o=r?e:Object.keys(e),i=o.length,s=r?[]:{},l=new Set(a);let d=0;for(let u=0;u<i;u++){const p=r?u:o[u];(!r&&l.has(p)||r)&&t[p]===void 0&&e[p]===void 0?(s[p]=void 0,d++):(s[p]=Gh(t[p],e[p]),s[p]===t[p]&&t[p]!==void 0&&d++)}return n===i&&d===n?t:s}return e}function Fi(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(t[r]!==e[r])return!1;return!0}function fc(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Mi(t){if(!mc(t))return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(!mc(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function mc(t){return Object.prototype.toString.call(t)==="[object Object]"}function Nv(t){return new Promise(e=>{setTimeout(e,t)})}function Bi(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?Gh(t,e):e}function Rv(t,e,r=0){const a=[...t,e];return r&&a.length>r?a.slice(1):a}function jv(t,e,r=0){const a=[e,...t];return r&&a.length>r?a.slice(0,-1):a}var Ys=Symbol();function Xh(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===Ys?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Lv(t,e){return typeof t=="function"?t(...e):!!t}var vr,Ht,aa,Pu,Dv=(Pu=class extends pn{constructor(){super();G(this,vr);G(this,Ht);G(this,aa);B(this,aa,e=>{if(!Or&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){_(this,Ht)||this.setEventListener(_(this,aa))}onUnsubscribe(){var e;this.hasListeners()||((e=_(this,Ht))==null||e.call(this),B(this,Ht,void 0))}setEventListener(e){var r;B(this,aa,e),(r=_(this,Ht))==null||r.call(this),B(this,Ht,e(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(e){_(this,vr)!==e&&(B(this,vr,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 4,900 bytes, line 118
118this.listeners.forEach(r=>{r(e)})}isFocused(){var e;return typeof _(this,vr)=="boolean"?_(this,vr):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},vr=new WeakMap,Ht=new WeakMap,aa=new WeakMap,Pu),Zs=new Dv,na,Kt,oa,xu,Fv=(xu=class extends pn{constructor(){super();G(this,na,!0);G(this,Kt);G(this,oa);B(this,oa,e=>{if(!Or&&window.addEventListener){const r=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",a)}}})}onSubscribe(){_(this,Kt)||this.setEventListener(_(this,oa))}onUnsubscribe(){var e;this.hasListeners()||((e=_(this,Kt))==null||e.call(this),B(this,Kt,void 0))}setEventListener(e){var r;B(this,oa,e),(r=_(this,Kt))==null||r.call(this),B(this,Kt,e(this.setOnline.bind(this)))}setOnline(e){_(this,na)!==e&&(B(this,na,e),this.listeners.forEach(a=>{a(e)}))}isOnline(){return _(this,na)}},na=new WeakMap,Kt=new WeakMap,oa=new WeakMap,xu),to=new Fv;function Ui(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});r.status="pending",r.catch(()=>{});function a(n){Object.assign(r,n),delete r.resolve,delete r.reject}return r.resolve=n=>{a({status:"fulfilled",value:n}),t(n)},r.reject=n=>{a({status:"rejected",reason:n}),e(n)},r}function Mv(t){return Math.min(1e3*2**t,3e4)}function Jh(t){return(t??"online")==="online"?to.isOnline():!0}var Qh=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function ti(t){return t instanceof Qh}function Yh(t){let e=!1,r=0,a=!1,n;const o=Ui(),i=y=>{var g;a||(f(new Qh(y)),(g=t.abort)==null||g.call(t))},s=()=>{e=!0},l=()=>{e=!1},d=()=>Zs.isFocused()&&(t.networkMode==="always"||to.isOnline())&&t.canRun(),u=()=>Jh(t.networkMode)&&t.canRun(),p=y=>{var g;a||(a=!0,(g=t.onSuccess)==null||g.call(t,y),n==null||n(),o.resolve(y))},f=y=>{var g;a||(a=!0,(g=t.onError)==null||g.call(t,y),n==null||n(),o.reject(y))},h=()=>new Promise(y=>{var g;n=v=>{(a||d())&&y(v)},(g=t.onPause)==null||g.call(t)}).then(()=>{var y;n=void 0,a||(y=t.onContinue)==null||y.call(t)}),b=()=>{if(a)return;let y;const g=r===0?t.initialPromise:void 0;try{y=g??t.fn()}catch(v){y=Promise.reject(v)}Promise.resolve(y).then(p).catch(v=>{var S;if(a)return;const w=t.retry??(Or?0:3),P=t.retryDelay??Mv,x=typeof P=="function"?P(r,v):P,C=w===!0||typeof w=="number"&&r<w||typeof w=="function"&&w(r,v);if(e||!C){f(v);return}r++,(S=t.onFail)==null||S.call(t,r,v),Nv(x).then(()=>d()?void 0:h()).then(()=>{e?f(v):b()})})};return{promise:o,cancel:i,continue:()=>(n==null||n(),o),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?b():h().then(b),o)}}var Bv=t=>setTimeout(t,0);function Uv(){let t=[],e=0,r=s=>{s()},a=s=>{s()},n=Bv;const o=s=>{e?t.push(s):n(()=>{r(s)})},i=()=>{const s=t;t=[],s.length&&n(()=>{a(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;e++;try{l=s()}finally{e--,e||i()}return l},batchCalls:s=>(...l)=>{o(()=>{s(...l)})},schedule:o,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{a=s},setScheduler:s=>{n=s}}}var ke=Uv(),wr,$u,Zh=($u=class{constructor(){G(this,wr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Di(this.gcTime)&&B(this,wr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Or?1/0:5*60*1e3))}clearGcTimeout(){_(this,wr)&&(clearTimeout(_(this,wr)),B(this,wr,void 0))}},wr=new WeakMap,$u),ia,Pr,Je,xr,Ie,nn,$r,st,At,_u,qv=(_u=class extends Zh{constructor(e){super();G(this,st);G(this,ia);G(this,Pr);G(this,Je);G(this,xr);G(this,Ie);G(this,nn);G(this,$r);B(this,$r,!1),B(this,nn,e.defaultOptions),this.setOptions(e.options),this.observers=[],B(this,xr,e.client),B(this,Je,_(this,xr).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,B(this,ia,Wv(this.options)),this.state=e.state??_(this,ia),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=_(this,Ie))==null?void 0:e.promise}setOptions(e){this.options={..._(this,nn),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_(this,Je).remove(this)}setData(e,r){const a=Bi(this.state.data,e,this.options);return re(this,st,At).call(this,{data:a,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),a}setState(e,r){re(this,st,At).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var a,n;const r=(a=_(this,Ie))==null?void 0:a.promise;return(n=_(this,Ie))==null||n.cancel(e),r?r.then(We).catch(We):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_(this,ia))}isActive(){return this.observers.some(e=>Qe(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ys||this.state.dataUpdateCount+this.state.errorUpdate
118Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Zt(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!zh(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=this.observers.find(a=>a.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=_(this,Ie))==null||r.continue()}onOnline(){var r;const e=this.observers.find(a=>a.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=_(this,Ie))==null||r.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),_(this,Je).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(_(this,Ie)&&(_(this,$r)?_(this,Ie).cancel({revert:!0}):_(this,Ie).cancelRetry()),this.scheduleGc()),_(this,Je).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||re(this,st,At).call(this,{type:"invalidate"})}fetch(e,r){var d,u,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(_(this,Ie))return _(this,Ie).continueRetry(),_(this,Ie).promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const a=new AbortController,n=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(B(this,$r,!0),a.signal)})},o=()=>{const f=Xh(this.options,r),b=(()=>{const y={client:_(this,xr),queryKey:this.queryKey,meta:this.meta};return n(y),y})();return B(this,$r,!1),this.options.persister?this.options.persister(f,b,this):f(b)},s=(()=>{const f={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:_(this,xr),state:this.state,fetchFn:o};return n(f),f})();(d=this.options.behavior)==null||d.onFetch(s,this),B(this,Pr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&re(this,st,At).call(this,{type:"fetch",meta:(p=s.fetchOptions)==null?void 0:p.meta});const l=f=>{var h,b,y,g;ti(f)&&f.silent||re(this,st,At).call(this,{type:"error",error:f}),ti(f)||((b=(h=_(this,Je).config).onError)==null||b.call(h,f,this),(g=(y=_(this,Je).config).onSettled)==null||g.call(y,this.state.data,f,this)),this.scheduleGc()};return B(this,Ie,Yh({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,abort:a.abort.bind(a),onSuccess:f=>{var h,b,y,g;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){l(v);return}(b=(h=_(this,Je).config).onSuccess)==null||b.call(h,f,this),(g=(y=_(this,Je).config).onSettled)==null||g.call(y,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,h)=>{re(this,st,At).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{re(this,st,At).call(this,{type:"pause"})},onContinue:()=>{re(this,st,At).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),_(this,Ie).start()}},ia=new WeakMap,Pr=new WeakMap,Je=new WeakMap,xr=new WeakMap,Ie=new WeakMap,nn=new WeakMap,$r=new WeakMap,st=new WeakSet,At=function(e){const r=a=>{switch(e.type){case"failed":return{...a,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...ep(a.data,this.options),fetchMeta:e.meta??null};case"success":return B(this,Pr,void 0),{...a,data:e.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return ti(n)&&n.revert&&_(this,Pr)?{..._(this,Pr),fetchStatus:"idle"}
vendor: 5,095 bytes, line 118
118:{...a,error:n,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...e.state}}};this.state=r(this.state),ke.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),_(this,Je).notify({query:this,type:"updated",action:e})})},_u);function ep(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Jh(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Wv(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,a=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var bt,Su,Vv=(Su=class extends pn{constructor(e={}){super();G(this,bt);this.config=e,B(this,bt,new Map)}build(e,r,a){const n=r.queryKey,o=r.queryHash??Qs(n,r);let i=this.get(o);return i||(i=new qv({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(r),state:a,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){_(this,bt).has(e.queryHash)||(_(this,bt).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=_(this,bt).get(e.queryHash);r&&(e.destroy(),r===e&&_(this,bt).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ke.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return _(this,bt).get(e)}getAll(){return[..._(this,bt).values()]}find(e){const r={exact:!0,...e};return this.getAll().find(a=>hc(r,a))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(a=>hc(e,a)):r}notify(e){ke.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){ke.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ke.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},bt=new WeakMap,Su),vt,Le,_r,wt,Ut,Cu,Hv=(Cu=class extends Zh{constructor(e){super();G(this,wt);G(this,vt);G(this,Le);G(this,_r);this.mutationId=e.mutationId,B(this,Le,e.mutationCache),B(this,vt,[]),this.state=e.state||Kv(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){_(this,vt).includes(e)||(_(this,vt).push(e),this.clearGcTimeout(),_(this,Le).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){B(this,vt,_(this,vt).filter(r=>r!==e)),this.scheduleGc(),_(this,Le).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){_(this,vt).length||(this.state.status==="pending"?this.scheduleGc():_(this,Le).remove(this))}continue(){var e;return((e=_(this,_r))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var o,i,s,l,d,u,p,f,h,b,y,g,v,w,P,x,C,S,A,I;const r=()=>{re(this,wt,Ut).call(this,{type:"continue"})};B(this,_r,Yh({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(T,O)=>{re(this,wt,Ut).call(this,{type:"failed",failureCount:T,error:O})},onPause:()=>{re(this,wt,Ut).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_(this,Le).canRun(this)}));const a=this.state.status==="pending",n=!_(this,_r).canStart();try{if(a)r();else{re(this,wt,Ut).call(this,{type:"pending",variables:e,isPaused:n}),await((i=(o=_(this,Le).config).onMutate)==null?void 0:i.call(o,e,this));const O=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,e));O!==this.state.context&&re(this,wt,Ut).call(this,{type:"pending",context:O,variables:e,isPaused:n})}const T=await _(this,_r).start();return await((u=(d=_(this,Le).config).onSuccess)==null?void 0:u.call(d,T,e,this.state.context,this)),await((f=(p=this.options).onSuccess)==null?void 0:f.call(p,T,e,this.state.context)),await((b=(h=_(this,Le).config).onSettled)==null?void 0:b.call(h,T,null,this.state.variables,this.state.context,this)),await((g=(y=this.options).onSettled)==null?void 0:g.call(y,T,null,e,this.state.context)),re(this,wt,Ut).call(this,{type:"success",data:T}),T}catch(T){try{throw await((w=(v=_(this,Le).config).onError)==null?void 0:w.call(v,T,e,this.state.context,this)),await((x=(P=this.options).onError)==null?void 0:x.call(P,T,e,this.state.context)),await((S=(C=_(this,Le).config).onSettled)==null?void 0:S.call(C,void 0,T,this.state.variables,this.state.context,this)),await((I=(A=this.options).onSettled)==null?void 0:I.call(A,void 0,T,e,this.state.context)),T}finally{re(this,wt,Ut).call(this,{type:"error",error:T})}}finally{_(this,Le).runNext(this)}}},vt=new WeakMap,Le=new WeakMap,_r=new WeakMap,wt=new WeakSet,Ut=function(e){const r=a=>{switch(e.type){case"failed":return{...a,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};
118case"pending":return{...a,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...a,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:e.error,failureCount:a.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),ke.batch(()=>{_(this,vt).forEach(a=>{a.onMutationUpdate(e)}),_(this,Le).notify({mutation:this,type:"updated",action:e})})},Cu);function Kv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var kt,lt,on,Au,zv=(Au=class extends pn{constructor(e={}){super();G(this,kt);G(this,lt);G(this,on);this.config=e,B(this,kt,new Set),B(this,lt,new Map),B(this,on,0)}build(e,r,a){const n=new Hv({mutationCache:this,mutationId:++yn(this,on)._,options:e.defaultMutationOptions(r),state:a});return this.add(n),n}add(e){_(this,kt).add(e);const r=xn(e);if(typeof r=="string"){const a=_(this,lt).get(r);a?a.push(e):_(this,lt).set(r,[e])}this.notify({type:"added",mutation:e})}remove(e){if(_(this,kt).delete(e)){const r=xn(e);if(typeof r=="string"){const a=_(this,lt).get(r);if(a)if(a.length>1){const n=a.indexOf(e);n!==-1&&a.splice(n,1)}else a[0]===e&&_(this,lt).delete(r)}}this.notify({type:"removed",mutation:e})}canRun(e){const r=xn(e);if(typeof r=="string"){const a=_(this,lt).get(r),n=a==null?void 0:a.find(o=>o.state.status==="pending");return!n||n===e}else return!0}runNext(e){var a;const r=xn(e);if(typeof r=="string"){const n=(a=_(this,lt).get(r))==null?void 0:a.find(o=>o!==e&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ke.batch(()=>{_(this,kt).forEach(e=>{this.notify({type:"removed",mutation:e})}),_(this,kt).clear(),_(this,lt).clear()})}getAll(){return Array.from(_(this,kt))}find(e){const r={exact:!0,...e};return this.getAll().find(a=>pc(r,a))}findAll(e={}){return this.getAll().filter(r=>pc(e,r))}notify(e){ke.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){const e=this.getAll().filter(r=>
vendor: 14,875 bytes, line 118
118r.state.isPaused);return ke.batch(()=>Promise.all(e.map(r=>r.continue().catch(We))))}},kt=new WeakMap,lt=new WeakMap,on=new WeakMap,Au);function xn(t){var e;return(e=t.options.scope)==null?void 0:e.id}function gc(t){return{onFetch:(e,r)=>{var u,p,f,h,b;const a=e.options,n=(f=(p=(u=e.fetchOptions)==null?void 0:u.meta)==null?void 0:p.fetchMore)==null?void 0:f.direction,o=((h=e.state.data)==null?void 0:h.pages)||[],i=((b=e.state.data)==null?void 0:b.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const d=async()=>{let y=!1;const g=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(e.signal.aborted?y=!0:e.signal.addEventListener("abort",()=>{y=!0}),e.signal)})},v=Xh(e.options,e.fetchOptions),w=async(P,x,C)=>{if(y)return Promise.reject();if(x==null&&P.pages.length)return Promise.resolve(P);const A=(()=>{const E={client:e.client,queryKey:e.queryKey,pageParam:x,direction:C?"backward":"forward",meta:e.options.meta};return g(E),E})(),I=await v(A),{maxPages:T}=e.options,O=C?jv:Rv;return{pages:O(P.pages,I,T),pageParams:O(P.pageParams,x,T)}};if(n&&o.length){const P=n==="backward",x=P?Gv:yc,C={pages:o,pageParams:i},S=x(a,C);s=await w(C,S,P)}else{const P=t??o.length;do{const x=l===0?i[0]??a.initialPageParam:yc(a,s);if(l>0&&x==null)break;s=await w(s,x),l++}while(l<P)}return s};e.options.persister?e.fetchFn=()=>{var y,g;return(g=(y=e.options).persister)==null?void 0:g.call(y,d,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=d}}}function yc(t,{pages:e,pageParams:r}){const a=e.length-1;return e.length>0?t.getNextPageParam(e[a],e,r[a],r):void 0}function Gv(t,{pages:e,pageParams:r}){var a;return e.length>0?(a=t.getPreviousPageParam)==null?void 0:a.call(t,e[0],e,r[0],r):void 0}var xe,zt,Gt,sa,la,Xt,ca,da,Eu,Xv=(Eu=class{constructor(t={}){G(this,xe);G(this,zt);G(this,Gt);G(this,sa);G(this,la);G(this,Xt);G(this,ca);G(this,da);B(this,xe,t.queryCache||new Vv),B(this,zt,t.mutationCache||new zv),B(this,Gt,t.defaultOptions||{}),B(this,sa,new Map),B(this,la,new Map),B(this,Xt,0)}mount(){yn(this,Xt)._++,_(this,Xt)===1&&(B(this,ca,Zs.subscribe(async t=>{t&&(await this.resumePausedMutations(),_(this,xe).onFocus())})),B(this,da,to.subscribe(async t=>{t&&(await this.resumePausedMutations(),_(this,xe).onOnline())})))}unmount(){var t,e;yn(this,Xt)._--,_(this,Xt)===0&&((t=_(this,ca))==null||t.call(this),B(this,ca,void 0),(e=_(this,da))==null||e.call(this),B(this,da,void 0))}isFetching(t){return _(this,xe).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return _(this,zt).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=_(this,xe).get(e.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),r=_(this,xe).build(this,e),a=r.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Zt(e.staleTime,r))&&this.prefetchQuery(e),Promise.resolve(a))}getQueriesData(t){return _(this,xe).findAll(t).map(({queryKey:e,state:r})=>{const a=r.data;return[e,a]})}setQueryData(t,e,r){const a=this.defaultQueryOptions({queryKey:t}),n=_(this,xe).get(a.queryHash),o=n==null?void 0:n.state.data,i=Iv(e,o);if(i!==void 0)return _(this,xe).build(this,a).setData(i,{...r,manual:!0})}setQueriesData(t,e,r){return ke.batch(()=>_(this,xe).findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,e,r)]))}getQueryState(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=_(this,xe).get(e.queryHash))==null?void 0:r.state}removeQueries(t){const e=_(this,xe);ke.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=_(this,xe);return ke.batch(()=>(r.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const r={revert:!0,...e},a=ke.batch(()=>_(this,xe).findAll(t).map(n=>n.cancel(r)));return Promise.all(a).then(We).catch(We)}invalidateQueries(t,e={}){return ke.batch(()=>(_(this,xe).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const r={...e,cancelRefetch:e.cancelRefetch??!0},a=ke.batch(()=>_(this,xe).findAll(t).filter(n=>!n.isDisabled()&&!n.isStatic()).map(n=>{let o=n.fetch(void 0,r);return r.throwOnError||(o=o.catch(We)),n.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(a).then(We)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const r=_(this,xe).build(this,e);return r.isStaleByTime(Zt(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(We).catch(We)}fetchInfiniteQuery(t){return t.behavior=gc(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(We).catch(We)}ensureInfiniteQueryData(t){return t.behavior=gc(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return to.isOnline()?_(this,zt).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,xe)}getMutationCache(){return _(this,zt)}getDefaultOptions(){return _(this,Gt)}setDefaultOptions(t){B(this,Gt,t)}setQueryDefaults(t,e){_(this,sa).set(Ba(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[..._(this,sa).values()],r={};return e.forEach(a=>{Ua(t,a.queryKey)&&Object.assign(r,a.defaultOptions)}),r}setMutationDefaults(t,e){_(this,la).set(Ba(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[..._(this,la).values()],r={};return e.forEach(a=>{Ua(t,a.mutationKey)&&Object.assign(r,a.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={..._(this,Gt).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Qs(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Ys&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{..._(this,Gt).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){_(this,xe).clear(),_(this,zt).clear()}},xe=new WeakMap,zt=new WeakMap,Gt=new WeakMap,sa=new WeakMap,la=new WeakMap,Xt=new WeakMap,ca=new WeakMap,da=new WeakMap,Eu),Ue,ae,sn,De,Sr,ua,Jt,Qt,ln,ha,pa,Cr,Ar,Yt,fa,ce,ka,qi,Wi,Vi,Hi,Ki,zi,Gi,tp,Tu,Jv=(Tu=class extends pn{constructor(e,r){super();G(this,ce);G(this,Ue);G(this,ae);G(this,sn);G(this,De);G(this,Sr);G(this,ua);G(this,Jt);G(this,Qt);G(this,ln);G(this,ha);G(this,pa);G(this,Cr);G(this,Ar);G(this,Yt);G(this,fa,new Set);this.options=r,B(this,Ue,e),B(this,Qt,null),B(this,Jt,Ui()),this.options.experimental_prefetchInRender||_(this,Jt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_(this,ae).addObserver(this),bc(_(this,ae),this.options)?re(this,ce,ka).call(this):this.updateResult(),re(this,ce,Hi).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xi(_(this,ae),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xi(_(this,ae),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,re(this,ce,Ki).call(this),re(this,ce,zi).call(this),_(this,ae).removeObserver(this)}setOptions(e){const r=this.options,a=_(this,ae);if(this.options=_(this,Ue).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Qe(this.options.enabled,_(this,ae))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");re(this,ce,Gi).call(this),_(this,ae).setOptions(this.options),r._defaulted&&!Fi(this.options,r)&&_(this,Ue).getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,ae),observer:this});const n=this.hasListeners();n&&vc(_(this,ae),a,this.options,r)&&re(this,ce,ka).call(this),this.updateResult(),n&&(_(this,ae)!==a||Qe(this.options.enabled,_(this,ae))!==Qe(r.enabled,_(this,ae))||Zt(this.options.staleTime,_(this,ae))!==Zt(r.staleTime,_(this,ae)))&&re(this,ce,qi).call(this);const o=re(this,ce,Wi).call(this);n&&(_(this,ae)!==a||Qe(this.options.enabled,_(this,ae))!==Qe(r.enabled,_(this,ae))||o!==_(this,Yt))&&re(this,ce,Vi).call(this,o)}getOptimisticResult(e){const r=_(this,Ue).getQueryCache().build(_(this,Ue),e),a=this.createResult(r,e);return Yv(this,a)&&(B(this,De,a),B(this,ua,this.options),B(this,Sr,_(this,ae).state)),a}getCurrentResult(){return _(this,De)}trackResult(e,r){return new Proxy(e,{get:(a,n)=>(this.trackProp(n),r==null||r(n),Reflect.get(a,n))})}trackProp(e){_(this,fa).add(e)}getCurrentQuery(){return _(this,ae)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const r=_(this,Ue).defaultQueryOptions(e),a=_(this,Ue).getQueryCache().build(_(this,Ue),r);return a.fetch().then(()=>this.createResult(a,r))}fetch(e){return re(this,ce,ka).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),_(this,De)))}createResult(e,r){var T;const a=_(this,ae),n=this.options,o=_(this,De),i=_(this,Sr),s=_(this,ua),d=e!==a?e.state:_(this,sn),{state:u}=e;let p={...u},f=!1,h;if(r._optimisticResults){const O=this.hasListeners(),E=!O&&bc(e,r),D=O&&vc(e,a,r,n);(E||D)&&(p={...p,...ep(u.data,e.options)}),r._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:y,status:g}=p;h=p.data;let v=!1;if(r.placeholderData!==void 0&&h===void 0&&g==="pending"){let O;o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData)?(O=o.data,v=!0):O=typeof r.placeholderData=="function"?r.placeholderData((T=_(this,pa))==null?void 0:T.state.data,_(this,pa)):r.placeholderData,O!==void 0&&(g="success",h=Bi(o==null?void 0:o.data,O,r),f=!0)}if(r.select&&h!==void 0&&!v)if(o&&h===(i==null?void 0:i.data)&&r.select===_(this,ln))h=_(this,ha);else try{B(this,ln,r.select),h=r.select(h),h=Bi(o==null?void 0:o.data,h,r),B(this,ha,h),B(this,Qt,null)}catch(O){B(this,Qt,O)}_(this,Qt)&&(b=_(this,Qt),h=_(this,ha),y=Date.now(),g="error");const w=p.fetchStatus==="fetching",P=g==="pending",x=g==="error",C=P&&w,S=h!==void 0,I={status:g,fetchStatus:p.fetchStatus,isPending:P,isSuccess:g==="success",isError:x,isInitialLoading:C,isLoading:C,data:h,dataUpdatedAt:p.dataUpdatedAt,error:b,errorUpdatedAt:y,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:w,isRefetching:w&&!P,isLoadingError:x&&!S,isPaused:p.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:x&&S,isStale:el(e,r),refetch:this.refetch,promise:_(this,Jt),isEnabled:Qe(r.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const O=L=>{I.status==="error"?L.reject(I.error):I.data!==void 0&&L.resolve(I.data)},E=()=>{const L=B(this,Jt,I.promise=Ui());O(L)},D=_(this,Jt);switch(D.status){case"pending":e.queryHash===a.queryHash&&O(D);break;case"fulfilled":(I.status==="error"||I.data!==D.value)&&E();break;case"rejected":(I.status!=="error"||I.error!==D.reason)&&E();break}}return I}updateResult(){const e=_(this,De),r=this.createResult(_(this,ae),this.options);if(B(this,Sr,_(this,ae).state),B(this,ua,this.options),_(this,Sr).data!==void 0&&B(this,pa,_(this,ae)),Fi(r,e))return;B(this,De,r);const a=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,o=typeof n=="function"?n():n;if(o==="all"||!o&&!_(this,fa).size)return!0;const i=new Set(o??_(this,fa));return this.options.throwOnError&&i.add("error"),Object.keys(_(this,De)).some(s=>{const l=s;return _(this,De)[l]!==e[l]&&i.has(l)})};re(this,ce,tp).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&re(this,ce,Hi).call(this)}},Ue=new WeakMap,ae=new WeakMap,sn=new WeakMap,De=new WeakMap,Sr=new WeakMap,ua=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,ln=new WeakMap,ha=new WeakMap,pa=new WeakMap,Cr=new WeakMap,Ar=new WeakMap,Yt=new WeakMap,fa=new WeakMap,ce=new WeakSet,ka=function(e){re(this,ce,Gi).call(this);let r=_(this,ae).fetch(this.options,e);return e!=null&&e.throwOnError||(r=r.catch(We)),r},qi=function(){re(this,ce,Ki).call(this);const e=Zt(this.options.staleTime,_(this,ae));if(Or||_(this,De).isStale||!Di(e))return;const a=zh(_(this,De).dataUpdatedAt,e)+1;B(this,Cr,setTimeout(()=>{_(this,De).isStale||this.updateResult()},a))},Wi=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_(this,ae)):this.options.refetchInterval)??!1},Vi=function(e){re(this,ce,zi).call(this),B(this,Yt,e),!(Or||Qe(this.options.enabled,_(this,ae))===!1||!Di(_(this,Yt))||_(this,Yt)===0)&&B(this,Ar,setInterval(()=>{(this.options.refetchIntervalInBackground||Zs.isFocused())&&re(this,ce,ka).call(this)},_(this,Yt)))},Hi=function(){re(this,ce,qi).call(this),re(this,ce,Vi).call(this,re(this,ce,Wi).call(this))},Ki=function(){_(this,Cr)&&(clearTimeout(_(this,Cr)),B(this,Cr,void 0))},zi=function(){_(this,Ar)&&(clearInterval(_(this,Ar)),B(this,Ar,void 0))},Gi=function(){const e=_(this,Ue).getQueryCache().build(_(this,Ue),this.options);if(e===_(this,ae))return;const r=_(this,ae);B(this,ae,e),B(this,sn,e.state),this.hasListeners()&&(r==null||r.removeObserver(this),e.addObserver(this))},tp=function(e){ke.batch(()=>{e.listeners&&this.listeners.forEach(r=>{r(_(this,De))}),_(this,Ue).getQueryCache().notify({query:_(this,ae),type:"observerResultsUpdated"})})},Tu);function Qv(t,e){return Qe(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function bc(t,e){return Qv(t,e)||t.state.data!==void 0&&Xi(t,e,e.refetchOnMount)}function Xi(t,e,r){if(Qe(e.enabled,t)!==!1&&Zt(e.staleTime,t)!=="static"){const a=typeof r=="function"?r(t):r;return a==="always"||a!==!1&&el(t,e)}return!1}function vc(t,e,r,a){return(t!==e||Qe(a.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&el(t,r)}function el(t,e){return Qe(e.enabled,t)!==!1&&t.isStaleByTime(Zt(e.staleTime,t))}function Yv(t,e){return!Fi(t.getCurrentResult(),e)}var rp=m.createContext(void 0),Zv=t=>{const e=m.useContext(rp);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},e1=({client:t,children:e})=>(m.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),c.jsx(rp.Provider,{value:t,children:e})),ap=m.createContext(!1),t1=()=>m.useContext(ap);ap.Provider;function r1(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var a1=m.createContext(r1()),n1=()=>m.useContext(a1),o1=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOn
vendor: 7,773 bytes, line 118
118Mount=!1))},i1=t=>{m.useEffect(()=>{t.clearReset()},[t])},s1=({result:t,errorResetBoundary:e,throwOnError:r,query:a,suspense:n})=>t.isError&&!e.isReset()&&!t.isFetching&&a&&(n&&t.data===void 0||Lv(r,[t.error,a])),l1=t=>{if(t.suspense){const e=a=>a==="static"?a:Math.max(a??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...a)=>e(r(...a)):e(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},c1=(t,e)=>t.isLoading&&t.isFetching&&!e,d1=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,wc=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function u1(t,e,r){var p,f,h,b,y;const a=t1(),n=n1(),o=Zv(),i=o.defaultQueryOptions(t);(f=(p=o.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||f.call(p,i),i._optimisticResults=a?"isRestoring":"optimistic",l1(i),o1(i,n),i1(n);const s=!o.getQueryCache().get(i.queryHash),[l]=m.useState(()=>new e(o,i)),d=l.getOptimisticResult(i),u=!a&&t.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(g=>{const v=u?l.subscribe(ke.batchCalls(g)):We;return l.updateResult(),v},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),m.useEffect(()=>{l.setOptions(i)},[i,l]),d1(i,d))throw wc(i,l,n);if(s1({result:d,errorResetBoundary:n,throwOnError:i.throwOnError,query:o.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw d.error;if((b=(h=o.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||b.call(h,i,d),i.experimental_prefetchInRender&&!Or&&c1(d,a)){const g=s?wc(i,l,n):(y=o.getQueryCache().get(i.queryHash))==null?void 0:y.promise;g==null||g.catch(We).finally(()=>{l.updateResult()})}return i.notifyOnChangeProps?d:l.trackResult(d)}function Ta(t,e){return u1(t,Jv)}var tl={},ro={},Ji=function(t,e){return Ji=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(r[n]=a[n])},Ji(t,e)};function np(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ji(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Ye=function(){return Ye=Object.assign||function(e){for(var r,a=1,n=arguments.length;a<n;a++){r=arguments[a];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ye.apply(this,arguments)};function ar(t,e){var r={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(r[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(r[a[n]]=t[a[n]]);return r}function op(t,e,r,a){var n=arguments.length,o=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,r):a,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,a);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(n<3?i(o):n>3?i(e,r,o):i(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o}function ip(t,e){return function(r,a){e(r,a,t)}}function sp(t,e,r,a,n,o){function i(v){if(v!==void 0&&typeof v!="function")throw new TypeError("Function expected");return v}for(var s=a.kind,l=s==="getter"?"get":s==="setter"?"set":"value",d=!e&&t?a.static?t:t.prototype:null,u=e||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p,f=!1,h=r.length-1;h>=0;h--){var b={};for(var y in a)b[y]=y==="access"?{}:a[y];for(var y in a.access)b.access[y]=a.access[y];b.addInitializer=function(v){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(i(v||null))};var g=(0,r[h])(s==="accessor"?{get:u.get,set:u.set}:u[l],b);if(s==="accessor"){if(g===void 0)continue;if(g===null||typeof g!="object")throw new TypeError("Object expected");(p=i(g.get))&&(u.get=p),(p=i(g.set))&&(u.set=p),(p=i(g.init))&&n.unshift(p)}else(p=i(g))&&(s==="field"?n.unshift(p):u[l]=p)}d&&Object.defineProperty(d,a.name,u),f=!0}function lp(t,e,r){for(var a=arguments.length>2,n=0;n<e.length;n++)r=a?e[n].call(t,r):e[n].call(t);return a?r:void 0}function cp(t){return typeof t=="symbol"?t:"".concat(t)}function dp(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function up(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function F(t,e,r,a){function n(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(u){try{d(a.next(u))}catch(p){i(p)}}function l(u){try{d(a.throw(u))}catch(p){i(p)}}function d(u){u.done?o(u.value):n(u.value).then(s,l)}d((a=a.apply(t,e||[])).next())})}function hp(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,n,o,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(d){return function(u){return l([d,u])}}function l(d){if(a)throw new TypeError("Generator is already executing.");for(;i&&(i=0,d[0]&&(r=0)),r;)try{if(a=1,n&&(o=d[0]&2?n.return:d[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,d[1])).done)return o;switch(n=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return r.label++,{value:d[1],done:!1};case 5:r.label++,n=d[1],d=[0];continue;case 7:d=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){r.label=d[1];break}if(d[0]===6&&r.label<o[1]){r.label=o[1],o=d;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(d);break}o[2]&&r.ops.pop(),r.trys.pop();continue}d=e.call(t,r)}catch(u){d=[6,u],n=0}finally{a=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}var ko=Object.create?function(t,e,r,a){a===void 0&&(a=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,a,n)}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]};function pp(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ko(e,t,r)}function ao(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],a=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&a>=t.length&&(t=void 0),{value:t&&t[a++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function rl(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var a=r.call(t),n,o=[],i;try{for(;(e===void 0||e-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}function fp(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(rl(arguments[e]));return t}function mp(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var a=Array(t),n=0,e=0;e<r;e++)for(var o=arguments[e],i=0,s=o.length;i<s;i++,n++)a[n]=o[i];return a}function al(t,e,r){if(r||arguments.length===2)for(var a=0,n=e.length,o;a<n;a++)(o||!(a in e))&&(o||(o=Array.prototype.slice.call(e,0,a)),o[a]=e[a]);return t.concat(o||Array.prototype.slice.call(e))}function ya(t){return this instanceof ya?(this.v=t,this):new ya(t)}function gp(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=r.apply(t,e||[]),n,o=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",i),n[Symbol.asyncIterator]=function(){return this},n;function i(h){return function(b){return Promise.resolve(b).then(h,p)}}
vendor: 4,319 bytes, line 118
118function s(h,b){a[h]&&(n[h]=function(y){return new Promise(function(g,v){o.push([h,y,g,v])>1||l(h,y)})},b&&(n[h]=b(n[h])))}function l(h,b){try{d(a[h](b))}catch(y){f(o[0][3],y)}}function d(h){h.value instanceof ya?Promise.resolve(h.value.v).then(u,p):f(o[0][2],h)}function u(h){l("next",h)}function p(h){l("throw",h)}function f(h,b){h(b),o.shift(),o.length&&l(o[0][0],o[0][1])}}function yp(t){var e,r;return e={},a("next"),a("throw",function(n){throw n}),a("return"),e[Symbol.iterator]=function(){return this},e;function a(n,o){e[n]=t[n]?function(i){return(r=!r)?{value:ya(t[n](i)),done:!1}:o?o(i):i}:o}}function bp(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof ao=="function"?ao(t):t[Symbol.iterator](),r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r);function a(o){r[o]=t[o]&&function(i){return new Promise(function(s,l){i=t[o](i),n(s,l,i.done,i.value)})}}function n(o,i,s,l){Promise.resolve(l).then(function(d){o({value:d,done:s})},i)}}function vp(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var h1=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},Qi=function(t){return Qi=Object.getOwnPropertyNames||function(e){var r=[];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[r.length]=a);return r},Qi(t)};function wp(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r=Qi(t),a=0;a<r.length;a++)r[a]!=="default"&&ko(e,t,r[a]);return h1(e,t),e}function Pp(t){return t&&t.__esModule?t:{default:t}}function xp(t,e,r,a){if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?a:r==="a"?a.call(t):a?a.value:e.get(t)}function $p(t,e,r,a,n){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?n.call(t,r):n?n.value=r:e.set(t,r),r}function _p(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function Sp(t,e,r){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var a,n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");a=e[Symbol.asyncDispose]}if(a===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");a=e[Symbol.dispose],r&&(n=a)}if(typeof a!="function")throw new TypeError("Object not disposable.");n&&(a=function(){try{n.call(this)}catch(o){return Promise.reject(o)}}),t.stack.push({value:e,dispose:a,async:r})}else r&&t.stack.push({async:!0});return e}var p1=typeof SuppressedError=="function"?SuppressedError:function(t,e,r){var a=new Error(r);return a.name="SuppressedError",a.error=t,a.suppressed=e,a};function Cp(t){function e(o){t.error=t.hasError?new p1(o,t.error,"An error was suppressed during disposal."):o,t.hasError=!0}var r,a=0;function n(){for(;r=t.stack.pop();)try{if(!r.async&&a===1)return a=0,t.stack.push(r),Promise.resolve().then(n);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return a|=2,Promise.resolve(o).then(n,function(i){return e(i),n()})}else a|=1}catch(i){e(i)}if(a===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return n()}function Ap(t,e){return typeof t=="string"&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,a,n,o,i){return a?e?".jsx":".js":n&&(!o||!i)?r:n+o+"."+i.toLowerCase()+"js"}):t}const f1={__extends:np,__assign:Ye,__rest:ar,__decorate:op,__param:ip,__esDecorate:sp,__runInitializers:lp,__propKey:cp,__setFunctionName:dp,__metadata:up,__awaiter:F,__generator:hp,__createBinding:ko,__exportStar:pp,__values:ao,__read:rl,__spread:fp,__spreadArrays:mp,__spreadArray:al,__await:ya,__asyncGenerator:gp,__asyncDelegator:yp,__asyncValues:bp,__makeTemplateOb
118ject:vp,__importStar:wp,__importDefault:Pp,__classPrivateFieldGet:xp,__classPrivateFieldSet:$p,__classPrivateFieldIn:_p,__addDisposableResource:Sp,__disposeResources:Cp,__rewriteRelativeImportExtension:Ap},m1=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:Sp,get __assign(){return Ye},__asyncDelegator:yp,__asyncGenerator:gp,__asyncValues:bp,__await:ya,__awaiter:F,__classPrivateFieldGet:xp,__classPrivateFieldIn:_p,__classPrivateFieldSet:$p,__createBinding:ko,__decorate:op,__disposeResources:Cp,__esDecorate:sp,__exportStar:pp,__extends:np,__generator:hp,__importDefault:Pp,__importStar:wp,__makeTemplateObject:vp,__metadata:up,__param:ip,__propKey:cp,__read:rl,__rest:ar,__rewriteRelativeImportExtension:Ap,__runInitializers:lp,__setFunctionName:dp,__spread:fp,__spreadArray:al,__spreadArrays:mp,__values:ao,default:f1},Symbol.toStringTag,{value:"Module"})),g1=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);let Oo=class extends Error{constructor(e,r="FunctionsError",a){super(e),this.name=r,this.context=a}},Ep=class extends Oo{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}},Yi=class extends Oo{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}},Zi=class extends Oo{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}};var no;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(no||(no={}));class y1{constructor(e,{headers:r={},customFetch:a,region:n=no.Any}={}){this.url=e,this.headers=r,this.region=n,this.fetch=g1(a)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return F(this,arguments,void 0,function*(r,a={}){var n;let o,i;try{const{headers:s,method:l,body:d,signal:u,timeout:p}=a;let f={},{region:h}=a;h||(h=this.region);const b=new URL(`${this.url}/${r}`);h&&h!=="any"&&(f["x-region"]=h,b.searchParams.set("forceFunctionRegion",h));let y;d&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)?typeof Blob<"u"&&d instanceof Blob||d instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",y=d):typeof d=="string"?(f["Content-Type"]="text/plain",y=d):typeof FormData<"u"&&d instanceof FormData?y=d:(f["Content-Type"]="application/json",y=JSON.stringify(d)):y=d;let g=u;p&&(i=new AbortController,o=setTimeout(()=>i.abort(),p),u?(g=i.signal,u.addEventListener("abort",()=>i.abort())):g=i.signal);const v=yield this.fetch(b.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),s),body:y,signal:g}).catch(C=>{throw new Ep(C)}),w=v.headers.get("x-relay-error");if(w&&w==="true")throw new Yi(v);if(!v.ok)throw new Zi(v);let P=((n=v.headers.get("Content-Type"))!==null&&n!==void 0?n:"text/plain").split(";")[0].trim(),x;return P==="application/json"?x=yield v.json():P==="application/octet-stream"||P==="application/pdf"?x=yield v.blob():P==="text/event-stream"?x=v:P==="multipart/form-data"?x=yield v.formData():x=yield v.text(),{data:x,error:null,response:v}}catch(s){return{data:null,error:s,response:s instanceof Zi||s instanceof Yi?s.context:void 0}}finally{o&&clearTimeout(o)}})}}const b1=Object.freeze(Object.defineProperty({__proto__:null,get FunctionRegion(){return no},FunctionsClient:y1,FunctionsError:Oo,FunctionsFetchError:Ep,FunctionsHttpError:Zi,FunctionsRelayError:Yi},Symbol.toStringTag,{value:"Module"})),Tp=dn(b1);var Ne={};const _a=dn(m1);var $n={},_n={},Sn={},Cn={},An={},En={},Pc;function kp(){if(Pc)return En;Pc=1,Object.defineProperty(En,"__esModule",{value:!0});class t extends Error{constructor(r){super(r.message),this.name="PostgrestError",this.details=r.details,this.hint=r.hint,this.co
118de=r.code}}return En.default=t,En}var xc;function Op(){if(xc)return An;xc=1,Object.defineProperty(An,"__esModule",{value:!0});const e=_a.__importDefault(kp());let r=class{constructor(n){var o,i;this.shouldThrowOnError=!1,this.method=n.method,this.url=n.url,this.headers=new Headers(n.headers),this.schema=n.schema,this.body=n.body,this.shouldThrowOnError=(o=n.shouldThrowOnError)!==null&&o!==void 0?o:!1,this.signal=n.signal,this.isMaybeSingle=(i=n.isMaybeSingle)!==null&&i!==void 0?i:!1,n.fetch?this.fetch=n.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(n,o){return this.headers=new Headers(this.headers),this.headers.set(n,o),this}then(n,o){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const i=this.fetch;let s=i(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async l=>{var d,u,p,f;let h=null,b=null,y=null,g=l.status,v=l.statusText;if(l.ok){if(this.method!=="HEAD"){const C=await l.text();C===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((d=this.headers.get("Accept"))===null||d===void 0)&&d.includes("application/vnd.pgrst.plan+text"))?b=C:b=JSON.parse(C))}const P=(u=this.headers.get("Prefer"))===null||u===void 0?void 0:u.match(/count=(exact|planned|estimated)/),x=(p=l.headers.get("content-range"))===null||p===void 0?void 0:p.split("/");P&&x&&x.length>1&&(y=parseInt(x[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(b)&&(b.length>1?(h={code:"PGRST116",details:`Results contain ${b.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},b=null,y=null,g=406,v="Not Acceptable"):b.length===1?b=b[0]:b=null)}else{const P=await l.text();try{h=JSON.parse(P),Array.isArray(h)&&l.status===404&&(b=[],h=null,g=200,v="OK")}catch{l.status===404&&P===""?(g=204,v="No Content"):h={message:P}}if(h&&this.isMaybeSingle&&(!((f=h==null?void 0:h.details)===null||f===void 0)&&f.includes("0 rows"))&&(h=null,g=200,v="OK"),h&&this.shouldThrowOnError)throw new e.default(h)}return{error:h,data:b,count:y,status:g,statusText:v}});return this.shouldThrowOnError||(s=s.catch(l=>{var d,u,p,f,h,b;let y="";const g=l==null?void 0:l.cause;if(g){const v=(d=g==null?void 0:g.message)!==null&&d!==void 0?d:"",w=(u=g==null?void 0:g.code)!==null&&u!==void 0?u:"";y=`${(p=l==null?void 0:l.name)!==null&&p!==void 0?p:"FetchError"}: ${l==null?void 0:l.message}`,y+=`
119
120Caused by: ${(f=g==null?void 0:g.name)!==null&&f!==void 0?f:"Error"}: ${v}`,w&&(y+=` (${w})`),g!=null&&g.stack&&(y+=`
121${g.stack}`)}else y=(h=l==null?void 0:l.stack)!==null&&h!==void 0?h:"";return{error:{message:`${(b=l==null?void 0:l.name)!==null&&b!==void 0?b:"FetchError"}: ${l==null?void 0:l.message}`,details:y,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),s.then(n,o)}returns(){return this}overrideTypes(){return this}};return An.default=r,An}var $c;function Ip(){if($c)return Cn;$c=1,Object.defineProperty(Cn,"__esModule",{value:!0});const e=_a.__importDefault(Op());let r=class extends e.default{select(n){let o=!1;const i=(n??"*").split("").map(s=>/\s/.test(s)&&!o?"":(s==='"'&&(o=!o),s)).join("");return this.url.searchParams.set("select",i),this.headers.append("Prefer","return=representation"),this}order(n,{ascending:o=!0,nullsFirst:i,foreignTable:s,referencedTable:l=s}={}){const d=l?`${l}.order`:"order",u=this.url.searchParams.get(d);return this.url.searchParams.set(d,`${u?`${u},`:""}${n}.${o?"asc":"desc"}${i===void 0?"":i?".nullsfirst":".nullslast"}`),this}limit(n,{foreignTable:o,referencedTable:i=o}={}){const s=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(s,`${n}`),this}range(n,o,{foreignTable:i,referencedTable:s=i}={}){const l=typeof s>"u"?"offset":`${s}.offset`,d=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(l,`${n}`),this.url.searchParams.set(d,`${o-n+1}`),this}abortSignal(n){return this.signal=n,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
121explain({analyze:n=!1,verbose:o=!1,settings:i=!1,buffers:s=!1,wal:l=!1,format:d="text"}={}){var u;const p=[n?"analyze":null,o?"verbose":null,i?"settings":null,s?"buffers":null,l?"wal":null].filter(Boolean).join("|"),f=(u=this.headers.get("Accept"))!==null&&u!==void 0?u:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${d}; for="${f}"; options=${p};`),d==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(n){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${n}`),this}};return Cn.default=r,Cn}var _c;function nl(){if(_c)return Sn;_c=1,Object.defineProperty(Sn,"__esModule",{value:!0});const e=_a.__importDefault(Ip()),r=new RegExp("[,()]");let a=class extends e.default{eq(o,i){return this.url.searchParams.append(o,`eq.${i}`),this}neq(o,i){return this.url.searchParams.append(o,`neq.${i}`),this}gt(o,i){return this.url.searchParams.append(o,`gt.${i}`),this}gte(o,i){return this.url.searchParams.append(o,`gte.${i}`),this}lt(o,i){return this.url.searchParams.append(o,`lt.${i}`),this}lte(o,i){return this.url.searchParams.append(o,`lte.${i}`),this}like(o,i){return this.url.searchParams.append(o,`like.${i}`),this}likeAllOf(o,i){return this.url.searchParams.append(o,`like(all).{${i.join(",")}}`),this}likeAnyOf(o,i){return this.url.searchParams.append(o,`like(any).{${i.join(",")}}`),this}ilike(o,i){return this.url.searchParams.append(o,`ilike.${i}`),this}ilikeAllOf(o,i){return this.url.searchParams.append(o,`ilike(all).{${i.join(",")}}`),this}ilikeAnyOf(o,i){return this.url.searchParams.append(o,`ilike(any).{${i.join(",")}}`),this}regexMatch(o,i){return this.url.searchParams.append(o,`match.${i}`),this}regexIMatch(o,i){return this.url.searchParams.append(o,`imatch.${i}`),this}is(o,i){return this.url.searchParams.append(o,`is.${i}`),this}isDistinct(o,i){return this.url.searchParams.append(o,`isdistinct.${i}`),this}in(o,i){const s=Array.from(new Set(i)).map(l=>typeof l=="string"&&r.test(l)?`"${l}"`:`${l}`).join(",");return this.url.searchParams.append(o,`in.(${s})`),this}contains(o,i){return typeof i=="string"?this.url.searchParams.append(o,`cs.${i}`):Array.isArray(i)?this.url.searchParams.append(o,`cs.{${i.join(",")}}`):this.url.searchParams.append(o,`cs.${JSON.stringify(i)}`),this}containedBy(o,i){return typeof i=="string"?this.url.searchParams.append(o,`cd.${i}`):Array.isArray(i)?this.url.searchParams.append(o,`cd.{${i.join(",")}}`):this.url.searchParams.append(o,`cd.${JSON.stringify(i)}`),this}rangeGt(o,i){return this.url.searchParams.append(o,`sr.${i}`),this}rangeGte(o,i){return this.url.searchParams.append(o,`nxl.${i}`),this}rangeLt(o,i){return this.url.searchParams.append(o,`sl.${i}`),this}rangeLte(o,i){return this.url.searchParams.append(o,`nxr.${i}`),this}rangeAdjacent(o,i){return this.url.searchParams.append(o,`adj.${i}`),this}overlaps(o,i){return typeof i=="string"?this.url.searchParams.append(o,`ov.${i}`):this.url.searchParams.append(o,`ov.{${i.join(",")}}`),this}textSearch(o,i,{config:s,type:l}={}){let d="";l==="plain"?d="pl":l==="phrase"?d="ph":l==="websearch"&&(d="w");const u=s===void 0?"":`(${s})`;return this.url.searchParams.append(o,`${d}fts${u}.${i}`),this}match(o){return Object.entries(o).forEach(([i,s])=>{this.url.searchParams.append(i,`eq.${s}`)}),this}not(o,i,s){return this.url.searchParams.append(o,`not.${i}.${s}`),this}or(o,{foreignTable:i,referencedTable:s=i}={}){const l=s?`${s}.or`:"or";return this.url.searchParams.append(l,`(${o})`),this}filter(o,i,s){return this.url.searchParams.append(o,`${i}.${s}`),this}};return Sn.default=a,Sn}var Sc;function Np(){if(Sc)return _n;Sc=1,Object.defineProperty(_n,"__esModule",{value:!0});const e=_a.__importDefault(nl());let r=class{constructor(n,{headers:o={},schema:i,fetch:s}){this.url=n,this.headers=new Headers(o),this.schema=i,this.fetch=s}select(n,o){const{head:i=!1,count:s}=o??{},l=i?"HEAD":"GET";let d=!1;const u=(n??"*").split("").map(p=>/\s/.test(p)&&!d?"":(p==='"'&&(d=!d),p)).join("");return this.url.searchParams.set("select",u),s&&this.headers.append("Prefer",`count=${s}`),new e.default({method:l,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(n,{count:o,defaultToNull:i=!0}={}){var s;const l="POST";if(o&&this.headers.append("Prefer",`count=${o}`),i||this.headers.append("Prefer","missing=default"),Array.isArray(n)){const d=n.reduce((u,p)=>u.concat(Object.keys(p)),[]);if(d.length>0){const u=[...new Set(d)].map(p=>`"${p}"`);this.url.searchParams.set("columns",u.join(","))}}return new e.default({method:l,url:this.url,headers:this.headers,schema:this.schema,body:n,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}upsert(n,{onConflict:o,ignoreDuplicates:i=!1,count:s,defaultToNull:l=!0}={}){var d;const u="POST";if(this.headers.append("Prefer",`resolution=${i?"ignore":"merge"}-duplicates`),o!==void 0&&this.url.searchParams.set("on_conflict",o),s&&this.headers.append("Prefer",`count=${s}`),l||this.headers.append("Prefer","missing=default"),Array.isArray(n)){const p=n.reduce((f,h)=>f.concat(Object.keys(h)),[]);if(p.length>0){const f=[...new Set(p)].map(h=>`"${h}"`);this.url.searchParams.set("columns",f.join(","))}}return new e.default({method:u,url:this.url,headers:this.headers,schema:this.schema,body:n,fetch:(d=this.fetch)!==null&&d!==void 0?d:fetch})}update(n,{count:o}={}){var i;const s="PATCH";return o&&this.headers.append("Prefer",`count=${o}`),new e.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:n,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}delete({count:n}={}){var o;const i="DELETE";return n&&this.headers.append("Prefer",`count=${n}`),new e.default({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};return _n.default=r,_n}var Cc;function v1(){if(Cc)return $n;Cc=1,Object.defineProperty($n,"__esModule",{value:!0});const t=_a,e=t.__importDefault(Np()),r=t.__importDefault(nl());let a=class Rp{constructor(o,{headers:i={},schema:s,fetch:l}={}){this.url=o,this.headers=new Headers(i),this.schemaName=s,this.fetch=l}from(o){if(!o||typeof o!="string"||o.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");const i=new URL(`${this.url}/${o}`);return new e.default(i,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(o){return new Rp(this.url,{headers:this.headers,schema:o,fetch:this.fetch})}rpc(o,i={},{head:s=!1,get:l=!1,count:d}={}){var u;let p;const f=new URL(`${this.url}/rpc/${o}`);let h;s||l?(p=s?"HEAD":"GET",Object.entries(i).filter(([y,g])=>g!==void 0).map(([y,g])=>[y,Array.isArray(g)?`{${g.join(",")}}`:`${g}
121`]).forEach(([y,g])=>{f.searchParams.append(y,g)})):(p="POST",h=i);const b=new Headers(this.headers);return d&&b.set("Prefer",`count=${d}`),new r.default({method:p,url:f,headers:b,schema:this.schemaName,body:h,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch})}};return $n.default=a,$n}Object.defineProperty(Ne,"__esModule",{value:!0});Ne.PostgrestError=Ne.PostgrestBuilder=Ne.PostgrestTransformBuilder=Ne.PostgrestFilterBuilder=Ne.PostgrestQueryBuilder=Ne.PostgrestClient=void 0;const Sa=_a,jp=Sa.__importDefault(v1());Ne.PostgrestClient=jp.default;const Lp=Sa.__importDefault(Np());Ne.PostgrestQueryBuilder=Lp.default;const Dp=Sa.__importDefault(nl());Ne.PostgrestFilterBuilder=Dp.default;const Fp=Sa.__importDefault(Ip());Ne.PostgrestTransformBuilder=Fp.default;const Mp=Sa.__importDefault(Op());Ne.PostgrestBuilder=Mp.default;const Bp=Sa.__importDefault(kp());Ne.PostgrestError=Bp.default;Ne.default={PostgrestClient:jp.default,PostgrestQueryBuilder:Lp.default,PostgrestFilterBuilder:Dp.default,PostgrestTransformBuilder:Fp.default,PostgrestBuilder:Mp.default,PostgrestError:Bp.default};class Up{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const r=process.versions;if(r&&r.node){const a=r.node,n=parseInt(a.replace(/^v/,"").split(".")[0]);return n>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${n} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${n} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
122import ws from "ws"
123new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let r=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(r+=`
124
125Suggested solution: ${e.workaround}`),new Error(r)}static createWebSocket(e,r){const a=this.getWebSocketConstructor();return new a(e,r)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const w1="2.87.1",P1=`realtime-js/${w1}`,qp="1.0.0",x1="2.0.0",Ac=qp,es=1e4,$1=1e3,_1=100;var gr;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(gr||(gr={}));var _e;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(_e||(_e={}));var ct;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(ct||(ct={}));var ts;(function(t){t.websocket="websocket"})(ts||(ts={}));var yr;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(yr||(yr={}));class S1{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,r){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(e));let a=[e.join_ref,e.ref,e.topic,e.event,e.payload];return r(JSON.stringify(a))}_binaryEncodeUserBroadcastPush(e){var r;return this._isArrayBuffer((r=e.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var r,a;const n=(a=(r=e.payload)===null||r===void 0?void 0:r.payload)!==null&&a!==void 0?a:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,n)}_encodeJsonUserBroadcastPush(e){var r,a;const n=(a=(r=e.payload)===null||r===void 0?void 0:r.payload)!==null&&a!==void 0?a:{},i=new TextEncoder().encode(JSON.stringify(n)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,i)}_encodeUserBroadcastPush(e,r,a){var n,o;const i=e.topic,s=(n=e.ref)!==null&&n!==void 0?n:"",l=(o=e.join_ref)!==null&&o!==void 0?o:"",d=e.payload.event,u=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},p=Object.keys(u).length===0?"":JSON.stringify(u);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(s.length>255)throw new Error(`ref length ${s.length} exceeds maximum of 255`);if(i.length>255)throw new Error(`topic length ${i.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`userEvent length ${d.length} exceeds maximum of 255`);if(p.length>255)throw new Error(`metadata length ${p.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+s.length+i.length+d.length+p.length,h=new ArrayBuffer(this.HEADER_LENGTH+f);
125let b=new DataView(h),y=0;b.setUint8(y++,this.KINDS.userBroadcastPush),b.setUint8(y++,l.length),b.setUint8(y++,s.length),b.setUint8(y++,i.length),b.setUint8(y++,d.length),b.setUint8(y++,p.length),b.setUint8(y++,r),Array.from(l,v=>b.setUint8(y++,v.charCodeAt(0))),Array.from(s,v=>b.setUint8(y++,v.charCodeAt(0))),Array.from(i,v=>b.setUint8(y++,v.charCodeAt(0))),Array.from(d,v=>b.setUint8(y++,v.charCodeAt(0))),Array.from(p,v=>b.setUint8(y++,v.charCodeAt(0)));var g=new Uint8Array(h.byteLength+a.byteLength);return g.set(new Uint8Array(h),0),g.set(new Uint8Array(a),h.byteLength),g.buffer}decode(e,r){if(this._isArrayBuffer(e)){let a=this._binaryDecode(e);return r(a)}if(typeof e=="string"){const a=JSON.parse(e),[n,o,i,s,l]=a;return r({join_ref:n,ref:o,topic:i,event:s,payload:l})}return r({})}_binaryDecode(e){const r=new DataView(e),a=r.getUint8(0),n=new TextDecoder;switch(a){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(e,r,n)}}_decodeUserBroadcast(e,r,a){const n=r.getUint8(1),o=r.getUint8(2),i=r.getUint8(3),s=r.getUint8(4);let l=this.HEADER_LENGTH+4;const d=a.decode(e.slice(l,l+n));l=l+n;const u=a.decode(e.slice(l,l+o));l=l+o;const p=a.decode(e.slice(l,l+i));l=l+i;const f=e.slice(l,e.byteLength),h=s===this.JSON_ENCODING?JSON.parse(a.decode(f)):f,b={type:this.BROADCAST_EVENT,event:u,payload:h};return i>0&&(b.meta=JSON.parse(p)),{join_ref:null,ref:null,topic:d,event:this.BROADCAST_EVENT,payload:b}}_isArrayBuffer(e){var r;return e instanceof ArrayBuffer||((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(e,r){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([a])=>r.includes(a)))}}class Wp{constructor(e,r){this.callback=e,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var me;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(me||(me={}));const Ec=(t,e,r={})=>{var a;const n=(a=r.skipTypes)!==null&&a!==void 0?a:[];return e?Object.keys(e).reduce((o,i)=>(o[i]=C1(i,t,e,n),o),{}):{}},C1=(t,e,r,a)=>{const n=e.find(s=>s.name===t),o=n==null?void 0:n.type,i=r[t];return o&&!a.includes(o)?Vp(o,i):rs(i)},Vp=(t,e)=>{if(t.charAt(0)==="_"){const r=t.slice(1,t.length);return k1(e,r)}switch(t){case me.bool:return A1(e);case me.float4:case me.float8:case me.int2:case me.int4:case me.int8:case me.numeric:case me.oid:return E1(e);case me.json:case me.jsonb:return T1(e);case me.timestamp:return O1(e);case me.abstime:case me.date:case me.daterange:case me.int4range:case me.int8range:case me.money:case me.reltime:case me.text:case me.time:case me.timestamptz:case me.timetz:case me.tsrange:case me.tstzrange:return rs(e);default:return rs(e)}},rs=t=>t,A1=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},E1=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},T1=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},k1=(t,e)=>{if(typeof t!="string")return t;const r=t.length-1,a=t[r];if(t[0]==="{"&&a==="}"){let o;const i=t.slice(1,r);try{o=JSON.parse("["+i+"]")}catch{o=i?i.split(","):[]}return o.map(s=>Vp(e,s))}return t},O1=t=>typeof t=="string"?t.replace(" ","T"):t,Hp=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};class ri{constructor(e,r,a={},n=es){this.channel=e,this.event=r,this.payload=a,this.timeout=n,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHo
125oks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,r){var a;return this._hasReceived(e)&&r((a=this.receivedResp)===null||a===void 0?void 0:a.response),this.recHooks.push({status:e,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:r}){this.recHooks.filter(a=>a.status===e).forEach(a=>a.callback(r))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var as;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(as||(as={}));let Kp=class Un{constructor(e,r){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const a=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(a.state,{},n=>{const{onJoin:o,onLeave:i,onSync:s}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Un.syncState(this.state,n,o,i),this.pendingDiffs.forEach(l=>{this.state=Un.syncDiff(this.state,l,o,i)}),this.pendingDiffs=[],s()}),this.channel._on(a.diff,{},n=>{const{onJoin:o,onLeave:i,onSync:s}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(n):(this.state=Un.syncDiff(this.state,n,o,i),s())}),this.onJoin((n,o,i)=>{this.channel._trigger("presence",{event:"join",key:n,currentPresences:o,newPresences:i})}),this.onLeave((n,o,i)=>{this.channel._trigger("presence",{event:"leave",key:n,currentPresences:o,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,r,a,n){const o=this.cloneDeep(e),i=this.transformState(r),s={},l={};return this.map(o,(d,u)=>{i[d]||(l[d]=u)}),this.map(i,(d,u)=>{const p=o[d];if(p){const f=u.map(g=>g.presence_ref),h=p.map(g=>g.presence_ref),b=u.filter(g=>h.indexOf(g.presence_ref)<0),y=p.filter(g=>f.indexOf(g.presence_ref)<0);b.length>0&&(s[d]=b),y.length>0&&(l[d]=y)}else s[d]=u}),this.syncDiff(o,{joins:s,leaves:l},a,n)}static syncDiff(e,r,a,n){const{joins:o,leaves:i}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return a||(a=()=>{}),n||(n=()=>{}),this.map(o,(s,l)=>{var d;const u=(d=e[s])!==null&&d!==void 0?d:[];if(e[s]=this.cloneDeep(l),u.length>0){const p=e[s].map(h=>h.presence_ref),f=u.filter(h=>p.indexOf(h.presence_ref)<0);e[s].unshift(...f)}a(s,u,l)}),this.map(i,(s,l)=>{let d=e[s];if(!d)return;const u=l.map(p=>p.presence_ref);d=d.filter(p=>u.indexOf(p.presence_ref)<0),e[s]=d,n(s,d,l),d.length===0&&delete e[s]}),e}static map(e,r){return Object.getOwnPropertyNames(e).map(a=>r(a,e[a]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((r,a)=>{const n=e[a];return"metas"in n?r[a]=n.metas.map(o=>(o.presence_ref=o.phx_ref,delete o.phx_ref,delete o.phx_ref_prev,o)):r[a]=n,r},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}};var ns;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(ns||(ns={}));var Yr;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(Yr||(Yr={}));var yt;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(yt||(yt={}));const I1=_e;let zp=class Oa{constructor(e,r={config:{}},a){var n,o;if(this.topic=e,this.params=r,this.socket=a,this.bindings={},this.state=_e.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new ri(this,ct.join,this.params,this.timeout),this.rejoinTimer=new Wp(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=_e.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>
125i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=_e.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=_e.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=_e.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=_e.errored,this.rejoinTimer.scheduleTimeout())}),this._on(ct.reply,{},(i,s)=>{this._trigger(this._replyEventName(s),i)}),this.presence=new Kp(this),this.broadcastEndpointURL=Hp(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((o=(n=this.params.config)===null||n===void 0?void 0:n.broadcast)===null||o===void 0)&&o.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(e,r=this.timeout){var a,n,o;if(this.socket.isConnected()||this.socket.connect(),this.state==_e.closed){const{config:{broadcast:i,presence:s,private:l}}=this.params,d=(n=(a=this.bindings.postgres_changes)===null||a===void 0?void 0:a.map(h=>h.filter))!==null&&n!==void 0?n:[],u=!!this.bindings[Yr.PRESENCE]&&this.bindings[Yr.PRESENCE].length>0||((o=this.params.config.presence)===null||o===void 0?void 0:o.enabled)===!0,p={},f={broadcast:i,presence:Object.assign(Object.assign({},s),{enabled:u}),postgres_changes:d,private:l};this.socket.accessTokenValue&&(p.access_token=this.socket.accessTokenValue),this._onError(h=>e==null?void 0:e(yt.CHANNEL_ERROR,h)),this._onClose(()=>e==null?void 0:e(yt.CLOSED)),this.updateJoinPayload(Object.assign({config:f},p)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:h})=>{var b;if(this.socket._isManualToken()||this.socket.setAuth(),h===void 0){e==null||e(yt.SUBSCRIBED);return}else{const y=this.bindings.postgres_changes,g=(b=y==null?void 0:y.length)!==null&&b!==void 0?b:0,v=[];for(let w=0;w<g;w++){const P=y[w],{filter:{event:x,schema:C,table:S,filter:A}}=P,I=h&&h[w];if(I&&I.event===x&&Oa.isFilterValueEqual(I.schema,C)&&Oa.isFilterValueEqual(I.table,S)&&Oa.isFilterValueEqual(I.filter,A))v.push(Object.assign(Object.assign({},P),{id:I.id}));else{this.unsubscribe(),this.state=_e.errored,e==null||e(yt.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,e&&e(yt.SUBSCRIBED);return}}).receive("error",h=>{this.state=_e.errored,e==null||e(yt.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(h).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(yt.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,r={}){return await this.send({type:"presence",event:"track",payload:e},r.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,r,a){return this.state===_e.joined&&e===Yr.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(e,r,a)}async httpSend(e,r,a={}){var n;const o=this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"";if(r==null)return Promise.reject("Payload is required for httpSend()");const i={method:"POST",headers:{Authorization:o,apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:e,payload:r,private:this.private}]})},s=await this._fetchWithTimeout(this.broadcastEndpointURL,i,(n=a.timeout)!==null&&n!==void 0?n:this.timeout);if(s.status===202)return{success:!0};let l=s.statusText;try{const d=await s.json();l=d.error||d.message||l}catch{}return Promise.reject(new Error(l))}async send(e,r={}){var a,n;if(!this._canPush()&&e.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated 
125in the future. Please use httpSend() explicitly for REST delivery.");const{event:o,payload:i}=e,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:i,private:this.private}]})};try{const d=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(a=r.timeout)!==null&&a!==void 0?a:this.timeout);return await((n=d.body)===null||n===void 0?void 0:n.cancel()),d.ok?"ok":"error"}catch(d){return d.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var i,s,l;const d=this._push(e.type,e,r.timeout||this.timeout);e.type==="broadcast"&&!(!((l=(s=(i=this.params)===null||i===void 0?void 0:i.config)===null||s===void 0?void 0:s.broadcast)===null||l===void 0)&&l.ack)&&o("ok"),d.receive("ok",()=>o("ok")),d.receive("error",()=>o("error")),d.receive("timeout",()=>o("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=_e.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(ct.close,"leave",this._joinRef())};this.joinPush.destroy();let a=null;return new Promise(n=>{a=new ri(this,ct.leave,{},e),a.receive("ok",()=>{r(),n("ok")}).receive("timeout",()=>{r(),n("timed out")}).receive("error",()=>{n("error")}),a.send(),this._canPush()||a.trigger("ok",{})}).finally(()=>{a==null||a.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=_e.closed,this.bindings={}}async _fetchWithTimeout(e,r,a){const n=new AbortController,o=setTimeout(()=>n.abort(),a),i=await this.socket.fetch(e,Object.assign(Object.assign({},r),{signal:n.signal}));return clearTimeout(o),i}_push(e,r,a=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let n=new ri(this,e,r,a);return this._canPush()?n.send():this._addToPushBuffer(n),n}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>_1){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(e,r,a){return r}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,r,a){var n,o;const i=e.toLocaleLowerCase(),{close:s,error:l,leave:d,join:u}=ct;if(a&&[s,l,d,u].indexOf(i)>=0&&a!==this._joinRef())return;let f=this._onMessage(i,r,a);if(r&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(i)?(n=this.bindings.postgres_changes)===null||n===void 0||n.filter(h=>{var b,y,g;return((b=h.filter)===null||b===void 0?void 0:b.event)==="*"||((g=(y=h.filter)===null||y===void 0?void 0:y.event)===null||g===void 0?void 0:g.toLocaleLowerCase())===i}).map(h=>h.callback(f,a)):(o=this.bindings[i])===null||o===void 0||o.filter(h=>{var b,y,g,v,w,P;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in h){const x=h.id,C=(b=h.filter)===null||b===void 0?void 0:b.event;return x&&((y=r.ids)===null||y===void 0?void 0:y.includes(x))&&(C==="*"||(C==null?void 0:C.toLocaleLowerCase())===((g=r.data)===null||g===void 0?void 0:g.type.toLocaleLowerCase()))}else{const x=(w=(v=h==null?void 0:h.filter)===null||v===void 0?void 0:v.event)===null||w===void 0?void 0:w.toLocaleLowerCase();return x==="*"||x===((P=r==null?void 0:r.event)===null||P===void 0?void 0:P.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===i}).map(h=>{if(typeof f=="object"&&"ids"in f){const b=f.data,{schema:y,table:g,commit_timestamp:v,type:w,errors:P}=b;f=Object.assign(Object.assign({},{schema:y,table:g,commit_timestamp:v,eventType:w,new:{},old:{},errors:P}),this._getPayloadRecords(b))}h.callback(f,a)})}_isClosed(){return this.state===_e.closed}_isJoined(){return this.state===_e.joined}_isJoining(){return this.state===_e.joining}_isLeaving(){return this.state===_e.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,r,a){const n=e.toLocaleLowerCase(),o={type:n,filter:r,callback:a};return this.bindings[n]?this.bindings[n].push(o):this.bindings[n]=[o],this}_off(e,r){const a=e.toLocaleLowerCase();return this.bindings[a]&&(this.bindings[a]=this.bindings[a].filter(n=>{var o;return!(((o=n.type)===null||o===void 0?void 0:o.toLocaleLowerCase())===a&&Oa.isEqual(n.filter,r))})),this}static isEqual(e,r){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(const a in e)if(e[a]!==r[a])return!1;return!0}static isFilterValueEqual(e,r){return(e??void 0)===(r??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(ct.close,{},e)}_onError(e){this._on(ct.error,{},r=>e(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=_e.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const r={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(r.new=Ec(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(r.old=Ec(e.columns,e.old_record)),r}};const ai=()=>{},Tn={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},N1=[1e3,2e3,5e3,1e4],R1=1e4,j1=`
126  addEventListener("message", (e) => {
127    if (e.data.event === "start") {
128      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
129    }
130  });`;let L1=class{constructor(e,r){var a;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=es,this.transport=null,this.heartbeatIntervalMs=Tn.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=ai,this.ref=0,this.reconnectTimer=null,this.vsn=Ac,this.logger=ai,this.conn=null,this.sendBuffer=[],this.serializer
130=new S1,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=n=>n?(...o)=>n(...o):(...o)=>fetch(...o),!(!((a=r==null?void 0:r.params)===null||a===void 0)&&a.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${e}/${ts.websocket}`,this.httpEndpoint=Hp(e),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=Up.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const r=e.message;throw r.includes("Node.js")?new Error(`${r}
131
132To use Realtime in Node.js, you need to provide a WebSocket implementation:
133
134Option 1: Use Node.js 22+ which has native WebSocket support
135Option 2: Install and provide the "ws" package:
136
137  npm install ws
138
139  import ws from "ws"
140  const client = new RealtimeClient(url, {
141    ...options,
142    transport: ws
143  })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(e,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const a=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(a),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(e?this.conn.close(e,r??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const r=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const e=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,r,a){this.logger(e,r,a)}connectionState(){switch(this.conn&&this.conn.readyState){case gr.connecting:return yr.Connecting;case gr.open:return yr.Open;case gr.closing:return yr.Closing;default:return yr.Closed}}isConnected(){return this.connectionState()===yr.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,r={config:{}}){const a=`realtime:${e}`,n=this.getChannels().find(o=>o.topic===a);if(n)return n;{const o=new zp(`realtime:${e}`,r,this);return this.channels.push(o),o}}push(e){const{topic:r,event:a,payload:n,ref:o}=e,i=()=>{this.encode(e,s=>{var l;(l=this.conn)===null||l===void 0||l.send(s)})};this.log("push",`${r} ${a} (${o})`,n),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var e;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close($1,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
143heduleTimeout()},Tn.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let r=this.channels.find(a=>a.topic===e&&(a._isJoined()||a._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${e}"`),r.unsubscribe())}_remove(e){this.channels=this.channels.filter(r=>r.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply")try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error")}catch(d){this.log("error","error in heartbeat callback",d)}r.ref&&r.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:a,event:n,payload:o,ref:i}=r,s=i?`(${i})`:"",l=o.status||"";this.log("receive",`${l} ${a} ${n} ${s}`.trim(),o),this.channels.filter(d=>d._isMember(a)).forEach(d=>d._trigger(n,o,i)),this._triggerStateCallbacks("message",r)})}_clearTimer(e){var r;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_teardownConnection(){if(this.conn){if(this.conn.readyState===gr.open||this.conn.readyState===gr.connecting)try{this.conn.close()}catch(e){this.log("error","Error closing connection",e)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(r=>{this.log("error","error waiting for auth on connect",r),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this.workerRef.terminate()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(e){var r;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
143heduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}_triggerChanError(){this.channels.forEach(e=>e._trigger(ct.error))}_appendParams(e,r){if(Object.keys(r).length===0)return e;const a=e.match(/\?/)?"&":"?",n=new URLSearchParams(r);return`${e}${a}${n}`}_workerObjectUrl(e){let r;if(e)r=e;else{const a=new Blob([j1],{type:"application/javascript"});r=URL.createObjectURL(a)}return r}_setConnectionState(e,r=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(e=null){let r,a=!1;if(e)r=e,a=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(n){this.log("error","Error fetching access token from callback",n),r=this.accessTokenValue}else r=this.accessTokenValue;a?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(n=>{const o={access_token:r,version:P1};r&&n.updateJoinPayload(o),n.joinedOnce&&n._isJoined()&&n._push(ct.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${e}`,r)})}_triggerStateCallbacks(e,r){try{this.stateChangeCallbacks[e].forEach(a=>{try{a(r)}catch(n){this.log("error",`error in ${e} callback`,n)}})}catch(a){this.log("error",`error triggering ${e} callbacks`,a)}}_setupReconnectionTimer(){this.reconnectTimer=new Wp(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Tn.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var r,a,n,o,i,s,l,d,u,p,f,h;switch(this.transport=(r=e==null?void 0:e.transport)!==null&&r!==void 0?r:null,this.timeout=(a=e==null?void 0:e.timeout)!==null&&a!==void 0?a:es,this.heartbeatIntervalMs=(n=e==null?void 0:e.heartbeatIntervalMs)!==null&&n!==void 0?n:Tn.HEARTBEAT_INTERVAL,this.worker=(o=e==null?void 0:e.worker)!==null&&o!==void 0?o:!1,this.accessToken=(i=e==null?void 0:e.accessToken)!==null&&i!==void 0?i:null,this.heartbeatCallback=(s=e==null?void 0:e.heartbeatCallback)!==null&&s!==void 0?s:ai,this.vsn=(l=e==null?void 0:e.vsn)!==null&&l!==void 0?l:Ac,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(d=e==null?void 0:e.reconnectAfterMs)!==null&&d!==void 0?d:b=>N1[b-1]||R1,this.vsn){case qp:this.encode=(u=e==null?void 0:e.encode)!==null&&u!==void 0?u:(b,y)=>y(JSON.stringify(b)),this.decode=(p=e==null?void 0:e.decode)!==null&&p!==void 0?p:(b,y)=>y(JSON.parse(b));break;case x1:this.encode=(f=e==null?void 0:e.encode)!==null&&f!==void 0?f:this.serializer.encode.bind(this.serializer),this.decode=(h=e==null?void 0:e.decode)!==null&&h!==void 0?h:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}};const D1=Object.freeze(Object.defineProperty({__proto__:null,REALTIME_CHANNEL_STATES:I1,get REALTIME_LISTEN_TYPES(){return Yr},get REALTIME_POSTGRES_CHANGES_LISTEN_EVENT(){return ns},get REALTIME_PRESENCE_LISTEN_EVENTS(){return as},get REALTIME_SUBSCRIBE_STATES(){return yt},RealtimeChannel:zp,RealtimeClient:L1,RealtimePresence:Kp,WebSocketFactory:Up},Symbol.toStringTag,{value:"Module"})),Gp=dn(D1);class fn extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function ve(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}class Xp extends fn{constructor(e,r,a){super(e),this.name="StorageApiError",this.status=r,this.statusCode=a}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class oo extends fn{constructor(e,r){super(e),this.name="StorageUnknownError",this.originalError=r}}const ol=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),F1=()=>Response,os=t=>{if(Array.isArray(t))return t.map(r=>os(r));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([r,a])=>{const n=r.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));e[n]=os(a)}),e},M1=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);
143return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},B1=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t),ni=t=>{var e;return t.msg||t.message||t.error_description||(typeof t.error=="string"?t.error:(e=t.error)===null||e===void 0?void 0:e.message)||JSON.stringify(t)},U1=(t,e,r)=>F(void 0,void 0,void 0,function*(){const a=yield F1();t instanceof a&&!(r!=null&&r.noResolveJson)?t.json().then(n=>{const o=t.status||500,i=(n==null?void 0:n.statusCode)||o+"";e(new Xp(ni(n),o,i))}).catch(n=>{e(new oo(ni(n),n))}):e(new oo(ni(t),t))}),q1=(t,e,r,a)=>{const n={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!a?n:(M1(a)?(n.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),n.body=JSON.stringify(a)):n.body=a,e!=null&&e.duplex&&(n.duplex=e.duplex),Object.assign(Object.assign({},n),r))};function mn(t,e,r,a,n,o){return F(this,void 0,void 0,function*(){return new Promise((i,s)=>{t(r,q1(e,a,n,o)).then(l=>{if(!l.ok)throw l;return a!=null&&a.noResolveJson?l:l.json()}).then(l=>i(l)).catch(l=>U1(l,s,a))})})}function qa(t,e,r,a){return F(this,void 0,void 0,function*(){return mn(t,"GET",e,r,a)})}function it(t,e,r,a,n){return F(this,void 0,void 0,function*(){return mn(t,"POST",e,a,n,r)})}function is(t,e,r,a,n){return F(this,void 0,void 0,function*(){return mn(t,"PUT",e,a,n,r)})}function W1(t,e,r,a){return F(this,void 0,void 0,function*(){return mn(t,"HEAD",e,Object.assign(Object.assign({},r),{noResolveJson:!0}),a)})}function il(t,e,r,a,n){return F(this,void 0,void 0,function*(){return mn(t,"DELETE",e,a,n,r)})}class V1{constructor(e,r){this.downloadFn=e,this.shouldThrowOnError=r}then(e,r){return this.execute().then(e,r)}execute(){return F(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(ve(e))return{data:null,error:e};throw e}})}}var Jp;class H1{constructor(e,r){this.downloadFn=e,this.shouldThrowOnError=r,this[Jp]="BlobDownloadBuilder",this.promise=null}asStream(){return new V1(this.downloadFn,this.shouldThrowOnError)}then(e,r){return this.getPromise().then(e,r)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}execute(){return F(this,void 0,void 0,function*(){try{return{data:yield(yield this.downloadFn()).blob(),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(ve(e))return{data:null,error:e};throw e}})}}Jp=Symbol.toStringTag;const K1={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Tc={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class z1{constructor(e,r={},a,n){this.shouldThrowOnError=!1,this.url=e,this.headers=r,this.bucketId=a,this.fetch=ol(n)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(e,r,a,n){return F(this,void 0,void 0,function*(){try{let o;const i=Object.assign(Object.assign({},Tc),n);let s=Object.assign(Object.assign({},this.headers),e==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&a instanceof Blob?(o=new FormData,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",this.encodeMetadata(l)),o.append("",a)):typeof FormData<"u"&&a instanceof FormData?(o=a,o.has("cacheControl")||o.append("cacheControl",i.cacheControl),l&&!o.has("metadata")&&o.append("metadata",this.encodeMetadata(l))):(o=a,s["cache-control"]=`max-age=${i.cacheControl}`,s["content-type"]=i.contentType,l&&(s["x-metadata"]=this.toBase64(this.encodeMetadata(l))),(typeof ReadableStream<"u"&&o instanceof ReadableStream||o&&typeof o=="object"&&"pipe"in o&&typeof o.pipe=="function")&&!i.duplex&&(i.duplex="half")),n!=null&&n.headers&&(s=Object.assign(Object.assign({},s),n.headers));const d=this._removeEmptyFolders(r),u=this._getFinalPath(d),p=yield(e=="PUT"?is:it)(this.fetch,`${this.url}/object/${u}`,o,Object.assign({headers:s},i!=null&&i.duplex?{duplex:i.duplex}:{}));return{data:{path:d,id:p.Id,fullPath:p.Key},error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(ve(o))return{data:null,error:o};throw o}})}upload(e,r,a){return F(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,r,a)})}uploadToSignedUrl(e,r,a,n){return F(this,void 0,void 0,function*(){const o=this._removeEmptyFolders(e),i=this._getFinalPath(o),s=new URL(this.url+`/object/upload/sign/${i}`);s.searchParams.set("token",r);try{let l;const d=Object.assign({upsert:Tc.upsert},n),u=Object.assign(Object.assign({},this.headers),{"x-upsert":String(d.upsert)});
143typeof Blob<"u"&&a instanceof Blob?(l=new FormData,l.append("cacheControl",d.cacheControl),l.append("",a)):typeof FormData<"u"&&a instanceof FormData?(l=a,l.append("cacheControl",d.cacheControl)):(l=a,u["cache-control"]=`max-age=${d.cacheControl}`,u["content-type"]=d.contentType);const p=yield is(this.fetch,s.toString(),l,{headers:u});return{data:{path:o,fullPath:p.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(ve(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(e,r){return F(this,void 0,void 0,function*(){try{let a=this._getFinalPath(e);const n=Object.assign({},this.headers);r!=null&&r.upsert&&(n["x-upsert"]="true");const o=yield it(this.fetch,`${this.url}/object/upload/sign/${a}`,{},{headers:n}),i=new URL(this.url+o.url),s=i.searchParams.get("token");if(!s)throw new fn("No token returned by API");return{data:{signedUrl:i.toString(),path:e,token:s},error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(ve(a))return{data:null,error:a};throw a}})}update(e,r,a){return F(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,r,a)})}move(e,r,a){return F(this,void 0,void 0,function*(){try{return{data:yield it(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:r,destinationBucket:a==null?void 0:a.destinationBucket},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ve(n))return{data:null,error:n};throw n}})}copy(e,r,a){return F(this,void 0,void 0,function*(){try{return{data:{path:(yield it(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:r,destinationBucket:a==null?void 0:a.destinationBucket},{headers:this.headers})).Key},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ve(n))return{data:null,error:n};throw n}})}createSignedUrl(e,r,a){return F(this,void 0,void 0,function*(){try{let n=this._getFinalPath(e),o=yield it(this.fetch,`${this.url}/object/sign/${n}`,Object.assign({expiresIn:r},a!=null&&a.transform?{transform:a.transform}:{}),{headers:this.headers});const i=a!=null&&a.download?`&download=${a.download===!0?"":a.download}`:"";return o={signedUrl:encodeURI(`${this.url}${o.signedURL}${i}`)},{data:o,error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ve(n))return{data:null,error:n};throw n}})}createSignedUrls(e,r,a){return F(this,void 0,void 0,function*(){try{const n=yield it(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:r,paths:e},{headers:this.headers}),o=a!=null&&a.download?`&download=${a.download===!0?"":a.download}`:"";return{data:n.map(i=>Object.assign(Object.assign({},i),{signedUrl:i.signedURL?encodeURI(`${this.url}${i.signedURL}${o}`):null})),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ve(n))return{data:null,error:n};throw n}})}download(e,r){const n=typeof(r==null?void 0:r.transform)<"u"?"render/image/authenticated":"object",o=this.transformOptsToQueryString((r==null?void 0:r.transform)||{}),i=o?`?${o}`:"",s=this._getFinalPath(e),l=()=>qa(this.fetch,`${this.url}/${n}/${s}${i}`,{headers:this.headers,noResolveJson:!0});return new H1(l,this.shouldThrowOnError)}info(e){return F(this,void 0,void 0,function*(){const r=this._getFinalPath(e);try{const a=yield qa(this.fetch,`${this.url}/object/info/${r}`,{headers:this.headers});return{data:os(a),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(ve(a))return{data:null,error:a};throw a}})}exists(e){return F(this,void 0,void 0,function*(){const r=this._getFinalPath(e);try{return yield W1(this.fetch,`${this.url}/object/${r}`,{headers:this.headers}),{data:!0,error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(ve(a)&&a instanceof oo){const n=a.originalError;if([400,404].includes(n==null?void 0:n.status))return{data:!1,error:a}}throw a}})}getPublicUrl(e,r){const a=this._getFinalPath(e),n=[],o=r!=null&&r.download?`download=${r.download===!0?"":r.download}`:"";o!==""&&n.push(o);const s=typeof(r==null?void 0:r.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});l!==""&&n.push(l);let d=n.join("&");return d!==""&&(d=`?${d}`),{data:{publicUrl:encodeURI(`${this.url}/${s}/public/${a}${d}`)}}}remove(e){return F(this,void 0,void 0,function*(){try{return{data:yield il(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ve(r))return{data:null,error:r};throw r}})}list(e,r,a){return F(this,void 0,void 0,function*(){try{const n=Object.assign(Object.assign(Object.assign({},K1),r),{prefix:e||""});return{data:yield it(this.fetch,`${this.url}/object/list/${this.bucketId}`,n,{headers:this.headers},a),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ve(n))return{data:null,error:n};throw n}})}listV2(e,r){return F(this,void 0,void 0,function*(){try{const a=Object.assign({},e);return{data:yield it(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,a,{headers:this.headers},r),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(ve(a))return{data:null,error:a};throw a}})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const r=[];return e.width&&r.push(`width=${e.width}`),e.height&&r.push(`height=${e.height}`),e.resize&&r.push(`resize=${e.resize}`),e.format&&r.push(`format=${e.format}`),e.quality&&r.push(`quality=${e.quality}`),r.join("&")}}const Qp="2.87.1",Yp={"X-Client-Info":`storage-js/${Qp}`};class G1{constructor(e,r={},a,n){this.shouldThrowOnError=!1;const o=new URL(e);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(o.hostname)&&!o.hostname.includes("storage.supabase.")&&(o.hostname=o.hostname.replace("supabase.","storage.supabase.")),this.url=o.href.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Yp),r),this.fetch=ol(a)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(e){return F(this,void 0,void 0,function*(){try{const r=this.listBucketOptionsToQueryString(e);return{data:yield qa(this.fetch,`${this.url}/bucket${r}`,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ve(r))return{data:null,error:r};throw r}})}getBucket(e){return F(this,void 0,void 0,function*(){try{return{data:yield qa(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ve(r))return{data:null,error:r};throw r}})}createBucket(e){return F(this,arguments,void 0,function*(r,a={public:!1}){try{return{data:yield it(this.fetch,`${this.url}/bucket`,{id:r,name:r,type:a.type,public:a.public,file_size_limit:a.fileSizeLimit,allowed_mime_types:a.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ve(n))return{data:null,error:n};throw n}})}updateBucket(e,r){return F(this,void 0,void 0,function*(){try{return{data:yield is(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(ve(a))return{data:null,error:a};throw a}})}emptyBucket(e){return F(this,void 0,void 0,function*(){try{return{data:yield it(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ve(r))return{data:null,error:r};throw r}})}deleteBucket(e){return F(this,void 0,void 0,function*(){try{return{data:yield il(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ve(r))return{data:null,error:r};throw r}})}listBucketOptionsToQueryString(e){const r={};return e&&("limit"in e&&(r.limit=String(e.limit)),"offset"in e&&(r.offset=String(e.offset)),e.search&&(r.search=e.search),e.sortColumn&&(r.sortColumn=e.sortColumn),e.sortOrder&&(r.sortOrder=e.sortOrder)),Object.keys(r).length>0?"?"+new URLSearchParams(r).toString():""}}
143var Wa=class extends Error{constructor(t,e){var r;super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&((r=e.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function X1(t,e,r){const a=new URL(e,t);if(r)for(const[n,o]of Object.entries(r))o!==void 0&&a.searchParams.set(n,o);return a.toString()}async function J1(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function Q1(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:r,path:a,query:n,body:o,headers:i}){const s=X1(t.baseUrl,a,n),l=await J1(t.auth),d=await e(s,{method:r,headers:{...o?{"Content-Type":"application/json"}:{},...l,...i},body:o?JSON.stringify(o):void 0}),u=await d.text(),p=(d.headers.get("content-type")||"").includes("application/json"),f=p&&u?JSON.parse(u):u;if(!d.ok){const h=p?f:void 0,b=h==null?void 0:h.error;throw new Wa((b==null?void 0:b.message)??`Request failed with status ${d.status}`,{status:d.status,icebergType:b==null?void 0:b.type,icebergCode:b==null?void 0:b.code,details:h})}return{status:d.status,headers:d.headers,data:f}}}}function kn(t){return t.join("�")}var Y1=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:kn(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(a=>({namespace:a}))}async createNamespace(t,e){const r={namespace:t.namespace,properties:e==null?void 0:e.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${kn(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${kn(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${kn(t.namespace)}`}),!0}catch(e){if(e instanceof Wa&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(r){if(r instanceof Wa&&r.status===409)return;throw r}}};function Mr(t){return t.join("�")}var Z1=class{constructor(t,e="",r){this.client=t,this.prefix=e,this.accessDelegation=r}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Mr(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Mr(t.namespace)}/tables`,body:e,headers:r})).data.metadata}async updateTable(t,e){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Mr(t.namespace)}/tables/${t.name}`,body:e});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Mr(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String((e==null?void 0:e.purge)??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Mr(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Mr(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(r){if(r instanceof Wa&&r.status===404)return!1;throw r}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(r){if(r instanceof Wa&&r.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw r}}},e2=class{constructor(t){var a;let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const r=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=Q1({baseUrl:r,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=(a=t.accessDelegation)==null?void 0:a.join(","),this.namespaceOps=new Y1(this.client,e),this.tableOps=new Z1(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}
143async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}};class Zp{constructor(e,r={},a){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Yp),r),this.fetch=ol(a)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(e){return F(this,void 0,void 0,function*(){try{return{data:yield it(this.fetch,`${this.url}/bucket`,{name:e},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ve(r))return{data:null,error:r};throw r}})}listBuckets(e){return F(this,void 0,void 0,function*(){try{const r=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&r.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&r.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&r.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&r.set("sortOrder",e.sortOrder),e!=null&&e.search&&r.set("search",e.search);const a=r.toString(),n=a?`${this.url}/bucket?${a}`:`${this.url}/bucket`;return{data:yield qa(this.fetch,n,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ve(r))return{data:null,error:r};throw r}})}deleteBucket(e){return F(this,void 0,void 0,function*(){try{return{data:yield il(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ve(r))return{data:null,error:r};throw r}})}from(e){if(!B1(e))throw new fn("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new e2({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:()=>F(this,void 0,void 0,function*(){return this.headers})},fetch:this.fetch}),a=this.shouldThrowOnError;return new Proxy(r,{get(o,i){const s=o[i];return typeof s!="function"?s:(...l)=>F(this,void 0,void 0,function*(){try{return{data:yield s.apply(o,l),error:null}}catch(d){if(a)throw d;return{data:null,error:d}}})}})}}const sl={"X-Client-Info":`storage-js/${Qp}`,"Content-Type":"application/json"};class ll extends Error{constructor(e){super(e),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}}function Ve(t){return typeof t=="object"&&t!==null&&"__isStorageVectorsError"in t}class qn extends ll{constructor(e,r,a){super(e),this.name="StorageVectorsApiError",this.status=r,this.statusCode=a}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class ef extends ll{constructor(e,r){super(e),this.name="StorageVectorsUnknownError",this.originalError=r}}var ss;(function(t){t.InternalError="InternalError",t.S3VectorConflictException="S3VectorConflictException",t.S3VectorNotFoundException="S3VectorNotFoundException",t.S3VectorBucketNotEmpty="S3VectorBucketNotEmpty",t.S3VectorMaxBucketsExceeded="S3VectorMaxBucketsExceeded",t.S3VectorMaxIndexesExceeded="S3VectorMaxIndexesExceeded"})(ss||(ss={}));const Io=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),t2=()=>Response,tf=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},r2=t=>Array.from(new Float32Array(t)),a2=(t,e)=>{if(e!==void 0&&t.float32.length!==e)throw new Error(`Vector dimension mismatch: expected ${e}, got ${t.float32.length}`)},kc=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),n2=(t,e,r)=>F(void 0,void 0,void 0,function*(){if(t&&typeof t=="object"&&"status"in t&&"ok"in t&&typeof t.status=="number"&&!(r!=null&&r.noResolveJson)){const n=t.status||500,o=t;if(typeof o.json=="function")o.json().then(i=>{const s=(i==null?void 0:i.statusCode)||(i==null?void 0:i.code)||n+"";e(new qn(kc(i),n,s))}).catch(()=>{const i=n+"",s=o.statusText||`HTTP ${n} error`;e(new qn(s,n,i))});else{const i=n+"",s=o.statusText||`HTTP ${n} error`;e(new qn(s,n,i))}}else e(new ef(kc(t),t))}),o2=(t,e,r,a)=>{const n={method:t,headers:(e==null?void 0:e.headers)||{}};return a?(tf(a)?(n.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),n.body=JSON.stringify(a)):n.body=a,Object.assign(Object.assign({},n),r)):n};function i2(t,e,r,a,n,o){return F(this,void 0,void 0,function*(){return new Promise((i,s)=>{t(r,o2(e,a,n,o)).then(l=>{if(!l.ok)throw l;if(a!=null&&a.noResolveJson)return l;const d=l.headers.get("content-type");
143return!d||!d.includes("application/json")?{}:l.json()}).then(l=>i(l)).catch(l=>n2(l,s,a))})})}function Ke(t,e,r,a,n){return F(this,void 0,void 0,function*(){return i2(t,"POST",e,a,n,r)})}class rf{constructor(e,r={},a){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},sl),r),this.fetch=Io(a)}throwOnError(){return this.shouldThrowOnError=!0,this}createIndex(e){return F(this,void 0,void 0,function*(){try{return{data:(yield Ke(this.fetch,`${this.url}/CreateIndex`,e,{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ve(r))return{data:null,error:r};throw r}})}getIndex(e,r){return F(this,void 0,void 0,function*(){try{return{data:yield Ke(this.fetch,`${this.url}/GetIndex`,{vectorBucketName:e,indexName:r},{headers:this.headers}),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Ve(a))return{data:null,error:a};throw a}})}listIndexes(e){return F(this,void 0,void 0,function*(){try{return{data:yield Ke(this.fetch,`${this.url}/ListIndexes`,e,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ve(r))return{data:null,error:r};throw r}})}deleteIndex(e,r){return F(this,void 0,void 0,function*(){try{return{data:(yield Ke(this.fetch,`${this.url}/DeleteIndex`,{vectorBucketName:e,indexName:r},{headers:this.headers}))||{},error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Ve(a))return{data:null,error:a};throw a}})}}class af{constructor(e,r={},a){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},sl),r),this.fetch=Io(a)}throwOnError(){return this.shouldThrowOnError=!0,this}putVectors(e){return F(this,void 0,void 0,function*(){try{if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:(yield Ke(this.fetch,`${this.url}/PutVectors`,e,{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ve(r))return{data:null,error:r};throw r}})}getVectors(e){return F(this,void 0,void 0,function*(){try{return{data:yield Ke(this.fetch,`${this.url}/GetVectors`,e,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ve(r))return{data:null,error:r};throw r}})}listVectors(e){return F(this,void 0,void 0,function*(){try{if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return{data:yield Ke(this.fetch,`${this.url}/ListVectors`,e,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ve(r))return{data:null,error:r};throw r}})}queryVectors(e){return F(this,void 0,void 0,function*(){try{return{data:yield Ke(this.fetch,`${this.url}/QueryVectors`,e,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ve(r))return{data:null,error:r};throw r}})}deleteVectors(e){return F(this,void 0,void 0,function*(){try{if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:(yield Ke(this.fetch,`${this.url}/DeleteVectors`,e,{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ve(r))return{data:null,error:r};throw r}})}}class nf{constructor(e,r={},a){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},sl),r),this.fetch=Io(a)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(e){return F(this,void 0,void 0,function*(){try{return{data:(yield Ke(this.fetch,`${this.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ve(r))return{data:null,error:r};throw r}})}getBucket(e){return F(this,void 0,void 0,function*(){try{return{data:yield Ke(this.fetch,`${this.url}/GetVectorBucket`,{vectorBucketName:e},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ve(r))return{data:null,error:r};throw r}})}listBuckets(){return F(this,arguments,void 0,function*(e={}){try{return{data:yield Ke(this.fetch,`${this.url}/ListVectorBuckets`,e,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ve(r))return{data:null,error:r};throw r}})}deleteBucket(e){return F(this,void 0,void 0,function*(){try{return{data:(yield Ke(this.fetch,`${this.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ve(r))return{data:null,error:r};throw r}})}}class of extends nf{constructor(e,r={}){super(e,r.headers||{},r.fetch)}from(e){return new sf(this.url,this.headers,e,this.fetch)}createBucket(e){const r=Object.create(null,{createBucket:{get:()=>super.createBucket}});return F(this,void 0,void 0,function*(){return r.createBucket.call(this,e)})}getBucket(e){const r=Object.create(null,{getBucket:{get:()=>super.getBucket}});return F(this,void 0,void 0,function*(){return r.getBucket.call(this,e)})}listBuckets(){const e=Object.create(null,{listBuckets:{get:()=>super.listBuckets}});return F(this,arguments,void 0,function*(r={}
143){return e.listBuckets.call(this,r)})}deleteBucket(e){const r=Object.create(null,{deleteBucket:{get:()=>super.deleteBucket}});return F(this,void 0,void 0,function*(){return r.deleteBucket.call(this,e)})}}class sf extends rf{constructor(e,r,a,n){super(e,r,n),this.vectorBucketName=a}createIndex(e){const r=Object.create(null,{createIndex:{get:()=>super.createIndex}});return F(this,void 0,void 0,function*(){return r.createIndex.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName}))})}listIndexes(){const e=Object.create(null,{listIndexes:{get:()=>super.listIndexes}});return F(this,arguments,void 0,function*(r={}){return e.listIndexes.call(this,Object.assign(Object.assign({},r),{vectorBucketName:this.vectorBucketName}))})}getIndex(e){const r=Object.create(null,{getIndex:{get:()=>super.getIndex}});return F(this,void 0,void 0,function*(){return r.getIndex.call(this,this.vectorBucketName,e)})}deleteIndex(e){const r=Object.create(null,{deleteIndex:{get:()=>super.deleteIndex}});return F(this,void 0,void 0,function*(){return r.deleteIndex.call(this,this.vectorBucketName,e)})}index(e){return new lf(this.url,this.headers,this.vectorBucketName,e,this.fetch)}}class lf extends af{constructor(e,r,a,n,o){super(e,r,o),this.vectorBucketName=a,this.indexName=n}putVectors(e){const r=Object.create(null,{putVectors:{get:()=>super.putVectors}});return F(this,void 0,void 0,function*(){return r.putVectors.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}getVectors(e){const r=Object.create(null,{getVectors:{get:()=>super.getVectors}});return F(this,void 0,void 0,function*(){return r.getVectors.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}listVectors(){const e=Object.create(null,{listVectors:{get:()=>super.listVectors}});return F(this,arguments,void 0,function*(r={}){return e.listVectors.call(this,Object.assign(Object.assign({},r),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}queryVectors(e){const r=Object.create(null,{queryVectors:{get:()=>super.queryVectors}});return F(this,void 0,void 0,function*(){return r.queryVectors.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}deleteVectors(e){const r=Object.create(null,{deleteVectors:{get:()=>super.deleteVectors}});return F(this,void 0,void 0,function*(){return r.deleteVectors.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}}class s2 extends G1{constructor(e,r={},a,n){super(e,r,a,n)}from(e){return new z1(this.url,this.headers,e,this.fetch)}get vectors(){return new of(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new Zp(this.url+"/iceberg",this.headers,this.fetch)}}const l2=Object.freeze(Object.defineProperty({__proto__:null,StorageAnalyticsClient:Zp,StorageApiError:Xp,StorageClient:s2,StorageError:fn,StorageUnknownError:oo,StorageVectorsApiError:qn,StorageVectorsClient:of,StorageVectorsError:ll,get StorageVectorsErrorCode(){return ss},StorageVectorsUnknownError:ef,VectorBucketApi:nf,VectorBucketScope:sf,VectorDataApi:af,VectorIndexApi:rf,VectorIndexScope:lf,isPlainObject:tf,isStorageError:ve,isStorageVectorsError:Ve,normalizeToFloat32:r2,resolveFetch:Io,resolveResponse:t2,validateVectorDimension:a2},Symbol.toStringTag,{value:"Module"})),c2=dn(l2);var cf={},No={};Object.defineProperty(No,"__esModule",{value:!0});No.version=void 0;No.version="2.87.1";(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REALTIME_OPTIONS=t.DEFAULT_AUTH_OPTIONS=t.DEFAULT_DB_OPTIONS=t.DEFAULT_GLOBAL_OPTIONS=t.DEFAULT_HEADERS=void 0;const e=No;let r="";typeof Deno<"u"?r="deno":typeof document<"u"?r="web":typeof navigator<"u"&&navigator.product==="ReactNative"?r="react-native":r="node",t.DEFAULT_HEADERS={"X-Client-Info":`supabase-js-${r}/${e.version}`},t.DEFAULT_GLOBAL_OPTIONS={headers:t.DEFAULT_HEADERS},t.DEFAULT_DB_OPTIONS={schema:"public"},t.DEFAULT_AUTH_OPTIONS={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},t.DEFAULT_REALTIME_OPTIONS={}})(cf);var df={};
143(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.fetchWithAuth=t.resolveHeadersConstructor=t.resolveFetch=void 0;const e=n=>n?(...o)=>n(...o):(...o)=>fetch(...o);t.resolveFetch=e;const r=()=>Headers;t.resolveHeadersConstructor=r;const a=(n,o,i)=>{const s=(0,t.resolveFetch)(i),l=(0,t.resolveHeadersConstructor)();return async(d,u)=>{var p;const f=(p=await o())!==null&&p!==void 0?p:n;let h=new l(u==null?void 0:u.headers);return h.has("apikey")||h.set("apikey",n),h.has("Authorization")||h.set("Authorization",`Bearer ${f}`),s(d,Object.assign(Object.assign({},u),{headers:h}))}};t.fetchWithAuth=a})(df);var nr={};Object.defineProperty(nr,"__esModule",{value:!0});nr.isBrowser=void 0;nr.uuid=d2;nr.ensureTrailingSlash=uf;nr.applySettingDefaults=h2;nr.validateSupabaseUrl=p2;function d2(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=Math.random()*16|0,r=t=="x"?e:e&3|8;return r.toString(16)})}function uf(t){return t.endsWith("/")?t:t+"/"}const u2=()=>typeof window<"u";nr.isBrowser=u2;function h2(t,e){var r,a;const{db:n,auth:o,realtime:i,global:s}=t,{db:l,auth:d,realtime:u,global:p}=e,f={db:Object.assign(Object.assign({},l),n),auth:Object.assign(Object.assign({},d),o),realtime:Object.assign(Object.assign({},u),i),storage:{},global:Object.assign(Object.assign(Object.assign({},p),s),{headers:Object.assign(Object.assign({},(r=p==null?void 0:p.headers)!==null&&r!==void 0?r:{}),(a=s==null?void 0:s.headers)!==null&&a!==void 0?a:{})}),accessToken:async()=>""};return t.accessToken?f.accessToken=t.accessToken:delete f.accessToken,f}function p2(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(uf(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var Ro={};const hf="2.87.1",Gr=30*1e3,ls=3,oi=ls*Gr,f2="http://localhost:9999",m2="supabase.auth.token",g2={"X-Client-Info":`gotrue-js/${hf}`},cs="X-Supabase-Api-Version",pf={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},y2=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,b2=10*60*1e3;let ba=class extends Error{constructor(e,r,a){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=a}};function q(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}let ff=class extends ba{constructor(e,r,a){super(e,r,a),this.name="AuthApiError",this.status=r,this.code=a}};function mf(t){return q(t)&&t.name==="AuthApiError"}let Wt=class extends ba{constructor(e,r){super(e),this.name="AuthUnknownError",this.originalError=r}},Lt=class extends ba{constructor(e,r,a,n){super(e,a,n),this.name=r,this.status=a}},Be=class extends Lt{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}};function gf(t){return q(t)&&t.name==="AuthSessionMissingError"}let hr=class extends Lt{constructor(){super("Auth session or user missing","AuthInvalidToken
143ResponseError",500,void 0)}},Ia=class extends Lt{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}},Na=class extends Lt{constructor(e,r=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}};function yf(t){return q(t)&&t.name==="AuthImplicitGrantRedirectError"}let ds=class extends Lt{constructor(e,r=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}},io=class extends Lt{constructor(e,r){super(e,"AuthRetryableFetchError",r,void 0)}};function Wn(t){return q(t)&&t.name==="AuthRetryableFetchError"}let us=class extends Lt{constructor(e,r,a){super(e,"AuthWeakPasswordError",r,"weak_password"),this.reasons=a}};function v2(t){return q(t)&&t.name==="AuthWeakPasswordError"}let so=class extends Lt{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}};const lo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Oc=` 	
144\r=`.split(""),w2=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<Oc.length;e+=1)t[Oc[e].charCodeAt(0)]=-2;for(let e=0;e<lo.length;e+=1)t[lo[e].charCodeAt(0)]=e;return t})();function Ic(t,e,r){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const a=e.queue>>e.queuedBits-6&63;r(lo[a]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const a=e.queue>>e.queuedBits-6&63;r(lo[a]),e.queuedBits-=6}}function bf(t,e,r){const a=w2[t];if(a>-1)for(e.queue=e.queue<<6|a,e.queuedBits+=6;e.queuedBits>=8;)r(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(a===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function Nc(t){const e=[],r=i=>{e.push(String.fromCodePoint(i))},a={utf8seq:0,codepoint:0},n={queue:0,queuedBits:0},o=i=>{$2(i,a,r)};for(let i=0;i<t.length;i+=1)bf(t.charCodeAt(i),n,o);return e.join("")}function P2(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function x2(t,e){for(let r=0;r<t.length;r+=1){let a=t.charCodeAt(r);if(a>55295&&a<=56319){const n=(a-55296)*1024&65535;a=(t.charCodeAt(r+1)-56320&65535|n)+65536,r+=1}P2(a,e)}}function $2(t,e,r){if(e.utf8seq===0){if(t<=127){r(t);return}for(let a=1;a<6;a+=1)if(!(t>>7-a&1)){e.utf8seq=a;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&r(e.codepoint)}}function Zr(t){const e=[],r={queue:0,queuedBits:0},a=n=>{e.push(n)};for(let n=0;n<t.length;n+=1)bf(t.charCodeAt(n),r,a);return new Uint8Array(e)}function _2(t){const e=[];return x2(t,r=>e.push(r)),new Uint8Array(e)}function br(t){const e=[],r={queue:0,queuedBits:0},a=n=>{e.push(n)};return t.forEach(n=>Ic(n,r,a)),Ic(null,r,a),e.join("")}function S2(t){return Math.round(Date.now()/1e3)+t}function C2(){return Symbol("auth-callback")}const Te=()=>typeof window<"u"&&typeof document<"u",cr={tested:!1,writable:!1},vf=()=>{if(!Te())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(cr.tested)return cr.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),cr.tested=!0,cr.writable=!0}catch{cr.tested=!0,cr.writable=!1}return cr.writable};function A2(t){const e={},r=new URL(t);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((n,o)=>{e[o]=n})}catch{}return r.searchParams.forEach((a,n)=>{e[n]=a}),e}const wf=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),E2=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Xr=async(t,e,r)=>{await t.setItem(e,JSON.stringify(r))},dr=async(t,e)=>{const r=await t.getItem(e);if(!r)return null;try{return JSON.parse(r)}catch{return r}},Ee=async(t,e)=>{await t.removeItem(e)};
144class jo{constructor(){this.promise=new jo.promiseConstructor((e,r)=>{this.resolve=e,this.reject=r})}}jo.promiseConstructor=Promise;function ii(t){const e=t.split(".");if(e.length!==3)throw new so("Invalid JWT structure");for(let a=0;a<e.length;a++)if(!y2.test(e[a]))throw new so("JWT not in base64url format");return{header:JSON.parse(Nc(e[0])),payload:JSON.parse(Nc(e[1])),signature:Zr(e[2]),raw:{header:e[0],payload:e[1]}}}async function T2(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function k2(t,e){return new Promise((a,n)=>{(async()=>{for(let o=0;o<1/0;o++)try{const i=await t(o);if(!e(o,null,i)){a(i);return}}catch(i){if(!e(o,i)){n(i);return}}})()})}function O2(t){return("0"+t.toString(16)).substr(-2)}function I2(){const e=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",a=r.length;let n="";for(let o=0;o<56;o++)n+=r.charAt(Math.floor(Math.random()*a));return n}return crypto.getRandomValues(e),Array.from(e,O2).join("")}async function N2(t){const r=new TextEncoder().encode(t),a=await crypto.subtle.digest("SHA-256",r),n=new Uint8Array(a);return Array.from(n).map(o=>String.fromCharCode(o)).join("")}async function R2(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const r=await N2(t);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Br(t,e,r=!1){const a=I2();let n=a;r&&(n+="/PASSWORD_RECOVERY"),await Xr(t,`${e}-code-verifier`,n);const o=await R2(a);return[o,a===o?"plain":"s256"]}const j2=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function L2(t){const e=t.headers.get(cs);if(!e||!e.match(j2))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function D2(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function F2(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const M2=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Ur(t){if(!M2.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function si(){const t={};return new Proxy(t,{get:(e,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const a=r.toString();if(a==="Symbol(Symbol.toPrimitive)"||a==="Symbol(Symbol.toStringTag)"||a==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function B2(t,e){return new Proxy(t,{get:(r,a,n)=>{if(a==="__isInsecureUserWarningProxy")return!0;if(typeof a=="symbol"){const o=a.toString();if(o==="Symbol(Symbol.toPrimitive)"||o==="Symbol(Symbol.toStringTag)"||o==="Symbol(util.inspect.custom)"||o==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,a,n)}return!e.value&&typeof a=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),e.value=!0),Reflect.get(r,a,n)}})}function Rc(t){return JSON.parse(JSON.stringify(t))}const pr=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),U2=[502,503,504];async function jc(t){var e;
144if(!E2(t))throw new io(pr(t),0);if(U2.includes(t.status))throw new io(pr(t),t.status);let r;try{r=await t.json()}catch(o){throw new Wt(pr(o),o)}let a;const n=L2(t);if(n&&n.getTime()>=pf["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?a=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(a=r.error_code),a){if(a==="weak_password")throw new us(pr(r),t.status,((e=r.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(a==="session_not_found")throw new Be}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((o,i)=>o&&typeof i=="string",!0))throw new us(pr(r),t.status,r.weak_password.reasons);throw new ff(pr(r),t.status||500,a)}const q2=(t,e,r,a)=>{const n={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?n:(n.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),n.body=JSON.stringify(a),Object.assign(Object.assign({},n),r))};async function K(t,e,r,a){var n;const o=Object.assign({},a==null?void 0:a.headers);o[cs]||(o[cs]=pf["2024-01-01"].name),a!=null&&a.jwt&&(o.Authorization=`Bearer ${a.jwt}`);const i=(n=a==null?void 0:a.query)!==null&&n!==void 0?n:{};a!=null&&a.redirectTo&&(i.redirect_to=a.redirectTo);const s=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await W2(t,e,r+s,{headers:o,noResolveJson:a==null?void 0:a.noResolveJson},{},a==null?void 0:a.body);return a!=null&&a.xform?a==null?void 0:a.xform(l):{data:Object.assign({},l),error:null}}async function W2(t,e,r,a,n,o){const i=q2(e,a,n,o);let s;try{s=await t(r,Object.assign({},i))}catch(l){throw console.error(l),new io(pr(l),0)}if(s.ok||await jc(s),a!=null&&a.noResolveJson)return s;try{return await s.json()}catch(l){await jc(l)}}function at(t){var e;let r=null;K2(t)&&(r=Object.assign({},t),t.expires_at||(r.expires_at=S2(t.expires_in)));const a=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:r,user:a},error:null}}function Lc(t){const e=at(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((r,a)=>r&&typeof a=="string",!0)&&(e.data.weak_password=t.weak_password),e}function Vt(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function V2(t){return{data:t,error:null}}function H2(t){const{action_link:e,email_otp:r,hashed_token:a,redirect_to:n,verification_type:o}=t,i=ar(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),s={action_link:e,email_otp:r,hashed_token:a,redirect_to:n,verification_type:o},l=Object.assign({},i);return{data:{properties:s,user:l},error:null}}function Dc(t){return t}function K2(t){return t.access_token&&t.refresh_token&&t.expires_in}const Vn=["global","local","others"];let cl=class{constructor({url:e="",headers:r={},fetch:a}){this.url=e,this.headers=r,this.fetch=wf(a),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(e,r=Vn[0]){if(Vn.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Vn.join(", ")}`);try{return await K(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(a){if(q(a))return{data:null,error:a};throw a}}async inviteUserByEmail(e,r={}){try{return await K(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Vt})}catch(a){if(q(a))return{data:{user:null},error:a};throw a}}async generateLink(e){try{const{options:r}=e,a=ar(e,["options"]),n=Object.assign(Object.assign({},a),r);return"newEmail"in a&&(n.new_email=a==null?void 0:a.newEmail,delete n.newEmail),await K(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:n,headers:this.headers,xform:H2,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(q(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(e){try{return await K(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:Vt})}catch(r){if(q(r))return{data:{user:null},error:r};throw r}}async listUsers(e){var r,a,n,o,i,s,l;
144try{const d={nextPage:null,lastPage:0,total:0},u=await K(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(a=(r=e==null?void 0:e.page)===null||r===void 0?void 0:r.toString())!==null&&a!==void 0?a:"",per_page:(o=(n=e==null?void 0:e.perPage)===null||n===void 0?void 0:n.toString())!==null&&o!==void 0?o:""},xform:Dc});if(u.error)throw u.error;const p=await u.json(),f=(i=u.headers.get("x-total-count"))!==null&&i!==void 0?i:0,h=(l=(s=u.headers.get("link"))===null||s===void 0?void 0:s.split(","))!==null&&l!==void 0?l:[];return h.length>0&&(h.forEach(b=>{const y=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),g=JSON.parse(b.split(";")[1].split("=")[1]);d[`${g}Page`]=y}),d.total=parseInt(f)),{data:Object.assign(Object.assign({},p),d),error:null}}catch(d){if(q(d))return{data:{users:[]},error:d};throw d}}async getUserById(e){Ur(e);try{return await K(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Vt})}catch(r){if(q(r))return{data:{user:null},error:r};throw r}}async updateUserById(e,r){Ur(e);try{return await K(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:r,headers:this.headers,xform:Vt})}catch(a){if(q(a))return{data:{user:null},error:a};throw a}}async deleteUser(e,r=!1){Ur(e);try{return await K(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:r},xform:Vt})}catch(a){if(q(a))return{data:{user:null},error:a};throw a}}async _listFactors(e){Ur(e.userId);try{const{data:r,error:a}=await K(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:n=>({data:{factors:n},error:null})});return{data:r,error:a}}catch(r){if(q(r))return{data:null,error:r};throw r}}async _deleteFactor(e){Ur(e.userId),Ur(e.id);try{return{data:await K(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(r){if(q(r))return{data:null,error:r};throw r}}async _listOAuthClients(e){var r,a,n,o,i,s,l;try{const d={nextPage:null,lastPage:0,total:0},u=await K(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(a=(r=e==null?void 0:e.page)===null||r===void 0?void 0:r.toString())!==null&&a!==void 0?a:"",per_page:(o=(n=e==null?void 0:e.perPage)===null||n===void 0?void 0:n.toString())!==null&&o!==void 0?o:""},xform:Dc});if(u.error)throw u.error;const p=await u.json(),f=(i=u.headers.get("x-total-count"))!==null&&i!==void 0?i:0,h=(l=(s=u.headers.get("link"))===null||s===void 0?void 0:s.split(","))!==null&&l!==void 0?l:[];return h.length>0&&(h.forEach(b=>{const y=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),g=JSON.parse(b.split(";")[1].split("=")[1]);d[`${g}Page`]=y}),d.total=parseInt(f)),{data:Object.assign(Object.assign({},p),d),error:null}}catch(d){if(q(d))return{data:{clients:[]},error:d};throw d}}async _createOAuthClient(e){try{return await K(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(q(r))return{data:null,error:r};throw r}}async _getOAuthClient(e){try{return await K(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(q(r))return{data:null,error:r};throw r}}async _updateOAuthClient(e,r){try{return await K(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:r,headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(q(a))return{data:null,error:a};throw a}}async _deleteOAuthClient(e){try{return await K(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(q(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(e){try{return await K(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(q(r))return{data:null,error:r};throw r}}};function Fc(t={}){return{getItem:e=>t[e]||null,setItem:(e,r)=>{t[e]=r},removeItem:e=>{delete t[e]}}}const fr={debug:!!(globalThis&&vf()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};
144class dl extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}let Pf=class extends dl{};class z2 extends dl{}async function xf(t,e,r){fr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const a=new globalThis.AbortController;return e>0&&setTimeout(()=>{a.abort(),fr.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:a.signal},async n=>{if(n){fr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,n.name);try{return await r()}finally{fr.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,n.name)}}else{if(e===0)throw fr.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new Pf(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(fr.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null,"  "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}const Mc={};async function G2(t,e,r){var a;const n=(a=Mc[t])!==null&&a!==void 0?a:Promise.resolve(),o=Promise.race([n.catch(()=>null),e>=0?new Promise((i,s)=>{setTimeout(()=>{s(new z2(`Acquring process lock with name "${t}" timed out`))},e)}):null].filter(i=>i)).catch(i=>{if(i&&i.isAcquireTimeout)throw i;return null}).then(async()=>await r());return Mc[t]=o.catch(async i=>{if(i&&i.isAcquireTimeout)return await n,null;throw i}),await o}function X2(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function $f(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function J2(t){return parseInt(t,16)}function Q2(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,a=>a.toString(16).padStart(2,"0")).join("")}function Y2(t){var e;const{chainId:r,domain:a,expirationTime:n,issuedAt:o=new Date,nonce:i,notBefore:s,requestId:l,resources:d,scheme:u,uri:p,version:f}=t;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!a)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(i&&i.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${i}`);if(!p)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(`
145`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const h=$f(t.address),b=u?`${u}://${a}`:a,y=t.statement?`${t.statement}
146`:"",g=`${b} wants you to sign in with your Ethereum account:
147${h}
148
149${y}`;let v=`URI: ${p}
150Version: ${f}
151Chain ID: ${r}${i?`
152Nonce: ${i}`:""}
153Issued At: ${o.toISOString()}`;if(n&&(v+=`
154Expiration Time: ${n.toISOString()}`),s&&(v+=`
155Not Before: ${s.toISOString()}`),l&&(v+=`
156Request ID: ${l}`),d){let w=`
157Resources:`;for(const P of d){if(!P||typeof P!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${P}`);w+=`
158- ${P}`}v+=w}return`${g}
159${v}`}class Se extends Error{constructor({message:e,code:r,cause:a,name:n}){var o;super(e,{cause:a}),this.__isWebAuthnError=!0,this.name=(o=n??(a instanceof Error?a.name:void 0))!==null&&o!==void 0?o:"Unknown Error",this.co
159de=r}}class co extends Se{constructor(e,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:e}),this.name="WebAuthnUnknownError",this.originalError=r}}function Z2({error:t,options:e}){var r,a,n;const{publicKey:o}=e;if(!o)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new Se({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((r=o.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new Se({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((a=o.authenticatorSelection)===null||a===void 0?void 0:a.userVerification)==="required")return new Se({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((n=o.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new Se({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new Se({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new Se({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return o.pubKeyCredParams.filter(s=>s.type==="public-key").length===0?new Se({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new Se({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const i=window.location.hostname;if(_f(i)){if(o.rp.id!==i)return new Se({message:`The RP ID "${o.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Se({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(o.user.id.byteLength<1||o.user.id.byteLength>64)return new Se({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new Se({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Se({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function ew({error:t,options:e}){const{publicKey:r}=e;if(!r)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new Se({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new Se({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const a=window.location.hostname;if(_f(a)){if(r.rpId!==a)return new Se({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Se({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new Se({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Se({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class tw{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const rw=new tw;function aw(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:r,excludeCredentials:a}=t,n=ar(t,["challenge","user","excludeCredentials"]),o=Zr(e).buffer,i=Object.assign(Object.assign({},r),{id:Zr(r.id).buffer}),s=Object.assign(Object.assign({}
159,n),{challenge:o,user:i});if(a&&a.length>0){s.excludeCredentials=new Array(a.length);for(let l=0;l<a.length;l++){const d=a[l];s.excludeCredentials[l]=Object.assign(Object.assign({},d),{id:Zr(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return s}function nw(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:r}=t,a=ar(t,["challenge","allowCredentials"]),n=Zr(e).buffer,o=Object.assign(Object.assign({},a),{challenge:n});if(r&&r.length>0){o.allowCredentials=new Array(r.length);for(let i=0;i<r.length;i++){const s=r[i];o.allowCredentials[i]=Object.assign(Object.assign({},s),{id:Zr(s.id).buffer,type:s.type||"public-key",transports:s.transports})}}return o}function ow(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const r=t;return{id:t.id,rawId:t.id,response:{attestationObject:br(new Uint8Array(t.response.attestationObject)),clientDataJSON:br(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=r.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function iw(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const r=t,a=t.getClientExtensionResults(),n=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:br(new Uint8Array(n.authenticatorData)),clientDataJSON:br(new Uint8Array(n.clientDataJSON)),signature:br(new Uint8Array(n.signature)),userHandle:n.userHandle?br(new Uint8Array(n.userHandle)):void 0},type:"public-key",clientExtensionResults:a,authenticatorAttachment:(e=r.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function _f(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function Bc(){var t,e;return!!(Te()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.get)=="function")}async function sw(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new co("Browser returned unexpected credential type",e)}:{data:null,error:new co("Empty credential response",e)}}catch(e){return{data:null,error:Z2({error:e,options:t})}}}async function lw(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new co("Browser returned unexpected credential type",e)}:{data:null,error:new co("Empty credential response",e)}}catch(e){return{data:null,error:ew({error:e,options:t})}}}const cw={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},dw={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function uo(...t){const e=n=>n!==null&&typeof n=="object"&&!Array.isArray(n),r=n=>n instanceof ArrayBuffer||ArrayBuffer.isView(n),a={};for(const n of t)if(n)for(const o in n){const i=n[o];if(i!==void 0)if(Array.isArray(i))a[o]=i;else if(r(i))a[o]=i;else if(e(i)){const s=a[o];e(s)?a[o]=uo(s,i):a[o]=uo(i)}else a[o]=i}return a}function uw(t,e){return uo(cw,t,e||{})}function hw(t,e){return uo(dw,t,e||{})}class pw{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:r,friendlyName:a,signal:n},o){try{const{data:i,error:s}=await this.client.mfa.challenge({factorId:e,webauthn:r});if(!i)return{data:null,error:s};
159const l=n??rw.createNewAbortSignal();if(i.webauthn.type==="create"){const{user:d}=i.webauthn.credential_options.publicKey;d.name||(d.name=`${d.id}:${a}`),d.displayName||(d.displayName=d.name)}switch(i.webauthn.type){case"create":{const d=uw(i.webauthn.credential_options.publicKey,o==null?void 0:o.create),{data:u,error:p}=await sw({publicKey:d,signal:l});return u?{data:{factorId:e,challengeId:i.id,webauthn:{type:i.webauthn.type,credential_response:u}},error:null}:{data:null,error:p}}case"request":{const d=hw(i.webauthn.credential_options.publicKey,o==null?void 0:o.request),{data:u,error:p}=await lw(Object.assign(Object.assign({},i.webauthn.credential_options),{publicKey:d,signal:l}));return u?{data:{factorId:e,challengeId:i.id,webauthn:{type:i.webauthn.type,credential_response:u}},error:null}:{data:null,error:p}}}}catch(i){return q(i)?{data:null,error:i}:{data:null,error:new Wt("Unexpected error in challenge",i)}}}async _verify({challengeId:e,factorId:r,webauthn:a}){return this.client.mfa.verify({factorId:r,challengeId:e,webauthn:a})}async _authenticate({factorId:e,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:a=typeof window<"u"?[window.location.origin]:void 0,signal:n}={}},o){if(!r)return{data:null,error:new ba("rpId is required for WebAuthn authentication")};try{if(!Bc())return{data:null,error:new Wt("Browser does not support WebAuthn",null)};const{data:i,error:s}=await this.challenge({factorId:e,webauthn:{rpId:r,rpOrigins:a},signal:n},{request:o});if(!i)return{data:null,error:s};const{webauthn:l}=i;return this._verify({factorId:e,challengeId:i.challengeId,webauthn:{type:l.type,rpId:r,rpOrigins:a,credential_response:l.credential_response}})}catch(i){return q(i)?{data:null,error:i}:{data:null,error:new Wt("Unexpected error in authenticate",i)}}}async _register({friendlyName:e,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:a=typeof window<"u"?[window.location.origin]:void 0,signal:n}={}},o){if(!r)return{data:null,error:new ba("rpId is required for WebAuthn registration")};try{if(!Bc())return{data:null,error:new Wt("Browser does not support WebAuthn",null)};const{data:i,error:s}=await this._enroll({friendlyName:e});if(!i)return await this.client.mfa.listFactors().then(u=>{var p;return(p=u.data)===null||p===void 0?void 0:p.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===e&&f.status!=="unverified")}).then(u=>u?this.client.mfa.unenroll({factorId:u==null?void 0:u.id}):void 0),{data:null,error:s};const{data:l,error:d}=await this._challenge({factorId:i.id,friendlyName:i.friendly_name,webauthn:{rpId:r,rpOrigins:a},signal:n},{create:o});return l?this._verify({factorId:i.id,challengeId:l.challengeId,webauthn:{rpId:r,rpOrigins:a,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:d}}catch(i){return q(i)?{data:null,error:i}:{data:null,error:new Wt("Unexpected error in register",i)}}}}X2();const fw={url:f2,storageKey:m2,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:g2,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1};async function Uc(t,e,r){return await r()}const qr={};let ul=class hs{get jwks(){var e,r;return(r=(e=qr[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(e){qr[this.storageKey]=Object.assign(Object.assign({},qr[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,r;return(r=(e=qr[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){qr[this.storageKey]=Object.assign(Object.assign({},qr[this.storageKey]),{cachedAt:e})}constructor(e){var r,a,n;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const o=Object.assign(Object.assign({},fw),e);if(this.storageKey=o.storageKey,this.instanceID=(r=hs.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,hs.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.instanceID>0&&Te()){const i=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(i),this.logDebugMessages&&console.trace(i)}if(this.persistSession=o.persistSession,this.autoRefreshToken=o.autoRefreshToken,this.admin=new cl({url:o.url,headers:o.headers,fetch:o.fetch}),this.url=o.url,this.headers=o.headers,this.fetch=wf(o.fetch),this.lock=o.lock||Uc,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,this.throwOnError=o.throwOnError,o.lock?this.lock=o.lock:this.persistSession&&Te()&&(!((a=globalThis==null?void 0:globalThis.navigator)===null||a===void 0)&&a.locks)?this.lock=xf:this.lock=Uc,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new pw(this)}
159,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(o.storage?this.storage=o.storage:vf()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Fc(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=Fc(this.memoryStorage)),Te()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(n=this.broadcastChannel)===null||n===void 0||n.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${hf}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{let r={},a="none";if(Te()&&(r=A2(window.location.href),this._isImplicitGrantCallback(r)?a="implicit":await this._isPKCECallback(r)&&(a="pkce")),Te()&&this.detectSessionInUrl&&a!=="none"){const{data:n,error:o}=await this._getSessionFromURL(r,a);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),yf(o)){const l=(e=o.details)===null||e===void 0?void 0:e.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:o}}return await this._removeSession(),{error:o}}const{session:i,redirectType:s}=n;return this._debug("#_initialize()","detected session in URL",i,"redirect type",s),await this._saveSession(i),setTimeout(async()=>{s==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return q(r)?this._returnResult({error:r}):this._returnResult({error:new Wt("Unexpected error during initialization",r)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var r,a,n;try{const o=await K(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(a=(r=e==null?void 0:e.options)===null||r===void 0?void 0:r.data)!==null&&a!==void 0?a:{},gotrue_meta_security:{captcha_token:(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.captchaToken}},xform:at}),{data:i,error:s}=o;if(s||!i)return this._returnResult({data:{user:null,session:null},error:s});const l=i.session,d=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:d,session:l},error:null})}catch(o){if(q(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signUp(e){var r,a,n;try{let o;if("email"in e){const{email:u,password:p,options:f}=e;let h=null,b=null;this.flowType==="pkce"&&([h,b]=await Br(this.storage,this.storageKey)),o=await K(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:u,password:p,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:h,code_challenge_method:b},xform:at})}else if("phone"in e){const{phone:u,password:p,options:f}=e;o=await K(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:p,data:(a=f==null?void 0:f.data)!==null&&a!==void 0?a:{},channel:(n=f==null?void 0:f.channel)!==null&&n!==void 0?n:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:at})}else throw new Ia("You must provide either an email or phone number and a password");const{data:i,error:s}=o;if(s||!i)return await Ee(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:s});const l=i.session,d=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:d,session:l},error:null})}catch(o){if(await Ee(this.storage,`${this.storageKey}-code-verifier`),q(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithPassword(e){try{let r;if("email"in e){const{email:o,password:i,options:s}=e;r=await K(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},xform:Lc})}else if("phone"in e){const{phone:o,password:i,options:s}=e;r=await K(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},xform:Lc})}else throw new Ia("You must provide either an email or phone number and a password");const{data:a,error:n}=r;if(n)return this._returnResult({data:{user:null,session:null},error:n});if(!a||!a.session||!a.user){const o=new hr;return this._returnResult({data:{user:null,session:null},error:o})}return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),this._returnResult({data:Object.assign({user:a.user,session:a.session},a.weak_password?{weakPassword:a.weak_password}:null),error:n})}catch(r){if(q(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(e){var r,a,n,o;return await this._handleProviderSignIn(e.provider,{redirectTo:(r=e.options)===null||r===void 0?void 0:r.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(n=e.options)===null||n===void 0?void 0:n.queryParams,skipBrowserRedirect:(o=e.options)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:r}=e;switch(r){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(e){var r,a,n,o,i,s,l,d,u,p,f;let h,b;if("message"in e)h=e.message,b=e.signature;else{const{chain:y,wallet:g,statement:v,options:w}=e;let P;if(Te())if(typeof g=="object")P=g;else{const T=window;if("ethereum"in T&&typeof T.ethereum=="object"&&"request"in T.ethereum&&typeof T.ethereum.request=="function")P=T.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof g!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");P=g}const x=new URL((r=w==null?void 0:w.url)!==null&&r!==void 0?r:window.location.href),C=await P.request({method:"eth_requestAccounts"}).then(T=>T).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!C||C.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const S=$f(C[0]);let A=(a=w==null?void 0:w.signInWithEthereum)===null||a===void 0?void 0:a.chainId;if(!A){const T=await P.request({method:"eth_chainId"});A=J2(T)}const I={domain:x.host,address:S,statement:v,uri:x.href,version:"1",chainId:A,nonce:(n=w==null?void 0:w.signInWithEthereum)===null||n===void 0?void 0:n.nonce,issuedAt:(i=(o=w==null?void 0:w.signInWithEthereum)===null||o===void 0?void 0:o.issuedAt)!==null&&i!==void 0?i:new Date,expirationTime:(s=w==null?void 0:w.signInWithEthereum)===null||s===void 0?void 0:s.expirationTime,notBefore:(l=w==null?void 0:w.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(d=w==null?void 0:w.signInWithEthereum)===null||d===void 0?void 0:d.requestId,resources:(u=w==null?void 0:w.signInWithEthereum)===null||u===void 0?void 0:u.resources};h=Y2(I),b=await P.request({method:"personal_sign",params:[Q2(h),S]})}try{const{data:y,error:g}=await K(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:h,signature:b},!((p=e.options)===null||p===void 0)&&p.captchaToken?{gotrue_meta_security:{captcha_token:(f=e.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:at});if(g)throw g;if(!y||!y.session||!y.user){const v=new hr;return this._returnResult({data:{user:null,session:null},error:v})}return y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),this._returnResult({data:Object.assign({},y),error:g})}catch(y){if(q(y))return this._returnResult({data:{user:null,session:null},error:y});throw y}}async signInWithSolana(e){var r,a,n,o,i,s,l,d,u,p,f,h;let b,y;if("message"in e)b=e.message,y=e.signature;else{const{chain:g,wallet:v,statement:w,options:P}=e;let x;if(Te())if(typeof v=="object")x=v;else{const S=window;if("solana"in S&&typeof S.solana=="object"&&("signIn"in S.solana&&typeof S.solana.signIn=="function"||"signMessage"in S.solana&&typeof S.solana.signMessage=="function"))x=S.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(P!=null&&P.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");x=v}const C=new URL((r=P==null?void 0:P.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in x&&x.signIn){const S=await x.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},P==null?void 0:P.signInWithSolana),{version:"1",domain:C.host,uri:C.href}),w?{statement:w}:null));let A;if(Array.isArray(S)&&S[0]&&typeof S[0]=="object")A=S[0];else if(S&&typeof S=="object"&&"signedMessage"in S&&"signature"in S)A=S;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in A&&"signature"in A&&(typeof A.signedMessage=="string"||A.signedMessage instanceof Uint8Array)&&A.signature instanceof Uint8Array)b=typeof A.signedMessage=="string"?A.signedMessage:new TextDecoder().decode(A.signedMessage),y=A.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in x)||typeof x.signMessage!="function"||!("publicKey"in x)||typeof x!="object"||!x.publicKey||!("toBase58"in x.publicKey)||typeof x.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");b=[`${C.host} wants you to sign in with your Solana account:`,x.publicKey.toBase58(),...w?["",w,""]:[""],"Version: 1",`URI: ${C.href}`,`Issued At: ${(n=(a=P==null?void 0:P.signInWithSolana)===null||a===void 0?void 0:a.issuedAt)!==null&&n!==void 0?n:new Date().toISOString()}`,...!((o=P==null?void 0:P.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${P.signInWithSolana.notBefore}`]:[],...!((i=P==null?void 0:P.signInWithSolana)===null||i===void 0)&&i.expirationTime?[`Expiration Time: ${P.signInWithSolana.expirationTime}`]:[],...!((s=P==null?void 0:P.signInWithSolana)===null||s===void 0)&&s.chainId?[`Chain ID: ${P.signInWithSolana.chainId}`]:[],...!((l=P==null?void 0:P.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${P.signInWithSolana.nonce}`]:[],...!((d=P==null?void 0:P.signInWithSolana)===null||d===void 0)&&d.requestId?[`Request ID: ${P.signInWithSolana.requestId}`]:[],...!((p=(u=P==null?void 0:P.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||p===void 0)&&p.length?["Resources",...P.signInWithSolana.resources.map(A=>`- ${A}`)]:[]].join(`
160`);const S=await x.signMessage(new TextEncoder().encode(b),"utf8");if(!S||!(S instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");y=S}}try{const{data:g,error:v}=await K(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:b,signature:br(y)},!((f=e.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(h=e.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:at});if(v)throw v;if(!g||!g.session||!g.user){const w=new hr;return this._returnResult({data:{user:null,session:null},error:w})}return g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),this._returnResult({data:Object.assign({},g),error:v})}catch(g){if(q(g))return this._returnResult({data:{user:null,session:null},error:g});throw g}}async _exchangeCodeForSession(e){const r=await dr(this.storage,`${this.storageKey}-code-verifier`),[a,n]=(r??"").split("/");try{const{data:o,error:i}=await K(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:a},xform:at});if(await Ee(this.storage,`${this.storageKey}-code-verifier`),i)throw i;if(!o||!o.session||!o.user){const s=new hr;return this._returnResult({data:{user:null,session:null,redirectType:null},error:s})}return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),this._returnResult({data:Object.assign(Object.assign({},o),{redirectType:n??null}),error:i})}catch(o){if(await Ee(this.storage,`${this.storageKey}-code-verifier`),q(o))return this._returnResult({data:{user:null,session:null,redirectType:null},error:o});throw o}}async signInWithIdToken(e){try{const{options:r,provider:a,token:n,access_token:o,nonce:i}=e,s=await K(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:a,id_token:n,access_token:o,nonce:i,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:at}),{data:l,error:d}=s;
160if(d)return this._returnResult({data:{user:null,session:null},error:d});if(!l||!l.session||!l.user){const u=new hr;return this._returnResult({data:{user:null,session:null},error:u})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:d})}catch(r){if(q(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(e){var r,a,n,o,i;try{if("email"in e){const{email:s,options:l}=e;let d=null,u=null;this.flowType==="pkce"&&([d,u]=await Br(this.storage,this.storageKey));const{error:p}=await K(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:s,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(a=l==null?void 0:l.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:d,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:p})}if("phone"in e){const{phone:s,options:l}=e,{data:d,error:u}=await K(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:s,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(o=l==null?void 0:l.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(i=l==null?void 0:l.channel)!==null&&i!==void 0?i:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:d==null?void 0:d.message_id},error:u})}throw new Ia("You must provide either an email or phone number.")}catch(s){if(await Ee(this.storage,`${this.storageKey}-code-verifier`),q(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async verifyOtp(e){var r,a;try{let n,o;"options"in e&&(n=(r=e.options)===null||r===void 0?void 0:r.redirectTo,o=(a=e.options)===null||a===void 0?void 0:a.captchaToken);const{data:i,error:s}=await K(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:o}}),redirectTo:n,xform:at});if(s)throw s;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,d=i.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:d,session:l},error:null})}catch(n){if(q(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithSSO(e){var r,a,n,o,i;try{let s=null,l=null;this.flowType==="pkce"&&([s,l]=await Br(this.storage,this.storageKey));const d=await K(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(a=(r=e.options)===null||r===void 0?void 0:r.redirectTo)!==null&&a!==void 0?a:void 0}),!((n=e==null?void 0:e.options)===null||n===void 0)&&n.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:s,code_challenge_method:l}),headers:this.headers,xform:V2});return!((o=d.data)===null||o===void 0)&&o.url&&Te()&&!(!((i=e.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(d.data.url),this._returnResult(d)}catch(s){if(await Ee(this.storage,`${this.storageKey}-code-verifier`),q(s))return this._returnResult({data:null,error:s});throw s}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:r},error:a}=e;if(a)throw a;if(!r)throw new Be;const{error:n}=await K(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:n})})}catch(e){if(q(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const r=`${this.url}/resend`;if("email"in e){const{email:a,type:n,options:o}=e,{error:i}=await K(this.fetch,"POST",r,{headers:this.headers,body:{email:a,type:n,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:i})}else if("phone"in e){const{phone:a,type:n,options:o}=e,{data:i,error:s}=await K(this.fetch,"POST",r,{headers:this.headers,body:{phone:a,type:n,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:s})}throw new Ia("You must provide either an email or phone number and a type")}catch(r){if(q(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(e,r){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const a=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),n=(async()=>(await a,await r()))();return this.pendingInLock.push((async()=>{try{await n}catch{}})()),n}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const a=r();for(this.pendingInLock.push((async()=>{try{await a}catch{}})()),await a;this.pendingInLock.length;){const n=[...this.pendingInLock];await Promise.all(n),this.pendingInLock.splice(0,n.length)}return await a}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await e(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const r=await dr(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?e=r:(this._debug("#getSession()","session from storage is not val
160id"),await this._removeSession())),!e)return{data:{session:null},error:null};const a=e.expires_at?e.expires_at*1e3-Date.now()<oi:!1;if(this._debug("#__loadSession()",`session has${a?"":" not"} expired`,"expires_at",e.expires_at),!a){if(this.userStorage){const i=await dr(this.userStorage,this.storageKey+"-user");i!=null&&i.user?e.user=i.user:e.user=si()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const i={value:this.suppressGetSessionWarning};e.user=B2(e.user,i),i.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:n,error:o}=await this._callRefreshToken(e.refresh_token);return o?this._returnResult({data:{session:null},error:o}):this._returnResult({data:{session:n},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;const r=await this._acquireLock(-1,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(e){try{return e?await K(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Vt}):await this._useSession(async r=>{var a,n,o;const{data:i,error:s}=r;if(s)throw s;return!(!((a=i.session)===null||a===void 0)&&a.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Be}:await K(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(n=i.session)===null||n===void 0?void 0:n.access_token)!==null&&o!==void 0?o:void 0,xform:Vt})})}catch(r){if(q(r))return gf(r)&&(await this._removeSession(),await Ee(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(e,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,r))}async _updateUser(e,r={}){try{return await this._useSession(async a=>{const{data:n,error:o}=a;if(o)throw o;if(!n.session)throw new Be;const i=n.session;let s=null,l=null;this.flowType==="pkce"&&e.email!=null&&([s,l]=await Br(this.storage,this.storageKey));const{data:d,error:u}=await K(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:s,code_challenge_method:l}),jwt:i.access_token,xform:Vt});if(u)throw u;return i.user=d.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),this._returnResult({data:{user:i.user},error:null})})}catch(a){if(await Ee(this.storage,`${this.storageKey}-code-verifier`),q(a))return this._returnResult({data:{user:null},error:a});throw a}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Be;const r=Date.now()/1e3;let a=r,n=!0,o=null;const{payload:i}=ii(e.access_token);if(i.exp&&(a=i.exp,n=a<=r),n){const{data:s,error:l}=await this._callRefreshToken(e.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!s)return{data:{user:null,session:null},error:null};o=s}else{const{data:s,error:l}=await this._getUser(e.access_token);if(l)throw l;o={access_token:e.access_token,refresh_token:e.refresh_token,user:s.user,token_type:"bearer",expires_in:a-r,expires_at:a},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return this._returnResult({data:{user:o.user,session:o},error:null})}catch(r){if(q(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async r=>{var a;if(!e){const{data:i,error:s}=r;if(s)throw s;e=(a=i.session)!==null&&a!==void 0?a:void 0}if(!(e!=null&&e.refresh_token))throw new Be;const{data:n,error:o}=await this._callRefreshToken(e.refresh_token);return o?this._returnResult({data:{user:null,session:null},error:o}):n?this._returnResult({data:{user:n.user,session:n},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(q(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(e,r){try{if(!Te())throw new Na("No browser detected.");
160if(e.error||e.error_description||e.error_code)throw new Na(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new ds("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Na("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new ds("No code detected.");const{data:w,error:P}=await this._exchangeCodeForSession(e.code);if(P)throw P;const x=new URL(window.location.href);return x.searchParams.delete("code"),window.history.replaceState(window.history.state,"",x.toString()),{data:{session:w.session,redirectType:null},error:null}}const{provider_token:a,provider_refresh_token:n,access_token:o,refresh_token:i,expires_in:s,expires_at:l,token_type:d}=e;if(!o||!s||!i||!d)throw new Na("No session defined in URL");const u=Math.round(Date.now()/1e3),p=parseInt(s);let f=u+p;l&&(f=parseInt(l));const h=f-u;h*1e3<=Gr&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${p}s`);const b=f-p;u-b>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",b,f,u):u-b<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",b,f,u);const{data:y,error:g}=await this._getUser(o);if(g)throw g;const v={provider_token:a,provider_refresh_token:n,access_token:o,expires_in:p,expires_at:f,refresh_token:i,token_type:d,user:y.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:e.type},error:null})}catch(a){if(q(a))return this._returnResult({data:{session:null,redirectType:null},error:a});throw a}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const r=await dr(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&r)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async r=>{var a;const{data:n,error:o}=r;if(o)return this._returnResult({error:o});const i=(a=n.session)===null||a===void 0?void 0:a.access_token;if(i){const{error:s}=await this.admin.signOut(i,e);if(s&&!(mf(s)&&(s.status===404||s.status===401||s.status===403)))return this._returnResult({error:s})}return e!=="others"&&(await this._removeSession(),await Ee(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const r=C2(),a={id:r,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,a),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:a}}}async _emitInitialSession(e){return await this._useSession(async r=>{var a,n;try{const{data:{session:o},error:i}=r;if(i)throw i;await((a=this.stateChangeEmitters.get(e))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",e,"session",o)}catch(o){await((n=this.stateChangeEmitters.get(e))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",o),console.error(o)}})}async resetPasswordForEmail(e,r={}){let a=null,n=null;this.flowType==="pkce"&&([a,n]=await Br(this.storage,this.storageKey,!0));try{return await K(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:a,code_challenge_method:n,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(o){if(await Ee(this.storage,`${this.storageKey}-code-verifier`),q(o))return this._returnResult({data:null,error:o});throw o}}async getUserIdentities(){var e;try{const{data:r,error:a}=await this.getUser();if(a)throw a;return this._returnResult({data:{identities:(e=r.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(r){if(q(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var r;try{const{data:a,error:n}=await this._useSession(async o=>{var i,s,l,d,u;const{data:p,error:f}=o;if(f)throw f;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(i=e.options)===null||i===void 0?void 0:i.redirectTo,scopes:(s=e.options)===null||s===void 0?void 0:s.scopes,queryParams:(l=e.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await K(this.fetch,"GET",h,{headers:this.headers,jwt:(u=(d=p.session)===null||d===void 0?void 0:d.access_token)!==null&&u!==void 0?u:void 0})});if(n)throw n;return Te()&&!(!((r=e.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(a==null?void 0:a.url),this._returnResult({data:{provider:e.provider,url:a==null?void 0:a.url},error:null})}catch(a){if(q(a))return this._returnResult({data:{provider:e.provider,url:null},error:a});throw a}}async linkIdentityIdToken(e){return await this._useSession(async r=>{var a;try{const{error:n,data:{session:o}}=r;if(n)throw n;const{options:i,provider:s,token:l,access_token:d,nonce:u}=e,p=await K(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(a=o==null?void 0:o.access_token)!==null&&a!==void 0?a:void 0,body:{provider:s,id_token:l,access_token:d,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},xform:at}),{data:f,error:h}=p;return h?this._returnResult({data:{user:null,session:null},error:h}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new hr}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:h}))}catch(n){if(await Ee(this.storage,`${this.storageKey}-code-verifier`),q(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}})}async unlinkIdentity(e){try{return await this._useSession(async r=>{var a,n;const{data:o,error:i}=r;if(i)throw i;
160return await K(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(n=(a=o.session)===null||a===void 0?void 0:a.access_token)!==null&&n!==void 0?n:void 0})})}catch(r){if(q(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(e){const r=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(r,"begin");try{const a=Date.now();return await k2(async n=>(n>0&&await T2(200*Math.pow(2,n-1)),this._debug(r,"refreshing attempt",n),await K(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:at})),(n,o)=>{const i=200*Math.pow(2,n);return o&&Wn(o)&&Date.now()+i-a<Gr})}catch(a){if(this._debug(r,"error",a),q(a))return this._returnResult({data:{session:null,user:null},error:a});throw a}finally{this._debug(r,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,r){const a=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",r,"url",a),Te()&&!r.skipBrowserRedirect&&window.location.assign(a),{data:{provider:e,url:a},error:null}}async _recoverAndRefresh(){var e,r;const a="#_recoverAndRefresh()";this._debug(a,"begin");try{const n=await dr(this.storage,this.storageKey);if(n&&this.userStorage){let i=await dr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:n.user},await Xr(this.userStorage,this.storageKey+"-user",i)),n.user=(e=i==null?void 0:i.user)!==null&&e!==void 0?e:si()}else if(n&&!n.user&&!n.user){const i=await dr(this.storage,this.storageKey+"-user");i&&(i!=null&&i.user)?(n.user=i.user,await Ee(this.storage,this.storageKey+"-user"),await Xr(this.storage,this.storageKey,n)):n.user=si()}if(this._debug(a,"session from storage",n),!this._isValidSession(n)){this._debug(a,"session is not valid"),n!==null&&await this._removeSession();return}const o=((r=n.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<oi;if(this._debug(a,`session has${o?"":" not"} expired with margin of ${oi}s`),o){if(this.autoRefreshToken&&n.refresh_token){const{error:i}=await this._callRefreshToken(n.refresh_token);i&&(console.error(i),Wn(i)||(this._debug(a,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else if(n.user&&n.user.__isUserNotAvailableProxy===!0)try{const{data:i,error:s}=await this._getUser(n.access_token);!s&&(i!=null&&i.user)?(n.user=i.user,await this._saveSession(n),await this._notifyAllSubscribers("SIGNED_IN",n)):this._debug(a,"could not get user data, skipping SIGNED_IN notification")}catch(i){console.error("Error getting user data:",i),this._debug(a,"error getting user data, skipping SIGNED_IN notification",i)}else await this._notifyAllSubscribers("SIGNED_IN",n)}catch(n){this._debug(a,"error",n),console.error(n);return}finally{this._debug(a,"end")}}async _callRefreshToken(e){var r,a;if(!e)throw new Be;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const n=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{this.refreshingDeferred=new jo;const{data:o,error:i}=await this._refreshAccessToken(e);if(i)throw i;if(!o.session)throw new Be;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const s={data:o.session,error:null};return this.refreshingDeferred.resolve(s),s}catch(o){if(this._debug(n,"error",o),q(o)){const i={data:null,error:o};return Wn(o)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(i),i}throw(a=this.refreshingDeferred)===null||a===void 0||a.reject(o),o}finally{this.refreshingDeferred=null,this._debug(n,"end")}}async _notifyAllSubscribers(e,r,a=!0){const n=`#_notifyAllSubscribers(${e})`;this._debug(n,"begin",r,`broadcast = ${a}`);try{this.broadcastChannel&&a&&this.broadcastChannel.postMessage({event:e,session:r});const o=[],i=Array.from(this.stateChangeEmitters.values()).map(async s=>{try{await s.callback(e,r)}catch(l){o.push(l)}});if(await Promise.all(i),o.length>0){for(let s=0;s<o.length;s+=1)console.error(o[s]);throw o[0]}}finally{this._debug(n,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await Ee(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},e),a=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!a&&r.user&&await Xr(this.userStorage,this.storageKey+"-user",{user:r.user});const n=Object.assign({},r);delete n.user;const o=Rc(n);await Xr(this.storage,this.storageKey,o)}else{const n=Rc(r);await Xr(this.storage,this.storageKey,n)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Ee(this.storage,this.storageKey),await Ee(this.storage,this.storageKey+"-code-verifier"),await Ee(this.storage,this.storageKey+"-user"),this.userStorage&&await Ee(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&Te()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}
160catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),Gr);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async r=>{const{data:{session:a}}=r;if(!a||!a.refresh_token||!a.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const n=Math.floor((a.expires_at*1e3-e)/Gr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${n} ticks, a tick lasts ${Gr}ms, refresh threshold is ${ls} ticks`),n<=ls&&await this._callRefreshToken(a.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof dl)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Te()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const r=`#_onVisibilityChanged(${e})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,r,a){const n=[`provider=${encodeURIComponent(r)}`];if(a!=null&&a.redirectTo&&n.push(`redirect_to=${encodeURIComponent(a.redirectTo)}`),a!=null&&a.scopes&&n.push(`scopes=${encodeURIComponent(a.scopes)}`),this.flowType==="pkce"){const[o,i]=await Br(this.storage,this.storageKey),s=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(i)}`});n.push(s.toString())}if(a!=null&&a.queryParams){const o=new URLSearchParams(a.queryParams);n.push(o.toString())}return a!=null&&a.skipBrowserRedirect&&n.push(`skip_http_redirect=${a.skipBrowserRedirect}`),`${e}?${n.join("&")}`}async _unenroll(e){try{return await this._useSession(async r=>{var a;const{data:n,error:o}=r;return o?this._returnResult({data:null,error:o}):await K(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(a=n==null?void 0:n.session)===null||a===void 0?void 0:a.access_token})})}catch(r){if(q(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(e){try{return await this._useSession(async r=>{var a,n;const{data:o,error:i}=r;if(i)return this._returnResult({data:null,error:i});const s=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:l,error:d}=await K(this.fetch,"POST",`${this.url}/factors`,{body:s,headers:this.headers,jwt:(a=o==null?void 0:o.session)===null||a===void 0?void 0:a.access_token});return d?this._returnResult({data:null,error:d}):(e.factorType==="totp"&&l.type==="totp"&&(!((n=l==null?void 0:l.totp)===null||n===void 0)&&n.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(r){if(q(r))return this._returnResult({data:null,error:r});throw r}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var a;const{data:n,error:o}=r;if(o)return this._returnResult({data:null,error:o});const i=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?ow(e.webauthn.credential_response):iw(e.webauthn.credential_response)})}:{code:e.code}),{data:s,error:l}=await K(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:i,headers:this.headers,jwt:(a=n==null?void 0:n.session)===null||a===void 0?void 0:a.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+s.expires_in},s)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",s),this._returnResult({data:s,error:l}))})}catch(r){if(q(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var a;const{data:n,error:o}=r;if(o)return this._returnResult({data:null,error:o});const i=await K(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(a=n==null?void 0:n.session)===null||a===void 0?void 0:a.access_token});if(i.error)return i;const{data:s}=i;
160if(s.type!=="webauthn")return{data:s,error:null};switch(s.webauthn.type){case"create":return{data:Object.assign(Object.assign({},s),{webauthn:Object.assign(Object.assign({},s.webauthn),{credential_options:Object.assign(Object.assign({},s.webauthn.credential_options),{publicKey:aw(s.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},s),{webauthn:Object.assign(Object.assign({},s.webauthn),{credential_options:Object.assign(Object.assign({},s.webauthn.credential_options),{publicKey:nw(s.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(q(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(e){const{data:r,error:a}=await this._challenge({factorId:e.factorId});return a?this._returnResult({data:null,error:a}):await this._verify({factorId:e.factorId,challengeId:r.id,code:e.code})}async _listFactors(){var e;const{data:{user:r},error:a}=await this.getUser();if(a)return{data:null,error:a};const n={all:[],phone:[],totp:[],webauthn:[]};for(const o of(e=r==null?void 0:r.factors)!==null&&e!==void 0?e:[])n.all.push(o),o.status==="verified"&&n[o.factor_type].push(o);return{data:n,error:null}}async _getAuthenticatorAssuranceLevel(){var e,r;const{data:{session:a},error:n}
160=await this.getSession();if(n)return this._returnResult({data:null,error:n});if(!a)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=ii(a.access_token);let i=null;o.aal&&(i=o.aal);let s=i;((r=(e=a.user.factors)===null||e===void 0?void 0:e.filter(u=>u.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(s="aal2");const d=o.amr||[];return{data:{currentLevel:i,nextLevel:s,currentAuthenticationMethods:d},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async r=>{const{data:{session:a},error:n}=r;return n?this._returnResult({data:null,error:n}):a?await K(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:a.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new Be})})}catch(r){if(q(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(e,r){try{return await this._useSession(async a=>{const{data:{session:n},error:o}=a;if(o)return this._returnResult({data:null,error:o});if(!n)return this._returnResult({data:null,error:new Be});const i=await K(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:n.access_token,body:{action:"approve"},xform:s=>({data:s,error:null})});return i.data&&i.data.redirect_url&&Te()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(a){if(q(a))return this._returnResult({data:null,error:a});throw a}}async _denyAuthorization(e,r){try{return await this._useSession(async a=>{const{data:{session:n},error:o}=a;if(o)return this._returnResult({data:null,error:o});if(!n)return this._returnResult({data:null,error:new Be});const i=await K(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:n.access_token,body:{action:"deny"},xform:s=>({data:s,error:null})});return i.data&&i.data.redirect_url&&Te()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(a){if(q(a))return this._returnResult({data:null,error:a});throw a}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:r},error:a}=e;return a?this._returnResult({data:null,error:a}):r?await K(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:n=>({data:n,error:null})}):this._returnResult({data:null,error:new Be})})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async r=>{const{data:{session:a},error:n}=r;return n?this._returnResult({data:null,error:n}):a?(await K(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:a.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Be})})}catch(r){if(q(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(e,r={keys:[]}){let a=r.keys.find(s=>s.kid===e);if(a)return a;const n=Date.now();if(a=this.jwks.keys.find(s=>s.kid===e),a&&this.jwks_cached_at+b2>n)return a;const{data:o,error:i}=await K(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;return!o.keys||o.keys.length===0||(this.jwks=o,this.jwks_cached_at=n,a=o.keys.find(s=>s.kid===e),!a)?null:a}async getClaims(e,r={}){try{let a=e;if(!a){const{data:h,error:b}
160=await this.getSession();if(b||!h.session)return this._returnResult({data:null,error:b});a=h.session.access_token}const{header:n,payload:o,signature:i,raw:{header:s,payload:l}}=ii(a);r!=null&&r.allowExpired||D2(o.exp);const d=!n.alg||n.alg.startsWith("HS")||!n.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(n.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!d){const{error:h}=await this.getUser(a);if(h)throw h;return{data:{claims:o,header:n,signature:i},error:null}}const u=F2(n.alg),p=await crypto.subtle.importKey("jwk",d,u,!0,["verify"]);if(!await crypto.subtle.verify(u,p,i,_2(`${s}.${l}`)))throw new so("Invalid JWT signature");return{data:{claims:o,header:n,signature:i},error:null}}catch(a){if(q(a))return this._returnResult({data:null,error:a});throw a}}};ul.nextInstanceID={};const mw=cl,gw=ul,yw=Object.freeze(Object.defineProperty({__proto__:null,AuthAdminApi:mw,AuthApiError:ff,AuthClient:gw,AuthError:ba,AuthImplicitGrantRedirectError:Na,AuthInvalidCredentialsError:Ia,AuthInvalidJwtError:so,AuthInvalidToken
160ResponseError:hr,AuthPKCEGrantCodeExchangeError:ds,AuthRetryableFetchError:io,AuthSessionMissingError:Be,AuthUnknownError:Wt,AuthWeakPasswordError:us,CustomAuthError:Lt,GoTrueAdminApi:cl,GoTrueClient:ul,NavigatorLockAcquireTimeoutError:Pf,SIGN_OUT_SCOPES:Vn,isAuthApiError:mf,isAuthError:q,isAuthImplicitGrantRedirectError:yf,isAuthRetryableFetchError:Wn,isAuthSessionMissingError:gf,isAuthWeakPasswordError:v2,lockInternals:fr,navigatorLock:xf,processLock:G2},Symbol.toStringTag,{value:"Module"})),Sf=dn(yw);Object.defineProperty(Ro,"__esModule",{value:!0});Ro.SupabaseAuthClient=void 0;const bw=Sf;class vw extends bw.AuthClient{constructor(e){super(e)}}Ro.SupabaseAuthClient=vw;Object.defineProperty(ro,"__esModule",{value:!0});const ww=Tp,Pw=Ne,xw=Gp,$w=c2,On=cf,_w=df,qc=nr,Sw=Ro;let Cw=class{constructor(e,r,a){var n,o,i;this.supabaseUrl=e,this.supabaseKey=r;const s=(0,qc.validateSupabaseUrl)(e);if(!r)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",s),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",s),this.storageUrl=new URL("storage/v1",s),this.functionsUrl=new URL("functions/v1",s);const l=`sb-${s.hostname.split(".")[0]}-auth-token`,d={db:On.DEFAULT_DB_OPTIONS,realtime:On.DEFAULT_REALTIME_OPTIONS,auth:Object.assign(Object.assign({},On.DEFAULT_AUTH_OPTIONS),{storageKey:l}),global:On.DEFAULT_GLOBAL_OPTIONS},u=(0,qc.applySettingDefaults)(a??{},d);this.storageKey=(n=u.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(o=u.global.headers)!==null&&o!==void 0?o:{},u.accessToken?(this.accessToken=u.accessToken,this.auth=new Proxy({},{get:(p,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((i=u.auth)!==null&&i!==void 0?i:{},this.headers,u.global.fetch),this.fetch=(0,_w.fetchWithAuth)(r,this._getAccessToken.bind(this),u.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},u.realtime)),this.accessToken&&this.accessToken().then(p=>this.realtime.setAuth(p)).catch(p=>console.warn("Failed to set initial Realtime auth token:",p)),this.rest=new Pw.PostgrestClient(new URL("rest/v1",s).href,{headers:this.headers,schema:u.db.schema,fetch:this.fetch}),this.storage=new $w.StorageClient(this.storageUrl.href,this.headers,this.fetch,a==null?void 0:a.storage),u.accessToken||this._listenForAuthEvents()}get functions(){return new ww.FunctionsClient(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,r={},a={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,r,a)}channel(e,r={config:{}}){return this.realtime.channel(e,r)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e,r;if(this.accessToken)return await this.accessToken();const{data:a}=await this.auth.getSession();return(r=(e=a.session)===null||e===void 0?void 0:e.access_token)!==null&&r!==void 0?r:this.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:r,detectSessionInUrl:a,storage:n,userStorage:o,storageKey:i,flowType:s,lock:l,debug:d,throwOnError:u},p,f){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Sw.SupabaseAuthClient({url:this.authUrl.href,headers:Object.assign(Object.assign({},h),p),storageKey:i,autoRefreshToken:e,persistSession:r,detectSessionInUrl:a,storage:n,userStorage:o,flowType:s,lock:l,debug:d,throwOnError:u,fetch:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(b=>b.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new xw.RealtimeClient(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((r,a)=>{this._handleTokenChanged(r,"CLIENT",a==null?void 0:a.access_token)})}_handleTokenChanged(e,r,a){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==a?(this.changedAccessToken=a,this.realtime.setAuth(a)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};ro.default=Cw;(function(t){var e=Fr&&Fr.__createBinding||(Object.create?function(u,p,f,h){h===void 0&&(h=f);var b=Object.getOwnPropertyDescriptor(p,f);(!b||("get"in b?!p.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return p[f]}}),Object.defineProperty(u,h,b)}:function(u,p,f,h){h===void 0&&(h=f),u[h]=p[f]}),r=Fr&&Fr.__exportStar||function(u,p){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(p,f)&&e(p,u,f)}
160,a=Fr&&Fr.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=t.SupabaseClient=t.FunctionRegion=t.FunctionsError=t.FunctionsRelayError=t.FunctionsFetchError=t.FunctionsHttpError=t.PostgrestError=void 0;const n=a(ro);r(Sf,t);var o=Ne;Object.defineProperty(t,"PostgrestError",{enumerable:!0,get:function(){return o.PostgrestError}});var i=Tp;Object.defineProperty(t,"FunctionsHttpError",{enumerable:!0,get:function(){return i.FunctionsHttpError}}),Object.defineProperty(t,"FunctionsFetchError",{enumerable:!0,get:function(){return i.FunctionsFetchError}}),Object.defineProperty(t,"FunctionsRelayError",{enumerable:!0,get:function(){return i.FunctionsRelayError}}),Object.defineProperty(t,"FunctionsError",{enumerable:!0,get:function(){return i.FunctionsError}}),Object.defineProperty(t,"FunctionRegion",{enumerable:!0,get:function(){return i.FunctionRegion}}),r(Gp,t);var s=ro;Object.defineProperty(t,"SupabaseClient",{enumerable:!0,get:function(){return a(s).default}});const l=(u,p,f)=>new n.default(u,p,f);t.createClient=l;function d(){if(typeof window<"u"||typeof process>"u")return!1;const u=process.version;if(u==null)return!1;const p=u.match(/^v(\d+)\./);return p?parseInt(p[1],10)<=18:!1}d()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217")})(tl);const Cf=js(tl),Aw=Jg({__proto__:null,default:Cf},[tl]),{PostgrestError:ZE,FunctionsHttpError:e9,FunctionsFetchError:t9,FunctionsRelayError:r9,FunctionsError:a9,FunctionRegion:n9,SupabaseClient:o9,createClient:Ew,GoTrueAdminApi:i9,GoTrueClient:s9,AuthAdminApi:l9,AuthClient:c9,navigatorLock:d9,NavigatorLockAcquireTimeoutError:u9,lockInternals:h9,processLock:p9,SIGN_OUT_SCOPES:f9,AuthError:m9,AuthApiError:g9,AuthUnknownError:y9,CustomAuthError:b9,AuthSessionMissingError:v9,AuthInvalidToken
160ResponseError:w9,AuthInvalidCredentialsError:P9,AuthImplicitGrantRedirectError:x9,AuthPKCEGrantCodeExchangeError:$9,AuthRetryableFetchError:_9,AuthWeakPasswordError:S9,AuthInvalidJwtError:C9,isAuthError:A9,isAuthApiError:E9,isAuthSessionMissingError:T9,isAuthImplicitGrantRedirectError:k9,isAuthRetryableFetchError:O9,isAuthWeakPasswordError:I9,RealtimePresence:N9,RealtimeChannel:R9,RealtimeClient:j9,REALTIME_LISTEN_TYPES:L9,REALTIME_POSTGRES_CHANGES_LISTEN_EVENT:D9,REALTIME_PRESENCE_LISTEN_EVENTS:F9,REALTIME_SUBSCRIBE_STATES:M9,REALTIME_CHANNEL_STATES:B9}=Cf||Aw;function Tw(){var g,v;if(typeof window>"u")return;const t=location.hostname,r=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(w=>t===w||t.endsWith("."+w)),a="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",n=r?((g=t.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+a+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:g[1])??((v=t.match(new RegExp("^("+a+")(?=[.-])","i")))==null?void 0:v[1]):void 0,o=window.parent&&window.parent!==window;if(!n||!o)return localStorage;const i=t.endsWith(".lovableproject-dev.com")||t.endsWith(".gpt-eng.com"),s=i?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),d=l&&s.test(l)?[l]:i?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],u="lovable-preview-auth:result",p=2e3,f=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),h=(w,P,x)=>new Promise(C=>{const S=f();let A=!1,I;const T=D=>{A||(A=!0,clearTimeout(I),window.removeEventListener("message",O),C(D))},O=D=>{if(d.indexOf(D.origin)<0)return;const L=D.data;L&&L.type===u&&L.requestId===S&&T(L)};window.addEventListener("message",O);const E={type:w,requestId:S,projectId:n,key:P};x!==void 0&&(E.value=x);for(const D of d)window.parent.postMessage(E,D);I=setTimeout(()=>T(null),p)});let b=!0;const y=250;return{getItem:async w=>{let P=await h("lovable-preview-auth:get",w);return!P&&b&&(await new Promise(x=>setTimeout(x,y)),P=await h("lovable-preview-auth:get",w)),b=!1,P&&P.ok&&typeof P.value=="string"?P.value===""?(localStorage.removeItem(w),null):P.value:localStorage.getItem(w)},setItem:(w,P)=>(localStorage.setItem(w,P),h("lovable-preview-auth:set",w,P).then(()=>{})),removeItem:w=>(localStorage.removeItem(w),h("lovable-preview-auth:remove",w).then(()=>{}))}}const kw="https://ollzbnkfxfsusjtjssec.supabase.co",Ow="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9sbHpibmtmeGZzdXNqdGpzc2VjIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODU3MjYyMzIsImV4cCI6MjEwMTMwMjIzMn0.cJHpOt-gIlAPhNhgVwq3UlCNDsfCSRcsdkzacYVSjsQ",j=Ew(kw,Ow,{auth:{storage:Tw(),persistSession:!0,autoRefreshToken:!0}}),U9=Object.freeze(Object.defineProperty({__proto__:null,supabase:j},Symbol.toStringTag,{value:"Module"})),Wc={async getByUserId(t){const{data:e,error:r}=await j.from("profiles").select("*").eq("user_id",t).maybeSingle();return r&&console.error("Error fetching profile:",r),e},async update(t,e){const{data:r,error:a}=await j.from("profiles").update(e).eq("user_id",t).select().single();return a&&console.error("Error updating profile:",a),{data:r,error:a}},async getAll(){const{data:t,error:e}=await j.from("profiles").select("*").order("name");return e&&console.error("Error fetching profiles:",e),t||[]}};async function Vc(t,e="painel"){const r=String(t||"").trim();if(!r)return!1;const{error:a}=await j.functions.invoke("enviar-reset-senha",{body:{email:r,destino:e}});return a?(console.error("[reset-senha] pedido nao chegou ao servidor:",a.message),!1):!0}const Hc={async getCurrentUser(){const{data:{user:t}}=await j.auth.getUser();if(!t)return null;const{data:e,error:r}=await j.from("admin_users").select("*").eq("user_id",t.id).single();return r||!e?null:e},async getByUserId(t){const{data:e,error:r}=await j.from("admin_users").select("*").eq("user_id",t).single();return r||!e?null:e},async create(t,e,r,a){const{data:n,error:o}=await j.from("admin_users").insert({user_id:t,nome:e,area:r,role:"reader",status:"pending",birthdate:a||null}).select().single();return o?(console.error("Error creating admin user:",o),null):n},async createByAdmin(t,e,r,a,n,o){const{data:{user:i}}=await j.auth.getUser();if(!i)return null;const{data:s,error:l}=await j.from("admin_users").insert({user_id:t,nome:e,area:r,role:a,status:n,birthdate:o||null,aprovado_em:n==="approved"?new Date().toISOString():null,aprovado_por:n==="approved"?i.id:null}).select().single();return l?(console.error("Error creating admin user by admin:",l),null):s},async getAll(){const{data:t,error:e}=await j.from("admin_users").select("*").order("solicitado_em",{ascending:!1});return e?(console.error("Error fetching admin users:",e),[]):t||[]},async getPending(){const{data:t,error:e}
160=await j.from("admin_users").select("*").eq("status","pending").order("solicitado_em",{ascending:!0});return e?(console.error("Error fetching pending users:",e),[]):t||[]},async countPending(){const{count:t,error:e}=await j.from("admin_users").select("*",{count:"exact",head:!0}).eq("status","pending");return e?0:t||0},async approve(t,e,r){const{error:a}=await j.from("admin_users").update({status:"approved",role:e,aprovado_em:new Date().toISOString(),aprovado_por:r}).eq("user_id",t);return a?(console.error("Error approving user:",a),!1):!0},async reject(t){const{error:e}=await j.from("admin_users").update({status:"rejected",aprovado_em:new Date().toISOString()}).eq("user_id",t);return e?(console.error("Error rejecting user:",e),!1):!0},async updateRole(t,e){const{error:r}=await j.from("admin_users").update({role:e}).eq("user_id",t);return r?(console.error("Error updating role:",r),!1):!0},async updateAvatar(t,e){const{error:r}=await j.from("admin_users").update({avatar_url:e}).eq("user_id",t);return r?(console.error("Error updating avatar:",r),!1):!0},async uploadAvatar(t,e){const r=e.name.split(".").pop(),n=`avatars/${`${t}-${Date.now()}.${r}`}`,{error:o}=await j.storage.from("admin-avatars").upload(n,e,{upsert:!0});if(o)return console.error("Error uploading avatar:",o),null;const{data:i}=j.storage.from("admin-avatars").getPublicUrl(n);return i.publicUrl},async sendPasswordReset(t){return Vc(t,"painel")},async inviteUser(t){const e=crypto.randomUUID(),{data:r,error:a}=await j.auth.signUp({email:t,password:e,options:{emailRedirectTo:`${window.location.origin}/admin/login`}});return a?{userId:null,error:a.message}:r.user?(await Vc(t,"painel"),{userId:r.user.id,error:null}):{userId:null,error:"Erro ao criar usuário"}},async bootstrapFirstAdmin(){const{data:t,error:e}=await j.rpc("bootstrap_first_admin_user");return e?(console.error("Error bootstrapping first admin:",e),!1):t===!0},async isApprovedAdmin(t){const{data:e,error:r}=await j.rpc("is_approved_admin",{_user_id:t});return r?!1:e===!0},async getAdminRole(t){const{data:e,error:r}=await j.rpc("get_admin_role",{_user_id:t});return r||!e?null:e},async getAdminStatus(t){const{data:e,error:r}=await j.rpc("get_admin_status",{_user_id:t});return r||!e?null:e}},Af=m.createContext(void 0);function Iw({children:t}){const[e,r]=m.useState(null),[a,n]=m.useState(null),[o,i]=m.useState(null),[s,l]=m.useState(null),[d,u]=m.useState(!0),p=async T=>{const[O,E]=await Promise.all([Wc.getByUserId(T),Hc.getByUserId(T)]);i(O),l(E)};m.useEffect(()=>{const{data:{subscription:T}}=j.auth.onAuthStateChange((O,E)=>{n(E),r((E==null?void 0:E.user)??null),E!=null&&E.user?setTimeout(()=>{p(E.user.id)},0):(i(null),l(null))});return j.auth.getSession().then(({data:{session:O}})=>{n(O),r((O==null?void 0:O.user)??null),O!=null&&O.user?p(O.user.id).finally(()=>u(!1)):u(!1)}),()=>T.unsubscribe()},[]);const f=async(T,O)=>{const{error:E}=await j.auth.signInWithPassword({email:T,password:O});return{error:E}},h=async(T,O,E)=>{const{error:D}=await j.auth.signUp({email:T,password:O,options:{data:{name:E},emailRedirectTo:`${window.location.origin}/admin`}});return{error:D}},b=async()=>{await j.auth.signOut()},y=async()=>{if(e){const T=await Wc.getByUserId(e.id);i(T)}},g=async()=>{if(e){const T=await Hc.getByUserId(e.id);l(T)}},v=(s==null?void 0:s.role)??null,w=(s==null?void 0:s.status)??null,P=w==="approved",x=P&&v==="admin",C=P&&(v==="editor"||v==="admin"),S=P,A=x,I=C;return c.jsx(Af.Provider,{value:{user:e,session:a,profile:o,adminUser:s,loading:d,adminRole:v,adminStatus:w,isApprovedAdmin:x,isApprovedEditor:C,isApprovedReader:S,isApproved:P,isAdmin:A,isEditor:I,signIn:f,signUp:h,signOut:b,refreshProfile:y,refreshAdminUser:g},children:t})}function Ef(){const t=m.useContext(Af);if(t===void 0)throw new Error("useAuth must be used within an AuthProvider");return t}const q9={can_edit_blog:"Blog (Site)",can_edit_intranet:"Intranet",can_edit_pops:"POPs",can_edit_youtube:"Vídeos YouTube",can_edit_instagram:"Instagram",can_edit_gallery:"Galeria ASAP",can_edit_calendar:"Calendário",can_edit_materials:"Materiais Técnicos",can_edit_guides:"Guias de Serviços",can_edit_site_videos:"Vídeos do Site",can_edit_site_gallery:"Galeria Data Center",can_edit_site_logos:"Logos de Clientes"},Nw={async getByUserId(t){const{data:e,error:r}=await j.from("admin_permissions").select("*").eq("user_id",t).maybeSingle();return r?(console.error("Error fetching permissions:",r),null):e},async getMyPermissions(){const{data:{user:t}}=await j.auth.getUser();return t?this.getByUserId(t.id):null},async upsert(t,e){const{error:r}=await j.from("admin_permissions").upsert({user_id:t,...e,updated_at:new Date().toISOString()},{onConflict:"user_id"});return r?(console.error("Error upserting permissions:",r),!1):!0},async delete(t){const{error:e}=await j.from("admin_permissions").delete().eq("user_id",t);return e?(console.error("Error deleting permissions:",e),!1):!0},async canEditModule(t){var a;const{data:e,error:r}=await j.rpc("can_edit_module",{_user_id:(a=(await j.auth.getUser()).data.user)==null?void 0:a.id,_module:t});return r?(console.error("Error checking module permission:",r),!1):e??!1}},Tf=m.createContext(void 0);function Rw({children:t}){const{user:e,adminUser:r,isApprovedAdmin:a,isApprovedEditor:n,isApproved:o}=Ef(),[i,s]=m.useState(null),[l,d]=m.useState(!0),u=async()=>
160{if(!e||!o){s(null),d(!1);return}if(a){s({user_id:e.id,can_edit_blog:!0,can_edit_intranet:!0,can_edit_pops:!0,can_edit_youtube:!0,can_edit_instagram:!0,can_edit_gallery:!0,can_edit_calendar:!0,can_edit_materials:!0,can_edit_guides:!0,can_edit_site_videos:!0,can_edit_site_gallery:!0,can_edit_site_logos:!0}),d(!1);return}if(n){const I=await Nw.getByUserId(e.id);s(I||{user_id:e.id,can_edit_blog:!1,can_edit_intranet:!1,can_edit_pops:!1,can_edit_youtube:!1,can_edit_instagram:!1,can_edit_gallery:!1,can_edit_calendar:!1,can_edit_materials:!1,can_edit_guides:!1,can_edit_site_videos:!1,can_edit_site_gallery:!1,can_edit_site_logos:!1}),d(!1);return}s({user_id:e.id,can_edit_blog:!1,can_edit_intranet:!1,can_edit_pops:!1,can_edit_youtube:!1,can_edit_instagram:!1,can_edit_gallery:!1,can_edit_calendar:!1,can_edit_materials:!1,can_edit_guides:!1,can_edit_site_videos:!1,can_edit_site_gallery:!1,can_edit_site_logos:!1}),d(!1)};m.useEffect(()=>{u()},[e,r,a,n,o]);const p=a||((i==null?void 0:i.can_edit_blog)??!1),f=a||((i==null?void 0:i.can_edit_intranet)??!1),h=a||((i==null?void 0:i.can_edit_pops)??!1),b=a||((i==null?void 0:i.can_edit_youtube)??!1),y=a||((i==null?void 0:i.can_edit_instagram)??!1),g=a||((i==null?void 0:i.can_edit_gallery)??!1),v=a||((i==null?void 0:i.can_edit_calendar)??!1),w=a||((i==null?void 0:i.can_edit_materials)??!1),P=a||((i==null?void 0:i.can_edit_guides)??!1),x=a||((i==null?void 0:i.can_edit_site_videos)??!1),C=a||((i==null?void 0:i.can_edit_site_gallery)??!1),S=a||((i==null?void 0:i.can_edit_site_logos)??!1),A=p||f||h||b||y||g||v||w||P;return c.jsx(Tf.Provider,{value:{permissions:i,loading:l,canEditBlog:p,canEditIntranet:f,canEditPops:h,canEditYoutube:b,canEditInstagram:y,canEditGallery:g,canEditCalendar:v,canEditMaterials:w,canEditGuides:P,canEditSiteVideos:x,canEditSiteGallery:C,canEditSiteLogos:S,canEditAny:A,refresh:u},children:t})}function W9(){const t=m.useContext(Tf);if(t===void 0)throw new Error("useAdminPermissions must be used within an AdminPermissionsProvider");return t}const jw={seo:{title:"Internet Corporativa e Data Center em São Paulo",description:"Conectividade dedicada, data center colocation e proteção anti-DDoS para empresas e provedores. Infraestrutura própria em SP com SLA de até 99,97%.",canonical:"https://www.asaptelecom.com.br"},hero:{scenes:[{video:"/videos/hero-1.mp4",text:"Conectividade e data center para operações que exigem estabilidade",boldRanges:[[0,26],[32,68]]},{video:"/videos/hero-2.mp4",text:"Banda garantida e suporte técnico direto para ambientes críticos",boldRanges:[[0,15],[42,64]]},{video:"/videos/hero-3.mp4",text:"Rede própria em São Paulo integrada a data centers estratégicos",boldRanges:[[0,24]]},{video:"/videos/hero-4.mp4",text:"Soluções para ISPs e empresas com alta disponibilidade",boldRanges:[[14,30],[35,54]]},{video:"/videos/hero-5.mp4",text:"Engenharia de rede desde 2015 focada em alta disponibilidade",boldRanges:[[0,29]]}]},audience:{title:"Conheça nossas soluções de",highlight:"conectividade",ctaLabel:"Saiba mais",cards:[{title:"Para Provedores",description:"Soluções para ISPs que buscam escala, controle de rotas e crescimento sustentável.",benefits:["Trânsito IP com engenharia de rotas e baixa latência","Acesso ao PIX IX.br e opções de interconexão","Transporte L2L para interligar POPs com previsibilidade"],href:"/para-provedores",gradient:"from-asap-royal to-asap-deep"},{title:"Para Empresas",description:"Internet dedicada para operações críticas com alta disponibilidade e atendimento direto.",benefits:["Link dedicado com banda garantida","SLA de até 99,97% de disponibilidade","Suporte técnico especializado 24/7"],href:"/para-empresas",gradient:"from-asap-cyan to-asap-royal"}]},solutions:{title:"Soluções completas de",highlight:"conectividade",lead:"Soluções integradas para reduzir risco operacional e garantir alta disponibilidade.",items:[{title:"Trânsito IP",description:"Conectividade IP com engenharia de rotas e capacidade escalável para ambientes críticos.",productKey:"transito_ip",iconKey:"transito_ip"},{title:"Link Dedicado",description:"Internet dedicada com banda garantida e compromisso formal de disponibilidade.",productKey:"link_dedicado",iconKey:"link_dedicado"},{title:"Data Center e Colocation",description:"Hospede seus equipamentos no Data Center ASAP SP1 em São Paulo com alta disponibilidade e infraestrutura própria.",productKey:"data_center_colocation",iconKey:"colocation"},{title:"Anti DDoS",description:"Mitigação e monitoramento contínuos para reduzir risco de indisponibilidade.",productKey:"anti_ddos",iconKey:"anti_ddos"},{title:"CIX e Peering",description:"Interconexão e troca de tráfego para otimizar rotas e melhorar a experiência de rede.",productKey:"cix",iconKey:"cix"}
160,{title:"Transporte L2L",description:"Circuitos Layer 2 para interligar pontos com baixa latência e alta disponibilidade.",productKey:"transporte_l2l",iconKey:"transporte"}]},infrastructure:{title:"Infraestrutura",highlight:"robusta",lead:"Infraestrutura própria em São Paulo com operação preparada para ambientes críticos.",items:[{value:"Mais de 600 km",label:"De rede própria",description:"Backbone de fibra óptica próprio na Grande São Paulo e em cidades do interior de SP."},{value:"PIX IX.br SP",label:"Ponto de troca de tráfego",description:"Data center homologado como PIX do IX.br São Paulo, permitindo interconexão direta e rotas mais eficientes com menor latência."},{value:"Data Center ASAP SP1",label:"São Paulo",description:"Infraestrutura de alta disponibilidade com redundância de energia, climatização e conectividade."}]},about:{title:"Especialistas em ",highlight:"Conectividade",description:"A ASAP Telecom nasceu com a missão de fornecer conectividade de alta performance para empresas e provedores que não podem ficar offline. Com backbone próprio, infraestrutura robusta e presença nos principais pontos de troca de tráfego do Brasil, garantimos a estabilidade e velocidade que seu negócio precisa para crescer.",timelineItems:[{year:"2015",title:"Fundação",description:"Início das operações com foco em conectividade corporativa"},{year:"2017",title:"Expansão",description:"Ampliação da rede de fibra óptica na Grande São Paulo"},{year:"2019",title:"PIX IX.br",description:"Conexão ao maior ponto de troca de tráfego da América Latina"},{year:"2023",title:"Data Center SP1",description:"Inauguração do Data Center ASAP SP1 em São Paulo"}]},instagram:{handle:"@asaptelecom",title:"Da ASAP para o dia a dia",subtitle:"Acompanhe nossos últimos posts no Instagram",followLabel:"Seguir no Instagram",postAlt:"Post do Instagram",viewPostLabel:"Ver post"},trustedLogos:{title:"Empresas e provedores que confiam na ASAP"},cta:{titlePrefix:"Vamos falar sobre a sua",titleHighlight:"conectividade",titleSuffix:"",lead:"Converse com um especialista e entenda qual a melhor solução para sua empresa ou provedor.",primaryCtaLabel:"Falar com um especialista",primaryCtaWhatsappUrl:"https://wa.me/5511976800303?text=Olá!%20Gostaria%20de%20falar%20com%20um%20especialista%20ASAP.",secondaryCtaLabel:"Enviar mensagem",secondaryCtaHref:"/contato"},leadForm:{title:"Vamos falar sobre a sua conectividade",subtitle:"Conte sua necessidade e nossa equipe retorna com a recomendação ideal.",ctaSubmitLabel:"Solicitar contato",ctaWhatsAppLabel:"Falar no WhatsApp",modalTitle:"Recebemos sua solicitação",modalMessage:"Nosso time retorna em horário comercial com a recomendação ideal.",modalCloseLabel:"Ok, obrigado",modalWhatsAppLabel:"Falar no WhatsApp",privacyNote:"Seus dados estão protegidos conforme nossa",privacyLinkLabel:"Política de Privacidade",privacyHref:"/politica-de-privacidade-e-termos",whatsappMessage:"Olá! Gostaria de falar com um especialista ASAP.",fields:{nameLabel:"Nome",namePlaceholder:"Seu nome completo",emailLabel:"E-mail",emailPlaceholder:"[email protected]",companyLabel:"Empresa",companyPlaceholder:"Nome da empresa ou provedor",phoneLabel:"WhatsApp",phonePlaceholder:"(11) 99999-9999",messageLabel:"O que você precisa?",messagePlaceholder:"Descreva brevemente sua necessidade...",consentLabel:"Aceito ser contatado pela ASAP Telecom."}}},Lw={seo:{title:"Quem Somos",description:"Conheça a ASAP Telecom: especialista em conectividade corporativa e data center em São Paulo."},hero:{h1Prefix:"A",h1Highlight:"ASAP Telecom",subtitle:"Infraestrutura própria de telecom e Data Center em São Paulo.",lead:"Somos uma empresa brasileira de infraestrutura, com operação própria de rede e Data Center. Atendemos ISPs e empresas com foco em disponibilidade, previsibilidade e atendimento direto com o time técnico responsável pela operação."},timeline:{title:"Nossa",highlight:"trajetória",items:[{year:"2015",title:"Fundação e integração ao IX.br",description:"Constituição da ASAP Telecom como operadora de telecomunicações com foco em banda IP e transporte (L2L) para ISPs. No mesmo período, inicia participação no IX.br em São Paulo."}
160,{year:"2016",title:"Estruturação do Core em Fortaleza",description:"Implementação do core de rede em Fortaleza, ampliando capacidade técnica e preparando a base para expansão nacional."},{year:"2017",title:"Entrada no Mercado Corporativo",description:"Início da atuação no mercado B2B empresarial, oferecendo soluções de link dedicado e infraestrutura para empresas."},{year:"2019",title:"Integração Internacional USA ↔ BR",description:"Início da atuação como integradora de circuitos internacionais, operando como ponto único de contato para operações globais com terminação no Brasil."},{year:"2023",title:"Data Center & PIX IX.br",description:"",subCards:[{label:"2023 • SP1",title:"Data Center ASAP SP1",description:"Lançamento do Data Center ASAP SP1 em São Paulo, ampliando o portfólio para colocation e infraestrutura crítica."},{label:"2023 • PIX IX.br",title:"PIX do IX.br em São Paulo",description:"Operação como PIX do IX.br em São Paulo, consolidando posição no ecossistema de interconexão."}]}]},network:{title:"Infraestrutura própria e operação para",highlight:"ambientes críticos",description:"A ASAP opera telecom e Data Center com equipe própria e processos definidos. Quando há integração com parceiros fora da nossa rede própria, a coordenação técnica e o ponto de contato permanecem com a ASAP.",cards:[{title:"Rede",subtitle:"Backbone e operação de rede com engenharia própria.",iconKey:"network",items:["Rede própria na Grande São Paulo.","Integração com parceiros quando aplicável, com coordenação da ASAP."]},{title:"Data Center",subtitle:"Data Center ASAP SP1 em São Paulo, operado pela ASAP.",iconKey:"server",items:["Operação integrada à rede e ao time técnico.","Ambiente para colocation e serviços associados."]},{title:"Interconexão",subtitle:"PIX ASAP no IX.br como ponto de troca de tráfego.",iconKey:"globe",items:["O IX.br é o maior conjunto de pontos de troca de tráfego do mundo.","Interconexão para troca de tráfego, acordos de peering e integração com grandes redes."]}]},whoWeAre:{title:"Quem",highlight:"Somos",paragraphs:["A ASAP Telecom é uma empresa brasileira de infraestrutura fundada em 2015 como operadora de telecomunicações. Ao longo de sua trajetória, expandiu sua atuação para integrar rede e Data Center sob a mesma operação.","Com presença estratégica em São Paulo e Fortaleza, desenvolveu infraestrutura própria para atender provedores de internet e empresas que dependem de conectividade e ambientes estáveis para suas operações.","Nossa atuação é orientada por responsabilidade técnica, clareza nos processos e proximidade no relacionamento com clientes e parceiros."]},coFoundersSection:{title:"Os",highlight:"cofundadores",suffix:"da ASAP",linkedInLabel:"Ver LinkedIn"},coFounders:[{name:"Arlei Nalesso",role:"Cofundador e CTO",description:"Arlei Nalesso atua há mais de 20 anos em telecom e infraestrutura de redes. Lidera a arquitetura técnica da ASAP (backbone, roteamento, interconexão e data center) com foco em disponibilidade, segurança e previsibilidade para operações críticas.",badges:["Cofundador e CTO","Especialista em Redes e IX.br","Arquitetura de Data Centers"],linkedIn:"#linkedin-arlei"},{name:"Fausto Morales",role:"Cofundador e CEO",description:"Fausto Morales lidera a estratég
160ia e o crescimento da ASAP, conectando engenharia, operação e atendimento para reduzir risco e aumentar previsibilidade para ISPs, empresas e parceiros de tecnologia.",badges:["Cofundador e CEO","Gestão e Estratégia","Relacionamento com ISPs e Empresas"],linkedIn:"#linkedin-fausto"}],videosSection:{title:"Conteúdos da",highlight:"ASAP",subtitle:"Vídeos sobre nossa operação, pessoas e bastidores, com histórias e conteúdos sobre rede e data center.",channelButtonLabel:"Se inscreva no nosso canal",emptyState:"Nenhum vídeo cadastrado ainda.",videoPlayerTitle:"Player de vídeo",closeLabel:"Fechar"},finalCta:{title:"Próximos",highlight:"passos",description:"Conheça nossas frentes de atuação e aprofunde o que faz mais sentido para o seu contexto.",links:[{label:"Conheça nossa Rede",href:"/rede-asap"},{label:"Conheça o Data Center",href:"/data-center-colocation"},{label:"Serviços para Empresas",href:"/para-empresas"},{label:"Serviços para Provedores",href:"/para-provedores"}]}},Dw={seo:{title:"Soluções de Conectividade para Empresas",description:"Link dedicado, data center colocation, transporte L2L e anti-DDoS para empresas. Suporte 24/7 e SLA de até 99,97%.",canonical:"https://www.asaptelecom.com.br/para-empresas"},hero:{badge:"Para Empresas",titlePrefix:"Conectividade dedicada para",titleHighlight:"empresas que precisam de alta disponibilidade",titleFull:"Conectividade dedicada para empresas que precisam de alta disponibilidade",titleHighlightRange:[28,74],subtitle:"Link dedicado, Data Center próprio e suporte técnico direto. Infraestrutura para operações críticas, com foco em estabilidade.",primaryCtaLabel:"Solicitar Proposta",primaryCtaUrl:"https://wa.me/5511976800303?text=Quero%20solicitar%20uma%20proposta%20para%20minha%20empresa",secondaryCtaLabel:"Ver Soluções",secondaryCtaHref:"#solucoes",viabilityCtaLabel:"Consultar viabilidade",solutionsLinkLabel:"Ver soluções"},targetAudience:{title:"Para quem é a",highlight:"ASAP",description:"Empresas que precisam de conectividade estável para operar, escalar e proteger sistemas e filiais.",segmentsRow1:[{iconKey:"Landmark",name:"Fintechs"},{iconKey:"ShoppingCart",name:"Ecommerce"},{iconKey:"Store",name:"Marketplaces"},{iconKey:"Factory",name:"Indústrias"},{iconKey:"Pill",name:"Farmácias e Drogarias"},{iconKey:"Heart",name:"Hospitais"},{iconKey:"Stethoscope",name:"Clínicas e Consultórios"},{iconKey:"FlaskConical",name:"Laboratórios"},{iconKey:"Megaphone",name:"Agências de Marketing"},{iconKey:"Tv",name:"Agências de Publicidade"}],segmentsRow2:[{iconKey:"Laptop",name:"Empresas de Tecnologia"},{iconKey:"HardDrive",name:"Data Centers"},{iconKey:"Store",name:"Lojas Físicas e Redes Varejistas"},{iconKey:"Building",name:"Shopping Centers"},{iconKey:"Package",name:"Logística e Transportes"},{iconKey:"GraduationCap",name:"Educação (escolas, faculdades, edtechs)"},{iconKey:"Briefcase",name:"Escritórios corporativos"},{iconKey:"Rocket",name:"Startups"},{iconKey:"Copy",name:"Franquias"}]},whyAsap:{title:"Por que sua empresa precisa da",highlight:"ASAP",description:"Benefícios que fazem a diferença na operação do seu negócio.",items:[{iconKey:"Clock",title:"Menos indisponibilidade",description:"SLA de até 99,97% garante que sua operação permaneça online quando mais importa.",highlight:"SLA até 99,97%"},{iconKey:"DollarSign",title:"Previsibilidade de custos",description:"Contrato claro, escopo bem definido e SLA contratual. Menos surpresa na operação.",highlight:"Sem surpresas"},{iconKey:"Lock",title:"Segurança em múltiplas camadas",description:"Proteção contra ataques e controle de segurança sob demanda, conforme o cenário da empresa.",highlight:"Proteção total"},{iconKey:"Headphones",title:"Suporte técnico direto",description:"Suporte técnico direto, com atendimento especializado 24/7.",highlight:"NOC 24/7"}]},comparison:{title:"Por que empresas escolhem a",highlight:"ASAP",description:"Comparação direta entre a infraestrutura da ASAP e soluções comuns do mercado.",headers:{criteria:"Critério",asap:"ASAP Telecom",others:"Soluções comuns"},rows:[{criterio:"Infraestrutura própria",asap:"Backbone próprio e operação nacional",outros:"Dependência de terceiros"},{criterio:"Latência",asap:"Latência ultra baixa garantida",outros:"Variável"},{criterio:"SLA",asap:"Contratual até 99,97%",outros:"Genérico ou inexistente"},{criterio:"Anti DDoS",asap:"Integrado ao serviço",outros:"Opcional ou cobrado à parte"},{criterio:"Suporte técnico",asap:"Suporte técnico direto 24/7",outros:"Limitado ou terceirizado"}]},solutions:{title:"Soluções",highlight:"corporativas",description:"Produtos desenvolvidos para empresas que dependem de conectividade 
160crítica.",benefitsLabel:"Benefícios",viabilityCtaLabel:"Consultar viabilidade online",items:[{iconKey:"link_dedicado",title:"Link Dedicado",description:"Conexão exclusiva com banda garantida e simétrica. Ideal para empresas que precisam de estabilidade e alta performance.",benefits:["Banda 100% garantida e simétrica","SLA de disponibilidade de até 99,97%","IP fixo incluso","Monitoramento proativo 24/7"],guideSlug:"link-dedicado",productKey:"link_dedicado_corporativo"},{iconKey:"lan_to_lan",title:"Transporte L2L",description:"Interconexão privada entre filiais e escritórios. Comunicação segura e de baixa latência entre seus pontos.",benefits:["Conexão privada ponto a ponto","Latência ultra baixa garantida","Criptografia de ponta a ponta","Escalabilidade sob demanda"],guideSlug:"transporte-de-dados-l2l",productKey:"lan_to_lan"},{iconKey:"data_center",title:"Data Center & Colocation",description:"Hospede seus servidores no Data Center ASAP SP1. Infraestrutura projetada e operada nos padrões Tier III, com redundância e alta disponibilidade.",benefits:["Redundância de energia e climatização","Segurança física 24/7","Conectividade de alta performance","Acesso técnico facilitado"],guideSlug:"data-center-colocation",productKey:"data_center_colocation"},{iconKey:"anti_ddos",title:"Anti DDoS",description:"Proteção avançada contra ataques de negação de serviço. Mantenha sua operação online mesmo sob ataque.",benefits:["Mitigação automática em segundos","Proteção contra ataques L3/L4 e L7","Dashboard em tempo real","Zero impacto no tráfego legítimo"],guideSlug:"anti-ddos",productKey:"anti_ddos_empresarial"}]},testimonials:{title:"Histórias de sucesso com",highlight:"empresas parceiras",description:"Empresas de diversos segmentos confiam na infraestrutura da ASAP para manter suas operações sempre conectadas.",items:[{quote:"Com a ASAP conseguimos eliminar praticamente 100% do downtime. A estabilidade do link dedicado transformou nossa operação de ecommerce.",name:"Ricardo Santos",role:"Diretor de TI",company:"TechMart Indústria",initials:"RS"},{quote:"A migração para o Data Center da ASAP foi a melhor decisão que tomamos. Segurança, redundância e suporte de verdade.",name:"Marina Costa",role:"CTO",company:"FinPay Solutions",initials:"MC"},{quote:"O Anti DDoS da ASAP nos salvou de um ataque massivo na Black Friday. Zero impacto para nossos clientes.",name:"André Nascimento",role:"Gerente de Infraestrutura",company:"ShopMax Ecommerce",initials:"AN"},{quote:"A qualidade técnica e o atendimento próximo fazem toda a diferença. A ASAP entende as necessidades de uma empresa que não pode parar.",name:"Patrícia Lima",role:"CEO",company:"LogiTech Express",initials:"PL"}]},cta:{title:"Vamos entender seu",highlight:"cenário",description:"Nossa equipe está pronta para entender seu cenário e propor uma solução aderente ao seu cenário.",primaryCtaLabel:"Solicitar Proposta",primaryCtaUrl:"https://wa.me/5511976800303?text=Quero%20solicitar%20uma%20proposta%20para%20minha%20empresa",secondaryCtaLabel:"Enviar Mensagem",secondaryCtaHref:"/contato"},leadForm:{title:"Vamos entender seu cenário",subtitle:"Conte sua necessidade e nossa equipe retorna com a recomendação ideal para sua operação.",ctaSubmitLabel:"Solicitar proposta",ctaWhatsAppLabel:"Falar no WhatsApp",modalTitle:"Recebemos sua solicitação",modalMessage:"Nosso time retorna em horário comercial com a recomendação ideal.",modalCloseLabel:"Ok, obrigado",modalWhatsAppLabel:"Falar no WhatsApp",privacyNote:"Seus dados estão protegidos conforme nossa",privacyLinkLabel:"Política de Privacidade",privacyHref:"/politica-de-privacidade-e-termos",whatsappMessage:"Quero solicitar uma proposta para minha empresa",fields:{nameLabel:"Nome",namePlaceholder:"Seu nome completo",emailLabel:"E-mail",emailPlaceholder:"[email protected]",companyLabel:"Empresa",companyPlaceholder:"Nome da empresa",phoneLabel:"WhatsApp",phonePlaceholder:"(11) 99999-9999",messageLabel:"O que você precisa?",messagePlaceholder:"Descreva brevemente sua necessidade...",consentLabel:"Aceito ser contatado pela ASAP Telecom."}}},Fw={seo:{title:"Soluções para Provedores de Internet",description:"Trânsito IP, transporte L2L, CIX e infraestrutura de rede para provedores. Backbone próprio e conexão direta aos principais pontos de troca.",canonical:"https://www.asaptelecom.com.br/para-provedores"},hero:{badge:"Para Provedores de Internet",titlePrefix:"Conectividade profissional para",titleHighlight:"Provedores de Internet",titleFull:"Conectividade profissional para Provedores de Internet",titleHighlightRange:[31,53],subtitle:"Backbone próprio, PIX do IX.br, Anti DDoS e suporte especializado. Tudo que seu provedor precisa para crescer com segurança e qualidade.",primaryCtaLabel:"Falar com um consultor ASAP",primaryCtaUrl:"https://wa.me/5511976800303?text=Quero%20falar%20com%20a%20engenharia%20da%20ASAP",secondaryCtaLabel:"Conhecer Soluções",secondaryCtaHref:"#solucoes",viabilityCtaLabel:"Consultar viabilidade",solutionsLinkLabel:"Ver soluções"},whyAsap:{title:"Por que ISPs escolhem a",highlight:"ASAP",description:"Comparação direta entre a infraestrutura da ASAP e soluções comuns do mercado.",items:[{iconKey:"Network",title:"Backbone Próprio",description:"Rede própria com mais de 600 km de fibra óptica, garantindo controle total sobre a qualidade da sua conexão."},{iconKey:"Globe",title:"PIX ASAP no IX.br",description:"Acesso direto aos principais pontos de troca de tráfego do Brasil, reduzindo custos e melhorando rotas."},{iconKey:"Zap",title:"Baixa Latência",description:"Infraestrutura otimizada para entregar a menor latência possível aos seus clientes finais."},{iconKey:"Shield",title:"Anti DDoS integrado",description:"Proteção robusta contra ataques volumétricos, mantendo seu provedor sempre online."},{iconKey:"Clock",title:"NOC 24x7",description:"Centro de operações monitorando sua rede 24 horas por dia, 7 dias por semana."},{iconKey:"Headphones",title:"Suporte especializado",description:"Equipe técnica especializada para atuar rápido em incidentes e mudanças, com atendimento 24x7."}]},comparison:{title:"Por que ISPs escolhem a",highlight:"ASAP",description:"Comparação direta entre a infraestrutura da ASAP e soluções comuns do mercado.",headers:{criteria:"Critério",asap:"ASAP Telecom",others:"Soluções comuns"},rows:[{criterio:"Infraestrutura própria",asap:"Backbone próprio e operação nacional",outros:"Dependência de terceiros"},{criterio:"Conexão direta ao IX.br",asap:"PIX próprio com rotas otimizadas",outros:"Acesso indireto ou limitado"},{criterio:"Latência",asap:"Baixa latência real e previsível",outros:"Latência variável"},{criterio:"SLA",asap:"SLA de até 99,97% (contratual)",outros:"SLA genérico ou inexistente"},{criterio:"Anti DDoS",asap:"Proteção integrada em tempo real",outros:"Opcional ou terceirizada"},{criterio:"Suporte técnico",asap:"NOC 24x7 com suporte especializado",outros:"Suporte limitado ou terceirizado"},{criterio:"Foco em ISPs",asap:"Soluções pensadas para provedores",outros:"Soluções genéricas"}],postTableCtaText:"Quer confirmar presença na sua região? Consultar viabilidade."},solutions:{title:"Soluções completas para seu",highlight:"provedor",description:"Produtos e serviços desenvolvidos especificamente para as necessidades de ISPs.",benefitsLabel:"Benefícios",items:[{iconKey:"transito_ip",title:"Trânsito IP",description:"Conectividade IP de alta performance com as melhores rotas nacionais e internacionais. Ideal para provedores que precisam de estabilidade e velocidade.",benefits:["Rotas otimizadas para os principais destinos","SLA de disponibilidade de até 99,97%","Flexibilidade de banda sob demanda","BGP full table ou default route"],guideSlug:"transito-ip",productKey:"transito_ip_provedor"},{iconKey:"cix_asap",title:"CIX: acesso ao IX.br por porta compartilhada",description:"CIX é o modelo do IX.br em que uma ligação física é compartilhada entre vários participantes. A ASAP faz esse papel em São Paulo: você liga a sua rede a um POP da ASAP ou ao SP1 e participa do IX.br com o seu próprio ASN, sem porta exclusiva nem fibra até o IX.br.",benefits:["Portas de 1 Gbps a 100 Gbps","Sessão multilateral ou bilateral, conforme a política do IX.br","Contrato com o IX.br é seu; a ligação física é com a ASAP","Segundo caminho para quem já está no IX.br"],guideSlug:"cix",productKey:"cix_asap"},{iconKey:"anti_ddos",title:"Anti DDoS",description:"Proteção avançada contra ataques de negação de serviço. Sistema de mitigação automático que identifica e bloqueia ameaças em tempo real.",benefits:["Mitigação automática em segundos","Proteção contra ataques L3/L4 e L7","Dashboard de monitoramento em tempo real","Sem impacto no tráfego legítimo"],guideSlug:"anti-ddos",productKey:"anti_ddos_provedor"}
160,{iconKey:"transporte_l2l",title:"Transporte L2L",description:"Links dedicados ponto a ponto para interconexão de POPs e expansão da sua rede. Transporte transparente de camada 2 com baixíssima latência.",benefits:["Latência ultra baixa entre pontos","Expansão geográfica facilitada","Escalabilidade de 1G a 100G","Monitoramento proativo 24/7"],guideSlug:"transporte-de-dados-l2l",productKey:"transporte_l2l"},{iconKey:"colocation",title:"Colocation",description:"Hospede seus equipamentos no Data Center ASAP SP1. Infraestrutura projetada e operada nos padrões Tier III, com redundância e alta disponibilidade.",benefits:["Acesso direto ao PIX e backbone ASAP","Energia redundante com UPS e gerador","Climatização de precisão","Segurança física 24/7"],guideSlug:"data-center-colocation",productKey:"colocation_isp"}]},testimonials:{title:"Histórias de sucesso com",highlight:"ISPs parceiros",description:"Mais de 200 provedores confiam na infraestrutura da ASAP para entregar conectividade de alta performance aos seus clientes.",items:[{quote:"A ASAP mudou completamente a qualidade da nossa operação. O acesso direto ao IX.br reduziu latência e melhorou a experiência dos nossos clientes finais.",name:"Carlos Menezes",role:"Diretor Técnico",company:"NetSul ISP",initials:"CM"},{quote:"Com a infraestrutura da ASAP conseguimos crescer com segurança. O suporte NOC 24/7 realmente funciona e faz diferença no dia a dia.",name:"Fernanda Rocha",role:"COO",company:"ConectaPro Telecom",initials:"FR"},{quote:"A combinação de backbone próprio, Anti-DDoS e engenharia especializada nos deu tranquilidade para escalar nossa base.",name:"Rafael Oliveira",role:"Gerente de Redes",company:"AlphaNet ISP",initials:"RO"},{quote:"Além da qualidade técnica, o atendimento da ASAP é próximo e consultivo. Não somos apenas mais um cliente.",name:"Juliana Pires",role:"CEO",company:"Veloz Internet",initials:"JP"}]},cta:{title:"Quero falar com a",highlight:"ASAP",description:"Nossa equipe está pronta para entender seu cenário e propor a melhor solução para seu provedor.",primaryCtaLabel:"Falar com Consultor ASAP",primaryCtaUrl:"https://wa.me/5511976800303?text=Quero%20falar%20com%20a%20ASAP",secondaryCtaLabel:"Enviar Mensagem",secondaryCtaHref:"/contato"},leadForm:{title:"Quero falar com a ASAP",subtitle:"Conte sua necessidade e nossa equipe retorna com a solução ideal para seu provedor.",ctaSubmitLabel:"Solicitar contato",ctaWhatsAppLabel:"Falar no WhatsApp",modalTitle:"Recebemos sua solicitação",modalMessage:"Nosso time retorna em horário comercial com a recomendação ideal.",modalCloseLabel:"Ok, obrigado",modalWhatsAppLabel:"Falar no WhatsApp",privacyNote:"Seus dados estão protegidos conforme nossa",privacyLinkLabel:"Política de Privacidade",privacyHref:"/politica-de-privacidade-e-termos",whatsappMessage:"Quero falar com a engenharia da ASAP",fields:{nameLabel:"Nome",namePlaceholder:"Seu nome completo",emailLabel:"E-mail",emailPlaceholder:"[email protected]",companyLabel:"Provedor / Empresa",companyPlaceholder:"Nome do provedor",phoneLabel:"WhatsApp",phonePlaceholder:"(11) 99999-9999",messageLabel:"O que você precisa?",messagePlaceholder:"Descreva brevemente sua necessidade...",consentLabel:"Aceito ser contatado pela ASAP Telecom."}}},Mw={dcWhy:{eyebrow:"Vantagens",title:"Por que hospedar no",titleHighlight:"DC ASAP SP1",cards:[{iconKey:"Zap",title:"Energia Redundante (N+N)",description:"Nobreaks e geradores diesel garantem operação contínua."},{iconKey:"Thermometer",title:"Climatização de Precisão",description:"Controle de temperatura e umidade com redundância total."},{iconKey:"Shield",title:"Segurança Física e Lógica",description:"Biometria, CFTV 24h, segurança armada e monitoramento."},{iconKey:"Globe",title:"Conectividade Premium",description:"PIX IX.br + backbone próprio ASAP com multi-operadora."}]},visualProofSection:{title:"Provas visuais",description:"Controle, rastreabilidade e upgrade rápido para você operar com menos risco e mais previsibilidade.",items:[{kind:"image",title:"Painel do rack em tempo real",caption:"Ac
160ompanhe temperatura, umidade e status das portas no painel do rack. Visibilidade contínua para operar com previsibilidade.",alt:"Painel de monitoramento do rack",assetKey:"painelRack",demoUrl:"https://painel.asaptelecom.com.br/",demoLabel:"Experimentar ao vivo",externalCtaLabel:"Abrir demonstração",externalCtaUrl:"https://painel.asaptelecom.com.br/"},{kind:"video",title:"Abertura de rack com foto no celular",caption:"Receba alerta instantâneo no Telegram com foto, data e hora. Rastreabilidade real para segurança e auditoria.",src:"alerta-arlei",externalCtaLabel:"Ver vídeo completo",externalCtaUrl:"https://www.youtube.com/watch?v=EFPxAWzPqGQ&t=537s"},{kind:"video",title:"Inventário digital com QR Code",caption:"Tudo identificado e rastreável no portal e no app. Você sabe o que está em cada rack sem planilhas e sem dúvidas.",src:"/videos/datacenter-netbox.mp4",externalCtaLabel:"Ver vídeo completo",externalCtaUrl:"https://www.youtube.com/watch?v=xrrMe3Spntw&t=152s"},{kind:"youtube",title:"Upgrade de rack em 30 segundos",caption:"Amplie a potência com agilidade e sem interrupção. O upgrade acontece na mesma régua original, evitando fracionar carga em várias PDUs.",youtubeVideoId:"5NckJT1orc0",youtubeThumbnail:"https://img.youtube.com/vi/5NckJT1orc0/maxresdefault.jpg",externalCtaLabel:"Ver vídeo completo",externalCtaUrl:"https://www.youtube.com/watch?v=5NckJT1orc0"}]},seo:{title:"Data Center Colocation em São Paulo",description:"Colocation com infraestrutura tier 3 em São Paulo. Rack dedicado, conectividade redundante, monitoramento 24/7 e suporte técnico.",canonical:"https://www.asaptelecom.com.br/data-center-colocation"},quickNav:[{label:"Decidir em 30s",href:"#decidir-30s"},{label:"Diferenciais",href:"#diferenciais"},{label:"Arquitetura",href:"#arquitetura-seguranca"},{label:"Contratação",href:"#modelos-contratacao"},{label:"Técnico",href:"#caracteristicas-tecnicas"},{label:"Localização",href:"#localizacao"},{label:"Confiam na ASAP",href:"#quem-confia"},{label:"FAQ",href:"#faq"}],hero:{badge:"DATA CENTER EM SÃO PAULO",titlePrefix:"Data Center em",titleHighlight:"São Paulo (SP1)",titleSuffix:"para operações críticas, com alta disponibilidade e baixa latência",titleFull:"Data Center em São Paulo (SP1) para operações críticas, com alta disponibilidade e baixa latência",titleHighlightRange:[15,30],subtitle:"Colocation em São Paulo com controle do rack em tempo real e operação pronta para crescer com previsibilidade.",keyBullets:["Abertura de rack com foto no Telegram","Painel do rack em tempo real","Upgrade de rack em 30 segundos"],proofLine:"SLA contratual 99,987% | Infra projetada nos padrões Tier III | São Paulo SP1",primaryCtaLabel:"Falar com um Consultor ASAP",primaryCtaUrl:"https://wa.me/5511976800303?text=Quero%20falar%20com%20um%20Consultor%20ASAP%20sobre%20Data%20Center",secondaryCtaLabel:"Receber proposta por email",secondaryCtaHref:"#proposta"},overviewSection:{title:"Para decidir em 30 segundos",subtitle:"",bullets:[{title:"SLA contratual",description:"SLA de disponibilidade 99,987%."},{title:"Planos flexíveis",description:"De 1U até Full Rack. CAGE sob demanda."},{title:"Potência por rack",description:"Até 7.0 kW por rack. Upgrade em 30 segundos. Expansão acima disso sob projeto."},{title:"Energia redundante e autonomia",description:"Duas camadas de proteção para manter seus servidores ativos mesmo em falhas de energia."},{title:"Refrigeração",description:"Corredor frio confinado com ar de precisão e controle de temperatura e umidade."},{title:"Conectividade",description:"PIX no IX.br São Paulo. Ambiente neutro com 11 operadoras dentro do data center e em expansão."}]},differentialsSection:{title:"Diferenciais",titleHighlight:"operacionais",subtitle:"Controle, rastreabilidade e upgrade rápido para você operar com menos risco.",ctaSecondaryLabel:"Saiba mais",items:[{iconKey:"Bell",title:"Abertura de rack com foto no celular",description:"Alerta no Telegram com foto, data e hora sempre que a porta abre.",media:{type:"video",src:"alerta-arlei"},guideSlug:"alerta-de-abertura-de-rack",ctaPrimaryLabel:"Ver vídeo",ctaPrimaryUrl:"https://www.youtube.com/watch?v=EFPxAWzPqGQ&t=537s"},{iconKey:"Monitor",title:"Painel do rack em tempo real",description:"Temperatura, umidade e status das portas no painel de monitoramento.",media:{type:"image",src:"painelMonitoramento"},guideSlug:"painel-monitoramento-rack",ctaPrimaryLabel:"Abrir demonstração",ctaPrimaryUrl:"https://publico.painel.asaptelecom.com.br/d/19f4a72a-2eba-440b-a68a-5e71c96acfe0/asap-website-externo?orgId=1&from=now-24h&to=now&timezone=America%2FSao_Paulo&refresh=1m",modalVideoLabel:"Ver vídeo",modalVideoUrl:"https://www.youtube.com/watch?v=EFPxAWzPqGQ&t=537s"},{iconKey:"QrCode",title:"Inventário digital com QR Code",description:"Equipamentos e cabos identificados no portal e no app.",media:{type:"video",src:"datacenter-netbox"},guideSlug:"inventario-de-cabos-e-hardware",ctaPrimaryLabel:"Ver vídeo",ctaPrimaryUrl:"https://www.youtube.com/watch?v=xrrMe3Spntw&t=152s"},{iconKey:"Bolt",title:"Upgrade de rack em 30 segundos",description:"Amplie a potência sem interrupção, no mesmo circuito original.",media:{type:"youtube",youtubeVideoId:"5NckJT1orc0"},guideSlug:"upgrade-de-rack-sem-interrupcao",ctaPrimaryLabel:"Ver vídeo",ctaPrimaryUrl:"https://www.youtube.com/watch?v=5NckJT1orc0"}]},exclusiveHighlights:{title:"Diferenciais exclusivos da",titleHighlight:"ASAP",subtitle:"Controle, rastreabilidade e upgrade rápido para você operar com menos risco e mais previsibilidade.",items:[{iconKey:"Monitor",title:"Painel do rack em tempo real",description:"Temperatura, umidade e status das portas em tempo real. Mais previsibilidade e diagnóstico rápido no dia a dia.",productKey:"painel_rack_tempo_real",externalCtaLabel:"Abrir demonstração",externalCtaUrl:"https://painel.asaptelecom.com.br/"},{iconKey:"Bell",title:"Abertura de rack com foto no celular",description:"Alerta no Telegram com foto, data e hora sempre que a porta abre. Rastreabilidade prática para segurança e auditoria.",productKey:"alerta_abertura_rack",externalCtaLabel:"Ver vídeo completo",externalCtaUrl:"https://www.youtube.com/watch?v=EFPxAWzPqGQ&t=537s"},{iconKey:"QrCode",title:"Inventário digital com QR Code",description:"Tudo identificado e rastreável no portal e no app. Você sabe o que está em cada rack sem planilhas e sem dúvidas.",productKey:"inventario_cabos",externalCtaLabel:"Ver vídeo completo",externalCtaUrl:"https://www.youtube.com/watch?v=xrrMe3Spntw&t=152s"},{iconKey:"Bolt",title:"Upgrade de rack em 30 segundos",description:"Upgrade rápido e previsível quando a demanda aumenta. Mantém o mesmo circuito original, sem fracionar energia em várias PDUs.",productKey:"upgrade_rack",externalCtaLabel:"Ver vídeo completo",externalCtaUrl:"https://www.youtube.com/watch?v=5NckJT1orc0"}],allGuidesLabel:"Ver todos os guias",allGuidesUrl:"/guias"},locationSection:{title:"Data Center da",titleHighlight:"ASAP",titleSuffix:"em São Paulo (SP1)",locationName:"São Paulo (SP1)",address:{line1:"Av. das Nações Unidas, 22540 – PV01C",line2:"Shopping SP Market – Jurubatuba",line3:"São Paulo – SP · CEP 04795-000"},mapUrl:"https://www.google.com/maps/place/ASAP+Telecom+-+Data+Center/@-23.6791821,-46.6977951,637m/data=!3m1!1e3!4m15!1m8!3m7!1s0x94ce5025921696dd:0x2710d1011bd30909!2sAv.+das+Na%C3%A7%C3%B5es+Unidas,+22540+-+Jurubatuba,+S%C3%A3o+Paulo+-+SP+04795-000!3b1!8m2!3d-23.6761714!4d-46.6992381!16s%2Fg%2F11c3q2svdc!3m5!1s0x94ce510c29e542ed:0xe86ddf5d986340b6!8m2!3d-23.6784608!4d-46.6984102!16s%2Fg%2F11w_c244n_?hl=pt-BR&entry=ttu",mapEmbedUrl:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3306.616378244405!2d-46.70098512501645!3d-23.67845586590385!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x94ce510c29e542ed%3A0xe86ddf5d986340b6!2sASAP%20Telecom%20-%20D
160ata%20Center!5e1!3m2!1spt-BR!2sbr!4v1773257920778!5m2!1spt-BR!2sbr",mapLoadLabel:"Carregar mapa",mapPlaceholderTitle:"Mapa carregado sob demanda",mapPlaceholderSubtitle:"Clique para carregar o mapa sem afetar a velocidade da página.",mapOpenLabel:"Abrir no Google Maps",mapDirectionsLabel:"Traçar rota no Google Maps",mapViewPlaceLabel:"Ver no Google Maps",copyAddressLabel:"Copiar endereço",addressCopiedLabel:"Endereço copiado",ctaLabel:"Falar com um Consultor ASAP",ctaUrl:"https://wa.me/5511976800303?text=Quero%20falar%20com%20um%20Consultor%20ASAP%20sobre%20Data%20Center"},servicesSection:{title:"Serviços do",titleHighlight:"Data Center",items:[{iconKey:"Monitor",title:"Ver demonstração do painel",description:"Acompanhe indicadores do rack no painel de monitoramento.",note:"Acesso público demonstrativo.",guideSlug:"painel-monitoramento-rack",productKey:"painel_monitoramento",externalCtaLabel:"Abrir demonstração",externalCtaUrl:"http://painel.asaptelecom.com.br/d/aa9b145f-3e8d-447c-84b9-7d9c1e417cde/rack-rr-asp1-02-008-a?orgId=1&refresh=5s&from=now-6h&to=now&timezone=America%2FSao_Paulo"},{iconKey:"Bell",title:"Notificações em tempo real",description:"Receba notificações no celular sobre tudo o que está acontecendo no seu rack, 24/7.",guideSlug:"alerta-de-abertura-de-rack",productKey:"notificacoes_tempo_real"},{iconKey:"QrCode",title:"Inventário de cabos e hardware",description:"Cabos e equipamentos mapeados com etiquetas acessíveis via QR Code.",guideSlug:"inventario-de-cabos-e-hardware",productKey:"inventario_cabos"},{iconKey:"Bolt",title:"Upgrade de rack sem interrupção",description:"Aumente a potência do seu rack em segundos, sem desligar nenhum equipamento.",guideSlug:"upgrade-de-rack-sem-interrupcao",productKey:"upgrade_rack"}]},infraSection:{title:"Arquitetura e segurança",titlePrefix:"Arquitetura e",titleHighlight:"segurança",titleSuffix:"",ctaLabel:"Solicitar orçamento",ctaUrl:"https://wa.me/5511976800303?text=Quero%20solicitar%20um%20orçamento%20de%20Data%20Center",items:[{imageKey:"energia-protegida",title:"Energia",description:"• Arquitetura elétrica com redundância N+N, sem ponto único de falha • Energia protegida e redundante em 220V AC • Duplo circuito elétrico por rack • Nobreak redundante para continuidade elétrica • Gerador redundante para operação contínua"},{imageKey:"ar-condicionado",title:"Ambiente",description:"• Ar condicionado de precisão redundante • Corredor frio confinado • Controle de temperatura e umidade • Monitoramento de temperatura e umidade com alertas • Projetado e operado nos padrões Tier III"},{imageKey:"seguranca",title:"Segurança",description:"• CFTV 24x7x365 • Controle de acesso por biometria • Controle de acesso com trilha de auditoria • Sistema de detecção e supressão de incêndio • Alertas de abertura de porta do rack com foto"}]},ctaBanner:{title:"Quer uma proposta sob medida?",subtitle:"Conte sua necessidade e a ASAP retorna com a recomendação ideal.",microcopy:"Retornamos em horário comercial.",ctaPrimaryLabel:"Receber proposta por e-mail",ctaPrimaryHref:"#solicitar-proposta",ctaSecondaryLabel:"Falar no WhatsApp",ctaSecondaryUrl:"https://wa.me/5511976800303?text=Quero%20falar%20com%20um%20Consultor%20ASAP%20sobre%20Data%20Center"},faqSection:{title:"Dúvidas",titleHighlight:"Frequentes",subtitle:"Encontre respostas para as principais perguntas sobre Colocation na ASAP.",ctaLabel:"Fale com nossos especialistas",ctaUrl:"https://wa.me/5511976800303?text=Tenho%20uma%20dúvida%20sobre%20Data%20Center%20Colocation",items:[{question:"O que é Colocation?",answer:"Colocation é o serviço onde você hospeda seus próprios servidores e equipamentos de rede em nosso Data Center. A ASAP fornece espaço físico seguro, energia redundante, refrigeração, conectividade e monitoramento 24/7, enquanto você mantém controle total sobre seu hardware e software."},{question:"Quais são as formas de contratação?",answer:"Você pode contratar por unidade de rack (U) ou rack completo (Full Rack). A contratação inclui energia protegida, refrigeração e acesso ao ambiente. Serviços de conectividade 
160como portas, trânsito IP, link dedicado e circuitos LAN to LAN são opcionais e podem ser adicionados conforme a necessidade."},{question:"Quais serviços posso adicionar junto ao Colocation?",answer:"Serviços de conectividade são opcionais e podem ser adicionados conforme a sua necessidade. Exemplos: trânsito IP, link dedicado, circuitos LAN to LAN, portas e integrações."},{question:"Como funciona o suporte 24/7 e SLA?",answer:"Nosso NOC opera 24 horas por dia, 7 dias por semana. O SLA é contratual, de até 99,987%. Oferecemos suporte para incidentes, serviço remoto (hands on), monitoramento da infraestrutura e acesso físico controlado para manutenções quando necessário."},{question:"Tier III: o que significa na prática?",answer:"Tier III é um padrão de referência para Data Centers que buscam alta disponibilidade e continuidade operacional. O conceito está associado a redundância em sistemas críticos e à capacidade de realizar manutenções planejadas sem impacto."},{question:"Como funciona a segurança física?",answer:"O ambiente conta com CFTV 24x7x365 e controle de acesso. O acesso ao Data Center é controlado e realizado conforme necessidade de operação e manutenção, seguindo o processo de autorização."},{question:"Como a ASAP lida com incêndio?",answer:"O Data Center possui sistema de combate e supressão de incêndio, projetado para reduzir risco e apoiar a continuidade operacional."},{question:"Qual a potência por rack?",answer:"A entrega padrão é de até 7.0 kW por rack. Acima disso, dimensionamos como projeto sob medida, de acordo com a necessidade e a viabilidade técnica."},{question:"Como funciona a conectividade com o IX.br?",answer:"A ASAP é PIX no IX.br São Paulo. Para quem precisa de conectividade no ecossistema de telecom, isso facilita integrações e caminhos de tráfego."},{question:"Como começar?",answer:"Fale com a ASAP no WhatsApp para dimensionar a contratação e os serviços opcionais. Se preferir, veja os guias técnicos para mais detalhes."}]},finalCta:{titlePrefix:"Data Center ASAP: hospede seu servidor em São Paulo com",titleHighlight:"máxima segurança e menor latência",subtitle:"Infraestrutura de classe mundial para sua operação crítica.",ctaLabel:"Quero saber mais!",ctaUrl:"https://wa.me/5511976800303?text=Quero%20saber%20mais%20sobre%20Data%20Center%20Colocation%20ASAP"},leadCaptureBlock:{title:"Fale com um especialista",subtitle:"Envie seus requisitos e retornamos com a melhor opção (U, Full Rack ou CAGE).",ctaSubmitLabel:"Solicitar contato",ctaWhatsAppLabel:"Falar no WhatsApp",modalTitle:"Recebemos sua solicitação",modalMessage:"Nosso time retorna em horário comercial com a recomendação ideal.",modalCloseLabel:"Ok, obrigado",modalWhatsAppLabel:"Falar no WhatsApp",privacyNote:"Registramos página de origem e parâmetros de campanha.",privacyLinkLabel:"Ver Política de Privacidade",privacyHref:"/politica-de-privacidade-e-termos",fields:{nameLabel:"Nome",namePlaceholder:"Seu nome",emailLabel:"Email",emailPlaceholder:"[email protected] (opcional)",companyLabel:"Empresa",companyPlaceholder:"Nome da empresa (opcional)",phoneLabel:"WhatsApp",phonePlaceholder:"(11) 99999 9999",messageLabel:"O que você precisa?",messagePlaceholder:"Ex: Colocation para 2 racks, 3kW cada",consentLabel:"Aceito ser contatado pela ASAP Telecom."}},leadCaptureSection:{title:"Fale com um especialista",subtitle:"Preencha e nosso time entra em contato.",buttonLabel:"Enviar contato",successTitle:"Dados enviados",successSubtitle:"Em breve entraremos em contato.",privacyNote:"Registramos pagina de origem e parametros de campanha.",privacyLinkLabel:"Ver Politica de Privacidade",privacyHref:"/politica-de-privacidade-e-termos",fields:{nameLabel:"Nome",namePlaceholder:"Seu nome",emailLabel:"Email",emailPlaceholder:"[email protected] (opcional)",companyLabel:"Empresa",companyPlaceholder:"Nome da empresa (opcional)",phoneLabel:"WhatsApp",phonePlaceholder:"(11) 99999 9999",messageLabel:"O que voce precisa?",messagePlaceholder:"Ex: Colocation para 2 racks, 3kW cada",consentLabel:"Aceito ser contatado pela ASAP Telecom."}},contractModelsSection:{title:"Modelos de contratação",description:"Compare os modelos e escolha o melhor caminho para crescer sem refazer sua operação.",columns:[{key:"u",title:"Unidade de rack U",subtitle:"Começar pequeno e crescer por etapas"},{key:"rack",title:"Full Rack",subtitle:"Previsibilidade e domínio do rack"},{key:"cage",title:"CAGE",subtitle:"Isolamento físico e governança"}],rows:[{label:"Para quem é",values:{u:"Começar com poucos servidores e crescer por etapas",rack:"Operação contínua com previsibilidade e domínio do rack",cage:"Ambientes maiores com necessidade de isolamento físico e regras específicas"}},{label:"Escala de espaço",values:{u:"1U a 44U",rack:"Rack completo",cage:"Múltiplos racks em área dedicada"}},{label:"Isolamento físico",values:{u:"Ambiente compartilhado",rack:"Rack exclusivo",cage:"Área isolada no data center, personalizada sob projeto"}},{label:"Acesso e operação",values:{u:"Acesso ao equipamento com acompanhamento técnico da ASAP para manuseio e instalação",rack:"Acesso ao rack exclusivo, com suporte técnico quando necessário",cage:"Acesso à área e aos racks conforme regras do projeto, com suporte técnico quando necessário"}},{label:"Visibilidade do ambiente",values:{u:"Sem painel para o cliente. Monitoramento é operado pela ASAP",rack:"Incluso sem custo adicional: painel com temperatura, umidade e status das portas",cage:"Incluso sem custo adicional: painel com temperatura, umidade e status das portas"}},{label:"Modelo de contratação de energia",values:{u:"Energia por fonte do equipamento",rack:"Cliente define e gerencia a energia do rack, com melhor aproveitamento de capacidade",cage:"Cliente define e gerencia a energia do ambiente, com desenho e expansão sob projeto"}},{label:"Nível de controle do espaço",values:{u:"Controle por unidade, em ambiente compartilhado",rack:"Controle total do rack, com organização e padronização do seu ambiente",cage:"Controle por área, com governança de expansão e regras sob projeto"}},{label:"Evolução",values:{u:"Cresce para mais U ou para um rack dedicado",rack:"Evolui com upgrades de energia e expansão do ambiente",cage:"Evolui por área e número de racks, com desenho e expansão sob projeto"}},{label:"Indicado para",values:{u:"Infra enxuta e expansão gradual",rack:"Stack completo e operação previsível",cage:"Expansão e ambientes com requisitos específicos"}}],ctaLabel:"Solicitar proposta de colocation",ctaAnchorId:"solicitar-proposta"},technicalFeaturesSection:{title:"Características técnicas do data center",description:"O que seu time técnico vai perguntar — respondido em 30 segundos",items:[{iconKey:"Server",title:"Escala de espaço",description:"1U a 44U, Full Rack e CAGE."},{iconKey:"Zap",title:"Potência por rack",description:"Até 7.0 kW por rack. Acima disso, sob projeto."},{iconKey:"PlugZap",title:"Duplo circuito por rack",description:"Duas alimentações independentes por rack para redundância de energia e alta disponibilidade."},{iconKey:"Plug",title:"Alimentação elétrica",description:"220V AC."},{iconKey:"Layers",title:"Capacidade do site",description:"Até 150 racks."},{iconKey:"Network",title:"Conectividade no site",description:"Múltiplas operadoras Tier 1 e 2, com liberdade de escolha."}],ctaLabel:"Solicitar proposta",ctaAnchorId:"solicitar-proposta"},uiLabels:{quickNavAriaLabel:"Atalhos da página",visualProofAltFallback:"Prova visual",heroImageAlt:"Data Center ASAP SP1 em São Paulo",locationMapTitle:"Localização Data Center ASAP SP1",defaultDemoLabel:"Ver painel em operação",defaultVideoLabel:"Ver vídeo",closeLabel:"Fechar"}},Bw={seo:{title:"Nossa Rede e Infraestrutura",description:"Backbone próprio, pontos de presença em SP e conexões diretas aos principais IX brasileiros.",canonical:"/rede-asap"},hero:{badge:"REDE ASAP TELECOM",title:"Rede própria em São Paulo com backbone redundante",titleHighlight:"e entrega nacional",titleFull:"Rede própria em São Paulo com backbone redundante e entrega nacional",titleHighlightRange:[50,68],subtitle:"Internet para operação crítica, com rede própria, baixa latência e suporte técnico direto.",bullets:["Cobertura por fibra até 2,5 km de qualquer POP em São Paulo","Cobertura nacional via parceiros nas principais capitais e mais de 2.500 cidades atendidas","PIX no IX.br em São Paulo e ASN próprio 264144"],complementary:"Atendimento nacional via parceiros e operadoras presentes n
160o nosso Data Center",ctaMapLabel:"Verificar cobertura pelo CEP",coverageChecker:{title:"Ver cobertura no mapa",placeholder:"CEP ou endereço",buttonLabel:"Ver no mapa",microcopy:"Viabilidade de Link Dedicado para empresas e provedores. Confirme o perfil e veja o resultado no mapa."},explorePopsLabel:"Explorar POPs",explorePopsHint:"para provedores"},quickCards:{title:"Visão rápida da rede",items:[{title:"Rede própria em São Paulo",description:"Infraestrutura própria para operação crítica.",iconKey:"Network"},{title:"Backbone redundante",description:"Serviço estável mesmo quando um caminho falha.",iconKey:"Server"},{title:"Cobertura por POP",description:"Referência de até 2,5 km por POP em São Paulo. Consulte no mapa.",iconKey:"MapPin"},{title:"Cobertura nacional via parceiros",description:"Capitais e mais de 2.500 cidades atendidas.",iconKey:"Globe"}]},howItWorks:{title:"Verifique a cobertura pelo CEP",subtitle:"Escolha seu perfil, informe o CEP e veja o resultado técnico direto no mapa.",cards:[{title:"Informe o CEP",lines:[{label:"Empresas",text:"CEP do endereço onde a internet será instalada."},{label:"Provedores",text:"CEP para localizar o ponto mais próximo da Rede ASAP."}]},{title:"Veja o resultado técnico",lines:[{label:"Empresas",text:"Tecnologia disponível e caminho recomendado (fibra, rádio ou parceiros)."},{label:"Provedores",text:"POP ou Caixa de Emenda mais próxima e referência de distância."}]},{title:"Siga com o próximo passo",lines:[{label:"Empresas",text:"Veja no mapa e solicite uma proposta com base no resultado."},{label:"Provedores",text:"Copie os dados do ponto e siga com a solicitação técnica e comercial."}]}]},coreNetwork:{title:"Core redundante em",titleHighlight:"3 sites físicos",subtitle:"Resiliência de backbone com presença distribuída em pontos estratég
160icos do Brasil",cards:[{name:"ASAP SP1",location:"São Paulo, SP",description:"Data center próprio, hub principal de conectividade e peering"},{name:"Eletronet SP",location:"São Paulo, SP",description:"Redundância de core com acesso à malha de fibra da Eletronet"},{name:"CLS Fortaleza",location:"Fortaleza, CE",description:"Ponto de presença no Nordeste com acesso a cabos submarinos"}]},mapSection:{title:"Conheça nossa",titleHighlight:"Rede!",subtitle:"Selecione um POP no mapa para ver detalhes e iniciar a solicitação.",coverageText:"Cobertura por fibra até 2,5 km a partir deste POP",ctaVerifyCoverage:"Verificar cobertura neste local",ctaCopyPop:"Copiar dados do POP",copySuccessToast:"Dados do POP copiados!",modalityLabels:{fiber:"Fibra",radio:"Rádio",partners:"Parceiros"},modalityDescriptions:{fiber:"Fibra óptica própria com raio de até 2,5 km a partir de cada POP em São Paulo",radio:"Atendimento sob demanda via rádio para locais fora do alcance da fibra",partners:"Cobertura nacional via parceiros homologados nas principais capitais"},viabilityTool:{title:"Consultar viabilidade",subtitle:"Viabilidade de Link Dedicado. Digite o CEP ou endereço e veja o resultado no mapa.",microcopy:"A consulta marca o endereço no mapa e mostra o resultado.",profileLabel:"Perfil",profileCorporativo:"Internet corporativa",profileProvedor:"Provedor de internet",cepPlaceholder:"CEP ou endereço",cepInvalid:"Informe um CEP válido (8 dígitos) ou endereço (mín. 5 caracteres)",buttonLabel:"Consultar no mapa",loadingLabel:"Consultando…",wizardTitle:"Consultar viabilidade Link Dedicado",wizardSubtitle:"Digite o CEP e veja o resultado no mapa.",wizardCepValidating:"Validando CEP…",wizardTrustBullets:["Rede própria em São Paulo","Cobertura por POP com referência de até 2,5 km quando aplicável","Atendimento nacional via parceiros"],wizardPopsListLabel:"Ver lista de POPs",wizardAddressLabel:"Endereço",wizardNumberLabel:"Número",wizardNumberPlaceholder:"Nº",wizardNumberHint:"Obrigatório para precisão da viabilidade. Sem o número, o sistema cai no centro do CEP.",wizardNumberRequired:"Informe o número do endereço para checar viabilidade.",wizardProfileTitle:"Seu perfil",wizardProfileCorpLabel:"Empresas",wizardProfileCorpDesc:"Quero saber se a ASAP atende este endereço.",wizardProfileProvLabel:"Provedores",wizardProfileProvDesc:"Quero localizar o ponto de atendimento mais próximo.",wizardAnalyzing:"Analisando cobertura…",wizardProfileRequired:"Selecione seu perfil para continuar.",wizardChangeCep:"Alterar CEP",wizardRedoQuery:"Refazer consulta",resultAddressLabel:"Endereço consultado",resultCapacityHint:"Informe a capacidade desejada para receber a proposta.",resultRadioTitle:"Análise por rádio",resultRadioSubtitle:"Informe os dados abaixo para simular.",resultRadioCapacityLabel:"Capacidade (Mbps)",resultRadioCapacityPlaceholder:"Selecione",resultRadioHeightLabel:"Altura para instalação (m)",resultRadioHeightPlaceholder:"Ex: 30",resultRadioHeightHelp:"Não sabe a altura?",resultRadioFloorsLabel:"Andares acima do térreo:",resultRadioFloorsPlaceholder:"Ex: 10",resultRadioEstimated:"estimados",resultRadioAnalyze:"Ver viabilidade por rádio",resultRadioAnalyzing:"Analisando…",resultRadioCheckLabel:"Ver viabilidade por rádio",resultRadioViable:"Rádio viável",resultRadioNotViable:"Rádio não viável",resultRadioPopLabel:"POP",resultRadioDistanceLabel:"Distância",resultRadioReceiveProposal:"Receber proposta",resultRadioTalkSpecialist:"Falar com especialista",resultRadioEditData:"Editar dados",resultRadioTalkCommercial:"Falar com o comercial",resultRadioAnalyzeNow:"Analisar por rádio agora",resultRadioTalkCommercialBelow:"Falar com o comercial",resultProvOutOfCoverageLabel:"Fora da área de cobertura",resultProvOutOfCoverageSubtitle:"Nenhum ponto de rede encontrado próximo ao endereço.",resultProvTalkSpecialist:"Falar com especialista",resultProvNearestPointLabel:"Ponto mais próximo da Rede ASAP",resultProvCeLabel:"Caixa de Emenda",resultProvDistanceLabel:"Distância",resultProvPopLabel:"POP mais próximo",resultProvReceiveProposal:"Receber proposta",resultProvCopyData:"Copiar dados do ponto",resultProvCopied:"Dados copiados",resultProvCopyError:"Erro ao copiar",resultBackLabel:"Voltar",resultTalkCommercial:"Falar com o comercial",resultTitle:"Cobertura no seu endereço",corpFiberLabel:"Atendemos seu endereço com fibra",corpRadioLabel:"Fibra indisponível no endereço",corpRadioSubtitle:"Podemos avaliar rádio",corpOutOfCoverageLabel:"Fora da área de cobertura direta",corpOutOfCoverageSubtitle:"Podemos avaliar viabilidade via parceiros",corpCepLabel:"CEP consultado",corpDistanceLabel:"Distância até nossa rede",corpRefPointLabel:"Ponto de referência",corpCtaFiber:"Receber proposta",corpCtaRadio:"Solicitar análise por rádio",corpCtaOut:"Solicitar viabilidade via parceiros",corpCtaLabel:"Receber proposta",corpRadioHint:"Podemos avaliar alternativa via rádio",corpRadioButton:"Analisar por rádio",corpMapHint:"O resultado aparece marcado no mapa como 'Seu endereço'.",provClosestPointLabel:"Ponto mais próximo da Rede ASAP",provCepLabel:"CEP consultado",provDistanceLabel:"Distância",provCtaCopy:"Copiar dados do ponto",provCtaWhatsApp:"Falar com o comercial",techDetailsLabel:"Ver detalhes técnicos",techPopLabel:"POP sugerido",techCeLabel:"Caixa de Emenda",techDistanceCeLabel:"Distância (CE)",techCeToPopLabel:"CE → POP",corpLegendAddress:"Seu endereço",corpLegendPop:"POP sugerido",provLegendAddress:"Seu endereço",provLegendPoint:"POP ou ponto mais próximo",popsTitle:"POPs por zona",popsMicrocopy:"Selecione um POP para ver localização e iniciar solicitação.",popsSearchPlaceholder:"Buscar POP por nome ou zona",selectedPopCta:"Solicitar proposta neste POP",popsZoneLabel:"zona",popsOpenLabel:"Abrir POPs",toastSelectProfile:"Selecione seu perfil para continuar",copyErrorToast:"Erro ao copiar",mobileResultDone:"Consulta realizada",mobileResultView:"Ver resultado",searchingAddresses:"Buscando endereços...",selectAddressHint:"Selecione um endereço da lista para continuar",searchAddressAriaLabel:"Buscar endereço",cepOrAddressPlaceholder:"CEP ou endereço completo",capacityPlaceholderCorp:"Ex: 200 ou 5G",capacityPlaceholderProv:"200",unitMbps:"Mbps",popFallbackName:"A definir",zoneNames:{"Zona Sul":"Zona Sul","Zona Norte":"Zona Norte","Zona Leste":"Zona Leste","Zona Oeste":"Zona Oeste","Grande São Paulo":"Grande São Paulo","Outras localidades":"Outras localidades"},whatsappRadioNotViable:`Olá! Quero cotar conectividade.
161
162Perfil: {profile}
163Endereço: {address} (CEP {cep}{numero})
164Resultado: Rádio não viável
165Detalhes: {capacity} Mbps, {height} m
166
167Link: /rede-asap`,whatsappProviderOutOfCoverage:`Olá! Sou provedor e tenho interesse na Rede ASAP.
168
169Endereço: {address} (CEP {cep}{numero})
170Resultado: Fora de cobertura
171
172Link: /rede-asap`,whatsappProviderInterest:`Olá! Sou provedor e tenho interesse na Rede ASAP.
173
174Ponto mais próximo: {nearestType} {nearestName}
175Distância: {distance}
176Endereço: {address} (CEP {cep}{numero})
177
178Link: /rede-asap`,provCopyNearestPoint:"Ponto mais próximo",provCopyDistance:"Distância",provCopyAddressChecked:"Endereço consultado",provCopyCoordinates:"Coordenadas",popsNoPops:"Nenhum POP cadastrado.",popsResultCount:"resultado",popsResultCountPlural:"resultados",errorTitle:"Não foi possível consultar agora",errorMessage:"Tente novamente em instantes.",errorRetryLabel:"Tentar novamente"},viability:{inputPlaceholder:"Endereço ou CEP",buttonLabel:"Consultar viabilidade",loadingLabel:"Consultando",errorGeneric:"Não foi possível consultar agora. Tente novamente.",resultTitle:"Resultado da viabilidade",viableLabel:"Viável por fibra",notViableLabel:"Sob consulta",popLabel:"POP sugerido",distanceLabel:"Distância até a rede",alternativeLabel:"Alternativa sugerida: Rádio",ctaSendCommercial:"Enviar para o comercial",summaryTemplate:"Endereço consultado: {address}. Modalidade sugerida: {modalidade}. POP sugerido: {pop}. Distância até a rede: {dist} m.",mapUnavailable:"Mapa indisponível no momento. A consulta de viabilidade continua funcionando.",radioAnalyzeButton:"Analisar por rádio",radioTitle:"Análise por rádio",radioCapacityLabel:"Capacidade (Mbps)",radioCapacityPlaceholder:"Selecione ou informe",radioHeightLabel:"Altura para instalação (metros)",radioHeightPlaceholder:"Ex: 30",radioHeightHelpLink:"Não sabe a altura?",radioHeightHouseOrBuilding:"Você está em casa ou prédio?",radioHeightHouseLabel:"Casa",radioHeightBuildingLabel:"Prédio",radioHeightFloorsLabel:"Quantos andares?",radioHeightSuggested:"Altura sugerida: {height} m",radioAnalyzeAction:"Analisar rádio",radioLoadingLabel:"Analisando rádio",radioErrorGeneric:"Não foi possível analisar rádio agora. Tente novamente.",radioViableLabel:"Rádio viável",radioNotViableLabel:"Rádio sob consulta",radioOptionUpTo:"Até {capacity} Mbps",radioOptionDistance:"Distância {distance} km",radioOptionPop:"POP {pop}",radioTechDetailsLabel:"Detalhes técnicos",radioTechPopsAnalyzed:"POPs analisados: {count}",radioTechPopsObstructed:"POPs com obstrução: {count}",radioTechRadiosFound:"Rádios encontrados: {count}",radioCtaSendCommercial:"Enviar análise de rádio para o comercial",radioSummaryTemplate:"Endereço consultado: {address}. Fibra: sob consulta. Rádio: {radioStatus}. POP sugerido: {pop}. Capacidade: {capacity} Mbps. Altura: {height} m."}},partners:{title:"Brasil via",titleHighlight:"parceiros",description:"Atendemos todo o Brasil com parceiros homologados. Você fala com a ASAP e nós acompanhamos entrega e SLA.",bullets:["Principais capitais atendidas","Mais de 2.500 cidades via parceiros","SLA acompanhado pela ASAP","Um ponto único de contato para operações nacionais"],ctaLabel:"Receber análise de viabilidade",ctaMicrocopy:"Retornamos com a melhor rota e prazo para sua cidade.",form:{badge:"PRÉ-BRIEF DE VIABILIDADE",heading:"Viabilidade nacional via parceiros",subtitle:"Informe sua cidade. Retornamos com prazo e opções de entrega.",ufLabel:"UF",ufPlaceholder:"Selecione",ufError:"Selecione a UF.",cityLabel:"Cidade",cityPlaceholder:"Busque sua cidade…",cityError:"Informe a cidade.",cityHintNoUf:"Selecione a UF para listar cidades.",cityHintEmpty:"Digite para buscar cidades do estado.",cityHintNoResult:"Nenhuma cidade encontrada. Tente outro termo.",capacityLabel:"Capacidade",capacityPlaceholder:"Selecione (opcional)",capacityHint:"Ajuda a estimar prazo.",profileLabel:"Perfil",profileEmpresa:"Empresa",profileProvedor:"Provedor",submitLabel:"Solicitar análise de viabilidade",submitSuccess:"Recebido",submitMicrocopy:"Complete seus dados abaixo para retornarmos com rota e prazo.",submitHint:"Selecione UF e cidade para enviar.",capacityOptions:["Não sei / Preciso de ajuda","100M","200M","500M","1G","2G","5G","10G","Outro"],capacityHelpOption:"Não sei / Preciso de ajuda"}},popCard:{addressLabel:"Endereço",viewOnMapLabel:"Ver no mapa",copyLabel:"Copiar",copiedLabel:"Copiado",copiedToast:"Endereço copiado",closeLabel:"Fechar"},mapPopupLabels:{addressLabel:"Endereço",copyAddressLabel:"Copiar endereço",copiedLabel:"Copiado!",copiedToast:"Endereço copiado",yourAddressLabel:"Seu endereço",checkedAddressLabel:"Endereço consultado",spliceEnclosureLabel:"Caixa de Emenda",distanceFromAddressLabel:"Distância do endereço",dataCopiedToast:"Dados copiados",copyDataLabel:"Copiar dados"},engineerMode:{title:"Modo Engenheiro",coordinatesLabel:"Coordenadas",addressLabel:"Endereço",distancesLabel:"Distâncias",addressToCe:"Endereço → CE",ceToPop:"CE → POP",addressToPopStraight:"Endereço → POP (linh
178a reta)",referenceRadiusLabel:"Raio de referência",coverageRadius:"Raio padrão de cobertura: 2,5 km",withinStandard:"✓ Dentro do padrão",outsideStandard:"⚠ Fora do padrão (projeto especial)"},asn:{title:"Resiliência de backbone em 3 sites",subtitle:"ASN próprio com core redundante em 3 sites para manter a operação estável mesmo em falhas.",bullets:["Rotas alternativas automáticas","Engenharia de tráfego para melhor rota","Monitoramento e ajustes contínuos"],cta1Label:"Falar com engenharia",cta1Url:"",cta2Label:"Ver informações públicas do ASN",techDropdownLabel:"Detalhes técnicos (opcional)",techItems:["Políticas de roteamento e preferência por performance","Múltiplos upstreams e rotas anunciadas","Mitigação operacional via engenharia (quando aplicável)","Informações completas nas fontes públicas do ASN"]},modalities:{title:"Modalidades de",titleHighlight:"atendimento",columns:[{title:"Fibra",iconKey:"Cable",bullets:["Até 2,5 km de um POP ASAP em São Paulo","Link dedicado com baixa latência e SLA alinhado em contrato"],ctaLabel:"Ver cobertura no mapa",ctaAnchor:"#consultar-viabilidade"},{title:"Rádio",iconKey:"Radio",bullets:["Quando fibra não chega ou o prazo é crítico","Enlace dedicado com implantação rápida, conforme viabilidade"],ctaLabel:"Falar com especialista",ctaAnchor:"#solicitar-proposta"},{title:"Parceiros",iconKey:"Globe",bullets:["Cobertura fora de SP com parceiros homologados","Você fala com a ASAP e nós coordenamos a entrega"],ctaLabel:"Solicitar viabilidade",ctaAnchor:"#solicitar-proposta"}]},audience:{title:"Para quem é a",titleHighlight:"Rede ASAP",panels:[{title:"Empresas",iconKey:"Building2",bullets:["Conectividade estável para operações que não podem parar","Atendimento direto com time técnico, sem repasse entre times","Implantação assistida e ajustes contínuos para manter performance"],ctaLabel:"Solicitar proposta para empresas",whatsappLabel:"Falar no WhatsApp"},{title:"Provedores",iconKey:"Wifi",bullets:["Mais conectividade e menor latência com peering no IX.br via PIX ASAP","Backbone com ASN próprio e core redundante em 3 sites","Engenharia de tráfego para melhor rota (trânsito IP e transporte dedicado)"],ctaLabel:"Solicitar proposta para provedores",whatsappLabel:"Falar no WhatsApp"}]},faq:{title:"Perguntas",titleHighlight:"frequentes",subtitle:"Respostas rápidas sobre cobertura, ativação e operação.",tabEmpresas:"Empresas",tabProvedores:"Provedores",empresas:[{question:"Como funciona a cobertura de 2,5 km a partir de cada POP?",answer:"A cobertura principal é atendida por POPs na Grande São Paulo. Ao informar o CEP, você vê se existe um POP próximo e qual o melhor formato de entrega. Se estiver fora da área direta, avaliamos alternativas via rádio ou parceiros, conforme viabilidade."},{question:"Quando faz sentido usar rádio em vez de fibra?",answer:"Usamos rádio quando ele reduz prazo e complexidade de obra — ou quando é a melhor opção para contingência. A definição depende do CEP, do cenário do prédio e da criticidade da operação."},{question:"Qual a diferença entre a Rede ASAP e uma operadora tradicional?",answer:"Na ASAP você fala diretamente com a engenharia que opera a rede. Não há call center nem repasse entre times. Como operamos backbone próprio em São Paulo, temos mais controle sobre qualidade e roteamento."},{question:"Como validar a viabilidade no meu endereço?",answer:"Basta informar o CEP na própria página. O resultado mostra se existe cobertura por POP, e o caminho recomendado para entrega (fibra, rádio ou parceiros), sempre com base em viabilidade."},{question:"Como funciona a ativação sem risco de parada?",answer:"Planejamos a ativação para reduzir risco e janela de troca, com alinhamento técnico do início ao fim. Deixamos o link pronto e validado antes, e a mudança é feita no melhor momento para sua operação."}],provedores:[{question:"O que é o PIX ASAP no IX.br e por que isso importa?",answer:"O PIX ASAP é o nosso ponto de interconexão homologado no IX.br em São Paulo. Para provedores, isso significa caminho mais direto para peering, menor latência e mais controle de rotas no dia a dia."},{question:"Como funciona peering no IX.br via PIX ASAP?",answer:"Você pode estabelecer sessões BGP e trocar tráfego no IX.br usando o PIX ASAP como ponto de interconexão. Isso ajuda a otimizar latência e reduzir dependência de rotas longas ou indiretas."},{question:'O que significa "core redundante em 3 sites"?',answer:"Significa resiliência de backbone com caminhos alternativos entre sites, permitindo manter a operação estável mesmo quando há falhas em um trecho. Na prática: rotas alternativas automáticas e engenharia de tráfego para manter a melhor rota disponível."},{question:"Como funciona a ativação/migração sem downtime?",answer:"A ativação é feita com o circuito pronto e validado antes da troca. Assim, o provedor escolhe a janela ideal para virar o tráfego com controle e previsibilidade, reduzindo risco e impacto."},{question:"O que muda na operação do meu provedor (suporte e resposta)?",answer:"Você ganha atendimento direto com time técnico (N2/N3), monitoramento contínuo e ajustes de rota quando necessário. É um modelo pensado para acelerar diagnóstico e reduzir tempo de resolução em eventos de rede."}]},leadForm:{title:"Solicite sua proposta",subtitle:"Preencha o formulário e nossa equipe retorna com a análise de viabilidade",ctaSubmitLabel:"Enviar solicitação",ctaWhatsAppLabel:"Falar com especialista no WhatsApp",modalTitle:"Solicitação enviada!",modalMessage:"Nossa equipe entrará em contato em breve com a análise de viabilidade para o seu endereço.",modalCloseLabel:"Fechar",modalWhatsAppLabel:"Falar no WhatsApp",privacyNote:"Seus dados estão protegidos conforme nossa",privacyLinkLabel:"Política de Privacidade",privacyHref:"/politica-de-privacidade-e-termos",whatsappMessage:"Quero verificar cobertura da Rede ASAP",fields:{nameLabel:"Nome",namePlaceholder:"Seu nome completo",emailLabel:"E-mail",emailPlaceholder:"[email protected]",companyLabel:"Empresa",companyPlaceholder:"Nome da empresa",phoneLabel:"WhatsApp",phonePlaceholder:"(11) 99999 9999",messageLabel:"Mensagem",messagePlaceholder:"Descreva sua necessidade (endereç
178o, tipo de serviço, etc.)",consentLabel:"Aceito ser contatado pela ASAP Telecom."}}},Uw={seo:{title:"Fale Conosco",description:"Solicite um orçamento para link dedicado, data center colocation ou soluções de conectividade empresarial.",canonical:"https://www.asaptelecom.com.br/contato"},hero:{badge:"Contato",title:"Fale com a ",titleHighlight:"ASAP Telecom",subtitle:"Fale com a equipe certa, sem perder tempo.",subtitleLines:["Fale com a equipe certa, sem perder tempo."],quickActions:{title:"O que você precisa?",subtitle:"Escolha uma opção.",description:"",buttons:[{label:"Comercial",action:"scroll",href:"#dept-comercial",variant:"primary"},{label:"Suporte",action:"scroll",href:"#dept-suporte",variant:"secondary"},{label:"Financeiro",action:"scroll",href:"#dept-financeiro",variant:"secondary"},{label:"Acesso do Cliente",action:"scroll",href:"#acesso-clientes",variant:"secondary"}],helperText:""}},departments:{title:"Nossos ",titleHighlight:"Departamentos",subtitle:"Fale direto com a equipe responsável pelo seu assunto.",whatsappButtonLabel:"WhatsApp",items:[{iconKey:"users",title:"Comercial",description:"Propostas, novos projetos, upgrade de serviços e visitas técnicas.",email:"[email protected]",phone:"+55 (11) 97680-0303",whatsapp:"https://wa.me/5511976800303?text=Olá!%20Gostaria%20de%20falar%20com%20o%20comercial.",hours:"Seg a Sex, 9h às 18h",primaryCta:{label:"WhatsApp Comercial",href:"https://wa.me/5511976800303?text=Olá!%20Gostaria%20de%20falar%20com%20o%20comercial.",iconKey:"whatsapp",isExternal:!0},secondaryCta:{label:"Enviar mensagem",href:"#contact-form",iconKey:"send",action:"scroll"},microReinforcement:"Atendimento em horário comercial."},{iconKey:"headphones",title:"Suporte Técnico",description:"Monitoramento proativo, suporte técnico especializado e acompanhamento operacional 24/7.",email:"[email protected]",phone:"+55 (11) 2667-1208",whatsapp:"https://wa.me/5511976800303?text=Preciso%20de%20suporte%20técnico.",hours:"Disponível 24/7",primaryCta:{label:"Abrir chamado",href:"https://chamado.asaptelecom.com.br/",iconKey:"external",isExternal:!0},secondaryCta:{label:"WhatsApp Suporte",href:"https://wa.me/5511976800303?text=Preciso%20de%20suporte%20técnico.",iconKey:"whatsapp",isExternal:!0},microReinforcement:"Atendimento 24 horas para clientes ativos."},{iconKey:"handshake",title:"Financeiro",description:"Faturas, boletos, contratos e informações financeiras.",email:"[email protected]",phone:"+55 (11) 97680-0303",whatsapp:"https://wa.me/5511976800303?text=Olá!%20Preciso%20de%20ajuda%20com%20faturas%20ou%20pagamentos.",hours:"Seg a Sex, 9h às 18h",primaryCta:{label:"Enviar email",href:"mailto:[email protected]",iconKey:"mail"},secondaryCta:{label:"WhatsApp Financeiro",href:"https://wa.me/5511976800303?text=Olá!%20Preciso%20de%20ajuda%20com%20faturas%20ou%20pagamentos.",iconKey:"whatsapp",isExternal:!0},microReinforcement:"Atendimento em horário comercial."}]},customerAccess:{title:"Acesso para clientes",subtitle:"Acesso às ferramentas exclusivas para seus serviços.",items:[{title:"Financeiro",description:"Extrato financeiro, nota fiscal e segunda via de boleto.",note:"Acesso restrito ao responsável financeiro cadastrado.",ctaLabel:"Acessar área financeira",href:"https://sac.asaptelecom.com.br/"},{title:"Chamados técnicos",description:"Abra e acompanhe chamados de suporte.",note:"Acesso para usuários técnicos cadastrados.",ctaLabel:"Acessar suporte técnico",href:"https://chamado.asaptelecom.com.br/"},{title:"Painel do rack",description:"Telemetria e status do rack em tempo real.",note:"Acesso operacional restrito por cliente.",ctaLabel:"Acessar painel",href:"https://painel.asaptelecom.com.br/"},{title:"Monitoramento de link",description:"Acompanhe disponibilidade e tráfego do link.",note:"Acesso restrito por contrato e perfil.",ctaLabel:"Acessar monitoramento",href:"https://zabbix.asaptelecom.com.br/"}]},location:{locationName:"São Paulo (SP1)",address:{line1:"Av. das Nações Unidas, 22540 – PV01C",line2:"Shopping SP Market – Jurubatuba",line3:"São Paulo – SP · CEP 04795-000"},mapEmbedUrl:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3306.616378244405!2d-46.70098512501645!3d-23.67845586590385!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x94ce510c29e542ed%3A0xe86ddf5d986340b6!2sASAP%20Telecom%20-%20D
178ata%20Center!5e1!3m2!1spt-BR!2sbr!4v1773257920778!5m2!1spt-BR!2sbr",mapUrl:"https://www.google.com/maps/place/ASAP+Telecom+-+Data+Center/@-23.6791821,-46.6977951,637m/data=!3m1!1e3!4m15!1m8!3m7!1s0x94ce5025921696dd:0x2710d1011bd30909!2sAv.+das+Na%C3%A7%C3%B5es+Unidas,+22540+-+Jurubatuba,+S%C3%A3o+Paulo+-+SP+04795-000!3b1!8m2!3d-23.6761714!4d-46.6992381!16s%2Fg%2F11c3q2svdc!3m5!1s0x94ce510c29e542ed:0xe86ddf5d986340b6!8m2!3d-23.6784608!4d-46.6984102!16s%2Fg%2F11w_c244n_?hl=pt-BR&entry=ttu",mapPlaceholderTitle:"Mapa carregado sob demanda",mapPlaceholderSubtitle:"Clique para visualizar a localização",mapLoadLabel:"Carregar mapa",mapDirectionsLabel:"Traçar rota",mapViewPlaceLabel:"Ver no mapa",copyAddressLabel:"Copiar endereço",addressCopiedLabel:"Copiado!",visitCtaLabel:"Agendar visita técnica",visitCtaMessage:"Gostaria de agendar uma visita técnica ao Data Center ASAP SP1."},topicPrefills:{commercial:`Origem: Comercial
179`},leadForm:{title:"Envie sua mensagem",subtitle:"Preencha o formulário e nossa equipe entrará em contato o mais breve possível.",ctaSubmitLabel:"Enviar Mensagem",ctaWhatsAppLabel:"WhatsApp Comercial",modalTitle:"Mensagem Enviada!",modalMessage:"Obrigado pelo contato. Nossa equipe responderá em breve.",modalCloseLabel:"Fechar",modalWhatsAppLabel:"Falar no WhatsApp",privacyNote:"Seus dados estão seguros conforme nossa",privacyLinkLabel:"Política de Privacidade",privacyHref:"/politica-de-privacidade-e-termos",fields:{nameLabel:"Nome",namePlaceholder:"Seu nome completo",emailLabel:"E-mail",emailPlaceholder:"[email protected]",companyLabel:"Empresa",companyPlaceholder:"Nome da empresa",phoneLabel:"Telefone / WhatsApp",phonePlaceholder:"(11) 99999-9999",messageLabel:"Mensagem",messagePlaceholder:"Conte-nos como podemos ajudar sua empresa...",consentLabel:"Aceito ser contatado pela ASAP Telecom."},whatsappMessage:"Olá! Gostaria de falar com a equipe ASAP Telecom."}},qw={seo:{title:"Ferramentas para Clientes",description:"Looking glass, teste de velocidade e recursos para monitorar sua conectividade.",canonical:"https://www.asaptelecom.com.br/ferramentas-asap"},hero:{title:"Ferramentas ",titleHighlight:"técnicas",subtitle:"Recursos úteis para diagnóstico, monitoramento e análise de rede."},tools:{accessLabel:"Acessar",learnMoreLabel:"Saiba mais sobre",items:[{iconKey:"gauge",title:"Teste de Velocidade",description:"Meça a velocidade real da sua conexão de internet.",externalUrl:"http://asap.speedtestcustom.com/"},{iconKey:"radar",title:"Looking Glass",description:"Consulte informações de roteamento BGP da nossa rede.",externalUrl:"https://lg.asaptelecom.com.br/"},{iconKey:"globe",title:"Consulta WHOIS",description:"Verifique informações de domínios e IPs.",externalUrl:"https://registro.br/tecnologia/ferramentas/whois/"},{iconKey:"route",title:"Traceroute",description:"Rastreie o caminho dos pacotes até seu destino.",externalUrl:"https://ping.pe/asaptelecom.com.br"},{iconKey:"activity",title:"Análise de Rede",description:"Acompanhe o status operacional da Rede ASAP.",externalUrl:"https://www.isp.tools/"},{iconKey:"shield",title:"Chamados",description:"Abra e acompanhe chamados de suporte técnico.",externalUrl:"https://chamado.asaptelecom.com.br/"}]},monitoring:{title:"Portal de ",titleHighlight:"Monitoramento",subtitle:"Acesso completo ao painel de monitoramento da sua infraestrutura.",linkDedicadoLabel:"Monitoramento de link dedicado",rackLabel:"Monitoramento de rack",pendingBadge:"Pendente",pendingTooltip:"Link ainda não configurado",features:[{iconKey:"barChart3",title:"Visão do Circuito em Tempo Real",description:"Acompanhe consumo de banda, burst por Percentil 95 e status do seu circuito em tempo real."},{iconKey:"bell",title:"Alertas do Rack no Telegram",description:"Receba alertas automáticos de porta do rack aberta ou fechada direto no Telegram."},{iconKey:"shieldCheck",title:"Alertas de Rede Validados",description:"Incidentes de rede são comunicados pelo WhatsApp ou Telegram, com validação do N1 para evitar falso positivo."},{iconKey:"clock",title:"Histórico Completo",description:"Consulte histórico de até 1 ano do rack e do circuito IP, com relatórios e métricas."}]},materials:{title:"Materiais ",titleHighlight:"Técnicos",subtitle:"Documentação, playbooks e apresentações para conhecer melhor nossos serviços.",downloadLabel:"Baixar",emptyTitle:"Em breve novos materiais",emptySubtitle:"Estamos preparando documentação e recursos para você."},youtube:{title:"Vídeos",subtitle:"Confira nossos vídeos com dicas, tutoriais e novidades sobre conectividade.",channelButtonLabel:"Se inscreva no nosso canal",emptyState:'Nenhum vídeo cadastrado ainda. Em Admin → Vídeos, clique em "Adicionar vídeo".',videoPlayerTitle:"Player de vídeo",closeLabel:"Fechar"},uptime:{title:"Calculadora de ",titleHighlight:"Uptime",subtitle:"Calcule o tempo máximo de indisponibilidade permitido para cada nível de SLA.",inputLabel:"SLA (%)",inputPlaceholder:"Ex: 99.95",calculateLabel:"Calcular",periodLabel:"Período",downtimeLabel:"Downtime permitido",periods:{daily:"Diário",weekly:"Semanal",monthly:"Mensal",quarterly:"Trimestral",yearly:"Anual"},copyLabel:"Copiar",copiedLabel:"Copiado!",referenceLabel:"Baseado em uptime.is"}},Ww={seo:{title:"Blog sobre Telecom e Conectividade",description:"Artigos, guias e novidades sobre internet corporativa, data center, segurança e conectividade.",canonical:"/blog"},hero:{badge:"Blog",title:"Conteúdo técnico sobre ",titleHighlight:"conectividade e infraestrutura",subtitle:"Lições de campo, análises de operação e visão prática de quem projeta, conecta e sustenta redes reais. Publicado pelo time técnico e comercial da ASAP Telecom."},highlights:{title:"Leituras recomendadas",subtitle:"Seleção editorial com os conteúdos mais relevantes para quem opera ou contrata infraestrutura de rede."},catalog:{srTitle:"Artigos do Blog",allCategories:"Todos",loading:"Carregando...",errorMessage:"Erro ao carregar posts. Tente novamente.",emptyAll:"Nenhum post publicado ainda.",emptyCategory:"Nenhum post encontrado nesta categoria.",showAll:"Ver todos os posts",paginationLabel:"Paginação",prevPage:"Página anterior",nextPage:"Próxima página",pageLabel:"Página",filterLabel:"Navegue por tema"},expertise:{title:"Conteúdo com base em ",titleHighlight:"experiência prática",description:"Os artigos publicados neste blog refletem a vivência da ASAP Telecom em projetos reais de conectividade, infraestrutura e operação de rede. Nosso time técnico e comercial compartilha aprendizados, boas práticas e análises do mercado de telecomunicações."},newsletter:{title:"Acompanhe nosso ",titleHighlight:"conteúdo editorial",subtitle:"Artigos técnicos, análises de mercado e atualizações sobre conectividade e infraestrutura. Direto da operação para a sua caixa de entrada."}},Vw={backLabel:"Voltar para o Blog",notFoundTitle:"Post não encontrado",notFoundMessage:"O artigo que você procura não existe ou foi removido.",notFoundCta:"Voltar para o Blog",authorFallback:"Equipe ASAP Telecom",authorSubtitle:"Especialistas em Telecom",shareLabel:"Compartilhe este artigo",shareCta:"Compartilhar",ctaTitle:"Acompanhe nosso conteúdo editorial",ctaSubtitle:"Artigos técnicos, análises de mercado e atualizações sobre conectividade e infraestrutura. Fale com a equipe ASAP Telecom.",ctaButton:"Falar com a ASAP",ctaWhatsAppText:"Vim do blog e quero falar com um especialista",relatedTitle:"Continue lendo",relatedSubtitle:"Conteúdos relacionados selecionados pela equipe editorial",relatedCta:"Ver todos os artigos",defaultCategory:"Geral",editorialBlockTitle:"Conteúdo com base em experiência prática",editorialBlockText:"Os artigos publicados neste blog refletem a vivência da ASAP Telecom em projetos reais de conectividade, infraestrutura e operação de rede. Nosso time técnico e comercial compartilha aprendizados, boas práticas e análises do mercado de telecomunicações.",readMore:"Ler artigo"},Hw={placeholder:"[email protected]",consentLabel:"Concordo em receber comunicações da ASAP.",submitLabel:"Quero receber",loadingLabel:"Cadastrando...",successLabel:"Cadastrado!",errorMessage:"Erro ao realizar cadastro. Tente novamente.",emailInvalid:"Por favor, insira um e-mail válido",consentRequired:"É necessário concordar para continuar",ariaLabel:"Seu e-mail"},Kw={header:{navItems:[{label:"Sobre a ASAP",href:"/a-asap"},{label:"Para Provedores",href:"/para-provedores"},{label:"Para Empresas",href:"/para-empresas"},{label:"Data Center",href:"/data-center-colocation"},{label:"Rede ASAP",href:"/rede-asap"},{label:"Ferramentas",href:"/ferramentas-asap"}],ctaContactLabel:"Contato",search:{placeholder:"Pesquisar no site da ASAP...",openLabel:"Abrir busca",closeLabel:"Fechar busca",noResults:"Nenhum resultado encontrado.",productsTitle:"Produtos & Soluções",blogTitle:"Artigos do Blog",guidesTitle:"Guias de Serviço",toolsTitle:"Ferramentas",popsTitle:"Pontos de Presença",materialsTitle:"Materiais Técnicos",pagesTitle:"Páginas"}},footer:{aboutText:"Especialista em Internet Corporativa e soluções de conectividade para empresas e provedores. Fibra óptica de alta performance com SLA garantido.",slogan:"Ligando Você ao Mundo",navigationTitle:"Navegação",quickLinks:[{label:"Home",href:"/"},{label:"Sobre a ASAP",href:"/a-asap"},{label:"Para Provedores",href:"/para-provedores"},{label:"Para Empresas",href:"/para-empresas"},{label:"Data Center",href:"/data-center-colocation"},{label:"Rede ASAP",href:"/rede-asap"},{label:"Ferramentas",href:"/ferramentas-asap"},{label:"Blog",href:"/blog"},{label:"Contato",href:"/contato"}
179],solutionsTitle:"Soluções",solutionLinks:[{label:"Link Dedicado",href:"/rede-asap"},{label:"Internet para empresas",href:"/para-empresas"},{label:"Soluções para provedores",href:"/para-provedores"},{label:"Data Center e Colocation",href:"/data-center-colocation"},{label:"Guias técnicos",href:"/guias"}],contactTitle:"Contato",phoneLabel:"Telefone",emailLabel:"E-mail",addressLabel:"Endereço",addressValue:"São Paulo, SP, Brasil",clientCenterLabel:"Central do Cliente",techTitle:"Destaques Técnicos",techHighlights:[{title:"PIX IX.br",desc:"Ponto de Troca de Tráfego",link:null},{title:"Data Center ASAP SP1",desc:"São Paulo, Brasil",link:null},{title:"Backbone Próprio",desc:"AS 264144",link:"https://bgp.he.net/AS264144"}],copyrightText:"© {year} ASAP Global Telecom. Todos os direitos reservados.",privacyLabel:"Política de Privacidade e Termos de Uso"},languageSuggestion:{message:"Detectamos que seu navegador está em {language}. Deseja ver o site em inglês?",switchLabel:"Trocar",dismissLabel:"Agora não"}},zw={pages:{home:jw,aAsap:Lw,paraEmpresas:Dw,paraProvedores:Fw,dataCenterColocation:Mw,redeAsap:Bw,contato:Uw,ferramentas:qw,blog:Ww,blogPost:Vw,newsletterForm:Hw},layout:Kw},Gw={seo:{title:"Corporate Internet and Data Center in São Paulo",description:"Dedicated connectivity, data center colocation and anti-DDoS protection for businesses and ISPs. Own infrastructure in SP with up to 99.97% SLA.",canonical:"https://www.asaptelecom.com.br/en"},hero:{scenes:[{video:"/videos/hero-1.mp4",text:"Connectivity and data center for operations that demand stability",boldRanges:[[0,27],[33,61]]},{video:"/videos/hero-2.mp4",text:"Guaranteed bandwidth and direct technical support for mission critical environments",boldRanges:[[0,8],[44,60]]},{video:"/videos/hero-3.mp4",text:"Own network in Sao Paulo integrated with strategic data centers",boldRanges:[[0,23]]},{video:"/videos/hero-4.mp4",text:"Solutions for ISPs and enterprises with high availability",boldRanges:[[14,34],[55,70]]},{video:"/videos/hero-5.mp4",text:"Network engineering since 2015 focused on high availability",boldRanges:[[0,30]]}]},audience:{title:"Connectivity solutions tailored to each type of",highlight:"operation",ctaLabel:"Learn more",cards:[{title:"For ISPs",description:"Solutions for ISPs looking to scale with route control and sustainable growth.",benefits:["IP transit with route engineering and low latency","Access to the IX.br PIX and multiple interconnection options","Layer 2 transport to interconnect POPs with operational consistency"],href:"/para-provedores",gradient:"from-asap-royal to-asap-deep"},{title:"For Enterprises",description:"Dedicated internet for mission critical operations with high availability and direct support.",benefits:["Dedicated connectivity with guaranteed bandwidth","Formal availability commitment for mission critical environments","Specialized technical support available at all times"],href:"/para-empresas",gradient:"from-asap-cyan to-asap-royal"}]},solutions:{title:"End to end",highlight:"connectivity solutions",lead:"Integrated solutions designed to reduce operational risk and ensure high availability.",items:[{title:"IP Transit",description:"IP connectivity with route engineering and scalable capacity for mission critical environments.",productKey:"transito_ip",iconKey:"transito_ip"},{title:"Dedicated Internet",description:"Dedicated internet with guaranteed bandwidth and a formal availability commitment.",productKey:"link_dedicado",iconKey:"link_dedicado"},{title:"Data Center and Colocation",description:"Host your equipment at the ASAP SP1 Data Center in Sao Paulo with high availability and owned infrastructure.",productKey:"data_center_colocation",iconKey:"colocation"},{title:"Anti DDoS",description:"Continuous mitigation and monitoring to reduce the risk of service disruption.",productKey:"anti_ddos",iconKey:"anti_ddos"},{title:"CIX and Peering",description:"Interconnection and traffic exchange to optimize routes and improve network performance.",productKey:"cix",iconKey:"cix"},{title:"Layer 2 Transport",description:"Layer 2 circuits to interconnect locations with low latency and high availability.",productKey:"transporte_l2l",iconKey:"transporte"}]}
179,infrastructure:{title:"Robust",highlight:"infrastructure",lead:"Owned infrastructure in Sao Paulo with operations designed for mission critical environments.",items:[{value:"Over 600 km",label:"Of owned network",description:"Owned fiber backbone across Greater Sao Paulo and selected cities in the state of Sao Paulo."},{value:"IX.br PIX Sao Paulo",label:"Internet Exchange Point",description:"Data center officially certified as an IX.br PIX in Sao Paulo, enabling direct interconnection and more efficient routes with lower latency."},{value:"ASAP SP1 Data Center",label:"Sao Paulo",description:"High availability infrastructure with power, cooling and connectivity redundancy."}]},about:{title:"Connectivity Specialists since ",highlight:"2015",description:"ASAP Telecom was founded with the mission of delivering high-performance connectivity to companies and service providers that cannot afford downtime. With our own backbone, robust infrastructure and presence at Brazil's key Internet Exchange Points, we ensure the stability and speed your business needs to grow.",timelineItems:[{year:"2015",title:"Founded",description:"Started operations focused on corporate connectivity"},{year:"2017",title:"Expansion",description:"Extended fiber optic network across Greater São Paulo"},{year:"2019",title:"PIX IX.br",description:"Connected to Latin America's largest Internet Exchange Point"},{year:"2023",title:"Data Center SP1",description:"Opened ASAP SP1 Data Center in São Paulo"}]},instagram:{handle:"@asaptelecom",title:"From ASAP to your daily life",subtitle:"Follow our latest posts on Instagram",followLabel:"Follow on Instagram",postAlt:"Instagram post",viewPostLabel:"View post"},trustedLogos:{title:"Companies and service providers that trust ASAP"},cta:{titlePrefix:"Lets talk about",titleHighlight:"your",titleSuffix:"connectivity",lead:"Talk to a specialist and understand the best connectivity solution for your company or service provider.",primaryCtaLabel:"Talk to a specialist",primaryCtaWhatsappUrl:"https://wa.me/5511976800303?text=Hello!%20I%20would%20like%20to%20speak%20with%20an%20ASAP%20specialist.",secondaryCtaLabel:"Send a message",secondaryCtaHref:"/contato"},leadForm:{title:"Lets talk about your connectivity",subtitle:"Tell us your needs and our team will get back with the ideal recommendation.",ctaSubmitLabel:"Request contact",ctaWhatsAppLabel:"Chat on WhatsApp",modalTitle:"We received your request",modalMessage:"Our team will get back to you during business hours with the ideal recommendation.",modalCloseLabel:"Ok, thank you",modalWhatsAppLabel:"Chat on WhatsApp",privacyNote:"Your data is protected according to our",privacyLinkLabel:"Privacy Policy",privacyHref:"/politica-de-privacidade-e-termos",whatsappMessage:"Hello! I'd like to talk to an ASAP specialist.",fields:{nameLabel:"Name",namePlaceholder:"Your full name",emailLabel:"Email",emailPlaceholder:"[email protected]",companyLabel:"Company",companyPlaceholder:"Company or ISP name",phoneLabel:"WhatsApp",phonePlaceholder:"+1 (555) 123-4567",messageLabel:"What do you need?",messagePlaceholder:"Briefly describe your needs...",consentLabel:"I agree to be contacted by ASAP Telecom."}}},Xw={seo:{title:"About Us",description:"Meet ASAP Telecom: corporate connectivity and data center specialists in São Paulo."},hero:{h1Prefix:"",h1Highlight:"ASAP Telecom",subtitle:"Own telecom infrastructure and a data center in São Paulo.",lead:"We are a Brazilian infrastructure company with in house network and data center operations. We support ISPs and businesses with a focus on availability, predictability, and direct access to the technical team responsible for day to day operations."},timeline:{title:"Our",highlight:"journey",items:[{year:"2015",title:"Founded and integrated with IX.br",description:"ASAP Telecom was founded as a telecom operator focused on IP capacity and transport for ISPs. In the same period, we began participating in IX.br in São Paulo."},{year:"2016",title:"Core network established in Fortaleza",description:"We implemented our core network in Fortaleza, increasing technical capacity and preparing the foundation for national expansion."},{year:"2017",title:"Entered the enterprise market",description:"We began operating in the enterprise B2B market, providing dedicated connectivity and infrastru
179cture solutions for businesses."},{year:"2019",title:"International integration US ↔ BR",description:"We began operating as an international circuits integrator, serving as a single point of contact for global operations terminating in Brazil."},{year:"2023",title:"ASAP SP1 data center",description:"We launched the ASAP SP1 data center in São Paulo, expanding our portfolio for colocation and critical infrastructure."},{year:"2023",title:"PIX in IX.br São Paulo",description:"We operate as an IX.br PIX in São Paulo, reinforcing our position in the interconnection ecosystem."}]},network:{title:"Own infrastructure and operations for",highlight:"critical environments",description:"ASAP operates telecom and a data center with an in house team and defined processes. When delivery involves partners outside our own network, technical coordination and the point of contact remain with ASAP.",cards:[{title:"Network",subtitle:"Backbone and network operations with in house engineering.",iconKey:"network",items:["Own network in Greater São Paulo.","Partner integration when applicable, coordinated by ASAP."]},{title:"Data Center",subtitle:"ASAP SP1 data center in São Paulo, operated by ASAP.",iconKey:"server",items:["Operations integrated with the network and technical team.","Environment for colocation and related services."]},{title:"Interconnection",subtitle:"PIX ASAP in IX.br as a traffic exchange point.",iconKey:"globe",items:["IX.br is the largest set of internet exchange points in the world.","Interconnection for traffic exchange, peering agreements, and integration with major networks."]}]},whoWeAre:{title:"Who we",highlight:"are",paragraphs:["ASAP Telecom is a Brazilian infrastructure company founded in 2015 as a telecom operator. Over time, we expanded to combine network and data center under the same operational team.","With strategic presence in São Paulo and Fortaleza, we developed our own infrastructure to support internet providers and businesses that depend on connectivity and stable environments for their operations.","Our work is guided by technical accountability, clear processes, and close collaboration with customers and partners."]},coFoundersSection:{title:"The",highlight:"co founders",suffix:"at ASAP",linkedInLabel:"View LinkedIn"},coFounders:[{name:"Arlei Nalesso",role:"Co founder and CTO",description:"Arlei Nalesso has over 20 years of experience in telecom and network infrastructure. He leads the technical architecture at ASAP (backbone, routing, interconnection, and data center) with a focus on availability, security, and predictability for critical operations.",badges:["Co founder and CTO","Networks and IX.br specialist","Data center architecture"],linkedIn:"#linkedin-arlei"},{name:"Fausto Morales",role:"Co founder and CEO",description:"Fausto Morales leads strategy and growth at ASAP, connecting engineering, operations, and customer service to reduce risk and increase predictability for ISPs, enterprises, and technology partners.",badges:["Co founder and CEO","Management and strategy","ISP and enterprise relations"],linkedIn:"#linkedin-fausto"}],videosSection:{title:"Content from",highlight:"ASAP",subtitle:"Videos about our operations, people, and behind the scenes, with stories and content about network and data center.",channelButtonLabel:"Subscribe to our channel",emptyState:"No videos available yet.",videoPlayerTitle:"Video player",closeLabel:"Close"},finalCta:{title:"Next",highlight:"steps",description:"Explore our areas of focus and go deeper into what best fits your context.",links:[{label:"Explore our network",href:"/en/rede-asap"},{label:"Explore the data center",href:"/en/data-center-colocation"},{label:"Services for businesses",href:"/en/para-empresas"},{label:"Services for providers",href:"/en/para-provedores"}]}},Jw={seo:{title:"Connectivity Solutions for Businesses",description:"Dedicated link, data center colocation, L2L transport and anti-DDoS for businesses. 24/7 support and up to 99.97% SLA.",canonical:"https://www.asaptelecom.com.br/en/para-empresas"},hero:{badge:"For Businesses",titlePrefix:"Dedicated connectivity for",titleHighlight:"businesses that need high availability",titleFull:"Dedicated connectivity for businesses that need high availability",titleHighlightRange:[27,65],subtitle:"Dedicated Internet, our own Data Center and direct technical support. Infrastru
179cture for critical operations, focused on stability.",primaryCtaLabel:"Request a proposal",primaryCtaUrl:"https://wa.me/5511976800303?text=I%20want%20to%20request%20a%20proposal%20for%20my%20business",secondaryCtaLabel:"See solutions",secondaryCtaHref:"#solucoes",viabilityCtaLabel:"Check availability",solutionsLinkLabel:"View solutions"},targetAudience:{title:"Who it is for",highlight:"ASAP",description:"Businesses that need stable connectivity to run, scale, and protect systems and branches.",segmentsRow1:[{iconKey:"Landmark",name:"Fintechs"},{iconKey:"ShoppingCart",name:"Ecommerce"},{iconKey:"Store",name:"Marketplaces"},{iconKey:"Factory",name:"Manufacturing"},{iconKey:"Pill",name:"Pharmacies and drugstores"},{iconKey:"Heart",name:"Hospitals"},{iconKey:"Stethoscope",name:"Clinics and practices"},{iconKey:"FlaskConical",name:"Laboratories"},{iconKey:"Megaphone",name:"Marketing agencies"},{iconKey:"Tv",name:"Advertising agencies"}],segmentsRow2:[{iconKey:"Laptop",name:"Technology companies"},{iconKey:"HardDrive",name:"Data Centers"},{iconKey:"Store",name:"Physical stores and retail chains"},{iconKey:"Building",name:"Shopping malls"},{iconKey:"Package",name:"Logistics and transportation"},{iconKey:"GraduationCap",name:"Education (schools, colleges, edtechs)"},{iconKey:"Briefcase",name:"Corporate offices"},{iconKey:"Rocket",name:"Startups"},{iconKey:"Copy",name:"Franchises"}]},whyAsap:{title:"Why your business needs",highlight:"ASAP",description:"Benefits that make a difference in day to day operations.",items:[{iconKey:"Clock",title:"Less downtime",description:"An SLA up to 99.97% helps keep your operation online when it matters most.",highlight:"SLA up to 99.97%"},{iconKey:"DollarSign",title:"Predictable costs",description:"Clear contract, well defined scope and a contractual SLA. Fewer surprises in operations.",highlight:"No surprises"},{iconKey:"Lock",title:"Layered security",description:"Protection against attacks and security control on demand, according to your scenario.",highlight:"Full protection"},{iconKey:"Headphones",title:"Direct technical support",description:"Direct technical support with specialized assistance 24/7.",highlight:"NOC 24/7"}]},comparison:{title:"Why businesses choose",highlight:"ASAP",description:"A direct comparison between ASAP infrastructure and common market solutions.",headers:{criteria:"Criteria",asap:"ASAP Telecom",others:"Common solutions"},rows:[{criterio:"Own infrastructure",asap:"Own backbone and nationwide operations",outros:"Reliance on third parties"},{criterio:"Latency",asap:"Guaranteed ultra low latency",outros:"Variable"},{criterio:"SLA",asap:"Contractual up to 99.97%",outros:"Generic or not available"},{criterio:"Anti DDoS",asap:"Included with the service",outros:"Optional or charged separately"},{criterio:"Technical support",asap:"Direct technical support 24/7",outros:"Limited or outsourced"}]},solutions:{title:"Solutions",highlight:"for businesses",description:"Products designed for businesses that rely on critical connectivity.",benefitsLabel:"Benefits",viabilityCtaLabel:"Check availability online",items:[{iconKey:"link_dedicado",title:"Dedicated Internet",description:"A dedicated connection with guaranteed, symmetric bandwidth. Ideal for businesses that need stability and high performance.",benefits:["100% guaranteed, symmetric bandwidth","Availability SLA up to 99.97%","Static IP included","Proactive monitoring 24/7"],guideSlug:"link-dedicado",productKey:"link_dedicado_corporativo"},{iconKey:"lan_to_lan",title:"L2L transport",description:"Private interconnection between branches and offices. Secure, low latency communication between your sites.",benefits:["Private point to point connection","Guaranteed ultra low latency","End to end encryption","On demand scalability"],guideSlug:"transporte-de-dados-l2l",productKey:"lan_to_lan"},{iconKey:"data_center",title:"Data Center and Colocation",description:"Host your servers at ASAP SP1 Data Center. Infrastructure designed and operated to Tier III standards, with redundancy and high availability.",benefits:["Power and cooling redundancy","Physical security 24/7","High performance connectivity","Easy technical access"],guideSlug:"data-center-colocation",productKey:"data_center_colocation"},{iconKey:"anti_ddos",title:"Anti DDoS",description:"Advanced protection against denial of service attacks. Keep your operation online even under attack.",benefits:["Automatic mitigation in seconds","Protection against L3, L4 and L7 attacks","Real time dashboard","Zero impact on legitimate traffic"],guideSlug:"anti-ddos",productKey:"anti_ddos_empresarial"}]},testimonials:{title:"Success stories with",highlight:"partner companies",description:"Companies across different industries trust ASAP infrastru
179cture to keep their operations connected.",items:[{quote:"With ASAP we were able to eliminate virtually all downtime. The stability of the dedicated connection transformed our ecommerce operation.",name:"Ricardo Almeida",role:"IT Director",company:"TechSolutions",initials:"RA"},{quote:"Moving to ASAP Data Center was the best decision we made. Security, redundancy, and real support.",name:"Fernanda Costa",role:"CTO",company:"FinPay",initials:"FC"},{quote:"ASAP Anti DDoS saved us from a massive attack on Black Friday. Zero impact for our customers.",name:"Marcos Silva",role:"Infrastructure Manager",company:"EcomPlus",initials:"MS"},{quote:"Technical quality and close support make all the difference. ASAP understands what a business that cannot afford downtime needs.",name:"Juliana Santos",role:"CEO",company:"HealthConnect",initials:"JS"}]},cta:{title:"Let us understand your",highlight:"scenario",description:"Our team is ready to understand your scenario and propose a solution that fits your needs.",primaryCtaLabel:"Request a proposal",primaryCtaUrl:"https://wa.me/5511976800303?text=I%20want%20to%20request%20a%20proposal%20for%20my%20business",secondaryCtaLabel:"Send a message",secondaryCtaHref:"/contato"},leadForm:{title:"Let us understand your scenario",subtitle:"Tell us your needs and our team will get back with the ideal recommendation.",ctaSubmitLabel:"Request proposal",ctaWhatsAppLabel:"Chat on WhatsApp",modalTitle:"We received your request",modalMessage:"Our team will get back to you during business hours with the ideal recommendation.",modalCloseLabel:"Ok, thank you",modalWhatsAppLabel:"Chat on WhatsApp",privacyNote:"Your data is protected according to our",privacyLinkLabel:"Privacy Policy",privacyHref:"/politica-de-privacidade-e-termos",whatsappMessage:"I'd like to request a proposal for my business",fields:{nameLabel:"Name",namePlaceholder:"Your full name",emailLabel:"Email",emailPlaceholder:"[email protected]",companyLabel:"Company",companyPlaceholder:"Company name",phoneLabel:"WhatsApp",phonePlaceholder:"+1 (555) 123-4567",messageLabel:"What do you need?",messagePlaceholder:"Briefly describe your needs...",consentLabel:"I agree to be contacted by ASAP Telecom."}}},Qw={seo:{title:"Solutions for Internet Service Providers",description:"IP transit, L2L transport, CIX and network infrastructure for ISPs. Own backbone and direct connection to major peering points.",canonical:"https://www.asaptelecom.com.br/en/para-provedores"},hero:{badge:"For Internet Service Providers",titlePrefix:"Professional connectivity for",titleHighlight:"Internet Service Providers",titleFull:"Professional connectivity for Internet Service Providers",titleHighlightRange:[30,56],subtitle:"Own backbone, IX.br PIX, Anti DDoS and specialized support. Everything your ISP needs to grow with stability and confidence.",primaryCtaLabel:"Talk to an ASAP specialist",primaryCtaUrl:"https://wa.me/5511976800303?text=I%20want%20to%20talk%20to%20ASAP%20engineering",secondaryCtaLabel:"Explore solutions",secondaryCtaHref:"#solucoes",viabilityCtaLabel:"Check availability",solutionsLinkLabel:"View solutions"},whyAsap:{title:"Why ISPs choose",highlight:"ASAP",description:"A direct comparison between ASAP infrastructure and common market solutions.",items:[{iconKey:"Network",title:"Own backbone",description:"Own network with more than 600 km of fiber, giving full control over connectivity quality."},{iconKey:"Globe",title:"ASAP IX.br PIX",description:"Direct access to key traffic exchange points in Brazil, reducing costs and improving routes."},{iconKey:"Zap",title:"Low latency",description:"Infrastructure optimized to deliver the lowest possible latency to your end users."},{iconKey:"Shield",title:"Built in Anti DDoS",description:"Robust protection against volumetric attacks, helping keep your ISP online."},{iconKey:"Clock",title:"NOC 24x7",description:"Operations center monitoring your network 24 hours a day, 7 days a week."},{iconKey:"Headphones",title:"Specialized support",description:"Specialized technical team to act quickly on incidents and changes, with 24x7 support."}]},comparison:{title:"Why ISPs choose",highlight:"ASAP",description:"A direct comparison between ASAP infrastru
179cture and common market solutions.",headers:{criteria:"Criteria",asap:"ASAP Telecom",others:"Common solutions"},rows:[{criterio:"Own infrastructure",asap:"Own backbone and nationwide operations",outros:"Reliance on third parties"},{criterio:"Direct connection to IX.br",asap:"Own PIX with optimized routing",outros:"Indirect or limited access"},{criterio:"Latency",asap:"Truly low, predictable latency",outros:"Variable latency"},{criterio:"SLA",asap:"SLA up to 99.97% (contractual)",outros:"Generic SLA or none"},{criterio:"Anti DDoS",asap:"Real time integrated protection",outros:"Optional or outsourced"},{criterio:"Technical support",asap:"NOC 24x7 with specialized support",outros:"Limited or outsourced support"},{criterio:"Focus on ISPs",asap:"Solutions designed for providers",outros:"Generic solutions"}],postTableCtaText:"Want to confirm coverage in your region? Check availability."},solutions:{title:"Complete solutions for your",highlight:"ISP",description:"Products and services designed specifically for ISP needs.",benefitsLabel:"Benefits",items:[{iconKey:"transito_ip",title:"IP Transit",description:"High performance IP connectivity with strong national and international routing. Ideal for providers that need stability and speed.",benefits:["Optimized routes to key destinations","Availability SLA up to 99.97%","On demand bandwidth flexibility","BGP full table or default route"],guideSlug:"transito-ip",productKey:"transito_ip_provedor"},{iconKey:"cix_asap",title:"CIX: IX.br access over a shared port",description:"CIX is the IX.br model in which one physical connection is shared by several participants. ASAP plays that role in São Paulo: you connect your network to an ASAP POP or to SP1 and join IX.br with your own ASN, with no dedicated port and no fiber to IX.br.",benefits:["Ports from 1 Gbps to 100 Gbps","Multilateral or bilateral session, per IX.br policy","The IX.br contract is yours; the physical link is with ASAP","A second path for networks already on IX.br"],guideSlug:"cix",productKey:"cix_asap"},{iconKey:"anti_ddos",title:"Anti DDoS",description:"Advanced protection against denial of service attacks. Automated mitigation that detects and blocks threats in real time.",benefits:["Automatic mitigation in seconds","Protection against L3, L4 and L7 attacks","Real time monitoring dashboard","No impact on legitimate traffic"],guideSlug:"anti-ddos",productKey:"anti_ddos_provedor"},{iconKey:"transporte_l2l",title:"L2L transport",description:"Dedicated point to point links for POP interconnection and network expansion. Transparent Layer 2 transport with extremely low latency.",benefits:["Ultra low latency between sites","Easier geographic expansion","Scalability from 1G to 100G","Proactive monitoring 24x7"],guideSlug:"transporte-de-dados-l2l",productKey:"transporte_l2l"},{iconKey:"colocation",title:"Colocation",description:"Host your equipment at ASAP SP1 Data Center. Infrastructure designed and operated to Tier III standards, with redundancy and high availability.",benefits:["Direct access to PIX and ASAP backbone","Redundant power with UPS and generator","Precision cooling","Physical security 24x7"],guideSlug:"data-center-colocation",productKey:"colocation_isp"}]},testimonials:{title:"Success stories with",highlight:"partner ISPs",description:"More than 200 providers trust ASAP infrastructure to deliver high performance connectivity to their customers.",items:[{quote:"ASAP completely changed the quality of our operation. Direct access to IX.br reduced latency and improved our end user experience.",name:"Carlos Menezes",role:"Technical Director",company:"NetSul ISP",initials:"CM"},{quote:"With ASAP infrastructure we were able to grow with confidence. NOC 24x7 support really works and makes a difference day to day.",name:"Fernanda Rocha",role:"COO",company:"ConectaPro Telecom",initials:"FR"},{quote:"The combination of an owned backbone, Anti DDoS and specialized engineering gave us peace of mind to scale our subscriber base.",name:"Rafael Oliveira",role:"Network Manager",company:"AlphaNet ISP",initials:"RO"}
179,{quote:"Beyond technical quality, ASAP service is close and consultative. We are not just another customer.",name:"Juliana Pires",role:"CEO",company:"Veloz Internet",initials:"JP"}]},cta:{title:"I want to talk to",highlight:"ASAP",description:"Our team is ready to understand your scenario and propose the right solution for your ISP.",primaryCtaLabel:"Talk to an ASAP specialist",primaryCtaUrl:"https://wa.me/5511976800303?text=I%20want%20to%20talk%20to%20ASAP",secondaryCtaLabel:"Send a message",secondaryCtaHref:"/contato"},leadForm:{title:"I want to talk to ASAP",subtitle:"Tell us your needs and our team will get back with the ideal solution for your ISP.",ctaSubmitLabel:"Request contact",ctaWhatsAppLabel:"Chat on WhatsApp",modalTitle:"We received your request",modalMessage:"Our team will get back to you during business hours with the ideal recommendation.",modalCloseLabel:"Ok, thank you",modalWhatsAppLabel:"Chat on WhatsApp",privacyNote:"Your data is protected according to our",privacyLinkLabel:"Privacy Policy",privacyHref:"/politica-de-privacidade-e-termos",whatsappMessage:"I'd like to talk to ASAP engineering",fields:{nameLabel:"Name",namePlaceholder:"Your full name",emailLabel:"Email",emailPlaceholder:"[email protected]",companyLabel:"ISP / Company",companyPlaceholder:"ISP name",phoneLabel:"WhatsApp",phonePlaceholder:"+1 (555) 123-4567",messageLabel:"What do you need?",messagePlaceholder:"Briefly describe your needs...",consentLabel:"I agree to be contacted by ASAP Telecom."}}},Yw={dcWhy:{eyebrow:"Advantages",title:"Why host at",titleHighlight:"ASAP DC SP
1791",cards:[{iconKey:"Zap",title:"Redundant Power (N+N)",description:"UPS and diesel generators ensure continuous operation."},{iconKey:"Thermometer",title:"Precision Cooling",description:"Temperature and humidity control with full redundancy."},{iconKey:"Shield",title:"Physical & Logical Security",description:"Biometrics, 24h CCTV, armed security and monitoring."},{iconKey:"Globe",title:"Premium Connectivity",description:"PIX IX.br + ASAP private backbone with multiple carriers."}]},visualProofSection:{title:"Visual proof",description:"Control, traceability, and fast upgrades so you operate with less risk and more predictability.",items:[{kind:"image",title:"Real time rack dashboard",caption:"Monitor temperature, humidity, and door status on the rack dashboard. Continuous visibility for predictable operations.",alt:"Rack monitoring dashboard",assetKey:"painelRack",demoUrl:"https://painel.asaptelecom.com.br/",demoLabel:"Try it live",externalCtaLabel:"View dashboard in operation",externalCtaUrl:"https://painel.asaptelecom.com.br/"},{kind:"video",title:"Rack door open alerts with photo",caption:"Get instant alerts on Telegram with photo, date, and time. Real traceability for security and auditing.",src:"alerta-arlei",externalCtaLabel:"Watch video",externalCtaUrl:"https://www.youtube.com/watch?v=EFPxAWzPqGQ&t=537s"},{kind:"video",title:"Digital inventory with QR Code",caption:"Everything identified and traceable in the portal and app. Know what is in each rack without spreadsheets or guesswork.",src:"/videos/datacenter-netbox.mp4",externalCtaLabel:"Watch video",externalCtaUrl:"https://www.youtube.com/watch?v=xrrMe3Spntw&t=152s"},{kind:"youtube",title:"Rack power upgrade in 30 seconds",caption:"Increase power quickly and without interruption. The upgrade happens on the same original PDU, avoiding splitting load across multiple power strips.",youtubeVideoId:"5NckJT1orc0",youtubeThumbnail:"https://img.youtube.com/vi/5NckJT1orc0/maxresdefault.jpg",externalCtaLabel:"Watch video",externalCtaUrl:"https://www.youtube.com/watch?v=5NckJT1orc0"}]},seo:{title:"Data Center Colocation in São Paulo",description:"Tier 3 colocation in São Paulo. Dedicated rack, redundant connectivity, 24/7 monitoring and technical support.",canonical:"https://www.asaptelecom.com.br/en/data-center-colocation"},quickNav:[{label:"Decide in 30s",href:"#decidir-30s"},{label:"Differentiators",href:"#diferenciais"},{label:"Architecture",href:"#arquitetura-seguranca"},{label:"Contract models",href:"#modelos-contratacao"},{label:"Technical",href:"#caracteristicas-tecnicas"},{label:"Location",href:"#localizacao"},{label:"Trusted by",href:"#quem-confia"},{label:"FAQ",href:"#faq"}],hero:{badge:"DATA CENTER IN SÃO PAULO",titlePrefix:"Data Center in",titleHighlight:"São Paulo (SP1)",titleSuffix:"for critical operations with high availability and low latency",titleFull:"Data Center in São Paulo (SP1) for critical operations with high availability and low latency",titleHighlightRange:[15,30],subtitle:"Colocation with real time rack visibility and an operation built to scale with predictability.",keyBullets:["Rack door open alerts with a photo on Telegram","Real time rack dashboard","Rack power upgrade in 30 seconds"],proofLine:"SLA 99.987% | Infrastructure designed to Tier III standards | São Paulo SP1",primaryCtaLabel:"Talk to an ASAP Consultant",primaryCtaUrl:"https://wa.me/5511976800303?text=I%20want%20to%20talk%20to%20an%20ASAP%20Consultant%20about%20Data%20Center",secondaryCtaLabel:"Get a quote by email",secondaryCtaHref:"#proposta"},overviewSection:{title:"Decide in 30 seconds",subtitle:"",bullets:[{title:"Contractual SLA",description:"99.987% uptime."},{title:"Flexible plans",description:"From 1U to Full Rack. CAGE available."},{title:"Power per rack",description:"Up to 7.0 kW per rack. Upgrade in 30 seconds. Higher power available as a custom design."},{title:"Redundant power and autonomy",description:"Two layers of protection to keep servers running during power events."},{title:"Cooling",description:"Contained cold aisle with precision cooling and temperature and humidity control."},{title:"Connectivity",description:"PIX at IX.br São Paulo. Carrier neutral environment with multiple carriers on 
179site."}]},differentialsSection:{title:"Operational",titleHighlight:"differentiators",subtitle:"Control, traceability, and fast upgrades so you operate with less risk.",ctaSecondaryLabel:"Learn more",items:[{iconKey:"Bell",title:"Rack door open alerts with photo",description:"Telegram alerts with photo, date, and time whenever the door opens.",media:{type:"video",src:"alerta-arlei"},guideSlug:"alerta-de-abertura-de-rack",ctaPrimaryLabel:"Watch video",ctaPrimaryUrl:"https://www.youtube.com/watch?v=EFPxAWzPqGQ&t=537s"},{iconKey:"Monitor",title:"Real time rack dashboard",description:"Temperature, humidity, and door status on the monitoring dashboard.",media:{type:"image",src:"painelMonitoramento"},guideSlug:"painel-monitoramento-rack",ctaPrimaryLabel:"View dashboard in operation",ctaPrimaryUrl:"https://publico.painel.asaptelecom.com.br/d/19f4a72a-2eba-440b-a68a-5e71c96acfe0/asap-website-externo?orgId=1&from=now-24h&to=now&timezone=America%2FSao_Paulo&refresh=1m",modalVideoLabel:"Watch video",modalVideoUrl:"https://www.youtube.com/watch?v=EFPxAWzPqGQ&t=537s"},{iconKey:"QrCode",title:"Digital inventory with QR Code",description:"Equipment and cables identified in the portal and app.",media:{type:"video",src:"datacenter-netbox"},guideSlug:"inventario-de-cabos-e-hardware",ctaPrimaryLabel:"Watch video",ctaPrimaryUrl:"https://www.youtube.com/watch?v=xrrMe3Spntw&t=152s"},{iconKey:"Bolt",title:"Rack power upgrade in 30 seconds",description:"Increase power without interruption, on the same original circuit.",media:{type:"youtube",youtubeVideoId:"5NckJT1orc0"},guideSlug:"upgrade-de-rack-sem-interrupcao",ctaPrimaryLabel:"Watch video",ctaPrimaryUrl:"https://www.youtube.com/watch?v=5NckJT1orc0"}]},exclusiveHighlights:{title:"Exclusive differentiators from",titleHighlight:"ASAP",subtitle:"Control, traceability, and fast upgrades so you operate with less risk and more predictability.",items:[{iconKey:"Monitor",title:"Real time rack dashboard",description:"Temperature, humidity, and door status in real time. More predictability and faster diagnostics in daily operations.",productKey:"painel_rack_tempo_real",externalCtaLabel:"View dashboard in operation",externalCtaUrl:"https://painel.asaptelecom.com.br/"},{iconKey:"Bell",title:"Rack door open alerts with photo",description:"Telegram alerts with photo, date, and time whenever the door opens. Practical traceability for security and auditing.",productKey:"alerta_abertura_rack",externalCtaLabel:"Watch video",externalCtaUrl:"https://www.youtube.com/watch?v=EFPxAWzPqGQ&t=537s"},{iconKey:"QrCode",title:"Digital inventory with QR Code",description:"Everything identified and traceable in the portal and app. Know what is in each rack without spreadsheets or guesswork.",productKey:"inventario_cabos",externalCtaLabel:"Watch video",externalCtaUrl:"https://www.youtube.com/watch?v=xrrMe3Spntw&t=152s"},{iconKey:"Bolt",title:"Rack power upgrade in 30 seconds",description:"Fast and predictable upgrade when demand grows. Keeps the same original circuit, without splitting power across multiple PDUs.",productKey:"upgrade_rack",externalCtaLabel:"Watch video",externalCtaUrl:"https://www.youtube.com/watch?v=5NckJT1orc0"}],allGuidesLabel:"View all guides",allGuidesUrl:"/guias"},locationSection:{title:"ASAP Data Center in",titleHighlight:"São Paulo",titleSuffix:"(SP1)",locationName:"São Paulo (SP1)",address:{line1:"Av. das Nações Unidas, 22540 – PV01C",line2:"Shopping SP Market – Jurubatuba",line3:"São Paulo – SP · ZIP 04795-000"},mapUrl:"https://www.google.com/maps/place/ASAP+Telecom+-+Data+Center/@-23.6791821,-46.6977951,637m/data=!3m1!1e3!4m15!1m8!3m7!1s0x94ce5025921696dd:0x2710d1011bd30909!2sAv.+das+Na%C3%A7%C3%B5es+Unidas,+22540+-+Jurubatuba,+S%C3%A3o+Paulo+-+SP+04795-000!3b1!8m2!3d-23.6761714!4d-46.6992381!16s%2Fg%2F11c3q2svdc!3m5!1s0x94ce510c29e542ed:0xe86ddf5d986340b6!8m2!3d-23.6784608!4d-46.6984102!16s%2Fg%2F11w_c244n_?hl=en&entry=ttu",mapEmbedUrl:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3306.616378244405!2d-46.70098512501645!3d-23.67845586590385!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x94ce510c29e542ed%3A0xe86ddf5d986340b6!2sASAP%20Telecom%20-%20D
179ata%20Center!5e1!3m2!1sen!2sbr!4v1773257920778!5m2!1sen!2sbr",mapLoadLabel:"Load map",mapPlaceholderTitle:"Map loads on demand",mapPlaceholderSubtitle:"Click to load the map without affecting page speed.",mapOpenLabel:"Open in Google Maps",mapDirectionsLabel:"Get directions",mapViewPlaceLabel:"Open in Maps",copyAddressLabel:"Copy address",addressCopiedLabel:"Address copied",ctaLabel:"Talk to an ASAP Consultant",ctaUrl:"https://wa.me/5511976800303?text=I%20want%20to%20talk%20to%20an%20ASAP%20Consultant%20about%20Data%20Center"},servicesSection:{title:"Data Center",titleHighlight:"services",items:[{iconKey:"Monitor",title:"View dashboard demonstration",description:"Monitor rack indicators on the monitoring dashboard.",note:"Public demo access.",guideSlug:"painel-monitoramento-rack",productKey:"painel_monitoramento",externalCtaLabel:"View dashboard in operation",externalCtaUrl:"http://painel.asaptelecom.com.br/d/aa9b145f-3e8d-447c-84b9-7d9c1e417cde/rack-rr-asp1-02-008-a?orgId=1&refresh=5s&from=now-6h&to=now&timezone=America%2FSao_Paulo"},{iconKey:"Bell",title:"Real time notifications",description:"Receive notifications on your phone about everything happening in your rack, 24/7.",guideSlug:"alerta-de-abertura-de-rack",productKey:"notificacoes_tempo_real"},{iconKey:"QrCode",title:"Cable and hardware inventory",description:"Cables and equipment mapped with labels accessible via QR Code.",guideSlug:"inventario-de-cabos-e-hardware",productKey:"inventario_cabos"},{iconKey:"Bolt",title:"Power upgrade without interruption",description:"Increase your rack power in seconds without shutting down any equipment.",guideSlug:"upgrade-de-rack-sem-interrupcao",productKey:"upgrade_rack"}]},infraSection:{title:"Architecture and security",titlePrefix:"Architecture and",titleHighlight:"security",titleSuffix:"",ctaLabel:"Request a quote",ctaUrl:"https://wa.me/5511976800303?text=I%20want%20to%20request%20a%20Data%20Center%20quote",items:[{imageKey:"energia-protegida",title:"Power",description:"• N+N redundant electrical architecture with no single point of failure • Protected and redundant power at 220V AC • Dual power circuits per rack • Redundant UPS for electrical continuity • Redundant generator for continuous operation"},{imageKey:"ar-condicionado",title:"Environment",description:"• Redundant precision air c
179onditioning • Contained cold aisle • Temperature and humidity control • Temperature and humidity monitoring with alerts • Designed and operated to Tier III standards"},{imageKey:"seguranca",title:"Security",description:"• CCTV 24x7x365 • Biometric access control • Access control with audit trail • Fire detection and suppression system • Rack door open alerts with photo"}]},ctaBanner:{title:"Need a custom quote?",subtitle:"Tell us your requirements and ASAP will return with the ideal recommendation.",microcopy:"We respond during business hours.",ctaPrimaryLabel:"Get a quote by email",ctaPrimaryHref:"#solicitar-proposta",ctaSecondaryLabel:"Talk on WhatsApp",ctaSecondaryUrl:"https://wa.me/5511976800303?text=I%20want%20to%20talk%20to%20an%20ASAP%20Consultant%20about%20Data%20Center"},faqSection:{title:"Frequently Asked",titleHighlight:"Questions",subtitle:"Find answers to the main questions about Colocation at ASAP.",ctaLabel:"Talk to our team",ctaUrl:"https://wa.me/5511976800303?text=I%20have%20a%20question%20about%20Data%20Center%20Colocation",items:[{question:"What is Colocation?",answer:"Colocation is a service where you host your own servers and network equipment in our Data Center. ASAP provides secure physical space, redundant power, cooling, connectivity, and 24/7 monitoring, while you maintain full control over your hardware and software."},{question:"What are the contract options?",answer:"You can contract by rack unit (U) or full rack (Full Rack). The contract includes protected power, cooling, and environment access. Connectivity services such as ports, IP transit, dedicated links, and LAN to LAN cir
179cuits are optional and can be added as needed."},{question:"What services can I add to Colocation?",answer:"Connectivity services are optional and can be added according to your needs. Examples: IP transit, dedicated link, LAN to LAN circuits, ports, and integrations."},{question:"How does 24/7 support and SLA work?",answer:"Our NOC operates 24 hours a day, 7 days a week. The SLA is contractual, up to 99.987%. We offer incident support, remote service (hands on), infrastructure monitoring, and controlled physical access for maintenance when necessary."},{question:"Tier III: what does it mean in practice?",answer:"Tier III is a reference standard for Data Centers seeking high availability and operational continuity. The concept is associated with redundancy in critical systems and the ability to perform planned maintenance without impact."},{question:"How does physical security work?",answer:"The environment has CCTV 24x7x365 and access control. Access to the Data Center is controlled and performed according to operation and maintenance needs, following the authorization process."},{question:"How does ASAP handle fire?",answer:"The Data Center has a fire fighting and suppression system designed to reduce risk and support operational continuity."},{question:"What is the power per rack?",answer:"Standard delivery is up to 7.0 kW per rack. Above that, we dimension as a custom project according to needs and technical feasibility."},{question:"How does connectivity with IX.br work?",answer:"ASAP is a PIX at IX.br São Paulo. For those who need connectivity in the telecom ecosystem, this facilitates integrations and traffic paths."},{question:"How do I get started?",answer:"Talk to ASAP on WhatsApp to size the contract and optional services. If you prefer, see the technical guides for more details."}]},finalCta:{titlePrefix:"ASAP Data Center: host your server in São Paulo with",titleHighlight:"maximum security and lowest latency",subtitle:"World class infrastructure for your critical operation.",ctaLabel:"I want to know more!",ctaUrl:"https://wa.me/5511976800303?text=I%20want%20to%20know%20more%20about%20ASAP%20Data%20Center%20Colocation"},leadCaptureBlock:{title:"Talk to a specialist",subtitle:"Submit your requirements and we will return with the best option (U, Full Rack, or CAGE).",ctaSubmitLabel:"Request contact",ctaWhatsAppLabel:"Talk on WhatsApp",modalTitle:"Request received",modalMessage:"Our team will get back to you during business hours with the ideal recommendation.",modalCloseLabel:"Ok, thanks",modalWhatsAppLabel:"Talk on WhatsApp",privacyNote:"We record the landing page and campaign parameters.",privacyLinkLabel:"View Privacy Policy",privacyHref:"/politica-de-privacidade-e-termos",fields:{nameLabel:"Name",namePlaceholder:"Your name",emailLabel:"Email",emailPlaceholder:"[email protected]",companyLabel:"Company",companyPlaceholder:"Company name",phoneLabel:"WhatsApp",phonePlaceholder:"(555) 123 4567",messageLabel:"What do you need?",messagePlaceholder:"E.g.: Colocation for 2 racks, 3kW each",consentLabel:"I agree to be contacted by ASAP Telecom."}},leadCaptureSection:{title:"Talk to a specialist",subtitle:"Fill out and our team will reach out.",buttonLabel:"Send contact",successTitle:"Received",successSubtitle:"We will be in touch shortly.",privacyNote:"We record the landing page and campaign parameters.",privacyLinkLabel:"View Privacy Policy",privacyHref:"/politica-de-privacidade-e-termos",fields:{nameLabel:"Name",namePlaceholder:"Your name",emailLabel:"Email",emailPlaceholder:"[email protected]",companyLabel:"Company",companyPlaceholder:"Company name",phoneLabel:"WhatsApp",phonePlaceholder:"(555) 123 4567",messageLabel:"What do you need?",messagePlaceholder:"E.g.: Colocation for 2 racks, 3kW each",consentLabel:"I agree to be contacted by ASAP Telecom."}},contractModelsSection:{title:"Contract models",description:"Compare models and choose the best path to grow without redoing your operation.",columns:[{key:"u",title:"Rack unit",subtitle:"Start small and grow in stages"},{key:"rack",title:"Full Rack",subtitle:"Predictability and rack control"},{key:"cage",title:"CAGE",subtitle:"Physical isolation and governance"}],rows:[{label:"Who is it for",values:{u:"Start with few servers and grow in stages",rack:"Continuous operation with predictability and rack control",cage:"Larger environments with physical isolation and specific requirements"}},{label:"Space scale",values:{u:"1U to 44U",rack:"Full rack",cage:"Multiple racks in dedicated area"}},{label:"Physical isolation",values:{u:"Shared environment",rack:"Exclusive rack",cage:"Isolated area in the data center, customized by project"}}
179,{label:"Access and operation",values:{u:"Access to equipment with ASAP technical assistance for handling and installation",rack:"Access to exclusive rack, with technical support when needed",cage:"Access to area and racks according to project rules, with technical support when needed"}},{label:"Environment visibility",values:{u:"No client dashboard. Monitoring operated by ASAP",rack:"Included at no extra cost: dashboard with temperature, humidity, and door status",cage:"Included at no extra cost: dashboard with temperature, humidity, and door status"}},{label:"Power contract model",values:{u:"Power by equipment power supply",rack:"Client defines and manages rack power, with better capacity utilization",cage:"Client defines and manages environment power, with design and expansion by project"}},{label:"Level of space control",values:{u:"Control by unit, in shared environment",rack:"Full rack control, with organization and standardization of your environment",cage:"Control by area, with expansion governance and project rules"}},{label:"Evolution",values:{u:"Grows to more U or to a dedicated rack",rack:"Evolves with power upgrades and environment expansion",cage:"Evolves by area and number of racks, with design and expansion by project"}},{label:"Recommended for",values:{u:"Lean infrastructure and gradual expansion",rack:"Complete stack and predictable operation",cage:"Expansion and environments with specific requirements"}}],ctaLabel:"Request a colocation quote",ctaAnchorId:"solicitar-proposta"},technicalFeaturesSection:{title:"Data center technical features",description:"What your technical team will ask, answered in 30 seconds",items:[{iconKey:"Server",title:"Space scale",description:"1U to 44U, Full Rack, and CAGE."},{iconKey:"Zap",title:"Power per rack",description:"Up to 7.0 kW per rack. Above that, by project."},{iconKey:"PlugZap",title:"Dual circuit per rack",description:"Two independent feeds per rack for power redundancy and high availability."},{iconKey:"Plug",title:"Power supply",description:"220V AC."},{iconKey:"Layers",title:"Site capacity",description:"Up to 150 racks."},{iconKey:"Network",title:"On site connectivity",description:"Multiple Tier 1 and Tier 2 carriers on site, with freedom of choice."}],ctaLabel:"Request a quote",ctaAnchorId:"solicitar-proposta"},uiLabels:{quickNavAriaLabel:"Page shortcuts",visualProofAltFallback:"Visual proof",heroImageAlt:"ASAP Data Center SP1 in São Paulo",locationMapTitle:"ASAP Data Center SP1 location",defaultDemoLabel:"View dashboard in operation",defaultVideoLabel:"Watch video",closeLabel:"Close"}},Zw={seo:{title:"Our Network and Infrastructure",description:"Own backbone, points of presence in SP and direct connections to major Brazilian IXPs.",canonical:"/rede-asap"},hero:{badge:"ASAP TELECOM NETWORK",title:"Private network in São Paulo with redundant backbone",titleHighlight:"and nationwide delivery",titleFull:"Private network in São Paulo with redundant backbone and nationwide delivery",titleHighlightRange:[53,75],subtitle:"Internet for mission critical operations, with private infrastructure, low latency and direct technical support.",bullets:["Fiber coverage up to 2.5 km from any POP in São Paulo","Nationwide coverage via partners in major capitals and over 2,500 cities served","PIX at IX.br in São Paulo and private ASN 264144"],complementary:"Nationwide service via partners and carriers present in our Data Center",ctaMapLabel:"Check coverage by ZIP code",coverageChecker:{title:"Check coverage on the map",placeholder:"ZIP code or address",buttonLabel:"View on map",microcopy:"Dedicated Internet availability for companies and ISPs. Confirm your profile and see the result on the map."},explorePopsLabel:"Explore POPs",explorePopsHint:"for ISPs"},quickCards:{title:"Network at a glance",items:[{title:"Private network in São Paulo",description:"Private infrastructure for mission critical operations.",iconKey:"Network"},{title:"Redundant backbone",description:"Stable service even when a path fails.",iconKey:"Server"},{title:"POP based coverage",description:"Reference of up to 2.5 km per POP in São Paulo. Check on the map.",iconKey:"MapPin"},{title:"Nationwide coverage via partners",description:"Major capitals and over 2,500 cities served.",iconKey:"Globe"}]}
179,howItWorks:{title:"Check coverage by ZIP code",subtitle:"Choose your profile, enter the ZIP code and see the technical result directly on the map.",tabEmpresas:"Companies",tabProvedores:"ISPs",cards:[{title:"Enter the ZIP code",lines:[{label:"Companies",text:"ZIP code of the address where internet will be installed."},{label:"ISPs",text:"ZIP code to locate the nearest point on the ASAP Network."}]},{title:"See the technical result",lines:[{label:"Companies",text:"Available technology and recommended path (fiber, radio or partners)."},{label:"ISPs",text:"Nearest POP or splice enclosure and reference distance."}]},{title:"Proceed to the next step",lines:[{label:"Companies",text:"View on the map and request a proposal based on the result."},{label:"ISPs",text:"Copy the point data and proceed with the technical and commercial request."}]}]},coreNetwork:{title:"Redundant core across",titleHighlight:"3 physical sites",subtitle:"Backbone resilience with distributed presence at strategic points in Brazil",cards:[{name:"ASAP SP1",location:"São Paulo, SP",description:"Private data center, main connectivity and peering hub"},{name:"Eletronet SP",location:"São Paulo, SP",description:"Core redundancy with access to Eletronet fiber mesh"},{name:"CLS Fortaleza",location:"Fortaleza, CE",description:"Point of presence in the Northeast with access to submarine cables"}]},mapSection:{title:"Explore our",titleHighlight:"Network!",subtitle:"Select a POP on the map to see details and start your request.",coverageText:"Fiber coverage up to 2.5 km from this POP",ctaVerifyCoverage:"Check availability at this location",ctaCopyPop:"Copy POP data",copySuccessToast:"POP data copied!",modalityLabels:{fiber:"Fiber",radio:"Radio",partners:"Partners"},modalityDescriptions:{fiber:"Private fiber optics with a radius of up to 2.5 km from each POP in São Paulo",radio:"On demand service via radio for locations beyond fiber reach",partners:"Nationwide coverage via certified partners in major capitals"},viabilityTool:{title:"Check availability",subtitle:"Dedicated Internet availability. Enter the ZIP code or address and see the result on the map.",microcopy:"The query marks the address on the map and shows the result.",profileLabel:"Profile",profileCorporativo:"Corporate internet",profileProvedor:"Internet service provider",cepPlaceholder:"ZIP code or address",cepInvalid:"Enter a valid ZIP code (8 digits) or address (min. 5 characters)",buttonLabel:"Check on map",loadingLabel:"Checking…",wizardTitle:"Check Dedicated Internet availability",wizardSubtitle:"Enter the ZIP code and see the result on the map.",wizardCepValidating:"Validating ZIP code…",wizardTrustBullets:["Private network in São Paulo","POP based coverage up to 2.5 km when applicable","Nationwide service via partners"],wizardPopsListLabel:"View POPs list",wizardAddressLabel:"Address",wizardNumberLabel:"Street number",wizardNumberPlaceholder:"No.",wizardNumberHint:"Required for accurate coverage check. Without the number, the system falls back to the CEP center.",wizardNumberRequired:"Enter the street number to check coverage.",wizardProfileTitle:"Your profile",wizardProfileCorpLabel:"Companies",wizardProfileCorpDesc:"I want to know if ASAP serves this address.",wizardProfileProvLabel:"ISPs",wizardProfileProvDesc:"I want to locate the nearest service point.",wizardAnalyzing:"Analyzing coverage…",wizardProfileRequired:"Select your profile to continue.",wizardChangeCep:"Change ZIP code",wizardRedoQuery:"Redo query",resultAddressLabel:"Address checked",resultCapacityHint:"Enter the desired capacity to receive the proposal.",resultRadioTitle:"Radio analysis",resultRadioSubtitle:"Enter the details below to simulate.",resultRadioCapacityLabel:"Capacity (Mbps)",resultRadioCapacityPlaceholder:"Select",resultRadioHeightLabel:"Installation height (m)",resultRadioHeightPlaceholder:"E.g.: 30",resultRadioHeightHelp:"Don't know the height?",resultRadioFloorsLabel:"Floors above ground:",resultRadioFloorsPlaceholder:"E.g.: 10",resultRadioEstimated:"estimated",resultRadioAnalyze:"Check radio availability",resultRadioAnalyzing:"Analyzing…",resultRadioCheckLabel:"Check radio availability",resultRadioViable:"Radio viable",resultRadioNotViable:"Radio not viable",resultRadioPopLabel:"POP",resultRadioDistanceLabel:"Distance",resultRadioReceiveProposal:"Request proposal",resultRadioTalkSpecialist:"Talk to a specialist",resultRadioEditData:"Edit data",resultRadioTalkCommercial:"Talk to sales",resultRadioAnalyzeNow:"Analyze by radio now",resultRadioTalkCommercialBelow:"Talk to sales",resultProvOutOfCoverageLabel:"Out of coverage area",resultProvOutOfCoverageSubtitle:"No network point found near the address.",resultProvTalkSpecialist:"Talk to a specialist",resultProvNearestPointLabel:"Nearest point on the ASAP Network",resultProvCeLabel:"Splice enclosure",resultProvDistanceLabel:"Distance",resultProvPopLabel:"Nearest POP",resultProvReceiveProposal:"Request proposal",resultProvCopyData:"Copy point data",resultProvCopied:"Data copied",resultProvCopyError:"Copy failed",resultBackLabel:"Back",resultTalkCommercial:"Talk to sales",resultTitle:"Coverage at your address",corpFiberLabel:"We serve your address with fiber",corpRadioLabel:"Fiber unavailable at this address",corpRadioSubtitle:"We can evaluate radio",corpOutOfCoverageLabel:"Out of direct coverage area",corpOutOfCoverageSubtitle:"We can evaluate coverage via partners",corpCepLabel:"ZIP code checked",corpDistanceLabel:"Distance to our network",corpRefPointLabel:"Reference point",corpCtaFiber:"Request proposal",corpCtaRadio:"Request radio analysis",corpCtaOut:"Request partner coverage analysis",corpCtaLabel:"Request proposal",corpRadioHint:"We can evaluate an alternative via radio",corpRadioButton:"Analyze by radio",corpMapHint:"The result appears marked on the map as 'Your address'.",provClosestPointLabel:"Nearest point on the ASAP Network",provCepLabel:"ZIP code checked",provDistanceLabel:"Distance",provCtaCopy:"Copy point data",provCtaWhatsApp:"Talk to sales",techDetailsLabel:"View technical details",techPopLabel:"Suggested POP",techCeLabel:"Splice enclosure",techDistanceCeLabel:"Distance (SE)",techCeToPopLabel:"SE → POP",corpLegendAddress:"Your address",corpLegendPop:"Suggested POP",provLegendAddress:"Your address",provLegendPoint:"POP or nearest point",popsTitle:"POPs by zone",popsMicrocopy:"Select a POP to see location and start your request.",popsSearchPlaceholder:"Search POP by name or zone",selectedPopCta:"Request proposal for this POP",popsZoneLabel:"zone",popsOpenLabel:"Open POPs",toastSelectProfile:"Select your profile to continue",copyErrorToast:"Copy failed",mobileResultDone:"Query completed",mobileResultView:"View result",searchingAddresses:"Searching addresses...",selectAddressHint:"Select an address from the list to continue",searchAddressAriaLabel:"Search address",cepOrAddressPlaceholder:"ZIP code or full address",capacityPlaceholderCorp:"E.g.: 200 or 5G",capacityPlaceholderProv:"200",unitMbps:"Mbps",popFallbackName:"To be defined",zoneNames:{"Zona Sul":"South Zone","Zona Norte":"North Zone","Zona Leste":"East Zone","Zona Oeste":"West Zone","Grande São Paulo":"Greater São Paulo","Outras localidades":"Other locations"},whatsappRadioNotViable:`Hello! I'd like a connectivity quote.
180
181Profile: {profile}
182Address: {address} (ZIP {cep}{numero})
183Result: Radio not viable
184Details: {capacity} Mbps, {height} m
185
186Link: /rede-asap`,whatsappProviderOutOfCoverage:`Hello! I'm an ISP and I'm interested in the ASAP Network.
187
188Address: {address} (ZIP {cep}{numero})
189Result: Out of coverage
190
191Link: /rede-asap`,whatsappProviderInterest:`Hello! I'm an ISP and I'm interested in the ASAP Network.
192
193Nearest point: {nearestType} {nearestName}
194Distance: {distance}
195Address: {address} (ZIP {cep}{numero})
196
197Link: /rede-asap`,provCopyNearestPoint:"Nearest point",provCopyDistance:"Distance",provCopyAddressChecked:"Address checked",provCopyCoordinates:"Coordinates",popsNoPops:"No POPs registered.",popsResultCount:"result",popsResultCountPlural:"results",errorTitle:"Unable to check availability right now",errorMessage:"Please try again shortly.",errorRetryLabel:"Try again"},viability:{inputPlaceholder:"Address or ZIP code",buttonLabel:"Check availability",loadingLabel:"Checking",errorGeneric:"Unable to check right now. Please try again.",resultTitle:"Availability result",viableLabel:"Available via fiber",notViableLabel:"Subject to analysis",popLabel:"Suggested POP",distanceLabel:"Distance to the network",alternativeLabel:"Suggested alternative: Radio",ctaSendCommercial:"Send to sales team",summaryTemplate:"Address checked: {address}. Suggested delivery: {modalidade}. Suggested POP: {pop}. Distance to the network: {dist} m.",mapUnavailable:"Map unavailable at the moment. The availability check continues to work.",radioAnalyzeButton:"Analyze by radio",radioTitle:"Radio analysis",radioCapacityLabel:"Capacity (Mbps)",radioCapacityPlaceholder:"Select or enter",radioHeightLabel:"Installation height (meters)",radioHeightPlaceholder:"E.g.: 30",radioHeightHelpLink:"Don't know the height?",radioHeightHouseOrBuilding:"Are you in a house or building?",radioHeightHouseLabel:"House",radioHeightBuildingLabel:"Building",radioHeightFloorsLabel:"How many floors?",radioHeightSuggested:"Suggested height: {height} m",radioAnalyzeAction:"Analyze radio",radioLoadingLabel:"Analyzing radio",radioErrorGeneric:"Unable to analyze radio right now. Please try again.",radioViableLabel:"Radio viable",radioNotViableLabel:"Radio subject to analysis",radioOptionUpTo:"Up to {capacity} Mbps",radioOptionDistance:"Distance {distance} km",radioOptionPop:"POP {pop}",radioTechDetailsLabel:"Technical details",radioTechPopsAnalyzed:"POPs analyzed: {count}",radioTechPopsObstructed:"POPs with obstruction: {count}",radioTechRadiosFound:"Radios found: {count}",radioCtaSendCommercial:"Send radio analysis to sales team",radioSummaryTemplate:"Address checked: {address}. Fiber: subject to analysis. Radio: {radioStatus}. Suggested POP: {pop}. Capacity: {capacity} Mbps. Height: {height} m."}},partners:{title:"Nationwide via",titleHighlight:"partners",description:"We serve all of Brazil through certified partners. You talk to ASAP and we manage delivery and SLA.",bullets:["Major capitals served","Over 2,500 cities via partners","SLA managed by ASAP","A single point of contact for nationwide operations"],ctaLabel:"Request availability analysis",ctaMicrocopy:"We respond with the best route and timeline for your city.",form:{badge:"AVAILABILITY PRE-BRIEF",heading:"Nationwide availability via partners",subtitle:"Enter your city. We'll respond with timeline and delivery options.",ufLabel:"State",ufPlaceholder:"Select",ufError:"Select a state.",cityLabel:"City",cityPlaceholder:"Search your city…",cityError:"Enter a city.",cityHintNoUf:"Select a state to list cities.",cityHintEmpty:"Type to search cities in the state.",cityHintNoResult:"No city found. Try another term.",capacityLabel:"Capacity",capacityPlaceholder:"Select (optional)",capacityHint:"Helps estimate timeline.",profileLabel:"Profile",profileEmpresa:"Company",profileProvedor:"ISP",submitLabel:"Request availability analysis",submitSuccess:"Received",submitMicrocopy:"Complete your details below and we'll respond with route and timeline.",submitHint:"Select state and city to submit.",capacityOptions:["I don't know / Need help","100M","200M","500M","1G","2G","5G","10G","Other"],capacityHelpOption:"I don't know / Need help"}},popCard:{addressLabel:"Address",viewOnMapLabel:"View on map",copyLabel:"Copy",copiedLabel:"Copied",copiedToast:"Address copied",closeLabel:"Close"},mapPopupLabels:{addressLabel:"Address",copyAddressLabel:"Copy address",copiedLabel:"Copied!",copiedToast:"Address copied",yourAddressLabel:"Your address",checkedAddressLabel:"Checked address",spliceEnclosureLabel:"Splice Enclosure",distanceFromAddressLabel:"Distance from address",dataCopiedToast:"Data copied",copyDataLabel:"Copy data"},engineerMode:{title:"Engineer Mode",coordinatesLabel:"Coordinates",addressLabel:"Address",distancesLabel:"Distances",addressToCe:"Address → SE",ceToPop:"SE → POP",addressToPopStraight:"Address → POP (straight line)",referenceRadiusLabel:"Reference radius",coverageRadius:"Standard coverage radius: 2.5 km",withinStandard:"✓ Within standard",outsideStandard:"⚠ Outside standard (special project)"},asn:{title:"Backbone resilience across 3 sites",subtitle:"Private ASN with redundant core across 3 sites to keep operations stable even during failures.",bullets:["Automatic alternative routes","Traffic engineering for optimal routing","Continuous monitoring and adjustments"],cta1Label:"Talk to engineering",cta1Url:"",cta2Label:"View public ASN information",techDropdownLabel:"Technical details (optional)",techItems:["Routing policies and preference for performance","Multiple upstream
197s and announced routes","Operational mitigation via engineering (when applicable)","Full information available in public ASN sources"]},modalities:{title:"Service",titleHighlight:"modalities",columns:[{title:"Fiber",iconKey:"Cable",bullets:["Up to 2.5 km from an ASAP POP in São Paulo","Dedicated link with low latency and SLA defined in contract"],ctaLabel:"View coverage on the map",ctaAnchor:"#consultar-viabilidade"},{title:"Radio",iconKey:"Radio",bullets:["When fiber cannot reach or the timeline is critical","Dedicated link with fast deployment, subject to availability"],ctaLabel:"Talk to a specialist",ctaAnchor:"#solicitar-proposta"},{title:"Partners",iconKey:"Globe",bullets:["Coverage outside SP with certified partners","You talk to ASAP and we coordinate delivery"],ctaLabel:"Request availability",ctaAnchor:"#solicitar-proposta"}]},audience:{title:"Who is the",titleHighlight:"ASAP Network for",panels:[{title:"Companies",iconKey:"Building2",bullets:["Stable connectivity for operations that cannot stop","Direct support with a technical team, no handoffs between departments","Assisted deployment and continuous adjustments to maintain performance"],ctaLabel:"Request proposal for companies",whatsappLabel:"Chat on WhatsApp"},{title:"ISPs",iconKey:"Wifi",bullets:["More connectivity and lower latency with peering at IX.br via PIX ASAP","Backbone with private ASN and redundant core across 3 sites","Traffic engineering for optimal routing (IP transit and dedicated transport)"],ctaLabel:"Request proposal for ISPs",whatsappLabel:"Chat on WhatsApp"}]},faq:{title:"Frequently asked",titleHighlight:"questions",subtitle:"Quick answers about coverage, activation and operations.",tabEmpresas:"Companies",tabProvedores:"ISPs",empresas:[{question:"How does the 2.5 km coverage from each POP work?",answer:"Primary coverage is served by POPs in Greater São Paulo. When you enter the ZIP code, you can see if there is a nearby POP and the best delivery format. If you are outside the direct area, we evaluate alternatives via radio or partners, subject to availability."},{question:"When does it make sense to use radio instead of fiber?",answer:"We use radio when it reduces the timeline and construction complexity, or when it is the best option for contingency. The decision depends on the ZIP code, the building scenario and the criticality of the operation."},{question:"What is the difference between the ASAP Network and a traditional carrier?",answer:"At ASAP you speak directly with the engineering team that operates the network. There is no call center and no handoffs between departments. Since we operate our own backbone in São Paulo, we have more control over quality and routing."},{question:"How do I check availability at my address?",answer:"Simply enter the ZIP code on this page. The result shows whether there is POP coverage, and the recommended delivery path (fiber, radio or partners), always based on availability."},{question:"How does zero downtime activation work?",answer:"We plan activation to reduce risk and switchover window, with technical alignment from start to finish. We prepare and validate the link beforehand, and the switch is made at the best time for your operation."}],provedores:[{question:"What is the PIX ASAP at IX.br and why does it matter?",answer:"The PIX ASAP is our certified interconnection point at IX.br in São Paulo. For ISPs, this means a more direct path for peering, lower latency and more routing control in day to day operations."},{question:"How does peering at IX.br via PIX ASAP work?",answer:"You can establish BGP sessions and exchange traffic at IX.br using PIX ASAP as an interconnection point. This helps optimize latency and reduce dependency on long or indirect routes."},{question:"What does 'redundant core across 3 sites' mean?",answer:"It means backbone resilience with alternative paths between sites, allowing stable operations even when there are failures on a segment. In practice: automatic alternative routes and traffic engineering to maintain the best available route."},{question:"How does zero downtime activation/migration work?",answer:"Activation is done with the circuit ready and validated before the switch. This way, the ISP cho
197oses the ideal window to redirect traffic with control and predictability, reducing risk and impact."},{question:"What changes in my ISP's operation (support and response)?",answer:"You gain direct support from a technical team (N2/N3), continuous monitoring and route adjustments when needed. It is a model designed to speed up diagnostics and reduce resolution time during network events."}]},leadForm:{title:"Request your proposal",subtitle:"Fill out the form and our team will respond with the availability analysis",ctaSubmitLabel:"Submit request",ctaWhatsAppLabel:"Talk to a specialist on WhatsApp",modalTitle:"Request submitted!",modalMessage:"Our team will contact you shortly with the availability analysis for your address.",modalCloseLabel:"Close",modalWhatsAppLabel:"Chat on WhatsApp",privacyNote:"Your data is protected under our",privacyLinkLabel:"Privacy Policy",privacyHref:"/politica-de-privacidade-e-termos",whatsappMessage:"I'd like to check ASAP Network coverage",fields:{nameLabel:"Name",namePlaceholder:"Your full name",emailLabel:"Email",emailPlaceholder:"[email protected]",companyLabel:"Company",companyPlaceholder:"Company name",phoneLabel:"WhatsApp",phonePlaceholder:"+55 (11) 99999 9999",messageLabel:"Message",messagePlaceholder:"Describe your needs (address, service type, etc.)",consentLabel:"I agree to be contacted by ASAP Telecom."}}},eP={seo:{title:"Contact Us",description:"Request a quote for dedicated link, data center colocation or enterprise connectivity solutions.",canonical:"https://www.asaptelecom.com.br/en/contato"},hero:{badge:"Contact",title:"Talk to ",titleHighlight:"ASAP Telecom",subtitle:"Reach the right team without wasting time.",subtitleLines:["Reach the right team without wasting time."],quickActions:{title:"What do you need?",subtitle:"Choose an option.",description:"",buttons:[{label:"Sales",action:"scroll",href:"#dept-comercial",variant:"primary"},{label:"Support",action:"scroll",href:"#dept-suporte",variant:"secondary"},{label:"Finance",action:"scroll",href:"#dept-financeiro",variant:"secondary"},{label:"Customer Access",action:"scroll",href:"#acesso-clientes",variant:"secondary"}],helperText:""}},departments:{title:"Our ",titleHighlight:"Departments",subtitle:"Contact the team responsible for your request.",whatsappButtonLabel:"WhatsApp",items:[{iconKey:"users",title:"Sales",description:"Proposals, new projects, service upgrades and technical visits.",email:"[email protected]",phone:"+55 (11) 97680-0303",whatsapp:"https://wa.me/5511976800303?text=Hello!%20I'd%20like%20to%20speak%20with%20the%20sales%20team.",hours:"Mon to Fri, 9am to 6pm",primaryCta:{label:"WhatsApp Sales",href:"https://wa.me/5511976800303?text=Hello!%20I'd%20like%20to%20speak%20with%20the%20sales%20team.",iconKey:"whatsapp",isExternal:!0},secondaryCta:{label:"Send a message",href:"#contact-form",iconKey:"send",action:"scroll"},microReinforcement:"Business hours response."},{iconKey:"headphones",title:"Technical Support",description:"Proactive monitoring, specialized technical support and 24/7 operational assistance.",email:"[email protected]",phone:"+55 (11) 2667-1208",whatsapp:"https://wa.me/5511976800303?text=I%20need%20technical%20support.",hours:"Available 24/7",primaryCta:{label:"Open ticket",href:"https://chamado.asaptelecom.com.br/",iconKey:"external",isExternal:!0},secondaryCta:{label:"Support WhatsApp",href:"https://wa.me/5511976800303?text=I%20need%20technical%20support.",iconKey:"whatsapp",isExternal:!0},microReinforcement:"24-hour support for active clients."},{iconKey:"handshake",title:"Finance",description:"Invoices, payments, contracts and financial information.",email:"[email protected]",phone:"+55 (11) 97680-0303",whatsapp:"https://wa.me/5511976800303?text=Hello!%20I%20need%20help%20with%20invoices%20or%20payments.",hours:"Mon to Fri, 9am to 6pm",primaryCta:{label:"Send email",href:"mailto:[email protected]",iconKey:"mail"},secondaryCta:{label:"Finance WhatsApp",href:"https://wa.me/5511976800303?text=Hello!%20I%20need%20help%20with%20invoices%20or%20payments.",iconKey:"whatsapp",isExternal:!0},microReinforcement:"Business hours response."}]}
197,customerAccess:{title:"Customer access",subtitle:"Access to exclusive tools for your services.",items:[{title:"Finance",description:"Statements, invoices, and second copy of bills.",note:"Access restricted to the authorized finance contact.",ctaLabel:"Open finance portal",href:"https://sac.asaptelecom.com.br/"},{title:"Support tickets",description:"Open and track support tickets.",note:"Access for registered technical users.",ctaLabel:"Open support portal",href:"https://chamado.asaptelecom.com.br/"},{title:"Rack dashboard",description:"Real time rack telemetry and status.",note:"Operational access restricted per customer.",ctaLabel:"Open rack dashboard",href:"https://painel.asaptelecom.com.br/"},{title:"Link monitoring",description:"Real time link status and traffic.",note:"Access restricted by contract and role.",ctaLabel:"Open monitoring",href:"https://zabbix.asaptelecom.com.br/"}]},location:{locationName:"São Paulo (SP1)",address:{line1:"Av. das Nações Unidas, 22540 – PV01C",line2:"Shopping SP Market – Jurubatuba",line3:"São Paulo – SP · ZIP 04795-000"},mapEmbedUrl:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3306.616378244405!2d-46.70098512501645!3d-23.67845586590385!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x94ce510c29e542ed%3A0xe86ddf5d986340b6!2sASAP%20Telecom%20-%20Data%20Center!5e1!3m2!1sen!2sbr!4v1773257920778!5m2!1sen!2sbr",mapUrl:"https://www.google.com/maps/place/ASAP+Telecom+-+Data+Center/@-23.6791821,-46.6977951,637m/data=!3m1!1e3!4m15!1m8!3m7!1s0x94ce5025921696dd:0x2710d1011bd30909!2sAv.+das+Na%C3%A7%C3%B5es+Unidas,+22540+-+Jurubatuba,+S%C3%A3o+Paulo+-+SP+04795-000!3b1!8m2!3d-23.6761714!4d-46.6992381!16s%2Fg%2F11c3q2svdc!3m5!1s0x94ce510c29e542ed:0xe86ddf5d986340b6!8m2!3d-23.6784608!4d-46.6984102!16s%2Fg%2F11w_c244n_?hl=en&entry=ttu",mapPlaceholderTitle:"Map loaded on demand",mapPlaceholderSubtitle:"Click to view the location",mapLoadLabel:"Load map",mapDirectionsLabel:"Get directions",mapViewPlaceLabel:"View on map",copyAddressLabel:"Copy address",addressCopiedLabel:"Copied!",visitCtaLabel:"Schedule a technical visit",visitCtaMessage:"I'd like to schedule a technical visit to the ASAP SP1 Data Center."},topicPrefills:{commercial:`Source: Sales
198`},leadForm:{title:"Send us a message",subtitle:"Fill out the form and our team will get back to you as soon as possible.",ctaSubmitLabel:"Send Message",ctaWhatsAppLabel:"WhatsApp Sales",modalTitle:"Message Sent!",modalMessage:"Thank you for reaching out. Our team will respond shortly.",modalCloseLabel:"Close",modalWhatsAppLabel:"Chat on WhatsApp",privacyNote:"Your data is protected under our",privacyLinkLabel:"Privacy Policy",privacyHref:"/politica-de-privacidade-e-termos",fields:{nameLabel:"Name",namePlaceholder:"Your full name",emailLabel:"Email",emailPlaceholder:"[email protected]",companyLabel:"Company",companyPlaceholder:"Company name",phoneLabel:"Phone / WhatsApp",phonePlaceholder:"+55 (11) 99999-9999",messageLabel:"Message",messagePlaceholder:"Tell us how we can help your business...",consentLabel:"I agree to be contacted by ASAP Telecom."},whatsappMessage:"Hello! I'd like to talk to the ASAP Telecom team."}},tP={seo:{title:"Tools for Clients",description:"Looking glass, speed test and resources to monitor your connectivity.",canonical:"/ferramentas-asap"},hero:{title:"Technical ",titleHighlight:"tools",subtitle:"Useful resources for diagnostics, monitoring and network analysis."},tools:{accessLabel:"Access",learnMoreLabel:"Learn more about",items:[{iconKey:"gauge",title:"Speed Test",description:"Measure the real speed of your internet connection.",externalUrl:"http://asap.speedtestcustom.com/"},{iconKey:"radar",title:"Looking Glass",description:"Query BGP routing information from our network.",externalUrl:"https://lg.asaptelecom.com.br/"},{iconKey:"globe",title:"WHOIS Lookup",description:"Check domain and IP information.",externalUrl:"https://registro.br/tecnologia/ferramentas/whois/"},{iconKey:"route",title:"Traceroute",description:"Trace the path of packets to their destination.",externalUrl:"https://ping.pe/asaptelecom.com.br"},{iconKey:"activity",title:"Network Analysis",description:"Monitor the operational status of the ASAP Network.",externalUrl:"https://www.isp.tools/"},{iconKey:"shield",title:"Support Tickets",description:"Open and track technical support tickets.",externalUrl:"https://chamado.asaptelecom.com.br/"}]},monitoring:{title:"Monitoring ",titleHighlight:"Portal",subtitle:"Full access to your infrastru
198cture monitoring dashboard.",linkDedicadoLabel:"Dedicated link monitoring",rackLabel:"Rack monitoring",pendingBadge:"Pending",pendingTooltip:"Link not yet configured",features:[{iconKey:"barChart3",title:"Real-Time Circuit View",description:"Track bandwidth usage, Percentile 95 burst and circuit status in real time."},{iconKey:"bell",title:"Rack Alerts on Telegram",description:"Get automatic alerts when a rack door is opened or closed, sent directly to Telegram."},{iconKey:"shieldCheck",title:"Validated Network Alerts",description:"Network incidents are reported via WhatsApp or Telegram, validated by N1 to avoid false positives."},{iconKey:"clock",title:"Full History",description:"Access up to 1 year of rack and IP circuit history with reports and metrics."}]},materials:{title:"Technical ",titleHighlight:"Materials",subtitle:"Documentation, playbooks and presentations to learn more about our services.",downloadLabel:"Download",emptyTitle:"New materials coming soon",emptySubtitle:"We are preparing documentation and resources for you."},youtube:{title:"Videos",subtitle:"Watch our videos with tips, tutorials and connectivity news.",channelButtonLabel:"Subscribe to our channel",emptyState:"No videos added yet.",videoPlayerTitle:"Video player",closeLabel:"Close"},uptime:{title:"Uptime ",titleHighlight:"Calculator",subtitle:"Calculate the maximum allowed downtime for each SLA level.",inputLabel:"SLA (%)",inputPlaceholder:"E.g.: 99.95",calculateLabel:"Calculate",periodLabel:"Period",downtimeLabel:"Allowed downtime",periods:{daily:"Daily",weekly:"Weekly",monthly:"Monthly",quarterly:"Quarterly",yearly:"Yearly"},copyLabel:"Copy",copiedLabel:"Copied!",referenceLabel:"Based on uptime.is"}},rP={seo:{title:"Telecom and Connectivity Blog",description:"Articles, guides and news about corporate internet, data center, security and connectivity.",canonical:"/blog"},hero:{badge:"Blog",title:"Technical content on ",titleHighlight:"connectivity and infrastructure",subtitle:"Field lessons, operational analyses and practical insights from the team that designs, connects and sustains real networks. Published by ASAP Telecom's technical and commercial team."},highlights:{title:"Recommended readings",subtitle:"Editorial selection with the most relevant content for those who operate or hire network infrastructure."},catalog:{srTitle:"Blog Articles",allCategories:"All",loading:"Loading...",errorMessage:"Failed to load posts. Please try again.",emptyAll:"No posts published yet.",emptyCategory:"No posts found in this category.",showAll:"View all posts",paginationLabel:"Pagination",prevPage:"Previous page",nextPage:"Next page",pageLabel:"Page",filterLabel:"Browse by topic"},expertise:{title:"Content based on ",titleHighlight:"hands on experience",description:"The articles published on this blog reflect ASAP Telecom's experience in real connectivity, infrastructure and network operation projects. Our technical and commercial team shares lessons learned, best practices and telecom market analyses."},newsletter:{title:"Follow our ",titleHighlight:"editorial content",subtitle:"Technical articles, market analyses and updates on connectivity and infrastructure. Straight from the operation to your inbox."}},aP={backLabel:"Back to Blog",notFoundTitle:"Post not found",notFoundMessage:"The article you are looking for does not exist or has been removed.",notFoundCta:"Back to Blog",authorFallback:"ASAP Telecom Team",authorSubtitle:"Telecom Specialists",shareLabel:"Share this article",shareCta:"Share",ctaTitle:"Follow our editorial content",ctaSubtitle:"Technical articles, market analyses and updates on connectivity and infrastructure. Talk to the ASAP Telecom team.",ctaButton:"Talk to ASAP",ctaWhatsAppText:"I came from the blog and would like to talk to a specialist",relatedTitle:"Continue reading",relatedSubtitle:"Related content selected by the editorial team",relatedCta:"View all articles",defaultCategory:"General",editorialBlockTitle:"Content based on hands on experience",editorialBlockText:"The articles published on this blog reflect ASAP Telecom's experience in real connectivity, infrastru
198cture and network operation projects. Our technical and commercial team shares lessons learned, best practices and telecom market analyses.",readMore:"Read article"},nP={placeholder:"[email protected]",consentLabel:"I agree to receive communications from ASAP.",submitLabel:"Subscribe",loadingLabel:"Subscribing...",successLabel:"Subscribed!",errorMessage:"Subscription failed. Please try again.",emailInvalid:"Please enter a valid email address",consentRequired:"You must agree to continue",ariaLabel:"Your email"},oP={header:{navItems:[{label:"About ASAP",href:"/en/a-asap"},{label:"For ISPs",href:"/en/para-provedores"},{label:"For Businesses",href:"/en/para-empresas"},{label:"Data Center",href:"/en/data-center-colocation"},{label:"ASAP Network",href:"/en/rede-asap"},{label:"Tools",href:"/en/ferramentas-asap"}],ctaContactLabel:"Contact",search:{placeholder:"Search the ASAP website...",openLabel:"Open search",closeLabel:"Close search",noResults:"No results found.",productsTitle:"Products & Solutions",blogTitle:"Blog Articles",guidesTitle:"Service Guides",toolsTitle:"Tools",popsTitle:"Points of Presence",materialsTitle:"Technical Materials",pagesTitle:"Pages"}},footer:{aboutText:"Specialists in business internet and connectivity solutions for companies and ISPs. High performance fiber with guaranteed SLA.",slogan:"Ligando Você ao Mundo",navigationTitle:"Navigation",quickLinks:[{label:"Home",href:"/"},{label:"About ASAP",href:"/en/a-asap"},{label:"For ISPs",href:"/en/para-provedores"},{label:"For Businesses",href:"/en/para-empresas"},{label:"Data Center",href:"/en/data-center-colocation"},{label:"ASAP Network",href:"/en/rede-asap"},{label:"Tools",href:"/ferramentas-asap"},{label:"Blog",href:"/blog"},{label:"Contact",href:"/en/contato"}],contactTitle:"Contact",phoneLabel:"Phone",emailLabel:"Email",addressLabel:"Location",addressValue:"São Paulo, SP, Brazil",clientCenterLabel:"Customer Portal",techTitle:"Technical Highlights",techHighlights:[{title:"PIX IX.br",desc:"Internet Exchange Point",link:null},{title:"ASAP SP1 Data Center",desc:"São Paulo, Brazil",link:null},{title:"Own Backbone",desc:"AS 264144",link:"https://bgp.he.net/AS264144"}],copyrightText:"© {year} ASAP Global Telecom. All rights reserved.",privacyLabel:"Privacy Policy and Terms of Use"},languageSuggestion:{message:"We detected your browser language is {language}. Would you like to view the site in Portuguese?",switchLabel:"Switch",dismissLabel:"Not now"}},iP={pages:{home:Gw,aAsap:Xw,paraEmpresas:Jw,paraProvedores:Qw,dataCenterColocation:Yw,redeAsap:Zw,contato:eP,ferramentas:tP,blog:rP,blogPost:aP,newsletterForm:nP},layout:oP},sP={"pt-BR":zw,en:iP};function kf(){if(typeof window>"u")return"pt-BR";const t=localStorage.getItem("asap_locale");return t==="en"||t==="pt-BR"?t:"pt-BR"}function ft(t){return sP[t||kf()]}const lP=[{name:"IP Dedicado",href:"/para-empresas",keywords:["ip","dedicado","internet"]},{name:"Link Corporativo",href:"/para-empresas",keywords:["link","corporativo","empresa"]},{name:"Colocation",href:"/data-center-colocation",keywords:["colocation","rack","hosting"]},{name:"Data Center SP1",href:"/data-center-colocation",keywords:["data","center","sp1","são paulo"]},{name:"Conexão IX.br",href:"/para-provedores",keywords:["ix","pix","conexão","peering"]},{name:"Rede ASAP",href:"/rede-asap",keywords:["rede","backbone","fibra"]},{name:"Transporte L2/L3",href:"/para-provedores",keywords:["transporte","l2","l3","mpls"]},{name:"Cloud Connect",href:"/para-empresas",keywords:["cloud","nuvem","connect"]}],cP=[{name:"Sobre a ASAP",href:"/a-asap",keywords:["sobre","quem somos","história","fundadores","about"]},{name:"Contato",href:"/contato",keywords:["contato","telefone","email","whatsapp","contact"]},{name:"Política de Privacidade",href:"/politica-privacidade",keywords:["privacidade","lgpd","termos","privacy"]},{name:"Ferramentas",href:"/ferramentas-asap",keywords:["ferramentas","looking glass","speedtest","tools"]},{name:"Blog",href:"/blog",keywords:["blog","artigos","notícias","articles"]},{name:"Rede ASAP",href:"/rede-asap",keywords:["rede","backbone","pops","network"]}];function je(t,e){return t?t.toLowerCase().includes(e):!1}function dP(t,e){const r=t.trim().toLowerCase(),{data:a=[]}=Ta({queryKey:["search-blog"],queryFn:async()=>{const{data:v,error:w}=await j.from("blog_posts").select("id, title, slug, summary, category").eq("published",!0).limit(50);if(w)throw w;return v}}),{data:n=[]}=Ta({queryKey:["search-guides"],queryFn:async()=>{const{data:v,error:w}=await j.from("service_guides").select("id, titulo, slug, resumo, categoria").eq("ativo",!0);if(w)throw w;return v}}),{data:o=[]}=Ta({queryKey:["search-tools"],queryFn:async()=>{const{data:v,error:w}=await j.from("site_tools").select("id, title, description, href").eq("ativo",!0);if(w)throw w;return v}}),{data:i=[]}=Ta({queryKey:["search-pops"],queryFn:async()=>{const{data:v,error:w}=await j.from("pops").select("id, nome, city, state").eq("ativo",!0).limit(100);if(w)throw w;return v}}),{data:s=[]}=Ta({queryKey:["search-materials"],queryFn:async()=>{const{data:v,error:w}=await j.from("technical_materials").select("id, title, description, file_url").eq("published",!0).eq("visibility","public");if(w)throw w;return v}});if(!r)return{filteredProducts:[],filteredBlog:[],filteredGuides:[],filteredTools:[],filteredPops:[],filteredMaterials:[],filteredPages:[],hasResults:!1};const l=v=>e?v.slice(0,e):v,d=l(lP.filter(v=>je(v.name,r)||v.keywords.some(w=>w.includes(r)))),u=l(a.filter(v=>je(v.title,r)||je(v.summary,r)||je(v.category,r))),p=l(n.filter(v=>je(v.titulo,r)||je(v.resumo,r)||je(v.categoria,r))),f=l(o.filter(v=>je(v.title,r)||je(v.description,r))),h=l(i.filter(v=>je(v.nome,r)||je(v.city,r)||je(v.state,r))),b=l(s.filter(v=>je(v.title,r)||je(v.description,r))),y=l(cP.filter(v=>je(v.name,r)||v.keywords.some(w=>w.includes(r)))),g=d.length>0||u.length>0||p.length>0||f.length>0||h.length>0||b.length>0||y.length>0;return{filteredProducts:d,filteredBlog:u,filteredGuides:p,filteredTools:f,filteredPops:h,filteredMaterials:b,filteredPages:y,hasResults:g}}const Kc=({onClose:t})=>{const[e,r]=m.useState(!1),[a,n]=m.useState(""),o=m.useRef(null),i=m.useRef(null),s=m.useRef(null),l=wo(),{layout:d}=ft(),u=d.header.search,{filteredProducts:p,filteredBlog:f,filteredGuides:h,filteredTools:b,filteredPops:y,filteredMaterials:g,filteredPages:v,hasResults:w}=dP(a,3),P=a.trim().length>0;m.useEffect(()=>{e&&setTimeout(()=>{var E,D;(E=o.current)==null||E.focus(),(D=i.current)==null||D.focus()},100)},[e]),m.useEffect(()=>{const E=D=>{s.current&&!s.current.contains(D.target)&&x()};return e&&document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[e]),m.useEffect(()=>{const E=D=>{D.key==="Escape"&&x()};return e&&document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[e]);const x=()=>{r(!1),n(""),t==null||t()},C=()=>x(),S=E=>{E.preventDefault(),a.trim()&&(x(),l(`/busca?q=${encodeURIComponent(a.trim())}`))},A=E=>{E.key==="Enter"&&a.trim()&&(x(),l(`/busca?q=${encodeURIComponent(a.trim())}`))},I=(E,D)=>D.length===0?null:c.jsxs("div",{className:"mb-4 last:mb-0",children:[c.jsx("h3",{className:"text-xs font-semibold text-[#1F5EFF] uppercase tracking-wider mb-2 px-2",children:E}),c.jsx("div",{className:"space-y-0.5",children:D.map(L=>{const R=c.jsxs(c.Fragment,{children:[c.jsx("p",{className:"text-white/90 text-sm line-clamp-1",children:L.label}),L.sub&&c.jsx("p",{className:"text-white/50 text-xs line-clamp-1",children:L.sub})]}),J="block px-3 py-2 rounded-lg hover:bg-white/10 transition-colors";return L.isExternal?c.jsx("a",{href:L.href,target:"_blank",rel:"noopener noreferrer",onClick:C,className:J,children:R},L.key):c.jsx(dt,{to:L.href,onClick:C,className:J,children:R},L.key)})})]}),T=[{title:u.productsTitle,items:p.map(E=>({key:E.name,label:E.name,href:E.href}))},{title:u.blogTitle,items:f.map(E=>({key:E.id,label:E.title,sub:E.category,href:`/blog/${E.slug}`}))},{title:u.guidesTitle,items:h.map(E=>({key:E.id,label:E.titulo,sub:E.resumo||void 0,href:`/guias/${E.slug}`}))},{title:u.toolsTitle,items:b.map(E=>{var D;return{key:E.id,label:E.title,sub:E.description||void 0,href:E.href||"/ferramentas-asap",isExternal:(D=E.href)==null?void 0:D.startsWith("http")}})},{title:u.popsTitle,items:y.map(E=>
198({key:E.id,label:E.nome,sub:[E.city,E.state].filter(Boolean).join(", ")||void 0,href:"/rede-asap"}))},{title:u.materialsTitle,items:g.map(E=>({key:E.id,label:E.title,sub:E.description||void 0,href:E.file_url,isExternal:!0}))},{title:u.pagesTitle,items:v.map(E=>({key:E.href,label:E.name,href:E.href}))}],O=c.jsxs(c.Fragment,{children:[P&&!w&&c.jsx("p",{className:"text-white/50 text-center py-6 text-sm",children:u.noResults}),T.map(E=>I(E.title,E.items))]});return c.jsxs("div",{ref:s,className:"relative",children:[!e&&c.jsx("button",{onClick:()=>r(!0),className:"p-2 text-white/70 hover:text-white transition-colors cursor-pointer","aria-label":u.openLabel,children:c.jsx(Yo,{className:"w-5 h-5"})}),e&&c.jsxs(c.Fragment,{children:[c.jsxs("form",{onSubmit:S,className:"hidden lg:flex items-center gap-2 bg-[#0F1B33]/80 backdrop-blur-sm border border-[#1F5EFF]/40 rounded-lg px-3 py-1.5 animate-in slide-in-from-right-4 duration-200",children:[c.jsx(Yo,{className:"w-4 h-4 text-white/50"}),c.jsx("input",{ref:o,id:"header-search-desktop",name:"q",autoComplete:"off",type:"text",value:a,onChange:E=>n(E.target.value),onKeyDown:A,placeholder:u.placeholder,"aria-label":"Buscar no site",className:"bg-transparent border-none outline-none text-white placeholder:text-white/40 text-sm w-64 focus:ring-0"}),c.jsx("button",{type:"button",onClick:x,className:"p-1 text-white/50 hover:text-white transition-colors","aria-label":u.closeLabel,children:c.jsx(Tr,{className:"w-4 h-4"})})]}),c.jsx("div",{className:"lg:hidden fixed inset-0 z-[100] bg-[#081425] animate-in fade-in duration-200",children:c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("form",{onSubmit:S,className:"flex items-center gap-3 p-4 border-b border-white/10",children:[c.jsx(Yo,{className:"w-5 h-5 text-white/50"}),c.jsx("input",{ref:i,id:"header-search-mobile",name:"q",autoComplete:"off",type:"text",value:a,onChange:E=>n(E.target.value),onKeyDown:A,placeholder:u.placeholder,"aria-label":"Buscar no site",className:"flex-1 bg-transparent border-none outline-none text-white placeholder:text-white/40 text-base"}),c.jsx("button",{type:"button",onClick:x,className:"p-2 text-white/70 hover:text-white","aria-label":u.closeLabel,children:c.jsx(Tr,{className:"w-6 h-6"})})]}),c.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:O})]})}),P&&c.jsx("div",{className:"hidden lg:block absolute top-full right-0 mt-2 w-96 bg-[#0F1B33]/95 backdrop-blur-md border border-[#1F5EFF]/30 rounded-xl shadow-xl overflow-hidden z-50 animate-in fade-in slide-in-from-top-2 duration-200",children:c.jsx("div",{className:"max-h-[500px] overflow-y-auto p-3",children:O})})]})]})},hl=new Set(["/","/a-asap","/para-empresas","/para-provedores","/data-center-colocation","/rede-asap","/contato","/ferramentas-asap","/blog"]),li="asap_locale_suggest_dismissed";function uP(){var e;const t=((e=navigator.languages)==null?void 0:e[0])||navigator.language||"";return t.startsWith("en")?"en":t.startsWith("pt")?"pt-BR":null}function hP(t){return t.startsWith("/en/")||t==="/en"?"en":"pt-BR"}function pP(t,e){let r;return t==="/en"?r="/":t.startsWith("/en/")?r=t.slice(3):r=t,e==="en"?r==="/"?"/en":hl.has(r)?"/en"+r:"/en":r}function fP(t){return t==="en"?"English":"Português"}function mP(){const[t,e]=m.useState(!1),[r,a]=m.useState(null),n=wo(),o=cn(),{layout:i}=ft();m.useEffect(()=>{try{if(localStorage.getItem(li)==="true"){e(!1);return}}catch{}const p=uP();if(!p){e(!1);return}const f=hP(o.pathname);p!==f?(a(p),e(!0)):e(!1)},[o.pathname]);const s=()=>
198{if(!r)return;try{localStorage.setItem("asap_locale",r),localStorage.setItem(li,"true")}catch{}const p=pP(o.pathname,r);e(!1),n(p)},l=()=>{try{localStorage.setItem(li,"true")}catch{}e(!1)};if(!t||!r||!i.languageSuggestion)return null;const d=fP(r),u=i.languageSuggestion.message.replace("{language}",d);return c.jsxs("div",{className:ne("w-full bg-primary/90 backdrop-blur-sm text-primary-foreground py-2 px-4","flex items-center justify-center gap-3 text-xs sm:text-sm"),children:[c.jsx(Jn,{className:"w-4 h-4 flex-shrink-0 opacity-80"}),c.jsx("span",{className:"text-center",children:u}),c.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[c.jsx(Pt,{size:"sm",variant:"secondary",className:"h-7 px-3 text-xs font-medium",onClick:s,children:i.languageSuggestion.switchLabel}),c.jsx("button",{onClick:l,className:"p-1 hover:bg-white/10 rounded transition-colors","aria-label":i.languageSuggestion.dismissLabel,children:c.jsx(Tr,{className:"w-4 h-4"})})]})]})}const gP=({isRedeMapMode:t=!1})=>{const[e,r]=m.useState(!1),[a,n]=m.useState(!1),o=cn(),i=wo(),{layout:s}=ft(),l=s.header.navItems;m.useEffect(()=>{const b=()=>n(window.scrollY>8);return b(),window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]);const d=o.pathname.startsWith("/en/")||o.pathname==="/en"?"en":"pt-BR",u=b=>b==="/"?o.pathname==="/":o.pathname.startsWith(b),p=o.pathname==="/contato"||o.pathname==="/en/contato",f=o.pathname.startsWith("/blog/")&&o.pathname!=="/blog/",h=b=>{if(b===d)return;const y=o.pathname;let g;y==="/en"?g="/":y.startsWith("/en/")?g=y.slice(3):g=y;let v;b==="en"?g==="/"?v="/en":hl.has(g)?v="/en"+g:v="/en":v=g;try{localStorage.setItem("asap_locale",b),localStorage.setItem("asap_locale_suggest_dismissed","true")}catch{}i(v)};return c.jsxs("header",{className:ne("fixed top-0 left-0 right-0 z-50 w-full transition-all duration-[250ms] ease-out",t&&"opacity-0 pointer-events-none -translate-y-full"),children:[c.jsx(mP,{}),c.jsx("div",{className:ne("transition-all duration-[250ms] ease-out",a?"px-0 pt-0":"px-4 pt-4"),children:c.jsx("div",{className:ne("w-full mx-auto px-6 transition-all duration-200 ease-out",a?"max-w-none rounded-none py-1.5 bg-[#0D1117]/[0.97] backdrop-blur-2xl border-b border-white/[0.06] shadow-[0_2px_12px_rgba(0,0,0,0.4),0_1px_3px_rgba(0,0,0,0.2)]":"max-w-[1400px] rounded-3xl py-3 bg-[#0D1117]/80 backdrop-blur-md border border-white/10 shadow-lg shadow-black/25",f&&!a&&"bg-[#071633]/95",f&&a&&"bg-[#071633]/97"),children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(dt,{to:"/",className:"flex items-center h-full",children:c.jsx("img",{src:"/images/LOGO_ASAP_HEADER.png",alt:"ASAP Telecom",className:"w-auto object-contain h-8 md:h-10",fetchPriority:"high"})}),c.jsxs("nav",{className:"hidden lg:flex items-center gap-10",children:[l.map(b=>c.jsx(dt,{to:b.href,className:ne("text-sm font-medium transition-all duration-200 hover:text-white",u(b.href)?"text-white":"text-gray-300"),children:b.label},b.href)),c.jsx(Kc,{})]}),c.jsxs("div",{className:"flex items-center gap-3 lg:gap-4",children:[c.jsx("div",{className:"lg:hidden",children:c.jsx(Kc,{})}),c.jsxs("div",{className:"flex items-center bg-white/10 rounded-full p-1 gap-1",children:[c.jsx("button",{onClick:()=>h("pt-BR"),className:ne("w-7 h-7 rounded-full flex items-center justify-center transition-all duration-200 overflow-hidden",d==="pt-BR"?"ring-2 ring-accent scale-110":"opacity-60 hover:opacity-100 hover:scale-105 grayscale hover:grayscale-0"),"aria-label":"Português (Brasil)",title:"Português",children:c.jsx("img",{src:"https://flagcdn.com/w40/br.png",srcSet:"https://flagcdn.com/w80/br.png 2x",alt:"Bandeira do Brasil",className:"w-full h-full object-cover"})}),c.jsx("button",{onClick:()=>h("en"),className:ne("w-7 h-7 rounded-full flex items-center justify-center transition-all duration-200 overflow-hidden",d==="en"?"ring-2 ring-accent scale-110":"opacity-60 hover:opacity-100 hover:scale-105 grayscale hover:grayscale-0"),"aria-label":"English",title:"English",children:c.jsx("img",{src:"https://flagcdn.com/w40/gb.png",srcSet:"https://flagcdn.com/w80/gb.png 2x",alt:"United Kingdom",className:"w-full h-full object-cover"})})]}),c.jsx(Pt,{className:ne("hidden sm:flex rounded-xl px-5 py-2 font-medium transition-all duration-200 text-sm",p?"bg-white/[0.08] text-white/90 border border-white/[0.15] hover:bg-white/[0.12] cursor-default":a?"bg-[#1F5EFF]/55 text-white/85 hover:bg-[#1F5EFF]/75 hover:text-white":"bg-[#1F5EFF]/60 text-white/90 hover:bg-[#1F5EFF]/80 hover:text-white"),asChild:!0,children:c.jsx(dt,{to:"/contato",children:s.header.ctaContactLabel})}),c.jsx("button",{className:"lg:hidden p-2 text-white hover:text-gray-300 transition-colors",onClick:()=>r(!e),"aria-label":"Menu",children:e?c.jsx(Tr,{className:"w-6 h-6"}):c.jsx(G0,{className:"w-6 h-6"})})]})]})})}),e&&c.jsx("div",{className:"lg:hidden px-4 mt-2",children:c.jsx("div",{className:ne("rounded-2xl px-4 py-4 transition-all duration-300","bg-[#0D1117]/90 backdrop-blur-md border border-white/10 shadow-lg shadow-black/30"),children:c.jsxs("nav",{className:"flex flex-col gap-3",children:[c.jsx("div",{className:"flex items-center justify-center mb-3",children:c.jsxs("div",{className:"flex items-center gap-2 bg-white/10 rounded-full p-1.5",children:[c.jsx("button",{onClick:()=>{h("pt-BR"),r(!1)},className:ne("w-9 h-9 rounded-full flex items-center justify-center transition-all duration-200 overflow-hidden",d==="pt-BR"?"ring-2 ring-accent scale-110":"opacity-60 hover:opacity-100 grayscale hover:grayscale-0"),"aria-label":"Português (Brasil)",children:c.jsx("img",{src:"https://flagcdn.com/w40/br.png",srcSet:"https://flagcdn.com/w80/br.png 2x",alt:"Bandeira do Brasil",className:"w-full h-full object-cover"})}),c.jsx("button",{onClick:()=>{h("en"),r(!1)},className:ne("w-9 h-9 rounded-full flex items-center justify-center transition-all duration-200 overflow-hidden",d==="en"?"ring-2 ring-accent scale-110":"opacity-60 hover:opacity-100 grayscale hover:grayscale-0"),"aria-label":"English",children:c.jsx("img",{src:"https://flagcdn.com/w40/gb.png",srcSet:"https://flagcdn.com/w80/gb.png 2x",alt:"United Kingdom",className:"w-full h-full object-cover"})})]})}),c.jsx(Pt,{className:ne("w-full rounded-xl px-6 py-3 font-medium transition-all duration-200 mb-2 text-sm",p?"bg-white/[0.08] text-white/90 border border-white/[0.15]":"bg-[#1F5EFF]/60 text-white/90 hover:bg-[#1F5EFF]/80 hover:text-white"),asChild:!0,children:c.jsx(dt,{to:"/contato",onClick:()=>r(!1),children:s.header.ctaContactLabel})}),l.map(b=>c.jsx(dt,{to:b.href,onClick:()=>r(!1),className:ne("text-sm font-medium transition-all duration-200 py-3 px-2 rounded-lg hover:bg-white/5",u(b.href)?"text-white":"text-gray-300 hover:text-white"),children:b.label},b.href))]})})})]})},yP="/assets/LOGO_ASAP_BRANCO-Y5Wesj7w.png";var ci="focusScope.autoFocusOnMount",di="focusScope.autoFocusOnUnmount",zc={bubbles:!1,cancelable:!0},bP="FocusScope",Of=m.forwardRef((t,e)=>{const{loop:r=!1,trapped:a=!1,onMountAutoFocus:n,onUnmountAutoFocus:o,...i}=t,[s,l]=m.useState(null),d=_t(n),u=_t(o),p=m.useRef(null),f=Oe(e,y=>l(y)),h=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(a){let y=function(P){if(h.paused||!s)return;const x=P.target;s.contains(x)?p.current=x:qt(p.current,{select:!0})},g=function(P){if(h.paused||!s)return;const x=P.relatedTarget;x!==null&&(s.contains(x)||qt(p.current,{select:!0}))},v=function(P){if(document.activeElement===document.body)for(const C of P)C.removedNodes.length>0&&qt(s)};document.addEventListener("focusin",y),document.addEventListener("focusout",g);const w=new MutationObserver(v);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",g),w.disconnect()}}},[a,s,h.paused]),m.useEffect(()=>{if(s){Xc.add(h);const y=document.activeElement;if(!s.contains(y)){const v=new CustomEvent(ci,zc);s.addEventListener(ci,d),s.dispatchEvent(v),v.defaultPrevented||(vP(_P(If(s)),{select:!0}),document.activeElement===y&&qt(s))}return()=>{s.removeEventListener(ci,d),setTimeout(()=>{const v=new CustomEvent(di,zc);s.addEventListener(di,u),s.dispatchEvent(v),v.defaultPrevented||qt(y??document.body,{select:!0}),s.removeEventListener(di,u),Xc.remove(h)}
vendor: 4,126 bytes, line 198
198,0)}}},[s,d,u,h]);const b=m.useCallback(y=>{if(!r&&!a||h.paused)return;const g=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,v=document.activeElement;if(g&&v){const w=y.currentTarget,[P,x]=wP(w);P&&x?!y.shiftKey&&v===x?(y.preventDefault(),r&&qt(P,{select:!0})):y.shiftKey&&v===P&&(y.preventDefault(),r&&qt(x,{select:!0})):v===w&&y.preventDefault()}},[r,a,h.paused]);return c.jsx(ye.div,{tabIndex:-1,...i,ref:f,onKeyDown:b})});Of.displayName=bP;function vP(t,{select:e=!1}={}){const r=document.activeElement;for(const a of t)if(qt(a,{select:e}),document.activeElement!==r)return}function wP(t){const e=If(t),r=Gc(e,t),a=Gc(e.reverse(),t);return[r,a]}function If(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const n=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||n?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function Gc(t,e){for(const r of t)if(!PP(r,{upTo:e}))return r}function PP(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function xP(t){return t instanceof HTMLInputElement&&"select"in t}function qt(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&xP(t)&&e&&t.select()}}var Xc=$P();function $P(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=Jc(t,e),t.unshift(e)},remove(e){var r;t=Jc(t,e),(r=t[0])==null||r.resume()}}}function Jc(t,e){const r=[...t],a=r.indexOf(e);return a!==-1&&r.splice(a,1),r}function _P(t){return t.filter(e=>e.tagName!=="A")}var ui=0;function SP(){m.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Qc()),document.body.insertAdjacentElement("beforeend",t[1]??Qc()),ui++,()=>{ui===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),ui--}},[])}function Qc(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Hn="right-scroll-bar-position",Kn="width-before-scroll-bar",CP="with-scroll-bars-hidden",AP="--removed-body-scroll-bar-size";function hi(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function EP(t,e){var r=m.useState(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(a){var n=r.value;n!==a&&(r.value=a,r.callback(a,n))}}}})[0];return r.callback=e,r.facade}var TP=typeof window<"u"?m.useLayoutEffect:m.useEffect,Yc=new WeakMap;function kP(t,e){var r=EP(null,function(a){return t.forEach(function(n){return hi(n,a)})});return TP(function(){var a=Yc.get(r);if(a){var n=new Set(a),o=new Set(t),i=r.current;n.forEach(function(s){o.has(s)||hi(s,null)}),o.forEach(function(s){n.has(s)||hi(s,i)})}Yc.set(r,t)},[t]),r}function OP(t){return t}function IP(t,e){e===void 0&&(e=OP);var r=[],a=!1,n={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(o){var i=e(o,a);return r.push(i),function(){r=r.filter(function(s){return s!==i})}},assignSyncMedium:function(o){for(a=!0;r.length;){var i=r;r=[],i.forEach(o)}r={push:function(s){return o(s)},filter:function(){return r}}},assignMedium:function(o){a=!0;var i=[];if(r.length){var s=r;r=[],s.forEach(o),i=r}var l=function(){var u=i;i=[],u.forEach(o)},d=function(){return Promise.resolve().then(l)};d(),r={push:function(u){i.push(u),d()},filter:function(u){return i=i.filter(u),r}}}};return n}function NP(t){t===void 0&&(t={});var e=IP(null);return e.options=Ye({async:!0,ssr:!1},t),e}var Nf=function(t){var e=t.sideCar,r=ar(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=e.read();if(!a)throw new Error("Sidecar medium not found");return m.createElement(a,Ye({},r))};
vendor: 2,199 bytes, line 198
198Nf.isSideCarExport=!0;function RP(t,e){return t.useMedium(e),Nf}var Rf=NP(),pi=function(){},Lo=m.forwardRef(function(t,e){var r=m.useRef(null),a=m.useState({onScrollCapture:pi,onWheelCapture:pi,onTouchMoveCapture:pi}),n=a[0],o=a[1],i=t.forwardProps,s=t.children,l=t.className,d=t.removeScrollBar,u=t.enabled,p=t.shards,f=t.sideCar,h=t.noRelative,b=t.noIsolation,y=t.inert,g=t.allowPinchZoom,v=t.as,w=v===void 0?"div":v,P=t.gapMode,x=ar(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,S=kP([r,e]),A=Ye(Ye({},x),n);return m.createElement(m.Fragment,null,u&&m.createElement(C,{sideCar:Rf,removeScrollBar:d,shards:p,noRelative:h,noIsolation:b,inert:y,setCallbacks:o,allowPinchZoom:!!g,lockRef:r,gapMode:P}),i?m.cloneElement(m.Children.only(s),Ye(Ye({},A),{ref:S})):m.createElement(w,Ye({},A,{className:l,ref:S}),s))});Lo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lo.classNames={fullWidth:Kn,zeroRight:Hn};var jP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function LP(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=jP();return e&&t.setAttribute("nonce",e),t}function DP(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function FP(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var MP=function(){var t=0,e=null;return{add:function(r){t==0&&(e=LP())&&(DP(e,r),FP(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},BP=function(){var t=MP();return function(e,r){m.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}},jf=function(){var t=BP(),e=function(r){var a=r.styles,n=r.dynamic;return t(a,n),null};return e},UP={left:0,top:0,right:0,gap:0},fi=function(t){return parseInt(t||"",10)||0},qP=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],a=e[t==="padding"?"paddingTop":"marginTop"],n=e[t==="padding"?"paddingRight":"marginRight"];return[fi(r),fi(a),fi(n)]},WP=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return UP;
vendor: 4,520 bytes, lines 198-238
198var e=qP(t),r=document.documentElement.clientWidth,a=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,a-r+e[2]-e[0])}},VP=jf(),ea="data-scroll-locked",HP=function(t,e,r,a){var n=t.left,o=t.top,i=t.right,s=t.gap;return r===void 0&&(r="margin"),`
199  .`.concat(CP,` {
200   overflow: hidden `).concat(a,`;
201   padding-right: `).concat(s,"px ").concat(a,`;
202  }
203  body[`).concat(ea,`] {
204    overflow: hidden `).concat(a,`;
205    overscroll-behavior: contain;
206    `).concat([e&&"position: relative ".concat(a,";"),r==="margin"&&`
207    padding-left: `.concat(n,`px;
208    padding-top: `).concat(o,`px;
209    padding-right: `).concat(i,`px;
210    margin-left:0;
211    margin-top:0;
212    margin-right: `).concat(s,"px ").concat(a,`;
213    `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(a,";")].filter(Boolean).join(""),`
214  }
215  
216  .`).concat(Hn,` {
217    right: `).concat(s,"px ").concat(a,`;
218  }
219  
220  .`).concat(Kn,` {
221    margin-right: `).concat(s,"px ").concat(a,`;
222  }
223  
224  .`).concat(Hn," .").concat(Hn,` {
225    right: 0 `).concat(a,`;
226  }
227  
228  .`).concat(Kn," .").concat(Kn,` {
229    margin-right: 0 `).concat(a,`;
230  }
231  
232  body[`).concat(ea,`] {
233    `).concat(AP,": ").concat(s,`px;
234  }
235`)},Zc=function(){var t=parseInt(document.body.getAttribute(ea)||"0",10);return isFinite(t)?t:0},KP=function(){m.useEffect(function(){return document.body.setAttribute(ea,(Zc()+1).toString()),function(){var t=Zc()-1;t<=0?document.body.removeAttribute(ea):document.body.setAttribute(ea,t.toString())}},[])},zP=function(t){var e=t.noRelative,r=t.noImportant,a=t.gapMode,n=a===void 0?"margin":a;KP();var o=m.useMemo(function(){return WP(n)},[n]);return m.createElement(VP,{styles:HP(o,!e,n,r?"":"!important")})},ps=!1;if(typeof window<"u")try{var In=Object.defineProperty({},"passive",{get:function(){return ps=!0,!0}});window.addEventListener("test",In,In),window.removeEventListener("test",In,In)}catch{ps=!1}var Wr=ps?{passive:!1}:!1,GP=function(t){return t.tagName==="TEXTAREA"},Lf=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!GP(t)&&r[e]==="visible")},XP=function(t){return Lf(t,"overflowY")},JP=function(t){return Lf(t,"overflowX")},ed=function(t,e){var r=e.ownerDocument,a=e;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var n=Df(t,a);if(n){var o=Ff(t,a),i=o[1],s=o[2];if(i>s)return!0}a=a.parentNode}while(a&&a!==r.body);return!1},QP=function(t){var e=t.scrollTop,r=t.scrollHeight,a=t.clientHeight;return[e,r,a]},YP=function(t){var e=t.scrollLeft,r=t.scrollWidth,a=t.clientWidth;return[e,r,a]},Df=function(t,e){return t==="v"?XP(e):JP(e)},Ff=function(t,e){return t==="v"?QP(e):YP(e)},ZP=function(t,e){return t==="h"&&e==="rtl"?-1:1},e3=function(t,e,r,a,n){var o=ZP(t,window.getComputedStyle(e).direction),i=o*a,s=r.target,l=e.contains(s),d=!1,u=i>0,p=0,f=0;do{if(!s)break;var h=Ff(t,s),b=h[0],y=h[1],g=h[2],v=y-g-o*b;(b||v)&&Df(t,s)&&(p+=v,f+=b);var w=s.parentNode;s=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&s!==document.body||l&&(e.contains(s)||e===s));return(u&&Math.abs(p)<1||!u&&Math.abs(f)<1)&&(d=!0),d},Nn=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},td=function(t){return[t.deltaX,t.deltaY]},rd=function(t){return t&&"current"in t?t.current:t},t3=function(t,e){return t[0]===e[0]&&t[1]===e[1]},r3=function(t){return`
236  .block-interactivity-`.concat(t,` {pointer-events: none;}
237  .allow-interactivity-`).concat(t,` {pointer-events: all;}
238`)},a3=0,Vr=[];function n3(t){var e=m.useRef([]),r=m.useRef([0,0]),a=m.useRef(),n=m.useState(a3++)[0],o=m.useState(jf)[0],i=m.useRef(t);m.useEffect(function(){i.current=t},[t]),m.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(n));var y=al([t.lockRef.current],(t.shards||[]).map(rd),!0).filter(Boolean);return y.forEach(function(g){return g.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),y.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(n))})}}},[t.inert,t.lockRef.current,t.shards]);var s=m.useCallback(function(y,g){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!i.current.allowPinchZoom;var v=Nn(y),w=r.current,P="deltaX"in y?y.deltaX:w[0]-v[0],x="deltaY"in y?y.deltaY:w[1]-v[1],C,S=y.target,A=Math.abs(P)>Math.abs(x)?"h":"v";if("touches"in y&&A==="h"&&S.type==="range")return!1;var I=ed(A,S);if(!I)return!0;
vendor: 4,181 bytes, line 238
238if(I?C=A:(C=A==="v"?"h":"v",I=ed(A,S)),!I)return!1;if(!a.current&&"changedTouches"in y&&(P||x)&&(a.current=C),!C)return!0;var T=a.current||C;return e3(T,g,y,T==="h"?P:x)},[]),l=m.useCallback(function(y){var g=y;if(!(!Vr.length||Vr[Vr.length-1]!==o)){var v="deltaY"in g?td(g):Nn(g),w=e.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&t3(C.delta,v)})[0];if(w&&w.should){g.cancelable&&g.preventDefault();return}if(!w){var P=(i.current.shards||[]).map(rd).filter(Boolean).filter(function(C){return C.contains(g.target)}),x=P.length>0?s(g,P[0]):!i.current.noIsolation;x&&g.cancelable&&g.preventDefault()}}},[]),d=m.useCallback(function(y,g,v,w){var P={name:y,delta:g,target:v,should:w,shadowParent:o3(v)};e.current.push(P),setTimeout(function(){e.current=e.current.filter(function(x){return x!==P})},1)},[]),u=m.useCallback(function(y){r.current=Nn(y),a.current=void 0},[]),p=m.useCallback(function(y){d(y.type,td(y),y.target,s(y,t.lockRef.current))},[]),f=m.useCallback(function(y){d(y.type,Nn(y),y.target,s(y,t.lockRef.current))},[]);m.useEffect(function(){return Vr.push(o),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Wr),document.addEventListener("touchmove",l,Wr),document.addEventListener("touchstart",u,Wr),function(){Vr=Vr.filter(function(y){return y!==o}),document.removeEventListener("wheel",l,Wr),document.removeEventListener("touchmove",l,Wr),document.removeEventListener("touchstart",u,Wr)}},[]);var h=t.removeScrollBar,b=t.inert;return m.createElement(m.Fragment,null,b?m.createElement(o,{styles:r3(n)}):null,h?m.createElement(zP,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function o3(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const i3=RP(Rf,n3);var Mf=m.forwardRef(function(t,e){return m.createElement(Lo,Ye({},t,{ref:e,sideCar:i3}))});Mf.classNames=Lo.classNames;var s3=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Hr=new WeakMap,Rn=new WeakMap,jn={},mi=0,Bf=function(t){return t&&(t.host||Bf(t.parentNode))},l3=function(t,e){return e.map(function(r){if(t.contains(r))return r;var a=Bf(r);return a&&t.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},c3=function(t,e,r,a){var n=l3(e,Array.isArray(t)?t:[t]);jn[r]||(jn[r]=new WeakMap);var o=jn[r],i=[],s=new Set,l=new Set(n),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};n.forEach(d);var u=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(f){if(s.has(f))u(f);else try{var h=f.getAttribute(a),b=h!==null&&h!=="false",y=(Hr.get(f)||0)+1,g=(o.get(f)||0)+1;Hr.set(f,y),o.set(f,g),i.push(f),y===1&&b&&Rn.set(f,!0),g===1&&f.setAttribute(r,"true"),b||f.setAttribute(a,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(e),s.clear(),mi++,function(){i.forEach(function(p){var f=Hr.get(p)-1,h=o.get(p)-1;Hr.set(p,f),o.set(p,h),f||(Rn.has(p)||p.removeAttribute(a),Rn.delete(p)),h||p.removeAttribute(r)}),mi--,mi||(Hr=new WeakMap,Hr=new WeakMap,Rn=new WeakMap,jn={})}},d3=function(t,e,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),n=s3(t);return n?(a.push.apply(a,Array.from(n.querySelectorAll("[aria-live]"))),c3(a,n,r,"aria-hidden")):function(){return null}},Do="Dialog",[Uf,V9]=Pa(Do),[u3,mt]=Uf(Do),qf=t=>{const{__scopeDialog:e,children:r,open:a,defaultOpen:n,onOpenChange:o,modal:i=!0}=t,s=m.useRef(null),l=m.useRef(null),[d,u]=xo({prop:a,defaultProp:n??!1,onChange:o,caller:Do});return c.jsx(u3,{scope:e,triggerRef:s,contentRef:l,contentId:Mn(),titleId:Mn(),descriptionId:Mn(),open:d,onOpenChange:u,onOpenToggle:m.useCallback(()=>u(p=>!p),[u]),modal:i,children:r})};qf.displayName=Do;var Wf="DialogTrigger",Vf=m.forwardRef((t,e)=>{const{__scopeDialog:r,...a}=t,n=mt(Wf,r),o=Oe(e,n.triggerRef);return c.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":ml(n.open),...a,ref:o,onClick:ge(t.onClick,n.onOpenToggle)})});Vf.displayName=Wf;
vendor: 5,253 bytes, lines 238-242
238var pl="DialogPortal",[h3,Hf]=Uf(pl,{forceMount:void 0}),Kf=t=>{const{__scopeDialog:e,forceMount:r,children:a,container:n}=t,o=mt(pl,e);return c.jsx(h3,{scope:e,forceMount:r,children:m.Children.map(a,i=>c.jsx(Nr,{present:r||o.open,children:c.jsx(Ls,{asChild:!0,container:n,children:i})}))})};Kf.displayName=pl;var ho="DialogOverlay",zf=m.forwardRef((t,e)=>{const r=Hf(ho,t.__scopeDialog),{forceMount:a=r.forceMount,...n}=t,o=mt(ho,t.__scopeDialog);return o.modal?c.jsx(Nr,{present:a||o.open,children:c.jsx(f3,{...n,ref:e})}):null});zf.displayName=ho;var p3=Xn("DialogOverlay.RemoveScroll"),f3=m.forwardRef((t,e)=>{const{__scopeDialog:r,...a}=t,n=mt(ho,r);return c.jsx(Mf,{as:p3,allowPinchZoom:!0,shards:[n.contentRef],children:c.jsx(ye.div,{"data-state":ml(n.open),...a,ref:e,style:{pointerEvents:"auto",...a.style}})})}),Ir="DialogContent",Gf=m.forwardRef((t,e)=>{const r=Hf(Ir,t.__scopeDialog),{forceMount:a=r.forceMount,...n}=t,o=mt(Ir,t.__scopeDialog);return c.jsx(Nr,{present:a||o.open,children:o.modal?c.jsx(m3,{...n,ref:e}):c.jsx(g3,{...n,ref:e})})});Gf.displayName=Ir;var m3=m.forwardRef((t,e)=>{const r=mt(Ir,t.__scopeDialog),a=m.useRef(null),n=Oe(e,r.contentRef,a);return m.useEffect(()=>{const o=a.current;if(o)return d3(o)},[]),c.jsx(Xf,{...t,ref:n,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ge(t.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:ge(t.onPointerDownOutside,o=>{const i=o.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&o.preventDefault()}),onFocusOutside:ge(t.onFocusOutside,o=>o.preventDefault())})}),g3=m.forwardRef((t,e)=>{const r=mt(Ir,t.__scopeDialog),a=m.useRef(!1),n=m.useRef(!1);return c.jsx(Xf,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,s;(i=t.onCloseAutoFocus)==null||i.call(t,o),o.defaultPrevented||(a.current||(s=r.triggerRef.current)==null||s.focus(),o.preventDefault()),a.current=!1,n.current=!1},onInteractOutside:o=>{var l,d;(l=t.onInteractOutside)==null||l.call(t,o),o.defaultPrevented||(a.current=!0,o.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const i=o.target;((d=r.triggerRef.current)==null?void 0:d.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&n.current&&o.preventDefault()}})}),Xf=m.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:o,...i}=t,s=mt(Ir,r),l=m.useRef(null),d=Oe(e,l);return SP(),c.jsxs(c.Fragment,{children:[c.jsx(Of,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:n,onUnmountAutoFocus:o,children:c.jsx(Po,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ml(s.open),...i,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(y3,{titleId:s.titleId}),c.jsx(v3,{contentRef:l,descriptionId:s.descriptionId})]})]})}),fl="DialogTitle",Jf=m.forwardRef((t,e)=>{const{__scopeDialog:r,...a}=t,n=mt(fl,r);return c.jsx(ye.h2,{id:n.titleId,...a,ref:e})});Jf.displayName=fl;var Qf="DialogDescription",Yf=m.forwardRef((t,e)=>{const{__scopeDialog:r,...a}=t,n=mt(Qf,r);return c.jsx(ye.p,{id:n.descriptionId,...a,ref:e})});Yf.displayName=Qf;var Zf="DialogClose",em=m.forwardRef((t,e)=>{const{__scopeDialog:r,...a}=t,n=mt(Zf,r);return c.jsx(ye.button,{type:"button",...a,ref:e,onClick:ge(t.onClick,()=>n.onOpenChange(!1))})});em.displayName=Zf;function ml(t){return t?"open":"closed"}var tm="DialogTitleWarning",[H9,rm]=a0(tm,{contentName:Ir,titleName:fl,docsSlug:"dialog"}),y3=({titleId:t})=>{const e=rm(tm),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
239
240If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
241
242For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return m.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},b3="DialogDescriptionWarning",v3=({contentRef:t,descriptionId:e})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${rm(b3).contentName}}.`;return m.useEffect(()=>{var o;const n=(o=t.current)==null?void 0:o.getAttribute("aria-describedby");e&&n&&(document.getElementById(e)||console.warn(a))},[a,t,e]),null},w3=qf,P3=Vf,x3=Kf,am=zf,nm=Gf,om=Jf,im=Yf,$3=em;const sm=w3,K9=P3,_3=x3,lm=m.forwardRef(({className:t,...e},r)=>c.jsx(am,{ref:r,className:ne("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));lm.displayName=am.displayName;const gl=m.forwardRef(({className:t,children:e,...r},a)=>c.jsxs(_3,{children:[c.jsx(lm,{}),c.jsxs(nm,{ref:a,className:ne("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
242nded-lg",t),...r,children:[e,c.jsxs($3,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[c.jsx(Tr,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));gl.displayName=nm.displayName;const yl=({className:t,...e})=>c.jsx("div",{className:ne("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});yl.displayName="DialogHeader";const cm=({className:t,...e})=>c.jsx("div",{className:ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});cm.displayName="DialogFooter";const bl=m.forwardRef(({className:t,...e},r)=>c.jsx(om,{ref:r,className:ne("text-lg font-semibold leading-none tracking-tight",t),...e}));bl.displayName=om.displayName;const dm=m.forwardRef(({className:t,...e},r)=>c.jsx(im,{ref:r,className:ne("text-sm text-muted-foreground",t),...e}));dm.displayName=im.displayName;const S3=({text:t,speed:e=25})=>{const[r,a]=m.useState(""),[n,o]=m.useState(!1);return m.useEffect(()=>{a(""),o(!1);let i=0;const s=setInterval(()=>{i<t.length?(a(t.slice(0,i+1)),i++):(o(!0),clearInterval(s))},e);return()=>clearInterval(s)},[t,e]),c.jsxs("span",{children:[r,!n&&c.jsx("span",{className:"inline-block w-0.5 h-4 bg-accent ml-0.5 animate-pulse"})]})},C3=({open:t,onOpenChange:e})=>{const[r,a]=m.useState(!1);m.useEffect(()=>{if(t){a(!1);const s=setTimeout(()=>{a(!0)},3500);return()=>clearTimeout(s)}},[t]);const n=()=>{e(!1),Si({cta_text:"Continuar no WhatsApp",cta_url:"https://wa.me/5511976800303",cta_location:"whatsapp_dialog"}),Ci()},o=()=>{e(!1),Si({cta_text:"Falar com um Humano",cta_url:"https://wa.me/5511976800303",cta_location:"whatsapp_dialog"}),Ci("Olá! Gostaria de falar diretamente com um atendente humano.")};return c.jsx(sm,{open:t,onOpenChange:e,children:c.jsxs(gl,{className:"sm:max-w-md bg-background border-border",children:[c.jsx(yl,{children:c.jsxs(bl,{className:"flex items-center gap-2 text-foreground",children:[c.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-br from-accent to-asap-royal flex items-center justify-center",children:c.jsx(W0,{className:"w-4 h-4 text-primary-foreground"})}),c.jsx("span",{children:"Lia"}),c.jsx("span",{className:"text-xs font-normal text-muted-foreground ml-1",children:"Assistente IA"})]})}),c.jsx("div",{className:"bg-secondary/50 rounded-lg p-4 min-h-[100px]",children:c.jsx("p",{className:"text-sm text-foreground leading-relaxed",children:t&&c.jsx(S3,{text:"Olá! Sou a Lia, assistente virtual da ASAP Telecom. Posso ajudá-lo com dúvidas técnicas sobre conectividade, data center, nossa rede de fibra óptica e muito mais. Se preferir, posso transferir você para um de nossos especialistas humanos a qualquer momento.",speed:20})})}),c.jsxs("div",{className:`space-y-3 pt-2 transition-all duration-500 ${r?"opacity-100 translate-y-0":"opacity-0 translate-y-4 pointer-events-none"}`,children:[c.jsxs(Pt,{variant:"default",className:"w-full justify-start gap-3 bg-green-600 hover:bg-green-700 text-white",onClick:n,children:[c.jsx(Ra,{className:"w-5 h-5"}),c.jsxs("div",{className:"text-left",children:[c.jsx("div",{className:"font-medium",children:"Continuar no WhatsApp"}),c.jsx("div",{className:"text-xs opacity-80",children:"Atendimento rápido 24/7"})]}),c.jsx(Ql,{className:"w-4 h-4 ml-auto"})]}),c.jsxs(Pt,{variant:"outline",className:"w-full justify-start gap-3",onClick:o,children:[c.jsx(Z0,{className:"w-5 h-5"}),c.jsxs("div",{className:"text-left",children:[c.jsx("div",{className:"font-medium",children:"Falar com um Humano"}),c.jsx("div",{className:"text-xs text-muted-foreground",children:"Horário comercial"})]}),c.jsx(Ql,{className:"w-4 h-4 ml-auto"})]})]})]})})},A3="https://sac.asaptelecom.com.br/",E3=["asaptelecom.com.br","asap.speedtestcustom.com"];function z9(t){try{const{hostname:e}=new URL(t);return E3.some(r=>e===r||e.endsWith(`.${r}`))}catch{return!1}}const T3=()=>{const[t,e]=m.useState(!1),{layout:r}
242=ft(),a=r.footer,n=a.copyrightText.replace("{year}",String(new Date().getFullYear())),o=[{icon:ty,href:"https://www.youtube.com/@ASAPGlobalTelecom",label:"YouTube"},{icon:K0,href:"https://www.instagram.com/asaptelecom/",label:"Instagram"},{icon:H0,href:"https://www.facebook.com/ASAPGlobalTelecom",label:"Facebook"},{icon:z0,href:"https://www.linkedin.com/company/10081910/",label:"LinkedIn"},{icon:Ra,href:"https://wa.me/5511976800303",label:"WhatsApp"}],i=[Jn,ch,J0];return c.jsxs("footer",{className:"py-16 border-t border-border bg-asap-night/50",children:[c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-12",children:[c.jsxs("div",{children:[c.jsx(dt,{to:"/",className:"inline-block mb-3",children:c.jsx("img",{src:yP,alt:"ASAP Telecom",className:"h-12 w-auto"})}),c.jsx("p",{className:"text-accent text-sm font-heading font-semibold mb-4",children:a.slogan}),c.jsx("p",{className:"text-muted-foreground text-sm font-body leading-relaxed mb-6",children:a.aboutText}),c.jsx("div",{className:"flex gap-3",children:o.map(({icon:s,href:l,label:d})=>d==="WhatsApp"?c.jsx("button",{onClick:()=>e(!0),"aria-label":d,className:"w-9 h-9 rounded-lg bg-secondary flex items-center justify-center text-muted-foreground hover:bg-green-600 hover:text-primary-foreground transition-all duration-300",children:c.jsx(s,{className:"w-4 h-4"})},d):c.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer","aria-label":d,className:"w-9 h-9 rounded-lg bg-secondary flex items-center justify-center text-muted-foreground hover:bg-asap-royal hover:text-primary-foreground transition-all duration-300",children:c.jsx(s,{className:"w-4 h-4"})},d))})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-heading font-bold text-foreground mb-4",children:a.navigationTitle}),c.jsx("div",{className:"grid grid-cols-2 gap-x-4 gap-y-3",children:a.quickLinks.map(s=>c.jsx(dt,{to:s.href,className:"text-muted-foreground text-sm font-body hover:text-accent transition-colors",children:s.label},s.href))})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-heading font-bold text-foreground mb-4",children:a.contactTitle}),c.jsxs("ul",{className:"space-y-4",children:[c.jsxs("li",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-8 h-8 rounded-lg bg-secondary flex items-center justify-center",children:c.jsx(Q0,{className:"w-4 h-4 text-accent"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-xs text-muted-foreground",children:a.phoneLabel}),c.jsx("a",{href:"tel:+551126671208",onClick:()=>Og("+551126671208","footer"),className:"text-sm font-body text-foreground hover:text-accent transition-colors",children:"+55 (11) 2667-1208"})]})]}),c.jsxs("li",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-8 h-8 rounded-lg bg-secondary flex items-center justify-center",children:c.jsx(lh,{className:"w-4 h-4 text-accent"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-xs text-muted-foreground",children:a.emailLabel}),c.jsx("a",{href:"mailto:[email protected]",onClick:()=>Ig("[email protected]","footer"),className:"text-sm font-body text-foreground hover:text-accent transition-colors",children:"[email protected]"})]})]}),c.jsxs("li",{className:"flex items-start gap-3",children:[c.jsx("div",{className:"w-8 h-8 rounded-lg bg-secondary flex items-center justify-center mt-0.5",children:c.jsx(La,{className:"w-4 h-4 text-accent"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-xs text-muted-foreground",children:a.addressLabel}),c.jsx("p",{className:"text-sm font-body text-foreground",children:a.addressValue})]})]})]}),c.jsx("a",{href:A3,target:"_blank",rel:"noopener noreferrer",className:"inline-block mt-6 bg-[#1F5EFF] text-white font-semibold rounded-xl px-6 py-3 hover:brightness-110 transition-all shadow-md",children:a.clientCenterLabel})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-heading font-bold text-foreground mb-4",children:a.techTitle}),c.jsx("ul",{className:"space-y-4",children:a.techHighlights.map((s,l)=>{const d=i[l]||Jn;return c.jsxs("li",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-8 h-8 rounded-lg bg-gradient-primary flex items-center justify-center shadow-cyan",children:c.jsx(d,{className:"w-4 h-4 text-primary-foreground"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-heading font-semibold text-foreground",children:s.title}),s.link?c.jsx("a",{href:s.link,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-accent hover:underline transition-colors",children:s.desc}):c.jsx("p",{className:"text-xs text-muted-foreground",children:s.desc})]})]},s.title)})})]})]}),a.solutionLinks&&a.solutionLinks.length>
2420&&c.jsxs("nav",{"aria-label":a.solutionsTitle,className:"mt-12 border-t border-border pt-8",children:[c.jsx("h4",{className:"font-heading font-bold text-foreground mb-3",children:a.solutionsTitle}),c.jsx("ul",{className:"flex flex-wrap gap-x-6 gap-y-2",children:a.solutionLinks.map(s=>c.jsx("li",{children:c.jsx(dt,{to:s.href,className:"text-muted-foreground text-sm font-body hover:text-accent transition-colors",children:s.label})},s.href))})]}),c.jsxs("div",{className:"border-t border-border mt-12 pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[c.jsx("p",{className:"text-muted-foreground text-sm font-body",children:n}),c.jsxs("div",{className:"flex gap-6 text-sm text-muted-foreground font-body",children:[c.jsx(dt,{to:"/politica-de-privacidade-e-termos",className:"hover:text-accent transition-colors",children:a.privacyLabel}),c.jsx("a",{href:"/llms.txt",className:"hover:text-accent transition-colors",title:"Arquivo que orienta sistemas de IA sobre o conteúdo do site",children:"LLMs"})]})]})]}),c.jsx(C3,{open:t,onOpenChange:e})]})},ur="data-asap-seo-dynamic",k3=()=>{const t=cn();return m.useEffect(()=>{const e=t.pathname,r=Ng()?Rg():jg.canonicalBaseUrl,n=e.startsWith("/en/")||e==="/en"?"en":"pt-BR";let o=e;e.startsWith("/en/")?o=e.slice(3):e==="/en"&&(o="/"),o!=="/"&&o.endsWith("/")&&(o=o.slice(0,-1));const i=hl.has(o),s=n==="en"?`${r}/en${o==="/"?"":o}`:`${r}${o}`;let l=document.querySelector('link[rel="canonical"][data-asap-seo="1"]');l||(l=document.createElement("link"),l.rel="canonical",l.setAttribute("data-asap-seo","1"),document.head.appendChild(l)),l.href=s,document.querySelectorAll(`[${ur}]`).forEach(u=>u.remove());const d=document.createElement("meta");if(d.setAttribute("property","og:locale"),d.content=n==="en"?"en_US":"pt_BR",d.setAttribute(ur,"1"),document.head.appendChild(d),i){const u=`${r}${o}`,p=`${r}/en${o}`,f=document.createElement("meta");f.setAttribute("property","og:locale:alternate"),f.content=n==="en"?"pt_BR":"en_US",f.setAttribute(ur,"1"),document.head.appendChild(f);const h=document.createElement("link");h.rel="alternate",h.hreflang="pt-BR",h.href=u,h.setAttribute(ur,"1"),document.head.appendChild(h);const b=document.createElement("link");b.rel="alternate",b.hreflang="en-US",b.href=p,b.setAttribute(ur,"1"),document.head.appendChild(b);const y=document.createElement("link");y.rel="alternate",y.hreflang="x-default",y.href=u,y.setAttribute(ur,"1"),document.head.appendChild(y)}return()=>{document.querySelectorAll(`[${ur}]`).forEach(u=>u.remove())}},[t.pathname]),null},O3=m.createContext({isToolMode:!1,setToolMode:()=>{}}),I3=({children:t})=>{const[e,r]=m.useState(!1),a=m.useMemo(()=>({isToolMode:e,setToolMode:r}),[e]);return c.jsx(O3.Provider,{value:a,children:t})},N3=m.lazy(()=>M(()=>import("./FloatingChat-1dR4f6q-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),R3=["/rede-asap","/en/rede-asap"],pe=({children:t})=>{const e=cn(),[r,a]=m.useState(!1),n=R3.some(o=>e.pathname===o||e.pathname.startsWith(o+"/"));return m.useEffect(()=>{if(!n){a(!1);return}const o=i=>{const s=i.detail;a(s.active)};return window.addEventListener("asap:redeMapMode",o),()=>window.removeEventListener("asap:redeMapMode",o)},[n]),m.useEffect(()=>{n||a(!1)},[e.pathname,n]),Lg(),Dg(),m.useEffect(()=>Fg(),[]),c.jsx(I3,{children:c.jsxs("div",{className:"min-h-screen bg-[#021B3A] flex flex-col",children:[c.jsx(k3,{}),c.jsx(gP,{isRedeMapMode:r}),c.jsx("main",{className:ne("flex-1 transition-[padding] duration-500 ease-out",r?"pt-0":"pt-[72px]"),children:c.jsx("div",{className:"animate-fade-in",children:t},e.pathname)}),c.jsx(T3,{}),c.jsx(m.Suspense,{fallback:null,children:c.jsx(N3,{})}),c.jsx(Gg,{})]})})},um=m.createContext(void 0),gi="admin_theme";function j3({children:t}){const{user:e,adminUser:r}=Ef(),[a,n]=m.useState(()=>{const l=localStorage.getItem(gi);return l==="light"||l==="dark"?l:"dark"}),[o,i]=m.useState(!0);m.useEffect(()=>{const l=document.documentElement;l.style.transition="background-color 200ms ease, color 200ms ease",a==="light"?(l.classList.add("light"),l.classList.remove("dark")):(l.classList.remove("light"),l.classList.add("dark"))},[a]),m.useEffect(()=>{(async()=>
242{if(!(e!=null&&e.id)){i(!1);return}try{const{data:d,error:u}=await j.from("admin_users").select("theme").eq("user_id",e.id).single();if(!u&&(d!=null&&d.theme)){const p=d.theme;n(p),localStorage.setItem(gi,p)}}catch(d){console.error("Error loading theme from database:",d)}finally{i(!1)}})()},[e==null?void 0:e.id]);const s=m.useCallback(async()=>{const l=a==="dark"?"light":"dark";if(n(l),localStorage.setItem(gi,l),e!=null&&e.id)try{await j.from("admin_users").update({theme:l}).eq("user_id",e.id)}catch(d){console.error("Error saving theme to database:",d)}},[a,e==null?void 0:e.id]);return c.jsx(um.Provider,{value:{theme:a,toggleTheme:s,isLoading:o},children:t})}function G9(){const t=m.useContext(um);if(!t)throw new Error("useAdminTheme must be used within an AdminThemeProvider");return t}const X=({children:t})=>c.jsx(j3,{children:t});function ie(t){const[e,r]=m.useState(!1);return m.useEffect(()=>{try{localStorage.setItem("asap_locale",t.locale),document.documentElement.lang=t.locale==="en"?"en-US":"pt-BR"}catch{}r(!0)},[t.locale]),e?c.jsx(c.Fragment,{children:t.children}):null}const L3={"/":{title:"Internet Corporativa e Data Center em São Paulo | ASAP Telecom",description:"ASAP Telecom: Link Dedicado, Internet Dedicada e Data Center em São Paulo para empresas e provedores. SLA de até 99,97% e 100% de banda garantida."},"/documentacao":{title:"Materiais Técnicos e Documentação | ASAP Telecom",description:"Documentos técnicos e institucionais da ASAP Telecom para download: fichas de produto, guias e materiais de apoio."},"/api-docs":{title:"API Pública da LIA | ASAP Telecom",description:"Documentação interativa da API pública de conhecimento da LIA, assistente técnica da ASAP Telecom."},"/politica-de-privacidade-e-termos":{title:"Política de Privacidade e Termos de Uso | ASAP Telecom",description:"Política de privacidade, termos de uso e tratamento de dados pessoais (LGPD) da ASAP Telecom."},"/a-asap":{title:"Sobre a ASAP Telecom, Operadora B2B desde 2015",description:"Conheça a ASAP Telecom: operadora de telecomunicações B2B fundada em 2015, com 17 POPs, AS264144 e Data Center próprio em São Paulo."},"/para-empresas":{title:"Internet Empresarial e Corporativa em São Paulo | ASAP",description:"Link Dedicado com SLA de até 99,97%, banda garantida, IP fixo e suporte NOC 24/7 para empresas em todo o Brasil."},"/para-provedores":{title:"Soluções para Provedores de Internet | ASAP",description:"Trânsito IP, Lan-to-Lan e Cross-Connect para provedores. Acesso ao IX.br e infraestrutura redundante."},"/data-center-colocation":{title:"Data Center Colocation em São Paulo | ASAP SP1",description:"Hospedagem de servidores no Data Center ASAP SP1. Projetado segundo padrões Tier III, 220V AC, redundância N+N, 7,0 kW por rack."},"/compare/asap-vs-scala":{title:"ASAP x Scala: comparativo de colocation em SP",description:"Comparativo entre ASAP SP1 e Scala Data Centers: perfil de cliente, fração mínima de rack, energia, neutralidade e visibilidade do ambiente."},"/compare/asap-vs-ascenty":{title:"ASAP x Ascenty: comparativo de colocation em SP",description:"Comparativo entre ASAP SP1 e Ascenty: certificação, fração mínima de rack, energia, rede própria, neutralidade e visibilidade do ambiente."},"/compare/asap-vs-odata":{title:"ASAP x Odata: comparativo de colocation em SP",description:"Comparativo entre ASAP SP1 e Odata: certificação Uptime, fração mínima de rack, energia, neutralidade e visibilidade do ambiente."},"/compare/asap-vs-equinix":{title:"ASAP x Equinix: comparativo de colocation em SP",description:"Comparativo entre ASAP SP1 e Equinix: ecossistema de interconexão, fração mínima de rack, energia, IX.br e visibilidade do ambiente."},"/rede-asap":{title:"Link Dedicado em São Paulo: consulte seu endereço | ASAP",description:"Consulte se atendemos o seu endereço com Link Dedicado. Resposta para o endereço exato, não por região: informa se a entrega é por fibra ou rádio."},"/ferramentas-asap":{title:"Calculadoras e Recursos Técnicos | Ferramentas ASAP",description:"Calculadora de uptime, dimensionamento de rack e ferramentas técnicas para profissionais de TI e telecom."},"/blog":{title:"Conteúdo Editorial sobre Telecom B2B | Blog ASAP",description:"Artigos sobre Internet Corporativa, Data Center, Trânsito IP, segurança e infraestrutura de rede para empresas e provedores."},"/guias":{title:"Documentação Técnica e Comercial | Guias ASAP",description:"Guias detalhados sobre os produtos e serviços ASAP: Link Dedicado, Data Center, Trânsito IP, Cross-Connect e mais."},"/contato":{title:"Contato | ASAP Telecom",description:"Fale com um especialista da ASAP Telecom. Atendimento comercial, suporte 24/7 e agendamento de visita ao Data Center."},"/en":{title:"Corporate Internet and Data Center in Brazil | ASAP",description:"B2B telecom operator specialized in Dedicated Internet, IP Transit and Colocation in São Paulo, Brazil. up to 99.97% SLA and full bandwidth guarantee."},"/en/para-empresas":{title:"Corporate Internet | ASAP Telecom",description:"Dedicated Link with up to 99.97% SLA, guaranteed bandwidth, static IP and 24/7 NOC support for businesses in Brazil."},"/en/data-center-colocation":{title:"Data Center Colocation in São Paulo | ASAP SP1",description:"Server hosting at ASAP SP1 Data Center. Designed to Tier III standards, 220V AC, N+N redundancy, 7.0 kW per rack."},"/en/blog":{title:"B2B Telecom Insights | ASAP Blog",description:"Articles on Corporate Internet, Data Center, IP Transit, security and network infrastru
242cture for businesses and ISPs."},"/en/a-asap":{title:"About ASAP Telecom, B2B Operator since 2015",description:"Meet ASAP Telecom: a B2B telecom operator founded in 2015, with 17 POPs, AS264144 and its own Data Center in São Paulo."},"/en/para-provedores":{title:"Solutions for Internet Service Providers | ASAP",description:"IP Transit, Lan-to-Lan and Cross-Connect for ISPs. IX.br access and redundant infrastructure."},"/en/rede-asap":{title:"Dedicated Link: check if we cover your address | ASAP",description:"Check if we serve your address with a Dedicated Link. Answer for the exact address, not by region: it tells whether delivery is via fiber or radio."},"/en/contato":{title:"Contact | ASAP Telecom",description:"Talk to an ASAP Telecom specialist. Sales, 24/7 support and Data Center tour scheduling."},"/en/ferramentas-asap":{title:"Calculators and Technical Resources | ASAP Tools",description:"Uptime calculator, rack sizing and technical tools for IT and telecom professionals."}};function D3(t){return t?t.length>1&&t.endsWith("/")?t.slice(0,-1):t:"/"}function F3(t){return L3[D3(t)]}const M3=()=>{const{pathname:t}=cn(),e=F3(t);Mg({title:(e==null?void 0:e.title)??"ASAP Telecom",description:(e==null?void 0:e.description)??""})};async function X9(){const{data:t,error:e}=await j.from("site_video_pages").select("*").order("sort_order",{ascending:!0});if(e)throw e;return t||[]}async function B3(){const{data:t,error:e}=await j.from("site_video_pages").select("*").eq("is_active",!0).order("sort_order",{ascending:!0});if(e)throw e;return t||[]}async function J9(t){const{data:e}=await j.from("site_video_pages").select("sort_order").order("sort_order",{ascending:!1}).limit(1),r=e&&e.length>0?e[0].sort_order+1:1,{data:a,error:n}=await j.from("site_video_pages").insert({...t,sort_order:r}).select().single();if(n)throw n;return a}async function Q9(t,e){const{data:r,error:a}=await j.from("site_video_pages").update(e).eq("id",t).select().single();if(a)throw a;return r}async function Y9(t){const{error:e}=await j.from("site_video_pages").delete().eq("id",t);if(e)throw e}async function Z9(){try{return(await B3()).map(e=>({value:e.page_key,label:e.label}))}catch(t){return console.error("Error fetching page keys:",t),[]}}const ad=async(t,e)=>{const{data:r,error:a}=await j.from("site_video_assignments").select("order_position").eq("page_key",t).eq("section_key",e).order("order_position",{ascending:!1}).limit(1).maybeSingle();if(a)throw a;return((r==null?void 0:r.order_position)??-1)+1},nd={getAllWithAssignments:async()=>{const{data:t,error:e}=await j.from("site_videos").select("*").order("created_at",{ascending:!1});if(e)throw e;const{data:r,error:a}=await j.from("site_video_assignments").select("*");if(a)throw a;return(t||[]).map(n=>({...n,source_type:n.source_type,assignments:(r||[]).filter(o=>o.video_id===n.id)}))},getVideosByPage:async(t,e="hero")=>{const{data:r,error:a}=await j.from("site_video_assignments").select("*").eq("page_key",t).eq("section_key",e).order("order_position",{ascending:!0});if(a)throw a;if(!r||r.length===0)return[];const n=r.map(l=>l.video_id),{data:o,error:i}=await j.from("site_videos").select("*").in("id",n).eq("is_active",!0);if(i)throw i;const s=new Map((o||[]).map(l=>[l.id,l]));return r.filter(l=>s.has(l.video_id)).map(l=>{const d=s.get(l.video_id);return{...d,source_type:d.source_type,assignments:[{id:l.id,video_id:l.video_id,page_key:l.page_key,section_key:l.section_key,order_position:l.order_position,created_at:l.created_at}]}})},createWithUpload:async(t,e)=>{const r=Date.now(),a=t.name.replace(/[^a-zA-Z0-9.-]/g,"_"),n=`uploads/${r}-${a}`,{data:o,error:i}=await j.storage.from("site-videos").upload(n,t,{cacheControl:"3600",upsert:!1});if(i)throw i;const{data:{publicUrl:s}}=j.storage.from("site-videos").getPublicUrl(n),{data:l,error:d}=await j.from("site_videos").insert({title:t.name.replace(/\.[^/.]+$/,""),source_type:"upload",file_path:s,mime_type:t.type,size_bytes:t.size,section_key:"uploaded",is_active:!0,order_index:0}).select("id").single();if(d)throw d;return{id:l.id,url:s}},createFromUrl:async(t,e)=>{const{data:r,error:a}=await j.from("site_videos").insert({title:e||"Vídeo externo",source_type:"url",video_url:t,section_key:"external",is_active:!0,order_index:0}).select("id").single();if(a)throw a;return{id:r.id}},update:async(t,e)=>{const{assignments:r,...a}=e;if(Object.keys(a).length>0){const{error:n}=await j.from("site_videos").update(a).eq("id",t);if(n)throw n}},delete:async t=>{var n;const{data:e,error:r}=await j.from("site_videos").select("file_path, source_type").eq("id",t).single();if(r)throw r;if(e.source_type==="upload"&&((n=e.file_path)!=null&&n.includes("site-videos")))try{const i=new URL(e.file_path).pathname.split("/site-videos/");i.length>1&&await j.storage.from("site-videos").remove([i[1]])}catch(o){console.warn("Could not delete storage file:",o)}const{error:a}=await j.from("site_videos").delete().eq("id",t);if(a)throw a},setAssignments:async(t,e,r="hero")=>{const{data:a,error:n}=await j.from("site_video_assignments").select("page_key, order_position").eq("video_id",t).eq("section_key",r);
242if(n)throw n;const o=new Map((a||[]).map(s=>[s.page_key,s.order_position])),{error:i}=await j.from("site_video_assignments").delete().eq("video_id",t).eq("section_key",r);if(i)throw i;if(e.length>0){const s=await Promise.all(e.map(async d=>{const p=o.get(d)??await ad(d,r);return{video_id:t,page_key:d,section_key:r,order_position:p}})),{error:l}=await j.from("site_video_assignments").insert(s);if(l)throw l}},addAssignment:async(t,e,r="hero")=>{const a=await ad(e,r),{error:n}=await j.from("site_video_assignments").insert({video_id:t,page_key:e,section_key:r,order_position:a});if(n&&!n.message.includes("duplicate"))throw n},removeAssignment:async(t,e,r="hero")=>{const{error:a}=await j.from("site_video_assignments").delete().eq("video_id",t).eq("page_key",e).eq("section_key",r);if(a)throw a},updateOrderPosition:async(t,e,r,a="hero")=>{const{error:n}=await j.from("site_video_assignments").update({order_position:r}).eq("video_id",t).eq("page_key",e).eq("section_key",a);if(n)throw n},reorderVideosInPage:async(t,e,r="hero")=>{for(let a=0;a<e.length;a++){const{error:n}=await j.from("site_video_assignments").update({order_position:a}).eq("video_id",e[a]).eq("page_key",t).eq("section_key",r);if(n)throw n}},getVideoUrl:t=>t.source_type==="url"?t.video_url:t.file_path,formatFileSize:t=>t?t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`:"-"},od=async t=>(await nd.getVideosByPage(t,"hero")).map(r=>nd.getVideoUrl(r)).filter(r=>r!==null),id="https://ollzbnkfxfsusjtjssec.supabase.co/storage/v1/object/public/hero-images",U3={home:{heroMode:"video",typewriterEnabled:!0,heroImageUrl:null,imageUrls:[],videoUrls:["/videos/hero-2.mp4","/videos/hero-1.mp4","/videos/hero-3.mp4","/videos/hero-5.mp4"]},"para-empresas":{heroMode:"video",typewriterEnabled:!1,heroImageUrl:null,imageUrls:[],videoUrls:["/videos/empresas-1.mp4","/videos/empresas-2.mp4","/videos/empresas-3.mp4","/videos/empresas-4.mp4","/videos/empresas-5.mp4"]},"para-provedores":{heroMode:"video",typewriterEnabled:!1,heroImageUrl:null,imageUrls:[],videoUrls:["/videos/provedores-1.mp4","/videos/provedores-2.mp4","/videos/provedores-3.mp4"]},"data-center-colocation":{heroMode:"video",typewriterEnabled:!0,heroImageUrl:null,imageUrls:[],videoUrls:["/videos/datacenter-hero.mp4"]},"rede-asap":{heroMode:"video",typewriterEnabled:!1,heroImageUrl:null,imageUrls:[],videoUrls:["/videos/rede-asap-hero.mp4"]},"ferramentas-asap":{heroMode:"image",typewriterEnabled:!1,heroImageUrl:null,imageUrls:[],videoUrls:[]},contato:{heroMode:"video",typewriterEnabled:!1,heroImageUrl:null,imageUrls:[],videoUrls:["/videos/contato-hero.mp4"]},"a-asap":{heroMode:"image",typewriterEnabled:!0,heroImageUrl:`${id}/a-asap/hero-bg.jpg`,imageUrls:[`${id}/a-asap/hero-bg.jpg`],videoUrls:[]}};let yi=!1;function q3(){const[t,e]=m.useState(yi);return m.useEffect(()=>{if(yi)return;let r=!1;const a=()=>{r||(yi=!0,e(!0))},n=()=>{const o=window;o.requestIdleCallback?o.requestIdleCallback(a,{timeout:2e3}):window.setTimeout(a,1e3)};return document.readyState==="complete"?n():window.addEventListener("load",n,{once:!0}),()=>{r=!0,window.removeEventListener("load",n)}},[]),t}const W3=8e3,sd=500,V3=8e3;function H3(t,e,r){const a=U3[t],n=(a==null?void 0:a.heroMode)??"video",o=(a==null?void 0:a.typewriterEnabled)??!1,i=(a==null?void 0:a.heroImageUrl)??null,s=(a==null?void 0:a.imageUrls)??[],l=(a==null?void 0:a.videoUrls)??[],[d,u]=m.useState(l.length?l:e??[]),[p,f]=m.useState(0),[h,b]=m.useState(!1),[y,g]=m.useState(!0),[v,w]=m.useState(i),[P,x]=m.useState(o),[C,S]=m.useState(n),[A,I]=m.useState(s),[T,O]=m.useState(0),[E,D]=m.useState(!1),L=m.useRef(null),R=m.useRef(null),J=m.useRef(null),z=m.useRef(r);z.current=r,m.useEffect(()=>{let Z=!0;return g(!0),(async()=>{try{const[le,Pe]=await Promise.all([j.from("site_video_pages").select("hero_mode, hero_image_url, typewriter_enabled").eq("page_key",t).eq("is_active",!0).maybeSingle(),j.from("site_hero_images").select("image_url").eq("page_key",t).order("order_position",{ascending:!0})]);if(!Z)return;const ue=le.data,Ae=(Pe.data||[]).map(Re=>Re.image_url);if(ue){const Re=ue.hero_mode||"video";if(S(Re),w(ue.hero_image_url),x(ue.typewriter_enabled??!1),Re==="video"){I([]),O(0);const ir=await od(t);if(!Z)return;ir.length>0&&(u(ir),f(0))}else e!=null&&e.length||(u([]),f(0)),Ae.length>0?(I(Ae),O(0)):ue.hero_image_url?(I([ue.hero_image_url]),O(0)):(I([]),O(0))}else{const Re=await od(t);if(!Z)return;Re.length>0&&u(Re)}}catch{}finally{Z&&g(!1)}})(),()=>{Z=!1}},[t]),m.useEffect(()=>{p>=d.length&&d.length>0&&f(0)},[p,d.length]),m.useEffect(()=>{T>=A.length&&A.length>0&&O(0)},[T,A.length]);const H=m.useCallback(()=>{var le,Pe;if(d.length<=1)return;const Z=(p+1)%d.length;b(!0),(Pe=(le=z.current)==null?void 0:le.onTransitionStart)==null||Pe.call(le,Z),setTimeout(()=>{var ue,Ae;f(Z),b(!1),(Ae=(ue=z.current)==null?void 0:ue.onTransitionEnd)==null||Ae.call(ue,Z)},sd)},[d.length,p]),W=m.useCallback(()=>{var le,Pe;if(A.length<=1)return;const Z=(T+1)%A.length;D(!0),(Pe=(le=z.current)==null?void 0:le.onTransitionStart)==null||Pe.call(le,Z),setTimeout(()=>{var ue,Ae;O(Z),D(!1),(Ae=(ue=z.current)==null?void 0:ue.onTransitionEnd)==null||Ae.call(ue,Z)},sd)},[A.length,T]),U=q3(),[se,Me]=m.useState(!0),[Y,ee]=m.useState(!0),oe=se&&Y;m.useEffect(()=>{const Z=L.current;if(!Z)return;const le=new IntersectionObserver(([ue])=>Me(ue.isIntersecting),{threshold:.15});le.observe(Z);const Pe=()=>ee(!document.hidden);return document.addEventListener("visibilitychange",Pe),()=>{le.disconnect(),document.removeEventListener("visibilitychange",Pe)}},[d.length,U]),m.useEffect(()=>{if(!(d.length<=1)&&oe)return R.current=setTimeout(H,W3),()=>{R.current&&clearTimeout(R.current)}},[p,H,d.length,oe]),m.useEffect(()=>{if(!(A.length<=1))return J.current=setTimeout(W,V3),()=>{J.current&&clearTimeout(J.current)}},[T,W,A.length]),m.useEffect(()=>{const Z=L.current;!Z||d.length===0||(Z.load(),Z.play().catch(()=>{}))},[p,d.length,U]);const V=C==="video"&&d.length>0,de=V&&U?d[p]:null,te=C==="image"&&A.length>0,Ge=te?A[T]:null;return{videoUrls:d,currentVideoUrl:de,currentIndex:p,isTransitioning:h,videoRef:L,hasVideos:V,isLoading:y,heroImageUrl:v,typewriterEnabled:P,heroMode:C,imageUrls:A,currentImageUrl:Ge,hasImages:te,currentImageIndex:T,isImageTransitioning:E}}function K3(){if(typeof window>"u")return!1;const t=window.__rotaPrePintada,e=window.location.pathname.replace(/\/+$/,"")||"/";return!!t&&t===e}const hm=()=>{const{pages:t}=ft();return t.home.hero.scenes},z3=60,G3=hm().map(t=>t.video),X3="Internet Corporativa e Link Dedicado com Banda 100% Garantida",J3=({pageKey:t="home"})=>{const e=m.useMemo(()=>hm(),[]),[r,a]=m.useState(()=>K3()?Number.MAX_SAFE_INTEGER:0),{currentVideoUrl:n,currentIndex:o,isTransitioning:i,videoRef:s,typewriterEnabled:l}=H3(t,G3,{onTransitionStart:()=>{},onTransitionEnd:()=>{a(0)}}),d=e[o%e.length],u=m.useMemo(()=>e.reduce((f,h)=>h.text.length>f.length?h.text:f,""),[e]);$.useEffect(()=>{if(!l||i||r>=d.text.length)return;const f=setTimeout(()=>{a(h=>h+1)},z3);return()=>clearTimeout(f)},[r,d.text.length,i,l]);const p=m.useMemo(()=>{const{text:f,boldRanges:h}=d,b=l?r:f.length,y=[...h].sort((P,x)=>P[0]-x[0]),g=[];let v=0;for(const[P,x]of y)P>v&&g.push({content:f.slice(v,P),bold:!1}),g.push({content:f.slice(P,x),bold:!0}),v=x;v<f.length&&g.push({content:f.slice(v),bold:!1});let w=0;return g.map((P,x)=>{const C=w;w+=P.content.length;const S=P.bold?"font-bold":"font-light";return c.jsx("span",{className:S,children:Array.from(P.content).map((A,I)=>{const T=C+I,O=T<b,E=l&&T===b;return c.jsxs("span",{className:`${O?"":"text-transparent"}${E?" relative":""}`,children:[E&&c.jsx("span",{"aria-hidden":"true",className:"absolute left-0 top-1/2 -translate-y-1/2 w-[3px] h-[0.9em] bg-white animate-pulse"}),A]},`${o}-${T}`)})},`${o}-${x}`)})},[d,r,l]);return c.jsxs("section",{className:"relative w-full h-screen flex items-center justify-center overflow-hidden -mt-[72px]",children:[n&&c.jsx("video",{ref:s,autoPlay:!0,muted:!0,loop:!0,playsInl
242ine:!0,preload:"metadata",className:`absolute inset-0 w-full h-full object-cover transition-opacity duration-500 ${i?"opacity-0":"opacity-100"}`,src:n}),c.jsx("div",{className:"absolute inset-0 pointer-events-none z-[1]",style:{background:"linear-gradient(to bottom, rgba(2,27,58,0.55) 0%, rgba(2,27,58,0.70) 40%, rgba(2,27,58,0.85) 70%, #021B3A 100%)"}}),c.jsx("div",{className:`relative z-[2] text-center px-4 pt-[72px] transition-opacity duration-500 ${i?"opacity-0":"opacity-100"}`,children:c.jsx("div",{className:"max-w-[900px] mx-auto",children:c.jsxs("h1",{className:"grid text-3xl md:text-5xl lg:text-6xl text-white text-center leading-tight",children:[c.jsx("span",{className:"sr-only",children:X3}),c.jsx("span",{"aria-hidden":"true",className:"col-start-1 row-start-1 invisible",children:u}),c.jsx("span",{"aria-hidden":"true",className:"col-start-1 row-start-1 self-start",children:p})]})})})]})},Q3=()=>c.jsx(J3,{}),Y3=()=>{const{pages:t}=ft(),{audience:e}=t.home,r=[Yl,ih];return c.jsxs("section",{className:"py-24 relative",children:[c.jsx("div",{className:"absolute inset-0 network-pattern opacity-30"}),c.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[c.jsx("div",{className:"text-center mb-16",children:c.jsxs("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-heading font-bold mb-6",children:[e.title," ",c.jsx("span",{className:"text-gradient-asap",children:e.highlight})]})}),c.jsx("div",{className:"grid md:grid-cols-2 gap-8 max-w-5xl mx-auto",children:e.cards.map((a,n)=>{const o=r[n]||Yl;return c.jsxs("div",{className:"glass-card rounded-2xl p-8 md:p-10 hover:border-accent/30 transition-all duration-500 hover:shadow-glow group",children:[c.jsx("div",{className:`w-16 h-16 rounded-2xl bg-gradient-to-br ${a.gradient} flex items-center justify-center mb-6 group-hover:scale-110 transition-transform duration-300 shadow-lg`,children:c.jsx(o,{className:"w-8 h-8 text-white"})}),c.jsx("h3",{className:"text-2xl md:text-3xl font-heading font-bold text-foreground mb-4",children:a.title}),c.jsx("p",{className:"text-muted-foreground font-body mb-6",children:a.description}),c.jsx("ul",{className:"space-y-3 mb-8",children:a.benefits.map(i=>c.jsxs("li",{className:"flex items-start gap-3",children:[c.jsx("div",{className:"w-5 h-5 rounded-full bg-accent/20 flex items-center justify-center flex-shrink-0 mt-0.5",children:c.jsx(sh,{className:"w-3 h-3 text-accent"})}),c.jsx("span",{className:"text-sm text-muted-foreground font-body",children:i})]},i))}),c.jsx(Pt,{variant:"royal",className:"w-full group/btn",asChild:!0,children:c.jsxs(dt,{to:a.href,children:[e.ctaLabel,c.jsx(Ou,{className:"w-4 h-4 ml-2 group-hover/btn:translate-x-1 transition-transform"})]})})]},a.title)})})]})]})},e5=t=>`/guias/${t}`,fe={TRANSITO_IP:"transito-ip",CIX:"cix",ANTI_DDOS:"anti-ddos",TRANSPORTE_L2L:"transporte-de-dados-l2l",COLOCATION:"data-center-colocation",LINK_DEDICADO:"link-dedicado",PAINEL_MONITORAMENTO:"painel-de-monitoramento",NOTIFICACOES:"alerta-de-abertura-de-rack",INVENTARIO:"inventario-de-cabos-e-hardware",UPGRADE_RACK:"upgrade-de-rack-sem-interrupcao",ALERTA_ABERTURA_RACK:"alerta-de-abertura-de-rack",PAINEL_RACK_TEMPO_REAL:"painel-do-rack-em-tempo-real",UPGRADE_MESMO_CIRCUITO:"upgrade-no-mesmo-circuito",DUPLO_CIRCUITO_7KW:"duplo-circuito-ate-7kw-por-rack"},Z3={transito_ip:fe.TRANSITO_IP,transito_ip_provedor:fe.TRANSITO_IP,cix:fe.CIX,cix_asap:fe.CIX,anti_ddos:fe.ANTI_DDOS,anti_ddos_provedor:fe.ANTI_DDOS,transporte_l2l:fe.TRANSPORTE_L2L,colocation:fe.COLOCATION,colocation_isp:fe.COLOCATION,link_dedicado:fe.LINK_DEDICADO,link_dedicado_corporativo:fe.LINK_DEDICADO,lan_to_lan:fe.TRANSPORTE_L2L,data_center:fe.COLOCATION,data_center_colocation:fe.COLOCATION,anti_ddos_empresarial:fe.ANTI_DDOS,painel_monitoramento:fe.PAINEL_MONITORAMENTO,notificacoes:fe.NOTIFICACOES,notificacoes_tempo_real:fe.NOTIFICACOES,inventario:fe.INVENTARIO,inventario_cabos:fe.INVENTARIO,upgrade_rack:fe.UPGRADE_RACK,alerta_abertura_rack:fe.ALERTA_ABERTURA_RACK,painel_rack_tempo_real:fe.PAINEL_RACK_TEMPO_REAL,upgrade_mesmo_circuito:fe.UPGRADE_MESMO_CIRCUITO,duplo_circuito_7kw:fe.DUPLO_CIRCUITO_7KW,peering:fe.CIX},ex={transito_ip:"Trânsito IP",transito_ip_provedor:"Trânsito IP",cix:"CIX - PIX IX.br",cix_asap:"CIX ASAP",anti_ddos:"Anti-DDoS",anti_ddos_provedor:"Anti-DDoS para ISPs",transporte_l2l:"Trans
242porte L2L",colocation:"Colocation",colocation_isp:"Colocation",link_dedicado:"Link Dedicado",link_dedicado_corporativo:"Link Dedicado Corporativo",lan_to_lan:"Lan-to-Lan",data_center:"Data Center",data_center_colocation:"Data Center & Colocation",anti_ddos_empresarial:"Anti-DDoS",painel_monitoramento:"Painel de Monitoramento",notificacoes:"Notificações em Tempo Real",notificacoes_tempo_real:"Notificações em Tempo Real",inventario:"Inventário de Cabos e Hardware",inventario_cabos:"Inventário de Cabos e Hardware",upgrade_rack:"Upgrade de Rack",alerta_abertura_rack:"Alerta de abertura de rack",painel_rack_tempo_real:"Painel do rack em tempo real",upgrade_mesmo_circuito:"Upgrade no mesmo circuito",duplo_circuito_7kw:"Duplo circuito e até 7.0 kW por rack",peering:"CIX - Peering"},tx=t=>{const e=Z3[t];return e?`/guias/${e}`:"/guias"},rx=t=>ex[t]||"Produto",ax=()=>{const t=typeof window<"u"?localStorage.getItem("asap_locale"):null;return t!=null&&t.startsWith("en")?"en":"pt-BR"},nx=({productKey:t,guidePath:e,whatsappUrl:r,customSecondButton:a,externalCta:n,secondAction:o="whatsapp",children:i,className:s="",style:l,tracking:d})=>{const[u,p]=m.useState(!1),f=m.useRef(null),h=wo(),y=ax()==="en",g=e||tx(t),v=rx(t),w=r||Ug(void 0,v),P=y?"Learn more":"Saiba mais",x=y?"All guides":"Ver todos os guias",C=y?"Talk to ASAP":"Fale com a ASAP",S=m.useCallback(L=>{f.current&&!f.current.contains(L.target)&&p(!1)},[]),A=m.useCallback(L=>{L.key==="Escape"&&p(!1)},[]);m.useEffect(()=>(u&&(document.addEventListener("mousedown",S),document.addEventListener("keydown",A)),()=>{document.removeEventListener("mousedown",S),document.removeEventListener("keydown",A)}),[u,S,A]);const I=L=>{L.preventDefault(),L.stopPropagation(),p(R=>!R)},T=L=>{L.preventDefault(),L.stopPropagation(),p(!1),h(g)},O=L=>{L.preventDefault(),L.stopPropagation(),p(!1),a?window.open(a.url,"_blank","noopener,noreferrer"):o==="guides"?h("/guias"):d?Bg({url:w,source:d.source,ctaText:C,ctaLocation:d.location,product:d.product}):Ci(void 0,v)},E=()=>a?a.label:o==="guides"?x:C,D=()=>a?a.url:o==="guides"?"/guias":w;return c.jsxs("div",{ref:f,className:`relative cursor-pointer ${s}`,style:l,onClick:I,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),role:"button",tabIndex:0,"aria-label":`Opções para ${v}`,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),p(R=>!R))},children:[i,c.jsxs("div",{className:`absolute inset-0 z-10 flex flex-col items-center justify-center gap-3
243          bg-[#021B3A]/95 backdrop-blur-sm rounded-xl
244          transition-all duration-300 ease-out
245          ${u?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"}`,role:"menu","aria-label":"Ações do produto",children:[c.jsx("a",{href:g,onClick:T,className:`w-48 px-5 py-2 text-center\r
246            bg-white/10 hover:bg-white/20\r
247            border border-white/30 hover:border-white/50\r
248            rounded-lg text-white text-sm font-medium\r
249            transition-all duration-200\r
250            focus:outline-none focus:ring-2 focus:ring-white/50`,role:"menuitem","aria-label":`${P}: ${v}`,children:P}),n&&c.jsx("a",{href:n.url,onClick:L=>L.stopPropagation(),target:"_blank",rel:"noopener noreferrer",className:`w-48 h-9 px-4 flex items-center justify-center text-center\r
251              bg-transparent hover:bg-white/5\r
252              border border-white/20 hover:border-white/35\r
253              rounded-lg text-white/90 text-xs font-medium\r
254              transition-all duration-200\r
255              focus:outline-none focus-visible:ring-2 focus-visible:ring-white/20`,role:"menuitem","aria-label":n.label,children:n.label}),c.jsx("a",{href:D(),onClick:O,target:a||o==="whatsapp"?"_blank":void 0,rel:a||o==="whatsapp"?"noopener noreferrer":void 0,className:`w-48 px-5 py-2 text-center\r
256            bg-white hover:bg-white/90\r
257            rounded-lg text-accent text-sm font-medium\r
258            transition-all duration-200\r
259            focus:outline-none focus:ring-2 focus:ring-white/50`,role:"menuitem","aria-label":E(),children:E()})]})]})},fs="/assets/transito-ip-BXjQkJ3Z.png",ox="/assets/link-dedicado-DWOArKlY.png",ix="/assets/colocation-RdHwMjzN.png",sx="/assets/ipsec-anti-ddos-C8raZzxd.png",lx="/assets/cix-asap-vt-we-F1.png",cx="/assets/transporte-Ci0mvxUI.png",ld={transito_ip:fs,link_dedicado:ox,colocation:ix,anti_ddos:sx,cix:lx,transporte:cx},dx=()=>{const{pages:t}=ft(),{solutions:e}=t.home;return c.jsxs("section",{className:"py-24 relative bg-gradient-to-b from-background via-asap-night/30 to-background",children:[c.jsx("div",{className:"absolute inset-0 network-pattern opacity-20"}),c.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[c.jsxs("div",{className:"text-center mb-16",children:[c.jsxs("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-heading font-bold mb-6",children:[e.title," ",c.jsx("span",{className:"text-gradient-asap",children:e.highlight})]}),c.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto font-body",children:e.lead})]}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 max-w-6xl mx-auto",children:e.items.map((r,a)=>c.jsxs(nx,{productKey:r.productKey,className:"glass-card rounded-2xl p-8 hover:border-accent/30 transition-all duration-500 hover:shadow-glow group block animate-fade-in relative overflow-hidden",style:{animationDelay:`${a*.1}s`},children:[c.jsx("img",{src:ld[r.iconKey]||fs,alt:"","aria-hidden":"true",width:96,height:96,className:"absolute bottom-3 right-3 w-24 h-24 object-contain opacity-[0.06] group-hover:opacity-[0.12] transition-opacity duration-500 pointer-events-none select-none"}),c.jsxs("div",{className:"relative z-10",children:[c.jsx("div",{className:"w-16 h-16 rounded-xl bg-gradient-primary flex items-center justify-center mb-6 group-hover:scale-110 transition-transform duration-300 shadow-cyan",children:c.jsx("img",{src:ld[r.iconKey]||fs,alt:r.title,width:40,height:40,className:"w-10 h-10 object-contain"})}),c.jsxs("h3",{className:"text-xl font-heading font-bold text-foreground mb-3 group-hover:text-accent transition-colors flex items-center gap-2",children:[r.title,c.jsx(Ou,{className:"w-4 h-4 opacity-0 -translate-x-2 group-hover:opacity-100 group-hover:translate-x-0 transition-all"})]}),c.jsx("p",{className:"text-muted-foreground text-sm font-body leading-relaxed",children:r.description})]})]},r.title))})]})]})},ux=[La,Jn,ch],hx=()=>{const{pages:t}
259=ft(),{infrastructure:e}=t.home;return c.jsxs("section",{className:"py-24 relative overflow-hidden",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-asap-royal/10 via-asap-cyan/5 to-asap-royal/10"}),c.jsx("div",{className:"absolute inset-0 network-pattern opacity-20"}),c.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[c.jsxs("div",{className:"text-center mb-16",children:[c.jsxs("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-heading font-bold mb-6",children:[e.title," ",c.jsx("span",{className:"text-gradient-asap",children:e.highlight})]}),c.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto font-body",children:e.lead})]}),c.jsx("div",{className:"grid md:grid-cols-3 gap-8 max-w-5xl mx-auto",children:e.items.map((r,a)=>{const n=ux[a]||La;return c.jsxs("div",{className:"text-center group animate-fade-in",style:{animationDelay:`${a*.15}s`},children:[c.jsxs("div",{className:"relative mb-8",children:[c.jsx("div",{className:"absolute inset-0 w-32 h-32 mx-auto rounded-full bg-gradient-to-br from-asap-royal/30 to-asap-cyan/30 blur-xl group-hover:blur-2xl transition-all duration-500"}),c.jsx("div",{className:"relative w-32 h-32 mx-auto rounded-full bg-gradient-to-br from-asap-royal to-asap-cyan p-1 group-hover:scale-105 transition-transform duration-300",children:c.jsx("div",{className:"w-full h-full rounded-full bg-background flex items-center justify-center",children:c.jsx(n,{className:"w-12 h-12 text-accent"})})})]}),c.jsx("div",{className:"text-3xl md:text-4xl font-heading font-bold text-gradient-asap mb-2",children:r.value}),c.jsx("div",{className:"text-lg font-heading font-semibold text-foreground mb-3",children:r.label}),c.jsx("p",{className:"text-muted-foreground text-sm font-body max-w-xs mx-auto",children:r.description})]},r.label)})})]})]})},t5=[{value:"home_clients_logos",label:"Home"},{value:"para_empresas_clients_logos",label:"Para Empresas"},{value:"para_provedores_clients_logos",label:"Para Provedores"},{value:"data_center_clients_logos",label:"Data Center"}],px={getAllWithAssignments:async()=>{const{data:t,error:e}=await j.from("site_client_logos").select("*").order("created_at",{ascending:!1});if(e)throw e;const{data:r,error:a}=await j.from("site_logo_assignments").select("*");if(a)throw a;return(t||[]).map(n=>({id:n.id,image_url:n.image_url,name:n.name,is_active:n.is_active,created_at:n.created_at,assignments:(r||[]).filter(o=>o.logo_id===n.id)}))},getLogosForPage:async t=>{const{data:e,error:r}=await j.from("site_logo_assignments").select(`
260        order_position,
261        logo:site_client_logos!inner(id, image_url, name, is_active)
262      `).eq("page_key",t).order("order_position",{ascending:!0});if(r)throw r;return(e||[]).filter(a=>{var n;return(n=a.logo)==null?void 0:n.is_active}).map(a=>({logo:a.logo,order_position:a.order_position}))},createLogoWithAssignments:async(t,e,r)=>{const{data:a,error:n}=await j.from("site_client_logos").insert({image_url:t,name:r||null,is_active:!0,section_key:e[0]||"home_clients_logos",order_index:0}).select().single();if(n)throw n;const o=await Promise.all(e.map(async l=>{const{data:d}=await j.from("site_logo_assignments").select("order_position").eq("page_key",l).order("order_position",{ascending:!1}).limit(1).maybeSingle();return{logo_id:a.id,page_key:l,order_position:((d==null?void 0:d.order_position)??-1)+1}})),{data:i,error:s}=await j.from("site_logo_assignments").insert(o).select();if(s)throw s;return{id:a.id,image_url:a.image_url,name:a.name,is_active:a.is_active,created_at:a.created_at,assignments:i}},updateAssignments:async(t,e)=>{const{error:r}=await j.from("site_logo_assignments").delete().eq("logo_id",t);if(r)throw r;if(e.length>0){const a=await Promise.all(e.map(async o=>{const{data:i}=await j.from("site_logo_assignments").select("order_position").eq("page_key",o).order("order_position",{ascending:!1}).limit(1).maybeSingle();return{logo_id:t,page_key:o,order_position:((i==null?void 0:i.order_position)??-1)+1}})),{error:n}=await j.from("site_logo_assignments").insert(a);if(n)throw n}},toggleActive:async(t,e)=>{const{error:r}=await j.from("site_client_logos").update({is_active:e}).eq("id",t);if(r)throw r},deleteLogo:async t=>{const{error:e}=await j.from("site_client_logos").delete().eq("id",t);if(e)throw e}},vl="/assets/logo-1-CpViKccj.png",wl="/assets/logo-2-BpTGc9Q8.png",Pl="/assets/logo-3-DkoWeuLo.png",xl="/assets/logo-4-BMI74vMc.png",$l="/assets/logo-5-iy9za5Ns.png",_l="/assets/logo-6-Cxgkzz4m.png",Sl="/assets/logo-7-CX-9yGQf.png",Cl="/assets/logo-8-B64PxNhL.png",Al="/assets/logo-9-BuzZP-ST.png",El="/assets/logo-10-BfmbvJDu.png",fx="/assets/cirion-BpoLenQn.png",mx="/assets/energia97-BrtN06kn.png",gx="/assets/guess-BG5kzU8Q.png",yx="/assets/ipfibra-BXiZqJgn.png",bx="/assets/mcassab-CD9DA1X-.png",vx="/assets/ortobom-egoBgyfh.png",wx="/assets/ricoy-Co2ao9v8.png",Px="/assets/tim-CIIJO9lK.png",xx=new Set(["http:","https:","mailto:"]);function $x(t){if(!t)return;const e=String(t).trim();if(e){if(e.startsWith("/")||e.startsWith("#")||e.startsWith("./"))return e.startsWith("//")?void 0:e;
262try{const r=new URL(e,"https://www.asaptelecom.com.br");return xx.has(r.protocol)?r.toString():void 0}catch{return}}}const _x={"/src/assets/logos/trusted/logo-1.png":vl,"/src/assets/logos/trusted/logo-2.png":wl,"/src/assets/logos/trusted/logo-3.png":Pl,"/src/assets/logos/trusted/logo-4.png":xl,"/src/assets/logos/trusted/logo-5.png":$l,"/src/assets/logos/trusted/logo-6.png":_l,"/src/assets/logos/trusted/logo-7.png":Sl,"/src/assets/logos/trusted/logo-8.png":Cl,"/src/assets/logos/trusted/logo-9.png":Al,"/src/assets/logos/trusted/logo-10.png":El,"/src/assets/logos/cirion.png":fx,"/src/assets/logos/energia97.png":mx,"/src/assets/logos/guess.png":gx,"/src/assets/logos/ipfibra.png":yx,"/src/assets/logos/mcassab.png":bx,"/src/assets/logos/ortobom.png":vx,"/src/assets/logos/ricoy.png":wx,"/src/assets/logos/tim.png":Px},Sx=t=>_x[t]||t,Cx=[{src:vl,name:"Parceiro 1",link:null},{src:$l,name:"Parceiro 5",link:null},{src:Pl,name:"MTZ",link:null},{src:Cl,name:"Suhai Music Hall",link:null},{src:wl,name:"Parceiro 2",link:null},{src:Sl,name:"Parceiro 7",link:null},{src:xl,name:"FX Conectando Historias",link:null},{src:El,name:"Ricoy",link:null},{src:_l,name:"Parceiro 6",link:null},{src:Al,name:"Parceiro 9",link:null}],Ax=[{src:_l,name:"Parceiro 6",link:null},{src:wl,name:"Parceiro 2",link:null},{src:Al,name:"Parceiro 9",link:null},{src:xl,name:"FX Conectando Historias",link:null},{src:vl,name:"Parceiro 1",link:null},{src:Cl,name:"Suhai Music Hall",link:null},{src:$l,name:"Parceiro 5",link:null},{src:Pl,name:"MTZ",link:null},{src:El,name:"Ricoy",link:null},{src:Sl,name:"Parceiro 7",link:null}],cd=({logos:t,direction:e})=>{const r=e==="left"?"animate-marquee-left":"animate-marquee-right",a=(n,o)=>{const i=c.jsx("img",{src:n.src,alt:n.name,width:120,height:48,className:"h-8 md:h-10 lg:h-12 w-auto object-contain grayscale opacity-70 hover:grayscale-0 hover:opacity-100 hover:scale-105 hover:brightness-105 transition-all duration-300 ease-out cursor-pointer",loading:"lazy"});return n.link?c.jsx("a",{href:$x(n.link),target:"_blank",rel:"noopener noreferrer",className:"flex-shrink-0 mx-4 md:mx-8 lg:mx-10 flex items-center justify-center",children:i},`logo-${e}-${o}`):c.jsx("div",{className:"flex-shrink-0 mx-4 md:mx-8 lg:mx-10 flex items-center justify-center",children:i},`logo-${e}-${o}`)};return c.jsx("div",{className:"relative w-full overflow-hidden",children:c.jsx("div",{className:`flex ${r}`,children:[...t,...t,...t,...t].map((n,o)=>a(n,o))})})},Ex=({sectionKey:t="home_clients_logos"})=>{const{pages:e}=ft(),{trustedLogos:r}=e.home,[a,n]=m.useState(Cx),[o,i]=m.useState(Ax),[s,l]=m.useState(!0);return m.useEffect(()=>{(async()=>{try{const u=await px.getLogosForPage(t);if(u&&u.length>0){const p=u.map(h=>({src:Sx(h.logo.image_url),name:h.logo.name||"Parceiro",link:null})),f=Math.ceil(p.length/2);n(p.slice(0,f)),i(p.slice(f))}}catch(u){console.error("Error loading logos:",u)}finally{l(!1)}})()},[t]),c.jsxs("section",{className:"py-16 md:py-20 bg-[#021B3A] overflow-hidden",children:[c.jsx("div",{className:"container mx-auto px-4",children:c.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold text-white text-center mb-12 md:mb-16",children:r.title})}),c.jsxs("div",{className:"space-y-8 md:space-y-10",children:[c.jsx(cd,{logos:a,direction:"left"}),c.jsx(cd,{logos:o,direction:"right"})]})]})},pm=m.createContext(null);function r5({children:t}){const[e,r]=m.useState(null),a=m.useCallback(o=>{r(o)},[]),n=m.useCallback(()=>{r(null)},[]);return c.jsx(pm.Provider,{value:{prefill:e,setPrefill:a,clearPrefill:n},children:t})}const Tx={prefill:null,setPrefill:()=>{},clearPrefill:()=>{}};function kx(){return m.useContext(pm)??Tx}const zn=m.forwardRef(({className:t,type:e,...r},a)=>c.jsx("input",{type:e,className:ne("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:a,...r}));zn.displayName="Input";var Ox="Label",fm=m.forwardRef((t,e)=>c.jsx(ye.label,{...t,ref:e,onMouseDown:r=>{var n;r.target.closest("button, input, select, textarea")||((n=t.onMouseDown)==null||n.call(t,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));fm.displayName=Ox;var mm=fm;const Ix=Lu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),mr=m.forwardRef(({className:t,...e},r)=>c.jsx(mm,{ref:r,className:ne(Ix(),t),...e}));mr.displayName=mm.displayName;function Nx(t){const e=m.useRef({value:t,previous:t});return m.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var Fo="Checkbox",[Rx]=Pa(Fo),[jx,Tl]=Rx(Fo);function Lx(t){const{__scopeCheckbox:e,checked:r,children:a,defaultChecked:n,disabled:o,form:i,name:s,onCheckedChange:l,required:d,value:u="on",internal_do_not_use_render:p}=t,[f,h]=xo({prop:r,defaultProp:n??!1,onChange:l,caller:Fo}),[b,y]=m.useState(null),[g,v]=m.useState(null),w=m.useRef(!1),P=b?!!i||!!b.closest("form"):!0,x={checked:f,disabled:o,setChecked:h,control:b,setControl:y,name:s,form:i,value:u,hasConsumerStoppedPropagationRef:w,required:d,defaultChecked:er(n)?!1:n,isFormControl:P,bubbleInput:g,setBubbleInput:v};return c.jsx(jx,{scope:e,...x,children:Dx(p)?p(x):a})}var gm="CheckboxTrigger",ym=m.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...a},n)=>{const{control:o,value:i,disabled:s,checked:l,required:d,setControl:u,setChecked:p,hasConsumerStoppedPropagationRef:f,isFormControl:h,bubbleInput:b}=Tl(gm,t),y=Oe(n,u),g=m.useRef(l);return m.useEffect(()=>{const v=o==null?void 0:o.form;if(v){const w=()=>p(g.current);return v.addEventListener("reset",w),()=>v.removeEventListener("reset",w)}},[o,p]),c.jsx(ye.button,{type:"button",role:"checkbox","aria-checked":er(l)?"mixed":l,"aria-required":d,"data-state":xm(l),"data-disabled":s?"":void 0,disabled:s,value:i,...a,ref:y,onKeyDown:ge(e,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:ge(r,v=>{p(w=>er(w)?!0:!w),b&&h&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})})});ym.displayName=gm;var kl=m.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:a,checked:n,defaultChecked:o,required:i,disabled:s,value:l,onCheckedChange:d,form:u,...p}=t;return c.jsx(Lx,{__scopeCheckbox:r,checked:n,defaultChecked:o,disabled:s,required:i,onCheckedChange:d,name:a,form:u,value:l,internal_do_not_use_render:({isFormControl:f})=>c.jsxs(c.Fragment,{children:[c.jsx(ym,{...p,ref:e,__scopeCheckbox:r}),f&&c.jsx(Pm,{__scopeCheckbox:r})]})})});kl.displayName=Fo;var bm="CheckboxIndicator",vm=m.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:a,...n}=t,o=Tl(bm,r);return c.jsx(Nr,{present:a||er(o.checked)||o.checked===!0,children:c.jsx(ye.span,{"data-state":xm(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:e,style:{pointerEvents:"none",...t.style}})})});vm.displayName=bm;var wm="CheckboxBubbleInput",Pm=m.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:a,hasConsumerStoppedPropagationRef:n,checked:o,defaultChecked:i,required:s,disabled:l,name:d,value:u,form:p,bubbleInput:f,setBubbleInput:h}=Tl(wm,t),b=Oe(r,h),y=Nx(o),g=Ah(a);m.useEffect(()=>{const w=f;if(!w)return;const P=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(P,"checked").set,S=!n.current;if(y!==o&&C){const A=new Event("click",{bubbles:S});w.indeterminate=er(o),C.call(w,er(o)?!1:o),w.dispatchEvent(A)}},[f,y,o,n]);const v=m.useRef(er(o)?!1:o);return c.jsx(ye.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??v.current,required:s,disabled:l,name:d,value:u,form:p,...e,tabIndex:-1,ref:b,style:{...e.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Pm.displayName=wm;function Dx(t){return typeof t=="function"}function er(t){return t==="indeterminate"}function xm(t){return er(t)?"indeterminate":t?"checked":"unchecked"}const $m=m.forwardRef(({className:t,...e},r)=>c.jsx(kl,{ref:r,className:ne("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:c.jsx(vm,{className:ne("flex items-center justify-center text-current"),children:c.jsx(sh,{className:"h-4 w-4"})})}));$m.displayName=kl.displayName;const _m=m.forwardRef(({className:t,...e},r)=>c.jsx("textarea",{className:ne("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
262ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...e}));_m.displayName="Textarea";const Fx
vendor: 16,313 bytes, line 262
262={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","(?:[025-7]\\d|44)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","
262(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27
vendor: 33,137 bytes, line 262
2628]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","
262(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33622|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}
262(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61
vendor: 8,552 bytes, line 262
262|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,0,[["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-8]\\d|90)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|30|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4}
vendor: 10,795 bytes, line 262
262)","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}}
262;var Sm={exports:{}},Mx="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Bx=Mx,Ux=Bx;function Cm(){}function Am(){}Am.resetWarningCache=Cm;var qx=function(){function t(a,n,o,i,s,l){if(l!==Ux){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Am,resetWarningCache:Cm};return r.PropTypes=r,r};Sm.exports=qx();var Wx=Sm.exports;const N=js(Wx);var Em={exports:{}};/*!
263	Copyright (c) 2018 Jed Watson.
264	Licensed under the MIT License (MIT), see
265	http://jedwatson.github.io/classnames
266*/(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=n(o,a(s)))}return o}function a(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)e.call(o,s)&&o[s]&&(i=n(i,s));return i}function n(o,i){return i?o?o+" "+i:o+i:o}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(Em);var Vx=Em.exports;const po=js(Vx);function Hx(t,e,r){switch(r){case"Backspace":e>0&&(t=t.slice(0,e-1)+t.slice(e),e--);break;case"Delete":t=t.slice(0,e)+t.slice(e+1);break}return{value:t,caret:e}}function Kx(t,e,r){for(var a={},n="",o=0,i=0;i<t.length;){var s=r(t[i],n,a);s!==void 0&&(n+=s,e!==void 0&&(e===i?o=n.length-1:e>i&&(o=n.length))),i++}e===void 0&&(o=n.length);var l={value:n,caret:o};return l}function zx(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=Gx(t))||e){r&&(t=r);var a=0;return function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
267In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gx(t,e){if(t){if(typeof t=="string")return dd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dd(t,e)}}function dd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function ms(t,e){for(var r=0,a=zx(e.split("")),n;!(n=a()).done;){var o=n.value;o===t&&r++}return r}function Xx(t,e){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"x",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",n=t.length,o=ms("(",t),i=ms(")",t),s=o-i;s>0&&n<e.length;)t+=e[n].replace(r,a),e[n]===")"&&s--,n++;return t}function Jx(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=Qx(t))||e){r&&(t=r);var a=0;return function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
268In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qx(t,e){if(t){if(typeof t=="string")return ud(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ud(t,e)}}function ud(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function Yx(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",r=arguments.length>2?arguments[2]:void 0;if(!t)return function(n){return{text:n}};var a=ms(e,t);return function(n){if(!n)return{text:"",template:t};for(var o=0,i="",s=Jx(t.split("")),l;!(l=s()).done;){var d=l.value;if(d!==e){i+=d;continue}if(i+=n[o],o++,o===n.length&&n.length<a)break}return r&&(i=Xx(i,t)),{text:i,template:t}}}function Zx(t,e,r){typeof r=="string"&&(r=Yx(r));var a=r(t)||{},n=a.text,o=a.template;if(n===void 0&&(n=t),o)if(e===void 0)e=n.length;else{for(var i=0,s=!1,l=-1;i<n.length&&i<o.length;){if(n[i]!==o[i]){if(e===0){s=!0,e=i;break}l=i,e--}i++}s||(e=l+1)}return{text:n,caret:e}}function e$(t){return t.hasAttribute("readonly")}function t$(t){if(t.selectionStart!==t.selectionEnd)return{start:t.selectionStart,end:t.selectionEnd}}var hd={Backspace:8,Delete:46};function r$(t){switch(t.keyCode){case hd.Backspace:return"Backspace";case hd.Delete:return"Delete"}}function a$(t){return t.selectionStart}function Tm(t,e){e!==void 0&&(n$()?setTimeout(function(){return t.setSelectionRange(e,e)},0):t.setSelectionRange(e,e))}function n$(){if(typeof navigator<"u")return o$.test(navigator.userAgent)}var o$=/Android/i;function i$(t,e,r,a,n){gs(e,r,a,void 0,n)}function s$(t,e,r,a,n){if(!e$(e)){var o=r$(t);switch(o){case"Delete":case"Backspace":t.preventDefault();var i=t$(e);return i?(l$(e,i),gs(e,r,a,void 0,n)):gs(e,r,a,o,n)}}}function l$(t,e){var r=t.value;r=r.slice(0,e.start)+r.slice(e.end),t.value=r,Tm(t,e.start)}function gs(t,e,r,a,n){var o=Kx(t.value,a$(t),e),i=o.value,s=o.caret;if(a){var l=Hx(i,s,a);i=l.value,s=l.caret}var d=Zx(i,s,r),u=d.text;s=d.caret,t.value=u,Tm(t,s),n&&n(i)}var c$=["ref","parse","format","value","defaultValue","controlled","onChange","onKeyDown"];function pd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function Kr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};
268e%2?pd(Object(r),!0).forEach(function(a){d$(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pd(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function d$(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u$(t,e){if(t==null)return{};var r=h$(t,e),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)a=o[n],!(e.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function h$(t,e){if(t==null)return{};var r={},a=Object.keys(t),n,o;for(o=0;o<a.length;o++)n=a[o],!(e.indexOf(n)>=0)&&(r[n]=t[n]);return r}function p$(t){var e=t.ref,r=t.parse,a=t.format,n=t.value,o=t.defaultValue,i=t.controlled,s=i===void 0?!0:i,l=t.onChange,d=t.onKeyDown,u=u$(t,c$),p=m.useRef(),f=m.useCallback(function(g){p.current=g,e&&(typeof e=="function"?e(g):e.current=g)},[e]),h=m.useCallback(function(g){return i$(g,p.current,r,a,l)},[p,r,a,l]),b=m.useCallback(function(g){if(d&&d(g),!g.defaultPrevented)return s$(g,p.current,r,a,l)},[p,r,a,l,d]),y=Kr(Kr({},u),{},{ref:f,onChange:h,onKeyDown:b});return s?Kr(Kr({},y),{},{value:a(fd(n)?"":n).text}):Kr(Kr({},y),{},{defaultValue:a(fd(o)?"":o).text})}function fd(t){return t==null}var f$=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function md(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function m$(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?md(Object(r),!0).forEach(function(a){g$(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):md(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function g$(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y$(t,e){if(t==null)return{};var r=b$(t,e),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)a=o[n],!(e.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function b$(t,e){if(t==null)return{};var r={},a=Object.keys(t),n,o;for(o=0;o<a.length;o++)n=a[o],!(e.indexOf(n)>=0)&&(r[n]=t[n]);return r}function fo(t,e){var r=t.inputComponent,a=r===void 0?"input":r,n=t.parse,o=t.format,i=t.value,s=t.defaultValue,l=t.onChange,d=t.controlled,u=t.onKeyDown,p=t.type,f=p===void 0?"text":p,h=y$(t,f$),b=p$(m$({ref:e,parse:n,format:o,value:i,defaultValue:s,onChange:l,controlled:d,onKeyDown:u,type:f},h));return $.createElement(a,b)}fo=$.forwardRef(fo);fo.propTypes={parse:N.func.isRequired,format:N.func.isRequired,inputComponent:N.elementType,type:N.string,value:N.string,defaultValue:N.string,onChange:N.func,controlled:N.bool,onKeyDown:N.func,onCut:N.func,onPaste:N.func};function gd(t,e){t=t.split("-"),e=e.split("-");for(var r=t[0].split("."),a=e[0].split("."),n=0;n<3;n++){var o=Number(r[n]),i=Number(a[n]);if(o>i)return 1;if(i>o)return-1;if(!isNaN(o)&&isNaN(i))return 1;if(isNaN(o)&&!isNaN(i))return-1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]<e[1]?-1:0:!t[1]&&e[1]?1:t[1]&&!e[1]?-1:0}var v$={}.constructor;function Er(t){return t!=null&&t.constructor===v$}function va(t){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},va(t)}function Mo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w$(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,P$(a.key),a)}}function Bo(t,e,r){return e&&w$(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function P$(t){var e=x$(t,"string");return va(e)=="symbol"?e:e+""}function x$(t,e){if(va(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(va(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var $$="1.2.0",_$="1.7.35",yd=" ext. ",S$=/^\d+$/,Ce=function(){function t(e){Mo(this,t),km(e),this.metadata=e,Im.call(this,e)}return Bo(t,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(r){return r!=="001"})}},{key:"getCountryMetadata",value:function(r){return this.metadata.countries[r]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(r){return this.getCountryMetadata(r)!==void 0}},{key:"hasCallingCode",value:function(r){if(this.getCountryCodesForCallingCode(r))return!0;
vendor: 6,287 bytes, line 268
268if(this.nonGeographic()){if(this.nonGeographic()[r])return!0}else{var a=this.countryCallingCodes()[r];if(a&&a.length===1&&a[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(r){return this.nonGeographic()?!!this.nonGeographic()[r]:!this.getCountryCodesForCallingCode(r)}},{key:"country",value:function(r){return this.selectNumberingPlan(r)}},{key:"selectNumberingPlan",value:function(r,a){if(r&&S$.test(r)&&(a=r,r=null),r&&r!=="001"){if(!this.hasCountry(r))throw new Error("Unknown country: ".concat(r));this.numberingPlan=new bd(this.getCountryMetadata(r),this)}else if(a){if(!this.hasCallingCode(a))throw new Error("Unknown calling code: ".concat(a));this.numberingPlan=new bd(this.getNumberingPlanMetadata(a),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(r){var a=this.countryCallingCodes()[r];if(a)return a.length===1&&a[0].length===3?void 0:a}},{key:"getCountryCodeForCallingCode",value:function(r){var a=this.getCountryCodesForCallingCode(r);if(a)return a[0]}},{key:"getNumberingPlanMetadata",value:function(r){var a=this.getCountryCodeForCallingCode(r);if(a)return this.getCountryMetadata(a);if(this.nonGeographic()){var n=this.nonGeographic()[r];if(n)return n}else{var o=this.countryCallingCodes()[r];if(o&&o.length===1&&o[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(r){return this.numberingPlan.type(r)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(r){return this.selectNumberingPlan(r)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])}(),bd=function(){function t(e,r){Mo(this,t),this.globalMetadataObject=r,this.metadata=e,Im.call(this,r.metadata)}return Bo(t,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(r){return r[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var r=this,a=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return a.map(function(n){return new C$(n,r)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(r){return r[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(r){if(this.hasTypes()&&vd(this.types(),r))return new E$(vd(this.types(),r),this)}},{key:"ext",value:function(){return this.v1||this.v2?yd:this.metadata[13]||yd}}])}(),C$=function(){function t(e,r){Mo(this,t),this._format=e,this.metadata=r}return Bo(t,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!A$.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),A$=/^\(?\$1\)?$/,E$=function(){function t(e,r){Mo(this,t),this.type=e,this.metadata=r}return Bo(t,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.t
vendor: 4,501 bytes, lines 268-269
268ype[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function vd(t,e){switch(e){case"FIXED_LINE":return t[0];case"MOBILE":return t[1];case"TOLL_FREE":return t[2];case"PREMIUM_RATE":return t[3];case"PERSONAL_NUMBER":return t[4];case"VOICEMAIL":return t[5];case"UAN":return t[6];case"PAGER":return t[7];case"VOIP":return t[8];case"SHARED_COST":return t[9]}}function km(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Er(t)||!Er(t.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Er(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+T$(t)+": "+t,"."))}var T$=function(e){return va(e)};function or(t,e){if(e=new Ce(e),e.hasCountry(t))return e.selectNumberingPlan(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function Om(t,e){return e.countries.hasOwnProperty(t)}function Im(t){var e=t.version;typeof e=="number"?(this.v1=e===1,this.v2=e===2,this.v3=e===3,this.v4=e===4):e?gd(e,$$)===-1?this.v2=!0:gd(e,_$)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function Uo(t,e,r){return k$(t,e,void 0,r)}function k$(t,e,r,a){e&&(a=new Ce(a.metadata),a.selectNumberingPlan(e));var n=a.type(r),o=n&&n.possibleLengths()||a.possibleLengths();if(!o)return"IS_POSSIBLE";var i=t.length,s=o[0];return s===i?"IS_POSSIBLE":s>i?"TOO_SHORT":o[o.length-1]<i?"TOO_LONG":o.indexOf(i,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function O$(t,e,r){if(e===void 0&&(e={}),r=new Ce(r),e.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!r.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));r.selectNumberingPlan(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(t.countryCallingCode)}}if(r.possibleLengths())return Nm(t.phone||t.nationalNumber,t.country,r);if(t.countryCallingCode&&r.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function Nm(t,e,r){switch(Uo(t,e,r)){case"IS_POSSIBLE":return!0;default:return!1}}function jt(t,e){return t=t||"",new RegExp("^(?:"+e+")$").test(t)}function I$(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=N$(t))||e){r&&(t=r);var a=0;return function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
269In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N$(t,e){if(t){if(typeof t=="string")return wd(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wd(t,e):void 0}}function wd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=Array(e);r<e;r++)a[r]=t[r];return a}var R$=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Ol(t,e,r){if(e=e||{},!(!t.country&&!t.countryCallingCode)){r=new Ce(r),r.selectNumberingPlan(t.country,t.countryCallingCode);var a=e.v2?t.nationalNumber:t.phone;if(jt(a,r.nationalNumberPattern())){if(bi(a,"FIXED_LINE",r))return r.type("MOBILE")&&r.type("MOBILE").pattern()===""||!r.type("MOBILE")||bi(a,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var n=I$(R$),o;!(o=n()).done;){var i=o.value;if(bi(a,i,r))return i}}}}function bi(t,e,r){return e=r.type(e),!e||!e.pattern()||e.possibleLengths()&&e.possibleLengths().indexOf(t.length)<0?!1:jt(t,e.pattern())}function j$(t,e,r){if(e=e||{},r=new Ce(r),r.selectNumberingPlan(t.country,t.countryCallingCode),r.hasTypes())return Ol(t,e,r.metadata)!==void 0;var a=e.v2?t.nationalNumber:t.phone;return jt(a,r.nationalNumberPattern())}function L$(t,e,r){var a=new Ce(r),n=a.getCountryCodesForCallingCode(t);return n?n.filter(function(o){return D$(e,o,r)}):[]}function D$(t,e,r){var a=new Ce(r);return a.selectNumberingPlan(e),a.numberingPlan.possibleLengths().indexOf(t.length)>=0}var Il=2,F$=17,M$=3,Fe="0-90-9٠-Ù©Û°-Û¹",B$="-‐-―−ー-",U$="//",q$="..",W$="  ­â€
269‹â ã€€",V$="()()[]\\[\\]",H$="~⁓∼~",ut="".concat(B$).concat(U$).concat(q$).concat(W$).concat(V$).concat(H$),qo="++",K$=new RegExp("(["+Fe+"])");function Rm(t,e,r,a){if(e){var n=new Ce(a);n.selectNumberingPlan(e,r);var o=new RegExp(n.IDDPrefix());if(t.search(o)===0){t=t.slice(t.match(o)[0].length);var i=t.match(K$);if(!(i&&i[1]!=null&&i[1].length>0&&i[1]==="0"))return t}}}function ys(t,e){if(t&&e.numberingPlan.nationalPrefixForParsing()){var r=new RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),a=r.exec(t);if(a){var n,o,i=a.length-1,s=i>0&&a[i];if(e.nationalPrefixTransformRule()&&s)n=t.replace(r,e.nationalPrefixTransformRule()),i>1&&(o=a[1]);else{var l=a[0];n=t.slice(l.length),s&&(o=a[1])}var d;if(s){var u=t.indexOf(a[1]),p=t.slice(0,u);p===e.numberingPlan.nationalPrefix()&&(d=e.numberingPlan.nationalPrefix())}else d=a[0];return{nationalNumber:n,nationalPrefix:d,carrierCode:o}}}return{nationalNumber:t}}function z$(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=G$(t))||e){r&&(t=r);var a=0;return function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
270In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G$(t,e){if(t){if(typeof t=="string")return Pd(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pd(t,e):void 0}}function Pd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=Array(e);r<e;r++)a[r]=t[r];return a}function jm(t,e){var r=e.countries,a=e.metadata;a=new Ce(a);for(var n=z$(r),o;!(o=n()).done;){var i=o.value;if(a.selectNumberingPlan(i),a.leadingDigits()){if(t&&t.search(a.leadingDigits())===0)return i}else if(Ol({phone:t,country:i},void 0,a.metadata))return i}}function Nl(t,e){var r=e.nationalNumber,a=e.metadata,n=a.getCountryCodesForCallingCode(t);if(n)return n.length===1?n[0]:jm(r,{countries:n,metadata:a.metadata})}function bs(t,e,r){var a=ys(t,r),n=a.carrierCode,o=a.nationalNumber;if(o!==t){if(!X$(t,o,r))return{nationalNumber:t};if(r.numberingPlan.possibleLengths()&&(e||(e=Nl(r.numberingPlan.callingCode(),{nationalNumber:o,metadata:r})),!J$(o,e,r)))return{nationalNumber:t}}return{nationalNumber:o,carrierCode:n}}function X$(t,e,r){return!(jt(t,r.nationalNumberPattern())&&!jt(e,r.nationalNumberPattern()))}function J$(t,e,r){switch(Uo(t,e,r)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Lm(t,e,r,a,n){var o=e||r?or(e||r,n):a;if(t.indexOf(o)===0){n=new Ce(n),n.selectNumberingPlan(e||r,o);var i=t.slice(o.length),s=bs(i,e,n),l=s.nationalNumber,d=bs(t,e,n),u=d.nationalNumber;if(!jt(u,n.nationalNumberPattern())&&jt(l,n.nationalNumberPattern())||Uo(u,e,n)==="TOO_LONG")return{countryCallingCode:o,number:i}}return{number:t}}function Rl(t,e,r,a,n){if(!t)return{};var o;if(t[0]!=="+"){var i=Rm(t,e||r,a,n);if(i&&i!==t)o=!0,t="+"+i;else{if(e||r||a){var s=Lm(t,e,r,a,n),l=s.countryCallingCode,d=s.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:d}}return{number:t}}}if(t[1]==="0")return{};n=new Ce(n);for(var u=2;u-1<=M$&&u<=t.length;){var p=t.slice(1,u);if(n.hasCallingCode(p))return n.selectNumberingPlan(p),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:p,number:t.slice(u)};u++}return{}}function Dm(t){return t.replace(new RegExp("[".concat(ut,"]+"),"g")," ").trim()}var Fm=/(\$\d)/;function Mm(t,e,r){var a=r.useInternationalFormat,n=r.withNationalPrefix;r.carrierCode,r.metadata;var o=t.replace(new RegExp(e.pattern()),a?e.internationalFormat():n&&e.nationalPrefixFormattingRule()?e.format().replace(Fm,e.nationalPrefixFormattingRule()):e.format());return a?Dm(o):o}var Q$=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Y$(t,e,r){var a=new Ce(r);if(a.selectNumberingPlan(t,e),a.defaultIDDPrefix())return a.defaultIDDPrefix();if(Q$.test(a.IDDPrefix()))return a.IDDPrefix()}var Z$=";ext=",zr=function(e){return"([".concat(Fe,"]{1,").concat(e,"})")};function Bm(t){var e="20",r="15",a="9",n="6",o="[  \\t,]*",i="[:\\..]?[  \\t,-]*",s="#?",l="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",u="[- ]+",p="[  \\t]*",f="(?:,{2}|;)",h=Z$+zr(e),b=o+l+i+zr(e)+s,y=o+d+i+zr(a)+s,g=u+zr(n)+"#",v=p+f+i+zr(r)+s,w=p+"(?:,)+"+i+zr(a)+s;return h+"|"+b+"|"+y+"|"+g+"|"+v+"|"+w}var e_="["+Fe+"]{"+Il+"}",t_="["+qo+"]{0,1}(?:["+ut+"]*["+Fe+"]){3,}["+ut+Fe+"]*",r_=new RegExp("^["+qo+"]{0,1}(?:["+ut+"]*["+Fe+"]){1,2}$","i"),a_=t_+"(?:"+Bm()+")?",n_=new RegExp("^"+e_+"$|^"+a_+"$","i");function o_(t){return t.length>=Il&&n_.test(t)}function i_(t){return r_.test(t)}function s_(t){var e=t.number,r=t.ext;if(!e)return"";if(e[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(r?";ext="+r:"")}var xd={formatExtension:function(e,r,a){return"".concat(e).concat(a.ext()).concat(r)}};function l_(t,e,r,a){if(r?r=u_({}
vendor: 6,765 bytes, line 270
270,xd,r):r=xd,a=new Ce(a),t.country&&t.country!=="001"){if(!a.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));a.selectNumberingPlan(t.country)}else if(t.countryCallingCode)a.selectNumberingPlan(t.countryCallingCode);else return t.phone||"";var n=a.countryCallingCode(),o=r.v2?t.nationalNumber:t.phone,i;switch(e){case"NATIONAL":return o?(i=mo(o,t.carrierCode,"NATIONAL",a,r),vi(i,t.ext,a,r.formatExtension)):"";case"INTERNATIONAL":return o?(i=mo(o,null,"INTERNATIONAL",a,r),i="+".concat(n," ").concat(i),vi(i,t.ext,a,r.formatExtension)):"+".concat(n);case"E.164":return"+".concat(n).concat(o);case"RFC3966":return s_({number:"+".concat(n).concat(o),ext:t.ext});case"IDD":if(!r.fromCountry)return;var s=d_(o,t.carrierCode,n,r.fromCountry,a);return s?vi(s,t.ext,a,r.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e,'"'))}}function mo(t,e,r,a,n){var o=c_(a.formats(),t);return o?Mm(t,o,{useInternationalFormat:r==="INTERNATIONAL",withNationalPrefix:!(o.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&n&&n.nationalPrefix===!1),carrierCode:e,metadata:a}):t}function c_(t,e){return h_(t,function(r){if(r.leadingDigitsPatterns().length>0){var a=r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length-1];if(e.search(a)!==0)return!1}return jt(e,r.pattern())})}function vi(t,e,r,a){return e?a(t,e,r):t}function d_(t,e,r,a,n){var o=or(a,n.metadata);if(o===r){var i=mo(t,e,"NATIONAL",n);return r==="1"?r+" "+i:i}var s=Y$(a,void 0,n.metadata);if(s)return"".concat(s," ").concat(r," ").concat(mo(t,null,"INTERNATIONAL",n))}function u_(){for(var t=1,e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];for(;t<r.length;){if(r[t])for(var n in r[t])r[0][n]=r[t][n];t++}return r[0]}function h_(t,e){for(var r=0;r<t.length;){if(e(t[r]))return t[r];r++}}function Va(t){"@babel/helpers - typeof";return Va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Va(t)}function $d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function _d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$d(Object(r),!0).forEach(function(a){p_(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$d(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function p_(t,e,r){return(e=Um(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f_(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m_(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,Um(a.key),a)}}function g_(t,e,r){return e&&m_(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Um(t){var e=y_(t,"string");return Va(e)=="symbol"?e:e+""}function y_(t,e){if(Va(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(Va(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var qm=function(){function t(e,r,a){if(f_(this,t),!e)throw new TypeError("First argument is required");if(typeof e!="string")throw new TypeError("First argument must be a string");if(e[0]==="+"&&!r)throw new TypeError("`metadata` argument not passed");if(Er(r)&&Er(r.countries)){a=r;var n=e;if(!w_.test(n))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var o=Rl(n,void 0,void 0,void 0,a),i=o.countryCallingCode,s=o.number;if(r=s,e=i,!r)throw new Error("Invalid `number` argument passed: too short")}if(!r)throw new TypeError("`nationalNumber` argument is required");if(typeof r!="string")throw new TypeError("`nationalNumber` argument must be a string");km(a);var l=v_(e,a),d=l.country,u=l.countryCallingCode;this.country=d,this.countryCallingCode=u,this.nationalNumber=r,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return a}}return g_(t,[{key:"setExt",value:function(r){this.ext=r}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:L$(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return O$(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return j$(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var r=new Ce(this.getMetadata());return r.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(r){return this.number===r.number&&this.ext===r.ext}},{key:"getType",value:function(){return Ol(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(r,a){return l_(this,r,a?_d(_d({},a),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(r){return this.format("NATIONAL",r)}},{key:"formatInternational",value:function(r){return this.format("INTERNATIONAL",r)}},{key:"getURI",value:function(r){return this.format("RFC3966",r)}}])}(),b_=function(e){return/^[A-Z]{2}$/.test(e)};function v_(t,e){var r,a,n=new Ce(e);return b_(t)?(r=t,n.selectNumberingPlan(r),a=n.countryCallingCode()):a=t,{country:r,countryCallingCode:a}}var w_=/^\+\d+$/;function vs(t){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vs(t)}function P_(t,e,r){return Object.defineProperty(t,"prototype",{writable:!1}),t}function x_(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $_(t,e,r){return e=Ka(e),__(t,jl()?Reflect.construct(e,r||[],Ka(t).constructor):e.apply(t,r))}function __(t,e){if(e&&(vs(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S_(t)}function S_(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function C_(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ha(t,e)}function ws(t){var e=typeof Map=="function"?new Map:void 0;
vendor: 5,286 bytes, lines 270-272
270return ws=function(a){if(a===null||!E_(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(a))return e.get(a);e.set(a,n)}function n(){return A_(a,arguments,Ka(this).constructor)}return n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ha(n,a)},ws(t)}function A_(t,e,r){if(jl())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,e);var n=new(t.bind.apply(t,a));return r&&Ha(n,r.prototype),n}function jl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jl=function(){return!!t})()}function E_(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function Ha(t,e){return Ha=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Ha(t,e)}function Ka(t){return Ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ka(t)}var Tt=function(t){function e(r){var a;return x_(this,e),a=$_(this,e,[r]),Object.setPrototypeOf(a,e.prototype),a.name=a.constructor.name,a}return C_(e,t),P_(e)}(ws(Error)),Sd=new RegExp("(?:"+Bm()+")$","i");function T_(t){var e=t.search(Sd);if(e<0)return{};for(var r=t.slice(0,e),a=t.match(Sd),n=1;n<a.length;){if(a[n])return{number:r,ext:a[n]};n++}}function k_(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=O_(t))||e){r&&(t=r);var a=0;return function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
271In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O_(t,e){if(t){if(typeof t=="string")return Cd(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cd(t,e):void 0}}function Cd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=Array(e);r<e;r++)a[r]=t[r];return a}var I_={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function Wm(t){return I_[t]}function go(t){for(var e="",r=k_(t.split("")),a;!(a=r()).done;){var n=a.value,o=Wm(n);o&&(e+=o)}return e}function N_(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=R_(t))||e){r&&(t=r);var a=0;return function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
272In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R_(t,e){if(t){if(typeof t=="string")return Ad(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ad(t,e):void 0}}function Ad(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=Array(e);r<e;r++)a[r]=t[r];return a}function Ps(t){for(var e="",r=N_(t.split("")),a;!(a=r()).done;){var n=a.value;e+=Vm(n,e)||""}return e}function Vm(t,e,r){if(t==="+"){if(e){typeof r=="function"&&r("end");return}return"+"}return Wm(t)}var Hm="+",j_="[\\-\\.\\(\\)]?",Ed="(["+Fe+"]|"+j_+")",L_="^\\"+Hm+Ed+"*["+Fe+"]"+Ed+"*$",D_=new RegExp(L_,"g"),xs=Fe,F_="["+xs+"]+((\\-)*["+xs+"])*",M_="a-zA-Z",B_="["+M_+"]+((\\-)*["+xs+"])*",U_="^("+F_+"\\.)*"+B_+"\\.?$",q_=new RegExp(U_,"g"),Td="tel:",$s=";phone-context=",W_=";isub=";function V_(t){var e=t.indexOf($s);if(e<0)return null;var r=e+$s.length;if(r>=t.length)return"";var a=t.indexOf(";",r);return a>=0?t.substring(r,a):t.substring(r)}function H_(t){return t===null?!0:t.length===0?!1:D_.test(t)||q_.test(t)}function K_(t,e){var r=e.extractFormattedPhoneNumber,a=V_(t);if(!H_(a))throw new Tt("NOT_A_NUMBER");var n;if(a===null)n=r(t)||"";else{n="",a.charAt(0)===Hm&&(n+=a);var o=t.indexOf(Td),i;o>=0?i=o+Td.length:i=0;var s=t.indexOf($s);n+=t.substring(i,s)}var l=n.indexOf(W_);if(l>0&&(n=n.substring(0,l)),n!=="")return n}var z_=250,G_=new RegExp("["+qo+Fe+"]"),X_=new RegExp("[^"+Fe+"#]+$");function J_(t,e,r){if(e=e||{},r=new Ce(r),e.defaultCountry&&!r.hasCountry(e.defaultCountry))throw e.v2?new Tt("INVALID_COUNTRY"):new Error("Unknown country: ".concat(e.defaultCountry));var a=Y_(t,e.v2,e.extract),n=a.number,o=a.ext,i=a.error;if(!n){if(e.v2)throw i==="TOO_SHORT"?new Tt("TOO_SHORT"):new Tt("NOT_A_NUMBER");return{}}var s=eS(n,e.defaultCountry,e.defaultCallingCode,r),l=s.country,d=s.nationalNumber,u=s.countryCallingCode,p=s.countryCallingCodeSource,f=s.carrierCode;if(!r.hasSelectedNumberingPlan()){if(e.v2)throw new Tt("INVALID_COUNTRY");return{}}if(!d||d.length<Il){if(e.v2)throw new Tt("TOO_SHORT");return{}}if(d.length>F$){if(e.v2)throw new Tt("TOO_LONG");return{}}if(e.v2){var h=new qm(u,d,r.metadata);
vendor: 14,155 bytes, lines 272-274
272return l&&(h.country=l),f&&(h.carrierCode=f),o&&(h.ext=o),h.__countryCallingCodeSource=p,h}var b=(e.extended?r.hasSelectedNumberingPlan():l)?jt(d,r.nationalNumberPattern()):!1;return e.extended?{country:l,countryCallingCode:u,carrierCode:f,valid:b,possible:b?!0:!!(e.extended===!0&&r.possibleLengths()&&Nm(d,l,r)),phone:d,ext:o}:b?Z_(l,d,o):{}}function Q_(t,e,r){if(t){if(t.length>z_){if(r)throw new Tt("TOO_LONG");return}if(e===!1)return t;var a=t.search(G_);if(!(a<0))return t.slice(a).replace(X_,"")}}function Y_(t,e,r){var a=K_(t,{extractFormattedPhoneNumber:function(i){return Q_(i,r,e)}});if(!a)return{};if(!o_(a))return i_(a)?{error:"TOO_SHORT"}:{};var n=T_(a);return n.ext?n:{number:a}}function Z_(t,e,r){var a={country:t,phone:e};return r&&(a.ext=r),a}function eS(t,e,r,a){var n=Rl(Ps(t),void 0,e,r,a.metadata),o=n.countryCallingCodeSource,i=n.countryCallingCode,s=n.number,l;if(i)a.selectNumberingPlan(i);else if(s&&(e||r))a.selectNumberingPlan(e,r),e&&(l=e),i=r||or(e,a.metadata);else return{};if(!s)return{countryCallingCodeSource:o,countryCallingCode:i};var d=bs(Ps(s),l,a),u=d.nationalNumber,p=d.carrierCode,f=Nl(i,{nationalNumber:u,metadata:a});return f&&(l=f,f==="001"||a.selectNumberingPlan(l)),{country:l,countryCallingCode:i,countryCallingCodeSource:o,nationalNumber:u,carrierCode:p}}function za(t){"@babel/helpers - typeof";return za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},za(t)}function kd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function Od(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?kd(Object(r),!0).forEach(function(a){tS(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kd(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function tS(t,e,r){return(e=rS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rS(t){var e=aS(t,"string");return za(e)=="symbol"?e:e+""}function aS(t,e){if(za(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(za(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function nS(t,e,r){return J_(t,Od(Od({},e),{},{v2:!0}),r)}function Ga(t){"@babel/helpers - typeof";return Ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ga(t)}function Id(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function oS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Id(Object(r),!0).forEach(function(a){iS(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Id(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function iS(t,e,r){return(e=sS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sS(t){var e=lS(t,"string");return Ga(e)=="symbol"?e:e+""}function lS(t,e){if(Ga(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(Ga(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function cS(t,e){return pS(t)||hS(t,e)||uS(t,e)||dS()}function dS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
273In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uS(t,e){if(t){if(typeof t=="string")return Nd(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nd(t,e):void 0}}function Nd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=Array(e);r<e;r++)a[r]=t[r];return a}function hS(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,d=!1;try{if(o=(r=r.call(t)).next,e!==0)for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==e);l=!0);}catch(u){d=!0,n=u}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw n}}return s}}function pS(t){if(Array.isArray(t))return t}function fS(t){var e=Array.prototype.slice.call(t),r=cS(e,4),a=r[0],n=r[1],o=r[2],i=r[3],s,l,d;if(typeof a=="string")s=a;else throw new TypeError("A text for parsing must be a string.");if(!n||typeof n=="string")i?(l=o,d=i):(l=void 0,d=o),n&&(l=oS({defaultCountry:n},l));else if(Er(n))o?(l=n,d=o):d=n;else throw new Error("Invalid second argument: ".concat(n));return{text:s,options:l,metadata:d}}function Xa(t){"@babel/helpers - typeof";return Xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xa(t)}function Rd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function jd(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Rd(Object(r),!0).forEach(function(a){mS(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rd(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function mS(t,e,r){return(e=gS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gS(t){var e=yS(t,"string");return Xa(e)=="symbol"?e:e+""}function yS(t,e){if(Xa(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(Xa(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bS(t,e,r){e&&e.defaultCountry&&!Om(e.defaultCountry,r)&&(e=jd(jd({},e),{},{defaultCountry:void 0}));try{return nS(t,e,r)}catch(a){if(!(a instanceof Tt))throw a}}function vS(){var t=fS(arguments),e=t.text,r=t.options,a=t.metadata;return bS(e,r,a)}function Ja(t){"@babel/helpers - typeof";return Ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ja(t)}function wS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PS(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,$S(a.key),a)}}function xS(t,e,r){return e&&PS(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function $S(t){var e=_S(t,"string");return Ja(e)=="symbol"?e:e+""}function _S(t,e){if(Ja(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(Ja(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var SS=function(){function t(e){var r=e.onCountryChange,a=e.onCallingCodeChange;wS(this,t),this.onCountryChange=r,this.onCallingCodeChange=a}return xS(t,[{key:"reset",value:function(r){var a=r.country,n=r.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(a,n)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberIsModified=!1,this.nationalPrefix=void 0,this.carrierCode=void 0,this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix=void 0}},{key:"update",value:function(r){for(var a=0,n=Object.keys(r);a<n.length;a++){var o=n[a];this[o]=r[o]}}},{key:"initCountryAndCallingCode",value:function(r,a){this.setCountry(r),this.setCallingCode(a)}},{key:"setCountry",value:function(r){this.country=r,this.onCountryChange(r)}},{key:"setCallingCode",value:function(r){this.callingCode=r,this.onCallingCodeChange(r,this.country)}},{key:"startInternationalNumber",value:function(r,a){this.international=!0,this.initCountryAndCallingCode(r,a)}},{key:"appendDigits",value:function(r){this.digits+=r}},{key:"appendNationalSignificantNumberDigits",value:function(r){this.nationalSignificantNumber+=r}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])}();function CS(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=AS(t))||e){r&&(t=r);var a=0;return function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
274In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AS(t,e){if(t){if(typeof t=="string")return Ld(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ld(t,e):void 0}}function Ld(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=Array(e);r<e;r++)a[r]=t[r];return a}var ot="x",wi=new RegExp(ot);function Gn(t,e){if(e<1)return"";for(var r="";e>1;)e&1&&(r+=t),e>>=1,t+=t;return r+t}function Dd(t,e){return t[e]===")"&&e++,ES(t.slice(0,e))}function ES(t){for(var e=[],r=0;r<t.length;)t[r]==="("?e.push(r):t[r]===")"&&e.pop(),r++;var a=0,n="";e.push(t.length);for(var o=0,i=e;o<i.length;o++){var s=i[o];n+=t.slice(a,s),a=s+1}return n}function TS(t,e,r){for(var a=CS(r.split("")),n;!(n=a()).done;){var o=n.value;if(t.slice(e+1).search(wi)<0)return;e=t.search(wi),t=t.replace(wi,o)}return[t,e]}function kS(t,e,r){var a=r.metadata,n=r.shouldTryNationalPrefixFormattingRule,o=r.getSeparatorAfterNationalPrefix,i=new RegExp("^(?:".concat(e.pattern(),")$"));if(i.test(t.nationalSignificantNumber))return IS(t,e,{metadata:a,shouldTryNationalPrefixFormattingRule:n,getSeparatorAfterNationalPrefix:o})}function OS(t,e,r){return Uo(t,e,r)==="IS_POSSIBLE"}function IS(t,e,r){var a=r.metadata,n=r.shouldTryNationalPrefixFormattingRule,o=r.getSeparatorAfterNationalPrefix;if(t.nationalSignificantNumber,t.international,t.nationalPrefix,t.carrierCode,n(e)){var i=Fd(t,e,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:o,metadata:a});if(i)return i}return Fd(t,e,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:o,metadata:a})}function Fd(t,e,r){var a=r.metadata,n=r.useNationalPrefixFormattingRule,o=r.getSeparatorAfterNationalPrefix,i=Mm(t.nationalSignificantNumber,e,{carrierCode:t.carrierCode,useInternationalFormat:t.international,withNationalPrefix:n,metadata:a});if(n||(t.nationalPrefix?i=t.nationalPrefix+o(e)+i:t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(i=t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+" "+i)),NS(i,t))return i}function NS(t,e){return go(t)===e.getNationalDigits()}function Qa(t){"@babel/helpers - typeof";return Qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qa(t)}function RS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jS(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,DS(a.key),a)}}function LS(t,e,r){return e&&jS(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function DS(t){var e=FS(t,"string");return Qa(e)=="symbol"?e:e+""}function FS(t,e){if(Qa(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(Qa(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var MS=function(){function t(){RS(this,t)}return LS(t,[{key:"parse",value:function(r){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(r),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var a=this.context[0],n=a.branches,o=a.instructions;if(n)return{op:"|",args:n.concat([Pi(o)])};if(o.length===0)throw new Error("Pattern is required");return o.length===1?o[0]:o}},{key:"startContext",value:function(r){this.context.push(r)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(r){if(!r)throw new Error("Pattern is required");var a=r.match(qS);if(!a){if(US.test(r))throw new Error("Illegal characters found in a pattern: ".concat(r));this.getContext().instructions=this.getContext().instructions.concat(r.split(""));return}var n=a[1],o=r.slice(0,a.index),i=r.slice(a.index+n.length);switch(n){case"(?:":o&&this.parsePattern(o),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(o&&this.parsePattern(o),this.getContext().instructions.length===0)throw new Error('No instructions foun
274d after "|" operator in an "or" group');var s=this.getContext(),l=s.branches;l.push(Pi(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:l});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(o&&this.parsePattern(o),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(Pi(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":o&&this.parsePattern(o),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:BS(o)});break;default:throw new Error("Unknown operator: ".concat(n))}i&&this.parsePattern(i)}}])}();function BS(t){for(var e=[],r=0;r<t.length;){if(t[r]==="-"){if(r===0||r===t.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(t));for(var a=t[r-1].charCodeAt(0)+1,n=t[r+1].charCodeAt(0)-1,o=a;o<=n;)e.push(String.fromCharCode(o)),o++}else e.push(t[r]);r++}return e}var US=/[\(\)\[\]\?\:\|]/,qS=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function Pi(t){return t.length===1?t[0]:t}function Md(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=WS(t))||e){r&&(t=r);var a=0;return function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
275In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WS(t,e){if(t){if(typeof t=="string")return Bd(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bd(t,e):void 0}}function Bd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=Array(e);r<e;r++)a[r]=t[r];return a}function Ya(t){"@babel/helpers - typeof";return Ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ya(t)}function VS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HS(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,zS(a.key),a)}}function KS(t,e,r){return e&&HS(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function zS(t){var e=GS(t,"string");return Ya(e)=="symbol"?e:e+""}function GS(t,e){if(Ya(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(Ya(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var XS=function(){function t(e){VS(this,t),this.matchTree=new MS().parse(e)}return KS(t,[{key:"match",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.allowOverflow;if(!r)throw new Error("String is required");var o=_s(r.split(""),this.matchTree,!0);if(o&&o.match&&delete o.matchedChars,!(o&&o.overflow&&!n))return o}}])}();function _s(t,e,r){if(typeof e=="string"){var a=t.join("");return e.indexOf(a)===0?t.length===e.length?{match:!0,matchedChars:t}:{partialMatch:!0}:a.indexOf(e)===0?r&&t.length>e.length?{overflow:!0}:{match:!0,matchedChars:t.slice(0,e.length)}:void 0}if(Array.isArray(e)){for(var n=t.slice(),o=0;o<e.length;){var i=e[o],s=_s(n,i,r&&o===e.length-1);if(s){if(s.overflow)return s;if(s.match){if(n=n.slice(s.matchedChars.length),n.length===0)return o===e.length-1?{match:!0,matchedChars:t}:{partialMatch:!0}}else{if(s.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
276`.concat(JSON.stringify(s,null,2)))}}else return;o++}return r?{overflow:!0}:{match:!0,matchedChars:t.slice(0,t.length-n.length)}}switch(e.op){case"|":for(var l,d=Md(e.args),u;!(u=d()).done;){var p=u.value,f=_s(t,p,r);if(f){if(f.overflow)return f;if(f.match)return{match:!0,matchedChars:f.matchedChars};if(f.partialMatch)l=!0;else throw new Error(`Unsupported match result:
277`.concat(JSON.stringify(f,null,2)))}}return l?{partialMatch:!0}:void 0;case"[]":for(var h=Md(e.args),b;!(b=h()).done;){var y=b.value;if(t[0]===y)return t.length===1?{match:!0,matchedChars:t}:r?{overflow:!0}:{match:!0,matchedChars:[y]}}return;default:throw new Error("Unsupported instruction tree: ".concat(e))}}function Za(t){"@babel/helpers - typeof";return Za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Za(t)}function Ud(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=JS(t))||e){r&&(t=r);var a=0;return function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
278In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JS(t,e){if(t){if(typeof t=="string")return qd(t,e);var r={}.toString.call(t).slice(8,-1);
vendor: 15,883 bytes, lines 278-280
278return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qd(t,e):void 0}}function qd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=Array(e);r<e;r++)a[r]=t[r];return a}function QS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function YS(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,eC(a.key),a)}}function ZS(t,e,r){return e&&YS(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function eC(t){var e=tC(t,"string");return Za(e)=="symbol"?e:e+""}function tC(t,e){if(Za(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(Za(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Ss="9",rC=15,aC=Gn(Ss,rC),nC=/[- ]/,oC=function(){return/\[([^\[\]])*\]/g},iC=function(){return/\d(?=[^,}][^,}])/g},sC=new RegExp("["+ut+"]*\\$1["+ut+"]*(\\$\\d["+ut+"]*)*$"),Wd=3,lC=function(){function t(e){e.state;var r=e.metadata;QS(this,t),this.metadata=r,this.resetFormat()}return ZS(t,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(r,a){this.resetFormat(),r?(this.isNANP=r.callingCode()==="1",this.matchingFormats=r.formats(),a.nationalSignificantNumber&&this.narrowDownMatchingFormats(a)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(r,a){var n=this;if(OS(a.nationalSignificantNumber,a.country,this.metadata))for(var o=Ud(this.matchingFormats),i;!(i=o()).done;){var s=i.value,l=kS(a,s,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(u){return n.shouldTryNationalPrefixFormattingRule(u,{international:a.international,nationalPrefix:a.nationalPrefix})},getSeparatorAfterNationalPrefix:function(u){return n.getSeparatorAfterNationalPrefix(u)}});if(l)return this.resetFormat(),this.chosenFormat=s,this.setNationalNumberTemplate(l.replace(/\d/g,ot),a),this.populatedNationalNumberTemplate=l,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(ot),l}return this.formatNationalNumberWithNextDigits(r,a)}},{key:"formatNationalNumberWithNextDigits",value:function(r,a){var n=this.chosenFormat,o=this.chooseFormat(a);if(o)return o===n?this.formatNextNationalNumberDigits(r):this.formatNextNationalNumberDigits(a.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(r){var a=this,n=r.nationalSignificantNumber,o=r.nationalPrefix,i=r.international,s=n,l=s.length-Wd;l<0&&(l=0),this.matchingFormats=this.matchingFormats.filter(function(d){return a.formatSuits(d,i,o)&&a.formatMatches(d,s,l)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(r,a,n){return!(n&&!r.usesNationalPrefix()&&!r.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!a&&!n&&r.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(r,a,n){var o=r.leadingDigitsPatterns().length;if(o===0)return!0;n=Math.min(n,o-1);var i=r.leadingDigitsPatterns()[n];if(a.length<Wd)try{return new XS(i).match(a,{allowOverflow:!0})!==void 0}catch(s){return console.error(s),!0}return new RegExp("^(".concat(i,")")).test(a)}},{key:"getFormatFormat",value:function(r,a){return a?r.internationalFormat():r.format()}},{key:"chooseFormat",value:function(r){for(var a=this,n=function(){var d=s.value;return a.chosenFormat===d?0:sC.test(a.getFormatFormat(d,r.international))?a.createTemplateForFormat(d,r)?(a.chosenFormat=d,0):(a.matchingFormats=a.matchingFormats.filter(function(u){return u!==d}),1):1},o,i=Ud(this.matchingFormats.slice()),s;!(s=i()).done&&(o=n(),o!==0););return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(r,a){if(!(r.pattern().indexOf("|")>=0)){var n=this.getTemplateForFormat(r,a);if(n)return this.setNationalNumberTemplate(n,a),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(r){return this.isNANP||r&&r.nationalPrefixFormattingRule()&&nC.test(r.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(r,a){var n=r.IDDPrefix,o=r.missingPlus;return n?a&&a.spacing===!1?n:n+" ":o?"":"+"}},{key:"getTemplate",value:function(r){if(this.template){for(var a=-1,n=0,o=r.international?this.getInternationalPrefixBeforeCountryCallingCode(r,{spacing:!1}):"";n<o.length+r.getDigitsWithoutInternationalPrefix().length;)a=this.template.indexOf(ot,a+1),n++;return Dd(this.template,a+1)}}},{key:"setNationalNumberTemplate",value:function(r,a){this.nationalNumberTemplate=r,this.populatedNationalNumberTemplate=r,this.populatedNationalNumberTemplatePosition=-1,a.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(a).replace(/[\d\+]/g,ot)+Gn(ot,a.callingCode.length)+" "+r:this.template=r}},{key:"getTemplateForFormat",value:function(r,a){var n=a.nationalSignificantNumber,o=a.international,i=a.nationalPrefix,s=a.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,l=r.pattern();l=l.replace(oC(),"\\d").replace(iC(),"\\d");var d=aC.match(l)[0];if(!(n.length>d.length)){var u=new RegExp("^"+l+"$"),p=n.replace(/\d/g,Ss);u.test(p)&&(d=p);var f=this.getFormatFormat(r,o),h;if(this.shouldTryNationalPrefixFormattingRule(r,{international:o,nationalPrefix:i})){var b=f.replace(Fm,r.nationalPrefixFormattingRule());if(go(r.nationalPrefixFormattingRule())===(i||"")+go("$1")&&(f=b,h=!0,i))for(var y=i.length;y>0;)f=f.replace(/\d/,ot),y--}var g=d.replace(new RegExp(l),f).replace(new RegExp(Ss,"g"),ot);return h||(s?g=Gn(ot,s.length)+" "+g:i&&(g=Gn(ot,i.length)+this.getSeparatorAfterNationalPrefix(r)+g)),o&&(g=Dm(g)),g}}},{key:"formatNextNationalNumberDigits",value:function(r){var a=TS(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,r);if(!a){this.resetFormat();return}return this.populatedNationalNumberTemplate=a[0],this.populatedNationalNumberTemplatePosition=a[1],Dd(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(r,a){var n=a.international,o=a.nationalPrefix;if(r.nationalPrefixFormattingRule()){var i=r.usesNationalPrefix();if(i&&o||!i&&!n)return!0}}}])}();function en(t){"@babel/helpers - typeof";return en=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},en(t)}function Km(t,e){return hC(t)||uC(t,e)||dC(t,e)||cC()}function cC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
279In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dC(t,e){if(t){if(typeof t=="string")return Vd(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vd(t,e):void 0}}function Vd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=Array(e);r<e;r++)a[r]=t[r];return a}function uC(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,d=!1;try{if(o=(r=r.call(t)).next,e!==0)for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==e);l=!0);}catch(u){d=!0,n=u}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw n}}return s}}function hC(t){if(Array.isArray(t))return t}function pC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fC(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,gC(a.key),a)}}function mC(t,e,r){return e&&fC(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function gC(t){var e=yC(t,"string");return en(e)=="symbol"?e:e+""}function yC(t,e){if(en(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(en(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var bC="["+ut+Fe+"]+",vC=new RegExp("^"+bC+"$","i"),wC="(?:["+qo+"]["+ut+Fe+"]*|["+ut+Fe+"]+)",PC=new RegExp("[^"+ut+Fe+"]+.*$"),xC=/[^\d\[\]]/,$C=function(){function t(e){var r=e.defaultCountry,a=e.defaultCallingCode,n=e.metadata,o=e.onNationalSignificantNumberChange;pC(this,t),this.defaultCountry=r,this.defaultCallingCode=a,this.metadata=n,this.onNationalSignificantNumberChange=o}return mC(t,[{key:"input",value:function(r,a){var n=CC(r),o=Km(n,2),i=o[0],s=o[1],l=go(i),d;return s&&(a.digits||(a.startInternationalNumber(void 0,void 0),l||(d=!0))),l&&this.inputDigits(l,a),{digits:l,justLeadingPlus:d}}},{key:"inputDigits",value:function(r,a){var n=a.digits,o=n.length<3&&n.length+r.length>=3;if(a.appendDigits(r),o&&this.extractIddPrefix(a),this.isWaitingForCountryCallingCode(a)){if(!this.extractCountryCallingCode(a))return}else a.appendNationalSignificantNumberDigits(r);a.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(a.getNationalDigits(),function(i){return a.update(i)})}},{key:"isWaitingForCountryCallingCode",value:function(r){var a=r.international,n=r.callingCode;return a&&!n}},{key:"extractCountryCallingCode",value:function(r){var a=Rl("+"+r.getDigitsWithoutInternationalPrefix(),r.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=a.countryCallingCode,o=a.number;if(n)return r.setCallingCode(n),r.update({nationalSignificantNumber:o}),!0}},{key:"reset",value:function(r){if(r){this.hasSelectedNumberingPlan=!0;var a=r._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=a&&xC.test(a)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(r,a){if(this.hasSelectedNumberingPlan){var n=ys(r,this.metadata),o=n.nationalPrefix,i=n.nationalNumber,s=n.carrierCode;if(i!==r)return this.onExtractedNationalNumber(o,s,i,r,a),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(r,a,n){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(r,n);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var o=ys(r,this.metadata),i=o.nationalPrefix,s=o.nationalNumber,l=o.carrierCode;if(s!==a)return this.onExtractedNationalNumber(i,l,s,r,n),!0}}},{key:"onExtractedNationalNumber",value:function(r,a,n,o,i){var s=!1,l,d=o.lastIndexOf(n);if(d<0||d!==o.length-n.length)s=!0;else{var u=o.slice(0,d);u&&u!==r&&(l=u)}i({nationalPrefix:r,carrierCode:a,nationalSignificantNumber:n,nationalSignificantNumberIsModified:s,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:l}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(r){if(this.extractAnotherNationalSignificantNumber(r.getNationalDigits(),r.nationalSignificantNumber,function(a){return r.update(a)}))return!0;if(this.extractIddPrefix(r))return this.extractCallingCodeAndNationalSignificantNumber(r),!0;if(this.fixMissingPlus(r))return this.extractCallingCodeAndNationalSignificantNumber(r),!0}},{key:"extractIddPrefix",value:function(r){var a=r.international,n=r.IDDPrefix,o=r.digits;if(r.nationalSignificantNumber,!(a||n)){var i=Rm(o,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(i!==void 0&&i!==o)return r.update({IDDPrefix:o.slice(0,o.length-i.length)}),this.startInternationalNumber(r,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(r){if(!r.international){var a=Lm(r.digits,r.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=a.countryCallingCode;if(n)return r.update({missingPlus:!0}),this.startInternationalNumber(r,{country:r.country,callingCode:n}),!0}}},{key:"startInternationalNumber",value:function(r,a){var n=a.country,o=a.callingCode;r.startInternationalNumber(n,o),r.nationalSignificantNumber&&(r.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(r){this.extractCountryCallingCode(r)&&this.extractNationalSignificantNumber(r.getNationalDigits(),function(a){return r.update(a)})}}])}();function _C(t){var e=t.search(wC);if(!(e<0)){t=t.slice(e);var r;return t[0]==="+"&&(r=!0,t=t.slice(1)),t=t.replace(PC,""),r&&(t="+"+t),t}}function SC(t){var e=_C(t)||"";return e[0]==="+"?[e.slice(1),!0]:[e]}function CC(t){var e=SC(t),r=Km(e,2),a=r[0],n=r[1];return vC.test(a)||(a=""),[a,n]}function tn(t){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tn(t)}function AC(t,e){return OC(t)||kC(t,e)||TC(t,e)||EC()}function EC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
280In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TC(t,e){if(t){if(typeof t=="string")return Hd(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Hd(t,e):void 0}}function Hd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=Array(e);r<e;r++)a[r]=t[r];return a}function kC(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,d=!1;try{if(o=(r=r.call(t)).next,e!==0)for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==e);l=!0);}catch(u){d=!0,n=u}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw n}}return s}}function OC(t){if(Array.isArray(t))return t}function IC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function NC(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,jC(a.key),a)}}function RC(t,e,r){return e&&NC(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function jC(t){var e=LC(t,"string");return tn(e)=="symbol"?e:e+""}function LC(t,e){if(tn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(tn(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Ca=function(){function t(e,r){IC(this,t),this.metadata=new Ce(r);var a=this.getCountryAndCallingCode(e),n=AC(a,2),o=n[0],i=n[1];this.defaultCountry=o,this.defaultCallingCode=i,this.reset()}return RC(t,[{key:"getCountryAndCallingCode",value:function(r){var a,n;return r&&(Er(r)?(a=r.defaultCountry,n=r.defaultCallingCode):a=r),a&&!this.metadata.hasCountry(a)&&(a=void 0),[a,n]}},{key:"input",value:function(r){var a=this.parser.input(r,this.state),n=a.digits,o=a.justLeadingPlus;if(o)this.formattedOutput="+";else if(n){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var i;if(this.metadata.hasSelectedNumberingPlan()&&(i=this.formatter.format(n,this.state)),i===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var s=this.state.getNationalDigits();s&&(i=this.formatter.format(s,this.state))}
vendor: 4,172 bytes, line 280
280this.formattedOutput=i?this.getFullNumber(i):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var r=this;return this.state=new SS({onCountryChange:function(n){r.country=n},onCallingCodeChange:function(n,o){r.metadata.selectNumberingPlan(o,n),r.formatter.reset(r.metadata.numberingPlan,r.state),r.parser.reset(r.metadata.numberingPlan)}}),this.formatter=new lC({state:this.state,metadata:this.metadata}),this.parser=new $C({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){r.determineTheCountryIfNeeded(),r.formatter.reset(r.metadata.numberingPlan,r.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var r=this.state.digits;if(r)return this._getCountry()}},{key:"_getCountry",value:function(){var r=this.state.country;return r}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(r){var a=this;if(this.isInternational()){var n=function(s){return a.formatter.getInternationalPrefixBeforeCountryCallingCode(a.state,{spacing:!!s})+s},o=this.state.callingCode;return n(o?r?"".concat(o," ").concat(r):o:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return r}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var r=this.state,a=r.nationalSignificantNumber,n=r.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,o=r.nationalPrefix,i=a,s=n||o;return s&&(i=s+i),i}},{key:"getNonFormattedNumber",value:function(){var r=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(r?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:"getNonFormattedTemplate",value:function(){var r=this.getNonFormattedNumber();if(r)return r.replace(/[\+\d]/g,ot)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var r=this.state.callingCode,a=this.metadata.getCountryCodesForCallingCode(r);return a&&a.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(Nl(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var r=this.state,a=r.digits,n=r.callingCode,o=r.country,i=r.nationalSignificantNumber;if(a){if(this.isInternational())return n?"+"+n+i:"+"+a;if(o||n){var s=o?this.metadata.countryCallingCode():n;return"+"+s+i}}}},{key:"getNumber",value:function(){var r=this.state,a=r.nationalSignificantNumber,n=r.carrierCode,o=r.callingCode,i=this._getCountry();if(a&&!(!i&&!o)){if(i&&i===this.defaultCountry){var s=new Ce(this.metadata.metadata);s.selectNumberingPlan(i);var l=s.numberingPlan.callingCode(),d=this.metadata.getCountryCodesForCallingCode(l);if(d.length>1){var u=jm(a,{countries:d,metadata:this.metadata.metadata});u&&(i=u)}}var p=new qm(i||o,a,this.metadata.metadata);return n&&(p.carrierCode=n),p}}},{key:"isPossible",value:function(){var r=this.getNumber();return r?r.isPossible():!1}},{key:"isValid",value:function(){var r=this.getNumber();return r?r.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])}();function Kd(t){return new Ce(t).getCountries()}function DC(t,e,r){return r||(r=e,e=void 0),new Ca(e,r).input(t)}function zm(t){var e=t.inputFormat,r=t.country,a=t.metadata;return e==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(or(r,a)):""}function Cs(t,e){return e&&(t=t.slice(e.length),t[0]===" "&&(t=t.slice(1))),t}
280function FC(t,e,r){if(!(r&&r.ignoreRest)){var a=function(o){if(r)switch(o){case"end":r.ignoreRest=!0;break}};return Vm(t,e,a)}}function Gm(t){var e=t.onKeyDown,r=t.inputFormat;return m.useCallback(function(a){if(a.keyCode===BC&&r==="INTERNATIONAL"&&a.target instanceof HTMLInputElement&&MC(a.target)===UC.length){a.preventDefault();return}e&&e(a)},[e,r])}function MC(t){return t.selectionStart}var BC=8,UC="+",qC=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function As(){return As=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},As.apply(this,arguments)}function WC(t,e){if(t==null)return{};var r=VC(t,e),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)a=o[n],!(e.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function VC(t,e){if(t==null)return{};var r={},a=Object.keys(t),n,o;for(o=0;o<a.length;o++)n=a[o],!(e.indexOf(n)>=0)&&(r[n]=t[n]);return r}function HC(t){function e(r,a){var n=r.onKeyDown,o=r.country,i=r.inputFormat,s=r.metadata,l=s===void 0?t:s;r.international,r.withCountryCallingCode;var d=WC(r,qC),u=m.useCallback(function(f){var h=new Ca(o,l),b=zm({inputFormat:i,country:o,metadata:l}),y=h.input(b+f),g=h.getTemplate();return b&&(y=Cs(y,b),g&&(g=Cs(g,b))),{text:y,template:g}},[o,l]),p=Gm({onKeyDown:n,inputFormat:i});return $.createElement(fo,As({},d,{ref:a,parse:FC,format:u,onKeyDown:p}))}return e=$.forwardRef(e),e.propTypes={value:N.string.isRequired,onChange:N.func.isRequired,onKeyDown:N.func,country:N.string,inputFormat:N.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:N.object},e}const KC=HC();var zC=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function Es(){return Es=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Es.apply(this,arguments)}function GC(t,e){if(t==null)return{};var r=XC(t,e),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)a=o[n],!(e.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function XC(t,e){if(t==null)return{};var r={},a=Object.keys(t),n,o;for(o=0;o<a.length;o++)n=a[o],!(e.indexOf(n)>=0)&&(r[n]=t[n]);return r}function JC(t){function e(r,a){var n=r.value,o=r.onChange,i=r.onKeyDown,s=r.country,l=r.inputFormat,d=r.metadata,u=d===void 0?t:d,p=r.inputComponent,f=p===void 0?"input":p;r.international,r.withCountryCallingCode;var h=GC(r,zC),b=zm({inputFormat:l,country:s,metadata:u}),y=m.useCallback(function(v){var w=Ps(v.target.value);if(w===n){var P=zd(b,w,s,u);P.indexOf(v.target.value)===0&&(w=w.slice(0,-1))}o(w)},[b,n,o,s,u]),g=Gm({onKeyDown:i,inputFormat:l});return $.createElement(f,Es({},h,{ref:a,value:zd(b,n,s,u),onChange:y,onKeyDown:g}))}return e=$.forwardRef(e),e.propTypes={value:N.string.isRequired,onChange:N.func.isRequired,onKeyDown:N.func,country:N.string,inputFormat:N.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:N.object,inputComponent:N.elementType},e}const QC=JC();function zd(t,e,r,a){return Cs(DC(t+e,r,a),t)}function YC(t){return Gd(t[0])+Gd(t[1])}function Gd(t){return String.fromCodePoint(127397+t.toUpperCase().charCodeAt(0))}var ZC=["value","onChange","options","disabled","readOnly"],eA=["value","o
280ptions","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function tA(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=rA(t))||e){r&&(t=r);var a=0;return function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
281In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rA(t,e){if(t){if(typeof t=="string")return Xd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xd(t,e)}}function Xd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function yo(){return yo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},yo.apply(this,arguments)}function Xm(t,e){if(t==null)return{};var r=aA(t,e),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)a=o[n],!(e.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function aA(t,e){if(t==null)return{};var r={},a=Object.keys(t),n,o;for(o=0;o<a.length;o++)n=a[o],!(e.indexOf(n)>=0)&&(r[n]=t[n]);return r}function Jm(t){var e=t.value,r=t.onChange,a=t.options,n=t.disabled,o=t.readOnly,i=Xm(t,ZC),s=m.useCallback(function(l){var d=l.target.value;r(d==="ZZ"?void 0:d)},[r]);return m.useMemo(function(){return Ym(a,e)},[a,e]),$.createElement("select",yo({},i,{disabled:n||o,readOnly:o,value:e||"ZZ",onChange:s}),a.map(function(l){var d=l.value,u=l.label,p=l.divider;return $.createElement("option",{key:p?"|":d||"ZZ",value:p?"|":d||"ZZ",disabled:!!p,style:p?nA:void 0},u)}))}Jm.propTypes={value:N.string,onChange:N.func.isRequired,options:N.arrayOf(N.shape({value:N.string,label:N.string,divider:N.bool})).isRequired,disabled:N.bool,readOnly:N.bool};var nA={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function Qm(t){var e=t.value,r=t.options,a=t.className,n=t.iconComponent;t.getIconAspectRatio;var o=t.arrowComponent,i=o===void 0?oA:o,s=t.unicodeFlags,l=Xm(t,eA),d=m.useMemo(function(){return Ym(r,e)},[r,e]);return $.createElement("div",{className:"PhoneInputCountry"},$.createElement(Jm,yo({},l,{value:e,options:r,className:po("PhoneInputCountrySelect",a)})),d&&(s&&e?$.createElement("div",{className:"PhoneInputCountryIconUnicode"},YC(e)):$.createElement(n,{"aria-hidden":!0,country:e,label:d.label,aspectRatio:s?1:void 0})),$.createElement(i,null))}
281Qm.propTypes={iconComponent:N.elementType,arrowComponent:N.elementType,unicodeFlags:N.bool};function oA(){return $.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function Ym(t,e){for(var r=tA(t),a;!(a=r()).done;){var n=a.value;if(!n.divider&&iA(n.value,e))return n}}function iA(t,e){return t==null?e==null:t===e}var sA=["country","countryName","flags","flagUrl"];function Ts(){return Ts=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Ts.apply(this,arguments)}function lA(t,e){if(t==null)return{};var r=cA(t,e),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)a=o[n],!(e.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function cA(t,e){if(t==null)return{};var r={},a=Object.keys(t),n,o;for(o=0;o<a.length;o++)n=a[o],!(e.indexOf(n)>=0)&&(r[n]=t[n]);return r}function Ll(t){var e=t.country,r=t.countryName,a=t.flags,n=t.flagUrl,o=lA(t,sA);return a&&a[e]?a[e]({title:r}):$.createElement("img",Ts({},o,{alt:r,role:r?void 0:"presentation",src:n.replace("{XX}",e).replace("{xx}",e.toLowerCase())}))}Ll.propTypes={country:N.string.isRequired,countryName:N.string.isRequired,flags:N.objectOf(N.elementType),flagUrl:N.string.isRequired};var dA=["aspectRatio"],uA=["title"],hA=["title"];function bo(){return bo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},bo.apply(this,arguments)}function Dl(t,e){if(t==null)return{};var r=pA(t,e),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)a=o[n],!(e.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function pA(t,e){if(t==null)return{};var r={},a=Object.keys(t),n,o;for(o=0;o<a.length;o++)n=a[o],!(e.indexOf(n)>=0)&&(r[n]=t[n]);return r}function Wo(t){var e=t.aspectRatio,r=Dl(t,dA);return e===1?$.createElement(eg,r):$.createElement(Zm,r)}Wo.propTypes={title:N.string.isRequired,aspectRatio:N.number};function Zm(t){var e=t.title,r=Dl(t,uA);return $.createElement("svg",bo({},r,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),$.createElement("title",null,e),$.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},$.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),$.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),$.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),$.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),$.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),$.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),$.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}Zm.propTypes={title:N.string.isRequired};function eg(t){var e=t.title,r=Dl(t,hA);return $.createElement("svg",bo({},r,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),$.createElement("title",null,e),$.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},$.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),$.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),$.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),$.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),$.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),$.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),$.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"
281currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}eg.propTypes={title:N.string.isRequired};function fA(t){if(t.length<2||t[0]!=="+")return!1;for(var e=1;e<t.length;){var r=t.charCodeAt(e);if(!(r>=48&&r<=57))return!1;e++}return!0}function tg(t){fA(t)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",t)}function mA(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=gA(t))||e){r&&(t=r);var a=0;return function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
282In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gA(t,e){if(t){if(typeof t=="string")return Jd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jd(t,e)}}function Jd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function yA(t,e){if(!e)return t;for(var r=[],a=[],n=r,o=function(){var d=s.value;if(d==="|")n.push({divider:!0});else if(d==="..."||d==="…")n=a;else{var u;d==="🌐"?u=void 0:u=d;var p=t.indexOf(t.filter(function(h){return h.value===u})[0]),f=t[p];t.splice(p,1),n.push(f)}},i=mA(e),s;!(s=i()).done;)o();return r.concat(t).concat(a)}function bA(t,e){if(t&&(t=t.filter(function(r){switch(r){case"🌐":case"|":case"...":case"…":return!0;default:return Vo(r,e)}}),t.length>0))return t}function Vo(t,e){return Om(t,e)?!0:(console.error("Country not found: ".concat(t)),!1)}function rg(t,e){return t&&(t=t.filter(function(r){return Vo(r,e)}),t.length===0&&(t=void 0)),t}
282var vA=["country","label","aspectRatio"];function ks(){return ks=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ks.apply(this,arguments)}function wA(t,e){if(t==null)return{};var r=PA(t,e),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)a=o[n],!(e.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function PA(t,e){if(t==null)return{};var r={},a=Object.keys(t),n,o;for(o=0;o<a.length;o++)n=a[o],!(e.indexOf(n)>=0)&&(r[n]=t[n]);return r}function ag(t){var e=t.flags,r=t.flagUrl,a=t.flagComponent,n=t.internationalIcon;function o(i){var s=i.country,l=i.label,d=i.aspectRatio,u=wA(i,vA),p=n===Wo?d:void 0;return $.createElement("div",ks({},u,{className:po("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":p===1,"PhoneInputCountryIcon--border":s})}),s?$.createElement(a,{country:s,countryName:l,flags:e,flagUrl:r,className:"PhoneInputCountryIconImg"}):$.createElement(n,{title:l,aspectRatio:p,className:"PhoneInputCountryIconImg"}))}return o.propTypes={country:N.string,label:N.string.isRequired,aspectRatio:N.number},o}ag({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:Ll,internationalIcon:Wo});function xA(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=$A(t))||e){r&&(t=r);var a=0;return function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
283In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $A(t,e){if(t){if(typeof t=="string")return Qd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qd(t,e)}}function Qd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function _A(t,e){for(var r=xA(t),a;!(a=r()).done;){var n=a.value;n&&SA(n,e)}}function SA(t,e){typeof t=="function"?t(e):t.current=e}var ng=N.shape({country_calling_codes:N.object.isRequired,countries:N.object.isRequired}),og=N.objectOf(N.string);function Ot(t,e){var r="+"+or(t,e);return r}function CA(t){var e=t.value,r=t.phoneNumber,a=t.defaultCountry,n=t.getAnyCountry,o=t.countries,i=t.required,s=t.metadata,l;return r&&r.country?l=r.country:a&&(!e||ta(e,a,s))&&(l=a),o&&o.indexOf(l)<0&&(l=void 0),!l&&i&&o&&o.length>0&&(l=n()),l}function AA(t){var e=t.countries,r=t.countryNames,a=t.addInternationalOption,n=t.compareStringsLocales,o=t.compareStrings;o||(o=RA);var i=e.map(function(s){return{value:s,label:r[s]||s}});return i.sort(function(s,l){return o(s.label,l.label,n)}),a&&i.unshift({label:r.ZZ}),i}function ig(t,e){return vS(t||"",e)}function EA(t){return t.formatNational().replace(/\D/g,"")}function TA(t,e){var r=e.prevCountry,a=e.newCountry,n=e.metadata,o=e.useNationalFormat;if(r===a)return t;if(!t)return o?"":a?Ot(a,n):"";if(a){if(t[0]==="+"){if(o)return t.indexOf("+"+or(a,n))===0?jA(t,a,n):"";if(r){var i=Ot(a,n);return t.indexOf(i)===0?t:i}else{var s=Ot(a,n);return t.indexOf(s)===0?t:s}}}else if(t[0]!=="+")return Jr(t,r,n)||"";return t}function Jr(t,e,r){if(t){if(t[0]==="+"){if(t==="+")return;var a=new Ca(e,r);return a.input(t),a.getNumberValue()}if(e){var n=lg(t,e,r);return"+".concat(or(e,r)).concat(n||"")}}}function kA(t,e,r){var a=lg(t,e,r);if(a){var n=a.length-OA(e,r);if(n>0)return t.slice(0,t.length-n)}return t}function OA(t,e){return e=new Ce(e),e.selectNumberingPlan(t),e.numberingPlan.possibleLengths()[e.numberingPlan.possibleLengths().length-1]}function sg(t,e){var r=e.country,a=e.countries,n=e.defaultCountry,o=e.latestCountrySelectedByUser,i=e.required,s=e.metadata;if(t==="+")return r;var l=NA(t,s);if(l)return!a||a.indexOf(l)>=0?l:void 0;if(r){if(ta(t,r,s)){if(o&&ta(t,o,s))return o;if(n&&ta(t,n,s))return n;if(!i)return}else if(!i)return}return r}function IA(t,e){var r=e.prevPhoneDigits,a=e.country,n=e.defaultCountry,o=e.latestCountrySelectedByUser,i=e.countryRequired,s=e.getAnyCountry,l=e.countries,d=e.international,u=e.limitMaxLength,p=e.countryCallingCodeEditable,f=e.metadata;if(d&&p===!1&&a){var h=Ot(a,f);if(t.indexOf(h)!==0){var b,y=t&&t[0]!=="+";return y?(t=h+t,b=Jr(t,a,f)):t=h,{phoneDigits:t,value:b,country:a}}}d===!1&&a&&t&&t[0]==="+"&&(t=Yd(t,a,f)),t&&a&&u&&(t=kA(t,a,f)),t&&t[0]!=="+"&&(!a||d)&&(t="+"+t),!t&&r&&r[0]==="+"&&(d?a=void 0:a=n),t==="+"&&r&&r[0]==="+"&&r.length>1&&(a=void 0);var g;
283return t&&(t[0]==="+"&&(t==="+"||a&&Ot(a,f).indexOf(t)===0)?g=void 0:g=Jr(t,a,f)),g&&(a=sg(g,{country:a,countries:l,defaultCountry:n,latestCountrySelectedByUser:o,required:!1,metadata:f}),d===!1&&a&&t&&t[0]==="+"&&(t=Yd(t,a,f),g=Jr(t,a,f))),!a&&i&&(a=n||s()),{phoneDigits:t,country:a,value:g}}function Yd(t,e,r){if(t.indexOf(Ot(e,r))===0){var a=new Ca(e,r);a.input(t);var n=a.getNumber();return n?n.formatNational().replace(/\D/g,""):""}else return t.replace(/\D/g,"")}function NA(t,e){var r=new Ca(null,e);return r.input(t),r.getCountry()}function RA(t,e,r){return String.prototype.localeCompare?t.localeCompare(e,r):t<e?-1:t>e?1:0}function jA(t,e,r){if(e){var a="+"+or(e,r);if(t.length<a.length){if(a.indexOf(t)===0)return""}else if(t.indexOf(a)===0)return t.slice(a.length)}for(var n=0,o=Object.keys(r.country_calling_codes);n<o.length;n++){var i=o[n];if(t.indexOf(i)===1)return t.slice(1+i.length)}return""}function lg(t,e,r){var a=new Ca(e,r);a.input(t);var n=a.getNumber();return n&&n.nationalNumber}function ta(t,e,r){for(var a=Ot(e,r),n=0;n<t.length&&n<a.length;){if(t[n]!==a[n])return!1;n++}return!0}function cg(t){var e=t.value,r=t.phoneNumber,a=t.defaultCountry,n=t.international,o=t.useNationalFormat,i=t.metadata;return(n===!1||o)&&r&&r.country?EA(r):!e&&n&&a?Ot(a,i):e}function rn(t){"@babel/helpers - typeof";return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rn(t)}function Zd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function Ln(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Zd(Object(r),!0).forEach(function(a){LA(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zd(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function LA(t,e,r){return e=DA(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function DA(t){var e=FA(t,"string");return rn(e)=="symbol"?e:e+""}function FA(t,e){if(rn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(rn(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function MA(t,e,r){var a=t.metadata,n=t.countries,o=t.defaultCountry,i=t.value,s=t.reset,l=t.international,d=t.displayInitialValueAsLocalNumber,u=t.initialValueFormat,p=e.defaultCountry,f=e.value,h=e.reset;r.country;var b=r.value,y=r.hasUserSelectedACountry,g=r.latestCountrySelectedByUser,v=function(E){return cg(Ln(Ln({},E),{},{international:l,useNationalFormat:d||u==="national",metadata:a}))};if(s!==h)return{phoneDigits:v({value:void 0,defaultCountry:o}),value:void 0,country:o,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(o!==p){var w=!o||Vo(o,a),P=!b||l&&b===v({value:void 0,defaultCountry:p}),x=!i&&P;if(!y&&w&&x)return{country:o,phoneDigits:v({value:void 0,defaultCountry:o}),value:void 0}}if(!eu(i,f)&&!eu(i,b)){var C,S;if(i){i&&tg(i),C=ig(i,a);var A=rg(n,a);C&&C.country?(!A||A.indexOf(C.country)>=0)&&(S=C.country):(S=sg(i,{country:void 0,countries:A,metadata:a}),S||o&&i.indexOf(Ot(o,a))===0&&(S=o))}var I;if(i){if(g){var T=S?g===S:ta(i,g,a);T?S||(S=g):I={latestCountrySelectedByUser:void 0}}}else I={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return Ln(Ln({},I),{},{phoneDigits:v({phoneNumber:C,value:i,defaultCountry:o}),value:i,country:i?S:o})}}function eu(t,e){return t===null&&(t=void 0),e===null&&(e=void 0),t===e}var BA=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function wa(t){"@babel/helpers - typeof";return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wa(t)}function tu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function dg(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};
283e%2?tu(Object(r),!0).forEach(function(a){nt(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tu(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function ra(){return ra=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ra.apply(this,arguments)}function UA(t,e){if(t==null)return{};var r=qA(t,e),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)a=o[n],!(e.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function qA(t,e){if(t==null)return{};var r={},a=Object.keys(t),n,o;for(o=0;o<a.length;o++)n=a[o],!(e.indexOf(n)>=0)&&(r[n]=t[n]);return r}function WA(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ru(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,hg(a.key),a)}}function VA(t,e,r){return e&&ru(t.prototype,e),r&&ru(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function HA(t,e,r){return e=vo(e),KA(t,ug()?Reflect.construct(e,r||[],vo(t).constructor):e.apply(t,r))}function KA(t,e){if(e&&(wa(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zA(t)}function zA(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ug(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ug=function(){return!!t})()}function vo(t){return vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vo(t)}function GA(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Os(t,e)}function Os(t,e){return Os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},Os(t,e)}function nt(t,e,r){return e=hg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hg(t){var e=XA(t,"string");return wa(e)=="symbol"?e:e+""}function XA(t,e){if(wa(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(wa(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var JA=function(t){function e(r){var a;WA(this,e),a=HA(this,e,[r]),nt(a,"setInputRef",function(g){_A([a.props.inputRef,a.inputRef],g)}),nt(a,"isCountrySupportedWithError",function(g){var v=a.props.metadata;return Vo(g,v)}),nt(a,"onCountryChange",function(g){var v=a.props,w=v.international,P=v.metadata,x=v.onChange,C=v.focusInputOnCountrySelection,S=a.state,A=S.phoneDigits,I=S.country,T=TA(A,{prevCountry:I,newCountry:g,metadata:P,useNationalFormat:!w}),O=Jr(T,g,P);C&&a.inputRef.current.focus(),a.setState({country:g,latestCountrySelectedByUser:g,hasUserSelectedACountry:!0,phoneDigits:T,value:O},function(){x(O)})}),nt(a,"onChange",function(g){var v=a.props,w=v.defaultCountry,P=v.onChange,x=v.addInternationalOption,C=v.international,S=v.limitMaxLength,A=v.countryCallingCodeEditable,I=v.metadata,T=a.state,O=T.countries,E=T.phoneDigits,D=T.country,L=T.latestCountrySelectedByUser,R=IA(g,{prevPhoneDigits:E,country:D,countryRequired:!x,defaultCountry:w,latestCountrySelectedByUser:L,getAnyCountry:function(){return a.getFirstSupportedCountry({countries:O})},countries:O,international:C,limitMaxLength:S,countryCallingCodeEditable:A,metadata:I}),J=R.phoneDigits,z=R.country,H=R.value,W={phoneDigits:J,value:H,country:z};L&&H&&!ta(H,L,I)&&(W.latestCountrySelectedByUser=void 0),A===!1&&!H&&J===a.state.phoneDigits&&(W.forceRerender={}),a.setState(W,function(){return P(H)})}),nt(a,"_onFocus",function(){return a.setState({isFocused:!0})}),nt(a,"_onBlur",function(){return a.setState({isFocused:!1})}),nt(a,"onFocus",function(g){a._onFocus();var v=a.props.onFocus;v&&v(g)}),nt(a,"onBlur",function(g){var v=a.props.onBlur;a._onBlur(),v&&v(g)}),nt(a,"onCountryFocus",function(g){a._onFocus();var v=a.props.countrySelectProps;if(v){var w=v.onFocus;w&&w(g)}}),nt(a,"onCountryBlur",function(g){a._onBlur();var v=a.props.countrySelectProps;if(v){var w=v.onBlur;w&&w(g)}}),a.inputRef=$.createRef();var n=a.props,o=n.value;n.labels;var i=n.international,s=n.addInternationalOption,l=n.displayInitialValueAsLocalNumber,d=n.initialValueFormat,u=n.metadata,p=a.props,f=p.defaultCountry,h=p.countries;f&&(a.isCountrySupportedWithError(f)||(f=void 0)),o&&tg(o),h=rg(h,u);var b=ig(o,u);a.CountryIcon=ag(a.props);var y=CA({value:o,phoneNumber:b,defaultCountry:f,required:!s,countries:h||Kd(u),getAnyCountry:function(){return a.getFirstSupportedCountry({countries:h})},metadata:u});return a.state={props:a.props,country:y,countries:h,phoneDigits:cg({value:o,phoneNumber:b,defaultCountry:f,international:i,useNationalFormat:l||d==="national",metadata:u}),value:o},a}
283return GA(e,t),VA(e,[{key:"componentDidMount",value:function(){var a=this.props.onCountryChange,n=this.props.defaultCountry,o=this.state.country;a&&(n&&(this.isCountrySupportedWithError(n)||(n=void 0)),o!==n&&a(o))}},{key:"componentDidUpdate",value:function(a,n){var o=this.props.onCountryChange,i=this.state.country;o&&i!==n.country&&o(i)}},{key:"getCountrySelectOptions",value:function(a){var n=a.countries,o=this.props,i=o.international,s=o.countryCallingCodeEditable,l=o.countryOptionsOrder,d=o.addInternationalOption,u=o.labels,p=o.locales,f=o.metadata;return this.useMemoCountrySelectOptions(function(){return yA(AA({countries:n||Kd(f),countryNames:u,addInternationalOption:i&&s===!1?!1:d,compareStringsLocales:p}),bA(l,f))},[n,l,d,u,f])}},{key:"useMemoCountrySelectOptions",value:function(a,n){return(!this.countrySelectOptionsMemoDependencies||!YA(n,this.countrySelectOptionsMemoDependencies))&&(this.countrySelectOptionsMemo=a(),this.countrySelectOptionsMemoDependencies=n),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(a){var n=a.countries,o=this.getCountrySelectOptions({countries:n});return o[0].value}},{key:"render",value:function(){var a=this.props,n=a.name,o=a.disabled,i=a.readOnly,s=a.autoComplete,l=a.style,d=a.className;a.inputRef;var u=a.inputComponent,p=a.numberInputProps,f=a.smartCaret,h=a.countrySelectComponent,b=a.countrySelectProps,y=a.containerComponent,g=a.containerComponentProps;a.defaultCountry,a.countries,a.countryOptionsOrder;var v=a.labels;a.flags,a.flagComponent,a.flagUrl,a.addInternationalOption,a.internationalIcon,a.displayInitialValueAsLocalNumber,a.initialValueFormat,a.onCountryChange,a.limitMaxLength,a.countryCallingCodeEditable,a.focusInputOnCountrySelection,a.reset;var w=a.metadata,P=a.international;a.locales;var x=UA(a,BA),C=this.state,S=C.country,A=C.countries,I=C.phoneDigits,T=C.isFocused,O=f?KC:QC,E=this.getCountrySelectOptions({countries:A});return $.createElement(y,ra({style:l,className:po(d,"PhoneInput",{"PhoneInput--focus":T,"PhoneInput--disabled":o,"PhoneInput--readOnly":i})},g),$.createElement(h,ra({name:n?"".concat(n,"Country"):void 0,"aria-label":v.country},b,{value:S,options:E,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:o||b&&b.disabled,readOnly:i||b&&b.readOnly,iconComponent:this.CountryIcon})),$.createElement(O,ra({ref:this.setInputRef,type:"tel",autoComplete:s},p,x,{inputFormat:P===!0?"INTERNATIONAL":P===!1?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:P?!0:void 0,withCountryCallingCode:P?!0:void 0,name:n,metadata:w,country:S,value:I||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:o,readOnly:i,inputComponent:u,className:po("PhoneInputInput",p&&p.className,x.className)})))}}],[{key:"getDerivedStateFromProps",value:function(a,n){return dg({props:a},MA(a,n.props,n))}}])}($.PureComponent),pg=$.forwardRef(function(t,e){return $.createElement(JA,ra({},QA(t),{inputRef:e}))});pg.propTypes={value:N.string,onChange:N.func.isRequired,onFocus:N.func,onBlur:N.func,disabled:N.bool,readOnly:N.bool,autoComplete:N.string,initialValueFormat:N.oneOf(["national"]),displayInitialValueAsLocalNumber:N.bool,defaultCountry:N.string,countries:N.arrayOf(N.string),labels:og,locales:N.oneOfType([N.string,N.arrayOf(N.string)]),flagUrl:N.string,flags:N.objectOf(N.elementType),flagComponent:N.elementType,addInternationalOption:N.bool,internationalIcon:N.elementType,countryOptionsOrder:N.arrayOf(N.string),style:N.object,className:N.string,countrySelectComponent:N.elementType,countrySelectProps:N.object,inputComponent:N.elementType,numberInputProps:N.object,containerComponent:N.elementType,containerComponentProps:N.object,smartCaret:N.bool,international:N.bool,limitMaxLength:N.bool,countryCallingCodeEditable:N.bool,metadata:ng,onCountryChange:N.func,focusInputOnCountrySelection:N.bool};var au={autoComplete:"tel",countrySelectComponent:Qm,flagComponent:Ll,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:Wo,inputComponent:"input",containerComponent:"div",reset:N.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0}
283;function QA(t){t=dg({},t);for(var e in au)t[e]===void 0&&(t[e]=au[e]);return t}function YA(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;){if(t[r]!==e[r])return!1;r++}return!0}const ZA={ext:"ext.",country:"Phone number country",phone:"Phone",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Federated States of Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XA:"Abkhazia",XK:"Kosovo",XO:"South Ossetia",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"};var e4=["metadata","labels"];function Is(){return Is=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Is.apply(this,arguments)}function t4(t,e){if(t==null)return{};var r=r4(t,e),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)a=o[n],!(e.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function r4(t,e){if(t==null)return{};var r={},a=Object.keys(t),n,o;for(o=0;o<a.length;o++)n=a[o],!(e.indexOf(n)>=0)&&(r[n]=t[n]);return r}function fg(t){var e=$.forwardRef(function(r,a){var n=r.metadata,o=n===void 0?t:n,i=r.labels,s=i===void 0?ZA:i,l=t4(r,e4);return $.createElement(pg,Is({},l,{ref:a,metadata:o,labels:s}))});return e.propTypes={metadata:ng,labels:og},e}fg();const a4=fg(Fx),mg=m.forwardRef(({value:t,onChange:e,defaultCountry:r="BR",placeholder:a="(11) 99999 9999",disabled:n=!1,className:o,id:i,required:s},l)=>c.jsx("div",{ref:l,className:ne("phone-input-container",o),children:c.jsx(a4,{international:!0,countryCallingCodeEditable:!1,defaultCountry:r,value:t,onChange:e,placeholder:a,disabled:n,id:i,className:ne("flex h-9 w-full rounded-md border border-white/15 bg-white/5 text-white text-sm","placeholder:text-white/40 focus-within:border-accent","disabled:cursor-not-allowed disabled:opacity-50","[&_.PhoneInputCountry]:pl-3 [&_.PhoneInputCountry]:pr-2","[&_.PhoneInputCountryIcon]:w-5 [&_.PhoneInputCountryIcon]:h-4","[&_.PhoneInputCountrySelectArrow]:opacity-50 [&_.PhoneInputCountrySelectArrow]:border-white/60","[&_.PhoneInputInput]:bg-transparent [&_.PhoneInputInput]:border-0 [&_.PhoneInputInput]:outline-none","[&_.PhoneInputInput]:flex-1 [&_.PhoneInputInput]:px-2 [&_.PhoneInputInput]:text-white","[&_.PhoneInputInput]:placeholder:text-white/40","[&_.PhoneInputCountrySelect]:bg-slate-900 [&_.PhoneInputCountrySelect]:text-white","[&_.PhoneInputCountrySelect]:border-white/15")})}));mg.displayName="PhoneInput";function nu(t){if(t.startsWith("+55"))return"BR";if(t.startsWith("+1"))return"US";if(t.startsWith("+44"))return"GB";if(t.startsWith("+351"))return"PT";if(t.startsWith("+34"))return"ES";if(t.startsWith("+49"))return"DE";if(t.startsWith("+33"))return"FR";if(t.startsWith("+39"))return"IT";if(t.startsWith("+81"))return"JP";if(t.startsWith("+86"))return"CN";if(t.startsWith("+52"))return"MX";if(t.startsWith("+54"))return"AR";if(t.startsWith("+56"))return"CL";if(t.startsWith("+57"))return"CO"}function a5(t){return t?/^\+[1-9]\d{6,14}$/.test(t):!1}const n4="https://ollzbnkfxfsusjtjssec.supabase.co/functions/v1/viability-track",o4="Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9sbHpibmtmeGZzdXNqdGpzc2VjIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODU3MjYyMzIsImV4cCI6MjEwMTMwMjIzMn0.cJHpOt-gIlAPhNhgVwq3UlCNDsfCSRcsdkzacYVSjsQ",i4=1500,gg="viability_track_sent",s4=50;function yg(){try{return localStorage.getItem("redeAsapSessionId")||null}catch{return null}}const an=new Set,xi={};function l4(){try{const t=sessionStorage.getItem(gg);
283if(t){const e=JSON.parse(t);Array.isArray(e)&&e.forEach(r=>an.add(r))}}catch{}return an}function c4(t){an.add(t);try{const e=Array.from(an).slice(-s4);sessionStorage.setItem(gg,JSON.stringify(e))}catch{}}l4();function bg(t){fetch(n4,{method:"POST",headers:{"Content-Type":"application/json",Authorization:o4},body:JSON.stringify(t)}).catch(()=>{})}function n5(t,e){const r=yg();if(!r)return;const a=(e==null?void 0:e.cep)||"",n=e!=null&&e.result?String(e.result.viable??""):"",o=`${t}:${r}:${a}:${n}`;if(an.has(o))return;const i=Date.now();xi[t]&&i-xi[t]<i4||(xi[t]=i,c4(o),bg({action:"track_event",session_id:r,event_name:t,event_payload:{...e??{},timestamp:new Date().toISOString(),path:window.location.pathname,locale:document.documentElement.lang||"pt-BR"}}))}function ou(t){const e=yg();e&&bg({action:"link_lead",session_id:e,lead_id:t})}function d4(t){const e=Ru(),r={name:t.formData.name.trim(),email:t.formData.email.toLowerCase().trim()||"[email protected]",company:t.formData.company.trim()||null,phone:t.formData.phone||null,message:t.formData.message.trim()||null,source:t.source,source_label:t.sourceLabel,channel:"site_form",channel_id:"whatsapp_cta",consent:!0,notes:t.notes||null,desired_capacity_mbps:t.desiredCapacityMbps&&t.desiredCapacityMbps>0?t.desiredCapacityMbps:null,...e};return t.technicalContext&&(r.technical_context=t.technicalContext),r}const u4={fibra_viavel:"Fibra viável",radio_viavel:"Rádio viável",fibra_e_radio:"Fibra e rádio viáveis",fora_cobertura:"Fora de cobertura (parceiros)",analise_manual:"Análise manual necessária",viable:"Viável",not_viable:"Fora de cobertura"};function h4(t){const e=t.toLowerCase().trim();return u4[e]||t.replace(/_/g," ")}function vg(t,e){const r=["Olá! Vim pelo site da ASAP e gostaria de falar com um especialista.",""];r.push(`Nome: ${t.name.trim()}`),t.company.trim()&&r.push(`Empresa: ${t.company.trim()}`),t.phone&&r.push(`WhatsApp: ${t.phone}`);const a=window.location.pathname;if(r.push(`Página: ${a}`),t.message.trim()&&r.push(`Mensagem: ${t.message.trim()}`),e){const n=e;r.push("");const o=String(n.viability_result||""),i=String(n.technology_label||"");if(o||i){const s=[];o&&s.push(h4(o)),i&&s.push(i),r.push(`Viabilidade: ${s.join(" — ")}`)}n.capacity_requested_mbps&&r.push(`Capacidade: ${n.capacity_requested_mbps} Mbps`),n.address_label&&r.push(`Destino: ${String(n.address_label)}`),n.pop_name&&r.push(`POP: ${String(n.pop_name)}`),n.ce_label&&r.push(`CE: ${String(n.ce_label)}`)}return r.push(""),r.push(`Link: https://www.asaptelecom.com.br${window.location.pathname}`),r.join(`
284`)}async function p4(t){var s,l;const e=d4(t);let r=!1,a;try{const p=await(await fetch("https://ollzbnkfxfsusjtjssec.supabase.co/functions/v1/create-lead",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9sbHpibmtmeGZzdXNqdGpzc2VjIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODU3MjYyMzIsImV4cCI6MjEwMTMwMjIzMn0.cJHpOt-gIlAPhNhgVwq3UlCNDsfCSRcsdkzacYVSjsQ"},body:JSON.stringify(e)})).json();p.ok&&(r=!0,a=p.leadId,Iu(t.formData.email),Nu({email:t.formData.email,source:t.source,profile:(s=t.technicalContext)==null?void 0:s.profile_selected,viabilityResult:(l=t.technicalContext)==null?void 0:l.viability_result,landingPage:window.location.pathname}))}catch(d){console.error("WhatsApp CTA lead error:",d)}let n=vg(t.formData,t.technicalContext);r||(n=`⚠️ Não foi possível registrar automaticamente no sistema. Contato: ${t.formData.email||t.formData.phone}
285
286`+n);const i=`https://wa.me/${Rs}?text=${encodeURIComponent(n)}`;return window.open(i,"_blank","noopener,noreferrer"),{leadCreated:r,leadId:a}}function o5(t,e){const r=vg(t,e),n=`https://wa.me/${Rs}?text=${encodeURIComponent(r)}`;window.open(n,"_blank","noopener,noreferrer")}const wg="asap_gclid",Pg="asap_gclid_ts",f4=90*24*60*60*1e3;function iu(){try{const t=localStorage.getItem(wg),e=localStorage.getItem(Pg);if(!t)return null;if(e){const r=Date.now()-new Date(e).getTime();if(!Number.isFinite(r)||r>f4)return null}return t}catch{return null}}function m4({content:t,source:e,sourceLabel:r,whatsappMessage:a,sectionId:n="solicitar-proposta",locale:o="pt-BR",initialMessage:i="",technicalContext:s=null,onSubmitSuccess:l,adsConversion:d}){const u=o==="en"?{nameRequired:"Please enter your name to continue.",phoneRequired:"Please enter your WhatsApp (phone) number.",consentRequired:"Please check the consent option to continue.",submitError:"Failed to send. Please try again or reach us on WhatsApp.",submitting:"Sending...",viabilitySummary:"Viability summary",edit:"Edit",editAriaLabel:"Edit pre-brief",needHelp:"Need help",techAddress:"Address",techCapacity:"Capacity",techPop:"POP",techCe
286:"SE",techTechnology:"Technology",techResult:"Result",additionalMessage:"Additional message (optional)",additionalMessagePlaceholder:"If you'd like, add a detail (e.g., urgency, best time to call, notes)…"}:{nameRequired:"Preencha o nome para continuar.",phoneRequired:"Preencha o WhatsApp para contato.",consentRequired:"Marque a opção de consentimento para continuar.",submitError:"Erro ao enviar. Tente novamente ou fale conosco pelo WhatsApp.",submitting:"Enviando...",viabilitySummary:"Resumo da viabilidade",edit:"Editar",editAriaLabel:"Editar pré-brief",needHelp:"Preciso de ajuda",techAddress:"Endereço",techCapacity:"Capacidade",techPop:"POP",techCe:"CE",techTechnology:"Tecnologia",techResult:"Resultado",additionalMessage:"Mensagem adicional (opcional)",additionalMessagePlaceholder:"Se quiser, adicione um detalhe (ex.: urgência, melhor horário, observações)…"},p=o==="en"?"US":"BR",[f,h]=m.useState(!1),[b,y]=m.useState(!1),[g,v]=m.useState(!1),[w,P]=m.useState(!1),[x,C]=m.useState(null),[S,A]=m.useState({name:"",email:"",company:"",phone:"",message:i,consent:!1}),I=m.useRef(null),T=m.useRef(!1),O=m.useRef(null),{prefill:E,clearPrefill:D}=kx(),[L,R]=m.useState(null),[J,z]=m.useState(null),[H,W]=m.useState(null),[U,se]=m.useState(!1),Me=m.useRef(null);m.useEffect(()=>{const V=O.current;V&&(V.style.height="auto",V.style.height=`${V.scrollHeight}px`)},[S.message]),m.useEffect(()=>{E&&(R(E.summary),z(E.viabilitySessionId),W({uf:E.state,cidade:E.city,perfil:E.profile,capacidade:E.capacity}),D(),setTimeout(()=>{var V;(V=I.current)==null||V.focus(),se(!0),setTimeout(()=>se(!1),1500)},350))},[E,D]),m.useEffect(()=>{i&&!s&&A(V=>({...V,message:i}))},[i,s]),m.useEffect(()=>{s&&P(!1)},[s]),m.useEffect(()=>{try{const de=(new URLSearchParams(window.location.search).get("gclid")||"").trim();de&&(localStorage.setItem(wg,de),localStorage.setItem(Pg,new Date().toISOString()))}catch{}},[]);const Y=(V,de)=>{A(te=>({...te,[V]:de})),C(null)},ee=async V=>{if(V.preventDefault(),C(null),!S.name.trim()){C(u.nameRequired);return}if(!S.phone.trim()){C(u.phoneRequired);return}if(!S.consent){C(u.consentRequired);return}h(!0);try{const de=Ru(),te=S.phone?nu(S.phone)||p:null,Ge=(()=>{const Dt=[];if(te&&Dt.push(`whatsapp_country:${te}`),s)try{Dt.push(`technical_context:${JSON.stringify(s)}`)}catch{}return Dt.length>0?Dt.join(`
287`):null})(),Z=s,le=Z!=null&&Z.capacity_requested_mbps?Math.round(Number(Z.capacity_requested_mbps)):null,Pe={name:S.name.trim(),email:S.email.toLowerCase().trim()||"[email protected]",company:S.company.trim()||null,phone:S.phone||null,message:S.message.trim()||null,source:e,source_label:r,channel:"site_form",channel_id:"site_form",consent:!0,notes:Ge,desired_capacity_mbps:le&&le>0?le:null,...de},ue=iu();ue&&(Pe.gclid=ue);const Ae="https://ollzbnkfxfsusjtjssec.supabase.co/functions/v1/create-lead",Re={...Pe};s&&(Re.technical_context=s);const gt=await(await fetch(Ae,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9sbHpibmtmeGZzdXNqdGpzc2VjIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODU3MjYyMzIsImV4cCI6MjEwMTMwMjIzMn0.cJHpOt-gIlAPhNhgVwq3UlCNDsfCSRcsdkzacYVSjsQ"},body:JSON.stringify(Re)})).json();if(!gt.ok)throw new Error(gt.error||"Erro ao salvar");gt.leadId&&ou(gt.leadId),v(!0),Hl({source:e,channel:"site_form",email:S.email}),d&&Xg(d,{source:e,transactionId:gt.leadId}),Iu(S.email),Nu({email:S.email,source:e,profile:s==null?void 0:s.profile_selected,viabilityResult:s==null?void 0:s.viability_result,landingPage:window.location.pathname}),(J||H)&&(R(null),z(null),W(null)),A({name:"",email:"",company:"",phone:"",message:"",consent:!1}),P(!0),l==null||l()}catch(de){console.error("Lead capture error:",de),C(u.submitError)}finally{h(!1)}},oe=m.useCallback(async()=>{if(C(null),!S.name.trim()){C(u.nameRequired);return}if(!S.phone.trim()){C(u.phoneRequired);return}if(!S.consent){C(u.consentRequired);return}Si({cta_text:"WhatsApp CTA",cta_location:e}),y(!0);try{const V=S.phone?nu(S.phone)||p:null,de=s,te=(()=>{const le=[];if(V&&le.push(`whatsapp_country:${V}`),s)try{le.push(`technical_context:${JSON.stringify(s)}`)}catch{}return le.length>0?le.join(`
288`):null})(),Ge=de!=null&&de.capacity_requested_mbps?Math.round(Number(de.capacity_requested_mbps)):null,Z=await p4({formData:S,source:`${e}_whatsapp`,sourceLabel:`${r} (WhatsApp CTA)`,technicalContext:de,notes:te,desiredCapacityMbps:Ge});Z.leadId&&ou(Z.leadId),Hl({source:`${e}_whatsapp`,channel:"whatsapp",email:S.email,gclid:iu()})}catch(V){console.error("WhatsApp CTA error:",V)}finally{y(!1)}},[S,s,p,u,e,r]);return c.jsxs(c.Fragment,{children:[c.jsx("section",{id:n,className:"py-10 md:py-14 bg-[#021B3A] scroll-mt-16",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsx("div",{className:"max-w-4xl mx-auto",children:c.jsxs("div",{className:`\r
289              relative rounded-2xl overflow-hidden\r
290              bg-gradient-to-br from-[#0a1a2e]/95 via-[#0d2240]/90 to-[#081428]/95\r
291              backdrop-blur-sm\r
292              border border-white/[0.08]\r
293              shadow-[0_0_60px_rgba(19,146,228,0.08)]\r
294              p-5 md:p-6 lg:p-8\r
295            `,children:[c.jsx("div",{className:"absolute -top-20 -right-20 w-64 h-64 bg-accent/10 rounded-full blur-[100px] pointer-events-none"}),c.jsx("div",{className:"absolute -bottom-20 -left-20 w-48 h-48 bg-primary/10 rounded-full blur-[80px] pointer-events-none"}),c.jsxs("div",{className:"relative z-10",children:[c.jsxs("header",{className:"text-center mb-5",children:[c.jsx("h2",{className:"text-xl md:text-2xl font-heading font-bold text-white mb-1",children:t.title}),c.jsx("p",{className:"text-sm md:text-base text-white/70",children:t.subtitle})]}),c.jsxs("form",{onSubmit:ee,className:"space-y-3",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[c.jsxs("div",{className:"space-y-1",children:[c.jsxs(mr,{htmlFor:`${n}-name`,className:"text-white/90 text-xs font-medium flex items-center gap-1.5",children:[c.jsx(ey,{className:"w-3.5 h-3.5 text-accent"}),t.fields.nameLabel," ",c.jsx("span",{className:"text-red-400",children:"*"})]}),c.jsx(zn,{ref:I,id:`${n}-name`,type:"text",placeholder:t.fields.namePlaceholder,value:S.name,onChange:V=>Y("name",V.target.value),onFocus:()=>{T.current||(T.current=!0,qg(`lead-capture-${n}`,n))},maxLength:100,className:"bg-white/5 border-white/20 text-white placeholder:text-white/40 focus:border-accent h-9 text-sm"})]}),c.jsxs("div",{className:"space-y-1",children:[c.jsxs(mr,{htmlFor:`${n}-email`,className:"text-white/90 text-xs font-medium flex items-center gap-1.5",children:[c.jsx(lh,{className:"w-3.5 h-3.5 text-accent"}),t.fields.emailLabel]}),c.jsx(zn,{id:`${n}-email`,type:"email",placeholder:t.fields.emailPlaceholder,value:S.email,onChange:V=>Y("email",V.target.value),maxLength:255,className:"bg-white/5 border-white/20 text-white placeholder:text-white/40 focus:border-accent h-9 text-sm"})]})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[c.jsxs("div",{className:"space-y-1",children:[c.jsxs(mr,{htmlFor:`${n}-company`,className:"text-white/90 text-xs font-medium flex items-center gap-1.5",children:[c.jsx(ih,{className:"w-3.5 h-3.5 text-accent"}),t.fields.companyLabel]}),c.jsx(zn,{id:`${n}-company`,type:"text",placeholder:t.fields.companyPlaceholder,value:S.company,onChange:V=>Y("company",V.target.value),maxLength:100,className:"bg-white/5 border-white/20 text-white placeholder:text-white/40 focus:border-accent h-9 text-sm"})]}),c.jsxs("div",{className:"space-y-1",children:[c.jsxs(mr,{htmlFor:`${n}-phone`,className:"text-white/90 text-xs font-medium flex items-center gap-1.5",children:[c.jsx(Ra,{className:"w-3.5 h-3.5 text-accent"}),t.fields.phoneLabel," ",c.jsx("span",{className:"text-red-400",children:"*"})]}),c.jsx(mg,{id:`${n}-phone`,value:S.phone,onChange:V=>Y("phone",V||""),defaultCountry:p,placeholder:o==="en"?"(555) 123-4567":"(11) 99999 9999"})]})]}),!w&&L&&H&&c.jsxs("div",{ref:Me,className:ne("rounded-lg border px-3 py-1.5 transition-all duration-300",U?"border-accent/60 bg-accent/[0.12] ring-2 ring-accent/30":"border-accent/20 bg-accent/[0.06]"),children:[c.jsxs("div",{className:"flex items-center justify-between mb-1",children:[c.jsxs("span",{className:"text-[9px] font-semibold text-accent/80 uppercase tracking-widest flex items-center gap-1",children:[c.jsx(La,{className:"w-3 h-3"}),u.viabilitySummary]}),c.jsxs("button",{type:"button",onClick:()=>{R(null),W(null),z(null);const V=document.getElementById("brasil-via-parceiros");V&&V.scrollIntoView({behavior:"smooth",block:"start"})},className:"text-[9px] text-accent/50 hover:text-accent underline-offset-2 hover:underline flex items-center gap-0.5 transition-colors","aria-label":u.editAriaLabel,children:[u.edit," ",c.jsx(Tr,{className:"w-3 h-3"})]})]}),c.jsxs("div",{className:"flex flex-wrap gap-1",children:[c.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full border border-accent/20 bg-accent/10 px-2 py-0.5 text-[10px] text-white/80",children:[H.uf," / ",H.cidade]}),c.jsx("span",{className:"inline-flex items-center gap-1 rounded-full border border-white/10 bg-white/5 px-2 py-0.5 text-[10px] text-white/60",children:H.perfil}),H.capacidade&&c.jsx("span",{className:"inline-flex items-center gap-1 rounded-full border border-white/10 bg-white/5 px-2 py-0.5 text-[10px] text-white/60",children:H.capacidade==="AJUDA"||H.capacidade==="Não sei / Preciso de ajuda"?u.needHelp:H.c
295apacidade})]})]}),!w&&s&&typeof s=="object"&&c.jsxs("div",{className:"rounded-lg border border-accent/20 bg-accent/[0.06] px-3 py-2",children:[c.jsxs("span",{className:"text-[9px] font-semibold text-accent/80 uppercase tracking-widest flex items-center gap-1 mb-1.5",children:[c.jsx(La,{className:"w-3 h-3"}),u.viabilitySummary]}),c.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-0.5 text-[11px] text-white/70",children:[s.address_label&&c.jsxs("p",{children:[c.jsxs("span",{className:"text-white/50",children:[u.techAddress,":"]})," ",String(s.address_label)]}),s.capacity_requested_mbps&&c.jsxs("p",{children:[c.jsxs("span",{className:"text-white/50",children:[u.techCapacity,":"]})," ",String(s.capacity_requested_mbps)," Mbps"]}),s.pop_name&&c.jsxs("p",{children:[c.jsxs("span",{className:"text-white/50",children:[u.techPop,":"]})," ",String(s.pop_name)]}),s.ce_label&&c.jsxs("p",{children:[c.jsxs("span",{className:"text-white/50",children:[u.techCe,":"]})," ",String(s.ce_label)]}),s.technology_label&&c.jsxs("p",{children:[c.jsxs("span",{className:"text-white/50",children:[u.techTechnology,":"]})," ",String(s.technology_label)]}),s.viability_result&&c.jsxs("p",{children:[c.jsxs("span",{className:"text-white/50",children:[u.techResult,":"]})," ",String(s.viability_result).replace(/_/g," ")]})]})]}),c.jsxs("div",{className:"space-y-1",children:[c.jsxs(mr,{htmlFor:`${n}-message`,className:"text-white/90 text-xs font-medium flex items-center gap-1.5",children:[c.jsx(X0,{className:"w-3.5 h-3.5 text-accent"}),s?u.additionalMessage:t.fields.messageLabel]}),c.jsx(_m,{ref:O,id:`${n}-message`,placeholder:s?u.additionalMessagePlaceholder:t.fields.messagePlaceholder,rows:2,style:{resize:"none",overflow:"hidden"},onInput:V=>{const de=V.currentTarget;de.style.height="auto",de.style.height=`${de.scrollHeight}px`},value:S.message,onChange:V=>Y("message",V.target.value),maxLength:500,className:"bg-white/5 border-white/20 text-white placeholder:text-white/40 focus:border-accent resize-none min-h-[56px] text-sm"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx($m,{id:`${n}-consent`,checked:S.consent,onCheckedChange:V=>Y("consent",V===!0),className:"border-white/30 data-[state=checked]:bg-accent data-[state=checked]:border-accent h-4 w-4"}),c.jsxs(mr,{htmlFor:`${n}-consent`,className:"text-white/70 text-xs leading-tight cursor-pointer",children:[t.fields.consentLabel," ",c.jsx("span",{className:"text-red-400",children:"*"})]})]}),x&&c.jsx("p",{className:"text-red-400 text-xs text-center py-1.5 px-3 bg-red-500/10 rounded-lg border border-red-500/20",children:x}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 pt-1",children:[c.jsx(Pt,{type:"submit",disabled:f,variant:"hero",className:"flex-1 h-10 text-sm font-semibold",children:f?c.jsxs(c.Fragment,{children:[c.jsx(Kl,{className:"w-4 h-4 animate-spin"}),u.submitting]}):c.jsxs(c.Fragment,{children:[c.jsx(Y0,{className:"w-4 h-4"}),t.ctaSubmitLabel]})}),c.jsx(Pt,{type:"button",variant:"outline",className:"flex-1 h-10 text-sm border-white/20 text-white hover:bg-white/10 hover:border-white/30",disabled:b,onClick:oe,children:b?c.jsxs(c.Fragment,{children:[c.jsx(Kl,{className:"w-4 h-4 animate-spin"}),u.submitting]}):c.jsxs(c.Fragment,{children:[c.jsx(Ra,{className:"w-4 h-4"}),t.ctaWhatsAppLabel]})})]}),c.jsxs("p",{className:"text-[11px] text-white/50 text-center leading-relaxed pointer-events-none select-none",children:[t.privacyNote," ",t.privacyLinkLabel,"."]})]})]})]})})})}),c.jsx(sm,{open:g,onOpenChange:v,children:c.jsxs(gl,{className:"sm:max-w-md bg-[#0d2240] border-white/10 text-white",children:[c.jsxs(yl,{className:"text-center",children:[c.jsx("div",{className:"mx-auto mb-4 w-16 h-16 rounded-full bg-green-500/20 flex items-center justify-center",children:c.jsx(V0,{className:"w-8 h-8 text-green-400"})}),c.jsx(bl,{className:"text-xl font-bold text-center",children:t.modalTitle}),c.jsx(dm,{className:"text-white/70 text-center text-base pt-2",children:t.modalMessage})]}),c.jsxs(cm,{className:"flex flex-col sm:flex-row gap-3 pt-4",children:[c.jsx(Pt,{variant:"hero",className:"flex-1",onClick:()=>v(!1),children:t.modalCloseLabel}),c.jsx(Pt,{variant:"outline",className:"flex-1 border-white/20 text-white hover:bg-white/10",asChild:!0,children:c.jsxs("a",{href:`https://wa.me/${Rs}?text=${encodeURIComponent(a)}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>v(!1),children:[c.jsx(Ra,{className:"w-4 h-4"}),t.modalWhatsAppLabel]})})]})]})})]})}const g4=()=>{const t=kf(),{pages:e}=ft(t),{leadForm:r}=e.home;return c.jsx(m4,{content:r,source:"home",sourceLabel:"Homepage",whatsappMessage:r.whatsappMessage,sectionId:"solicitar-proposta-home",locale:t})},su=()=>{const{pages:t}=ft();return M3(),c.jsxs(c.Fragment,{children:[c.jsx(Q3,{}),c.jsx(Y3,{}),c.jsx(dx,{}),c.jsx(hx,{}),c.jsx(Ex,{}),c.jsx(g4,{})]})},lu=$.lazy(()=>M(()=>import("./AAsap-DfRaaomh.js"),__vite__mapDeps([10,5,1,4,11,12,13,9]))),cu=$.lazy(()=>M(()=>import("./Provedores-BQa6PpM-.js"),__vite__mapDeps([14,1,15,4,5,16,12,8,17,18,19,20,21,9]))),du=$.lazy(()=>M(()=>import("./Empresas-DbkUlEyG.js"),__vite__mapDeps([22,1,15,4,5,16,12,8,9,23,24,25,26,27,28,29,17,18,19,20,21]))),uu=$.lazy(()=>M(()=>import("./DataCenter-CQkfNOJx.js"),__vite__mapDeps([30,1,5,31,4,16,32,33,34,12,35,36,37,38,39,40,20,41,23,9]))),y4=$.lazy(()=>M(()=>import("./Comparativo-D3IjTtTR.js"),__vite__mapDeps([42,1,43,44,5,16,4,31,35,45,46,9]))
295),hu=$.lazy(()=>M(()=>import("./Ferramentas-CpklVqb6.js"),__vite__mapDeps([47,1,5,3,4,48,49,50,7,51,23,52,53,54,55,11,56,57,46,58,29,39,59,60,61,9]))),pu=$.lazy(()=>M(()=>import("./Blog-D_nQe-jc.js"),__vite__mapDeps([62,1,63,64,65,4,5,66,17,67,68,44,11,19,20,9]))),fu=$.lazy(()=>M(()=>import("./BlogPost-BUz6j25O.js"),__vite__mapDeps([69,1,43,44,5,4,63,64,70,68,71,16,20,9]))),b4=$.lazy(()=>M(()=>import("./Busca-CEA2hk_i.js"),__vite__mapDeps([72,1,4,5,9]))),mu=$.lazy(()=>M(()=>import("./Contato-zF7nR59o.js"),__vite__mapDeps([73,1,4,5,35,40,74,27,75,23,29,28,41,9]))),v4=$.lazy(()=>M(()=>import("./CentralCliente-BUtByU8s.js"),__vite__mapDeps([76,1,4,5,28,77,58,67,9]))),w4=$.lazy(()=>M(()=>import("./ClienteDashboard-DX089JN2.js"),__vite__mapDeps([78,1,4,5,79,80,59,61,27,81,9]))),P4=$.lazy(()=>M(()=>import("./Documentacao-DSfzHFF9.js"),__vite__mapDeps([82,1,4,5,83,60,23,61,84,9]))),x4=$.lazy(()=>M(()=>import("./ApiDocs-BweRUkjU.js"),__vite__mapDeps([85,1,5]))),gu=$.lazy(()=>M(()=>import("./Guias-Bh3SAzLo.js"),__vite__mapDeps([86,1,43,44,5,16,87,4,32,33,34,88,89,90,50,13,71,20,80,81,56,9]))),$4=$.lazy(()=>M(()=>import("./PoliticaPrivacidade-Cb_AH3SP.js"),__vite__mapDeps([91,1,5]))),yu=$.lazy(()=>M(()=>import("./NotFound-0Yb6WZ4j.js"),__vite__mapDeps([92,1,5]))),_4=$.lazy(()=>M(()=>import("./Obrigado-D9NUrtmu.js"),__vite__mapDeps([93,1,5,92,9,17,70]))),S4=$.lazy(()=>M(()=>import("./LpCampanha-BKGQW3dd.js").then(t=>t.a),__vite__mapDeps([94,1,5,92,95,96,6,97]))),C4=$.lazy(()=>M(()=>import("./LpShell-C8tplbYn.js"),__vite__mapDeps([95,5,1,96]))),A4=$.lazy(()=>M(()=>import("./AdminIndex-CGyxbVcg.js"),__vite__mapDeps([98,1,5,4,9]))),E4=$.lazy(()=>M(()=>import("./AdminLogin-DrfJG1DY.js"),__vite__mapDeps([99,1,4,5,100,17,7,28,9]))),T4=$.lazy(()=>M(()=>import("./AdminSignup-a-ZWBbIf.js"),__vite__mapDeps([101,1,4,5,102,90,34,103,100,17,7,104,68,28,9]))),k4=$.lazy(()=>M(()=>import("./AdminPending-Df7rY4Az.js"),__vite__mapDeps([105,1,4,5,100,29,106,104,79,9]))),O4=$.lazy(()=>M(()=>import("./AdminHome-DpdmJaT9.js"),__vite__mapDeps([107,1,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,111,112,113,114,115,116,117,118,119,46,120,29,121,122,18,123,9]))),I4=$.lazy(()=>M(()=>import("./AdminUsuariosNew-BQ39ZJ58.js"),__vite__mapDeps([124,1,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,102,90,103,77,17,7,127,83,119,128,129,51,56,130,29,120,9]))),N4=$.lazy(()=>M(()=>import("./AdminConfigPage-CDAg_bW3.js"),__vite__mapDeps([131,1,4,5,83,54,108,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,129,132,133,17,40,134,9]))),R4=$.lazy(()=>M(()=>import("./AdminIntegracoes-Img3dhUP.js"),__vite__mapDeps([135,1,129,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,7,28,132,9]))),j4=$.lazy(()=>M(()=>import("./AdminCalendario-CoTJGf7L.js"),__vite__mapDeps([136,1,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,83,119,102,90,103,128,115,137,68,138,114,122,29,139,140,116,9]))),L4=$.lazy(()=>M(()=>import("./AdminGuiasPage-BhgVNK3F.js"),__vite__mapDeps([141,1,4,5,128,108,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,129,87,51,102,90,103,142,137,143,144,139,140,145,146,147,132,55,148,83,9]))),bu=$.lazy(()=>M(()=>import("./AdminGuiasEditor-RDhQxpW-.js"),__vite__mapDeps([149,1,129,4,5,146,102,90,34,103,128,108,3,88,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,150,118,138,134,151,87,64,145,70,143,132,127,140,137,126,104,147,152,9]))),D4=$.lazy(()=>M(()=>import("./AdminVideosYT-EZ4SvWg6.js"),__vite__mapDeps([153,1,129,49,4,5,146,83,3,119,108,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,104,137,103,140,9]))),F4=$.lazy(()=>M(()=>import("./AdminIntranet-DmlSsjqG.js"),__vite__mapDeps([154,1,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,155,89,90,156,68,140,115,102,103,127,83,119,137,139,144,29,143,9]))),M4=$.lazy(()=>M(()=>import("./AdminGaleria-DTVc84GK.js"),__vite__mapDeps([157,1,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,83,102,90,103,119,127,140,158,9]))),B4=$.lazy(()=>M(()=>import("./AdminSiteFerramentas--vYWR0dm.js"),__vite__mapDeps([159,1,53,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,83,146,51,119,137,134,143,144,139,140,9]))),U4=$.lazy(()=>M(()=>import("./AdminPOPsPage-C6C-jWPk.js"),__vite__mapDeps([160,1,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,161,
295102,90,103,51,146,83,162,163,137,164,139,140,7,17,9]))),q4=$.lazy(()=>M(()=>import("./AdminBlogList-BUXi1Q3W.js"),__vite__mapDeps([165,1,129,4,5,102,90,34,103,142,108,3,88,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,63,64,65,137,158,68,139,23,143,140,9]))),vu=$.lazy(()=>M(()=>import("./AdminBlogNew-D8gigsvd.js"),__vite__mapDeps([166,1,129,4,5,146,3,102,90,34,103,118,113,114,115,116,117,20,19,128,108,88,109,33,110,100,75,59,26,57,27,39,79,81,44,61,150,138,134,151,63,64,65,70,143,132,127,156,68,9]))),W4=$.lazy(()=>M(()=>import("./AdminInstagram-CimpDBd-.js"),__vite__mapDeps([167,1,129,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,146,83,142,119,137,104,144,147,140,9]))),V4=$.lazy(()=>M(()=>import("./AdminSiteMateriais-C2SmhDHG.js"),__vite__mapDeps([168,1,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,52,169,51,137,147,144,143,140,127,60,9]))),H4=$.lazy(()=>M(()=>import("./AdminHeroEditor-DqRA9FxB.js"),__vite__mapDeps([170,1,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,169,127,7,146,83,147,140,137,134,142,102,90,103,132,158,119,164,55,36,139,144,143,148,9]))),K4=$.lazy(()=>M(()=>import("./AdminSiteGaleriaDC-DMYTf40T.js"),__vite__mapDeps([171,1,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,83,146,119,158,137,151,144,143,140,127,9]))),z4=$.lazy(()=>M(()=>import("./AdminSiteLogos-DI3u3vmT.js"),__vite__mapDeps([172,1,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,83,119,102,90,103,127,164,55,144,143,140,148,9]))),G4=$.lazy(()=>M(()=>import("./AdminPerfil-BtR8WizP.js"),__vite__mapDeps([173,1,129,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,83,102,90,103,132,24,9]))),X4=$.lazy(()=>M(()=>import("./AdminNewsletter-CdxXltW1.js"),__vite__mapDeps([174,1,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,102,90,103,51,83,66,18,164,60,115,9]))),J4=$.lazy(()=>M(()=>import("./AdminLeadsAyla-DVO6nNIt.js"),__vite__mapDeps([175,1,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,102,90,103,51,83,176,18,164,60,177,115,9]))),Q4=$.lazy(()=>M(()=>import("./AdminLeadsAll-_DVZxh1F.js"),__vite__mapDeps([178,1,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,102,90,103,51,83,89,176,18,164,60,143,21,120,115,9]))),Y4=$.lazy(()=>M(()=>import("./AdminNotFound-CQvnpmqX.js"),__vite__mapDeps([179,1,4,5,110,70]))),Z4=$.lazy(()=>M(()=>import("./AdminResetPassword-CU23XECS.js"),__vite__mapDeps([180,1,4,5,100,17,7,28,9]))),eE=$.lazy(()=>M(()=>import("./AdminAIConfig-B0joHCrb.js"),__vite__mapDeps([181,1,129,54,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,83,128,102,90,103,51,182,17,7,104,137,139,140,60,84,127,183,155,37,177,133,130,146,25,147,38,132,184,152,9]))),tE=$.lazy(()=>M(()=>import("./AdminAnalytics-BDeNJBNI.js"),__vite__mapDeps([185,1,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,111,186,18,187,123,188,189,112,113,114,115,116,117,118,60,126,40,9]))),rE=$.lazy(()=>M(()=>import("./AdminViability-nFeafBSA.js"),__vite__mapDeps([190,5,1,112,4,113,114,115,116,117,20,19,118,108,3,88,34,109,33,110,100,75,59,26,57,27,39,79,81,44,61,111,102,90,103,51,89,7,133,123,164,60,143,152,191,192,55,148,24,9]))),aE=$.lazy(()=>M(()=>import("./AdminProducts-CXIoJO4-.js"),__vite__mapDeps([193,1,129,183,4,5,109,33,3,155,44,34,37,177,17,133,130,146,102,90,103,60,127,108,88,20,110,100,75,59,26,57,27,39,79,19,81,61,83,25,137,147,139,140,9]))),nE=$.lazy(()=>M(()=>import("./AdminSiteTracking-D1JQA4mc.js"),__vite__mapDeps([194,1,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,125,126,111,129,51,102,90,103,17,106,46,29,132,9]))),oE=$.lazy(()=>M(()=>import("./AdminCampanhas-DXP9HSLW.js"),__vite__mapDeps([195,1,51,4,5,108,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,111,196,83,188,197,189,187,45,112,113,114,115,116,117,118,133,156,37,9]))),iE=$.lazy(()=>M(()=>import("./AdminPalavrasChave-DQ4rrH2G.js"),__vite__mapDeps([198,1,51,4,5,108,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,112,113,114,115,116,117,118,126,9]))),sE=$.lazy(()=>M(()=>import("./AdminLpTestes-KgV6Tim6.js"),__vite__mapDeps([199,1,129,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,111,119,51,128,97,104,200,133,201,60,115,9]))),lE=$.lazy(()=>M(()=>import("./AdminLeadSources-Ce3mwROX.js"),__vite__mapDeps([202,1,129,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,146,83,51,128,137,140,133,17,9]))
295),cE=$.lazy(()=>M(()=>import("./AdminLIAMetrics-DK_mJiOU.js"),__vite__mapDeps([203,1,3,4,5,128,108,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,111,204,129,146,201,112,113,114,115,116,117,118,133,184,177,120,156,188,189,29,197,192,9]))),dE=$.lazy(()=>M(()=>import("./AdminSZChat-ipB6fXCK.js"),__vite__mapDeps([205,1,4,5,83,3,146,128,108,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,89,90,102,103,51,112,113,114,115,116,117,118,133,7,104,130,132,60,9]))),uE=$.lazy(()=>M(()=>import("./AdminPerformance-CwrY1fNg.js"),__vite__mapDeps([206,1,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,111,112,113,114,115,116,117,118,176,186,196,204,119,133,126,18,188,184,182,164,197,29,121,122,9]))),hE=$.lazy(()=>M(()=>import("./AdminLIAPublicAPI-CHsHTm2c.js"),__vite__mapDeps([207,1,129,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,83,128,137,23,140,9]))),pE=$.lazy(()=>M(()=>import("./AdminLIATriggers-awTICu0x.js"),__vite__mapDeps([208,1,129,108,4,5,3,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,83,146,51,38,137,139,140,9]))),fE=$.lazy(()=>M(()=>import("./AdminBackups-ymyVWjAa.js"),__vite__mapDeps([209,1,3,4,5,51,108,88,34,20,109,33,110,100,75,59,26,57,27,39,79,19,81,44,61,111,29,133,17,121,122,115,117,116,104,182,36,200,9]))),mE=new Xv,gE=()=>(Kg(),null),yE=()=>c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:c.jsx("div",{className:"animate-spin w-8 h-8 border-3 border-accent border-t-transparent rounded-full"})}),wu=$.lazy(()=>M(()=>import("./Rede-sIRbnGiN.js"),__vite__mapDeps([210,1,43,44,5,4,12,27,191,74,89,34,90,161,37,103,3,41,23,6,2,109,33,102,104,106,133,152,70,17,7,20,32,9]))),bE=()=>c.jsx(e1,{client:mE,children:c.jsx(Iw,{children:c.jsx(Rw,{children:c.jsxs(kv,{children:[c.jsx(oy,{}),c.jsx(Dy,{}),c.jsxs(Wg,{children:[c.jsx(gE,{}),c.jsx(Vg,{}),c.jsx(m.Suspense,{fallback:c.jsx(yE,{}),children:c.jsxs(Hg,{children:[c.jsx(k,{path:"/",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(pe,{children:c.jsx(su,{})})})}),c.jsx(k,{path:"/a-asap",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(pe,{children:c.jsx(lu,{})})})}),c.jsx(k,{path:"/para-provedores",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(pe,{children:c.jsx(cu,{})})})}),c.jsx(k,{path:"/para-empresas",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(pe,{children:c.jsx(du,{})})})}),c.jsx(k,{path:"/data-center-colocation",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(pe,{children:c.jsx(uu,{})})})}),c.jsx(k,{path:"/compare/:slug",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(pe,{children:c.jsx(y4,{})})})}),c.jsx(k,{path:"/lp/obrigado/:produto",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(C4,{children:c.jsx(_4,{})})})}),c.jsx(k,{path:"/lp/:pagina",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(S4,{})})}),c.jsx(k,{path:"/rede-asap",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(pe,{children:c.jsx(wu,{})})})}),c.jsx(k,{path:"/ferramentas-asap",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(pe,{children:c.jsx(hu,{})})})}),c.jsx(k,{path:"/blog",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(pe,{children:c.jsx(pu,{})})})}),c.jsx(k,{path:"/blog/:slug",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(pe,{children:c.jsx(fu,{})})})}),c.jsx(k,{path:"/busca",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(pe,{children:c.jsx(b4,{})})})}),c.jsx(k,{path:"/contato",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(pe,{children:c.jsx(mu,{})})})}),c.jsx(k,{path:"/documentacao",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(pe,{children:c.jsx(P4,{})})})}),c.jsx(k,{path:"/api-docs",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(x4,{})})}),c.jsx(k,{path:"/api/docs",element:c.jsx($e,{to:"/api-docs",replace:!0})}),c.jsx(k,{path:"/politica-de-privacidade-e-termos",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(pe,{children:c.jsx($4,{})})})}),c.jsx(k,{path:"/politica-de-privacidade",element:c.jsx($e,{to:"/politica-de-privacidade-e-termos",replace:!0})}),c.jsx(k,{path:"/data-center",element:c.jsx($e,{to:"/data-center-colocation",replace:!0})}),c.jsx(k,{path:"/data-center/",element:c.jsx($e,{to:"/data-center-colocation",replace:!0})}),c.jsx(k,{path:"/datacenter",element:c.jsx($e,{to:"/data-center-colocation",replace:!0})}),c.jsx(k,{path:"/lp-link-dedicado-provedores",element:c.jsx($e,{to:"/para-provedores",replace:!0})}),c.jsx(k,{path:"/lp-link-dedicado-provedores/",element:c.jsx($e,{to:"/para-provedores",replace:!0})}),c.jsx(k,{path:"/corporativo/",element:c.jsx($e,{to:"/para-empresas",replace:!0})}),c.jsx(k,{path:"/servicos/",element:c.jsx($e,{to:"/para-empresas",replace:!0})}),c.jsx(k,{path:"/aempresa/",element:c.jsx($e,{to:"/a-asap",replace:!0})}),c.jsx(k,{path:"/provedores/",element:c.jsx($e,{to:"/para-provedores",replace:!0})}),c.jsx(k,{path:"/link-dedicado/",element:c.jsx($e,{to:"/para-empresas",replace:!0})}),c.jsx(k,{path:"/operadoras/",element:c.jsx($e,{to:"/para-provedores",replace:!0})}),c.jsx(k,{path:"/home",element:c.jsx($e,{to:"/",replace:!0})}),c.jsx(k,{path:"/index.php",element:c.jsx($e,{to:"/",replace:!0})}),c.jsx(k,{path:"/bk-link-dedicado/",element:c.jsx($e,{to:"/para-empresas",replace:!0})}),c.jsx(k,{path:"/provedores-backup/",element:c.jsx($e,{to:"/para-provedores",replace:!0})}),c.jsx(k,{path:"/lp-tour-asap-data-center/",element:c.jsx($e,{to:"/data-center-colocation",replace:!0})}),c.jsx(k,{path:"/tag/*",element:c.jsx($e,{to:"/blog",replace:!0})}),c.jsx(k,{path:"/en",element:c.jsx(ie,{locale:"en",children:c.jsx(pe,{children:c.jsx(su,{})})})}),c.jsx(k,{path:"/en/a-asap",element:c.jsx(ie,{locale:"en",children:c.jsx(pe,{children:c.jsx(lu,{})})})}),c.jsx(k,{path:"/en/para-empresas",element:c.jsx(ie,{locale:"en",children:c.jsx(pe,{children:c.jsx(du,{})})})}),c.jsx(k,{path:"/en/para-provedores",element:c.jsx(ie,{locale:"en",children:c.jsx(pe,{children:c.jsx(cu,{})})})}),c.jsx(k,{path:"/en/data-center-colocation",element:c.jsx(ie,{locale:"en",children:c.jsx(pe,{children:c.jsx(uu,{})})})}),c.jsx(k,{path:"/en/rede-asap",element:c.jsx(ie,{locale:"en",children:c.jsx(pe,{children:c.jsx(wu,{})})})}),c.jsx(k,{path:"/en/contato",element:c.jsx(ie,{locale:"en",children:c.jsx(pe,{children:c.jsx(mu,{})})})}),c.jsx(k,{path:"/en/ferramentas-asap",element:c.jsx(ie,{locale:"en",children:c.jsx(pe,{children:c.jsx(hu,{})})})}),c.jsx(k,{path:"/en/blog",element:c.jsx(ie,{locale:"en",children:c.jsx(pe,{children:c.jsx(pu,{})})})}),c.jsx(k,{path:"/en/blog/:slug",element:c.jsx(ie,{locale:"en",children:c.jsx(pe,{children:c.jsx(fu,{})})})}),c.jsx(k,{path:"/guias",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(gu,{})})}),c.jsx(k,{path:"/guias/:slug",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(gu,{})})}),c.jsx(k,{path:"/central-do-cliente",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(v4,{})})}),c.jsx(k,{path:"/central-do-cliente/dashboard",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(pe,{children:c.jsx(w4,{})})})}),c.jsx(k,{path:"/admin",element:c.jsx(X,{children:c.jsx(A4,{})})}),c.jsx(k,{path:"/admin/login",element:c.jsx(X,{children:c.jsx(E4,{})})}),c.jsx(k,{path:"/admin/signup",element:c.jsx(X,{children:c.jsx(T4,{})})}),c.jsx(k,{path:"/admin/reset-password",element:c.jsx(X,{children:c.jsx(Z4,{})})}),c.jsx(k,{path:"/admin/pending",element:c.jsx(X,{children:c.jsx(k4,{})})}),c.jsx(k,{path:"/admin/dashboard",element:c.jsx(X,{children:c.jsx(O4,{})})}),c.jsx(k,{path:"/admin/usuarios",element:c.jsx(X,{children:c.jsx(I4,{})})}),c.jsx(k,{path:"/admin/intranet",element:c.jsx(X,{children:c.jsx(F4,{})})}),c.jsx(k,{path:"/admin/galeria",element:c.jsx(X,{children:c.jsx(M4,{})})}),c.jsx(k,{path:"/admin/calendario",element:c.jsx(X,{children:c.jsx(j4,{})})}),c.jsx(k,{path:"/admin/guias",element:c.jsx(X,{children:c.jsx(L4,{})})}),c.jsx(k,{path:"/admin/guias/novo",element:c.jsx(X,{children:c.jsx(bu,{})})}),c.jsx(k,{path:"/admin/guias/:id",element:c.jsx(X,{children:c.jsx(bu,{})})}),c.jsx(k,{path:"/admin/config",element:c.jsx(X,{children:c.jsx(N4,{})})}),c.jsx(k,{path:"/admin/integracoes",element:c.jsx(X,{children:c.jsx(R4,{})})}),c.jsx(k,{path:"/admin/videos",element:c.jsx(X,{children:c.jsx(D4,{})})}),c.jsx(k,{path:"/admin/site/ferramentas",element:c.jsx(X,{children:c.jsx(B4,{})})}),c.jsx(k,{path:"/admin/pops",element:c.jsx(X,{children:c.jsx(U4,{})})}),c.jsx(k,{path:"/admin/blog",element:c.jsx(X,{children:c.jsx(q4,{})})}),c.jsx(k,{path:"/admin/blog/novo",element:c.jsx(X,{children:c.jsx(vu,{})})}),c.jsx(k,{path:"/admin/blog/editar/:id",element:c.jsx(X,{children:c.jsx(vu,{})})}),c.jsx(k,{path:"/admin/site/instagram",element:c.jsx(X,{children:c.jsx(W4,{})})}),c.jsx(k,{path:"/admin/materiais",element:c.jsx(X,{children:c.jsx(V4,{})})}),c.jsx(k,{path:"/admin/site/videos",element:c.jsx(X,{children:c.jsx(H4,{})})}),c.jsx(k,{path:"/admin/site/galeria-dc",element:c.jsx(X,{children:c.jsx(K4,{})})}),c.jsx(k,{path:"/admin/site/logos",element:c.jsx(X,{children:c.jsx(z4,{})})}
295),c.jsx(k,{path:"/admin/perfil",element:c.jsx(X,{children:c.jsx(G4,{})})}),c.jsx(k,{path:"/admin/configuracoes",element:c.jsx($e,{to:"/admin/perfil",replace:!0})}),c.jsx(k,{path:"/admin/ia",element:c.jsx(X,{children:c.jsx(eE,{})})}),c.jsx(k,{path:"/admin/ia/metricas",element:c.jsx(X,{children:c.jsx(cE,{})})}),c.jsx(k,{path:"/admin/ia/produtos",element:c.jsx(X,{children:c.jsx(aE,{})})}),c.jsx(k,{path:"/admin/ia/api",element:c.jsx(X,{children:c.jsx(hE,{})})}),c.jsx(k,{path:"/admin/ia/triggers",element:c.jsx(X,{children:c.jsx(pE,{})})}),c.jsx(k,{path:"/admin/leads",element:c.jsx(X,{children:c.jsx(Q4,{})})}),c.jsx(k,{path:"/admin/leads/ayla",element:c.jsx(X,{children:c.jsx(J4,{})})}),c.jsx(k,{path:"/admin/newsletter",element:c.jsx(X,{children:c.jsx(X4,{})})}),c.jsx(k,{path:"/admin/analytics",element:c.jsx(X,{children:c.jsx(tE,{})})}),c.jsx(k,{path:"/admin/performance",element:c.jsx(X,{children:c.jsx(uE,{})})}),c.jsx(k,{path:"/admin/viability",element:c.jsx(X,{children:c.jsx(rE,{})})}),c.jsx(k,{path:"/admin/site/tracking",element:c.jsx(X,{children:c.jsx(nE,{})})}),c.jsx(k,{path:"/admin/campanhas",element:c.jsx(X,{children:c.jsx(oE,{})})}),c.jsx(k,{path:"/admin/palavras-chave",element:c.jsx(X,{children:c.jsx(iE,{})})}),c.jsx(k,{path:"/admin/analytics/LP",element:c.jsx(X,{children:c.jsx(sE,{})})}),c.jsx(k,{path:"/admin/lead-sources",element:c.jsx(X,{children:c.jsx(lE,{})})}),c.jsx(k,{path:"/admin/szchat",element:c.jsx(X,{children:c.jsx(dE,{})})}),c.jsx(k,{path:"/admin/backups",element:c.jsx(X,{children:c.jsx(fE,{})})}),c.jsx(k,{path:"/admin/*",element:c.jsx(X,{children:c.jsx(Y4,{})})}),c.jsx(k,{path:"/en/*",element:c.jsx(ie,{locale:"en",children:c.jsx(pe,{children:c.jsx(yu,{})})})}),c.jsx(k,{path:"*",element:c.jsx(ie,{locale:"pt-BR",children:c.jsx(pe,{children:c.jsx(yu,{})})})})]})})]})]})})})}),$i=c.jsx($.StrictMode,{children:c.jsx(bE,{})}),Et=document.getElementById("root"),_i=Et.dataset.prePintura,vE=window.location.pathname.replace(/\/+$/,"")||"/";if(!_i)Go(Et).render($i);else if(_i!==vE)Et.removeAttribute("data-pre-pintura"),Et.innerHTML="",Go(Et).render($i);else{window.__rotaPrePintada=_i;const t=document.createElement("div");t.style.cssText="position:absolute;top:0;left:0;width:100%;visibility:hidden;pointer-events:none",Et.id="pre-pintura",Et.after(t),t.id="root";let e=!1;const r=()=>{if(e)return;e=!0;const d=window.scrollY;Et.remove(),t.style.cssText="",d&&window.scrollTo(0,d)},a=d=>{var u;return(((u=d.querySelector("main"))==null?void 0:u.textContent)||"").trim().length},n=Math.max(80,Math.floor(a(Et)*.7)),o=()=>a(t)>=n,i=()=>{const d=t.getAnimations({subtree:!0}).filter(u=>{var f;return((f=u.effect)==null?void 0:f.getComputedTiming().iterations)!==1/0&&u.playState==="running"});return Promise.race([Promise.all(d.map(u=>u.finished.catch(()=>{}))),new Promise(u=>window.setTimeout(u,1500))])};let s=!1;const l=()=>{e||s||(o()?(s=!0,i().then(()=>requestAnimationFrame(()=>requestAnimationFrame(r)))):requestAnimationFrame(l))};Go(t).render($i),requestAnimationFrame(l),window.setTimeout(r,1e4)}export{G0 as $,bl as A,ih as B,sh as C,sm as D,Ql as E,dm as F,Jn as G,cm as H,zn as I,Ta as J,e5 as K,z0 as L,La as M,J0 as N,z9 as O,nx as P,dP as Q,Yo as R,ch as S,Ex as T,ey as U,Q0 as V,Yl as W,Tr as X,r0 as Y,j as Z,F3 as _,M3 as a,X9 as a$,Hc as a0,Vc as a1,SE as a2,Zv as a3,Nw as a4,Wc as a5,Ef as a6,q9 as a7,K3 as a8,ix as a9,ov as aA,Ls as aB,d3 as aC,SP as aD,Mf as aE,Of as aF,Po as aG,iv as aH,sv as aI,Du as aJ,W9 as aK,G9 as aL,W0 as aM,pn as aN,Fi as aO,Ba as aP,Kv as aQ,ke as aR,We as aS,Lv as aT,V9 as aU,H9 as aV,Ah as aW,K0 as aX,$x as aY,Z9 as aZ,nd as a_,ox as aa,cx as ab,sx as ac,lx as ad,fs as ae,o0 as af,xo as ag,Pa as ah,Mn as ai,ye as aj,ge as ak,Nr as al,It as am,ty as an,w3 as ao,P3 as ap,$3 as aq,x3 as ar,nm as as,om as at,am as au,im as av,_t as aw,Th as ax,nv as ay,Nx as az,kf as b,J9 as b0,Q9 as b1,Y9 as b2,px as b3,t5 as b4,jw as b5,Dw as b6,Fw as b7,Mw as b8,Bw as b9,Lw as ba,Uw as bb,qw as bc,N as bd,K9 as be,n5 as bf,kx as bg,r5 as bh,U9 as bi,m4 as c,lh as d,V0 as e,mr as f,ft as g,mg as h,a5 as i,$m as j,kv as k,yP as l,AE as m,EE as n,o5 as o,Ov as p,nu as q,d4 as r,p4 as s,t0 as t,H3 as u,X0 as v,_m as w,Y0 as x,gl as y,yl as z};

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