PageSourceSearch

https://astalent.be/_next/static/chunks/fb99b47b76d5f06e.js?dpl=dpl_GJDiSzAh8L2Ez2p3uGX2SgLSo8X7

js astalent.be collected 2026-09-25 11:08:20 UTC 576,542 bytes, 60 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0d76d-1dc6-7321-9208-ad86faa453e1")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=l(e,n)),t&&(o.current=l(t,n))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},80685,(e,t,r)=>{!function(r,n){if("function"==typeof define&&define.amd){let t;void 0!==(t=n())&&e.v(t)}else t.exports=n()}(e.e,function(){var e=function(){},t={},r={},n={};function o(e,t){if(e){var o=n[e];if(r[e]=t,o)for(;o.length;)o[0](e,t),o.splice(0,1)}}function l(t,r){t.call&&(t={success:t}),r.length?(t.error||e)(r):(t.success||e)(t)}function i(r,n,i){var a,s;if(n&&n.trim&&(a=n),s=(a?i:n)||{},a)if(a in t)throw"LoadJS";else t[a]=!0;function d(t,n){!function(t,r,n){var o,l,i=(t=t.push?t:[t]).length,a=i,s=[];for(l=0,o=function(e,t,n){if("e"==t&&s.push(e),"b"==t)if(!n)return;else s.push(e);--i||r(s)};l<a;l++)!function t(r,n,o,l){var i,a,s,d=document,c=o.async,u=(o.numRetries||0)+1,m=o.before||e,f=r.replace(/[\?|#].*$/,""),p=r.replace(/^(css|img|module|nomodule)!/,"");if(l=l||0,/(^css!|\.css$)/.test(f))(s=d.createElement("link")).rel="stylesheet",s.href=p,(i="hideFocus"in s)&&s.relList&&(i=0,s.rel="preload",s.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(f))(s=d.createElement("img")).src=p;else if((s=d.createElement("script")).src=p,s.async=void 0===c||c,a="noModule"in s,/^module!/.test(f)){if(!a)return n(r,"l");s.type="module"}else if(/^nomodule!/.test(f)&&a)return n(r,"l");s.onload=s.onerror=s.onbeforeload=function(e){var a=e.type[0];if(i)try{s.sheet.cssText.length||(a="e")}catch(e){18!=e.code&&(a="e")}if("e"==a){if((l+=1)<u)return t(r,n,o,l)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";n(r,a,e.defaultPrevented)},!1!==m(r,s)&&d.head.appendChild(s)}(t[l],o,n)}(r,function(e){l(s,e),t&&l({success:t,error:n},e),o(a,e)},s)}if(s.returnPromise)return new Promise(d);d()}return i.ready=function(e,t){return!function(e,t){e=e.push?e:[e];var o,l,i,a=[],s=e.length,d=s;for(o=function(e,r){r.length&&a.push(e),--d||t(a)};s--;){if(i=r[l=e[s]]){o(l,i);continue}(n[l]=n[l]||[]).push(o)}}(e,function(e){l(t,e)}),i},i.done=function(e){o(e,[])},i.reset=function(){t={},r={},n={}},i.isDefined=function(e){return e in t},i})},88143,(e,t,r)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:r,blurHeight:n,blurDataURL:o,objectFit:l}){let i=r?40*r:e,a=n?40*n:t,s=i&&a?`viewBox='0 0 ${i} ${a}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${s}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${s?"none":"contain"===l?"xMidYMid":"cover"===l?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${o}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},87690,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return l},imageConfigDefault:function(){return i}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let l=["default","imgix","cloudinary","akamai","custom"],i={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},8927,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return s}}),e.r(33525);let n=e.r(88143),o=e.r(87690),l=["-moz-initial","fill","none","scale-down",void 0];function i(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s({src:e,sizes:t,unoptimized:r=!1,priority:s=!1,preload:d=!1,loading:c,className:u,quality:m,width:f,height:p,fill:h=!1,style:b,overrideSrc:g,onLoad:x,onLoadingComplete:y,placeholder:v="empty",blurDataURL:$,fetchPriority:w,decoding:k="async",layout:C,objectFit:j,objectPosition:N,lazyBoundary:S,lazyRoot:P,...I},E){var T;let L,R,M,{imgConf:A,showAltText:_,blurComplete:O,defaultLoader:z}=E,F=A||o.imageConfigDefault;if("allSizes"in F)L=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t),r=F.qualities?.sort((e,t)=>e-t);L={...F,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===z)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let D=I.loader||z;delete I.loader,delete I.srcSet;let B="__next_img_default"in D;if(B){if("custom"===L.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=D;D=t=>{let{config:r,...n}=t;return e(n)}}if(C){"fill"===C&&(h=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];e&&(b={...b,...e});let r={responsive:"100vw",fill:"100vw"}[C];r&&!t&&(t=r)}let U="",H=a(f),W=a(p);if((T=e)&&"object"==typeof T&&(i(T)||void 0!==T.src)){let t=i(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(R=t.blurWidth,M=t.blurHeight,$=$||t.blurDataURL,U=t.src,!h)if(H||W){if(H&&!W){let e=H/t.width;W=Math.round(t.height*e)}else if(!H&&W){let e=W/t.height;H=Math.round(t.width*e)}}else H=t.width,W=t.height}let G=!s&&!d&&("lazy"===c||void 0===c);(!(e="string"==typeof e?e:U)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,G=!1),L.unoptimized&&(r=!0),B&&!L.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let q=a(m),V=Object.assign(h?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:j,objectPosition:N}:{},_?{}:{color:"transparent"},b),K=O||"empty"===v?null:"blur"===v?`url("data:image/svg+xml;charset=utf-8,${(0,n.getImageBlurSvg)({widthInt:H,heightInt:W,blurWidth:R,blurHeight:M,blurDataURL:$||"",objectFit:V.objectFit})}")`:`url("${v}")`,Y=l.includes(V.objectFit)?"fill"===V.objectFit?"100% 100%":"cover":V.objectFit,Z=K?{backgroundSize:Y,backgroundPosition:V.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},X=function({config:e,src:t,unoptimized:r,width:n,quality:o,sizes:l,loader:i}){if(r)return{src:t,srcSet:void 0,sizes:void 0};let{widths:a,kind:s}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,o=[];for(let e;e=r.exec(n);)o.push(parseInt(e[2]));if(o.length){let r=.01*Math.min(...o);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,n,l),d=a.length-1;return{sizes:l||"w"!==s?l:"100vw",srcSet:a.map((r,n)=>`${i({config:e,src:t,quality:o,width:r})} ${"w"===s?r:n+1}${s}`).join(", "),src:i({config:e,src:t,quality:o,width:a[d]})}}({config:L,src:e,unoptimized:r,width:H,quality:q,sizes:t,loader:D}),J=G?"lazy":c;return{props:{...I,loading:J,fetchPriority:w,width:H,height:W,decoding:k,className:u,style:{...V,...Z},sizes:X.sizes,srcSet:X.srcSet,src:g||X.src},meta:{unoptimized:r,preload:d||s,placeholder:v,fill:h}}}},98879,(e,t,r)=>{"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}});let n=e.r(71645),o="undefined"==typeof window,l=o?()=>{}:n.useLayoutEffect,i=o?()=>{}:n.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return o&&(t?.mountedInstances?.add(e.children),a()),l(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),l(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),i(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},25633,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return h},defaultHead:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let l=e.r(55682),i=e.r(90809),a=e.r(43476),s=i._(e.r(71645)),d=l._(e.r(98879)),c=e.r(42732);function u(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function m(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===s.default.Fragment?e.concat(s.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(33525);let f=["name","httpEquiv","charSet","itemProp"];function p(e){let t,r,n,o;return e.reduce(m,[]).reverse().concat(u().reverse()).filter((t=new Set,r=new Set,n=new Set,o={},e=>{let l=!0,i=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){i=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?l=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?l=!1:r.add(e.type);break;case"meta":for(let t=0,r=f.length;t<r;t++){let r=f[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?l=!1:n.add(r);else{let t=e.props[r],n=o[r]||new Set;("name"!==r||!i)&&n.has(t)?l=!1:(n.add(t),o[r]=n)}}}return l})).reverse().map((e,t)=>{let r=e.key||t;return s.default.cloneElement(e,{key:r})})}let h=function({children:e}){let t=(0,s.useContext)(c.HeadManagerContext);return(0,a.jsx)(d.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18556,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return l}});let n=e.r(55682)._(e.r(71645)),o=e.r(87690),l=n.default.createContext(o.imageConfigDefault)},65856,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(55682)._(e.r(71645)).default.createContext(null)},70965,(e,t,r)=>{"use strict";function n(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,0):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return n}})},1948,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return l}});let n=e.r(70965);function o({config:e,src:t,width:r,quality:o}){if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,n.findClosestQuality)(o,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${l}${t.startsWith("/_next/static/media/")&&1?"&dpl=dpl_GJDiSzAh8L2Ez2p3uGX2SgLSo8X7":""}`}o.__next_img_default=!0;let l=o},5500,(e,t,r)=>{"use strict";
3Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return v}});let n=e.r(55682),o=e.r(90809),l=e.r(43476),i=o._(e.r(71645)),a=n._(e.r(74080)),s=n._(e.r(25633)),d=e.r(8927),c=e.r(87690),u=e.r(18556);e.r(33525);let m=e.r(65856),f=n._(e.r(1948)),p=e.r(18581),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function b(e,t,r,n,o,l,i){let a=e?.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function g(e){return i.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let x=(0,i.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:o,decoding:a,className:s,style:d,fetchPriority:c,placeholder:u,loading:m,unoptimized:f,fill:h,onLoadRef:x,onLoadingCompleteRef:y,setBlurComplete:v,setShowAltText:$,sizesInput:w,onLoad:k,onError:C,...j},N)=>{let S=(0,i.useCallback)(e=>{e&&(C&&(e.src=e.src),e.complete&&b(e,u,x,y,v,f,w))},[e,u,x,y,v,C,f,w]),P=(0,p.useMergedRef)(N,S);return(0,l.jsx)("img",{...j,...g(c),loading:m,width:o,height:n,decoding:a,"data-nimg":h?"fill":"1",className:s,style:d,sizes:r,srcSet:t,src:e,ref:P,onLoad:e=>{b(e.currentTarget,u,x,y,v,f,w)},onError:e=>{$(!0),"empty"!==u&&v(!0),C&&C(e)}})});function y({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...g(t.fetchPriority)};return e&&a.default.preload?(a.default.preload(t.src,r),null):(0,l.jsx)(s.default,{children:(0,l.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let v=(0,i.forwardRef)((e,t)=>{let r=(0,i.useContext)(m.RouterContext),n=(0,i.useContext)(u.ImageConfigContext),o=(0,i.useMemo)(()=>{let e=h||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),o=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:o,localPatterns:"undefined"==typeof window?n?.localPatterns:e.localPatterns}},[n]),{onLoad:a,onLoadingComplete:s}=e,p=(0,i.useRef)(a);(0,i.useEffect)(()=>{p.current=a},[a]);let b=(0,i.useRef)(s);(0,i.useEffect)(()=>{b.current=s},[s]);let[g,v]=(0,i.useState)(!1),[$,w]=(0,i.useState)(!1),{props:k,meta:C}=(0,d.getImgProps)(e,{defaultLoader:f.default,imgConf:o,blurComplete:g,showAltText:$});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(x,{...k,unoptimized:C.unoptimized,placeholder:C.placeholder,fill:C.fill,onLoadRef:p,onLoadingCompleteRef:b,setBlurComplete:v,setShowAltText:w,sizesInput:e.sizes,ref:t}),C.preload?(0,l.jsx)(y,{isAppRouter:!r,imgAttributes:k}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},94909,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return c},getImageProps:function(){return d}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let l=e.r(55682),i=e.r(8927),a=e.r(5500),s=l._(e.r(1948));function d(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=a.Image},57688,(e,t,r)=>{t.exports=e.r(94909)},2963,14191,25112,88374,60748,74385,75080,71446,37608,44902,61926,82087,90221,25721,15057,80464,7670,19056,73925,93617,9516,21757,62844,5386,43041,63846,86360,43723,31338,7881,1391,74798,7762,11421,73390,37946,75283,86783,57852,7166,9227,81722,30656,30700,64572,e=>{"use strict";function t(e){return!Number.isFinite(e)||e<1?1:e>500?500:Math.round(e)}function r(e){return[t(e?.[0]??5),t(e?.[1]??15),t(e?.[2]??25)]}function n(e){if(!e?.startsAt)return null;let t=new Date(e.startsAt).getTime();return Number.isFinite(t)?t:null}function o(e,t){let r=n(e);return null!==r&&r>=t}function l(e){return e.map((e,t)=>({ref:e,index:t,startMs:n(e.event)})).sort((e,t)=>
3null===e.startMs&&null===t.startMs?e.index-t.index:null===e.startMs?1:null===t.startMs?-1:e.startMs-t.startMs||e.index-t.index).map(({ref:e})=>e)}function i(e,t,r){try{return new Intl.DateTimeFormat("en-US",{...r,timeZone:t&&t.trim()?t:"UTC"}).format(e)}catch{return new Intl.DateTimeFormat("en-US",{...r,timeZone:"UTC"}).format(e)}}function a(e){let t=n(e);if(null===t)return{month:"—",day:"—"};let r=new Date(t);return{month:i(r,e?.timeZone,{month:"short"}).toUpperCase(),day:i(r,e?.timeZone,{day:"numeric"})}}function s(e,t){let r=e?.trim()??"",n=t?.venue?.name?.trim()??"";return{heading:r||n||"No title",locality:t?.venue?.address?.trim()||null}}e.s(["TIP_AMOUNT_MAX_CENTS",0,5e4,"TIP_AMOUNT_MAX_DOLLARS",0,500,"TIP_AMOUNT_MIN_CENTS",0,100,"TIP_AMOUNT_MIN_DOLLARS",0,1,"resolveTipPresetAmounts",()=>r],14191),e.s(["formatLinkEventDateStack",()=>a,"isLinkEventUpcoming",()=>o,"linkEventRowLines",()=>s,"sortLinkEventRefs",()=>l],25112);let d=new Set(["poppins","inter","roboto","lato","nunito","montserrat","raleway","lexend","cabin","lora","merriweather","domine","ledger","space-grotesk","quantico","ibm-plex-mono","inconsolata","comic-sans"]),c=["links","shop"];function u(e){var t;let r=e.tabs,n=r?.links??!0,o=r?.shop??!1,l=n||o?{links:n,shop:o}:{links:!0,shop:!1},i=function(e){for(let t of c)if(e[t])return t;return"links"}(l),a=r?.default&&"string"==typeof(t=r.default)&&c.includes(t)&&l[r.default]?r.default:i;return{...l,default:a}}function m(e){return!!e?.amazonProductId&&!1!==e.catalogManaged}let f=["aisles","covers","looks","tiles","window","grid","editorial","list"];function p(e){var t;return"string"==typeof(t=e?.shopLayout)&&f.includes(t)?e.shopLayout:"aisles"}function h(e){var t;if("pills"===(t=e?.collectionTabs)||"underline"===t||"none"===t)return e.collectionTabs;let r=p(e);return"looks"===r||"tiles"===r?"underline":"pills"}function b(e){var t;return"grid"===(t=e?.collectionView)||"list"===t?e.collectionView:"grid"}function g(e){var t;return 1===(t=e?.titleLines)||2===t?e.titleLines:2}let x="title";function y(e){var t;return"uppercase"===(t=e?.collectionTitleCase)||"lowercase"===t||"title"===t?e.collectionTitleCase:x}function v(e,t=x){let r=e.trim()||"Untitled";return"lowercase"===t?r.toLowerCase():"title"===t?r.toLowerCase().replace(/(^|[^\p{L}\p{N}'’])([\p{L}\p{N}])/gu,(e,t,r)=>t+r.toUpperCase()):r.toUpperCase()}function $(e){var t;return"add-to-cart"===(t=e?.buttonStyle)||"icon"===t||"none"===t?e.buttonStyle:"none"}function w(e){var t;return e?"socials"===(t=e.connectedAccountBadge)||"followers"===t?e.connectedAccountBadge:"none":"none"}function k(e,t){let r=t.replace(/^@/,"").trim();return r&&"platform-3"!==e&&"snapchat"!==e?({instagram:`https://instagram.com/${r}`,tiktok:`https://tiktok.com/@${r}`,youtube:`https://youtube.com/@${r}`,x:`https://x.com/${r}`,linkedin:`https://www.linkedin.com/in/${r}`,threads:`https://www.threads.net/@${r}`,bluesky:`https://bsky.app/profile/${r}`,pinterest:`https://www.pinterest.com/${r}`,facebook:`https://www.facebook.com/${r}`,kick:`https://kick.com/${r}`,twitch:`https://www.twitch.tv/${r}`})[e]:null}function C(e){if(void 0!==e.count)return`${N(e.count)} ${e.countLabel??"Followers"}`;let t=e.username.replace(/^@/,"").trim();return t?`@${t}`:e.name}function j(e,t="followers"){return"socials"===t?"Follow my socials":e.total>0?`${N(e.total)} Total Followers`:"Total Followers"}function N(e){if(!Number.isFinite(e)||e<0)return"0";if(e>=1e6){let t=e/1e6;return`${t>=10?t.toFixed(0):t.toFixed(1).replace(/\.0$/,"")}M`}if(e>=1e3){let t=e/1e3;return`${t>=10?t.toFixed(0):t.toFixed(1).replace(/\.0$/,"")}K`}return Math.round(e).toLocaleString()}e.s(["formatConnectedAccountBadgeAccountSubline",()=>C,"formatConnectedAccountBadgeTitle",()=>j,"getConnectedAccountProfileUrl",()=>k,"resolveConnectedAccountBadge",()=>w],88374),e.s([],60748);let S="#f5f5f5",P="circle",I="#000000",E="#f5f5f5",T="top",L="#000000",R="none",M="#e5e7eb",A="sm",_="#e5e7eb",O="sm",z="#ffffff",F="md",D="#000000",B={displayType:"circle",borderColor:null};function U(e,t){return!!e&&Object.prototype.hasOwnProperty.call(e,t)}function H(e){if("string"!=typeof e||""!==e.trim())return e}function W(e){if("top"===e||"bottom"===e)return e}let G={textColor:L??"#000000",backgroundColor:z??"#ffffff",borderColor:_??"#e5e7eb",borderSize:O??"n
3one",borderRadius:F??"md",paddingSize:R??"none",accentColor:M??"#e5e7eb",accentSize:A??"none",buttonColor:D??"#000000"},q={shape:P??"circle",color:I??"#000000",backgroundColor:E??"#000000",position:T??"top"},V={displayType:B?.displayType??"circle",borderColor:B?.borderColor??null,h:B?.h??null},K={backgroundColor:"#ffffff",desktopBackgroundColor:S??"#f5f5f5",profileTextColor:"#000000",titleTextColor:"#000000",pageFont:"poppins",customStyles:null,backgroundMedia:null,desktopBackgroundMedia:null,blockConfig:{...G},iconConfig:{...q},profileMediaConfig:{...V}},Y=180,Z=350,X="/dashboard-assets/placeholders/user.svg";function J(e){return"circle"===e||"square"===e||"portrait"===e||"largeContent"===e||"fullScreen"===e?e:"circle"}function Q(e){return e&&"transparent"!==e?e:null}function ee(e,t){return!!e&&Object.prototype.hasOwnProperty.call(e,t)}function et(e,t){let r=e?.profileMediaConfig,n=ee(r,"borderColor"),o=ee(r,"h"),l=J(r?.displayType??t?.profileMediaConfig.displayType),i="portrait"===l?Y:Z,a=e?.nameConfig?.imageHeight;return{profileTextColor:e?.profileTextColor??t?.profileTextColor??"#111827",profileDisplayType:l,profileImageHeight:o?"number"==typeof r?.h?r.h:i:t?.profileMediaConfig.h??i,profileBorderColor:n?Q(r?.borderColor):Q(t?.profileMediaConfig.borderColor),nameFontSize:e?.nameConfig?.fontSize??22,nameAlignment:e?.nameConfig?.alignment??"center",nameImageHeight:"sm"===a||"md"===a||"lg"===a?a:"md",bioFontSize:e?.bioConfig?.fontSize??14,bioAlignment:e?.bioConfig?.alignment??"center"}}e.s(["DEFAULT_PROFILE_PLACEHOLDER",0,X,"normalizeProfileBorderColor",()=>Q,"normalizeProfileDisplayType",()=>J,"resolveProfilePresentation",()=>et],74385),e.s([],75080);let er={platform:"youtube",variants:["youtube-video","youtube-channel","youtube-short"],defaultLayout:"embed-youtube-video",variantDefaults:{"youtube-short":"embed-youtube-short-lg"},layouts:[{layout:"embed-youtube-video",width:2,height:254,label:"Large"},{layout:"embed-youtube-video-carousel",width:2,height:214,label:"Carousel"},{layout:"embed-youtube-short-sm",width:1,height:392,label:"Small"},{layout:"embed-youtube-short-lg",width:2,height:800,label:"Large"},{layout:"embed-youtube-short-carousel",width:1,height:324,label:"Carousel"}]},en={platform:"tiktok",variants:["tiktok-video","tiktok-profile"],defaultLayout:"embed-tiktok-lg",variantDefaults:{"tiktok-video":"embed-tiktok-lg","tiktok-profile":"embed-tiktok-profile"},layouts:[{layout:"embed-tiktok-sm",width:1,height:392,label:"Small"},{layout:"embed-tiktok-lg",width:2,height:800,label:"Large"},{layout:"embed-tiktok-profile",width:2,height:476,label:"Profile"},{layout:"embed-tiktok-carousel",width:1,height:324,label:"Carousel"}]},eo={platform:"spotify",variants:["spotify-track","spotify-album","spotify-artist","spotify-playlist","spotify-show","spotify-episode"],defaultLayout:"embed-spotify-md",variantDefaults:{"spotify-track":"embed-spotify-streaming-links-lg","spotify-album":"embed-spotify-streaming-links-lg","spotify-artist":"embed-spotify-streaming-links-lg"},layouts:[{layout:"embed-spotify-sm",width:2,height:80,label:"Small"},{layout:"embed-spotify-md",width:2,height:152,label:"Medium"},{layout:"embed-spotify-lg",width:2,height:352,label:"Large"},{layout:"embed-spotify-streaming-links-lg",width:2,height:340,label:"Streaming"}]},el={platform:"instagram",variants:["instagram-post","instagram-reel","instagram-carousel","instagram-profile"],defaultLayout:"embed-instagram",layouts:[{layout:"embed-instagram",width:2,height:400,label:"Standard"}]},ei={platform:"vimeo",variants:["vimeo-video","vimeo-showcase","vimeo-event"],defaultLayout:"embed-vimeo",layouts:[{layout:"embed-vimeo",width:2,height:252,label:"Large"}]},ea={platform:"twitch",variants:["twitch-live","twitch-video","twitch-clip"],defaultLayout:"embed-twitch",layouts:[{layout:"embed-twitch",width:2,height:280,label:"Standard"}]},es={platform:"applemusic",variants:["applemusic-track","applemusic-album","applemusic-song","applemusic-playlist","applemusic-artist","applemusic-station","applemusic-podcast","applemusic-podcast-episode"],defaultLayout:"embed-applemusic-sm",variantDefaults:{"a
3pplemusic-album":"embed-applemusic-lg","applemusic-playlist":"embed-applemusic-lg","applemusic-podcast":"embed-applemusic-lg","applemusic-artist":"embed-applemusic-xs"},layouts:[{layout:"embed-applemusic-xs",width:2,height:120,label:"Compact"},{layout:"embed-applemusic-sm",width:2,height:175,label:"Small"},{layout:"embed-applemusic-lg",width:2,height:450,label:"Large"}]},ed={platform:"x",variants:["x-post"],defaultLayout:"embed-x",layouts:[{layout:"embed-x",width:2,height:400,label:"Standard"}]},ec={platform:"threads",variants:["threads-post"],defaultLayout:"embed-threads",layouts:[{layout:"embed-threads",width:2,height:400,label:"Standard"}]},eu={platform:"shopmy",variants:["shopmy-collection"],defaultLayout:"embed-shopmy",layouts:[{layout:"embed-shopmy",width:2,height:410,label:"Standard"}]},em={platform:"gofundme",variants:["gofundme"],defaultLayout:"embed-gofundme-md",layouts:[{layout:"embed-gofundme-md",width:2,height:200,label:"Medium"},{layout:"embed-gofundme-lg",width:2,height:500,label:"Large"}]},ef={platform:"laylo",variants:["laylo-profile","laylo-drop"],defaultLayout:"embed-laylo",layouts:[{layout:"embed-laylo",width:2,height:200,label:"Standard"}]},ep={platform:"matterport",variants:["matterport"],defaultLayout:"embed-matterport",layouts:[{layout:"embed-matterport",width:2,height:280,label:"Standard"}]},eh={platform:"ticketmaster",variants:["ticketmaster-event","ticketmaster-artist","ticketmaster-venue"],defaultLayout:"embed-ticketmaster",layouts:[{layout:"embed-ticketmaster",width:2,height:340,label:"Standard"}]},eb={platform:"bandsintown",variants:["bandsintown"],defaultLayout:"embed-bandsintown",layouts:[{layout:"embed-bandsintown",width:2,height:300,label:"Standard"}]},eg={platform:"soundcloud",variants:["soundcloud"],defaultLayout:"embed-soundcloud",layouts:[{layout:"embed-soundcloud",width:2,height:166,label:"Standard"}]},ex={platform:"loom",variants:["loom"],defaultLayout:"embed-loom",layouts:[{layout:"embed-loom",width:2,height:280,label:"Standard"}]},ey={platform:"iheart",variants:["iheart-live","iheart-artist","iheart-podcast","iheart-episode","iheart-playlist"],defaultLayout:"embed-iheart-md",layouts:[{layout:"embed-iheart-sm",width:2,height:150,label:"Compact"},{layout:"embed-iheart-md",width:2,height:150,label:"Standard"},{layout:"embed-iheart-lg",width:2,height:150,label:"Large"}]},ev=[er,en,eo,el,ei,ea,es,ed,ec,eu,em,ef,ep,eh,eb,eg,ex,ey,{platform:"substack",variants:["substack-post","substack-note","substack-signup","substack-latest"],defaultLayout:"embed-substack-post",variantDefaults:{"substack-note":"embed-substack-note","substack-signup":"embed-substack-signup","substack-latest":"embed-substack-latest"},layouts:[{layout:"embed-substack-post",width:2,height:554,label:"Post"},{layout:"embed-substack-note",width:2,height:543,label:"Note"},{layout:"embed-substack-signup",width:2,height:320,label:"Signup"},{layout:"embed-substack-latest",width:2,height:420,label:"Latest Post"}]}],e$="card-fill-md",ew=[{layout:"card-fill-md",width:2,height:120,label:"Wide",shortLabel:"Wide",imageLayout:"fill"},{layout:"card-fill-md",width:1,height:120,label:"Small",shortLabel:"Small",imageLayout:"fill"},{layout:"card-fill-xl",width:1,height:256,label:"Portrait",shortLabel:"Portrait",imageLayout:"fill"},{layout:"card-fill-xl",width:2,height:256,label:"Feature",shortLabel:"Feature",imageLayout:"fill"},{layout:"card-left-md",width:2,height:120,label:"Split Wide",shortLabel:"Split Wide",imageLayout:"left"},{layout:"card-top-xl",width:1,height:256,label:"Split Portrait",shortLabel:"Split Portrait",imageLayout:"top"},{layout:"card-top-xl",width:2,height:256,label:"Split Feature",shortLabel:"Split Feature",imageLayout:"top"},{layout:"card-text-xs",width:2,height:60,label:"Text",shortLabel:"Text",imageLayout:"text"}],ek=[...new Set(ew.map(e=>e.layout))],eC="carousel-card",ej=[{layout:"carousel-left",width:2,height:120,label:"Split Wide",imageLayout:"left",singleLinkEquivalent:"card-left-md"},{layout:"carousel-top",width:2,height:240,label:"Split Portrait",imageLayout:"top",singleLinkEquivalent:"card-top-xl"},{layout:"carousel-card",width:2,height:210,label:"Featured",imageLayout:"fill",singleLinkEquivalent:"card-fill-md"},{layout:"carousel-text",width:2,height:60,label:"Text",imageLayout:"text",singleLinkEquivalent:"card-text-xs"}],eN=ej.map(e=>e.layout),eS=[{layout:"events",width:2,height:300,label:"Events"}],eP=eS.map(e=>e.layout);function eI(e){return Math.round(1.25*e)}let eE={defaultLayout:"title",layouts:[{layout:"title",height:eI(18),fontSize:18,label:"Title"}]},eT=eE.layouts.map(e=>e.layout),eL=[{layout:"tips-md",height:116,blockType:"tips"},{layout:"form-tile",height:116,blockType:"form"},{layout:"form-inline",height:400,blockType:"form"}],eR=eL.map(e=>e.layout);e.s([],25150);let eM={textAlignment:"top",textPaddingY:8,textPaddingX:12,titleBlockMinHeight:42,titleBlockInternalAlignment:"top",
3imageHeightRatio:.58,imageWidthRatio:null,buttonGapAbovePx:4,buttonBottomInsetPx:12,priceGapAbovePx:0,titleLineClamp:{withButtonAndPrice:1,withButton:2,withPrice:3,titleOnly:4}},eA={...eM},e_={textAlignment:"center",textPaddingY:8,textPaddingX:16,titleBlockMinHeight:null,titleBlockInternalAlignment:"center",imageHeightRatio:null,imageWidthRatio:1/3,buttonBottomInsetPx:null,buttonGapAbovePx:9,priceGapAbovePx:0,titleLineClamp:{withButtonAndPrice:1,withButton:2,withPrice:3,titleOnly:4}},eO={...eM},ez={"card-top-xl/1":eM,"card-top-xl/2":eA,"card-left-md/2":e_,"carousel-left/2":e_};function eF(e){if(!e)return eO;let t=e.style?.blockLayout,r=e.position?.w;return t&&r?ez[`${t}/${r}`]??eO:eO}e.s(["getCardStylePolicy",()=>eF],67601);let eD={...Object.fromEntries(ev.flatMap(e=>e.layouts.map(e=>[e.layout,e.height]))),...Object.fromEntries(ew.map(e=>[e.layout,e.height])),...Object.fromEntries(ej.map(e=>[e.layout,e.height])),...Object.fromEntries(eS.map(e=>[e.layout,e.height])),...Object.fromEntries(eE.layouts.map(e=>[e.layout,e.height])),...Object.fromEntries(eL.map(e=>[e.layout,e.height])),"connected-account-tiktok-profile-md":110,"connected-account-tiktok-content-carousel-md":324,"connected-account-platform-3-profile-md":110,"connected-account-platform-3-content-grid-md":312,"connected-account-youtube-profile-md":110,"connected-account-youtube-videos-carousel-md":200,"connected-account-youtube-shorts-carousel-md":324,"connected-account-instagram-profile-md":110,"connected-account-instagram-content-grid-md":312,"connected-account-x-profile-md":110,"connected-account-linkedin-profile-md":110,"connected-account-twitch-profile-md":110,"connected-account-kick-profile-md":110,"connected-account-snapchat-profile-md":110,"connected-account-pinterest-profile-md":110,"connected-account-threads-profile-md":110,"connected-account-facebook-profile-md":110,"connected-account-bluesky-profile-md":110},eB=new Set(ev.flatMap(e=>e.layouts.map(e=>e.layout))),eU=new Set(ek),eH=new Set(eN),eW=new Set(eP),eG=new Set(eT),eq=new Set(eR),eV=new Set(["connected-account-tiktok-profile-md","connected-account-tiktok-content-carousel-md","connected-account-platform-3-profile-md","connected-account-platform-3-content-grid-md","connected-account-youtube-profile-md","connected-account-youtube-videos-carousel-md","connected-account-youtube-shorts-carousel-md","connected-account-instagram-profile-md","connected-account-instagram-content-grid-md","connected-account-x-profile-md","connected-account-linkedin-profile-md","connected-account-twitch-profile-md","connected-account-kick-profile-md","connected-account-snapchat-profile-md","connected-account-pinterest-profile-md","connected-account-threads-profile-md","connected-account-facebook-profile-md","connected-account-bluesky-profile-md"]),eK=[...eN,...eP,...eR,...eB,"connected-account-tiktok-profile-md","connected-account-tiktok-content-carousel-md","connected-account-platform-3-profile-md","connected-account-platform-3-content-grid-md","connected-account-youtube-profile-md","connected-account-youtube-videos-carousel-md","connected-account-youtube-shorts-carousel-md","connected-account-instagram-profile-md","connected-account-instagram-content-grid-md","connected-account-x-profile-md","connected-account-linkedin-profile-md","connected-account-twitch-profile-md","connected-account-kick-profile-md","connected-account-snapchat-profile-md","connected-account-pinterest-profile-md","connected-account-threads-profile-md","connected-account-facebook-profile-md","connected-account-bluesky-profile-md"],eY=[...ek,...eT,...eK],eZ=new Map(ev.flatMap(e=>e.variants.map(t=>[t,e]))),eX=new Map(ev.flatMap(e=>e.variants.map(t=>[t,e.variantDefaults?.[t]??e.defaultLayout]))),eJ=new Map(ej.map(e=>[e.layout,e.singleLinkEquivalent])),eQ=new Map(ej.map(e=>[e.singleLinkEquivalent,e.layout])),e0=new Map(ew.map(e=>[e.layout,e.imageLayout])),e1=new Map(ej.map(e=>[e.layout,e.imageLayout])),e2=new Map(ej.map(e=>[e.imageLayout,e.layout]));function e3(e){return e?e1.get(e)??"fill":"fill"}function e4(e){return e2.get(e)??"carousel-card"}function e5(e){return!!e&&er.variants.includes(e)}function e8(e){return!!e&&en.variants.includes(e)}function e9(e){return!!e&&eo.variants.includes(e)}let e6="embed-spotify-streaming-links-lg";function e7(e){return e===e6}
3function te(e){return!!e?.streamingLinksId}function tt(e,t){return void 0===t?e:e7(e)&&!te(t)?eo.defaultLayout:e}function tr(e){return!!e&&el.variants.includes(e)}function tn(e){return!!e&&ei.variants.includes(e)}function to(e){return!!e&&ea.variants.includes(e)}function tl(e){return!!e&&es.variants.includes(e)}function ti(e){return!!e&&ed.variants.includes(e)}function ta(e){return!!e&&ec.variants.includes(e)}function ts(e){return!!e&&eu.variants.includes(e)}function td(e){return!!e&&em.variants.includes(e)}function tc(e){return!!e&&ef.variants.includes(e)}function tu(e){return!!e&&ep.variants.includes(e)}function tm(e){return!!e&&eh.variants.includes(e)}function tf(e){return!!e&&eb.variants.includes(e)}function tp(e){return!!e&&eg.variants.includes(e)}function th(e){return!!e&&ex.variants.includes(e)}function tb(e){return!!e&&ey.variants.includes(e)}let tg={"youtube-video":{layout:"embed-youtube-video",w:2},"youtube-short":{layout:"embed-youtube-short-lg",w:2},"youtube-channel":{layout:"embed-youtube-video",w:2},"tiktok-video":{layout:"embed-tiktok-lg",w:2},"tiktok-profile":{layout:"embed-tiktok-profile",w:2},"spotify-track":{layout:"embed-spotify-streaming-links-lg",w:2},"spotify-album":{layout:"embed-spotify-streaming-links-lg",w:2},"spotify-artist":{layout:"embed-spotify-streaming-links-lg",w:2},"spotify-show":{layout:"embed-spotify-md",w:2},"spotify-playlist":{layout:"embed-spotify-md",w:2},"spotify-episode":{layout:"embed-spotify-md",w:2},"instagram-post":{layout:"embed-instagram",w:2},"instagram-reel":{layout:"embed-instagram",w:2},"instagram-carousel":{layout:"embed-instagram",w:2},"instagram-profile":{layout:"embed-instagram",w:2},"vimeo-video":{layout:"embed-vimeo",w:2},"vimeo-showcase":{layout:"embed-vimeo",w:2},"vimeo-event":{layout:"embed-vimeo",w:2},"twitch-live":{layout:"embed-twitch",w:2},"twitch-video":{layout:"embed-twitch",w:2},"twitch-clip":{layout:"embed-twitch",w:2},"applemusic-track":{layout:"embed-applemusic-sm",w:2},"applemusic-song":{layout:"embed-applemusic-sm",w:2},"applemusic-album":{layout:"embed-applemusic-lg",w:2},"applemusic-playlist":{layout:"embed-applemusic-lg",w:2},"applemusic-artist":{layout:"embed-applemusic-xs",w:2},"applemusic-station":{layout:"embed-applemusic-sm",w:2},"applemusic-podcast":{layout:"embed-applemusic-lg",w:2},"applemusic-podcast-episode":{layout:"embed-applemusic-sm",w:2},"x-post":{layout:"embed-x",w:2},"threads-post":{layout:"embed-threads",w:2},"shopmy-collection":{layout:"embed-shopmy",w:2},gofundme:{layout:"embed-gofundme-md",w:2},"laylo-profile":{layout:"embed-laylo",w:2},"laylo-drop":{layout:"embed-laylo",w:2},matterport:{layout:"embed-matterport",w:2},"ticketmaster-event":{layout:"embed-ticketmaster",w:2},"ticketmaster-artist":{layout:"embed-ticketmaster",w:2},"ticketmaster-venue":{layout:"embed-ticketmaster",w:2},bandsintown:{layout:"embed-bandsintown",w:2},soundcloud:{layout:"embed-soundcloud",w:2},loom:{layout:"embed-loom",w:2},"iheart-live":{layout:"embed-iheart-md",w:2},"iheart-artist":{layout:"embed-iheart-md",w:2},"iheart-podcast":{layout:"embed-iheart-md",w:2},"iheart-episode":{layout:"embed-iheart-md",w:2},"iheart-playlist":{layout:"embed-iheart-md",w:2},"substack-post":{layout:"embed-substack-post",w:2},"substack-note":{layout:"embed-substack-note",w:2},"substack-signup":{layout:"embed-substack-signup",w:2},"substack-latest":{layout:"embed-substack-latest",w:2}};function tx(e,t){let r=tg[e];return r?{layout:tt(r.layout,t),w:r.w}:null}function ty(e,t){let r=eZ.get(e);if(!r)return[];let n=r.layouts.filter(e=>!e.layout.includes("carousel"));return void 0===t||te(t)?n:n.filter(e=>e.layout!==e6)}function tv(e){return 0===e.length?null:e.every(e=>e.embed?.variant==="youtube-short")?"youtube-short-carousel":e.every(e=>e.embed?.variant==="youtube-video"||e.embed?.variant==="youtube-channel")?"youtube-video-carousel":e.every(e=>e.embed?.variant==="tiktok-video")?"tiktok-carousel":null}function t$(e){return eD[e]??eD["card-fill-md"]??120}function tw(e){return"string"==typeof e&&eB.has(e)}function tk(e){return"string"==typeof e&&eH.has(e)}function tC(e){return"string"==typeof e&&eU.has(e)}function tj(e){return"string"==typeof e&&eW.has(e)}function tN(e){return"string"==typeof e&&eG.has(e)}function tS(e){return"string"==typeof e&&eq.has(e)}function tP(e){return"string"==typeof e&&eV.has(e)}function tI(e){return t$(tC(e)||tw(e)||tk(e)||tj(e)||tS(e)||tN(e)||tP(e)?e:"card-fill-md")}function tE(e){return eI(e.data?.font?.fontSize??18)}function tT(e){return e&&eU.has(e)?e:null}function tL(e){return"string"!=typeof e?null:tT(e)}function tR(e,t){return"fill"===e&&"md"===t?"card-fill-md":"fill"===e&&"xl"===t?"card-fill-xl":"left"===e&&"md"===t?"card-left-md":"top"===e&&"xl"===t?"card-top-xl":"text"===e&&"xs"===t?"card-text-xs":"card-fill-md"}function tM(e){return e0.get(e.blockLayout)??"fill"}function tA(e){let t=e.blockLayout;return tk(t)?e3(t):tw(t)?"fill":e0.get(t)??"fill"}function t_(e){return e?eQ.get(e)??eC:eC}function tO(e){return e?eJ.get(e)??e$:e$}function tz(e,t){return e?tt(eX.get(e)??"embed-youtube-video",t):"embed-youtube-video"}function tF(e){return"string"==typeof e&&eB.has(e)?eD[e]??eD["embed-youtube-video"]:eD["embed-youtube-video"]}e.s(["ALL_HEIGHT_PRESETS",0,eY,"CARD_LAYOUT_SET",0,eU,"CARD_LAYOUT_TO_IMAGE_LAYOUT",0,e0,"CAROUSEL_LAYOUT_SET",0,eH,"CAROUSEL_LAYOUT_TO_IMAGE_LAYOUT",0,e1,"CAROUSEL_TO_SINGLE",0,eJ,"CONNECTED_ACCOUNT_LAYOUT_SET",0,eV,"EMBED_CAROUSEL_PRESET_TO_LAYOUT",0,{"youtube-video-carousel":"embed-youtube-video-carousel","youtube-short-carousel":"embed-youtube-short-carousel","tiktok-carousel":"embed-tiktok-carousel"},"EMBED_LAYOUT_SET",0,eB,"EVENTS_LAYOUT_SET",0,eW,"FIXED_HEIGHT_PRESET_KEYS",0,eK,"LAYOUT_HEIGHTS",0,eD,"SINGLE_EMBED_VARIANT_CONFIG",0,tg,"SINGLE_TO_CAROUSEL",0,eQ,"SPECIAL_LAYOUT_SET",0,eq,"SPOTIFY_STREAMING_LINKS_LAYOUT",0,e6,"TITLE_LAYOUT_SET",0,eG,"VARIANT_TO_DEFAULT_LAYOUT",0,eX,"VARIANT_TO_EMBED_CONFIG",0,eZ,"coerceEmbedLayoutForStreamingLinks",()=>tt,"getCarouselImageLayout",()=>e3,"getCarouselLayoutForImageLayout",()=>e4,"getEmbedCarouselHeightPreset",()=>tv,"getEmbedSizeOptions",()=>ty,"isAppleMusicVariant",()=>tl,"isBandsInTownVariant",()=>tf,"isGoFundMeVariant",()=>td,"isIHeartVariant",()=>tb,"isInstagramVariant",()=>tr,"isLayloVariant",()=>tc,"isLoomVariant",()=>th,"isMatterportVariant",()=>tu,"isShopMyVariant",()=>ts,"isSoundCloudVariant",()=>tp,"isSpotifyStreamingLinksLayout",()=>e7,"isSpotifyVariant",()=>e9,"isThreadsVariant",()=>ta,"isTicketmasterVariant",()=>tm,"isTikTokVariant",()=>e8,"isTwitchVariant",()=>to,"isVimeoVariant",()=>tn,"isXVariant",()=>ti,"isYouTubeVariant",()=>
3e5,"linkHasSpotifyStreamingLinks",()=>te,"resolveSingleEmbedVariantConfig",()=>tx],97471);let tD={"embed-youtube-video":16/9,"embed-vimeo":16/9,"embed-youtube-short-sm":9/16,"embed-youtube-short-lg":9/16,"embed-tiktok-sm":9/16,"embed-tiktok-lg":9/16};function tB(e){return"string"!=typeof e?null:tD[e]??null}let tU={width:480,zoom:1.125},tH="v3-page-canvas-hybrid",tW={"card-fill-md":1,"card-left-md":1,"card-fill-xl":2,"card-top-xl":2};function tG(e){return"string"!=typeof e?null:tW[e]??null}function tq(e,t){if("string"!=typeof e||!(t>0))return null;let r=tW[e];return void 0!==r?r*Math.round(t/1.8)+(r-1)*16:null}function tV(e){return tq(e,216)}let tK={fill:380,top:182,left:380,text:380},tY=new Set(["carousel-text"]);function tZ(e,t){let r=tK[e]??tK.fill;return t>0?Math.round(t/448*r):r}function tX(e,t){if("string"!=typeof e||!(t>0)||!tk(e)&&!rb(e))return null;let r=t$(e);return tY.has(e)?r:Math.round(t/448*r)}function tJ(e){return tX(e,448)}function tQ(e,t){return 2===t?(e-16)/2:e}function t0(e,t,r=2){let n=tq(e,tQ(t,r));if(null!==n)return n;let o=tX(e,t);if(null!==o)return o;let l=tB(e);return null!==l&&t>0?Math.round(t/l):tI(e)}let t1="100cqw",t2=`calc((${t1} - 16px) / 2)`;function t3(e,t=2){if("string"!=typeof e)return null;let r=2===t?t1:t2,n=tW[e];if(void 0!==n){let e=`round(calc(${t2} / 1.8), 1px)`;return 1===n?e:`calc(${n} * ${e} + ${(n-1)*16}px)`}if(tk(e)||rb(e)){let t=t$(e);return tY.has(e)?`${t}px`:`round(calc(${t} * ${r} / 448), 1px)`}let o=tB(e);return null!==o?`round(calc(${r} / ${o}), 1px)`:null}function t4(e){return t5(tK[e]??tK.fill)}function t5(e){return`round(calc(${e} * ${t1} / 448), 1px)`}function t8(e,t){let r=rg[e],n=t?2*rp:0,o=`calc(${t5(r.width)} + ${n}px)`;return{widthCss:`min(${o}, ${t1}
3)`,heightCss:`calc(${t5(r.height)} + ${n}px)`}}let t9=new Set(["embed-threads","embed-x","embed-tiktok-profile","embed-bandsintown","embed-instagram","embed-instagram-post","embed-instagram-reel","embed-instagram-carousel","embed-instagram-profile","embed-gofundme-md","embed-gofundme-lg","embed-laylo","embed-substack-post","embed-substack-note","embed-substack-latest"]);function t6(e){return"string"==typeof e&&t9.has(e)}let t7={none:0,md:16,full:28},re="border-radius 300ms ease-in-out";function rt(e){let t=Math.max(0,e.frameTop),r=t+e.scrolled;return r<=0?0:Math.round(e.maxRadius*Math.min(1,t/r))}let rr={none:0,md:32,full:48};function rn(e){return rr[e]??rr.md}let ro=new Set(["link","tips","form","connected-account"]);function rl(e,t){return ro.has(e.type)&&e.style?.borderRadius!==void 0?e.style.borderRadius:t}function ri(e,t="md"){let r=rn(t);if(0===e.length)return{bottomLeftPx:r,bottomRightPx:r};let n=Math.max(...e.map(e=>e.position.row)),o=e.filter(e=>e.position.row===n),l=o.find(e=>2===e.position.w);if(l){let e=rn(rl(l,t));return{bottomLeftPx:e,bottomRightPx:e}}let i=o.find(e=>0===e.position.column),a=o.find(e=>1===e.position.column),s=i?rl(i,t):t,d=a?rl(a,t):s;return{bottomLeftPx:rn(s),bottomRightPx:rn(d)}}function ra(e,t="md",r="32px"){return function(e,t){let{bottomLeftPx:r,bottomRightPx:n}=t;return`${e} ${e} ${n}px ${r}px`}(r,ri(e??[],t))}let rs="#D1D5DB";function rd(e){return"none"===e?"0px":"lg"===e?"2px":"1px"}function rc(e){return"none"===e?0:"lg"===e?8:4}function ru(e,t,r="card"){let n=!!e?.showBorders&&!t,o=n?rd(e?.blockBorderSize):"0px",l=n?e?.blockBorderColor??"#D1D5DB":"transparent",i=t||"card"!==r?"transparent":e?.blockBackgroundColor??"#ffffff";return{showBorders:n,borderWidth:o,borderColor:l,backgroundColor:i,accentHeight:t?0:rc(e?.accentSize),accentColor:e?.accentColor??"#000000"}}function rm(e,t){let r=t?.accentSize??e?.accentSize??"none",n="none"!==r,o=n?t?.accentColor??e?.accentColor??"#000000":void 0,l=t?.borderSize??e?.borderSize??"none",i=t?.paddingSize??e?.paddingSize??"none",a=t?.textColor??e?.textColor??"#000000",s=t?.buttonColor??e?.buttonColor??o??a;return{textColor:a,paddingEnabled:"none"!==i,paddingSize:i,bordersEnabled:"none"!==l,accentColor:o,accentEnabled:n,accentSize:r,borderColor:t?.borderColor??e?.borderColor??rs,borderSize:l,backgroundColor:t?.backgroundColor??e?.backgroundColor??"#FFFFFF",borderRadius:t?.borderRadius??e?.borderRadius??"md",buttonColor:s}}function rf(e){let t=e?.borderRadius;return t&&t in t7?t7[t]:t7.md}let rp=12,rh=new Set(["embed-youtube-video-carousel","embed-youtube-short-carousel","embed-tiktok-carousel"]);function rb(e){return"string"==typeof e&&rh.has(e)}let rg={"embed-youtube-video-carousel":{height:214,width:380},"embed-youtube-short-carousel":{height:324,width:182},"embed-tiktok-carousel":{height:324,width:182}};function rx(e,t,r){let n=rg[e],o=t?2*rp:0,l="number"==typeof r&&r>0?r/448:1;return{itemHeight:Math.round(n.height*l)+o,itemWidth:Math.round(n.width*l)+o}}function ry(e){if(!e)return 1;let t=e.currentCSSZoom;return"number"==typeof t&&t>0?t:1}function rv(e){return Math.max(1,Math.round((e+16)/18))}function r$(e){return Math.max(1,(e+16)/18)}e.s(["BLOCK_BORDER_COLOR",0,rs,"BORDER_RADIUS_PIXELS",0,t7,"CAROUSEL_ITEM_PADDING_PX",0,rp,"CAROUSEL_ITEM_WIDTHS",0,tK,"CAROUSEL_TRACK_GAP_PX",0,16,"DEFAULT_BLOCK_CONFIG",0,{textColor:"#000000",paddingSize:"none",accentSize:"none",borderSize:"none",borderRadius:"md"},"MAX_BLOCKS_PER_PAGE",0,500,"MAX_LINKS_PER_BLOCK",0,20,"PAGE_CANVAS_HYBRID_CLASS",0,tH,"PAGE_CANVAS_WIDTH_PX",0,480,"PAGE_CANVAS_ZOOM_STYLE",0,tU,"PAGE_FRAME_BORDER_RADIUS_TRANSITION",0,re,"PAGE_FRAME_BOTTOM_RADIUS_PIXELS",0,rr,"PAGE_FRAME_GUTTER_PX",0,16,"PAGE_FRAME_TOP_RADIUS_PX",0,32,"PAGE_FRAME_WIDTH_PX",0,540,"PAGE_GRID_GAP_PX",0,16,"PAGE_GRID_INSET_PX",0,16,"PAGE_MOBILE_BREAKPOINT_PX",0,572,"PAGE_VISUAL_SCALE",0,1.125,"REFERENCE_COLUMN_WIDTH_PX",0,216,"REFERENCE_CONTAINER_WIDTH_PX",0,448,"canonicalizeLinkCardLayoutPreset",()=>tT,"carouselToSingleLayout",()=>tO,"columnWidthForBlockWidth",()=>tQ,"computeFrameTopRadius",()=>rt,"defaultEmbedBlockLayoutForVariant",()=>tz,"getAccentStripeHeight",()=>rc,"getBorderRadiusPx",()=>rf,"getBorderWidth",()=>rd,"getCardUnitSpan",()=>tG,"getEmbedAspectRatio",()=>tB,"getEmbedCarouselItemDimensions",()=>rx,"getEmbedCarouselItemDimensionsCss",()=>t8,"getEmbedDesignHeightPx",()=>tF,"getPageFrameBorderRadius",()=>ra,"getTitleHeightPx",()=>tE,"isAutoHeightEmbedLayout",()=>t6,"isCarouselBlockLayout",()=>tk,"isConnectedAccountBlockLayout",()=>tP,"isEmbedBlockLayout",()=>tw,"isEmbedCarouselPreset",()=>rb,"isEventsBlockLayout",()=>tj,"isLinkCardLayout",()=>tC,"isSpecialLayout",()=>tS,"isTitleLayout",()=>tN,"linkCardLayoutPresetFromParts",()=>tR,"parsePageCreateBlockLayout",()=>tL,"resolveBlockCardStyles",()=>ru,"resolveBlockConfig",()=>rm,"resolveBlockImageLayout",()=>tA,"resolveBlockLayoutHeight",()=>tI,"resolveBlockLayoutHeightCss",()=>t3,"resolveBlockLayoutHeightForWidth",()=>
3t0,"resolveCardHeightForColumn",()=>tq,"resolveCarouselHeightForContainer",()=>tX,"resolveCarouselItemWidthCss",()=>t4,"resolveCarouselItemWidthForContainer",()=>tZ,"resolvePageBottomBorderRadiiPx",()=>ri,"resolvePresetHeight",()=>t$,"resolveReferenceCardHeight",()=>tV,"resolveReferenceCarouselHeight",()=>tJ,"resolveSingleLinkCardImageLayout",()=>tM,"singleToCarouselLayout",()=>t_],33326);let rw="Submit",rk=new Set(["form-tile","card-text-xs","card-fill-md","card-fill-xl","form-inline"]),rC={short_text:"text",long_text:"textarea",dropdown:"select",checkbox:"boolean"},rj=new Set(["text","textarea","email","phone","select","multiselect","boolean"]);function rN(e){if(!e)return"text";let t=rC[e]??e;return rj.has(t)?t:"text"}function rS(e){let t=e.placeholder?.trim();if(t)return t;switch(rN(e.type)){case"email":return"Enter your email";case"phone":return"Enter your phone";case"select":return"Select an option";case"boolean":case"multiselect":return"";default:return"Enter your answer"}}function rP(e){return"string"==typeof e&&rk.has(e)?e:"card-fill-md"}function rI(e){return"form-inline"===rP(e)}function rE(e){return"card-text-xs"===rP(e)}function rT(e){return"form-tile"===rP(e)}function rL(e){return!rI(e)}function rR(e,t=!0){let r=e??[],n=r.reduce((e,t)=>e+function(e){switch(rN(e.type)){case"textarea":return 124;case"boolean":return 20;case"multiselect":{let t=e.options?.length??0;return 52+20*t+8*Math.max(t-1,0)}default:return 76}}(t),0),o=12*Math.max(+!!t+r.length+2-1,0);return 32+24*!!t+32+48+n+o}function rM(e,t=2){return(e-16*(t-1))/t}function rA(e){return!!("title"===e.type||"link"===e.type||"form"===e.type&&rI(e.style?.blockLayout))}function r_(e,t,r){let n=e.style.blockLayout;if("form"===e.type&&rI(n)){let t=e.data;return rR(t?.fields,!!t?.title)}if("title"===e.type){let r=tE(e);return"number"==typeof t&&Number.isFinite(t)&&t>0?Math.max(r,t):r}if("number"==typeof r&&r>0){let t=tq(n,tQ(r,(e.position.w??2)===2?2:1));if(null!==t)return t;let o=tX(n,r);if(null!==o)return o;let l=tB(n);if(null!==l)return Math.round(r/l)}let o=tI(n);return!(tC(n)||tk(n)||tj(n))&&"number"==typeof t&&Number.isFinite(t)&&t>0?t:o}function rO(e,t,r){if(0===e.length)return[];let n="number"==typeof r&&r>0?rM(r):void 0,o=e=>void 0===n?void 0:(e.position.w??2)===2?r:n,l=new Map;for(let t of e){let e=t.position.row??0,r=l.get(e)??[];r.push(t),l.set(e,r)}let i=[...l.keys()].sort((e,t)=>e-t),a=[],s=0;for(let e of i){let r=l.get(e)??[],n=Math.max(...r.map(e=>{let r=r_(e,t?.get(e.id),o(e));return rA(e)?r$(r):rv(r)}));for(let e of r){let r=e.position.w??2,n=r_(e,t?.get(e.id),o(e)),l=rA(e)?r$(n):rv(n),i=2===r?0:e.position.column;a.push({i:e.id,x:i,y:s,w:r,h:l,minW:1,maxW:2,minH:l})}s+=n}return a}function rz(e,t){let r=(e.position.w??2)===2?2:1;if("title"===e.type&&2===r)return"auto";let n=t3(e.style.blockLayout,r);return null!==n?n:`${r_(e,t)}px`}function rF(e){return 2==((e.position.w??2)===2?2:1)?[1,2]:[(e.position.column??0)+1]}function rD(e){let t=new Map;for(let r of e){let e=r.position.row??0,n=t.get(e)??[];n.push(r),t.set(e,n)}let r=[];for(let e of[...t.keys()].sort((e,t)=>e-t)){let n=[];for(let r of t.get(e)??[]){let e=rF(r),t=n.find(t=>!e.some(e=>t.painted.has(e)));for(let r of(t||(t={painted:new Set,blocks:[]},n.push(t)),e))t.painted.add(r);t.blocks.push(r)}r.push(...n)}let n=[];return r.forEach((e,t)=>{for(let o of e.blocks){let e=rF(o),l=tG(o.style?.blockLayout)??1,i=1;for(;i<l;){let n=r[t+i];if(!n||e.some(e=>n.painted.has(e)))break;i+=1}n.push({block:o,row:t+1,rowSpan:i,column:e[0],w:2===e.length?2:1})}}),n}function rB(e){let t=new Map,r=-1,n=-1/0;for(let o of e)o.y>n+.01&&(r+=1,n=o.y),t.set(o.i,r);return t}function rU(e){if(e.length<2)return e;let t=new Map;for(let r of e){let e=r.position.row,n=t.get(e)??[];n.push(r),t.set(e,n)}let r=[...t.keys()].sort((e,t)=>e-t),n=new Map,o=0;for(;o<r.length-1;){let e=r[o],l=r[o+1],i=t.get(e)??[],a=t.get(l)??[];1===i.length&&1===i[0].position.w&&1===a.length&&1===a[0].position.w&&i[0].position.column!==a[0].position.column?(n.set(l,e),o+=2):o+=1}if(0===n.size)return e;let l=e.map(e=>{let t=n.get(e.position.row);return void 0===t?e:{...e,position:{...e.position,row:t}}}),i=[...new Set(l.map(e=>e.position.row))].sort((e,t)=>
3e-t),a=new Map;return i.forEach((e,t)=>a.set(e,t)),l=l.map(e=>{let t=a.get(e.position.row);return void 0===t||t===e.position.row?e:{...e,position:{...e.position,row:t}}})}function rH(e,t){let r=rB([...e].sort((e,t)=>e.y-t.y||e.x-t.x)),n=!1,o=t.map(t=>{let o=e.find(e=>e.i===t.id);if(!o)return t;let l=o.w>=2?2:1,i=2===l?0:+(o.x>0),a=r.get(t.id)??0;return t.position.row===a&&t.position.column===i&&t.position.w===l?t:(n=!0,{...t,position:{...t.position,row:a,column:i,w:l}})});return n?rU(o):null}function rW(e){if(0===e.length)return[];let t=[...e].sort((e,t)=>e.position.row!==t.position.row?e.position.row-t.position.row:e.position.column-t.position.column),r=[],n=null,o=null,l=()=>{(n||o)&&(r.push({kind:"band",col0:n??[],col1:o??[]}),n=null,o=null)};for(let e of t){if((e.position.w??2)===2){l(),r.push({kind:"full",block:e});continue}1===e.position.column?(o=o??[]).push(e):(n=n??[]).push(e)}for(let e of(l(),r))"band"===e.kind&&(e.col0.sort((e,t)=>e.position.row-t.position.row),e.col1.sort((e,t)=>e.position.row-t.position.row));return r}function rG(e){return[...e].sort((e,t)=>e.position.row!==t.position.row?e.position.row-t.position.row:e.position.column-t.position.column)}function rq(e){if(!e)return null;if("number"==typeof e.clientY)return e.clientY;let t=e.touches?.[0]||e.changedTouches?.[0];return t&&"number"==typeof t.clientY?t.clientY:null}e.s(["FORM_DEFAULT_BUTTON_TEXT",0,rw,"INLINE_CONSENT_ROW_H",0,32,"canonicalizeFormBlockLayout",()=>rP,"canonicalizeFormFieldType",()=>rN,"formFieldPlaceholder",()=>rS,"getFormInlineHeightPx",()=>rR,"isFormBadgeLayout",()=>rL,"isFormInlineLayout",()=>rI,"isFormTextLayout",()=>rE,"isFormTileLayout",()=>rT],71446),e.s(["DROP_SETTLE_DURATION_MS",0,250,"GRID_COLS",0,2,"GRID_MARGIN_X",0,16,"assignLogicalRows",()=>rB,"blocksToGridCells",()=>rD,"blocksToLayout",()=>rO,"calculateColumnWidth",()=>rM,"getBlockHeightCss",()=>rz,"getBlockHeightPx",()=>r_,"getClientYFromEvent",()=>rq,"groupIntoBands",()=>rW,"layoutToBlocks",()=>rH,"normalizeBlockRows",()=>rU,"sortBlocksForFallback",()=>rG],90380);let rV="banner-",rK=["dollar","heart","email","cart","gift","ticket"];function rY(e){if(null!=e&&"string"==typeof e){var t,r;if((t=e).startsWith(rV)&&(r=t.slice(rV.length),rK.includes(r)))return e.slice(rV.length)}}function rZ(e){return void 0!==rY(e)}function rX(e,t){let r=rY(e),n=void 0!==r,o="circle"===e&&t;return{ribbonIcon:r,showRibbon:n,showCircle:o,reservesCorner:n||o}}let rJ={SMALL_SIZE:120,PORTRAIT_HEIGHTS:{sm:120,md:180,lg:240},LARGE_HEIGHTS:{sm:250,md:350,lg:450},BORDER:{WIDTH:2,PADDING:4,get INSET(){return this.WIDTH+this.PADDING}},RADIUS:{circle:64,square:16,portrait:20,largeContent:24,fullScreen:32},PAGE_PADDING:24,CANVAS_WIDTH:480},rQ={sm:80,md:108,lg:136},r0={sm:14,md:19,lg:24};function r1(e){let{boxSize:t,shapeInset:r,shapeSize:n}=e,o=Math.min(e.cornerRadius,n/2);return Math.round(100*(t-(r+n-o+(o+2)/Math.SQRT2)-13))/100}function r2(e){let t=t=>{let r=function(e,t){let{SMALL_SIZE:r,BORDER:n,RADIUS:o}=rJ,l=r+2*n.INSET;return t?r1({boxSize:l,shapeInset:0,shapeSize:l,cornerRadius:o[e]+n.INSET}):r1({boxSize:l,shapeInset:n.INSET,shapeSize:r,cornerRadius:o[e]})}(t,e);return{bottom:r,right:r}};return{circle:t("circle"),square:t("square"),portrait:t("portrait")}}let r3={...r2(!0),largeContent:{top:-3,right:-3},fullScreen:{top:16,right:16}},r4={...r2(!1),largeContent:{top:16,right:16}},r5="linear-gradient(to bottom, black 45%, rgba(0,0,0,0.87) 58%, rgba(0,0,0,0.56) 72%, rgba(0,0,0,0.24) 85%, transparent 100%)",r8="top 400ms cubic-bezier(0.4, 0, 0.2, 1), border-radius 300ms ease-in-out";function r9(e,t){return"circle"===e||"square"===e?rJ.SMALL_SIZE:"portrait"===e?[rJ.PORTRAIT_HEIGHTS.sm,rJ.PORTRAIT_HEIGHTS.md,rJ.PORTRAIT_HEIGHTS.lg].includes(t??0)?t:rJ.PORTRAIT_HEIGHTS.md:t??rJ.LARGE_HEIGHTS.md}let r6={circle:0,square:1,portrait:2,largeContent:3,fullScreen:4},r7={x:0,y:0,zoom:1};function ne(e,t,r){return Math.max(t,Math.min(r,e))}function nt(){let e=new Map;return t=>{let r=t??"",n=e.get(r)??0;return e.set(r,n+1),0===n?r:`${r}#${n}`}}function nr(e){return e?"string"==typeof e?e:String(e):null}let nn={x:0,y:0,zoom:1};function no(e,t,r){return Math.max(t,Math.min(r,e))}function nl(e){let t,{x:r,y:n,zoom:o}={x:no((t=e??nn).x,-1,1),y:no(t.y,-1,1),zoom:no(t.zoom,1,3)},l=50+50*r,i=50+50*n;return{objectFit:"cover",objectPosition:`${l}% ${i}%`,transform:1!==o?`scale(${o})`:void 0,transformOrigin:`${l}% ${i}%`}}function ni(e){let t=parseInt(String(e.borderRadius??"16px"),10),r=Number.isNaN(t)?16:t;return 0===r?"0px":`${Math.max(0,r-4)}px`}let na=new Set(["fill","top","left"]);function ns(e){return e.hasPadding||!e.imageLayout?"card":na.has(e.imageLayout)?"content":"card"}let nd=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function nc(e){let t={};for(let r of e){let e=rN(r.type);"boolean"===e?t[r.id]=!1:"multiselect"===e?t[r.id]=[]:t[r.id]=""}return t}function nu(e){return null==e||"boolean"!=typeof e&&("string"==typeof e?0===e.trim().length:0===e.length)}function nm(e,t,r){for(let n of e){let e=rN(n.type),o=t[n.id],l="boolean"===e?!0!==o:nu(o);if(n.required&&l)return`${n.label} is required`;if("string"==typeof o&&o.trim()){if("email"===e&&!nd.test(o.trim()))return"Please enter a valid email address";if("phone"===e&&!0!==r[n.id])return"Please enter a valid phone number"}}return e.every(e=>nu(t[e.id]))?"At least one answer is required":null}function nf(e,t){let r={};for(let n of e){let e=rN(n.type),o=t[n.id];"boolean"===e?r[n.id]=!0===o:Array.isArray(o)?o.length&&(r[n.id]=o):"string"==typeof o&&o.trim()&&(r[n.id]=o.trim())}return r}e.s(["FORM_DIALOG_FALLBACK_TITLE",0,"Fill out the form","emptyFormAnswers",()=>nc,"formAnswersPayload",()=>nf,"validateFormAnswers",()=>nm],37608);let np=new Set(["link","tips","form"]),nh="__custom__",nb="CUSTOM:";function ng(e){return e?e.startsWith(nh)?e.slice(nh.length):e.startsWith(nb)?e.
3slice(nb.length):e:""}function nx(e,t){var r,n;let o,l,i,a,s,d,c=(r=t??null,o=U(n=e.themeConfig,"backgroundMedia"),l=U(n,"desktopBackgroundMedia"),{backgroundColor:H(n?.backgroundColor)??H(r?.backgroundColor)??K.backgroundColor,desktopBackgroundColor:H(n?.desktopBackgroundColor)??H(r?.desktopBackgroundColor)??K.desktopBackgroundColor,profileTextColor:H(n?.profileTextColor)??H(r?.profileTextColor)??K.profileTextColor,titleTextColor:H(n?.titleTextColor)??H(r?.titleTextColor)??K.titleTextColor,pageFont:n?.pageFont??r?.pageFont??K.pageFont,customStyles:n?.customStyles??null,backgroundMedia:o?n?.backgroundMedia??null:r?.backgroundMedia??K.backgroundMedia,desktopBackgroundMedia:l?n?.desktopBackgroundMedia??null:r?.desktopBackgroundMedia??K.desktopBackgroundMedia,blockConfig:{textColor:i=H(n?.blockConfig?.textColor)??H(r?.blockConfig?.textColor)??G.textColor,backgroundColor:H(n?.blockConfig?.backgroundColor)??H(r?.blockConfig?.backgroundColor)??G.backgroundColor,borderColor:H(n?.blockConfig?.borderColor)??H(r?.blockConfig?.borderColor)??G.borderColor,borderSize:n?.blockConfig?.borderSize??r?.blockConfig?.borderSize??G.borderSize,borderRadius:n?.blockConfig?.borderRadius??r?.blockConfig?.borderRadius??G.borderRadius,paddingSize:n?.blockConfig?.paddingSize??r?.blockConfig?.paddingSize??G.paddingSize,accentColor:H(n?.blockConfig?.accentColor)??H(r?.blockConfig?.accentColor)??G.accentColor,accentSize:n?.blockConfig?.accentSize??r?.blockConfig?.accentSize??G.accentSize,buttonColor:H(n?.blockConfig?.buttonColor)??H(r?.blockConfig?.buttonColor)??i},iconConfig:{shape:n?.iconConfig?.shape??r?.iconConfig?.shape??q.shape,color:H(n?.iconConfig?.color)??H(r?.iconConfig?.color)??q.color,backgroundColor:H(n?.iconConfig?.backgroundColor)??H(r?.iconConfig?.backgroundColor)??q.backgroundColor,position:W(n?.iconConfig?.position)??W(r?.iconConfig?.position)??q.position},profileMediaConfig:(s=U(a=n?.profileMediaConfig,"borderColor"),d=U(a,"h"),{displayType:a?.displayType??r?.profileMediaConfig?.displayType??V.displayType,borderColor:s?a?.borderColor??null:r?.profileMediaConfig?.borderColor??V.borderColor,h:d?a?.h??null:r?.profileMediaConfig?.h??V.h})}),u=rm(void 0,c.blockConfig),m=t7[u?.borderRadius??"md"]??t7.md,f=e.themeConfig?.pageFont??c.pageFont??"poppins",p={backgroundColor:c.backgroundColor,textColor:u?.textColor??"#000000",titleTextColor:c.titleTextColor??"#000000",accentColor:u?.accentColor??"#000000",accentSize:u?.accentSize??"none",showBorders:u.bordersEnabled,borderRadius:`${m}px`,blockPadding:u?.paddingEnabled??!1,blockBorderColor:u?.borderColor??"#D1D5DB",blockBorderSize:u?.borderSize??"none",blockBackgroundColor:u?.backgroundColor??"#ffffff",buttonColor:u?.buttonColor??"#000000",pageFont:f};return{resolvedTheme:c,theme:p}}e.s([],44902),e.i(33326),e.s(["BLOCK_BORDER_COLOR",0,rs,"BORDER_RADIUS_PIXELS",0,t7,"CAROUSEL_ITEM_PADDING_PX",0,rp,"CAROUSEL_TRACK_GAP_PX",0,16,"PAGE_CANVAS_HYBRID_CLASS",0,tH,"PAGE_CANVAS_WIDTH_PX",0,480,"PAGE_CANVAS_ZOOM_STYLE",0,tU,"PAGE_FRAME_BORDER_RADIUS_TRANSITION",0,re,"PAGE_FRAME_TOP_RADIUS_PX",0,32,"PAGE_MOBILE_BREAKPOINT_PX",0,572,"REFERENCE_CONTAINER_WIDTH_PX",0,448,"VARIANT_TO_EMBED_CONFIG",0,eZ,"computeFrameTopRadius",()=>rt,"getAccentStripeHeight",()=>rc,"getBorderWidth",()=>rd,"getCarouselImageLayout",()=>e3,"getEmbedAspectRatio",()=>tB,"getEmbedCarouselItemDimensions",()=>rx,"getEmbedCarouselItemDimensionsCss",()=>t8,"getEmbedDesignHeightPx",()=>tF,"getPageFrameBorderRadius",()=>ra,"isEmbedBlockLayout",()=>tw,"isEmbedCarouselPreset",()=>rb,"isEventsBlockLayout",()=>tj,"isSpotifyStreamingLinksLayout",()=>e7,"resolveBlockCardStyles",()=>ru,"resolveBlockConfig",()=>rm,"resolveBlockImageLayout",()=>tA,"resolveCarouselItemWidthCss",()=>t4,"resolveCarouselItemWidthForContainer",()=>tZ,"resolveReferenceCardHeight",()=>tV,"resolveReferenceCarouselHeight",()=>tJ,"resolveSingleLinkCardImageLayout",()=>tM],61926),e.s(["buildPagePreviewTheme",()=>nx],82087);let ny=[{value:"circle",label:"Circle",svg:"/shapes/circle.svg"},{value:"square",label:"Square",svg:"/shapes/square.svg"},{value:"parallelogram",label:"Parallelogram",svg:"/shapes/parallelogram.svg"},{value:"pentagon",label:"Pentagon",svg:"/shapes/pentagon.svg"},{value:"hexagon",label:"Hexagon",svg:"/shapes/hexagon.svg"},{value:"heart",label:"Heart",svg:"/shapes/hearts.svg"},{value:"diamond",label:"Diamond",svg:"/shapes/diamond.svg"},{value:"octagon",label:"Octagon",svg:"/shapes/octagon.svg"},{value:"platform",label:"Platform",svg:"/socials/svgs/instagram.svg"}],nv=new Set(ny.map(e=>e.value));e.s(["PLATFORM_BY_VALUE",()=>nO,"STREAMING_PLATFORM_ORDER",()=>nG,"detectPlatform",()=>nX,"extractUsernameFromUrl",()=>n5,"getDefaultLinkTitle",()=>n4,"getDomain",()=>n1,"getDomainDisplay",()=>n2,"getDomainLabel",()=>n3,"getGoogleFaviconUrl",()=>
3oe,"getLinkBlockBackgroundColor",()=>n7,"getLinkIconPath",()=>n8,"getPlatformBlockBgColor",()=>n9,"getPlatformLabel",()=>nQ,"getPlatformSquareIconPath",()=>nV,"getSocialSvgPath",()=>n0,"isDomainlessPlatform",()=>nJ,"resolveIconColors",()=>nZ,"uniqueSocialsByPlatform",()=>nW],90221);var n$,nw,nk,nC,nj,nN,nS,nP,nI,nE,nT,nL,nR,nM,nA=e.i(99087);let n_=nA.default,nO=new Map(n_.map(e=>[e.value,e])),nz={onlyfans:"platform-1",fansly:"platform-2",fanvue:"platform-3",slushy:"platform-4",fanfix:"platform-5"},nF=new Map;for(let e of n_){let t=nz[e.value];t&&!nF.has(t)&&nF.set(t,e)}function nD(e){if(!e)return;let t=e.toLowerCase();return nO.get(t)??nF.get(t)}let nB=new Map(n_.flatMap(e=>e.domains.map(t=>[t.toLowerCase(),e]))),nU=["instagram","tiktok","youtube","x","snapchat","facebook","threads","linkedin","pinterest","reddit","twitch","kick","vimeo","spotify","applemusic","soundcloud","youtubemusic","amazonmusic","audiomack","tidal","deezer","pandora","iheart","shazam","itunes","whatsapp","telegram","discord","signal","community","clubhouse","patreon","substack","medium","onlyfans","fanvue","fanfix","passes","slushy","cameo","gofundme","kickstarter","amazon","shopmy","liketoknowit","etsy","depop","poshmark","revolve","appstore","googleplay","paypal","venmo","cashapp","ticketmaster","bandsintown","laylo","calendly","github","dribbble","imdb","strava","opensea","truthsocial","tumblr","vsco","bereal","triller","clash","stereo","matterport","meta","hoobe","contact","other","shop","podcast","event","news","mediakits"],nH=new Map(nU.map((e,t)=>[e,t]));function nW(e){let t=[...e].sort((e,t)=>(e.sortOrder??0)-(t.sortOrder??0)),r=new Set,n=[];for(let e of t){let t=(e.icon??"").toLowerCase();!t||r.has(t)||(r.add(t),n.push(e))}return n}n_.filter(e=>e.showInSocialEditor).sort((e,t)=>(nH.get(e.value)??nU.length)-(nH.get(t.value)??nU.length)),n_.filter(e=>!e.baseUrl).map(e=>e.value),n_.filter(e=>e.supportsEmbed&&e.squareIconPath&&e.embedUrlExamples).map(e=>({id:e.value,label:e.label,icon:e.squareIconPath,urlExamples:e.embedUrlExamples})),n_.filter(e=>e.embedVariants?.length).flatMap(e=>e.embedVariants),n_.map(e=>e.value),n_.filter(e=>"product"===e.category).map(e=>e.value);let nG=["spotify","applemusic","itunes","amazonmusic","amazon","youtubemusic","youtube","soundcloud","deezer","tidal","pandora"];function nq(e){let t=nD(e);return t?.brandColor&&t?.brandIconColor?{brandColor:t.brandColor,brandIconColor:t.brandIconColor,squareIconPath:t.squareIconPath??void 0}:null}function nV(e){let t=nD(e);return t?.squareIconPath??null}let nK="platform";function nY(e){return Array.isArray(e)?e[0]??"#000000":e}function nZ({iconColor:e,iconBackgroundColor:t,platformValue:r,iconShape:n,fallbackIconColor:o="#000000",fallbackBackgroundColor:l="#ffffff"}){var i;if(e!==nK||t!==nK)return{iconColor:e===nK?o:e,iconBackgroundColor:t===nK?l:t,iconBackgroundStyle:t===nK?l:t};let a="platform"===n;if(a){let e=nV(r);if(e){let t=nq(r);return{iconColor:t?nY(t.brandColor):o,iconBackgroundColor:"transparent",iconBackgroundStyle:"transparent",squareIconPath:e}}}let s=nq(r);return s?a?{iconColor:nY(s.brandColor),iconBackgroundColor:"transparent",iconBackgroundStyle:"transparent"}:{iconColor:s.brandIconColor,iconBackgroundColor:nY(s.brandColor),iconBackgroundStyle:Array.isArray(i=s.brandColor)&&i.length>1?`linear-gradient(135deg, ${i.join(", ")})`:nY(i)}:{iconColor:o,iconBackgroundColor:l,iconBackgroundStyle:l}}function nX(e){let t,r,n;if(!e||"string"!=typeof e)return null;if(/^mailto:/i.test(e))return"contact";try{let n=e.startsWith("http")?e:`https://${e}`,o=new URL(n);t=o.hostname.toLowerCase().replace(/^www\./,""),r=o.pathname}catch{return null}if("music.youtube.com"===t)return"youtubemusic";if(t.startsWith("music.amazon."))return"amazonmusic";if("geo.itunes.apple.com"===t||"itunes.apple.com"===t){var o;return(o=r,/(?:^|\/)(?:app|developer)(?:\/|$)/i.test(o))?"appstore":"itunes"}let l=nB.get(t);if(l)return l.value;let i=t.split(".");n=i.length>=3&&("co"===i[i.length-2]||"com"===i[i.length-2])?i.slice(-3).join("."):i.length>=2?i.slice(-2).join("."):t;let a=nB.get(n);return a?a.value:"other"}function nJ(e){let t=nO.get(e.toLowerCase());return!t||0===t.domains.length}function nQ(e){if(!e)return"Link";let t=e.toLowerCase();
3return t&&nF.has(t.toLowerCase())?t.split("-").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):nO.get(t)?.label??"Link"}function n0(e){return nD(e)?.svgPath??null}function n1(e){try{let t=e.startsWith("http")?e:`https://${e}`,r=new URL(t).hostname.toLowerCase(),n=r.split(".");if(n.length>=3&&("co"===n[n.length-2]||"com"===n[n.length-2]))return n.slice(-3).join(".");return n.length>=2?n.slice(-2).join("."):r}catch{return null}}function n2(e){try{let t=e.startsWith("http")?e:`https://${e}`;return new URL(t).hostname.toLowerCase().replace(/^www\./,"")}catch{return null}}function n3(e){let t=nX(e);if(t&&"other"!==t)return nQ(t);let r=n2(e);if(!r)return null;let n=r.split(".");if(n.length<2)return null;let o=n.length>=3&&("co"===n[n.length-2]||"com"===n[n.length-2])?n.length-3:n.length-2,l=n[o];return l?l.charAt(0).toUpperCase()+l.slice(1):null}function n4(e){return`Check out my ${nQ(e)}`}function n5(e,t){let r=e.trim();if(!r.includes("/")&&!r.includes("."))return r.replace(/^@/,"");let n="string"==typeof t?t:t.value,o=nO.get(n);try{let e;if(r.startsWith("http://")||r.startsWith("https://"))e=new URL(r);else{if(!r.includes("."))return r.replace(/^@/,"");e=new URL("https://"+r)}let t=e.pathname.replace(/\/$/,"").split("/").filter(Boolean);if(o){if(o.excludePaths?.length&&t.length>=1){if(o.excludePaths.includes(t[0]))return r.replace(/^@/,"");return t[0].replace(/^@/,"")}if(o.pathPrefix?.length&&t.length>=2&&o.pathPrefix.includes(t[0]))return t[1].replace(/^@/,"")}return t.length>=1?t[0].replace(/^@/,""):r.replace(/^@/,"")}catch{let e="string"==typeof t?nO.get(t):nO.get(t.value);for(let t of[...new Set([...e?.domains??[],...e?.baseUrl?[e.baseUrl.replace(/\/$/,"").split("/")[0]]:[]].map(e=>e.toLowerCase()))]){let e=r.toLowerCase().indexOf(t);if(-1!==e){let n=r.slice(e+t.length),o=(n=n.replace(/^\/+/,"").split("?")[0].split("#")[0].replace(/\/+$/,"")).replace(/^@/,"")||r.replace(/^@/,"");if(o)return o}}return r.replace(/^@/,"")}}function n8(e){let t=nX(e);if(t){let e=nO.get(t);if(e?.squareIconPath)return e.squareIconPath}let r=n2(e),n=n1(e);if(r){let e=nB.get(r);if(e?.squareIconPath)return e.squareIconPath}if(n){let e=nB.get(n);if(e?.squareIconPath)return e.squareIconPath}return null}function n9(e){return e?nD(e)?.blockBgColor??null:null}let n6="#f5f5f5";function n7(e){if(!e?.trim())return n6;let t=nX(e);if(t){let e=nO.get(t);if(e?.squareIconPath)return e.blockBgColor??n6}let r=n2(e),n=n1(e),o=(r?nB.get(r):null)??(n?nB.get(n):null);return o?.squareIconPath?o.blockBgColor??n6:"#e5e7eb"}function oe(e,t=128){let r=n1(e),n=new URLSearchParams({client:"SOCIAL",type:"FAVICON",fallback_opts:"TYPE,SIZE,URL",url:r?`https://${r}`:e,size:String(t)});return`https://t0.gstatic.com/faviconV2?${n.toString()}`}var ot=e.i(19829),or=e.i(19950);let on=new Set(ot.default.map(e=>e.toLowerCase())),oo=new Set(or.default.map(e=>e.toLowerCase())),ol=new Set;for(let e of nA.default)(e.domains??[]).some(e=>oo.has(e.toLowerCase()))&&ol.add(e.value.toLowerCase());function oi(e){let t=e.trim();if(!t)return null;let r=(/^[a-z][a-z\d+\-.]*:/i.test(t)?t:`https://${t}`).match(/^[a-z][a-z\d+\-.]*:\/\/(?:[^@/?#]*@)?(\[[^\]]+\]|[^:/?#]+)/i),n=r?.[1];return!n||n.startsWith("[")?null:n.toLowerCase().replace(/^www\./,"")}function oa(e,t){if(t.has(e))return!0;for(let r of t)if(e.endsWith(`.${r}`))return!0;return!1}function os(e){return!!e&&ol.has(e.toLowerCase())}function od(e){let t;return e?(t=oi(e))&&oa(t,on)?"adult":!function(e){if(!e)return!1;let t=oi(e);return!!t&&oa(t,oo)}(e)?null:"popout":null}function oc(e){return null!==od(e)}e.s(["getPublicUrlMaskKind",()=>od,"isMaskedPopOutPlatform",()=>os,"shouldAlwaysMaskSensitiveUrl",()=>oc],25721);let ou="hoo.be",om=/^[A-Z0-9._%+-]+@([A-Z0-9-]+\.)+[A-Z]{2,}$/i,of=/(?:^(?:(?:(?:https|http):\/\/)|www\.)?(?:(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$)|^([A-Z0-9._%+-]+)@([A-Z0-9]+(?:[.-][A-Z0-9]+)*\.[A-Z]{2,})$/i,op=/^https?:\/\//,oh=/^(?:(?:https?:)?\/\/)?(?:(?:www|m|music)\.)?(?:(?:youtube\.com(?:\/(?:[-\w]*(?:\?v=|vi\/|embed\/|v\/|\?vi=|wat
3ch\?|e\/|live\/)))([\w-]+)(?:\S+)?|youtu.be(?:\/(?:[\w-]+\?v=|embed\/|v\/)?)([\w-]+)(?:\S+)?))$/i,ob=/^(?:(?:https?:)?\/\/)?(?:(?:www|m)\.)?(?:(?:youtube\.com|youtu.be))(?:\/(?:channel\/|c\/|user\/|@))([\w-]+)(?:\S+)?$/i,og=/^(?:https?:\/\/)?(?:(?:www|m)\.)?youtube\.com\/shorts\/([a-zA-Z0-9_-]+)(?:[/?#].*)?$/i,ox=/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/playlist\?list=([a-zA-Z0-9_-]+)$/i,oy=/^(?:https:\/\/(?:open\.spotify\.com(?:\/intl-\w{2})?|spotify\.link)\/track|https:\/\/spotify\.link)\/([^/?]+)/i,ov=/^(?:https?:\/\/)?open\.spotify\.com(?:\/intl-\w{2})?\/show\/([a-zA-Z0-9]+)(?:\/|$|\?)/i,o$=/^(?:https?:\/\/)?open\.spotify\.com(?:\/intl-\w{2})?\/episode\/([a-zA-Z0-9]+)(?:\/|$|\?)/i,ow=/^(?:https?:\/\/)?open\.spotify\.com(?:\/intl-\w{2})?\/album\/([a-zA-Z0-9]+)(?:\/|$|\?)/i,ok=/^(?:https?:\/\/)?open\.spotify\.com(?:\/intl-\w{2})?\/playlist\/([a-zA-Z0-9]+)(?:\/|$|\?)/i,oC=/^(?:https?:\/\/)?open\.spotify\.com(?:\/intl-\w{2})?\/artist\/([a-zA-Z0-9]+)(?:\/|$|\?)/i,oj=/^(?:(?:https?:)?\/\/)?(?:(?:www|m)\.)?(?:tiktok\.com|vm\.tiktok\.com)\/(?:embed\/v2\/)?(?:@([a-z0-9._-]+)\/video\/)?([0-9]+|t\/([a-zA-Z0-9]+))/i,oN=/^(?:(?:https?:)?\/\/)?(?:(?:www|m)\.)?tiktok\.com\/(@([a-z0-9._-]+))/i,oS=/^https?:\/\/(?:www\.)?tiktok\.com\/@([a-z0-9._-]+)\/photo\/(\d+)/i,oP=/^(?:(?:https?:)?\/\/)?(?:(?:www|m|mobile)\.)?(?:twitter|x)\.com\/([a-z0-9._-]+)/i,oI=/^(?:(?:https?:)?\/\/)?(?:(?:www|m|mobile)\.)?(?:twitter|x)\.com\/[a-z0-9._-]+\/status\/([0-9]+)?/i,oE=/^(?:(?:https?:)?\/\/)?(?:(?:www|m)\.)?twitch\.tv\/videos\/([a-z0-9._-]+)/i,oT=/^(?:(?:https?:)?\/\/)?(?:(?:www|m)\.)?twitch\.tv\/([a-z0-9._-]+)/i,oL=/^(?:(?:https?:)?\/\/)?(?:(?:www|m)\.)?twitch\.tv\/([a-z0-9._-]+)\/clip\/([a-z0-9._-]+)/i,oR=/^(?:https?:\/\/)?(?:(?:www|m)\.)?instagram\.com\/([a-zA-Z0-9_.]+)\/?$/,oM=/^(?:(?:https?:)?\/\/)?(?:(?:www|m)\.)?laylo\.com\/([a-z0-9._-]+)?(?:\/(?:m\/)?([A-z0-9]+))?/i,oA=/^(?:(?:https?:)?\/\/)?(?:www\.)?(?:[a-z0-9-]+\.)?shopmy\.us\/(?:shop\/)?collections\/(?:embed\/|public\/)?(\d+)(?:\/)?(?:[?#].*)?$/i,o_=/^(?:https?:\/\/)?(?:www\.)?vimeo\.com\/album\/\d+\/video\/(\d+)(?:[?#].*)?$/i,oO=/^(?:https?:\/\/)?(?:www\.)?vimeo\.com\/channels\/[^/]+\/(\d+)(?:[?#].*)?$/i,oz=/^(?:https?:\/\/)?(?:www\.)?vimeo\.com\/groups\/[^/]+\/videos\/(\d+)(?:[?#].*)?$/i,oF=/^(?:https?:\/\/)?(?:www\.)?vimeo\.com\/ondemand\/[^/]+\/(\d+)(?:[?#].*)?$/i,oD=/^(?:https?:\/\/)?(?:www\.)?vimeo\.com\/(\d+)(?:\/([a-zA-Z0-9]+))?(?:[?#].*)?$/i,oB=/^(?:https?:\/\/)?(?:www\.)?vimeo\.com\/(?:showcase|album)\/(\d+)(?:[?#].*)?$/i,oU=/^(?:https?:\/\/)?(?:www\.)?vimeo\.com\/event\/(\d+)(?:[?#].*)?$/i,oH=/^(?:(?:https?:)?\/\/)?(?:www\.)?(?:gofundme)?(?:\.(?:com))\/?(?:[a-z0-9._-]+)\/?([a-z0-9._-]+)?/i,oW=/^(?:https?:\/\/)?(?:www\.)?(?:my.matterport\.com)\/show\/\?m=([^&]+)/i,oG=/^(?:https?:\/\/)?(?:www\.)?threads\.(?:net|com)\/t\/([a-zA-Z0-9]+)\/?(?:[^\s]*)$/i,oq=/^(?:https?:\/\/)?(?:www\.)?threads\.(?:net|com)\/@[^/]+\/post\/([a-zA-Z0-9]+)\/?(?:[^\s]*)$/i,oV=/^https:\/\/(?:embed\.)?music\.apple\.com\/(\w{2})\/album\/([^/]+)\/(\d+)\?i=(\d+)$/,oK=/^https:\/\/(?:embed\.)?music\.apple\.com\/(\w{2})\/song\/([^/]+)\/(\d+)(?:\?.*)?$/,oY=/^https:\/\/(?:embed\.)?music\.apple\.com\/(\w{2})\/album\/([^/]+)\/(\d+)(?:\?(?!i=).*)?$/,oZ=/^https:\/\/(?:embed\.)?music\.apple\.com\/(\w{2})\/playlist\/([^/]+)\/(pl\.[a-zA-Z0-9._-]+)(?:\?.*)?$/,oX=/^https:\/\/(?:embed\.)?music\.apple\.com\/(\w{2}
3)\/artist\/([^/]+)\/(\d+)(?:\?.*)?$/,oJ=/^https:\/\/(?:embed\.)?music\.apple\.com\/(\w{2})\/station\/([^/]+)\/(ra\.\d+)(?:\?.*)?$/,oQ=/^https:\/\/(?:embed\.)?podcasts\.apple\.com\/(\w{2})\/podcast\/([^/]+)\/id(\d+)\?i=(\d+)$/,o0=/^https:\/\/(?:embed\.)?podcasts\.apple\.com\/(\w{2})\/podcast\/([^/]+)\/id(\d+)(?:\?(?!i=).*)?$/,o1=/bandsintown\.com\/(?:a|artist)\/(?:\d+-)?([\w-]+)/i,o2=/^(?:https?:\/\/)?(?:www\.)?ticketmaster\.(?:com|co\.\w{2}|ca|de|es|fr|nl|at|be|ie|mx|au|nz)\/[^/]+\/event\/([A-Z0-9]+)(?:[?#].*)?$/i,o3=/^(?:https?:\/\/)?(?:www\.)?ticketmaster\.(?:com|co\.\w{2}|ca|de|es|fr|nl|at|be|ie|mx|au|nz)\/(?:[^/]+\/)?artist\/(\d+)(?:[?#].*)?$/i,o4=/^(?:https?:\/\/)?(?:www\.)?ticketmaster\.(?:com|co\.\w{2}|ca|de|es|fr|nl|at|be|ie|mx|au|nz)\/(?:[^/]+\/)?venue\/(\d+)(?:[?#].*)?$/i,o5=/^(?:https?:\/\/)?(?:www\.)?soundcloud\.com\/([a-zA-Z0-9_-]+)\/sets\/([a-zA-Z0-9_-]+)(?:[?#].*)?$/i,o8=/^(?:https?:\/\/)?(?:www\.)?soundcloud\.com\/([a-zA-Z0-9_-]+)\/([a-zA-Z0-9_-]+)(?:[?#].*)?$/i,o9=/^(?:https?:\/\/)?(?:www\.)?soundcloud\.com\/([a-zA-Z0-9_-]+)\/?(?:[?#].*)?$/i,o6=/^(?:https?:\/\/)?(?:www\.)?loom\.com\/share\/([a-zA-Z0-9]+)(?:[?#].*)?$/i,o7=/^(?:https?:\/\/)?(?:www\.)?loom\.com\/embed\/([a-zA-Z0-9]+)(?:[?#].*)?$/i,le=/^(?:https?:\/\/)?(?:www\.)?iheart\.com\/live\/([a-z0-9-]+)\/?(?:[?#].*)?$/i,lt=/^(?:https?:\/\/)?(?:www\.)?iheart\.com\/artist\/([a-z0-9-]+)\/?(?:[?#].*)?$/i,lr=/^(?:https?:\/\/)?(?:www\.)?iheart\.com\/podcast\/([a-z0-9-]+)\/episode\/([a-z0-9-]+)\/?(?:[?#].*)?$/i,ln=/^(?:https?:\/\/)?(?:www\.)?iheart\.com\/podcast\/([a-z0-9-]+)\/?(?:[?#].*)?$/i,lo=/^(?:https?:\/\/)?(?:www\.)?iheart\.com\/playlist\/([a-z0-9-]+)\/?(?:[?#].*)?$/i,ll=/^(?:(?:https?:)?\/\/)?(?!(?:www|open|api|mail)\.)([a-z0-9](?:[a-z0-9-]*[a-z0-9])?)\.substack\.com\/p\/([a-zA-Z0-9_-]+)(?:\/(?:comments|comment\/\d+|restacks))?\/?(?:[?#].*)?$/i,li=/^(?:(?:https?:)?\/\/)?open\.substack\.com\/pub\/([a-z0-9](?:[a-z0-9-]*[a-z0-9])?)\/p\/([a-zA-Z0-9_-]+)(?:\/(?:comments|comment\/\d+|restacks))?\/?(?:[?#].*)?$/i,la=/^(?:(?:https?:)?\/\/)?(?:www\.)?substack\.com\/(?:@[a-zA-Z0-9_.-]+|profile\/[^/]+)\/note\/c-(\d{1,20})(?!\d)\/?(?:[?#].*)?$/i,ls=/^(?:(?:https?:)?\/\/)?(?!(?:www|open|api|mail)\.)([a-z0-9](?:[a-z0-9-]*[a-z0-9])?)\.substack\.com\/?(?:(?:subscribe|embed)\/?)?(?:[?#].*)?$/i,ld=/^(?:(?:https?:)?\/\/)?(?:www\.)?substack\.com\/@([a-zA-Z0-9_.-]+)\/?(?:[?#].*)?$/i;function lc(e){let t={isValid:!1,originalUrl:e,normalizedUrl:e,platform:null,metadata:{}};if(!e||"string"!=typeof e)return t;try{let r=op.test(e)?e:`https://${e}`,n=new URL(r);t.isValid=!0,t.normalizedUrl=n.toString()}catch{t.isValid=om.test(e)||of.test(e)}return t.platform=nX(e),null!==t.platform&&function(e,t){switch(t.platform){case"youtube":!function(e,t){let r=e.match(oh),n=e.match(ob),o=e.match(og),l=e.match(ox);if(o){let e=o[1];t.embedData={variant:"youtube-short",contentId:e,embedUrl:`https://www.youtube.com/embed/${e}`}}else if(l){let e=l[1];t.embedData={variant:"youtube-video",contentId:e,embedUrl:`https://www.youtube.com/embed/videoseries?list=${e}`}}else if(r){let e=r[1]||r[2];t.embedData={variant:"youtube-video",contentId:e,embedUrl:`https://www.youtube.com/embed/${e}`}}else if(n){let r=n[1];e.includes("/@")||e.includes("/c/")||e.includes("/user/")?(t.username=r,t.metadata.needsChannelResolution=!0,t.metadata.youtubeHandle=r,t.embedData={variant:"youtube-channel",contentId:r,embedUrl:""}):e.includes("/channel/")&&r.startsWith("UC")&&(t.embedData={variant:"youtube-channel",contentId:r,embedUrl:`https://www.youtube.com/embed/videoseries?list=UULF${r.slice(2)}`})}}(e,t);break;case"spotify":let r,n,o,l,i,a;g=e,x=t,r=g.match(oy),n=g.match(ow),o=g.match(ok),l=g.match(oC),i=g.match(ov),a=g.match(o$),r?x.embedData={variant:"spotify-track",contentId:r[1],embedUrl:`https://open.spotify.com/embed/track/${r[1]}`}:n?x.embedData={variant:"spotify-album",contentId:n[1],embedUrl:`https://open.spotify.com/embed/album/${n[1]}`}:o?x.embedData={variant:"spotify-playlist",contentId:o[1],embedUrl:`https://open.spotify.com/embed/playlist/${o[1]}`}:l?x.embedData={variant:"spotify-artist",contentId:l[1],embedUrl:`https://open.spotify.com/embed/artist/${l[1]}`}:a?x.embedData={variant:"spotify-episode",contentId:a[1],embedUrl:`https://open.spotify.com/embed/episode/${a[1]}`}:i&&(x.embedData={variant:"spotify-show",contentId:i[1],embedUrl:`https://open.spotify.com/embed/show/${i[1]}`});break;case"tiktok":let s,d,c;y=e,v=t,s=y.match(oj),d=y.match(oN),(c=y.match(oS))&&c[2]?(v.username=c[1],v.embedData={variant:"tiktok-video",contentId:c[2],embedUrl:`https://www.tiktok.com/player/v1/${c[2]}`}):s&&s[2]&&!s[3]?(v.username=s[1],v.embedData={variant:"tiktok-video",contentId:s[2],embedUrl:`https://www.tiktok.com/player/v1/${s[2]}`}):d&&d[2]&&(v.username=d[2],v.embedData={variant:"tiktok-profile",contentId:d[2],embedUrl:`https://www.tiktok.com/@${d[2]}`});break;case"x":let u,m;$=e,w=t,u=$.match(oP),(m=$.match(oI))?w.embedData={variant:"x-post",contentId:m[1],embedUrl:`https://platform.twitter.com/embed/Tweet.html?id=${m[1]}`}:u&&(w.username=u[1]);break;case"instagram":!function(e,t){let r=e.match(/\/p\/([A-Za-z0-9_-]+)/),n=e.match(/\/reels?\/([A-Za-z0-9_-]+)/);if(r){let n=e.match(/instagram\.com\/([A-Za-z0-9._-]+)\/p\//);n&&(t.username=n[1]);let o=r[1];t.embedData={variant:"instagram-post",contentId:o,embedUrl:`https://www.instagram.com/p/${o}/embed`}}else if(n){let r=e.match(/instagram\.com\/([A-Za-z0-9._-]+)\/reels?\//);r&&(t.username=r[1]);let o=n[1];t.embedData={variant:"instagram-reel",contentId:o,embedUrl:`https://www.instagram.com/reel/${o}/embed`}}else{let r=e.match(oR);if(r&&r[1]){let e=r[1];t.username=e,t.embedData={variant:"instagram-profile",contentId:e,embedUrl:`https://www.instagram.com/${e}/`}}}}(e,t);break;case"twitch":let f,p,h;k=e,C=t,f=k.match(oE),p=k.match(oL),h=k.match(oT),f?C.embedData={variant:"twitch-video",contentId:f[1],embedUrl:`https://player.twitch.tv/?video=${f[1]}&parent=${ou}`}:p?C.embedData={variant:"twitch-clip",contentId:p[2],embedUrl:`https://clips.twitch.tv/embed?clip=${p[2]}&parent=${ou}`}:h&&(C.embedData={variant:"twitch-live",contentId:h[1],embedUrl:`https://player.twitch.tv/?channel=${h[1]}&parent=${ou}`});break;case"applemusic":!function(e,t){let r=e.match(oV);if(r){let[,e,n,o,l]=r;t.embedData={variant:"applemusic-track",contentId:`${e}/album/${n}/${o}?i=${l}`,embedUrl:`https://embed.music.apple.com/${e}/album/${n}/${o}?i=${l}`};return}let n=e.match(oK);if(n){let[,e,r,o]=n;t.embedData={variant:"applemusic-song",contentId:`${e}/song/${r}/${o}`,embedUrl:`https://embed.music.apple.com/${e}/song/${r}/${o}`};return}let o=e.match(oY);if(o){let[,e,r,n]=o;t.embedData={variant:"applemusic-album",contentId:`${e}/album/${r}/${n}`,embedUrl:`https://embed.music.apple.com/${e}/album/${r}/${n}`};return}let l=e.match(oZ);if(l){let[,e,r,n]=l;t.embedData={variant:"applemusic-playlist",contentId:`${e}/playlist/${r}/${n}`,embedUrl:`https://embed.music.apple.com/${e}/playlist/${r}/${n}`};return}let i=e.match(oX);if(i){let[,e,r,n]=i;t.embedData={variant:"applemusic-artist",contentId:`${e}/artist/${r}/${n}`,embedUrl:`https://embed.music.apple.com/${e}/artist/${r}/${n}`};return}let a=e.match(oJ);if(a){let[,e,r,n]=a;t.embedData={variant:"applemusic-station",contentId:`${e}/station/${r}/${n}`,embedUrl:`https://embed.music.apple.com/${e}/station/${r}/${n}`};return}let s=e.match(oQ);if(s){let[,e,r,n,o]=s;t.embedData={variant:"applemusic-podcast-episode",contentId:`${e}/podcast/${r}/id${n}?i=${o}`,embedUrl:`https://embed.podcasts.apple.com/${e}/podcast/${r}/id${n}?i=${o}`};return}let d=e.match(o0);if(d){let[,e,r,n]=d;t.embedData={variant:"applemusic-podcast",contentId:`${e}/podcast/${r}/id${n}`,embedUrl:`https://embed.podcasts.apple.com/${e}/podcast/${r}/id${n}`}}}(e,t);break;case"threads":let b;j=e,N=t,(b=j.match(oG))||(b=j.match(oq)),b&&(N.embedData={variant:"threads-post",contentId:b[1],embedUrl:`https://www.threads.com/t/${b[1]}/embed`});break;case"laylo":!function(e,t){let r=e.match(oM);if(r){let e=r[1],n=r[2];t.username=e;let o=n?"laylo-drop":"laylo-profile",l="laylo-profile"===o?`https://laylo.com/${e}/profile`:`https://laylo.com/${e}/${n}`.replace(/\/m\//,"/");t.embedData={variant:o,contentId:n?`${e}/${n}`:e,embedUrl:`${l}/embed?customColor=&rawColor=true`}}}(e,t);break;case"shopmy":var g,x,y,v,$,w,k,C,j,N,S,P,I,E,T,L,R=e,M=t;let A=R.match(oA);
3if(A){let e=A[1];M.embedData={variant:"shopmy-collection",contentId:e,embedUrl:`https://shopmy.us/collections/embed/${e}`}}break;case"vimeo":!function(e,t){let r=e.match(o_);if(r&&r[1]||(r=e.match(oO))&&r[1]||(r=e.match(oz))&&r[1]||(r=e.match(oF))&&r[1]){t.embedData={variant:"vimeo-video",contentId:r[1],embedUrl:`https://player.vimeo.com/video/${r[1]}`};return}if((r=e.match(oD))&&r[1]){let e=r[1],n=r[2];t.embedData={variant:"vimeo-video",contentId:e,embedUrl:n?`https://player.vimeo.com/video/${e}?h=${n}`:`https://player.vimeo.com/video/${e}`};return}if((r=e.match(oB))&&r[1]){t.embedData={variant:"vimeo-showcase",contentId:r[1],embedUrl:`https://vimeo.com/album/${r[1]}/embed`};return}(r=e.match(oU))&&r[1]&&(t.embedData={variant:"vimeo-event",contentId:r[1],embedUrl:`https://vimeo.com/event/${r[1]}/embed`})}(e,t);break;case"gofundme":let _;S=e,P=t,(_=S.match(oH))&&(P.embedData={variant:"gofundme",contentId:_[1],embedUrl:`https://www.gofundme.com/f/${_[1]}/widget/medium`});break;case"matterport":let O;I=e,E=t,(O=I.match(oW))&&(E.embedData={variant:"matterport",contentId:O[1],embedUrl:`https://my.matterport.com/show/?m=${O[1]}`});break;case"bandsintown":!function(e,t){let r=null;try{let t=op.test(e)?e:`https://${e}`,n=new URL(t).pathname.split("/").filter(Boolean);n.length>=2&&("a"===n[0]||"artist"===n[0])?r=n[1]??null:n.length>=2&&"events"===n[1]&&"a"!==n[0]&&"artist"!==n[0]&&(r=n[0]??null)}catch{}if(!r){let t=e.match(o1);r=t?.[1]??null}if(!r)return;let n=decodeURIComponent(r).replace(/^\d+-/,"").trim();if(!n)return;let o=n.replace(/[-_]+/g," ").replace(/\s+/g," ");t.embedData={variant:"bandsintown",contentId:o,embedUrl:`https://www.bandsintown.com/${encodeURIComponent(o)}/events`}}(e,t);break;case"ticketmaster":!function(e,t){let r=e.match(o2);if(r&&r[1]){t.embedData={variant:"ticketmaster-event",contentId:r[1],embedUrl:e};return}let n=e.match(o3);if(n&&n[1]){t.embedData={variant:"ticketmaster-artist",contentId:n[1],embedUrl:e};return}let o=e.match(o4);o&&o[1]&&(t.embedData={variant:"ticketmaster-venue",contentId:o[1],embedUrl:e})}(e,t);break;case"soundcloud":!function(e,t){let r=e.match(o5),n=e.match(o8),o=e.match(o9);if(r&&r[1]&&r[2]){let e=r[1],n=r[2];t.username=e;let o=`${e}/sets/${n}`;t.embedData={variant:"soundcloud",contentId:o,embedUrl:`https://w.soundcloud.com/player/?url=https://soundcloud.com/${o}`}}else if(n&&n[1]&&n[2]){let e=n[1],r=n[2];t.username=e;let o=`${e}/${r}`;t.embedData={variant:"soundcloud",contentId:o,embedUrl:`https://w.soundcloud.com/player/?url=https://soundcloud.com/${o}`}}else o&&o[1]&&(t.username=o[1])}(e,t);break;case"loom":let z,F,D;T=e,L=t,z=T.match(o6),F=T.match(o7),(D=z?.[1]||F?.[1])&&(L.embedData={variant:"loom",contentId:D,embedUrl:`https://www.loom.com/embed/${D}?hideEmbedTopBar=true`});break;case"iheart":!function(e,t){let r=e.match(lr);if(r&&r[1]&&r[2]){let e=r[1],n=r[2];t.embedData={variant:"iheart-episode",contentId:`${e}/episode/${n}`,embedUrl:`https://www.iheart.com/podcast/${e}/episode/${n}/?embed=true`};return}let n=e.match(ln);if(n&&n[1]){t.embedData={variant:"iheart-podcast",contentId:n[1],embedUrl:`https://www.iheart.com/podcast/${n[1]}/?embed=true`};return}let o=e.match(le);if(o&&o[1]){t.embedData={variant:"iheart-live",contentId:o[1],embedUrl:`https://www.iheart.com/live/${o[1]}/?embed=true`};return}let l=e.match(lt);if(l&&l[1]){t.embedData={variant:"iheart-artist",contentId:l[1],embedUrl:`https://www.iheart.com/artist/${l[1]}/?embed=true`};return}let i=e.match(lo);i&&i[1]&&(t.embedData={variant:"iheart-playlist",contentId:i[1],embedUrl:`https://www.iheart.com/playlist/${i[1]}/?embed=true`})}(e,t);break;case"substack":!function(e,t){let r=e.match(la);if(r&&r[1]){t.embedData={variant:"substack-note",contentId:r[1],embedUrl:`https://substack.com/embed/c/${r[1]}`};return}let n=e.match(ll)||e.match(li);if(n&&n[1]&&n[2]){let e=n[1].toLowerCase(),r=n[2];t.embedData={variant:"substack-post",contentId:`${e}/p/${r}`,embedUrl:`https://${e}.substack.com/embed/p/${r}`};return}let o=e.match(ls);if(o&&o[1]){let e=o[1].toLowerCase();t.embedData={variant:"substack-signup",contentId:e,embedUrl:`https://${e}.substack.com/embed`};return}let l=e.match(ld);l&&l[1]&&(t.username=l[1],t.metadata.needsSubstackProfileResolution=!0,t.metadata.substackHandle=l[1],t.embedData={variant:"substack-latest",contentId:l[1],embedUrl:""})}(e,t)}}(e,t),t.embedData&&(t.metadata.isEmbed=!0),t}let lu=new Set(["youtube","youtubemusic","kick"]),lm=new Set(["watch","home","explore","reel","reels","p","tv","stories","share","add","channel","c","user","playlist","shorts","live","embed","redirect","login","signup","hashtag","tag"]);function lf(e){let t=e.platform.toLowerCase(),r=n5(e.url,t).replace(/^@/,""),n=!function(e,t){let r=e.replace(/^@/,"").trim();return!(!r||r.includes("/"))&&!(/^UC[\w-]{20,}$/.test(r)||function(e,t){if(!lm.has(e.toLowerCase()))return!1;let r=function(e){try{return new URL(e.startsWith("http")?e:`https://${e}`)}catch{return null}}(t);
3return!r||!!r.search||r.pathname.split("/").filter(Boolean).length>1}(r,t))}(r,e.url)?"":r,o=e.title?.trim()??"",l=o&&!function(e,t){let r=e.trim().toLowerCase();if(!r)return!0;let n=nQ(t).toLowerCase();return r===n4(t).toLowerCase()||r===n||r===`my ${n}`}(o,t)?o:"",i=e.url.replace(/^https?:\/\//i,"").replace(/^mailto:/i,"").replace(/^www\./i,"").replace(/\/+$/,"");if(n){let e=`@${n}`;return{name:l&&l.toLowerCase()!==n.toLowerCase()?l:n,subline:e,ctaLabel:lu.has(t)?"Subscribe":"Follow"}}return{name:l||i,subline:i,ctaLabel:null}}function lp(e,t){if(t)return nV(t);if(!e)return null;let r=n8(e);return r||(n1(e)?oe(e):null)}e.s(["formatSocialPlatformChoiceCopy",()=>lf],15057),e.s([],80464);var lh=e.i(43476);let lb={links:"Links",shop:"Shop"};function lg({tabs:e,active:t,onChange:r,textColor:n,backgroundColor:o,borderRadius:l="16px"}){var i;let a,s=c.filter(t=>e[t]);if(s.length<2)return null;let d=s.includes(t)?t:s[0],u=s.indexOf(d);return(0,lh.jsx)("div",{className:"flex items-center justify-center px-4 pt-2 pb-4",style:{"--surface-text":n,"--surface-bg":o},children:(0,lh.jsx)("div",{role:"tablist","aria-label":"Page sections",className:"box-border flex h-12 w-[min(13.5rem,70%)] items-stretch border p-1",style:{backgroundColor:o,borderRadius:l,borderColor:"color-mix(in srgb, var(--surface-text) 22%, transparent)"},children:(0,lh.jsxs)("div",{className:"relative grid h-full w-full",style:{gridTemplateColumns:`repeat(${s.length}, minmax(0, 1fr))`},children:[(0,lh.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-0 left-0 will-change-transform motion-reduce:!transition-none",style:{width:`${100/s.length}%`,borderRadius:Number.isFinite(a=parseInt(i=l,10))?`${Math.max(0,a-4)}px`:i,backgroundColor:"color-mix(in srgb, var(--surface-text) 14%, var(--surface-bg))",transform:`translateX(${100*u}%)`,transition:"transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1)"}}),s.map(e=>{let t=e===d;return(0,lh.jsx)("button",{type:"button",role:"tab","aria-selected":t,onClick:()=>r(e),className:"relative z-10 flex h-full min-w-0 flex-1 items-center justify-center whitespace-nowrap px-3 text-center text-sm font-semibold tracking-wide transition-colors motion-reduce:!transition-none",style:{color:t?"var(--surface-text)":"color-mix(in srgb, var(--surface-text) 42%, var(--surface-bg))",transitionDuration:"320ms"},children:lb[e]},e)})]})})})}var lx=e.i(71645);let ly="cubic-bezier(0.22, 0.61, 0.36, 1)";function lv({ref:e,label:t,active:r,visible:n,animating:o,running:l,offset:i,unmountWhenHidden:a=!1,children:s}){let d=o||!n,c=n&&!(o&&r&&!l),u=o&&n,m=u?{transform:`translateX(${i})`,zIndex:r?2:1,...l?{transition:`transform 320ms ${ly}`}:{}}:d?{transform:"none"}:{};return(0,lh.jsx)("div",{ref:e,role:"tabpanel","aria-label":t,className:["w-full",d?o?"absolute inset-x-0 top-0":"absolute inset-0 overflow-hidden":"",c?"":"invisible opacity-0",d&&!r?"pointer-events-none":"","motion-reduce:!transition-none"].filter(Boolean).join(" "),style:{...m,...c?{}:{contain:"paint"}},"aria-hidden":!r,inert:!r||void 0,children:c||u||!a?s:null})}let l$={links:"Links",shop:"Shop"};function lw({tabs:e,active:t,links:r,shop:n,unmountWhenHidden:o=!1}){let l=c.filter(t=>e[t]),i=l.includes(t)?t:l[0]??"links",[a,s]=(0,lx.useState)(null),[d,u]=(0,lx.useState)(!1),[m,f]=(0,lx.useState)(null),p=(0,lx.useRef)(null),h=(0,lx.useRef)(null),b=(0,lx.useRef)(i),g=(0,lx.useRef)(null),x=e=>"shop"===e?h.current:p.current;if((0,lx.useLayoutEffect)(()=>{if(l.length<2){b.current=i,s(null),u(!1),f(null);return}if(b.current===i||null!==a)return;let e=b.current;b.current=i,f(x(e)?.offsetHeight??null),s(e),u(!1)},[a,i,l.length]),(0,lx.useEffect)(()=>{if(null!==a&&!d)return g.current=requestAnimationFrame(()=>{g.current=requestAnimationFrame(()=>{g.current=null;let e=x(i);e&&f(e.offsetHeight),u(!0)})}),()=>{null!==g.current&&cancelAnimationFrame(g.current)}},[a,d,i]),(0,lx.useEffect)(()=>{if(!d)return;let e=window.setTimeout(()=>{s(null),u(!1)},320);return()=>window.clearTimeout(e)},[d]),(0,lx.useLayoutEffect)(()=>{if(null!==a||l.length<2)return;let e=x(i);if(!e)return;let t=()=>{let t=e.offsetHeight;f(e=>e===t?e:t)};if(t(),"undefined"==typeof ResizeObserver)return;let r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[a,i,l.length]),l.length<2)return(0,lh.jsx)(lh.Fragment,{children:"shop"===i?n:r});let y=null!==a,v=y&&l.indexOf(i)>l.indexOf(a),$=d?"0%":v?"100%":"-100%",w=d?v?"-100%":"100%":"0%";return(0,lh.jsx)("div",{className:["relative w-full",y?"overflow-hidden overflow-x-clip motion-reduce:!transition-none":"overflow-visible"].join(" "),style:{...y?{clipPath:"inset(0)"}:{},...null!==m?{height:m}:{},...y&&null!==m?{transition:`height 320ms ${ly}`}:{}},children:l.map(e=>(0,lh.jsx)(lv,{ref:"shop"===e?h:p,label:l$[e],active:e===i,visible:e===i||e===a,animating:y,running:d,offset:e===i?$:e===a?w:"0%",unmountWhenHidden:o,children:"shop"===e?n:r},e))})}var lk=e.i(74080);let lC=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},lj=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var lN={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let lS=(0,lx.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:l,iconNode:i,...a},s)=>(0,lx.createElement)("svg",{ref:s,...lN,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:lj("lucide",o),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(a)&&{"aria-hidden":"true"},...a},[...i.map(([e,t])=>(0,lx.createElement)(e,t)),...Array.isArray(l)?l:[l]])),lP=(e,t)=>{let r=(0,lx.forwardRef)(({className:r,...n},o)=>(0,lx.createElement)(lS,{ref:o,iconNode:t,className:lj(`lucide-${lC(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...n}));return r.displayName=lC(e),r},lI=lP("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),lE=lP("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),lT=lP("shopping-bag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]),lL=lP("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
3],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),lR={backgroundColor:"#ffffff",textColor:"#000000",borderRadius:"16px",blockBackgroundColor:"#ffffff"};e.i(97471),e.i(25150),e.i(67601);let lM=/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/,lA=/^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/;function l_(e){var t,r,n,o,l,i,a,s;let d=e.trim(),c=d.match(lA);if(c)return{r:parseInt(c[1],10),g:parseInt(c[2],10),b:parseInt(c[3],10),a:parseFloat(c[4])};let u=d.match(lM);return u?{r:parseInt(u[1],10),g:parseInt(u[2],10),b:parseInt(u[3],10),a:1}:(t=d.replace("#",""),/^[0-9a-fA-F]{8}$/.test(t)?{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:parseInt(t.slice(6,8),16)/255}:/^[0-9a-fA-F]{6}$/.test(t)?{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:1}:/^[0-9a-fA-F]{4}$/.test(t)?{r:parseInt((r=t[0])+r,16),g:parseInt((n=t[1])+n,16),b:parseInt((o=t[2])+o,16),a:parseInt((l=t[3])+l,16)/255}:/^[0-9a-fA-F]{3}$/.test(t)?{r:parseInt((i=t[0])+i,16),g:parseInt((a=t[1])+a,16),b:parseInt((s=t[2])+s,16),a:1}:null)}let lO={bg:"rgb(107, 114, 128)",border:"rgb(75, 85, 99)"},lz={bg:"rgb(229, 231, 235)",border:"rgb(209, 213, 219)"};function lF(e){var t;let r=l_(e);return r?(t=r.r,(.299*t+.587*r.g+.114*r.b)/255):.5}function lD(e,t){let r=l_(e);return r?function({r:e,g:t,b:r,a:n}){return`rgba(${e}, ${t}, ${r}, ${n})`}({...r,a:Math.round(r.a*t*100)/100}):e}let lB=(0,lx.memo)(function({block:e,theme:t=lR,isHovered:r=!1,isSelected:n=!1,isDragging:o=!1,isBlockBeingEdited:l=!1,onHeightChange:i}){let{data:a}=e,s=a.text,d=a.font?.fontSize??18,c=a.font?.alignment??"left",u=t.titleTextColor??t.textColor,{bg:m,border:f}=lF(u)>.5?lO:lz,p=r||!l&&n,h=(0,lx.useRef)(null),b=(0,lx.useRef)(0),g=(0,lx.useCallback)(()=>{if(!h.current||!i)return;let e=h.current.offsetHeight;e>0&&e!==b.current&&(b.current=e,i(e))},[i]);return(0,lx.useLayoutEffect)(()=>{if(b.current=0,!h.current)return;g();let e=new ResizeObserver(g);return e.observe(h.current),()=>e.disconnect()},[s,d,c,g]),(0,lh.jsxs)("div",{className:"relative w-full h-full",children:[(0,lh.jsx)("div",{"data-title-hover-bg":!0,"data-visible":o||r||!l&&n?"true":"false",className:"absolute inset-0",style:{backgroundColor:m,border:`1px solid ${f}`,borderRadius:"8px"}}),(0,lh.jsx)("div",{"data-title-content":!0,"data-title-align":c,className:"relative w-full h-full flex items-center transition-[padding] duration-150 ease-out",style:{paddingLeft:p&&"left"===c?28:0,paddingRight:p&&"right"===c?28:0},children:(0,lh.jsx)("h2",{ref:h,className:"w-full font-semibold leading-tight px-1 transition-[font-size] duration-200 ease-in-out",style:{color:u,fontSize:`${d}px`,textAlign:c},children:s||" "})})]})});function lU(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var l=t.length;for(r=0;r<l;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}(e))&&(n&&(n+=" "),n+=t);return n}e.s(["clsx",()=>lU],7670);let lH=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),lW=[],lG=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let n=e[t],o=r.nextPart.get(n);if(o){let r=lG(e,t+1,o);if(r)return r}let l=r.validators;if(null===l)return;let i=0===t?e.join("-"):e.slice(t).join("-"),a=l.length;for(let e=0;e<a;e++){let t=l[e];if(t.validator(i))return t.classGroupId}},lq=(e,t)=>{let r=lH();for(let n in e)lV(e[n],r,n,t);return r},lV=(e,t,r,n)=>{let o=e.length;for(let l=0;l<o;l++)lK(e[l],t,r,n)},lK=(e,t,r,n)=>{"string"==typeof e?lY(e,t,r):"function"==typeof e?lZ(e,t,r,n):lX(e,t,r,n)},lY=(e,t,r)=>{(""===e?t:lJ(t,e)).classGroupId=r},lZ=(e,t,r,n)=>{lQ(e)?lV(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},lX=(e,t,r,n)=>{let o=Object.entries(e),l=o.length;for(let e=0;e<l;e++){let[l,i]=o[e];lV(i,lJ(t,l),r,n)}},lJ=(e,t)=>{let r=e,n=t.split("-"),o=n.length;for(let e=0;e<o;e++){let t=n[e],o=r.nextPart.get(t);o||(o=lH(),r.nextPart.set(t,o)),r=o}return r},lQ=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,l0=[],l1=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),l2=/\s+/,l3=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=l3(e[n]))&&(r&&(r+=" "),r+=t);return r},l4=[],l5=e=>{let t=t=>t[e]||l4;return t.isThemeGetter=!0,t},l8=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,l9=/^\((?:(\w[\w-]*):)?(.+)\)$/i,l6=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,l7=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ie=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,it=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ir=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,il=e=>l6.test(e),ii=e=>!!e&&!Number.isNaN(Number(e)),ia=e=>!!e&&Number.isInteger(Number(e)),is=e=>e.endsWith("%")&&ii(e.slice(0,-1)),id=e=>l7.test(e),ic=()=>!0,iu=e=>ie.test(e)&&!it.test(e),im=()=>!1,ip=e=>ir.test(e),ih=e=>io.test(e),ib=e=>!iy(e)&&!iS(e),ig=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),ix=e=>iA(e,iF,im),iy=e=>l8.test(e),iv=e=>iA(e,iD,iu),i$=e=>iA(e,iB,ii),iw=e=>
3iA(e,iH,ic),ik=e=>iA(e,iU,im),iC=e=>iA(e,iO,im),ij=e=>iA(e,iz,ih),iN=e=>iA(e,iW,ip),iS=e=>l9.test(e),iP=e=>i_(e,iD),iI=e=>i_(e,iU),iE=e=>i_(e,iO),iT=e=>i_(e,iF),iL=e=>i_(e,iz),iR=e=>i_(e,iW,!0),iM=e=>i_(e,iH,!0),iA=(e,t,r)=>{let n=l8.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},i_=(e,t,r=!1)=>{let n=l9.exec(e);return!!n&&(n[1]?t(n[1]):r)},iO=e=>"position"===e||"percentage"===e,iz=e=>"image"===e||"url"===e,iF=e=>"length"===e||"size"===e||"bg-size"===e,iD=e=>"length"===e,iB=e=>"number"===e,iU=e=>"family-name"===e,iH=e=>"number"===e||"weight"===e,iW=e=>"shadow"===e,iG=((e,...t)=>{let r,n,o,l,i=e=>{let t=n(e);if(t)return t;let l=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:l,postfixLookupClassGroupIds:i}=t,a=[],s=e.trim().split(l2),d="";for(let e=s.length-1;e>=0;e-=1){let t,c=s[e],{isExternal:u,modifiers:m,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:h}=r(c);if(u){d=c+(d.length>0?" "+d:d);continue}let b=!!h;if(b){let e=(t=n(p.substring(0,h)))&&i[t]?n(p):void 0;e&&e!==t&&(t=e,b=!1)}else t=n(p);if(!t){if(!b||!(t=n(p))){d=c+(d.length>0?" "+d:d);continue}b=!1}let g=0===m.length?"":1===m.length?m[0]:l(m).join(":"),x=f?g+"!":g,y=x+t;if(a.indexOf(y)>-1)continue;a.push(y);let v=o(t,b);for(let e=0;e<v.length;++e){let t=v[e];a.push(x+t)}d=c+(d.length>0?" "+d:d)}return d})(e,r);return o(e,l),l};return l=a=>{var s;let d;return n=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),o=(o,l)=>{r[o]=l,++t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}})((s=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t,r=[],n=0,o=0,l=0,i=e.length;for(let a=0;a<i;a++){let i=e[a];if(0===n&&0===o){if(":"===i){r.push(e.slice(l,a)),l=a+1;continue}if("/"===i){t=a;continue}}"["===i?n++:"]"===i?n--:"("===i?o++:")"===i&&o--}let a=0===r.length?e:e.slice(l),s=a,d=!1;return a.endsWith("!")?(s=a.slice(0,-1),d=!0):a.startsWith("!")&&(s=a.slice(1),d=!0),l1(r,d,s,t&&t>l?t-l:void 0)};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):l1(l0,!1,t,void 0,!0)}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n})(s),sortModifiers:(d=new Map,s.orderSensitiveModifiers.forEach((e,t)=>{d.set(e,1e6+t)}),e=>{let t=[],r=[];for(let n=0;n<e.length;n++){let o=e[n],l="["===o[0],i=d.has(o);l||i?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(o)):r.push(o)}return r.length>0&&(r.sort(),t.push(...r)),t}),postfixLookupClassGroupIds:(e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t})(s),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return lq(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,n,o;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(n=(t=r.slice(1,-1)).indexOf(":"),(o=t.slice(0,n))?"arbitrary.."+o:void 0)}let n=e.split("-"),o=+(""===n[0]&&n.length>1);return lG(n,o,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=n[e],o=r[e];if(t){if(o){let e=Array(o.length+t.length);for(let t=0;t<o.length;t++)e[t]=o[t];for(let r=0;r<t.length;r++)e[o.length+r]=t[r];return e}return t}return o||lW}return r[e]||lW}}})(s)}).cache.get,o=r.cache.set,l=i,i(a)},(...e)=>l(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=l3(t))&&(o&&(o+=" "),o+=r);return o})(...e))})(()=>{let e=l5("color"),t=l5("font"),r=l5("text"),n=l5("font-weight"),o=l5("tracking"),l=l5("leading"),i=l5("breakpoint"),a=l5("container"),s=l5("spacing"),d=l5("radius"),c=l5("shadow"),u=l5("inset-shadow"),m=l5("text-shadow"),f=l5("drop-shadow"),p=l5("blur"),h=l5("perspective"),b=l5("aspect"),g=l5("ease"),x=l5("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],$=()=>[...v(),iS,iy],w=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],C=()=>[iS,iy,s],j=()=>[il,"full","auto",...C()],N=()=>[ia,"none","subgrid",iS,iy],S=()=>["auto",{span:["full",ia,iS,iy]},ia,iS,iy],P=()=>[ia,"auto",iS,iy],I=()=>["auto","min","max","fr",iS,iy],E=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],T=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...C()],R=()=>[il,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],M=()=>[il,"screen","full","dvw","lvw","svw","min","max","fit",...C()],A=()=>[il,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],_=()=>[e,iS,iy],O=()=>[...v(),iE,iC,{position:[iS,iy]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",iT,ix,{size:[iS,iy]}],D=()=>[is,iP,iv],B=()=>["","none","full",d,iS,iy],U=()=>
vendor: 7,215 bytes, line 3
3["",ii,iP,iv],H=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[ii,is,iE,iC],q=()=>["","none",p,iS,iy],V=()=>["none",ii,iS,iy],K=()=>["none",ii,iS,iy],Y=()=>[ii,iS,iy],Z=()=>[il,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[id],breakpoint:[id],color:[ic],container:[id],"drop-shadow":[id],ease:["in","out","in-out"],font:[ib],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[id],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[id],shadow:[id],spacing:["px",ii],text:[id],"text-shadow":[id],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",il,iy,iS,b]}],container:["container"],"container-type":[{"@container":["","normal","size",iS,iy]}],"container-named":[ig],columns:[{columns:[ii,iy,iS,a]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:$()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{"inset-s":j(),start:j()}],end:[{"inset-e":j(),end:j()}],"inset-bs":[{"inset-bs":j()}],"inset-be":[{"inset-be":j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[ia,"auto",iS,iy]}],basis:[{basis:[il,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ii,il,"auto","initial","none",iy]}],grow:[{grow:["",ii,iS,iy]}],shrink:[{shrink:["",ii,iS,iy]}],order:[{order:[ia,"first","last","none",iS,iy]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:S()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:S()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...E(),"normal"]}],"justify-items":[{"justify-items":[...T(),"normal"]}],"justify-self":[{"justify-self":["auto",...T()]}],"align-content":[{content:["normal",...E()]}],"align-items":[{items:[...T(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...T(),{baseline:["","last"]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...T(),"baseline"]}],"place-self":[{"place-self":["auto",...T()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mbs:[{mbs:L()}],mbe:[{mbe:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:R()}],"inline-size":[{inline:["auto",...M()]}],"min-inline-size":[{"min-inline":["auto",...M()]}],"max-inline-size":[{"max-inline":["none",...M()]}],"block-size":[{block:["auto",...A()]}],"min-block-size":[{"min-block":["auto",...A()]}],"max-block-size":[{"max-block":["none",...A()]}],w:[{w:[a,"screen",...R()]}],"min-w":[{"min-w":[a,"screen","none",...R()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...R()]}],h:[{h:["screen","lh",...R()]}],"min-h":[{"min-h":["screen","lh","none",...R()]}],"max-h":[{"max-h":["screen","lh",...R()]}],"font-size":[{text:["base",r,iP,iv]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,iM,iw]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",is,iy]}],"font-family":[{font:[iI,ik,t]}],"font-features":[{"font-features":[iy]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,iS,iy]}],"line-clamp":[{"line-clamp":[ii,"none",iS,i$]}],leading:[{leading:[l,...C()]}],"list-image":[{"list-image":["none",iS,iy]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",iS,iy]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:[ii,"from-font","auto",iS,iv]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[ii,"auto",iS,iy]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"tab-size":[{tab:[ia,iS,iy]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",iS,iy]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",iS,iy]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ia,iS,iy],radial:["",iS,iy],conic:[ia,iS,iy]},iL,ij]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:D()}
vendor: 7,355 bytes, line 3
3],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...H(),"hidden","none"]}],"divide-style":[{divide:[...H(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...H(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ii,iS,iy]}],"outline-w":[{outline:["",ii,iP,iv]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",c,iR,iN]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",u,iR,iN]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[ii,iv]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",m,iR,iN]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[ii,iS,iy]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ii]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[iS,iy]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":v()}],"mask-image-conic-pos":[{"mask-conic":[ii]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",iS,iy]}],filter:[{filter:["","none",iS,iy]}],blur:[{blur:q()}],brightness:[{brightness:[ii,iS,iy]}],contrast:[{contrast:[ii,iS,iy]}],"drop-shadow":[{"drop-shadow":["","none",f,iR,iN]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",ii,iS,iy]}],"hue-rotate":[{"hue-rotate":[ii,iS,iy]}],invert:[{invert:["",ii,iS,iy]}],saturate:[{saturate:[ii,iS,iy]}],sepia:[{sepia:["",ii,iS,iy]}],"backdrop-filter":[{"backdrop-filter":["","none",iS,iy]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[ii,iS,iy]}],"backdrop-contrast":[{"backdrop-contrast":[ii,iS,iy]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ii,iS,iy]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ii,iS,iy]}],"backdrop-invert":[{"backdrop-invert":["",ii,iS,iy]}],"backdrop-opacity":[{"backdrop-opacity":[ii,iS,iy]}],"backdrop-saturate":[{"backdrop-saturate":[ii,iS,iy]}],"backdrop-sepia":[{"backdrop-sepia":["",ii,iS,iy]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",iS,iy]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ii,"initial",iS,iy]}],ease:[{ease:["linear","initial",g,iS,iy]}],delay:[{delay:[ii,iS,iy]}],animate:[{animate:["none",x,iS,iy]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,iS,iy]}],"perspective-origin":[{"perspective-origin":$()}],rotate:[{rotate:V()}],"rotate-x":[{"rotate-x":V()}],"rotate-y":[{"rotate-y":V()}],"rotate-z":[{"rotate-z":V()}],scale:[{scale:K()}],"scale-x":[{"scale-x":K()}],"scale-y":[{"scale-y":K()}],"scale-z":[{"scale-z":K()}],"scale-3d":["scale-3d"],skew:[{skew:Y()}],"skew-x":[{"skew-x":Y()}],"skew-y":[{"skew-y":Y()}],transform:[{transform:[iS,iy,"","none","gpu","cpu"]}],"transform-origin":[{origin:$()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],zoom:[{zoom:[ia,iS,iy]}],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}
3],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",iS,iy]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":_()}],"scrollbar-track-color":[{"scrollbar-track":_()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",iS,iy]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[ii,iP,iv,i$]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function iq(...e){return iG(lU(e))}function iV(e){let t=e.replace(/\/+$/,"");return e=>{if(e.startsWith("http://")||e.startsWith("https://"))return e;let r=e.startsWith("/")?e:`/${e}`;return`${t}${r}`}}e.s(["twMerge",()=>iG],19056),e.s(["createCdnMediaResolver",()=>iV],73925);let iK=e=>e;function iY(e){iK=e}function iZ(e){return e?iK(e):null}function iX({url:e,className:t,size:r=36,imageClassName:n,fallbackToCoverPlaceholder:o=!1,placeholderSrc:l="/dashboard-assets/placeholders/website.svg"}){let[i,a]=(0,lx.useState)(!e);if((0,lx.useEffect)(()=>{a(!e)},[e]),i&&o)return(0,lh.jsx)("div",{className:iq("flex items-center justify-center overflow-hidden",t),children:(0,lh.jsx)("img",{src:l,alt:"",className:"h-full w-full object-cover"})});if(!e)return null;let s=e.startsWith("/");return(0,lh.jsx)("div",{className:iq("flex items-center justify-center",t),children:(0,lh.jsx)("img",{src:e,alt:"",width:r,height:r,className:iq("object-contain",n??(s?"rounded-sm":void 0)),onError:e=>{o?a(!0):e.target.style.display="none"}})})}e.s(["configureMediaResolver",()=>iY,"getMediaUrl",()=>
3iZ],93617);let iJ=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},iQ=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var i0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i1=(0,lx.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:l,iconNode:i,...a},s)=>(0,lx.createElement)("svg",{ref:s,...i0,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:iQ("lucide",o),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(a)&&{"aria-hidden":"true"},...a},[...i.map(([e,t])=>(0,lx.createElement)(e,t)),...Array.isArray(l)?l:[l]])),i2=(e,t)=>{let r=(0,lx.forwardRef)(({className:r,...n},o)=>(0,lx.createElement)(i1,{ref:o,iconNode:t,className:iQ(`lucide-${iJ(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...n}));return r.displayName=iJ(e),r},i3=i2("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);function i4(e,t,r){return"content"===ns({imageLayout:t,hasPadding:!!r})?e.blockBackgroundColor??"#ffffff":void 0}function i5(e){return!!e}function i8(e){return lF(e)>.5?"#000000":"#ffffff"}function i9({isEditor:e,isPreview:t,isSelectedForInteraction:r,isPublicPage:n,url:o}){return e?{Wrapper:"div",linkProps:{role:"button",tabIndex:0}}:n?{Wrapper:"a",linkProps:{href:o,target:"_blank",rel:"noopener noreferrer"}}:t&&!r?{Wrapper:"div",linkProps:{role:"button",tabIndex:0}}:{Wrapper:"a",linkProps:{href:o,target:"_blank",rel:"noopener noreferrer"}}}function i6(e){return e.buttonColor??e.textColor}function i7(e,t){return t&&null!=e.buttonBottomInsetPx?e.buttonBottomInsetPx:e.textPaddingY}function ae(e){let t=e??0;return 0===t?0:Math.min(Math.max(Math.round(.5*t),4),16)}function at(e){let t=e??0;return 0===t?0:Math.min(Math.max(Math.round(.4*t),4),12)}function ar(e){return Number.isInteger(e)?`$${e.toLocaleString("en-US")}`:`$${e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function an(e,t){if(null==e||e<=0)return null;if("fixed"===t){let t=e.toLocaleString("en-US",{minimumFractionDigits:2*(e%1!=0),maximumFractionDigits:2});return`$${t} OFF`}return`${Math.round(e)}% OFF`}function ao({promoValue:e,promoCode:t,promoType:r,buttonColor:n,borderRadius:o,hasBanner:l,paddingOffset:i=0,isLeftLayout:a=!1}){let s=0===o?0:Math.min(Math.max(Math.round(.4*o),4),12),d=an(e,r),c=!!t;return null!==d||c?(0,lh.jsxs)("div",{className:"absolute z-10 flex items-center gap-1 px-2 py-1 text-[11px] font-bold leading-none tracking-wide transition-all duration-300 ease-in-out",style:{backgroundColor:n,color:i8(n),borderRadius:`${s}px`,top:8+i,right:(a?i>0?-4:4:l?52:10)+i},children:[d&&(0,lh.jsx)("span",{children:d}),c&&(0,lh.jsx)(i3,{className:"h-3 w-3"})]}):null}function al({link:e,theme:t,isEditor:r,isPreview:n,contentBorderRadius:o,onItemClick:l,isPublicPage:i,isSelectedForInteraction:a,block:s,borderRadius:d,containerHeight:c,isCarousel:u,hasBanner:m}){let f,p,h,[b,g]=(0,lx.useState)(!1),x=e.displayImage?.path,y=x?iZ(x):null,v=!!y&&!b,$=v?null:nV(e.platform??"")??lp(e.url),w=v?"#ffffff":n9(e.displayIconPlatform??e.platform)??n7(e.url),k=e.displayTitle,C=e.displayPricing?.price,j=e.displayPricing?.promoValue,N=e.displayPricing?.promoCode,S=e.displayPricing?.promoType,P=s?.style?.buttonText,{Wrapper:I,linkProps:E}=i9({isEditor:r,isPreview:n,isSelectedForInteraction:a,isPublicPage:i,url:e.url}),T=d??0,L=ae(T),R=at(T),M=i6(t),A=i8(M),_=null!=C,O=!!N,z=null!=j&&j>0||O,F=rX(s?.style?.badge,!!e.url||!!e.platform),D=u?m??!1:F.reservesCorner,B=null!=c&&c<100,U=z&&!B,H=z&&B;return(0,lh.jsxs)(I,{className:"relative block h-full w-full overflow-hidden transition-[border-radius] duration-300 ease-in-out",style:{borderRadius:o,backgroundColor:t.blockBackgroun
3dColor??void 0},...E,onClick:t=>l?.(e,t),children:[U&&(0,lh.jsx)(ao,{promoValue:j,promoCode:N,promoType:S,buttonColor:M,borderRadius:T,hasBanner:D}),v?(0,lh.jsx)("img",{src:y,alt:k??"",loading:"lazy",decoding:"async",className:"absolute inset-0 h-full w-full",style:nl(e.displayImage?.crop),onError:()=>g(!0)}):(0,lh.jsx)("div",{className:"absolute inset-0 flex h-full w-full items-center justify-center",style:{backgroundColor:w},children:(0,lh.jsx)(iX,{url:$,className:"h-full w-full",size:48,imageClassName:"rounded-lg",fallbackToCoverPlaceholder:!0})}),(f=!!k||null!=C||!!P,(0,lh.jsx)("div",{className:"pointer-events-none absolute inset-0 transition-opacity duration-300 ease-in-out",style:{opacity:+!!f,background:v?"linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%)":"linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.4) 10%, rgba(0,0,0,0.2) 22%, rgba(0,0,0,0.08) 34%, rgba(0,0,0,0.03) 42%, rgba(0,0,0,0) 60%)"}})),(0,lh.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex min-h-[52px] items-end justify-between gap-2 px-4 pb-[14px] pt-6",children:[(0,lh.jsxs)("div",{className:"min-w-0 flex-1",children:[k&&(0,lh.jsx)("p",{className:iq("text-[14px] font-semibold leading-normal",_?"line-clamp-1":"line-clamp-2"),style:{color:"#ffffff"},children:k}),(_||H)&&(0,lh.jsxs)("div",{className:"mt-0 flex items-center gap-2",children:[_&&(0,lh.jsx)("p",{className:"text-[14px] leading-normal",style:{color:"rgba(255,255,255,0.9)"},children:ar(C)}),H&&(0,lh.jsxs)("span",{className:"flex items-center gap-1 px-2 py-1 text-[11px] font-bold leading-none tracking-wide",style:{backgroundColor:M,color:A,borderRadius:`${R}px`},children:[(p=an(j,S))?(0,lh.jsx)("span",{children:p}):null,O&&(0,lh.jsx)(i3,{className:"h-3 w-3"})]})]})]}),!!P&&(h=ng(P),(0,lh.jsx)("button",{className:"flex-shrink-0 px-4 py-2 text-[14px] font-semibold leading-[1.2] transition-all hover:opacity-90",style:{backgroundColor:M,color:A,borderRadius:`${L}px`},children:h||" "}))]})]})}function ai({text:e}){let t=(0,lx.useRef)(null),[r,n]=(0,lx.useState)(e);return(0,lx.useLayoutEffect)(()=>{n(e)},[e]),(0,lx.useEffect)(()=>{let r=t.current,o=r?.parentElement;if(!r||!o)return;let l=null,i=null,a=()=>{if(l||(i=(l=document.createElement("canvas")).getContext("2d")),!i)return;let t=window.getComputedStyle(o);i.font=`${t.fontStyle} ${t.fontVariant} ${t.fontWeight} ${t.fontSize} ${t.fontFamily}`;let r=parseFloat(t.paddingLeft||"0")+parseFloat(t.paddingRight||"0"),a=parseFloat(t.maxWidth),s=Number.isFinite(a)&&a>0?a-r:o.clientWidth-r;s<=0||(i.measureText(e).width<=s+1?n(e):n(function(e,t,r){if(r<=0||!t)return"";if(e.measureText(t).width<=r)return t;let n=0,o=t.length;for(;n<o;){let l=Math.ceil((n+o)/2);e.measureText(t.slice(0,l)).width<=r?n=l:o=l-1}return t.slice(0,n)}(i,e,s)))};a();let s=new ResizeObserver(a);return s.observe(o),()=>s.disconnect()},[e]),(0,lh.jsx)("span",{ref:t,children:r||" "})}function aa({policy:e,title:t,price:r,buttonText:n,textColor:o,buttonBgColor:l,buttonTextColor:i,buttonRadius:a,backgroundColor:s,paddingLeft:d,paddingRight:c,titlePaddingRight:u,availableHeight:m}){var f;let p=!!n,h=null!=r,b=p&&h?e.titleLineClamp.withButtonAndPrice:p?e.titleLineClamp.withButton:h?e.titleLineClamp.withPrice:e.titleLineClamp.titleOnly,g=function({policy:e,policyClamp:t,availableHeight:r,showButton:n,hasPrice:o}){if(null==r||!(r>0))return t;for(let l=t;l>1;l--)if(function({policy:e,titleLines:t,showButton:r,hasPrice:n}){let o=Math.max(e.titleBlockMinHeight??0,21*t+(n?e.priceGapAbovePx+21:0));return e.textPaddingY+i7(e,r)+o+(r?e.buttonGapAbovePx+33:0)}({policy:e,titleLines:l,showButton:n,hasPrice:o})<=r)return l;return 1}({policy:e,policyClamp:b,availableHeight:m,showButton:p,hasPrice:h}),x=p&&null!=e.buttonBottomInsetPx;return(0,lh.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",style:{justifyContent:"top"===(f=e.textAlignment)?"flex-start":"bottom"===f?"flex-end":"center",paddingTop:e.textPaddingY,paddingBottom:i7(e,p),paddingLeft:d??e.textPaddingX,paddingRight:c??e.textPaddingX,...s?{backgroundColor:s}:void 0},children:[(0,lh.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center"===e.titleBlockInternalAlignment?"center":"flex-start",...null!=e.titleBlockMinHeight?{minHeight:e.titleBlockMinHeight}:void 0,...null!=u?{paddingRight:u}:void 0,...x?{marginBottom:e.buttonGapAbovePx}:void 0},children:[t&&(0,lh.jsx)("p",{className:"text-[14px] font-semibold leading-normal",style:{margin:0,color:o,display:"-webkit-box",WebkitLineClamp:g,WebkitBoxOrient:"vertical",overflow:"hidden"},children:t}),h&&(0,lh.jsx)("p",{className:"text-[14px] leading-normal",style:{margin:0,color:o,marginTop:e.priceGapAbovePx},children:ar(r)})]}),p&&(0,lh.jsx)("button",{className:"w-full px-3 py-2 text-[14px] font-semibold leading-[1.2] transition-all hover:opacity-90",style:{marginTop:x?"auto":e.buttonGapAbovePx,backgroundColor:l,color:i,borderRadius:`${a}
3px`,overflow:"hidden",whiteSpace:"nowrap"},children:(0,lh.jsx)(ai,{text:ng(n)})})]})}function as({link:e,theme:t,borderRadius:r,isEditor:n,isPreview:o,hasPadding:l,containerHeight:i,block:a,isCarousel:s,onItemClick:d,isPublicPage:c,isSelectedForInteraction:u,hasBanner:m}){var f;let p,[h,b]=(0,lx.useState)(!1),g=iZ(e.displayImage?.path),x=e.displayTitle,y=r??16,{Wrapper:v,linkProps:$}=i9({isEditor:n,isPreview:o,isSelectedForInteraction:u,isPublicPage:c,url:e.url}),w=a?.style?.buttonText,k=eF(a),C=function({policy:e,blockLayout:t,containerHeight:r}){if(null==r||!e.imageHeightRatio)return;let n=tV(t)??tJ(t),o=null!=n?n*(1-e.imageHeightRatio):null;return Math.max(50,null!=o?r-o:r*e.imageHeightRatio)}({policy:k,blockLayout:a?.style?.blockLayout,containerHeight:i}),j=function({policy:e,blockLayout:t}){if(!e.imageHeightRatio)return;let r=tV(t)??tJ(t),n=null!=r?r*(1-e.imageHeightRatio):null,o=null!=n?`calc(100% - ${n}px)`:`${100*e.imageHeightRatio}%`;return`max(50px, ${o})`}({policy:k,blockLayout:a?.style?.blockLayout}),N=!!g&&!h,S=nV(e.displayIconPlatform??e.platform??"")??lp(e.url,e.displayIconPlatform),P=N?"#ffffff":n9(e.displayIconPlatform??e.platform)??n7(e.url),I=e.displayPricing?.price,E=e.displayPricing?.promoValue,T=e.displayPricing?.promoCode,L=e.displayPricing?.promoType,R=null!=k.buttonBottomInsetPx?(f=k.buttonBottomInsetPx,0===(p=y??0)?0:Math.min(p,Math.max(8,Math.round(p-f)))):ae(y),M=i6(t),A=i8(M),_=12*!!l,O=l?Math.max(0,y-4):y,z=s?l?`${O}px`:`${O}px ${O}px 0 0`:l?`${O}px`:`${y}px ${y}px 0 0`,F=rX(a?.style?.badge,!!e.url||!!e.platform),D=s?m??!1:F.reservesCorner;return(0,lh.jsxs)(v,{className:"relative flex h-full flex-col overflow-hidden transition-[border-radius] duration-300 ease-in-out",...$,onClick:t=>d?.(e,t),children:[(null!=E&&E>0||!!T)&&(0,lh.jsx)(ao,{promoValue:E,promoCode:T,promoType:L,buttonColor:M,borderRadius:y,hasBanner:D,paddingOffset:_}),(0,lh.jsx)("div",{className:"relative w-full flex-shrink-0 overflow-hidden transition-[height,border-radius] duration-300 ease-in-out",style:{...null!=j?{height:j}:null!=C?{height:`${C}px`}:void 0},children:(0,lh.jsx)("div",{className:"absolute flex items-center justify-center overflow-hidden transition-all duration-300 ease-in-out",style:{top:_,left:_,right:_,height:`calc(100% - ${_}px)`,borderRadius:z,...!N?{backgroundColor:P}:void 0},children:N?(0,lh.jsx)("img",{src:g,alt:x??"",loading:"lazy",decoding:"async",className:"h-full w-full",style:nl(e.displayImage?.crop),onError:()=>b(!0)}):(0,lh.jsx)(iX,{url:S,className:"h-full w-full",size:44,imageClassName:"rounded-lg",fallbackToCoverPlaceholder:!0})})}),(0,lh.jsx)(aa,{policy:k,title:x,price:I,buttonText:w,textColor:t.textColor,buttonBgColor:M,buttonTextColor:A,buttonRadius:R,backgroundColor:i4(t,"top",l),availableHeight:null!=i&&null!=C?i-C:void 0})]})}function ad({link:e,theme:t,borderRadius:r,isEditor:n,isPreview:o,hasPadding:l,containerHeight:i,block:a,isCarousel:s,onItemClick:d,isPublicPage:c,isSelectedForInteraction:u,hasBanner:m}){let[f,p]=(0,lx.useState)(!1),h=iZ(e.displayImage?.path),b=e.displayTitle,g=r??16,{Wrapper:x,linkProps:y}=i9({isEditor:n,isPreview:o,isSelectedForInteraction:u,isPublicPage:c,url:e.url}),v=!!h&&!f,$=nV(e.displayIconPlatform??e.platform??"")??lp(e.url,e.displayIconPlatform),w=v?"#ffffff":n9(e.displayIconPlatform??e.platform)??n7(e.url),k=a?.style?.buttonText,C=e.displayPricing?.price,j=e.displayPricing?.promoValue,N=e.displayPricing?.promoCode,S=e.displayPricing?.promoType,P=ae(g),I=i6(t),E=i8(I),T=12*!!l,L=l?Math.max(0,g-4):g,R=s?l?`${L}px`:`${L}px 0 0 ${L}px`:l?`${L}px`:`${g}px 0 0 ${g}px`,M=rX(a?.style?.badge,!!e.url||!!e.platform),A=s?m??!1:M.showCircle,_=!s&&M.showRibbon,O=eF(a),z=A||_?48-O.textPaddingX:void 0;return(0,lh.jsxs)(x,{className:"relative flex h-full overflow-hidden transition-[border-radius] duration-300 ease-in-out",...y,onClick:t=>d?.(e,t),children:[(0,lh.jsxs)("div",{className:"relative w-1/3 flex-shrink-0 overflow-hidden transition-[border-radius] duration-300 ease-in-out",children:[(null!=j&&j>0||!!N)&&(0,lh.jsx)(ao,{promoValue:j,promoCode:N,promoType:S,buttonColor:I,borderRadius:g,hasBanner:!1,paddingOffset:T,isLeftLayout:!0}),(0,lh.jsx)("div",{className:"absolute flex items-center justify-center overflow-hidden transition-all duration-300 ease-in-out",style:{to
3p:T,left:T,right:0,bottom:T,borderRadius:R,...!v?{backgroundColor:w}:void 0},children:v?(0,lh.jsx)("img",{src:h,alt:b??"",loading:"lazy",decoding:"async",className:"h-full w-full",style:nl(e.displayImage?.crop),onError:()=>p(!0)}):(0,lh.jsx)(iX,{url:$,className:"h-full w-full",size:44,imageClassName:"rounded-lg",fallbackToCoverPlaceholder:!0})})]}),(0,lh.jsx)(aa,{policy:O,title:b,price:C,buttonText:k,textColor:t.textColor,buttonBgColor:I,buttonTextColor:E,buttonRadius:P,backgroundColor:i4(t,"left",l),paddingRight:O.textPaddingX,paddingLeft:20,titlePaddingRight:z,availableHeight:i})]})}function ac({link:e,theme:t,block:r,borderRadius:n,isEditor:o,isPreview:l,onItemClick:i,isPublicPage:a,isSelectedForInteraction:s,isCarousel:d}){let c,u=e.displayTitle,m=e.displayPricing?.price,f=e.displayPricing?.promoValue,p=e.displayPricing?.promoCode,h=e.displayPricing?.promoType,b=r?.style?.buttonText,g=!!b,{Wrapper:x,linkProps:y}=i9({isEditor:o,isPreview:l,isSelectedForInteraction:s,isPublicPage:a,url:e.url}),v=null!=m,$=!!p,w=null!=f&&f>0||$,k=rX(r?.style?.badge,!!e.url||!!e.platform),C=k.showCircle,j=k.showRibbon,N=g||v||w,S=i6(t),P=i8(S),I=n??16,E=ae(I),T=at(I);if(d){let r,n=g||v||w;return(0,lh.jsxs)(x,{className:iq("relative flex h-full w-full items-center",g?"flex-row":"flex-col",n?"justify-start":"justify-center"),style:{backgroundColor:t.blockBackgroundColor??"#ffffff",padding:`8px ${j?56:12}px 8px ${C?56:12}px`},...y,onClick:t=>i?.(e,t),children:[(0,lh.jsxs)("div",{className:iq("min-w-0 overflow-visible",g&&"flex-1",!g&&n&&"w-full"),children:[u&&(0,lh.jsx)("p",{className:iq("text-[14px] font-semibold leading-normal",n?"text-left":"text-center",v||w||j?"line-clamp-1":"line-clamp-2"),style:{color:t.textColor},children:u}),(v||w)&&(0,lh.jsxs)("div",{className:iq("flex items-center gap-2 overflow-visible",!n&&"justify-center"),style:{minHeight:21},children:[v&&(0,lh.jsx)("p",{className:"text-left text-[14px] leading-normal",style:{color:t.textColor},children:ar(m)}),w&&(0,lh.jsxs)("span",{className:"-translate-y-px flex items-center gap-0.5 px-[5px] py-[3px] text-[10.5px] font-bold leading-none tracking-wide",style:{backgroundColor:S,color:P,borderRadius:`${T}px`},children:[(r=an(f,h))?(0,lh.jsx)("span",{children:r}):null,$&&(0,lh.jsx)(i3,{className:"h-2.5 w-2.5"})]})]})]}),g&&(0,lh.jsx)("button",{className:"ml-2 flex-shrink-0 self-center whitespace-nowrap px-4 py-2 text-center text-[14px] font-semibold leading-[1.2] hover:opacity-90",style:{backgroundColor:S,color:P,borderRadius:`${E}px`,maxWidth:150,overflow:"hidden"},children:(0,lh.jsx)(ai,{text:ng(b)})})]})}return(0,lh.jsxs)(x,{className:iq("relative flex h-full w-full",g?"flex-row":"flex-col",N?"justify-start":"justify-center","items-center"),style:{backgroundColor:t.blockBackgroundColor??"#ffffff",padding:`8px ${!d&&j?56:16}px 8px ${!d&&C?52:16}px`},...y,onClick:t=>i?.(e,t),children:[(0,lh.jsxs)("div",{className:iq("min-w-0 overflow-visible",g&&"flex-1",!g&&N&&"w-full"),children:[u&&(0,lh.jsx)("p",{className:iq("text-[14px] font-semibold leading-normal",N?"text-left":"text-center",v||w?"line-clamp-1":"line-clamp-2"),style:{color:t.textColor},children:u}),(v||w)&&(0,lh.jsxs)("div",{className:iq("flex items-center gap-2 overflow-visible",!N&&"justify-center"),style:{minHeight:21},children:[v&&(0,lh.jsx)("p",{className:"text-left text-[14px] leading-normal",style:{color:t.textColor},children:ar(m)}),w&&(0,lh.jsxs)("span",{className:"-translate-y-px flex items-center gap-0.5 px-[5px] py-[3px] text-[10.5px] font-bold leading-none tracking-wide",style:{backgroundColor:S,color:P,borderRadius:`${T}px`},children:[(c=an(f,h))?(0,lh.jsx)("span",{children:c}):null,$&&(0,lh.jsx)(i3,{className:"h-2.5 w-2.5"})]})]})]}),g&&(0,lh.jsx)("button",{className:"ml-2 flex-shrink-0 self-center whitespace-nowrap px-4 py-2 text-center text-[14px] font-semibold leading-[1.2] hover:opacity-90",style:{backgroundColor:S,color:P,borderRadius:`${E}px`,maxWidth:150,overflow:"hidden"},children:(0,lh.jsx)(ai,{text:ng(b)})})]})}e.s(["DiscountBadge",()=>ao,"FillLayout",()=>al,"LeftLayout",()=>ad,"TextLayout",()=>ac,"TopLayout",()=>as,"formatDiscountText",()=>an,"formatPrice",()=>ar,"getButtonRadiusFromBlockRadius",()=>ae,"getContrastTextColor",()=>i8,"shouldShowLinkButton",()=>i5],9516);let au=(0,lx.memo)(function({block:e,theme:t=lR,hasRibbon:n=!1,onAmountClick:o}){let{data:l}=e,i=r(l.amounts),a=l.title??"Send me a tip",s=e.style?.buttonColor,d=(void 0!==s?s:t.buttonColor)??t.accentColor??t.textColor,c=e.style?.textColor,u=void 0!==c?c:t.textColor,m=ae(parseInt(t.borderRadius??"16",10)||0),f=iq("min-w-0 truncate px-1 py-2 text-sm font-semibold transition-opacity hover:opacity-90",o&&"cursor-pointer"),p={backgroundColor:d,c
3olor:i8(d),borderRadius:`${m}px`};return(0,lh.jsx)("div",{className:"h-full w-full",children:(0,lh.jsxs)("div",{className:"p-4",children:[(0,lh.jsx)("h3",{className:iq("mb-4 truncate text-left text-lg font-semibold",n&&"pr-10"),style:{color:u},children:a||" "}),(0,lh.jsxs)("div",{className:"grid grid-cols-4 gap-2",children:[i.map((e,t)=>(0,lh.jsxs)("button",{type:"button",onClick:o?()=>o(100*e):void 0,className:f,style:p,children:["$",e]},t)),(0,lh.jsx)("button",{type:"button",onClick:o?()=>o(0):void 0,className:f,style:p,children:"Custom"})]})]})})}),am=i2("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),af=i2("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]),ap=i2("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),ah=i2("heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]),ab=i2("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]),ag=i2("gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]),ax=i2("shopping-cart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]),ay=i2("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]),av=i2("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),a$={dollar:"#7acb77",heart:"#f4546a",email:"#f59e0b",cart:"#e67e22",gift:"#9b59b6",ticket:"#1abc9c"};function aw({type:e,className:t}){let r=t??"h-4 w-4 text-white";switch(e){case"heart":return(0,lh.jsx)(ah,{className:r,fill:"currentColor"});case"dollar":return(0,lh.jsx)(ab,{className:r});case"email":return(0,lh.jsx)(av,{className:r});case"cart":return(0,lh.jsx)(ax,{className:r});case"gift":return(0,lh.jsx)(ag,{className:r});case"ticket":return(0,lh.jsx)(ay,{className:r});default:return null}}var ak=e.i(39139);function aC(e){if(!e||"string"!=typeof e)return null;let t=e.trim().toLowerCase();return 2!==t.length?null:t}function aj(e){let t=aC(e);return t?`https://cdn.jsdelivr.net/gh/lipis/[email protected]/flags/4x3/${t}.svg`:null}e.s(["getFlagIconUrl",()=>aj,"toFlagIconsCode",()=>aC],21757);let aN={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
vendor: 25,059 bytes, line 3
3])\\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","[024-7]\\d{7}",[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","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],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)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\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","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],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]|
35[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-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"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))|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","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|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{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"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","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],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
vendor: 17,388 bytes, line 3
3]))|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]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[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(?:(?: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)|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(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|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]|3[129]|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(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|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])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|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","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"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",["20"]],["(\\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]"]],["(\\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",["20"]]],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","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],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",["11|2[16]"],"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","7091\\d{5}|(?:[56]9|[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{
33})(\\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}(?:\\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}
3(?:\\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",["30|(?: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","30|(?: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","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"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|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,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?: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,"[3489]",0,"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{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\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|[3689]\\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}
3)","$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-79]"],"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{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?: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-2478]|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(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|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","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?: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}
3)","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\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})|5(?:0\\d{3}|2[0-2]))\\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}"]]]}};function aS(e,t){e=e.split("-"),t=t.split("-");for(var r=e[0].split("."),n=t[0].split("."),o=0;o<3;o++){var l=Number(r[o]),i=Number(n[o]);if(l>i)return 1;if(i>l)return -1;if(!isNaN(l)&&isNaN(i))return 1;if(isNaN(l)&&!isNaN(i))return -1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var aP={}.constructor;function aI(e){return null!=e&&e.constructor===aP}var aE=/^\d+$/;function aT(e){return(aT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function aL(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function aR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=aT(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=aT(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==aT(t)?t:t+""}(n.key),n)}}function aM(e,t,r){return t&&aR(e.prototype,t),r&&aR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var aA=" ext. ",a_=aM(function e(t){aL(this,e),aU(t),this.metadata=t,aG.call(this,t)},[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(e){return"001"!==e})}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!this.v1&&!this.v2&&!this.v3)return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){e&&(aE.test(e)?n=e:r=e);if(t&&(n=t),r&&"001"!==r){var r,n,o=this.getCountryMetadata(r);if(!o)throw Error("Unknown country: ".concat(r));this.numberingPlan=new aO(o,this)}else if(n){if(!this.hasCallingCode(n))throw Error("Unknown calling code: ".concat(n));this.numberingPlan=new aO(this.getNumberingPlanMetadata(n),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var r=this.nonGeographic()[e];if(r)return r}else{var n=this.countryCallingCodes()[e];
vendor: 5,087 bytes, line 3
3if(n&&1===n.length&&"001"===n[0])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(e){return this.numberingPlan.type(e)}},{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(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),aO=aM(function e(t,r){aL(this,e),this.globalMetadataObject=r,this.metadata=t,aG.call(this,r.metadata)},[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{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(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[]).map(function(t){return new az(t,e)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{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._getDefaultCountryMetadataForThisCallingCode())}},{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()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&aB(this.types(),e))return new aD(aB(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?aA:this.metadata[13]||aA}}]),az=aM(function e(t,r){aL(this,e),this._format=t,this.metadata=r},[{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()||aF.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),aF=/^\(?\$1\)?$/,aD=aM(function e(t,r){aL(this,e),this.type=t,this.metadata=r},[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.t
3ype[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]);function aB(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function aU(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!aI(e)||!aI(e.countries))throw 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(aI(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+aH(e)+": "+e,"."))}var aH=function(e){return aT(e)};function aW(e,t){var r=new a_(t);if(r.hasCountry(e))return r.selectNumberingPlan(e).countryCallingCode();throw Error("Unknown country: ".concat(e))}function aG(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===aS(t,"1.2.0")?this.v2=!0:-1===aS(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}function aq(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function aV(e,t,r){return function e(t,r,n,o){n&&(o=new a_(o.metadata)).selectNumberingPlan(n);var l=o.type(r),i=l&&l.possibleLengths()||o.possibleLengths();if(!i)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===r){if(!o.type("FIXED_LINE"))return e(t,"MOBILE",n,o);var a=o.type("MOBILE");a&&(i=function(e,t){for(var r,n=e.slice(),o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return aq(e,void 0);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?aq(e,void 0):void 0}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=o()).done;){var l=r.value;0>e.indexOf(l)&&n.push(l)}return n.sort(function(e,t){return e-t})}(i,a.possibleLengths()))}else if(r&&!l)return"INVALID_LENGTH";var s=t.length,d=i[0];return d===s?"IS_POSSIBLE":d>s?"TOO_SHORT":i[i.length-1]<s?"TOO_LONG":i.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(e,void 0,t,r)}function aK(e,t){return"IS_POSSIBLE"===aV(e,void 0,t)}function aY(e,t){return e=e||"",RegExp("^(?:"+t+")$").test(e)}function aZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var aX=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function aJ(e,t,r){if(t=t||{},e.country||e.countryCallingCode){var n=new a_(r);n.selectNumberingPlan(e.country||e.countryCallingCode);var o=t.v2?e.nationalNumber:e.phone;if(aY(o,n.nationalNumberPattern())){if(aQ(o,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()||!n.type("MOBILE")||aQ(o,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var l,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return aZ(e,void 0);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?aZ(e,void 0):void 0}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(aX);!(l=i()).done;){var a=l.value;if(aQ(o,a,n))return a}}}}function aQ(e,t,r){var n=r.type(t);return!(!n||!n.pattern()||n.possibleLengths()&&0>n.possibleLengths().indexOf(e.length))&&aY(e,n.pattern())}var a0=/^[A-Z]{2}$/,a1="0-90-9٠-Ù©Û°-Û¹",a2="".concat("-‐-―−ー-").concat("//").concat("..").concat("  ­â€
3‹â ã€€").concat("()()[]\\[\\]").concat("~⁓∼~"),a3="++",a4=RegExp("(["+a1+"])");function a5(e,t,r,n){if(t){var o=new a_(n);o.selectNumberingPlan(t||r);var l=new RegExp(o.IDDPrefix());if(0===e.search(l)){var i=(e=e.slice(e.match(l)[0].length)).match(a4);if(!i||null==i[1]||!(i[1].length>0)||"0"!==i[1])return e}}}function a8(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var r=RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),n=r.exec(e);if(n){var o,l,i,a=n.length-1,s=a>0&&n[a];if(t.nationalPrefixTransformRule()&&s)o=e.replace(r,t.nationalPrefixTransformRule()),a>1&&(l=n[1]);else{var d=n[0];o=e.slice(d.length),s&&(l=n[1])}if(s){var c=e.indexOf(n[1]);e.slice(0,c)===t.numberingPlan.nationalPrefix()&&(i=t.numberingPlan.nationalPrefix())}else i=n[0];return{nationalNumber:o,nationalPrefix:i,carrierCode:l}}}return{nationalNumber:e}}function a9(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a6(e,t,r){for(var n,o=new a_(r),l=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return a9(e,void 0);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a9(e,void 0):void 0}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=l()).done;){var i=n.value;if(o.selectNumberingPlan(i),o.leadingDigits()){if(e&&0===e.search(o.leadingDigits()))return i}else if(aJ({phone:e,country:i},void 0,o.metadata))return i}}function a7(e,t){var r=t.nationalNumber,n=t.metadata,o=n.getCountryCodesForCallingCode(e);if(o)return 1===o.length?o[0]:a6(r,o,n.metadata)}function se(e,t,r){var n,o,l,i=a8(e,r),a=i.carrierCode,s=i.nationalNumber;if(s!==e){if(n=e,o=s,!(!aY(n,(l=r).nationalNumberPattern())||aY(o,l.nationalNumberPattern()))||r.numberingPlan.possibleLengths()&&(t||(t=a7(r.numberingPlan.callingCode(),{nationalNumber:s,metadata:r})),!function(e,t,r){switch(aV(e,t,r)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(s,t,r)))return{nationalNumber:e}}return{nationalNumber:s,carrierCode:a}}function st(e,t,r,n,o){if(!(t||r||n))return{number:e};var l=t||r?aW(t||r,o):n;if(0===e.indexOf(l)){var i=new a_(o);i.selectNumberingPlan(t||r||n);var a=e.slice(l.length),s=se(a,void 0,i).nationalNumber,d=se(e,void 0,i).nationalNumber;if(!aY(d,i.nationalNumberPattern())&&aY(s,i.nationalNumberPattern())||"TOO_LONG"===aV(d,void 0,i))return{countryCallingCode:l,number:a}}return{number:e}}function sr(e,t,r,n,o){if(!e)return{};if("+"!==e[0]){var l,i=a5(e,t||r,n,o);if(i&&i!==e)l=!0,e="+"+i;else{if(t||r||n){var a=st(e,t,r,n,o),s=a.countryCallingCode,d=a.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:d}}return{number:e}}}if("0"===e[1])return{};for(var c=new a_(o),u=2;u-1<=3&&u<=e.length;){var m=e.slice(1,u);if(c.hasCallingCode(m))return c.selectNumberingPlan(m),{countryCallingCodeSource:l?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:m,number:e.slice(u)};u++}return{}}function sn(e){return e.replace(RegExp("[".concat(a2,"]+"),"g")," ").trim()}var so=/(\$\d)/;function sl(e,t,r){var n=r.useInternationalFormat,o=r.withNationalPrefix;r.carrierCode,r.metadata;var l=e.replace(new RegExp(t.pattern()),n?t.internationalFormat():o&&t.nationalPrefixFormattingRule()?t.format().replace(so,t.nationalPrefixFormattingRule()):t.format());return n?sn(l):l}var si=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/,sa=function(e){return"([".concat(a1,"]{1,").concat(e,"})")};function ss(e){var t="[  \\t,]*",r="[:\\..]?[  \\t,-]*",n="[  \\t]*";return";ext="+sa("20")+"|"+(t+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+r+sa("20"))+"#?|"+(t+"(?:[xx##~~]|int|int)"+r+sa("9"))+"#?|"+("[- ]+"+sa("6"))+"#|"+(n+"(?:,{2}|;)"+r+sa("15"))+"#?|"+(n+"(?:,)+"+r+sa("9"))+"#?"}var sd="["+a3+"]{0,1}(?:["+a2+"]*["+a1+"]){3,}["+a2+a1+"]*",sc=RegExp("^["+a3+"]{0,1}(?:["+a2+"]*["+a1+"]){1,2}$","i"),su=RegExp("^["+a1+"]{2}$|^"+(sd+"(?:"+ss())+")?$","i"),sm={formatExtension:function(e,t,r){return"".concat(e).concat(r.ext()).concat(t)}};function sf(e,t,r,n,o){var l=function(e,t){for(var r=e,n=function(e){if(e.leadingDigitsPatterns().length>0){var r=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(0!==t.search(r))return!1}return aY(t,e.pattern())},o=0;o<r.length;){if(n(r[o]))return r[o];o++}}(n.formats(),e);return l?sl(e,l,{useInternationalFormat:"INTERNATIONAL"===r,withNationalPrefix:!l.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!o||!1!==o.nationalPrefix,carrierCode:t,metadata:n}):e}function sp(e){return(sp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}
3function sb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sh(Object(r),!0).forEach(function(t){var n,o,l;n=e,o=t,l=r[t],(o=sg(o))in n?Object.defineProperty(n,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[o]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sh(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sg(e){var t=function(e,t){if("object"!=sp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sp(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sp(t)?t:t+""}var sx=(n$=function e(t,r,n){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");if(!t)throw TypeError("First argument is required");if("string"!=typeof t)throw TypeError("First argument must be a string");if("+"===t[0]&&!r)throw TypeError("`metadata` argument not passed");if(aI(r)&&aI(r.countries)){n=r;var o=t;if(!sy.test(o))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var l=sr(o,void 0,void 0,void 0,n),i=l.countryCallingCode;if(r=l.number,t=i,!r)throw Error("Invalid `number` argument passed: too short")}if(!r)throw TypeError("`nationalNumber` argument is required");if("string"!=typeof r)throw TypeError("`nationalNumber` argument must be a string");aU(n);var a=function(e,t){var r,n,o=new a_(t);return a0.test(e)?(r=e,o.selectNumberingPlan(r),n=o.countryCallingCode()):n=e,{country:r,callingCode:n}}(t,n),s=a.country,d=a.callingCode;this.country=s,this.countryCallingCode=d,this.nationalNumber=r,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return n}},nw=[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){var e,t,r,n;return this.country?[this.country]:(e=this.countryCallingCode,t=this.nationalNumber,(n=new a_(r=this.getMetadata()).getCountryCodesForCallingCode(e))?n.filter(function(e){var n,o,l;return n=t,o=e,(l=new a_(r)).selectNumberingPlan(o),l.numberingPlan.possibleLengths().indexOf(n.length)>=0}):[])}},{key:"isPossible",value:function(){return function(e,t,r){void 0===t&&(t={});var n=new a_(r);if(t.v2){if(!e.countryCallingCode)throw Error("Invalid phone number object passed");n.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw Error("Unknown country: ".concat(e.country));n.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return aK(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){var e,t,r;return e={v2:!0},t=this.getMetadata(),e=e||{},((r=new a_(t)).selectNumberingPlan(this.country||this.countryCallingCode),r.hasTypes())?void 0!==aJ(this,e,r.metadata):aY(e.v2?this.nationalNumber:this.phone,r.nationalNumberPattern())}},{key:"isNonGeographic",value:function(){return new a_(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return aJ(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return function(e,t,r,n){r=r?function(){for(var e=1,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];for(;e<r.length;){if(r[e])for(var o in r[e])r[0][o]=r[e][o];e++}return r[0]}({},sm,r):sm;var o,l=new a_(n);if(e.country&&"001"!==e.country){if(!l.hasCountry(e.country))throw Error("Unknown country: ".concat(e.country));l.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)return e.phone||"";l.selectNumberingPlan(e.countryCallingCode)}var i=l.countryCallingCode(),a=r.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":if(!a)return"";return u=o=sf(a,e.carrierCode,"NATIONAL",l,r),m=e.ext,f=l,p=r.formatExtension,m?p(u,m,f):u;case"INTERNATIONAL":if(!a)return"+".concat(i);return o=sf(a,null,"INTERNATIONAL",l,r),h=o="+".concat(i," ").concat(o),b=e.ext,g=l,x=r.formatExtension,b?x(h,b,g):h;
3case"E.164":return"+".concat(i).concat(a);case"RFC3966":var s={number:"+".concat(i).concat(a),ext:e.ext},d=s.number,c=s.ext;if(!d)return"";if("+"!==d[0])throw Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(d).concat(c?";ext="+c:"");case"IDD":if(!r.fromCountry)return;var u,m,f,p,h,b,g,x,y,v,$,w,k=function(e,t,r,n,o){if(aW(n,o.metadata)===r){var l,i,a=sf(e,t,"NATIONAL",o);return"1"===r?r+" "+a:a}var s=(l=void 0,((i=new a_(o.metadata)).selectNumberingPlan(n||l),i.defaultIDDPrefix())?i.defaultIDDPrefix():si.test(i.IDDPrefix())?i.IDDPrefix():void 0);if(s)return"".concat(s," ").concat(r," ").concat(sf(e,null,"INTERNATIONAL",o))}(a,e.carrierCode,i,r.fromCountry,l);if(!k)return;return y=k,v=e.ext,$=l,w=r.formatExtension,v?w(y,v,$):y;default:throw Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}(this,e,t?sb(sb({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sg(n.key),n)}}(n$.prototype,nw),Object.defineProperty(n$,"prototype",{writable:!1}),n$),sy=/^\+\d+$/;function sv(e){return(sv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s$=(nk=function e(t){var r=t.onCountryChange,n=t.onCallingCodeChange;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.onCountryChange=r,this.onCallingCodeChange=n},nC=[{key:"reset",value:function(e){var t=e.country,r=e.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(t,r)}},{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(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];this[n]=e[n]}}},{key:"initCountryAndCallingCode",value:function(e,t){this.setCountry(e),this.setCallingCode(t)}},{key:"setCountry",value:function(e){this.country=e,this.onCountryChange(e)}},{key:"setCallingCode",value:function(e){this.callingCode=e,this.onCallingCodeChange(e,this.country)}},{key:"startInternationalNumber",value:function(e,t){this.international=!0,this.initCountryAndCallingCode(e,t)}},{key:"appendDigits",value:function(e){this.digits+=e}},{key:"appendNationalSignificantNumberDigits",value:function(e){this.nationalSignificantNumber+=e}},{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(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=sv(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sv(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sv(t)?t:t+""}(n.key),n)}}(nk.prototype,nC),Object.defineProperty(nk,"prototype",{writable:!1}),nk);function sw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}
3var sk=/x/;function sC(e,t){if(t<1)return"";for(var r="";t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function sj(e,t){return")"===e[t]&&t++,function(e){for(var t=[],r=0;r<e.length;)"("===e[r]?t.push(r):")"===e[r]&&t.pop(),r++;var n=0,o="";t.push(e.length);for(var l=0;l<t.length;l++){var i=t[l];o+=e.slice(n,i),n=i+1}return o}(e.slice(0,t))}function sN(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var sS={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 sP(e){for(var t,r="",n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return sN(e,void 0);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sN(e,void 0):void 0}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.split(""));!(t=n()).done;){var o=sS[t.value];o&&(r+=o)}return r}function sI(e,t,r){var n,o,l=r.metadata,i=r.useNationalPrefixFormattingRule,a=r.getSeparatorAfterNationalPrefix,s=sl(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:i,metadata:l});if(!i&&(e.nationalPrefix?s=e.nationalPrefix+a(t)+s:e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(s=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+" "+s)),n=s,o=e,sP(n)===o.getNationalDigits())return s}function sE(e){return(sE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var sT=(nj=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")},nN=[{key:"parse",value:function(e){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(e),1!==this.context.length)throw Error("Non-finalized contexts left when pattern parse ended");var t=this.context[0],r=t.branches,n=t.instructions;if(r)return{op:"|",args:r.concat([sM(n)])};if(0===n.length)throw Error("Pattern is required");return 1===n.length?n[0]:n}},{key:"startContext",value:function(e){this.context.push(e)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(e){if(!e)throw Error("Pattern is required");var t=e.match(sR);if(!t){if(sL.test(e))throw Error("Illegal characters found in a pattern: ".concat(e));this.getContext().instructions=this.getContext().instructions.concat(e.split(""));return}var r=t[1],n=e.slice(0,t.index),o=e.slice(t.index+r.length);switch(r){case"(?:":n&&this.parsePattern(n),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw Error('")" operator must be preceded by "(?:" operator');if(n&&this.parsePattern(n),0===this.getContext().instructions.length)throw Error('No instructions found after "|" operator in an "or" group');var l=this.getContext().branches;l.push(sM(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:l});break;case"|":if(!this.getContext().or)throw Error('"|" operator can only be used inside "or" groups');if(n&&this.parsePattern(n),!this.getContext().branches)if(1===this.context.length)this.getContext().branches=[];else throw Error('"branches" not found in an "or" group context');this.getContext().branches.push(sM(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":n&&this.parsePattern(n),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:function(e){for(var t=[],r=0;r<e.length;){if("-"===e[r]){if(0===r||r===e.length-1)throw Error("Couldn't parse a one-of set pattern: ".concat(e));
3for(var n=e[r-1].charCodeAt(0)+1,o=e[r+1].charCodeAt(0)-1,l=n;l<=o;)t.push(String.fromCharCode(l)),l++}else t.push(e[r]);r++}return t}(n)});break;default:throw Error("Unknown operator: ".concat(r))}o&&this.parsePattern(o)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=sE(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sE(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sE(t)?t:t+""}(n.key),n)}}(nj.prototype,nN),Object.defineProperty(nj,"prototype",{writable:!1}),nj),sL=/[\(\)\[\]\?\:\|]/,sR=RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function sM(e){return 1===e.length?e[0]:e}function sA(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s_(e,void 0);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s_(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function sO(e){return(sO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var sz=(nS=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.matchTree=new sT().parse(t)},nP=[{key:"match",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.allowOverflow;if(!e)throw Error("String is required");var n=function e(t,r,n){if("string"==typeof r){var o=t.join("");return 0===r.indexOf(o)?t.length===r.length?{match:!0,matchedChars:t}:{partialMatch:!0}:0===o.indexOf(r)?n&&t.length>r.length?{overflow:!0}:{match:!0,matchedChars:t.slice(0,r.length)}:void 0}if(Array.isArray(r)){for(var l=t.slice(),i=0;i<r.length;){var a=e(l,r[i],n&&i===r.length-1);if(!a)return;if(a.overflow)return a;if(a.match){if(0===(l=l.slice(a.matchedChars.length)).length)if(i===r.length-1)return{match:!0,matchedChars:t};else return{partialMatch:!0}}else if(a.partialMatch)return{partialMatch:!0};else throw Error("Unsupported match result:\n".concat(JSON.stringify(a,null,2)));i++}return n?{overflow:!0}:{match:!0,matchedChars:t.slice(0,t.length-l.length)}}switch(r.op){case"|":for(var s,d,c=sA(r.args);!(d=c()).done;){var u=e(t,d.value,n);if(u)if(u.overflow)return u;else if(u.match)return{match:!0,matchedChars:u.matchedChars};else if(u.partialMatch)s=!0;else throw Error("Unsupported match result:\n".concat(JSON.stringify(u,null,2)))}if(s)return{partialMatch:!0};return;case"[]":for(var m,f=sA(r.args);!(m=f()).done;){var p=m.value;if(t[0]===p){if(1===t.length)return{match:!0,matchedChars:t};if(n)return{overflow:!0};return{match:!0,matchedChars:[p]}}}return;default:throw Error("Unsupported instruction tree: ".concat(r))}}(e.split(""),this.matchTree,!0);if(n&&n.match&&delete n.matchedChars,!n||!n.overflow||r)return n}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=sO(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sO(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sO(t)?t:t+""}(n.key),n)}}(nS.prototype,nP),Object.defineProperty(nS,"prototype",{writable:!1}),nS);function sF(e){return(sF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sD(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return sB(e,void 0);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sB(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function sB(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var sU=sC("9",15),sH=/[- ]/,sW=RegExp("["+a2+"]*\\$1["+a2+"]*(\\$\\d["+a2+"]*)*$"),sG=(nI=function e(t){t.state;var r=t.metadata;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.metadata=r,this.resetFormat()},nE=[{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(e,t){this.resetFormat(),e?(this.isNANP="1"===e.callingCode(),this.matchingFormats=e.formats(),t.nationalSignificantNumber&&this.narrowDownMatchingFormats(t)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(e,t){var r=this;if("IS_POSSIBLE"===aV(t.nationalSignificantNumber,void 0,this.metadata))for(var n,o=sD(this.matchingFormats);!(n=o()).done;){var l=n.value,i=function(e,t,r){var n=r.metadata,o=r.shouldTryNationalPrefixFormattingRule,l=r.getSeparatorAfterNationalPrefix;if(new RegExp("^(?:".concat(t.pattern(),")$")).test(e.nationalSignificantNumber))return function(e,t,r){var n=r.metadata,o=r.shouldTryNationalPrefixFormattingRule,l=r.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,o(t)){var i=sI(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:l,metadata:n});if(i)return i}return sI(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:l,metadata:n})}(e,t,{metadata:n,shouldTryNationalPrefixFormattingRule:o,getSeparatorAfterNationalPrefix:l})}(t,l,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return r.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:function(e){return r.getSeparatorAfterNationalPrefix(e)}});if(i)return this.resetFormat(),this.chosenFormat=l,this.setNationalNumberTemplate(i.replace(/\d/g,"x"),t),this.populatedNationalNumberTemplate=i,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf("x"),i}return this.formatNationalNumberWithNextDigits(e,t)}},{key:"formatNationalNumberWithNextDigits",value:function(e,t){var r=this.chosenFormat,n=this.chooseFormat(t);if(n)if(n===r)return this.formatNextNationalNumberDigits(e);else return this.formatNextNationalNumberDigits(t.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(e){var t=this,r=e.nationalSignificantNumber,n=e.nationalPrefix,o=e.international,l=r.length-3;l<0&&(l=0),this.matchingFormats=this.matchingFormats.filter(function(e){return t.formatSuits(e,o,n)&&t.formatMatches(e,r,l)}),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function(e,t,r){return!(r&&!e.usesNationalPrefix()&&!e.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!t&&!r&&e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(e,t,r){var n=e.leadingDigitsPatterns().length;if(0===n)return!0;r=Math.min(r,n-1);var o=e.leadingDigitsPatterns()[r];if(t.length<3)try{return void 0!==new sz(o).match(t,{allowOverflow:!0})}catch(e){return console.error(e),!0}return new RegExp("^(".concat(o,")")).test(t)}},{key:"getFormatFormat",value:function(e,t){return t?e.internationalFormat():e.format()}},{key:"chooseFormat",value:function(e){for(var t,r,n,o=this,l=sD(this.matchingFormats.slice());!(n=l()).done&&0!==(t=n.value,r=o.chosenFormat===t?0:sW.test(o.getFormatFormat(t,e.international))?o.
3createTemplateForFormat(t,e)?(o.chosenFormat=t,0):(o.matchingFormats=o.matchingFormats.filter(function(e){return e!==t}),1):1);)if(1===r)continue;return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(e,t){if(!(e.pattern().indexOf("|")>=0)){var r=this.getTemplateForFormat(e,t);if(r)return this.setNationalNumberTemplate(r,t),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(e){return this.isNANP||e&&e.nationalPrefixFormattingRule()&&sH.test(e.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(e,t){var r=e.IDDPrefix,n=e.missingPlus;return r?t&&!1===t.spacing?r:r+" ":n?"":"+"}},{key:"getTemplate",value:function(e){if(this.template){for(var t=-1,r=0,n=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e,{spacing:!1}):"";r<n.length+e.getDigitsWithoutInternationalPrefix().length;)t=this.template.indexOf("x",t+1),r++;return sj(this.template,t+1)}}},{key:"setNationalNumberTemplate",value:function(e,t){this.nationalNumberTemplate=e,this.populatedNationalNumberTemplate=e,this.populatedNationalNumberTemplatePosition=-1,t.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g,"x")+sC("x",t.callingCode.length)+" "+e:this.template=e}},{key:"getTemplateForFormat",value:function(e,t){var r,n=t.nationalSignificantNumber,o=t.international,l=t.nationalPrefix,i=t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,a=e.pattern();a=a.replace(/\[([^\[\]])*\]/g,"\\d").replace(/\d(?=[^,}][^,}])/g,"\\d");var s=sU.match(a)[0];if(!(n.length>s.length)){var d=RegExp("^"+a+"$"),c=n.replace(/\d/g,"9");d.test(c)&&(s=c);var u=this.getFormatFormat(e,o);if(this.shouldTryNationalPrefixFormattingRule(e,{international:o,nationalPrefix:l})){var m=u.replace(so,e.nationalPrefixFormattingRule());if(sP(e.nationalPrefixFormattingRule())===(l||"")+sP("$1")&&(u=m,r=!0,l))for(var f=l.length;f>0;)u=u.replace(/\d/,"x"),f--}var p=s.replace(new RegExp(a),u).replace(/9/g,"x");return!r&&(i?p=sC("x",i.length)+" "+p:l&&(p=sC("x",l.length)+this.getSeparatorAfterNationalPrefix(e)+p)),o&&(p=sn(p)),p}}},{key:"formatNextNationalNumberDigits",value:function(e){var t=function(e,t,r){for(var n,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return sw(e,void 0);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sw(e,void 0):void 0}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.split(""));!(n=o()).done;){var l=n.value;if(0>e.slice(t+1).search(sk))return;t=e.search(sk),e=e.replace(sk,l)}return[e,t]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);return t?(this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],sj(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)):void this.resetFormat()}},{key:"shouldTryNationalPrefixFormattingRule",value:function(e,t){var r=t.international,n=t.nationalPrefix;if(e.nationalPrefixFormattingRule()){var o=e.usesNationalPrefix();if(o&&n||!o&&!r)return!0}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=sF(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sF(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sF(t)?t:t+""}(n.key),n)}}(nI.prototype,nE),Object.defineProperty(nI,"prototype",{writable:!1}),nI);function sq(e){return(sq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sV(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,l,i,a=[],s=!0,d=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=l.call(r)).done)&&(a.push(n.value),a.length!==t);s=!0);}catch(e){d=!0,o=e}
3finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sK(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sK(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sK(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var sY=RegExp("^["+a2+a1+"]+$","i"),sZ="(?:["+a3+"]["+a2+a1+"]*|["+a2+a1+"]+)",sX=RegExp("[^"+a2+a1+"]+.*$"),sJ=/[^\d\[\]]/,sQ=(nT=function e(t){var r=t.defaultCountry,n=t.defaultCallingCode,o=t.metadata,l=t.onNationalSignificantNumberChange;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.defaultCountry=r,this.defaultCallingCode=n,this.metadata=o,this.onNationalSignificantNumberChange=l},nL=[{key:"input",value:function(e,t){var r,n,o,l,i,a=sV((o=(n=sV("+"===(r=function(e){var t,r=e.search(sZ);if(!(r<0))return"+"===(e=e.slice(r))[0]&&(t=!0,e=e.slice(1)),e=e.replace(sX,""),t&&(e="+"+e),e}(e)||"")[0]?[r.slice(1),!0]:[r],2))[0],l=n[1],sY.test(o)||(o=""),[o,l]),2),s=a[0],d=a[1],c=sP(s);return d&&!t.digits&&(t.startInternationalNumber(void 0,void 0),c||(i=!0)),c&&this.inputDigits(c,t),{digits:c,justLeadingPlus:i}}},{key:"inputDigits",value:function(e,t){var r=t.digits,n=r.length<3&&r.length+e.length>=3;if(t.appendDigits(e),n&&this.extractIddPrefix(t),this.isWaitingForCountryCallingCode(t)){if(!this.extractCountryCallingCode(t))return}else t.appendNationalSignificantNumberDigits(e);t.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(t.getNationalDigits(),function(e){return t.update(e)})}},{key:"isWaitingForCountryCallingCode",value:function(e){var t=e.international,r=e.callingCode;return t&&!r}},{key:"extractCountryCallingCode",value:function(e){var t=sr("+"+e.getDigitsWithoutInternationalPrefix(),e.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),r=t.countryCallingCode,n=t.number;if(r)return e.setCallingCode(r),e.update({nationalSignificantNumber:n}),!0}},{key:"reset",value:function(e){if(e){this.hasSelectedNumberingPlan=!0;var t=e._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=t&&sJ.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(e,t){if(this.hasSelectedNumberingPlan){var r=a8(e,this.metadata),n=r.nationalPrefix,o=r.nationalNumber,l=r.carrierCode;if(o!==e)return this.onExtractedNationalNumber(n,l,o,e,t),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(e,t,r){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,r);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var n=a8(e,this.metadata),o=n.nationalPrefix,l=n.nationalNumber,i=n.carrierCode;if(l!==t)return this.onExtractedNationalNumber(o,i,l,e,r),!0}}},{key:"onExtractedNationalNumber",value:function(e,t,r,n,o){var l,i=!1,a=n.lastIndexOf(r);if(a<0||a!==n.length-r.length)i=!0;else{var s=n.slice(0,a);s&&s!==e&&(l=s)}o({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:r,nationalSignificantNumberIsModified:i,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:l}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(e){return!!this.extractAnotherNationalSignificantNumber(e.getNationalDigits(),e.nationalSignificantNumber,function(t){return e.update(t)})||(this.extractIddPrefix(e)||this.fixMissingPlus(e)?(this.extractCallingCodeAndNationalSignificantNumber(e),!0):void 0)}},{key:"extractIddPrefix",value:function(e){var t=e.international,r=e.IDDPrefix,n=e.digits;if(e.nationalSignificantNumber,!t&&!r){var o=a5(n,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(void 0!==o&&o!==n)return e.update({IDDPrefix:n.slice(0,n.length-o.length)}),this.startInternationalNumber(e,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(e){if(!e.international){var t=st(e.digits,e.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata).countryCallingCode;if(t)return e.update({missingPlus:!0}),this.startInternationalNumber(e,{country:e.country,callingCode:t}),!0}}},{key:"startInternationalNumber",value:function(e,t){var r=t.country,n=t.callingCode;e.startInternationalNumber(r,n),e.nationalSignificantNumber&&(e.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(e){this.extractCountryCallingCode(e)&&this.extractNationalSignificantNumber(e.getNationalDigits(),function(t){return e.update(t)})}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=sq(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sq(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sq(t)?t:t+""}(n.key),n)}}(nT.prototype,nL),Object.defineProperty(nT,"prototype",{writable:!1}),nT);function s0(e){return(s0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s1(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var s2=(nR=function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.metadata=new a_(r);var n,o=function(e){if(Array.isArray(e))return e}(n=this.getCountryAndCallingCode(t))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,l,i,a=[],s=!0,d=!1;try{l=(r=r.call(e)).next,!1;for(;!(s=(n=l.call(r)).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){d=!0,o=e}
3finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw o}}return a}}(n,2)||function(e,t){if(e){if("string"==typeof e)return s1(e,2);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s1(e,2):void 0}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=o[0],i=o[1];this.defaultCountry=l,this.defaultCallingCode=i,this.reset()},nM=[{key:"getCountryAndCallingCode",value:function(e){var t,r;return e&&(aI(e)?(t=e.defaultCountry,r=e.defaultCallingCode):t=e),t&&!this.metadata.hasCountry(t)&&(t=void 0),[t,r]}},{key:"input",value:function(e){var t=this.parser.input(e,this.state),r=t.digits;if(t.justLeadingPlus)this.formattedOutput="+";else if(r){if(this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state),this.metadata.hasSelectedNumberingPlan()&&(n=this.formatter.format(r,this.state)),void 0===n&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var n,o=this.state.getNationalDigits();o&&(n=this.formatter.format(o,this.state))}this.formattedOutput=n?this.getFullNumber(n):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var e=this;return this.state=new s$({onCountryChange:function(t){e.country=t},onCallingCodeChange:function(t,r){e.metadata.selectNumberingPlan(r||t),e.formatter.reset(e.metadata.numberingPlan,e.state),e.parser.reset(e.metadata.numberingPlan)}}),this.formatter=new sG({state:this.state,metadata:this.metadata}),this.parser=new sQ({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){e.determineTheCountryIfNeeded(),e.formatter.reset(e.metadata.numberingPlan,e.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(){if(this.state.digits)return this._getCountry()}},{key:"_getCountry",value:function(){return this.state.country}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(e){var t=this;if(this.isInternational()){var r=function(e){return t.formatter.getInternationalPrefixBeforeCountryCallingCode(t.state,{spacing:!!e})+e},n=this.state.callingCode;return r(n?e?"".concat(n," ").concat(e):n:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return e}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var e=this.state,t=e.nationalSignificantNumber,r=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,n=e.nationalPrefix,o=t,l=r||n;return l&&(o=l+o),o}},{key:"getNonFormattedNumber",value:function(){var e=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(e?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:"getNonFormattedTemplate",value:function(){var e=this.getNonFormattedNumber();if(e)return e.replace(/[\+\d]/g,"x")}},{key:"isCountryCallingCodeAmbiguous",value:function(){var e=this.state.callingCode,t=this.metadata.getCountryCodesForCallingCode(e);return t&&t.length>1}},{key:"determineTheCountry",value:function(){var e=a7(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata});e!==this.state.country&&(this.state.setCountry(e),e&&this.metadata.selectNumberingPlan(e))}},{key:"getNumberValue",value:function(){var e=this.state,t=e.digits,r=e.callingCode,n=e.country,o=e.nationalSignificantNumber;if(t){if(this.isInternational())if(r)return"+"+r+o;else return"+"+t;else if(n||r)return"+"+(n?this.metadata.countryCallingCode():r)+o}}},{key:"getNumber",value:function(){var e=this.state,t=e.nationalSignificantNumber,r=e.carrierCode,n=e.callingCode;if(t){var o=this._getCountry();if(o||n){if(o&&o===this.defaultCountry){var l=function(e,t,r){var n=r.getCountryCodesForCallingCode(e);if(n.length>1)return a6(t,n,r.metadata)}(this.metadata.numberingPlan.callingCode(),t,this.metadata);l&&(o=l)}var i=new sx(o||n,t,this.metadata.metadata);return r&&(i.carrierCode=r),i}}}},{key:"isPossible",value:function(){var e=this.getNumber();return!!e&&e.isPossible()}},{key:"isValid",value:function(){var e=this.getNumber();return!!e&&e.isValid()}},{key:"validateLength",value:function(){var e=this.state,t=e.digits,r=e.nationalSignificantNumber;if(!t)return"NOT_A_NUMBER";if(!this.metadata.numberingPlan)return"INVALID_COUNTRY";if(!r)return"TOO_SHORT";var n=aV(r,void 0,this.metadata);if("IS_POSSIBLE"!==n)return n}},{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.getNon
3FormattedTemplate()||""}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=s0(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s0(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s0(t)?t:t+""}(n.key),n)}}(nR.prototype,nM),Object.defineProperty(nR,"prototype",{writable:!1}),nR);function s3(e){return s2.call(this,e,aN)}function s4(e){return(s4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}s3.prototype=Object.create(s2.prototype,{}),s3.prototype.constructor=s3,e.s(["AsYouType",()=>s3],62844);function s5(e){var t="function"==typeof Map?new Map:void 0;return(s5=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(s8())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&s9(o,r.prototype),o}(e,arguments,s6(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s9(r,e)})(e)}function s8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s8=function(){return!!e})()}function s9(e,t){return(s9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s6(e){return(s6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s7=function(e){function t(e){var r,n,o;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return n=t,o=[e],n=s6(n),Object.setPrototypeOf(r=function(e,t){if(t&&("object"==s4(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var r=e;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,s8()?Reflect.construct(n,o||[],s6(this).constructor):n.apply(this,o)),t.prototype),r.name=r.constructor.name,r}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s9(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(s5(Error)),de=RegExp("(?:"+ss()+")$","i");function dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function dr(e){for(var t,r="",n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return dt(e,void 0);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dt(e,void 0):void 0}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.split(""));!(t=n()).done;){var o=t.value;r+=function(e,t,r){if("+"===e){if(t)return;return"+"}return sS[e]}(o,r)||""}return r}var dn="(["+a1+"]|[\\-\\.\\(\\)]?)",dl=RegExp("^\\+"+dn+"*["+a1+"]"+dn+"*$","g"),di=RegExp("^("+("["+a1+"]+((\\-)*[")+a1+"])*\\.)*[a-zA-Z]+((\\-)*["+a1+"])*\\.?$","g"),da="tel:",ds=";phone-context=",dd=RegExp("["+a3+a1+"]"),dc=RegExp("[^"+a1+"#]+$");function du(e){return(du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function df(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
3t%2?dm(Object(r),!0).forEach(function(t){var n,o,l;n=e,o=t,l=r[t],(o=function(e){var t=function(e,t){if("object"!=du(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=du(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==du(t)?t:t+""}(o))in n?Object.defineProperty(n,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[o]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dm(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function dp(e){return(dp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function db(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function dg(){var e=function(e){var t,r,n,o,l=function(e){if(Array.isArray(e))return e}(t=Array.prototype.slice.call(e))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,l,i,a=[],s=!0,d=!1;try{l=(r=r.call(e)).next,!1;for(;!(s=(n=l.call(r)).done)&&(a.push(n.value),4!==a.length);s=!0);}catch(e){d=!0,o=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw o}}return a}}(t,4)||function(e,t){if(e){if("string"==typeof e)return db(e,4);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?db(e,4):void 0}}(t,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=l[0],a=l[1],s=l[2],d=l[3];if("string"==typeof i)r=i;else throw TypeError("A text for parsing must be a string.");if(a&&"string"!=typeof a)if(aI(a))s?(n=a,o=s):o=a;else throw Error("Invalid second argument: ".concat(a));else d?(n=s,o=d):(n=void 0,o=s),a&&(n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dh(Object(r),!0).forEach(function(t){var n,o,l;n=e,o=t,l=r[t],(o=function(e){var t=function(e,t){if("object"!=dp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=dp(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dp(t)?t:t+""}(o))in n?Object.defineProperty(n,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[o]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dh(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({defaultCountry:a},n));return{text:r,options:n,metadata:o}}(arguments),t=e.text,r=e.options,n=e.metadata;return function(e,t,r){t=t||{};var n,o,l,i,a=new a_(r);if(t.defaultCountry&&!a.hasCountry(t.defaultCountry)){if(t.v2)throw new s7("INVALID_COUNTRY");throw Error("Unknown country: ".concat(t.defaultCountry))}var s=function(e,t,r){var n=function(e,t){var r=t.extractFormattedPhoneNumber,n=function(e){var t=e.indexOf(ds);if(t<0)return null;var r=t+ds.length;if(r>=e.length)return"";var n=e.indexOf(";",r);return n>=0?e.substring(r,n):e.substring(r)}(e);if(!(null===n||0!==n.length&&(dl.test(n)||di.test(n))))throw new s7("NOT_A_NUMBER");if(null===n)o=r(e)||"";else{o="","+"===n.charAt(0)&&(o+=n);var o,l,i=e.indexOf(da);l=i>=0?i+da.length:0;var a=e.indexOf(ds);o+=e.substring(l,a)}var s=o.indexOf(";isub=");if(s>0&&(o=o.substring(0,s)),""!==o)return o}(e,{extractFormattedPhoneNumber:function(e){if(e){if(e.length>250){if(t)throw new s7("TOO_LONG");return}if(!1===r)return e;var n=e.search(dd);return n<0?void 0:e.slice(n).replace(dc,"")}}});if(!n)return{};if(!(n.length>=2&&su.test(n)))return sc.test(n)?{error:"TOO_SHORT"}:{};var o=function(e){var t=e.search(de);if(t<0)return{};for(var r=e.slice(0,t),n=e.match(de),o=1;o<n.length;){if(n[o])return{number:r,ext:n[o]};o++}}(n);return o.ext?o:{number:n}}(e,t.v2,t.extract),d=s.number,c=s.ext,u=s.error;if(!d){if(t.v2){if("TOO_SHORT"===u)throw new s7("TOO_SHORT");throw new s7("NOT_A_NUMBER")}return{}}var m=function(e,t,r,n){var o,l=sr(dr(e),void 0,t,r,n.metadata),i=l.countryCallingCodeSource,a=l.countryCallingCode,s=l.number;if(a)n.selectNumberingPlan(a);else{if(!s||!t&&!r)return{};t?(o=t,n.selectNumberingPlan(t),a=n.numberingPlan.callingCode()):(n.selectNumberingPlan(r),a=r)}if(!s)return{countryCallingCodeSource:i,countryCallingCode:a};var d=se(dr(s),void 0,n),c=d.nationalNumber,u=d.carrierCode,m=a7(a,{nationalNumber:c,metadata:n});return m&&(o=m,"001"===m||n.selectNumberingPlan(o)),{country:o,countryCallingCode:a,countryCallingCodeSource:i,nationalNumber:c,carrierCode:u}}(d,t.defaultCountry,t.defaultCallingCode,a),f=m.country,p=m.nationalNumber,h=m.countryCallingCode,b=m.countryCallingCodeSource,g=m.carrierCode;if(!a.hasSelectedNumberingPlan()){if(t.v2)throw new s7("INVALID_COUNTRY");return{}}if(!p||p.length<2){if(t.v2)throw new s7("TOO_SHORT");return{}}if(p.length>17){if(t.v2)throw new s7("TOO_LONG");return{}}if(t.v2){var x=new sx(h,p,a.metadata);return f&&(x.country=f),g&&(x.carrierCode=g),c&&(x.ext=c),x.__countryCallingCodeSource=b,x}var y=(t.extended?!!a.hasSelectedNumberingPlan():!!f)&&aY(p,a.nationalNumberPattern());return t.extended?{country:f,countryCallingCode:h,carrierCode:g,valid:y,possible:!!y||!!(!0===t.extended&&a.possibleLengths()&&aK(p,a)),phone:p,ext:c}:y?(n=f,o=p,l=c,i={country:n,phone:o},l&&(i.ext=l),i):{}}(t,df(df({},r),{},{v2:!0}),n)}function dx(){return function(e,t){var r=Array.prototype.slice.call(t);return r.push(aN),e.apply(this,r)}(dg,arguments)}e.s(["parsePhoneNumber",()=>dx],5386);let dy="/api/viewer-geo";function dv(e){let[t,r]=(0,lx.useState)(null),[n,o]=(0,lx.useState)(null);return(0,lx.useEffect)(()=>
3{if(!e)return;let t=!1;return fetch(e).then(e=>e.ok?e.json():null).then(n=>{t||(r(n),o(e))}).catch(()=>{t||o(e)}),()=>{t=!0}},[e]),{geo:t,status:e?n===e?"done":"loading":"idle"}}function d$({geo:e,countries:t,touched:r}){if(r)return null;let n=e?.country?.trim().toUpperCase();return n?t.find(e=>e.code===n)??null:null}e.s(["VIEWER_GEO_ENDPOINT",0,dy,"useViewerGeo",()=>dv],43041),e.s(["pickDetectedCountry",()=>d$],63846),e.s([],86360);let dw=ak.default.slice().sort((e,t)=>e.name.localeCompare(t.name));function dk(e){return dw.find(t=>t.code===e)}function dC(e,t){let r=e.replace(/\D/g,"");if(!t)return e;if("+1"===t.dialCode)return 0===r.length?"":r.length<=3?`(${r}`:r.length<=6?`(${r.slice(0,3)}) ${r.slice(3)}`:`(${r.slice(0,3)}) ${r.slice(3,6)}-${r.slice(6,10)}`;try{return new s3(t.code).input(r)}catch{return r}}function dj(e,t){if(!t||!e.trim())return null;let r=e.replace(/\D/g,"");if(!r)return null;let n=t.dialCode.replace(/\D/g,"");if(r.startsWith(n)&&(r=r.slice(n.length)),!r)return null;let o=`${t.dialCode}${r}`;try{let e=dx(o,t.code);if(e?.isValid())return e.format("E.164")}catch{}let l=n.length+r.length;return l<8||l>15?null:o}function dN(e,t){return!!t&&!!e.trim()&&("+1"===t.dialCode?10===e.replace(/\D/g,"").length:null!==dj(e,t))}function dS({id:e,value:t,onChange:r,onValidChange:n,disabled:o=!1,placeholder:l}){let[i,a]=(0,lx.useState)(()=>dk("US")??dw[0]??null),[s,d]=(0,lx.useState)(""),[c,u]=(0,lx.useState)(""),m=(0,lx.useRef)(!1),[f,p]=(0,lx.useState)(!1),{geo:h}=dv(f?dy:null);(0,lx.useEffect)(()=>{let e=d$({geo:h,countries:dw,touched:m.current});e&&a(e)},[h]);let b=(0,lx.useMemo)(()=>i?aj(i.code):null,[i]);(0,lx.useEffect)(()=>{if(t&&t.trim())try{let e=dx(t),r=e?.country?dk(e.country):null;if(!e||!r)return;a(r),d(e.nationalNumber),u(dC(e.nationalNumber,r)),m.current=!0,n(dN(e.nationalNumber,r))}catch{}},[t]);let g=(e,t)=>{r(dj(e,t)),n(dN(e,t))};return(0,lh.jsxs)("div",{className:"flex w-full gap-1.5",onFocusCapture:()=>p(!0),children:[(0,lh.jsxs)("label",{className:"relative flex h-12 shrink-0 items-center gap-1 rounded-xl border border-black/10 bg-white/90 pl-2 pr-1",children:[b?(0,lh.jsx)("img",{src:b,alt:"",className:"h-3.5 w-[1.2em] rounded-[2px] object-cover"}):(0,lh.jsx)("span",{className:"h-3.5 w-[1.2em] rounded-[2px] bg-black/10"}),(0,lh.jsx)("select",{"aria-label":"Country code",disabled:o||!i,value:i?.code??"",onChange:e=>{var t;let r;return t=e.target.value,m.current=!0,void(a(r=dk(t)??null),u(dC(s,r)),g(s,r))},className:iq("h-full max-w-[4.75rem] appearance-none bg-transparent py-0 pl-0.5 pr-4 text-sm font-medium text-neutral-900 outline-none",o&&"pointer-events-none"),children:dw.map(e=>(0,lh.jsx)("option",{value:e.code,children:e.dialCode},e.code))}),(0,lh.jsx)("span",{className:"pointer-events-none absolute right-1.5 text-[10px] text-neutral-500","aria-hidden":!0,children:"▾"})]}),(0,lh.jsx)("input",{id:e,type:"tel",inputMode:"tel",autoComplete:"tel-national",disabled:o||!i,placeholder:l||"Enter your phone",value:c,onChange:e=>(e=>{if(!i)return;m.current=!0;let t=e.replace(/\D/g,""),r="+1"===i.dialCode?t.slice(0,10):t.slice(0,15);d(r),u(dC(r,i)),g(r,i)})(e.target.value),className:iq("h-12 min-w-0 flex-1 rounded-xl border border-black/10 bg-white/90 px-3 text-sm text-neutral-900 outline-none",o&&"pointer-events-none opacity-80")})]})}let dP=i2("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),dI="I agree to receive messages and accept the ",dE="terms",dT=`${dI}${dE}`;function dL({id:e,consented:t,submitting:r,readOnly:n=!1,textColor:o,onToggle:l,onTermsClick:i}){let a=`${e}-label`;return(0,lh.jsxs)("div",{className:iq("flex shrink-0 items-center gap-2 text-xs leading-4 opacity-80",n&&"pointer-events-none"),style:{color:o,minHeight:32},children:[(0,lh.jsx)("button",{id:e,type:"button",role:"checkbox","aria-checked":t,"aria-labelledby":a,disabled:r,tabIndex:n?-1:void 0,onClick:l,style:{borderRadius:4},className:iq("flex size-4 shrink-0 items-center justify-center border transition-colors",t?"border-transparent bg-black text-white":"border-neutral-200 bg-white",r&&"cursor-default opacity-50",!n&&!r&&"cursor-pointer",n&&"cursor-default"),children:t?(0,lh.jsx)(dP,{className:"size-3",strokeWidth:3}):null}),(0,lh.jsxs)("span",{id:a,className:"line-clamp-2",children:[(0,lh.jsx)("label",{htmlFor:e,className:"cursor-pointer",children:dI}),i?(0,lh.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),i()},className:"underline underline-offset-2",style:{color:o},children:dE}):(0,lh.jsx)("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2",onClick:e=>e.stopPropagation(),children:dE})]})]})}e.s(["CONTACT_CONSENT_PREFIX",0,dI,"CONTACT_CONSENT_TERMS_LABEL",0,dE,"CONTACT_CONSENT_TEXT",0,dT],43723);let dR=a$.email;function dM({title:e,buttonLabel:t,fields:r,textColor:n,buttonBg:o,buttonRadiusPx:l,hasRibbon:i,readOnly:a,onInlineSubmit:s,renderPhoneInput:d,onTermsClick:c}){let[u,m]=(0,lx.useState)(()=>nc(r)),[f,p]=(0,lx.useState)({}),[h,b]=(0,lx.useState)(!1),[g,x]=(0,lx.useState)(null),[y,v]=(0,lx.useState)(!1),[$,w]=(0,lx.useState)(!1),k=!a&&
3!!s&&h&&null===nm(r,u,f),C=async e=>{if(e.preventDefault(),e.stopPropagation(),!s||a||y)return;if(!h)return void x("Consent is required");let t=nm(r,u,f);if(t)return void x(t);let n=nf(r,u);v(!0),x(null);try{let e=await s({answers:n,consent:{text:dT}});if(!e.ok)return void x(e.error);w(!0),m(nc(r)),p({}),b(!1)}catch(e){x(e instanceof Error?e.message:"Failed to submit form")}finally{v(!1)}};return $?(0,lh.jsxs)("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 p-4 text-center",children:[(0,lh.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-green-100",children:(0,lh.jsx)(am,{className:"h-8 w-8 text-green-500"})}),(0,lh.jsx)("h3",{style:{color:n,fontSize:18,fontWeight:600,lineHeight:1.3,margin:0},children:"Thank you for your submission!"}),(0,lh.jsx)("button",{type:"button",onClick:()=>{w(!1),x(null)},className:"box-border mt-3 h-12 w-full truncate px-3 text-sm font-semibold transition-opacity hover:opacity-90",style:{height:48,minHeight:48,maxHeight:48,backgroundColor:o,color:i8(o),borderRadius:`${l}px`},children:"Done"})]}):(0,lh.jsxs)("form",{className:"flex h-full w-full flex-col gap-3 overflow-hidden p-4",onSubmit:C,onClick:a?void 0:e=>e.stopPropagation(),children:[e?(0,lh.jsx)("h3",{className:iq("truncate text-left text-base font-semibold",i&&"pr-10"),style:{color:n},children:e}):null,r.map(e=>(0,lh.jsx)(d_,{field:e,value:u[e.id],textColor:n,readOnly:a,submitting:y,onChange:t=>{var r;return r=e.id,void(m(e=>({...e,[r]:t})),x(null))},onPhoneValidChange:t=>p(r=>({...r,[e.id]:t})),renderPhoneInput:d},e.id)),(0,lh.jsx)(dL,{id:"form-inline-consent",consented:h,submitting:y,readOnly:a,textColor:n,onToggle:()=>{b(e=>!e),x(null)},onTermsClick:c}),g?(0,lh.jsx)("p",{className:"text-sm text-red-600",children:g}):null,(0,lh.jsx)("button",{type:"submit",disabled:!a&&(!k||y),"aria-disabled":a||!k||y,tabIndex:a?-1:void 0,className:iq("box-border h-12 w-full truncate px-3 py-0 text-sm font-semibold leading-none transition-opacity",a&&"pointer-events-none cursor-default",!a&&(!k||y)&&"cursor-default opacity-50",!a&&k&&!y&&"cursor-pointer hover:opacity-90"),style:{height:48,minHeight:48,maxHeight:48,backgroundColor:o,color:i8(o),borderRadius:`${l}px`},children:y?(0,lh.jsxs)("span",{className:"inline-flex items-center justify-center gap-2",children:[(0,lh.jsx)(ap,{className:"h-4 w-4 animate-spin"}),"Submitting..."]}):t||" "})]})}let dA="h-12 w-full rounded-xl border border-black/10 bg-white/90 px-3 text-sm text-neutral-900 outline-none";function d_({field:e,value:t,textColor:r,readOnly:n,submitting:o,onChange:l,onPhoneValidChange:i,renderPhoneInput:a}){let s=rN(e.type),d=`form-inline-${e.id}`,c=(0,lh.jsxs)("span",{className:"truncate text-sm font-medium opacity-80",style:{color:r},children:[e.label,e.required?(0,lh.jsx)("span",{children:" *"}):null]});if("boolean"===s)return(0,lh.jsxs)("label",{className:iq("flex items-center gap-3",n&&"pointer-events-none"),htmlFor:d,children:[(0,lh.jsx)("input",{id:d,type:"checkbox",checked:!0===t,disabled:o,tabIndex:n?-1:void 0,onChange:e=>l(e.target.checked),className:"h-4 w-4 cursor-pointer accent-black"}),(0,lh.jsxs)("span",{className:"truncate text-sm font-medium opacity-80",style:{color:r},children:[e.label,e.required?(0,lh.jsx)("span",{children:" *"}):null]})]});if("multiselect"===s){let r=Array.isArray(t)?t:[];return(0,lh.jsxs)("div",{className:"flex flex-col gap-2",children:[c,(0,lh.jsx)("div",{className:iq("rounded-xl border border-black/10 bg-white/90 p-3",n&&"pointer-events-none"),children:(e.options??[]).map((t,i)=>{let a=r.includes(t);return(0,lh.jsxs)("label",{className:iq("flex items-center gap-2 text-sm font-normal text-neutral-900",i<(e.options?.length??0)-1&&"mb-2"),children:[(0,lh.jsx)("input",{type:"checkbox",checked:a,disabled:o,tabIndex:n?-1:void 0,onChange:e=>{e.target.checked?l([...r,t]):l(r.filter(e=>e!==t))},className:"h-4 w-4 cursor-pointer accent-black"}),(0,lh.jsx)("span",{className:"truncate",children:t})]},t)})})]})}if("phone"===s){let r={id:d,value:"string"==typeof t&&t?t:null,onChange:e=>{l(e??""),e||i(!1)},onValidChange:i,disabled:o,placeholder:rS(e)};return(0,lh.jsxs)("label",{className:"flex flex-col gap-2",htmlFor:d,children:[c,(0,lh.jsx)("div",{className:iq(n&&"pointer-events-none"),children:a?a(r):(0,lh.jsx)(dS,{...r})})]})}return"textarea"===s?(0,lh.jsxs)("label",{className:"flex flex-col gap-2",htmlFor:d,children:[c,(0,lh.jsx)("textarea",{id:d,placeholder:rS(e),disabled:o,tabIndex:n?-1:void 0,value:"string"==typeof t?t:"",onChange:e=>l(e.target.value),className:iq(dA,"h-auto min-h-[96px] max-h-[96px] resize-none py-3",n&&"pointer-events-none")})]}):"select"===s?(0,lh.jsxs)("label",{className:"flex flex-col gap-2",htmlFor:d,children:[c,(0,lh.jsxs)("select",{id:d,disabled:o,tabIndex:n?-1:void 0,value:"string"==typeof t?t:"",onChange:e=>l(e.target.value),className:iq(dA,n&&"pointer-events-none"),children:[(0,lh.jsx)("option",{value:"",children:rS(e)}),(e.options??[]).map(e=>(0,lh.jsx)("option",{value:e,children:e},e))]})]}):(0,lh.jsxs)("label",{className:"flex flex-col gap-2",htmlFor:d,children:[c,(0,lh.jsx)("input",{id:d,type:"email"===s?"email":"text",placeholder:rS(e),disabled:o,tabIndex:n?-1:void 0,value:"string"==typeof t?t:"",onChange:e=>l(e.target.value),className:iq(dA,n&&"pointer-events-none")})]})}function dO({title:e,buttonLabel:t,image:r,buttonBg:n,buttonRadiusPx:o,onClick:l}){let[i,a]=(0,lx.useState)(!1),s=r?.path?iZ(r.path):null,d=!!s&&!i,c=!!t,u=!!e||c;return(0,lh.jsxs)("button",{type:"button",onClick:l,className:iq("relative block h-full w-full overflow-hidden text-left",l&&"cursor-pointer"),children:[d?(0,lh.jsx)("img",{src:s,alt:e??"",className:"absolute inset-0 h-full w-full",style:nl(r?.crop),onError:()=>a(!0)}):(0,lh.jsx)("div",{className:"absolute inset-0 flex h-full w-full items-center justify-center",style:{backgroundColor:"#fef3c7"}
3,"aria-hidden":!0,children:(0,lh.jsx)("span",{className:"flex h-12 w-12 items-center justify-center rounded-lg shadow-sm",style:{backgroundColor:dR},children:(0,lh.jsx)(af,{className:"h-6 w-6 text-white",strokeWidth:2.25})})}),u?(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsx)("div",{className:"pointer-events-none absolute inset-0",style:{background:d?"linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%)":"linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.4) 10%, rgba(0,0,0,0.2) 22%, rgba(0,0,0,0.08) 34%, rgba(0,0,0,0.03) 42%, rgba(0,0,0,0) 60%)"}}),(0,lh.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex min-h-[52px] items-end justify-between gap-2 px-4 pb-[14px] pt-6",children:[(0,lh.jsx)("p",{className:"line-clamp-2 min-w-0 flex-1 text-[14px] font-semibold leading-normal",style:{color:"#ffffff"},children:e}),c?(0,lh.jsx)("span",{className:"flex-shrink-0 px-4 py-2 text-[14px] font-semibold leading-[1.2]",style:{backgroundColor:n,color:i8(n),borderRadius:`${o}px`},children:t}):null]})]}):null]})}function dz({title:e,buttonLabel:t,textColor:r,backgroundColor:n,buttonBg:o,buttonRadiusPx:l,onClick:i}){let a=!!t;return(0,lh.jsxs)("button",{type:"button",onClick:i,className:iq("relative flex h-full w-full items-center px-4 py-2 text-left",a?"flex-row":"flex-col",a?"justify-start":"justify-center",i&&"cursor-pointer"),style:{backgroundColor:n},children:[(0,lh.jsx)("div",{className:iq("min-w-0 overflow-visible",a?"flex-1":"w-full"),children:e?(0,lh.jsx)("p",{className:iq("line-clamp-2 text-[14px] font-semibold leading-normal",a?"text-left":"text-center"),style:{color:r},children:e}):null}),a?(0,lh.jsx)("span",{className:"ml-2 max-w-[150px] flex-shrink-0 self-center overflow-hidden text-ellipsis whitespace-nowrap px-4 py-2 text-center text-[14px] font-semibold leading-[1.2]",style:{backgroundColor:o,color:i8(o),borderRadius:`${l}px`},children:t}):null]})}function dF({title:e,buttonLabel:t,textColor:r,buttonBg:n,buttonRadiusPx:o,hasRibbon:l,onClick:i}){return(0,lh.jsxs)("button",{type:"button",onClick:i,className:iq("block h-full w-full p-4 text-left",i&&"cursor-pointer"),children:[(0,lh.jsx)("h3",{className:iq("mb-4 truncate text-left text-lg font-semibold",l&&"pr-10"),style:{color:r},children:e||" "}),t?(0,lh.jsx)("span",{className:"flex h-9 w-full items-center justify-center truncate px-3 text-sm font-semibold transition-opacity hover:opacity-90",style:{backgroundColor:n,color:i8(n),borderRadius:`${o}px`},children:t}):null]})}let dD=(0,lx.memo)(function({block:e,theme:t=lR,hasRibbon:r=!1,onClick:n,onInlineSubmit:o,renderPhoneInput:l,inlineReadOnly:i=!1,onTermsClick:a}){let{data:s}=e,d=rP(e.style?.blockLayout),c=!1!==s.showButton,u=ng(s.buttonText),m=e.style?.buttonColor,f=(void 0!==m?m:t.buttonColor)??t.accentColor??t.textColor,p=e.style?.textColor,h=void 0!==p?p:t.textColor,b=ae(parseInt(t.borderRadius??"16",10)||0),g=(0,lx.useMemo)(()=>s.fields??[],[s.fields]);return rI(d)?(0,lh.jsx)("div",{className:"h-full w-full",children:(0,lh.jsx)(dM,{title:s.title??"",buttonLabel:u||rw,fields:g,textColor:h,buttonBg:f,buttonRadiusPx:b,hasRibbon:r,readOnly:i,onInlineSubmit:o,renderPhoneInput:l,onTermsClick:a})}):rT(d)?(0,lh.jsx)(dF,{title:s.title??"",buttonLabel:c?u||rw:"",textColor:h,buttonBg:f,buttonRadiusPx:b,hasRibbon:r,onClick:n}):rE(d)?(0,lh.jsx)(dz,{title:s.title??"",buttonLabel:c?u||rw:"",textColor:h,backgroundColor:t.blockBackgroundColor??"#ffffff",buttonBg:f,buttonRadiusPx:b,onClick:n}):(0,lh.jsx)(dO,{title:s.title??"",buttonLabel:c?u||rw:"",image:e.image,buttonBg:f,buttonRadiusPx:b,onClick:n})}),dB="allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox allow-presentation allow-storage-access-by-user-activation allow-top-navigation-by-user-activation",dU=new Map,dH=new Map;function dW(e,t,r){let n=t?dU.get(`${e}:${t}`)??null:null,[o,l]=(0,lx.useState)(null===n),[i,a]=(0,lx.useState)(n),s=(0,lx.useRef)(null),d=(0,lx.useRef)(r);d.current=r;let c=(0,lx.useRef)(null!==n);(0,lx.useEffect)(()=>{null!==n?(a(n),l(!1),c.current=!0):(a(null),l(!0),c.current=!1)},[t,n]);let u=(0,lx.useCallback)(r=>{!(r<=50)&&t&&(dU.set(`${e}:${t}`,r),a(r),l(!1),c.current=!0,d.current?.(r))},[e,t]),m=(0,lx.useCallback)(e=>{s.current=e},[]);return(0,lx.useEffect)(()=>
3{if(null!==n||!t)return;let e=setTimeout(()=>{if(c.current)return;let e=s.current;if(!e)return;let t=new ResizeObserver(e=>{if(c.current)return void t.disconnect();let r=e[0]?.contentRect.height??0;r>100&&(u(r),t.disconnect())});t.observe(e);let r=setTimeout(()=>t.disconnect(),1e4);return()=>{t.disconnect(),clearTimeout(r)}},4e3);return()=>clearTimeout(e)},[t,n,u]),{loading:o,setLoading:l,resolvedHeight:i??n,saveHeight:u,containerRefCallback:m}}function dG({containerRef:e,enabled:t,onDetected:r}){let n=(0,lx.useRef)(r);n.current=r;let o=(0,lx.useRef)(!1);(0,lx.useEffect)(()=>{if(!t)return;o.current=!1;let r=()=>{if(o.current||"undefined"!=typeof document&&document.hidden)return;let t=e.current,r=document.activeElement;t&&r&&t.contains(r)&&(o.current=!0,n.current())};return window.addEventListener("blur",r),()=>window.removeEventListener("blur",r)},[t,e])}function dq(){return(0,lh.jsx)("div",{className:"flex h-full w-full animate-pulse items-center justify-center rounded-[inherit] bg-muted",children:(0,lh.jsx)("div",{className:"h-12 w-12 rounded-full bg-muted"})})}function dV({show:e,platform:t,minHeight:r,backgroundColor:n}){let o=nO.get(t)?.squareIconPath??null;return(0,lh.jsx)("div",{hidden:!e,className:"absolute inset-0 z-10 flex animate-pulse items-center justify-center rounded-[inherit] bg-muted",style:{minHeight:r,backgroundColor:n},children:o?(0,lh.jsx)("img",{src:o,alt:t,width:48,height:48,className:"rounded-xl opacity-50"}):(0,lh.jsx)("div",{className:"h-12 w-12 rounded-full bg-muted"})})}function dK({link:e,theme:t}){let r=e.displayIconPlatform??e.platform??"",n=nV(r)??lp(e.url,e.displayIconPlatform),o=n9(r)??t.backgroundColor;return(0,lh.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"relative flex h-full w-full items-center justify-center overflow-hidden rounded-[inherit]",style:{backgroundColor:o},children:(0,lh.jsx)(iX,{url:n,className:"h-full w-full",size:48,imageClassName:"rounded-lg"})})}function dY({active:e}){return e?(0,lh.jsx)("div",{className:"absolute inset-0 z-20"}):null}let dZ=new Map;function dX(e){let[t,r]=(0,lx.useState)(()=>e?dZ.get(e)??"idle":"idle");return(0,lx.useEffect)(()=>{if(!e)return void r("idle");let t=dZ.get(e);if("ready"===t||"error"===t)return void r(t);let n=document.querySelector(`script[src="${e}"]`);if(n){let t=()=>{dZ.set(e,"ready"),r("ready")},o=()=>{dZ.set(e,"error"),r("error")};return n.addEventListener("load",t),n.addEventListener("error",o),()=>{n?.removeEventListener("load",t),n?.removeEventListener("error",o)}}dZ.set(e,"loading"),r("loading"),(n=document.createElement("script")).src=e,n.async=!0,n.onload=()=>{dZ.set(e,"ready"),r("ready")},n.onerror=()=>{dZ.set(e,"error"),r("error")},document.body.appendChild(n)},[e]),t}function dJ(e){let{embedUrl:t,videoId:r,channelId:n,isChannel:o,mute:l,autoplay:i}=e,a="";if(t)a=t;else if(o&&n){let e=n.startsWith("UC")?`UULF${n.slice(2)}`:n;a=`https://www.youtube.com/embed/videoseries?list=${e}`}else{if(!r)return"";a=`https://www.youtube.com/embed/${r}`}let s=a.includes("?"),d=a.includes("enablejsapi=1")?a:`${a}${s?"&":"?"}enablejsapi=1`;return void 0===l||d.includes("mute=")||(d+=`&mute=${+!!l}`),void 0===i||d.includes("autoplay=")||(d+=`&autoplay=${+!!i}`),d}let dQ={},d0="https://www.tiktok.com/embed.js",d1="https://www.tiktok.com/player/v1",d2="https://www.tiktok.com";function d3({contentId:e,interactive:t,onHeightChange:r,minHeight:n,onOutboundClick:o}){let{loading:l,setLoading:i,resolvedHeight:a,saveHeight:s,containerRefCallback:d}=dW("tiktok",e,r),[c,u]=(0,lx.useState)(!1),m=(0,lx.useRef)(null),f=(0,lx.useCallback)(e=>{m.current=e,d(e)},[d]),p=(0,lx.useRef)(null),h=(0,lx.useRef)(!1),b=(0,lx.useRef)(null),g=(0,lx.useRef)(null),x=(0,lx.useRef)(0),y=(0,lx.useRef)(null);(0,lx.useEffect)(()=>(h.current=!1,x.current=0,y.current=null,u(!1),()=>{b.current?.disconnect(),b.current=null,g.current=null}),[e]),(0,lx.useEffect)(()=>{if(!p.current||h.current)return;h.current=!0;let e=setTimeout(()=>{new Promise(e=>{if("undefined"==typeof document)return void e();let t=document.querySelector(`script[src="${d0}"]`);t&&t.remove();let r=document.createElement("script");r.src=d0,r.async=!0,r.onload=()=>e(),r.onerror=()=>e(),document.body.appendChild(r)}).then(()=>{setTimeout($,300)})},100);return()=>clearTimeout(e)},[e]);let v=(0,lx.useCallback)(e=>{if(e<=100)return;let t=e+6-16;t<=100||y.current!==t&&(y.current=t,s(t))},[s]),$=(0,lx.useCallback)(()=>{x.current++;let e=m.current;if(!e){x.current<30&&setTimeout($,300);return}let t=e.querySelector("iframe");
3if(!t)return void(x.current<30?setTimeout($,300):i(!1));u(!0),i(!1);let r=t.scrollHeight||t.clientHeight||0;if(r>100&&v(r),g.current===t&&b.current)return;b.current?.disconnect();let n=new ResizeObserver(e=>{for(let t of e){let e=Math.round(t.contentRect.height);e>100&&v(e)}});n.observe(t),b.current=n,g.current=t},[v,i]);!function({containerRef:e,onDetected:t,enabled:r=!0,pollInterval:n=500,timeout:o=1e4}){let l=(0,lx.useRef)(!1);(0,lx.useEffect)(()=>{if(!r||!e.current)return;l.current=!1;let i=()=>{if(l.current)return!0;let r=e.current?.querySelector("iframe");return!!r&&(l.current=!0,t(r),!0)};if(i())return;let a=new MutationObserver(()=>i());a.observe(e.current,{childList:!0,subtree:!0});let s=setInterval(()=>{i()&&clearInterval(s)},n),d=setTimeout(()=>{clearInterval(s),a.disconnect()},o);return()=>{a.disconnect(),clearInterval(s),clearTimeout(d)}},[e,t,r,n,o])}({containerRef:m,onDetected:(0,lx.useCallback)(e=>{u(!0),i(!1),$()},[$,i]),enabled:!0,timeout:15e3}),(0,lx.useEffect)(()=>{if(c)return;let e=setTimeout(()=>i(!1),1e4);return()=>clearTimeout(e)},[c,i]);let w=(0,lx.useRef)(o);w.current=o;let k=`${d2}/@${e}`;dG({containerRef:m,enabled:!!o,onDetected:(0,lx.useCallback)(()=>{w.current?.(k,{isHeuristic:!0})},[k])});let C=a??n;return(0,lh.jsxs)("div",{ref:f,className:"overflow-hidden rounded-[inherit] bg-background",style:{height:C,transition:"height 0.2s ease"},children:[(0,lh.jsx)(dV,{show:l&&!c,platform:"tiktok",minHeight:n}),(0,lh.jsx)("blockquote",{ref:p,className:"tiktok-embed tiktok-profile-blockquote",cite:`https://www.tiktok.com/@${e}`,"data-unique-id":e,"data-embed-type":"creator","data-embed-from":"oembed",style:{maxWidth:"none",minWidth:"288px",margin:"-3px",width:"calc(100% + 6px)",height:"calc(100% + 6px)",opacity:+!!c,transition:"opacity 0.3s ease"},children:(0,lh.jsx)("section",{children:(0,lh.jsxs)("a",{rel:"noreferrer",target:"_blank",href:`https://www.tiktok.com/@${e}?refer=creator_embed`,children:["@",e]})})}),(0,lh.jsx)("style",{children:`
4        .tiktok-profile-blockquote iframe {
5          width: calc(100% + 6px) !important;
6          margin: -3px !important;
7          border: none !important;
8        }
9      `}),(0,lh.jsx)(dY,{active:!t})]})}function d4({contentId:e,minHeight:t,interactive:r,onPlay:n}){let[o,l]=(0,lx.useState)(!0);(0,lx.useEffect)(()=>{let e=setTimeout(()=>l(!1),3e3);return()=>clearTimeout(e)},[]);let i=(0,lx.useRef)(null),a=(0,lx.useRef)(n);a.current=n;let s=(0,lx.useRef)(!1),d=!!n;(0,lx.useEffect)(()=>{if(!d)return;let e=e=>{if(e.origin!==d2||e.source!==i.current?.contentWindow)return;let t=e.data;if("string"==typeof t)try{t=JSON.parse(t)}catch{return}if(!t||"object"!=typeof t)return;let r=t;r["x-tiktok-player"]&&("onStateChange"!==r.type||1!==r.value||s.current||(s.current=!0,a.current?.()))};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[d]);let c=r?`${d1}/${e}`:`${d1}/${e}?autoplay=0`;return(0,lh.jsxs)("div",{className:"relative w-full h-full overflow-hidden bg-black rounded-[inherit]",style:{minHeight:t},children:[(0,lh.jsx)(dV,{show:o,platform:"tiktok"}),(0,lh.jsx)("iframe",{ref:i,src:c,className:"border-0 absolute inset-0 w-full h-full tiktok-embed-iframe",style:{opacity:+!o},onLoad:()=>l(!1),loading:"lazy",allow:"fullscreen",sandbox:dB}),(0,lh.jsx)(dY,{active:!r})]})}let d5={"spotify-track":"track","spotify-album":"album","spotify-artist":"artist","spotify-playlist":"playlist","spotify-show":"show","spotify-episode":"episode"},d8="https://open.spotify.com/embed/iframe-api/v1",d9=null,d6=!1,d7=[],ce="https://www.instagram.com/embed.js";function ct(){if(window.instgrm?.Embeds?.process)return Promise.resolve(!0);let e=document.querySelector(`script[src="${ce}"]`);return e?new Promise(t=>{let r=0,n=setInterval(()=>{r++,window.instgrm?.Embeds?.process?(clearInterval(n),t(!0)):r>30&&(clearInterval(n),e.remove(),cr().then(t))},100)}):cr()}function cr(){return new Promise(e=>{let t=document.createElement("script");t.src=ce,t.async=!0,t.onload=()=>{let t=0,r=setInterval(()=>{t++,window.instgrm?.Embeds?.process?(clearInterval(r),e(!0)):t>50&&(clearInterval(r),e(!1))},100)},t.onerror=()=>e(!1),document.body.appendChild(t)})}let cn="https://player.vimeo.com";function co(e,t){let r=new URL(e);return r.searchParams.set("autoplay","0"),r.searchParams.set("title","0"),r.searchParams.set("byline","0"),r.searchParams.set("portrait","0"),t&&r.searchParams.set("muted","1"),r.toString()}let cl={theme:"dark",width:"100%",height:"100%",muted:!0,autoplay:!1};function ci(){let e=window.location.hostname;return"localhost"===e||"127.0.0.1"===e?"localhost":e}var ca=e.i(80685),cs="twttr",cd=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function cc(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function cu(e){var t=(0,lx.useRef)();return!function(e,t){if(cc(e,t))return!0;
9if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!cc(e[r[o]],t[r[o]]))return!1;return!0}(e,t.current)&&(t.current=e),t.current}function cm(e){return"object"==typeof e?Object.assign({},e):e}var cf="twdiv",cp=function(e){var t=e.tweetId,r=e.options,n=e.onLoad,o=e.renderError,l=function(e,t,r,n){var o=(0,lx.useState)(null),l=o[0],i=o[1],a=(0,lx.useRef)(null);if(!cd)return{ref:a,error:l};var s=[e,cu(t),cu(r)];return(0,lx.useEffect)(function(){i(null);var o=!1;if(a.current){if(l=a.current,l&&l.querySelectorAll("*").forEach(function(e){e.hasAttribute(cf)&&e.remove()}),!a||!a.current)return;var l,s=document.createElement("div");s.setAttribute(cf,"yes"),a.current.appendChild(s),new Promise(function(e,t){var r=function(){return t(Error("Could not load remote twitter widgets js"))};ca.default.isDefined(cs)||(0,ca.default)("https://platform.twitter.com/widgets.js",cs),ca.default.ready(cs,{success:function(){var t=window[cs];t&&t.widgets||r(),e(t.widgets)},error:r})}).then(function(n){return n[e](cm(t),s,cm(r))}).then(function(e){if(!e&&!o)throw Error("Twitter could not create widget. If it is a Timeline or Tweet, ensure the screenName/tweetId exists.");if(a&&a.current){if(o){s&&s.remove();return}n&&n()}}).catch(function(e){console.error(e),i(e)})}return function(){o=!0}},s),{ref:a,error:l}}("createTweet",t,r,n),i=l.ref,a=l.error;return lx.default.createElement("div",{ref:i},a&&o&&o(a))};let ch=`${dB} allow-pointer-lock`;e.i(47167);let cb="https://developer.ticketmaster.com/products-and-docs/widgets/event-discovery/1.0.0/lib/main-widget.js",cg="https://widget.bandsintown.com/main.min.js",cx="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap",cy=`
10  .bit-top-track-button { display: none !important; }
11  .bit-widget { padding-top: 10px !important; padding-bottom: 20px !important; }
12`;function cv(e){return e&&"transparent"!==e?lF(e)>.5?"light":"dark":"light"}let c$=null,cw="https://substackcdn.com/image/fetch/";function ck(e,t){return e.startsWith(cw)?e:`${cw}w_${t},c_limit,f_auto,q_auto:good/${encodeURIComponent(e)}`}let cC=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function cj({card:e,theme:t,interactive:r,onOutboundClick:n,onHeightChange:o}){let l,i=t.textColor??"#000000",a=(0,lx.useRef)(null),s=(0,lx.useRef)(o);s.current=o,(0,lx.useEffect)(()=>{let e=a.current;if(!e)return;let t=0,r=new ResizeObserver(e=>{let r=Math.ceil(e[0]?.contentRect.height??0);r>50&&r!==t&&(t=r,s.current?.(r))});return r.observe(e),()=>r.disconnect()},[]);let d=e.publishedAt?Number.isNaN((l=new Date(e.publishedAt)).getTime())?null:`${cC[l.getUTCMonth()]} ${l.getUTCDate()}, ${l.getUTCFullYear()}`:null,c=e.wordCount?Math.max(1,Math.round(e.wordCount/238)):null,u=e.authorName??e.publicationName,m=nO.get("substack")?.squareIconPath;return(0,lh.jsxs)("div",{className:"relative h-full w-full overflow-hidden rounded-[inherit]",children:[(0,lh.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":e.title,className:"block no-underline",onClick:()=>n?.(e.url),children:(0,lh.jsxs)("div",{ref:a,children:[e.coverImageUrl&&(0,lh.jsx)("div",{className:"w-full overflow-hidden",style:{aspectRatio:"1200 / 630",backgroundColor:e.palette?.[0]??"transparent"},children:(0,lh.jsx)("img",{src:ck(e.coverImageUrl,600),alt:"",loading:"lazy",className:"h-full w-full object-cover"})}),(0,lh.jsxs)("div",{className:"px-4 py-3",children:[(0,lh.jsx)("p",{className:"text-base font-bold leading-snug line-clamp-2",style:{color:i},children:e.title}),e.subtitle&&(0,lh.jsx)("p",{className:"mt-1 text-sm leading-snug line-clamp-2",style:{color:i,opacity:.65}
12,children:e.subtitle}),(0,lh.jsxs)("div",{className:"mt-2.5 flex items-center gap-2",children:[e.authorPhotoUrl&&(0,lh.jsx)("img",{src:ck(e.authorPhotoUrl,64),alt:"",loading:"lazy",width:24,height:24,className:"h-6 w-6 flex-shrink-0 rounded-full object-cover"}),(0,lh.jsxs)("div",{className:"min-w-0 flex-1",children:[u&&(0,lh.jsx)("p",{className:"truncate text-xs font-medium",style:{color:i,opacity:.8},children:u}),(0,lh.jsx)("p",{className:"truncate text-[11px]",style:{color:i,opacity:.5},children:[d,c?`${c} min read`:null].filter(Boolean).join(" · ")})]}),"number"==typeof e.reactionCount&&e.reactionCount>0&&(0,lh.jsxs)("span",{className:"flex flex-shrink-0 items-center gap-1 text-[11px]",style:{color:i,opacity:.5},children:[(0,lh.jsx)(ah,{className:"h-3 w-3","aria-hidden":!0}),e.reactionCount]}),m&&(0,lh.jsx)("img",{src:m,alt:"Substack",width:16,height:16,className:"flex-shrink-0 rounded"})]})]})]})}),(0,lh.jsx)(dY,{active:!r})]})}let cN={youtube:function({link:t,theme:r,embedData:n,interactive:o,minHeight:l=254,onPlay:i}){let a=n?.variant,s=n?.embedUrl,d=n?.contentId,c="youtube-channel"===a,u="youtube-short"===a,m=s?.includes("/embed/videoseries")||!1,f=c||m,p=(0,lx.useRef)(null),h=(0,lx.useRef)(null),b=(0,lx.useRef)(null),g=(0,lx.useId)(),x=(0,lx.useRef)(!1),y=(0,lx.useRef)(!1),v=(0,lx.useRef)(!1),$=(0,lx.useRef)(i);$.current=i;let w=(0,lx.useCallback)(()=>{v.current||(v.current=!0,$.current?.())},[]),[k,C]=(0,lx.useState)(!1),[j,N]=(0,lx.useState)(!0),[S,P]=(0,lx.useState)(!1),[I,E]=(0,lx.useState)(!1),[T,L]=(0,lx.useState)(null),R=function(e){if(!e)return"";for(let t of[/\/embed\/([^?&/]+)/,/[?&]v=([^&]+)/,/youtu\.be\/([^?&]+)/]){let r=e.match(t);if(r&&"videoseries"!==r[1])return r[1]}return""}(s)||d||"";(0,lx.useEffect)(()=>{!S||u||f||T||e.A(22334).then(e=>L(()=>e.default))},[S,u,f,T]),(0,lx.useEffect)(()=>{let e;if(!T||!S||u||f||!p.current||y.current)return;let t=p.current;N(!0);let r=document.createElement("div");r.style.width="100%",r.style.height="100%",t.appendChild(r),h.current=r;try{e=T(r,{videoId:R,playerVars:{autoplay:+!!x.current,playsinline:1}})}catch{try{t.replaceChildren()}catch{}h.current=null,y.current=!1,N(!1);return}return y.current=!0,b.current=e,dQ[g]=e,e.on("stateChange",e=>{1===e.data?(Object.entries(dQ).forEach(([e,t])=>{e!==g&&t?.pauseVideo?.()}),w(),C(!0),N(!1)):(2===e.data||0===e.data)&&C(!1)}),e.on("ready",()=>{N(!1),x.current&&e.playVideo()}),()=>{delete dQ[g];try{b.current?.destroy?.()}catch{}b.current=null,y.current=!1,h.current=null;try{t.replaceChildren()}catch{}}},[T,S,u,f,g,R,w]);let M=dJ({embedUrl:s,videoId:R,channelId:d,isChannel:c,mute:!0,autoplay:!1}),A=dJ({embedUrl:s,channelId:d,isChannel:c,autoplay:!0}),_=dJ({embedUrl:s,channelId:d,isChannel:c,mute:!!u||void 0,autoplay:!!u||void 0}),O=(0,lx.useCallback)(()=>{w(),f?(C(!0),P(!0)):(S?b.current?b.current.playVideo():(x.current=!0,N(!0)):(x.current=!0,N(!0),P(!0)),C(!0))},[S,f,w]);if(!s&&!d)return(0,lh.jsx)(dK,{link:t,theme:r});let z=j&&!I;return(0,lh.jsxs)("div",{className:"relative w-full h-full overflow-hidden",style:{borderRadius:r.borderRadius?`${r.borderRadius}`:void 0,minHeight:l},children:[!k&&(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsx)("iframe",{src:M,className:"absolute inset-0 h-full w-full border-0 pointer-events-none",title:"YouTube preview",allow:"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture",sandbox:dB,loading:"lazy",onLoad:()=>{E(!0),N(!1)}}),(0,lh.jsx)("div",{onClick:O,className:"absolute inset-0 z-10 cursor-pointer"}),(0,lh.jsx)(dV,{show:z,platform:"youtube"})]}),f&&k&&(0,lh.jsx)("iframe",{src:A,className:"h-full w-full border-0",title:"YouTube player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",sandbox:dB,allowFullScreen:!0,loading:"lazy"}),!f&&S&&(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsx)(dV,{show:j,platform:"youtube"}),u?(0,lh.jsx)("iframe",{src:_,className:"h-full w-full border-0",title:"YouTube Short player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",sandbox:dB,allowFullScreen:!0,loading:"lazy",onLoad:()=>N(!1)}):(0,lh.jsx)("div",{ref:p,className:"h-full w-full",style:{opacity:+!j}})]}),(0,lh.jsx)(dY,{active:!o})]})},tiktok:function({link:e,theme:t,embedData:r,interactive:n,minHeight:o=480,onHeightChange:l,onPlay:i,onOutboundClick:a}){let s=r?.variant,d=r?.contentId;return d?"tiktok-profile"===s?(0,lh.jsx)(d3,{contentId:d,interactive:n,onHeightChange:l,minHeight:o,onOutboundClick:a}):"tiktok-video"===s?(0,lh.jsx)(d4,{contentId:d,minHeight:o,interactive:n,onPlay:i}):(0,lh.jsx)(dK,{link:e,theme:t}):(0,lh.jsx)(dK,{link:e,theme:t})},spotify:function({link:e,theme:t,embedData:r,interactive:n,minHeight:o=152,onPlay:l}){let[i,a]=(0,lx.useState)(!0),[s,d]=(0,lx.useState)(!1),[c,u]=(0,lx.useState)(!1),m=(0,lx.useRef)(!1),f=r?.variant,p=r?.embedUrl,h=r?.contentId,b=p?.trim()||function(e,t){if(!e||!t)return"";let r=d5[e];return r?`https://open.spotify.com/embed/${r}/${t}`:""}(f,h),g=function(e,t,r){let n=e?d5[e]:void 0;if(n&&t)return`spotify:${n}:${t}`;let o=r?.trim();if(o){let e=o.match(/\/embed\/(track|album|artist|playlist|show|episode)\/([^/?#]+)/);if(e)return`spotify:${e[1]}:${e[2]}`}return""}(f,h,p),x=!!l&&!!g&&!c,y=(0,lx.useRef)(null),v=(0,lx.useRef)(!1),$=(0,lx.useRef)(l);if($.current=l,(0,lx.useEffect)(()=>
12{if(!x)return;let e=y.current;if(!e)return;let t=!1,r=null;v.current=!1;let n=document.createElement("div");n.style.width="100%",n.style.height=`${o}px`,e.appendChild(n);let l=()=>{v.current||(v.current=!0,$.current?.())},i=window.setTimeout(()=>{t||r||u(!0)},6e3);return!function(e){if(d9)return e(d9);if((d7.push(e),!d6)&&(d6=!0,window.onSpotifyIframeApiReady=e=>{d9=e,d7.splice(0).forEach(t=>t(e))},!document.querySelector(`script[src="${d8}"]`))){let e=document.createElement("script");e.src=d8,e.async=!0,document.body.appendChild(e)}}(s=>{!t&&e.contains(n)&&s.createController(n,{uri:g,width:"100%",height:o},e=>{t?e.destroy?.():(r=e,window.clearTimeout(i),m.current=!0,a(!1),e.addListener("playback_started",l),e.addListener("playback_update",e=>{e?.data?.isPaused===!1&&l()}))})}),()=>{t=!0,window.clearTimeout(i);try{r?.destroy?.()}catch{}try{e.replaceChildren()}catch{}}},[x,g,o]),!b||s)return(0,lh.jsx)(dK,{link:e,theme:t});let w=t.borderRadius?`${t.borderRadius}`:void 0,k=i&&!m.current;return(0,lh.jsxs)("div",{className:"relative w-full h-full overflow-hidden",style:{borderRadius:w},children:[(0,lh.jsx)(dV,{show:k,platform:"spotify"}),x?(0,lh.jsx)("div",{ref:y,className:"w-full border-0",style:{height:o,opacity:+!k}}):(0,lh.jsx)("iframe",{src:b,width:"100%",height:o,className:"border-0",style:{opacity:+!k},onLoad:()=>{m.current=!0,a(!1)},onError:()=>{d(!0),a(!1)},allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture",sandbox:dB,loading:"lazy"}),(0,lh.jsx)(dY,{active:!n})]})},instagram:function({link:e,theme:t,embedData:r,onHeightChange:n,interactive:o,minHeight:l=480,onOutboundClick:i}){let a=r?.contentId,s=r?.variant,d="instagram-profile"===s,{loading:c,setLoading:u,resolvedHeight:m,saveHeight:f,containerRefCallback:p}=dW("instagram",a??null,n),[h,b]=(0,lx.useState)(!1),[g,x]=(0,lx.useState)(!1),[y,v]=(0,lx.useState)(!1),$=(0,lx.useRef)(null),w=(0,lx.useCallback)(e=>{$.current=e,p(e)},[p]),k=(0,lx.useRef)(null),C=(0,lx.useRef)(!1),j=(0,lx.useRef)(null),N=(0,lx.useRef)(null),S=d?`https://www.instagram.com/${a}/`:"instagram-reel"===s?`https://www.instagram.com/reel/${a}/`:`https://www.instagram.com/p/${a}/`;dG({containerRef:$,enabled:!!i,onDetected:()=>i?.(e.url,{isHeuristic:!0})}),(0,lx.useEffect)(()=>{let e=!0;return ct().then(t=>{e&&v(t)}),()=>{e=!1}},[]),(0,lx.useEffect)(()=>(C.current=!1,b(!1),x(!1),()=>{j.current?.disconnect(),j.current=null,N.current=null}),[a]),(0,lx.useEffect)(()=>{if(!y||!k.current||!a||C.current)return;C.current=!0;let e=()=>window.instgrm?.Embeds?.process?.();e();let t=setTimeout(e,100),r=setTimeout(e,500),n=setTimeout(e,1e3),o=setTimeout(e,2e3);return()=>{clearTimeout(t),clearTimeout(r),clearTimeout(n),clearTimeout(o)}},[y,a]);let P=(0,lx.useCallback)(e=>{if(N.current===e&&j.current)return;N.current=e,j.current?.disconnect();let t=()=>{let t=Math.round(e.getBoundingClientRect().height/ry(e));t>100&&f(t-50)};t();let r=new ResizeObserver(()=>t());r.observe(e),j.current=r},[f]);if((0,lx.useEffect)(()=>{if(!$.current)return;let e=()=>{let e=$.current?.querySelector("iframe");return!!e&&(b(!0),u(!1),P(e),!0)};if(e())return;let t=new MutationObserver(()=>e());t.observe($.current,{childList:!0,subtree:!0});let r=setInterval(()=>{e()&&clearInterval(r)},500);return()=>{t.disconnect(),clearInterval(r)}},[a,P,u]),(0,lx.useEffect)(()=>{if(h)return;let e=setTimeout(()=>u(!1),8e3);return()=>clearTimeout(e)},[h,u]),(0,lx.useEffect)(()=>{if(h)return;let e=setTimeout(()=>{y||ct().then(v)},5e3);return()=>clearTimeout(e)},[h,y]),(0,lx.useEffect)(()=>{if(h)return;let e=setTimeout(()=>{x(!0),u(!1)},3e4);return()=>clearTimeout(e)},[h,u]),!a||g)return(0,lh.jsx)(dK,{link:e,theme:t});let I=m??l,E=c&&!h;return(0,lh.jsxs)("div",{ref:w,className:"relative w-full overflow-hidden bg-background",style:{minHeight:I},children:[(0,lh.jsx)(dV,{show:E,platform:"instagram",minHeight:I}),(0,lh.jsx)("div",{ref:k,className:"instagram-embed-wrapper",style:{position:"relative",width:"100%",overflow:"hidden",opacity:+!!h,transition:"opacity 0.3s ease",...m?{height:m}:{}},children:(0,lh.jsx)("blockquote",{className:"instagram-media","data-instgrm-permalink":S,"data-instgrm-version":"14",...!d&&{"data-instgrm-captioned":!0},style:{background:"#FFF",border:0,borderRadius:"3px",boxShadow:"none",padding:0,margin:0,maxWidth:"100%",minWidth:"100%",width:"100%"}})}),(0,lh.jsx)("style",{children:`
13        .instagram-embed-wrapper iframe {
14          border: none !important;
15        }
16      `}),(0,lh.jsx)(dY,{active:!o})]})},vimeo:function({link:e,theme:t,embedData:r,interactive:n,minHeight:o=315,onPlay:l}){let i=r?.variant,a=r?.contentId,s=r?.embedUrl,[d,c]=(0,lx.useState)(!1),[u,m]=(0,lx.useState)(!0),[f,p]=(0,lx.useState)(!1),h="vimeo-video"===i,b=(0,lx.useRef)(null),g=(0,lx.useRef)(!1),x=(0,lx.useRef)(l);x.current=l;let y=!!l,v=(0,lx.useCallback)(()=>{b.current?.contentWindow?.postMessage(JSON.stringify({method:"addEventListener",value:"play"}),cn)},[]);(0,lx.useEffect)(()=>
16{if(!y||!d)return;let e=e=>{if(e.origin!==cn||e.source!==b.current?.contentWindow)return;let t=e.data;if("string"==typeof t)try{t=JSON.parse(t)}catch{return}let r=t?.event;"ready"===r?v():"play"!==r||g.current||(g.current=!0,x.current?.())};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[y,d,v]);let{previewSrc:$,playbackSrc:w}=(0,lx.useMemo)(()=>s?h?{previewSrc:co(s,!0),playbackSrc:co(s,!1)}:{previewSrc:s,playbackSrc:s}:{previewSrc:"",playbackSrc:""},[s,h]),k=(0,lx.useCallback)(()=>{c(!0),m(!0)},[]);if(!a||!s)return(0,lh.jsx)(dK,{link:e,theme:t});let C=!d,j=u&&!f,N="vimeo-showcase"===i?"Vimeo showcase":"vimeo-event"===i?"Vimeo event":"Vimeo video";return(0,lh.jsxs)("div",{className:"relative h-full w-full overflow-hidden",style:{borderRadius:t.borderRadius?`${t.borderRadius}`:void 0,minHeight:o},children:[C&&(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsx)("iframe",{src:$,className:"pointer-events-none absolute inset-0 h-full w-full border-0",title:`${N} preview`,allow:"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture",sandbox:dB,loading:"lazy",onLoad:()=>{p(!0),m(!1)}}),(0,lh.jsx)("div",{onClick:k,className:"absolute inset-0 z-10 cursor-pointer"}),(0,lh.jsx)(dV,{show:j,platform:"vimeo"})]}),d&&(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsx)(dV,{show:u,platform:"vimeo"}),(0,lh.jsx)("iframe",{ref:b,src:w,className:"h-full w-full border-0",style:{opacity:+!u},title:N,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",sandbox:dB,allowFullScreen:!0,loading:"lazy",onLoad:()=>{m(!1),y&&v()}})]}),(0,lh.jsx)(dY,{active:!n})]})},twitch:function({link:e,theme:t,embedData:r,interactive:n,minHeight:o=280,onPlay:l}){let i=r?.variant,a=r?.contentId,s=(0,lx.useId)(),d="twitch-live"===i,c="twitch-video"===i,u="twitch-clip"===i,[m,f]=(0,lx.useState)(!0),[p,h]=(0,lx.useState)(0),b=(0,lx.useRef)(null),g=(0,lx.useRef)(!1),x=(0,lx.useRef)(l);x.current=l;let y=(0,lx.useRef)(!1),v=(0,lx.useCallback)(()=>{y.current||(y.current=!0,x.current?.())},[]);dG({containerRef:b,enabled:u&&!!l,onDetected:()=>x.current?.({isHeuristic:!0})});let $=`twitch-${a}-${s.replace(/:/g,"")}-${p}`,w="ready"===dX(d||c?"https://embed.twitch.tv/embed/v1.js":null);if((0,lx.useEffect)(()=>{if(!w||!a||u||!window.Twitch)return;g.current=!1,y.current=!1,f(!0);let e=setTimeout(()=>{let e=document.getElementById($);if(!e||!window.Twitch)return;e.innerHTML="";let t={parent:[ci()],layout:"video",...cl};d?t.channel=a:c&&(t.video=a);try{let e=new window.Twitch.Embed($,t);g.current=!0,e.addEventListener&&e.addEventListener("video.ready",()=>{if(f(!1),!x.current)return;let t=e.getPlayer?.(),r=window.Twitch?.Player?.PLAYING??"play";t?.addEventListener?.(r,v)}),setTimeout(()=>{g.current&&f(!1)},3e3)}catch(e){console.error("Failed to create Twitch embed:",e),f(!1)}},200);return()=>{clearTimeout(e),g.current=!1}},[w,a,u,d,c,$,p,v]),(0,lx.useEffect)(()=>{u||(h(e=>e+1),f(!0))},[n,u]),!a)return(0,lh.jsx)(dK,{link:e,theme:t});if(u)return(0,lh.jsxs)("div",{ref:b,className:"relative h-full w-full overflow-hidden",style:{borderRadius:t.borderRadius?`${t.borderRadius}px`:void 0,minHeight:o},children:[(0,lh.jsx)(dV,{show:m,platform:"twitch"}),(0,lh.jsx)("iframe",{src:`https://clips.twitch.tv/embed?clip=${a}&parent=${ci()}`,className:"h-full w-full border-0",style:{opacity:+!m},onLoad:()=>f(!1),loading:"lazy",sandbox:dB,allowFullScreen:!0,title:"Twitch clip"}),(0,lh.jsx)(dY,{active:!n})]});return(0,lh.jsxs)("div",{className:"relative h-full w-full overflow-hidden",style:{borderRadius:t.borderRadius?`${t.borderRadius}px`:void 0,minHeight:o},children:[(0,lh.jsx)(dV,{show:m,platform:"twitch"}),(0,lh.jsx)("div",{id:$,ref:b,className:"h-full w-full",style:{opacity:+!m}}),(0,lh.jsx)(dY,{active:!n})]},p)},applemusic:function({link:e,theme:t,embedData:r,interactive:n,onPlay:o,minHeight:l=175}){let[i,a]=(0,lx.useState)(!0),[s,d]=(0,lx.useState)(!1),c=(0,lx.useRef)(!1),u=(0,lx.useRef)(null);dG({containerRef:u,enabled:!!o,onDetected:()=>o?.({isHeuristic:!0})});let m=r?.variant,f=r?.embedUrl,p=r?.contentId,h=f?.trim()||(m&&p?`https://${"applemusic-podcast"===m||"applemusic-podcast-episode"===m?"embed.podcasts.apple.com":"embed.music.apple.com"}/${p}`:"");
16if(!h||s)return(0,lh.jsx)(dK,{link:e,theme:t});let b="applemusic-artist"===m,g=t.borderRadius?`${t.borderRadius}`:void 0,x=i&&!c.current;return b?(0,lh.jsxs)("div",{ref:u,className:"relative h-full w-full overflow-hidden",style:{borderRadius:g,backgroundColor:"#F8F8FA"},children:[(0,lh.jsx)(dV,{show:x,platform:"applemusic",minHeight:120}),(0,lh.jsx)("div",{className:"overflow-hidden",style:{height:120},children:(0,lh.jsx)("iframe",{src:h,width:"100%",height:150,className:"border-0",scrolling:"no",style:{opacity:+!x,borderRadius:"10px"},onLoad:()=>{c.current=!0,a(!1)},onError:()=>{d(!0),a(!1)},allow:"autoplay; encrypted-media; fullscreen; clipboard-write",sandbox:"allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation-by-user-activation",loading:"lazy"})}),(0,lh.jsx)(dY,{active:!n})]}):(0,lh.jsxs)("div",{ref:u,className:"relative h-full w-full overflow-hidden",style:{borderRadius:g,backgroundColor:"#F8F8FA"},children:[(0,lh.jsx)(dV,{show:x,platform:"applemusic"}),(0,lh.jsx)("iframe",{src:h,width:"100%",height:l,className:"border-0",style:{opacity:+!x,borderRadius:"10px"},onLoad:()=>{c.current=!0,a(!1)},onError:()=>{d(!0),a(!1)},allow:"autoplay; encrypted-media; fullscreen; clipboard-write",sandbox:"allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation-by-user-activation",loading:"lazy"}),(0,lh.jsx)(dY,{active:!n})]})},x:function({link:e,theme:t,embedData:r,onHeightChange:n,interactive:o,minHeight:l=400,onOutboundClick:i}){let a=r?.contentId,{loading:s,setLoading:d,resolvedHeight:c,saveHeight:u,containerRefCallback:m}=dW("x",a??null,n),[f,p]=(0,lx.useState)(!1),h=(0,lx.useRef)(null),b=(0,lx.useRef)(null),g=(0,lx.useRef)(null),x=(0,lx.useRef)(0),y=(0,lx.useRef)(null);(0,lx.useEffect)(()=>{x.current=0,y.current=null,p(!1)},[a]),dG({containerRef:h,enabled:!!i,onDetected:()=>i?.(e.url,{isHeuristic:!0})});let v=(0,lx.useCallback)(e=>{if(e<=100)return;let t=e-10+10;y.current!==t&&(y.current=t,u(t))},[u]),$=(0,lx.useCallback)(()=>{x.current++;let e=h.current;if(!e){x.current<30&&setTimeout($,300);return}let t=e.querySelector("iframe"),r=e.querySelector(".twitter-tweet-rendered")??t;if(!r)return void(x.current<30?setTimeout($,300):d(!1));let n=r.scrollHeight||r.clientHeight||0;if(n>100&&v(n),g.current===r&&b.current)return;b.current?.disconnect();let o=new ResizeObserver(e=>{for(let t of e){let e=Math.round(t.contentRect.height);e>100&&v(e)}});o.observe(r),b.current=o,g.current=r},[v,d]),w=(0,lx.useCallback)(()=>{p(!0),d(!1),setTimeout($,100)},[$,d]);if((0,lx.useEffect)(()=>()=>{b.current?.disconnect(),b.current=null,g.current=null},[a]),(0,lx.useEffect)(()=>{if(f)return;let e=setTimeout(()=>d(!1),8e3);return()=>clearTimeout(e)},[f,d]),!a)return(0,lh.jsx)(dK,{link:e,theme:t});let k=c??l;return(0,lh.jsxs)("div",{ref:m,className:"relative w-full overflow-hidden bg-background rounded-[inherit]",style:{height:k,transition:"height 0.2s ease"},children:[(0,lh.jsx)(dV,{show:s&&!f,platform:"x",minHeight:l}),(0,lh.jsx)("div",{ref:h,className:"w-full",style:{opacity:+!!f,transition:"opacity 0.3s ease",marginTop:-10,height:k+10,overflow:"hidden"},children:(0,lh.jsx)(cp,{tweetId:a,onLoad:w,options:{conversation:"none"}})}),(0,lh.jsx)(dY,{active:!o})]})},threads:function({link:e,theme:t,embedData:r,onHeightChange:n,interactive:o,minHeight:l=500,onOutboundClick:i}){let a=r?.contentId,{loading:s,setLoading:d,resolvedHeight:c,saveHeight:u,containerRefCallback:m}=dW("threads",a??null,n),f=(0,lx.useRef)(null),p=(0,lx.useRef)(null),h=(0,lx.useCallback)(e=>{p.current=e,m(e)},[m]);if(dG({containerRef:p,enabled:!!i,onDetected:()=>i?.(e.url,{isHeuristic:!0})}),(0,lx.useEffect)(()=>{if(!a)return;let e=e=>{let t=e.origin;if("https://www.threads.net"!==t&&"https://www.threads.com"!==t||f.current&&e.source!==f.current.contentWindow)return;let r=e.data,n="number"==typeof r?r:Number.parseFloat(String(r));Number.isFinite(n)&&!(n<100)&&u(n)};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[a,u]),!a)return(0,lh.jsx)(dK,{link:e,theme:t});let b=`https://www.threads.com/t/${a}/embed`,g=c??l;return(0,lh.jsxs)("div",{ref:h,className:"relative w-full overflow-hidden bg-background rounded-[inherit]",style:{height:g,transition:"height 0.2s ease"},children:[(0,lh.jsx)(dV,{show:s,platform:"threads",minHeight:g}),(0,lh.jsx)("iframe",{ref:f,src:b,onLoad:()=>d(!1),style:{width:"100%",height:g,border:"none",opacity:+!s,transition:"opacity 0.3s ease"},allow:"encrypted-media; fullscreen; clipboard-write; picture-in-picture; web-share",sandbox:dB,loading:"lazy",scrolling:"no"}),(0,lh.jsx)(dY,{active:!o})]})},shopmy:function({link:e,theme:t,embedData:r,interactive:n,minHeight:o}){let[l,i]=(0,lx.useState)(!0),[a,s]=(0,lx.useState)(!1),d=r?.contentId,c=e.embed?.embedUrl??void 0,u=(0,lx.useMemo)(()=>(function(e,t){if(t){let e,r=(e=t.match(/shopmy\.us\/(?:shop\/)?collections\/(?:embed\/|public\/)?(\d+)/i),e?.[1]??null);if(r)return`https://shopmy.us/collections/embed/${r}?mobileOnly=true&showTitle=true`}return e?`https://shopmy.us/collections/embed/${e}?mobileOnly=true&showTitle=true`:""})(d,c),[d,c]);return((0,lx.useEffect)(()=>{let e=setTimeout(()=>{l&&i(!1)},15e3);return()=>clearTimeout(e)},[l]),(0,lx.useEffect)(()=>{i(!0),s(!1)},[d]),!u||a)?(0,lh.jsx)(dK,{link:e,theme:t}):(0,lh.jsxs)("div",{className:"relative h-full w-full overflow-hidden bg-background",style:{minHeight:o},children:[(0,lh.jsx)(dV,{show:l,platform:"shopmy"}),(0,lh.jsx)("iframe",{src:u,className:"h-full w-full border-0",style:{opacity:+!l,transition:"opacity 0.2s ease"},onLoad:()=>i(!1),onError:()=>{s(!0),i(!1)},allow:"encrypted-media",sandbox:dB,loading:"lazy",scrolling:"no",title:"ShopMy collection"}),(0,lh.jsx)(dY,{active:!n})]})},gofundme:function({link:e,theme:t,embedData:r,interactive:n,onHeightChange:o,minHeight:l=200,blockLayout:i}){let a=r?.contentId,s="embed-gofundme-lg"===i?"large":"medium",{loading:d,setLoa
16ding:c,resolvedHeight:u,saveHeight:m,containerRefCallback:f}=dW("gofundme",a?`${a}-${s}`:null,o),[p,h]=(0,lx.useState)(!1),b=(0,lx.useRef)(null),g=(0,lx.useMemo)(()=>a?`https://www.gofundme.com/f/${a}/widget/${s}`:"",[a,s]);(0,lx.useEffect)(()=>{h(!1)},[a,s]),(0,lx.useEffect)(()=>{null===u&&c(!0)},[n,u,c]),(0,lx.useEffect)(()=>{if(a)return window.addEventListener("message",e),()=>window.removeEventListener("message",e);function e(e){if(e.origin.includes("gofundme.com")&&b.current&&e.source===b.current.contentWindow){let t=e.data,r=null;"object"==typeof t&&null!==t?r="gfm-embed-widget-resize"===t.type&&"number"==typeof t.offsetHeight?t.offsetHeight:t.height??t.offsetHeight??t.h??null:"number"==typeof t&&t>50&&(r=t),r&&r>50&&m(r)}}},[a,m]);let x=(0,lx.useCallback)(()=>{c(!1)},[c]);if((0,lx.useEffect)(()=>{let e=setTimeout(()=>{c(!1)},15e3);return()=>clearTimeout(e)},[a,s,n,c]),!g||!a||p)return(0,lh.jsx)(dK,{link:e,theme:t});let y=u??l;return(0,lh.jsxs)("div",{ref:f,className:"relative w-full overflow-hidden bg-background rounded-[inherit]",style:{height:y},children:[(0,lh.jsx)(dV,{show:d,platform:"gofundme",minHeight:l}),(0,lh.jsx)("iframe",{ref:b,src:g,className:"w-full border-0",style:{height:"100%",opacity:+!d,transition:"opacity 0.3s ease"},onLoad:x,onError:()=>{h(!0),c(!1)},allow:"payment",sandbox:dB,loading:"lazy",scrolling:"no",title:"GoFundMe campaign widget"},`${a}-${s}`),(0,lh.jsx)(dY,{active:!n})]})},laylo:function({link:e,theme:t,embedData:r,interactive:n,onHeightChange:o,minHeight:l=200}){let i=r?.contentId,a=r?.embedUrl,{loading:s,setLoading:d,resolvedHeight:c,saveHeight:u,containerRefCallback:m}=dW("laylo",i??null,o),f=(0,lx.useRef)(null),p=(0,lx.useRef)(0);(0,lx.useEffect)(()=>{p.current=0},[i]);let h=(0,lx.useCallback)(()=>{let e=f.current;if(!e||!i)return;p.current++;let t=e.scrollHeight||e.offsetHeight||e.clientHeight||0;t>100?u(t):p.current<10?setTimeout(h,500):d(!1)},[i,u,d]),b=(0,lx.useCallback)(()=>{d(!1),null===c&&setTimeout(h,500)},[c,h,d]);if((0,lx.useEffect)(()=>{let e=setTimeout(()=>{d(!1)},1e4);return()=>clearTimeout(e)},[i,n,d]),!a||!i)return(0,lh.jsx)(dK,{link:e,theme:t});let g=c??l;return(0,lh.jsxs)("div",{ref:m,className:"relative w-full overflow-hidden bg-background rounded-[inherit]",style:{height:g},children:[(0,lh.jsx)(dV,{show:s,platform:"laylo",minHeight:l}),(0,lh.jsx)("iframe",{ref:f,src:a,className:"w-full border-0",style:{height:"100%",opacity:+!s,transition:"opacity 0.3s ease"},onLoad:b,onError:()=>d(!1),allow:"clipboard-write; encrypted-media",sandbox:dB,loading:"lazy",title:"Laylo embed"}),(0,lh.jsx)(dY,{active:!n})]})},matterport:function({link:e,theme:t,embedData:r,interactive:n,minHeight:o=280,onPlay:l}){let i,a=r?.contentId,[s,d]=(0,lx.useState)(!0),[c,u]=(0,lx.useState)(!1),[m,f]=(0,lx.useState)(!1),p=(0,lx.useRef)(!1),h=(0,lx.useRef)(l);h.current=l;let b=a?(i=new URLSearchParams({play:"1",help:"0",qs:"1",brand:"0",dh:"0",vr:"0"}),`https://my.matterport.com/show/?m=${a}&${i.toString()}`):"",g=(0,lx.useCallback)(()=>{f(!0),d(!0),p.current||(p.current=!0,h.current?.())},[]);if(!a)return(0,lh.jsx)(dK,{link:e,theme:t});let x=s&&!c;return(0,lh.jsxs)("div",{className:"relative h-full w-full overflow-hidden bg-black",style:{borderRadius:t.borderRadius?`${t.borderRadius}`:void 0,minHeight:o},children:[!m&&(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsx)("iframe",{src:b,className:"pointer-events-none absolute inset-0 h-full w-full border-0",title:"Matterport 3D tour preview",allow:"fullscreen; vr",sandbox:ch,loading:"lazy",onLoad:()=>{u(!0),d(!1)}}),(0,lh.jsx)("div",{onClick:g,className:"absolute inset-0 z-10 cursor-pointer"}),(0,lh.jsx)(dV,{show:x,platform:"matterport"})]}),m&&(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsx)(dV,{show:s,platform:"matterport"}),(0,lh.jsx)("iframe",{src:b,className:"h-full w-full border-0",style:{opacity:+!s},title:"Matterport 3D tour",allow:"fullscreen; vr",sandbox:ch,allowFullScreen:!0,loading:"lazy",onLoad:()=>d(!1)})]}),(0,lh.jsx)(dY,{active:!n})]})},ticketmaster:function({link:e,theme:t,embedData:r,interactive:n,minHeight:o=340,onOutboundClick:l}){let[i,a]=(0,lx.useState)(!0),[s,d]=(0,lx.useState)(!1),c=(0,lx.useRef)(null),u=(0,lx.useMemo)(()=>`tm-widget-${Math.random().toString(36).slice(2,9)}`,[]),m="CR2w1HXYhewkKxFAU5kpcl2siwBdEtNH",f=r?.contentId,p=(0,lx.useMemo)(()=>(function(e){try{let t=new URL(e).pathname,r=t.match(/^\/([^/]+)\/event\//);if(r&&r[1])return r[1].split("-").slice(0,4).join(" ");let n=t.match(/^\/([^/]+)\/artist\//);if(n&&n[1])return n[1].replace(/-tickets$/,"").split("-").join(" ");let o=t.match(/^\/([^/]+)\/venue\//);if(o&&o[1])return o[1].replace(/-tickets.*$/,"").split("-").join(" ");return null}catch{return null}})(e.url)||f||"",[e.url,f]),h=(0,lx.useMemo)(()=>({type:"keyword",value:p}),[p]),b=dX(cb);return((0,lx.useEffect)(()=>
16{if("ready"===b){a(!1);let e=setTimeout(()=>d(!0),500);return()=>clearTimeout(e)}"error"===b&&a(!1)},[b]),(0,lx.useEffect)(()=>{if("ready"!==b||!h.value)return;let e=setTimeout(()=>{let e=document.querySelector(`script[src="${cb}"]`);e&&e.remove();let t=document.createElement("script");t.src=cb,t.async=!0,document.body.appendChild(t)},100);return()=>clearTimeout(e)},[b,h.value,h.type,u]),(0,lx.useEffect)(()=>{let e=c.current;if(!l||!e)return;let t=t=>{let r=t.target instanceof Element?t.target:null,n=r?.closest("a[href]");if(!n||!e.contains(n))return;let o=n.getAttribute("href")??"";/^https?:\/\//.test(o)&&l(o)};return e.addEventListener("click",t,!0),()=>e.removeEventListener("click",t,!0)},[l]),h.value&&m)?(0,lh.jsxs)("div",{ref:c,className:"relative w-full h-full overflow-hidden rounded-[inherit]",style:{backgroundColor:t.blockBackgroundColor||"#ffffff",minHeight:o},children:[(0,lh.jsx)(dV,{show:i&&!s,platform:"ticketmaster"}),(0,lh.jsx)("div",{id:u,"w-id":u,"w-theme":"simple","w-tmapikey":m,"w-type":"event-discovery","w-colorscheme":"light","w-size":"3","w-borderradius":"16","w-radius":"16","w-layout":"fullwidth","w-sorting":"dateAscending","w-titlelink":"off","w-branding":"Ticketmaster","w-buybuttonbackgroundcolor":"#026CDF","w-keyword":h.value,className:"w-full h-full",style:{minHeight:300,opacity:+!!s,transition:"opacity 0.3s ease"}},`${u}-${h.type}-${h.value}`),(0,lh.jsx)(dY,{active:!n})]}):(0,lh.jsx)(dK,{link:e,theme:t})},bandsintown:function({link:e,theme:t,interactive:r,embedData:n,onHeightChange:o,minHeight:l=300,onOutboundClick:i}){let a=n?.contentId,{loading:s,setLoading:d,resolvedHeight:c,saveHeight:u,containerRefCallback:m}=dW("bandsintown",a??null,o),f=(0,lx.useRef)(null),p=(0,lx.useCallback)(e=>{f.current=e,m(e)},[m]),h=(0,lx.useRef)(null),b=(0,lx.useRef)(!1),g=(0,lx.useRef)(null),x=(0,lx.useRef)(null),y=(0,lx.useRef)(null),v=(0,lx.useMemo)(()=>{let e=t.backgroundColor||"#ffffff",r=cv(e),n=t.accentColor||"#00b4b3",o=cv(n);return{backgroundColor:e,textColor:"light"===r?"#000000":"#ffffff",linkColor:n,linkTextColor:"light"===o?"#000000":"#ffffff",separatorColor:"light"===r?"rgba(0,0,0,0.1)":"rgba(255,255,255,0.1)"}},[t.backgroundColor,t.accentColor]),$=(0,lx.useMemo)(()=>JSON.stringify(v),[v]),w=(0,lx.useMemo)(()=>JSON.stringify({contentId:a,...v}),[a,v]),k=(0,lx.useMemo)(()=>{let e=y.current,t=null!==e&&e!==$;return y.current=$,t&&null!==c},[$,c]),C=(0,lx.useCallback)(()=>{let e=document.querySelector(`script[src="${cg}"]`);e&&e.remove();let t=document.createElement("script");t.src=cg,t.async=!0,t.onload=()=>{b.current=!0,setTimeout(()=>d(!1),500)},t.onerror=()=>{d(!1)},document.body.appendChild(t)},[d]);if((0,lx.useEffect)(()=>{k||null!==c&&d(!1)},[a,c,k,d]),(0,lx.useEffect)(()=>{!function(){if("undefined"==typeof document||document.querySelector(`link[href="${cx}"]`))return;let e=document.createElement("link");e.rel="stylesheet",e.href=cx,document.head.appendChild(e)}(),k&&d(!0);let e=setTimeout(()=>{C()},100);return()=>clearTimeout(e)},[w,C,k,d]),(0,lx.useEffect)(()=>{if(!f.current)return;let e=e=>{g.current&&clearTimeout(g.current),x.current=e,g.current=setTimeout(()=>{x.current&&x.current>50&&u(x.current)},1500)},t=new MutationObserver(()=>{f.current?.querySelector(".bit-widget")&&((()=>{if(!f.current)return;let t=f.current.querySelector(".bit-widget");t&&(h.current&&h.current.disconnect(),h.current=new ResizeObserver(t=>{for(let r of t){let t=r.contentRect.height+20;t>50&&e(t)}}),h.current.observe(t))})(),t.disconnect())});return t.observe(f.current,{childList:!0,subtree:!0}),()=>{t.disconnect(),h.current&&h.current.disconnect(),g.current&&clearTimeout(g.current)}},[w,u]),(0,lx.useEffect)(()=>{let e=setTimeout(()=>{d(!1)},15e3);return()=>clearTimeout(e)},[a,r,d]),(0,lx.useEffect)(()=>{let e=f.current;if(!i||!e)return;let t=t=>{let r=t.target instanceof Element?t.target:null,n=r?.closest("a[href]");if(!n||!e.contains(n))return;let o=n.getAttribute("href")??"";/^https?:\/\//.test(o)&&i(o)};return e.addEventListener("click",t,!0),()=>e.removeEventListener("click",t,!0)},[i,w]),!a)return(0,lh.jsx)(dK,{link:e,theme:t});let j=null!==c?c+1:l;return(0,lh.jsxs)("div",{ref:p,className:"relative w-full overflow-hidden",style:{backgroundColor:v.backgroundColor,height:j,transition:"height 0.3s ease"},children:[(0,lh.jsx)(dV,{show:s,platform:"bandsintown",minHeight:l,backgroundColor:v.backgroundColor}),(0,lh.jsx)(dY,{active:!r}),(0,lh.jsx)("style",{dangerouslySetInnerHTML:{__html:cy}}),(0,lh.jsx)("a",{className:"bit-widget-initializer","data-artist-name":a,"data-display-local-dates":"false","data-auto-style":"false","data-background-color":v.backgroundColor,"data-text-color":v.textColor,"data-link-color":v.linkColor,"data-link-text-color":v.linkTextColor,"data-separator-color":v.separatorColor,"data-display-limit":3,"data-display-logo":"true","data-display-track-button":"false","data-font":"Poppins","data-display-past-dates":"false","data-display-detail
16s":"false"})]},w)},soundcloud:function({link:e,theme:t,embedData:r,interactive:n,minHeight:o=166,onPlay:l}){let i,[a,s]=(0,lx.useState)(!0),[d,c]=(0,lx.useState)(!1),u=(0,lx.useRef)(!1),m=(0,lx.useRef)(null),f=(0,lx.useRef)(!1),p=(0,lx.useRef)(l);p.current=l;let h=!!l,b=r?.contentId,g=r?.embedUrl,x=g?.trim()||(b?(i=new URLSearchParams({url:`https://soundcloud.com/${b}`,buying:"false",sharing:"false",download:"false",show_artwork:"true",show_playcount:"true",show_user:"true",single_active:"true"}),`https://w.soundcloud.com/player/?${i.toString()}`):"");if((0,lx.useEffect)(()=>{if(!h||!x)return;let e=m.current;if(!e)return;let t=null,r=!1;return(window.SC?.Widget?Promise.resolve():c$||(c$=new Promise((e,t)=>{let r=document.createElement("script");r.src="https://w.soundcloud.com/player/api.js",r.async=!0,r.onload=()=>e(),r.onerror=()=>{c$=null,t(Error("Failed to load SoundCloud Widget API"))},document.head.appendChild(r)}))).then(()=>{!r&&window.SC?.Widget&&(t=window.SC.Widget(e)).bind(window.SC.Widget.Events.PLAY,()=>{f.current||(f.current=!0,p.current?.())})}).catch(()=>{}),()=>{if(r=!0,t&&window.SC?.Widget)try{t.unbind(window.SC.Widget.Events.PLAY)}catch{}}},[h,x]),!x||d)return(0,lh.jsx)(dK,{link:e,theme:t});let y=t.borderRadius?`${t.borderRadius}`:void 0,v=a&&!u.current;return(0,lh.jsxs)("div",{className:"relative h-full w-full overflow-hidden",style:{borderRadius:y},children:[(0,lh.jsx)(dV,{show:v,platform:"soundcloud"}),(0,lh.jsx)("iframe",{ref:m,src:x,width:"100%",height:o,className:"border-0",style:{opacity:+!v},onLoad:()=>{u.current=!0,s(!1)},onError:()=>{c(!0),s(!1)},allow:"autoplay",sandbox:dB,loading:"lazy",scrolling:"no"}),(0,lh.jsx)(dY,{active:!n})]})},loom:function({link:e,theme:t,embedData:r,interactive:n,onPlay:o,minHeight:l=280}){let[i,a]=(0,lx.useState)(!0),[s,d]=(0,lx.useState)(!1),c=(0,lx.useRef)(!1),u=(0,lx.useRef)(null);dG({containerRef:u,enabled:!!o,onDetected:()=>o?.({isHeuristic:!0})});let m=r?.contentId,f=r?.embedUrl,p=f?.trim()||(m?`https://www.loom.com/embed/${m}?hideEmbedTopBar=true`:"");if(!p||s)return(0,lh.jsx)(dK,{link:e,theme:t});let h=t.borderRadius?`${t.borderRadius}`:void 0,b=i&&!c.current;return(0,lh.jsxs)("div",{ref:u,className:"relative h-full w-full overflow-hidden",style:{borderRadius:h,minHeight:l},children:[(0,lh.jsx)(dV,{show:b,platform:"loom"}),(0,lh.jsx)("iframe",{src:p,width:"100%",height:"100%",className:"absolute inset-0 border-0",style:{opacity:+!b},onLoad:()=>{c.current=!0,a(!1)},onError:()=>{d(!0),a(!1)},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",sandbox:dB,allowFullScreen:!0,loading:"lazy"}),(0,lh.jsx)(dY,{active:!n})]})},iheart:function({link:e,theme:t,embedData:r,interactive:n,onPlay:o,minHeight:l=150}){let[i,a]=(0,lx.useState)(!0),[s,d]=(0,lx.useState)(!1),c=(0,lx.useRef)(!1),u=(0,lx.useRef)(null);dG({containerRef:u,enabled:!!o,onDetected:()=>o?.({isHeuristic:!0})});let m=r?.embedUrl?.trim()??"";if(!m||s)return(0,lh.jsx)(dK,{link:e,theme:t});let f=t.borderRadius?`${t.borderRadius}`:void 0,p=i&&!c.current;return(0,lh.jsxs)("div",{ref:u,className:"relative h-full w-full overflow-hidden",style:{borderRadius:f},children:[(0,lh.jsx)(dV,{show:p,platform:"iheart"}),(0,lh.jsx)("iframe",{src:m,width:"100%",height:l,className:"border-0",style:{opacity:+!p},onLoad:()=>{c.current=!0,a(!1)},onError:()=>{d(!0),a(!1)},allow:"autoplay; encrypted-media; clipboard-write; picture-in-picture",sandbox:dB,allowFullScreen:!0,loading:"lazy"}),(0,lh.jsx)(dY,{active:!n})]})},substack:function({link:e,theme:t,embedData:r,onHeightChange:n,interactive:o,minHeight:l=554,blockLayout:i,onPlay:a,onOutboundClick:s}){let d=r?.variant,c=r?.contentId,u="substack-latest"===d&&"embed-substack-signup"===i&&!!r?.embedUrl&&!!c,m=u?`https://${c}.substack.com/embed`:r?.embedUrl,f="substack-signup"===d||u,p=e.embed?.card,h=!f&&!!(p?.title&&p?.url),{loading:b,setLoading:g,resolvedHeight:x,saveHeight:y,containerRefCallback:v}=dW("substack",h||!c?null:`${c}:${f?"signup":"post"}`,n),$=(0,lx.useRef)(null),w=(0,lx.useRef)(null),k=(0,lx.useCallback)(e=>{w.current=e,v(e)},[v]);dG({containerRef:w,enabled:!!s&&!f&&!h,onDetected:()=>s?.(e.url,{isHeuristic:!0})}),dG({containerRef:w,enabled:!!a&&f,onDetected:()=>a?.({isHeuristic:!0})});let C=(0,lx.useMemo)(()=>
16{if(!m)return null;if(!f)return m;try{let e=new URL(m);return e.searchParams.set("transparent","true"),function(...e){for(let t of e){if(!t||"transparent"===t)continue;let e=l_(t);if(e&&!(e.a<.5))return .179>=function(e,t,r){let[n,o,l]=[e,t,r].map(e=>{let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)});return .2126*n+.7152*o+.0722*l}(e.r,e.g,e.b)}return!1}(t.blockBackgroundColor,t.backgroundColor)&&e.searchParams.set("light","true"),e.toString()}catch{return m}},[m,f,t.blockBackgroundColor,t.backgroundColor]);if((0,lx.useEffect)(()=>{if(!c||f||h)return;let e=e=>{if(!$.current||e.source!==$.current.contentWindow)return;let t=e.data?.iframeHeight;"number"!=typeof t||!Number.isFinite(t)||t<=50||y(Math.min(t,2e3))};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[c,f,h,y]),h&&p)return(0,lh.jsx)(cj,{card:p,theme:t,interactive:o,onOutboundClick:s,onHeightChange:n});if(!c||!C)return(0,lh.jsx)(dK,{link:e,theme:t});let j=f?l:x??l;return(0,lh.jsxs)("div",{ref:k,className:`relative w-full overflow-hidden rounded-[inherit]${f?"":" bg-background"}`,style:{height:j,transition:"height 0.2s ease"},children:[(0,lh.jsx)(dV,{show:b,platform:"substack",minHeight:j}),(0,lh.jsx)("iframe",{ref:$,src:C,title:"Substack embed",onLoad:()=>g(!1),style:{width:"100%",height:j,border:"none",opacity:+!b,transition:"opacity 0.3s ease"},sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation",allow:"clipboard-write",loading:"lazy",scrolling:"no"}),(0,lh.jsx)(dY,{active:!o})]})}},cS=(0,lx.memo)(function({block:e,link:t,theme:r,interactive:n,onHeightChange:o,onPlay:l,onOutboundClick:i}){var a;let s,d,c,u,m,f=(0,lx.useRef)(o);f.current=o;let p=(0,lx.useCallback)(e=>f.current?.(e),[]),h=(0,lx.useRef)(l);h.current=l;let b=(0,lx.useCallback)(e=>h.current?.(e),[]),g=(0,lx.useRef)(i);g.current=i;let x=(0,lx.useCallback)((e,t)=>g.current?.(e,t),[]),y=(s=t.url,d=t.embed?.variant,c=t.embed?.contentId,u=t.embed?.embedUrl,(0,lx.useMemo)(()=>d&&c?{variant:d,contentId:c,embedUrl:u??void 0}:lc(s).embedData??null,[s,d,c,u]));if(!y?.variant)return(0,lh.jsx)(dK,{link:t,theme:r});let v=(a=y.variant,(m=eZ.get(a))?cN[m.platform]??null:null);if(!v)return(0,lh.jsx)(dK,{link:t,theme:r});let $=y.contentId||t._id,w=e.style.blockLayout,k=null!==tB(w)?0:tF(w);return(0,lh.jsx)("div",{className:"absolute inset-0 z-10 overflow-hidden rounded-[inherit]",children:(0,lh.jsx)(lx.Suspense,{fallback:(0,lh.jsx)(dq,{}),children:(0,lh.jsx)(v,{link:t,theme:r,interactive:n,onHeightChange:p,onPlay:l?b:void 0,onOutboundClick:i?x:void 0,embedData:y,minHeight:k,blockLayout:w},$)})})},function(e,t){return e.link._id===t.link._id&&e.link.url===t.link.url&&e.link.displayTitle===t.link.displayTitle&&e.link.embed?.variant===t.link.embed?.variant&&e.link.embed?.contentId===t.link.embed?.contentId&&e.link.embed?.embedUrl===t.link.embed?.embedUrl&&e.link.embed?.card?.fetchedAt===t.link.embed?.card?.fetchedAt&&e.block.id===t.block.id&&e.block.style.blockLayout===t.block.style.blockLayout&&e.theme.borderRadius===t.theme.borderRadius&&e.theme.blockPadding===t.theme.blockPadding&&e.theme.backgroundColor===t.theme.backgroundColor&&e.theme.blockBackgroundColor===t.theme.blockBackgroundColor&&e.theme.accentColor===t.theme.accentColor&&e.theme.textColor===t.theme.textColor&&e.theme.buttonColor===t.theme.buttonColor&&e.interactive===t.interactive&&!0});function cP({theme:e}){return(0,lh.jsx)("div",{className:"flex h-full min-h-16 items-center justify-center",style:{color:lD(e.textColor,.38)},children:(0,lh.jsx)("span",{className:"text-sm",children:"No links added"})})}let cI=i2("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),cE=i2("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);function cT({children:e,className:t,color:r="#f4546a",banner:n}){return n&&"none"!==n?(0,lh.jsx)("span",{className:iq("absolute right-[10px] top-0 z-40",t),children:(0,lh.jsxs)("div",{className:"relative inline-block",children:[(0,lh.jsx)("div",{className:"absolute left-0 right-0 mx-auto flex h-[1.875rem] w-7 items-center justify-center top-[2px] text-base",children:e}),(0,lh.jsxs)("svg",{width:"40",height:"44",viewBox:"0 0 40 44",fill:"none",children:[(0,lh.jsx)("g",{filter:"url
16(#filter0_d_ribbon)",children:(0,lh.jsx)("path",{d:"M6 0V36L18.5919 31.9269C19.464 31.6444 20.5361 31.6444 21.4081 31.9269L34 36V0.00085C24.6647 0.00085 14.959 0 6 0Z",fill:r})}),(0,lh.jsx)("defs",{children:(0,lh.jsxs)("filter",{id:"filter0_d_ribbon",x:"0",y:"0",width:"40",height:"44",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,lh.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,lh.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,lh.jsx)("feOffset",{dy:"2"}),(0,lh.jsx)("feGaussianBlur",{stdDeviation:"3"}),(0,lh.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),(0,lh.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,lh.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]})})]})]})}):null}function cL({url:e,platform:t,iconColor:r,iconSize:n}){let o=function(e,t){if(t&&!nJ(t)){let e=n0(t);if(e)return e}let r=nX(e);if(r&&"other"!==r){let e=n0(r);if(e)return e}if(t){let e=n0(t);if(e)return e}return"/socials/svgs/link.svg"}(e,t);return(0,lh.jsx)("div",{className:"relative z-10 shrink-0",style:{width:n,height:n,backgroundColor:r,WebkitMaskImage:`url(${o})`,WebkitMaskSize:"contain",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center",maskImage:`url(${o})`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center"}})}function cR({url:e,platform:t,hasBanner:r=!1,isTextOnly:n=!1,backgroundColor:o="#000000",isLeftLayout:l=!1,isTopLayout:i=!1,paddingOffset:a=0,variant:s="blockOverlay"}){let d;if(!e&&!t)return null;let c="blockOverlay"===s&&l&&("#fff"===(d=o.trim().toLowerCase())||"#ffffff"===d||"white"===d||"rgb(255, 255, 255)"===d||"rgb(255,255,255)"===d||"rgba(255, 255, 255, 1)"===d||"rgba(255,255,255,1)"===d),u=c?"#000000":"#ffffff",m=c?"transparent":"rgba(0, 0, 0, 0.25)";return"editorChip"===s?(0,lh.jsx)("div",{className:"pointer-events-none flex size-6 shrink-0 items-center justify-center rounded-full",style:{backgroundColor:m},children:(0,lh.jsx)(cL,{url:e,platform:t,iconColor:u,iconSize:Math.round(13.5)})}):(0,lh.jsx)("div",{className:"pointer-events-none absolute z-20 flex items-center justify-center rounded-full",style:{width:32,height:32,backgroundColor:m,...n?{left:12,top:"50%",transform:"translateY(-50%)"}:{right:(r?52:8)+a,top:8+a}},children:(0,lh.jsx)(cL,{url:e,platform:t,iconColor:u,iconSize:18})})}function cM({badge:e,url:t,platform:r,isTextOnly:n,isLeftLayout:o,isTopLayout:l,backgroundColor:i,paddingOffset:a=0}){let{showRibbon:s,showCircle:d,ribbonIcon:c}=rX(e,!!t||!!r);return s||d?(0,lh.jsxs)(lh.Fragment,{children:[s&&c?(0,lh.jsx)(cT,{banner:c,color:a$[c],children:(0,lh.jsx)(aw,{type:c})}):null,d?(0,lh.jsx)(cR,{url:t??"",platform:r,hasBanner:s,isTextOnly:n,isLeftLayout:o,isTopLayout:l,backgroundColor:i??"#ffffff",paddingOffset:a}):null]}):null}function cA(e,t){return e.reduce(function(e,r){return Math.abs(r-t)<Math.abs(e-t)?r:e},e[0])}function c_(e,t){return t===WheelEvent.DOM_DELTA_LINE?16*e:t===WheelEvent.DOM_DELTA_PAGE?800*e:e}function cO(e,t=[]){let[r,n]=(0,lx.useState)(!1),[o,l]=(0,lx.useState)(!1),i=(0,lx.useCallback)(()=>{let t=e.current;if(!t)return;let{scrollLeft:r,clientWidth:o,scrollWidth:i}=t;n(r>2),l(r+o<i-2)},[e]);(0,lx.useLayoutEffect)(()=>{let t=setTimeout(i,50),r=e.current,n=null;return r&&"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(()=>{i()})).observe(r),()=>{clearTimeout(t),n?.disconnect()}},[i,...t]);let a=(0,lx.useCallback)(()=>{let t=e.current;if(!t)return[];let r=t.querySelectorAll(".snap-start"),n=ry(t),o=t.getBoundingClientRect().left;return Array.from(r,e=>Math.round((e.getBoundingClientRect().left-o)/n+t.scrollLeft))},[e]),s=(0,lx.useCallback)((e,t)=>{let r=e.scrollWidth-e.clientWidth;e.scrollTo({left:Math.max(0,Math.min(t,r)),behavior:"smooth"})},[]);return(0,lx.useEffect)(()=>{let t,r,n=e.current;if(!n)return;let o=!1,l=()=>{clearTimeout(r),n.removeEventListener("scrollend",l),n.style.scrollSnapType=""},i=()=>{let e,t;o=!1,2>=Math.abs((t=Math.min((e=a()).length>0?cA(e,n.scrollLeft):n.scrollLeft,n.scrollWidth-n.clientWidth))-n.scrollLeft)?l():(n.addEventListener("scrollend",l),r=setTimeout(l,600),s(n,t))},d=e=>{let r=c_(e.deltaX,e.deltaMode);
16if(0===r||n.scrollWidth-n.clientWidth<=2||"hidden"===getComputedStyle(n).overflowX||(o||(o=!0,l(),n.style.scrollSnapType="none"),clearTimeout(t),t=setTimeout(i,150),n.scrollLeft+=r/ry(n),!e.cancelable))return;e.preventDefault();let a=c_(e.deltaY,e.deltaMode);if(0!==a){let e=function(e){for(let t=e.parentElement;t;t=t.parentElement){let{overflowY:e}=getComputedStyle(t);if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t}return document.scrollingElement??document.documentElement}(n);e.scrollTop+=a/ry(e)}};return n.addEventListener("wheel",d,{passive:!1}),()=>{n.removeEventListener("wheel",d),clearTimeout(t),l()}},[e,a,s]),{showLeft:r,showRight:o,update:i,scrollBy:(0,lx.useCallback)(t=>{let r=e.current;if(!r)return;let n=.8*r.clientWidth,o=r.scrollLeft+("left"===t?-n:n),l=a();if(0===l.length)return void r.scrollBy({left:"left"===t?-n:n,behavior:"smooth"});let i=cA(l,o);if(2>=Math.abs(i-r.scrollLeft)){let e=l.indexOf(i)+("left"===t?-1:1);if(e<0||e>=l.length)return;i=l[e]}s(r,i)},[e,a,s]),scrollByItem:(0,lx.useCallback)(t=>{let r=e.current;if(!r)return;let n=a();if(0===n.length)return;let o=0;for(let e=0;e<n.length;e++)Math.abs(n[e]-r.scrollLeft)<Math.abs(n[o]-r.scrollLeft)&&(o=e);let l=o+("left"===t?-1:1);l<0||l>=n.length||s(r,n[l])},[e,a,s])}}function cz({direction:e,visible:t,onClick:r}){let n="left"===e;return(0,lh.jsx)("button",{type:"button",onClick:r,className:`carousel-chevron absolute bottom-0 top-0 z-20 flex w-10 items-center justify-center text-white/80 transition-all duration-200 ease-in-out hover:text-white ${n?"left-0 bg-gradient-to-r from-black/30 to-transparent":"right-0 bg-gradient-to-l from-black/30 to-transparent"}`,style:{opacity:+!!t,pointerEvents:t?"auto":"none"},"aria-label":n?"Scroll left":"Scroll right",children:n?(0,lh.jsx)(cI,{size:20}):(0,lh.jsx)(cE,{size:20})})}function cF({children:e,width:t,height:r,widthCss:n,heightCss:o,borderRadius:l,showBorders:i,hasPadding:a,accentColor:s,accentSize:d,blockBorderColor:c,blockBorderSize:u,blockBackgroundColor:m,badgeBackgroun
16dColor:f,badge:p,linkUrl:h,linkPlatform:b,isTextLayout:g,isLeftLayout:x,isTopLayout:y,badgePaddingOffset:v=0,hideBlockBadge:$=!1}){let w=rc(d),k=rd(u),C=a?Math.max(0,l-4):l,j=c??rs,N=f??(m&&"transparent"!==m?m:"#ffffff"),S=w>0&&!!s;return(0,lh.jsxs)("div",{className:"v3-carousel-item relative h-full snap-start transition-[width,height,border-radius] duration-300 ease-in-out",style:{width:n??`${t}px`,height:o??`${r}px`,borderRadius:`${l}px`,flexShrink:0,backgroundColor:m??"#ffffff"},children:[(0,lh.jsx)("div",{className:"h-full w-full overflow-hidden transition-[padding,border-radius] duration-300 ease-in-out",style:{borderRadius:`${l}px`,padding:a?`${rp}px`:"0px",boxSizing:"border-box",isolation:"isolate"},children:(0,lh.jsx)("div",{className:"h-full w-full overflow-hidden transition-[border-radius] duration-300 ease-in-out",style:{borderRadius:a?`${C}px`:"0px"},children:e})}),(0,lh.jsx)("div",{className:"pointer-events-none absolute inset-0 z-10",style:{borderRadius:`${l}px`,borderBottomStyle:"solid",borderBottomWidth:S?`${w}px`:"0px",borderBottomColor:s||"#000000",boxSizing:"border-box",opacity:+!!S,transition:"border-bottom-width 300ms ease-in-out, opacity 300ms ease-in-out, border-bottom-color 200ms ease-in-out, border-radius 300ms ease-in-out"}}),(0,lh.jsxs)("div",{className:"pointer-events-none absolute inset-0 z-20 overflow-hidden",style:{borderRadius:`${l}px`,isolation:"isolate"},children:[i&&(0,lh.jsx)("div",{className:"pointer-events-none absolute inset-0 z-30 transition-[border-radius,border] duration-300 ease-in-out",style:{borderRadius:`${l}px`,border:`${k} solid ${j}`}}),$?null:(0,lh.jsx)(cM,{badge:p,url:h,platform:b,isTextOnly:g,isLeftLayout:x,isTopLayout:y,backgroundColor:N,paddingOffset:v})]})]})}function cD({link:e,theme:t,isEditor:r,isPreview:n,layout:o="fill",containerHeight:l,block:i,hasPadding:a=!1,borderRadius:s,onItemClick:d,isSelectedForInteraction:c,isPublicPage:u,hasBanner:m=!1}){let f=!!iZ(e.displayImage?.path),p=e.displayTitle,h=e.displayPricing?.price,b=nV(e.displayIconPlatform??e.platform??"")??lp(e.url,e.displayIconPlatform),g=f?"#ffffff"
16:n9(e.displayIconPlatform??e.platform)??n7(e.url);switch(o){case"text":return(0,lh.jsx)(ac,{link:e,theme:t,block:i,borderRadius:s??void 0,isEditor:r,isPreview:n,onItemClick:d,isPublicPage:u,isSelectedForInteraction:c,isCarousel:!0});case"left":return(0,lh.jsx)(ad,{link:e,theme:t,borderRadius:s,isEditor:r,isPreview:n,hasPadding:a,containerHeight:l,block:i,isCarousel:!0,onItemClick:d,isPublicPage:u,isSelectedForInteraction:c,hasBanner:m});case"top":return(0,lh.jsx)(as,{link:e,theme:t,borderRadius:s,isEditor:r,isPreview:n,hasPadding:a,containerHeight:l,block:i,isCarousel:!0,onItemClick:d,isPublicPage:u,isSelectedForInteraction:c,hasBanner:m});default:let x;if(f)return(0,lh.jsx)(al,{link:e,theme:t,isEditor:r,isPreview:n,onItemClick:d,isPublicPage:u,isSelectedForInteraction:c,block:i,borderRadius:s,isCarousel:!0,hasBanner:m});let y=!u&&(r||n)&&!c,v=y?{role:"button",tabIndex:0}:{href:e.url,target:"_blank",rel:"noopener noreferrer"},$=i?.style?.buttonText,w=e.displayPricing?.promoValue,k=e.displayPricing?.promoCode,C=e.displayPricing?.promoType,j=s??0,N=0===j?0:Math.min(Math.max(Math.round(.5*j),4),16),S=t.buttonColor??t.accentColor??t.textColor,P=!!p||null!=h||!!$;return(0,lh.jsxs)(y?"div":"a",{...v,className:"relative block h-full w-full overflow-hidden",style:{backgroundColor:g},onClick:t=>d?.(e,t),children:[(null!=w&&w>0||!!k)&&(0,lh.jsx)(ao,{promoValue:w,promoCode:k,promoType:C,buttonColor:S,borderRadius:j,hasBanner:m}),(0,lh.jsx)("div",{className:"absolute inset-0 flex h-full w-full items-center justify-center",children:(0,lh.jsx)(iX,{url:b,className:"h-full w-full",size:48,imageClassName:"rounded-lg"})}),(0,lh.jsx)("div",{className:"pointer-events-none absolute inset-0 transition-opacity duration-300 ease-in-out",style:{opacity:+!!P,background:"linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.4) 10%, rgba(0,0,0,0.2) 22%, rgba(0,0,0,0.08) 34%, rgba(0,0,0,0.03) 42%, rgba(0,0,0,0) 55%)"}}),(0,lh.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex min-h-[52px] items-end justify-between gap-2 px-4 pb-[14px] pt-6",children:[(0,lh.jsxs)("div",{className:"min-w-0 flex-1",children:[p&&(0,lh.jsx)("p",{className:`text-[14px] font-semibold leading-normal ${null!=h?"line-clamp-1":"line-clamp-2"}`,style:{color:"#ffffff"},children:p}),null!=h&&(0,lh.jsx)("p",{className:"mt-0 text-[14px] leading-normal",style:{color:"rgba(255,255,255,0.9)"},children:ar(h)})]}),!!$&&(x=ng($),(0,lh.jsx)("button",{className:"flex-shrink-0 px-4 py-2 text-[14px] font-semibold leading-[1.2] transition-all hover:opacity-90",style:{backgroundColor:S,color:i8(S),borderRadius:`${N}px`},children:x||" "}))]})]})}}function cB({link:e,theme:t,block:r,isEditor:n,onEmbedPlay:o,onEmbedOutboundClick:l}){return r?(0,lh.jsxs)("div",{className:"relative h-full w-full overflow-hidden",children:[(0,lh.jsx)(cS,{link:e,block:r,theme:t,interactive:!n,onPlay:o?t=>o(e,t):void 0,onOutboundClick:l?(t,r)=>l(e,t,r):void 0}),n&&(0,lh.jsx)("div",{className:"absolute inset-0 z-20"})]}):null}function cU({links:e,cardComponent:t,style:r,theme:n,borderRadius:o,isEditor:l,isPreview:i,block:a,containerHeight:s,containerWidth:d,selectedLinkId:c,onItemClick:u,onEmbedPlay:m,onEmbedOutboundClick:f,isSelectedForInteraction:p,isPublicPage:h}){let b,g,x,y,v=tw(a?.style?.blockLayout),$=v?"fill":e3(r?.blockLayout),w=n.blockPadding??!1,k="top"===$||"left"===$||"text"===$,C=w&&!k,j=a?.style?.blockLayout,N=rb(j)?j:null,S=()=>{if(!N)return{width:280,height:200};let e=rx(N,w,d),t=d??1/0;return{width:Math.min(e.itemWidth,t),height:e.itemHeight}};if(v&&N){let e=S();b=e.width,g=e.height;let t=t8(N,w);x=t.widthCss,y=t.heightCss}else s&&s>0?(g=s,b=tZ($,d??0),x=t4($),y="100%"):(b=280,g=200);let P=(0,lx.useRef)(null),I=(0,lx.useRef)(null),{showLeft:E,showRight:T,update:L,scrollBy:R,scrollByItem:M}=cO(P,[e.length,d,$]),A="top"===$,[_,O]=(0,lx.useState)(()=>new Set(e.slice(0,3).map(e=>e.cardKey))),z=(0,lx.useCallback)(()=>{if(!v)return;let t=P.current;if(!t)return;let r=b+16,n=Math.ceil((t.scrollLeft+2*t.clientWidth)/r),o=Math.min(e.length,Math.max(3,n));O(t=>{let r=null;for(let n=0;n<o;n++){let o=e[n].cardKey;
16t.has(o)||(r??=new Set(t)).add(o)}return r??t})},[v,b,e]);(0,lx.useEffect)(()=>{z();let e=setTimeout(z,50);return()=>clearTimeout(e)},[z]);let F=rX(a?.style?.badge,!0),D=!v&&F.reservesCorner,B=(0,lx.useRef)(new Map),[U,H]=(0,lx.useState)(new Map),W=(0,lx.useRef)(""),G=e.map(e=>e.cardKey).join("|");return(0,lx.useEffect)(()=>{W.current&&W.current!==G&&(B.current=new Map,H(new Map)),W.current=G},[G]),(0,lx.useLayoutEffect)(()=>{let e=I.current;if(!e)return;if(0===B.current.size){let t=new Map,r=e.children;for(let e=0;e<r.length;e++){let n=r[e],o=n.dataset.cardKey;o&&t.set(o,n.offsetLeft)}B.current=t;return}let t=e.children,r=new Map,n=new Map;for(let e=0;e<t.length;e++){let o=t[e],l=o.dataset.cardKey;if(!l)continue;let i=o.offsetLeft;r.set(l,i);let a=B.current.get(l);if(void 0!==a&&a!==i){let e=a-i;n.set(l,e)}}n.size>0&&(H(n),requestAnimationFrame(()=>{requestAnimationFrame(()=>{H(new Map)})})),B.current=r},[e]),(0,lx.useEffect)(()=>{if(!c||!P.current||!I.current)return;let e=I.current.children;for(let t=0;t<e.length;t++){let r=e[t];if(r.dataset.linkId===c){let e=P.current,t=r.offsetLeft,n=r.offsetWidth,o=t-e.clientWidth/2+n/2;e.scrollTo({left:Math.max(0,o),behavior:"smooth"});break}}},[c]),(0,lh.jsxs)("div",{className:"relative h-full min-h-0",children:[(0,lh.jsx)(cz,{direction:"left",visible:E,onClick:()=>R("left")}),(0,lh.jsx)(cz,{direction:"right",visible:T,onClick:()=>R("right")}),(0,lh.jsx)("div",{ref:P,className:"carousel-scroll-area scrollbar-hide h-full snap-x snap-mandatory overflow-x-auto",style:{touchAction:"pan-x pan-y pinch-zoom"},onScroll:()=>{L(),z()},role:"region","aria-label":"Links carousel",tabIndex:E||T?0:void 0,onKeyDown:e=>{("ArrowRight"===e.key||"ArrowLeft"===e.key)&&(e.preventDefault(),M("ArrowRight"===e.key?"right":"left"))},children:(0,lh.jsx)("div",{ref:I,className:"flex h-full",style:{gap:16,width:"max-content"},children:e.map(e=>{var r;let s=U.get(e.cardKey),d=void 0!==s,c=v?S():{width:b,height:g},k=C||"top"===$&&w?rp:0,j=c.width,N=c.height,P=C?N-2*rp:N,I=C?j-2*rp:j;return(0,lh.jsx)("div",{"data-card-key":e.cardKey,"data-link-id":e._id,style:{transform:d?`translateX(${s}px)`:"translateX(0)",transition:d?"none":"transform 300ms cubic-bezier(0.25, 0.1, 0.25, 1)"},children:(0,lh.jsx)(cF,{width:j,height:N,widthCss:x,heightCss:y,borderRadius:o??16,showBorders:!1!==n.showBorders,hasPadding:C,accentColor:n.accentColor,accentSize:n.accentSize,blockBorderColor:n.blockBorderColor,blockBorderSize:n.blockBorderSize,blockBackgroundColor:(r={imageLayout:$,blockBackgroundColor:n.blockBackgroundColor,hasPadding:w,isEmbedCarousel:v}).isEmbedCarousel||!r.hasPadding&&r.imageLayout&&na.has(r.imageLayout)?"transparent":r.blockBackgroundColor??"#ffffff",badgeBackgroun
16dColor:n.blockBackgroundColor??"#ffffff",badge:a?.style?.badge,linkUrl:e.url,linkPlatform:e.platform,isTextLayout:"text"===$,isLeftLayout:"left"===$,isTopLayout:"top"===$,badgePaddingOffset:k,hideBlockBadge:v,children:t?v&&!_.has(e.cardKey)?(0,lh.jsx)("div",{"aria-hidden":"true",className:"h-full w-full"}):(0,lh.jsx)(t,{link:e,theme:n,compact:A,isEditor:l,isPreview:i,block:a,maxHeight:P,containerWidth:I,containerHeight:P,layout:$,isSelectedForInteraction:p,onEmbedPlay:m,onEmbedOutboundClick:f}):(0,lh.jsx)(cD,{link:e,theme:n,isEditor:l,isPreview:i,layout:$,containerHeight:P,containerWidth:I,block:a,hasPadding:w,borderRadius:o,onItemClick:u,isSelectedForInteraction:p,isPublicPage:h,hasBanner:D})})},e.cardKey)})})})]})}let cH=i2("calendar-days",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);function cW(e){return e*Math.PI/180}function cG(e){if(!e)return"";try{return decodeURIComponent(e).trim().toLowerCase()}catch{return e.trim().toLowerCase()}}function cq(e){return"number"==typeof e&&Number.isFinite(e)}function cV(e){return!!e&&(!!(cq(e.latitude)&&cq(e.longitude))||!!cG(e.city))}function cK(e,t){return t&&cV(t)?e.filter(e=>(function(e,t,r=100){let n=e?.venue;if(!n)return!1;if(cq(t.latitude)&&cq(t.longitude)&&cq(n.lat)&&cq(n.lng)){var o,l,i,a;let e,s;return o=t.latitude,l=t.longitude,i=n.lat,a=n.lng,e=cW(i-o),s=cW(a-l),7917.5226*Math.asin(Math.min(1,Math.sqrt(Math.sin(e/2)**2+Math.cos(cW(o))*Math.cos(cW(i))*Math.sin(s/2)**2)))<=r}let s=cG(t.city);return!!s&&(n.address??"").toLowerCase().includes(s)})(e.displayEvent,t)):[]}function cY({checked:e,onCheckedChange:t,disabled:r=!1,id:n,className:o,"aria-label":l}){return(0,lh.jsx)("button",{type:"button",role:"switch",id:n,"aria-checked":e,"aria-label":l,disabled:r,className:iq("peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent px-0.5 shadow-xs transition-colors outline-none focus-visible:ring-2 focus-visible:ring-gray-400 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e?"justify-end bg-gray-900":"justify-start bg-gray-200",o),onClick:n=>{n.stopPropagation(),r||t(!e)},onPointerDown:e=>e.stopPropagation(),children:(0,lh.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none block size-4 rounded-full bg-white shadow-sm ring-0 transition-transform"})})}function cZ({block:e,links:t,title:r,image:n,theme:i,isEditor:d=!1,isPreview:c=!1,isPublicPage:u=!1,onItemClick:m,onOpenList:f,viewerGeoEndpoint:p}){let h=i.textColor??"#000000",b=i.blockBorderColor??"rgba(127,127,127,0.35)",g=ae(parseInt(i.borderRadius??"16",10)||0),[x,y]=(0,lx.useState)(null);(0,lx.useEffect)(()=>{y(Date.now());let e=window.setInterval(()=>y(Date.now()),6e4);return()=>window.clearInterval(e)},[]);let v=(0,lx.useMemo)(()=>l(t.map(e=>({link:e,event:e.displayEvent??null}))).filter(({event:e})=>null===x?!!e?.startsAt:o(e,x)).map(({link:e})=>e),[t,x]);if(u&&0===v.length)return null;let $=!d,w=void 0===p?$?dy:null:p,[k,C]=(0,lx.useState)(!1),{geo:j,status:N}=dv(k?w:null),S=cV(j),P=(0,lx.useMemo)(()=>cK(v,j),[v,j]),I=k?S?P:[]:v,E=r?.trim()||"Events",T=`${v.length} Event${1===v.length?"":"s"}`,L=(0,lx.useCallback)(()=>{$&&f&&f({block:e,links:v,title:E,countLabel:T,imagePath:n?.path??null,nearMe:k})},[e,T,E,n?.path,$,k,f,v]),R=n?.path?iZ(n.path):null,M=function(e,t){let r=[];for(let t=0;t<e.length;t+=2)r.push(e.slice(t,t+2));return r}(I,0);return(0,lh.jsxs)("div",{className:"flex h-full w-full flex-col gap-3 py-4",children:[(0,lh.jsxs)("div",{className:iq("flex min-w-0 items-center gap-3 px-4",$&&f&&"cursor-pointer"),role:$&&f?"button":void 0,tabIndex:$&&f?0:void 0,"aria-haspopup":$&&f?"dialog":void 0,onClick:$&&f?L:void 0,onKeyDown:$&&f?e=>{$&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),L())}:void 0,children:[(0,lh.jsx)("div",{className:"flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden",style:{backgroundColor:"rgba(127,127,127,0.15)",borderRadius:`${g}px`},children:R?(0,lh.jsx)("img",{src:R,alt:"",className:"h-full w-full object-cover",style:nl(n?.crop)}):(0,lh.jsx)(cH,{className:"h-6 w-6",style:{color:h,opacity:.6}})}),(0,lh.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,lh.jsx)("p",{className:"truncate text-lg font-semibold leading-tight",style:{color:h},children:E}),(0,lh.jsx)("p",{className:"mt-0.5 truncate text-xs",style:{color:h,opacity:.65},children:T})]})]}),(0,lh.jsx)("div",{className:"relative min-h-0 w-full flex-1 overflow-hidden",children:I.length>
160?(0,lh.jsxs)("div",{"data-carousel-block":"","data-event-carousel":"",className:"carousel-scroll-area scrollbar-hide flex h-full w-full snap-x snap-mandatory gap-2 overflow-x-auto pl-4 pr-1",style:{touchAction:"pan-x pan-y pinch-zoom",scrollPaddingLeft:"1rem",scrollPaddingRight:"0.25rem"},onPointerDown:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),children:[M.map((e,t)=>(0,lh.jsx)("div",{className:"flex h-full w-max min-w-[16rem] shrink-0 snap-start flex-col gap-2",children:e.map(t=>{let r=t.displayEvent??null,{month:n,day:o}=a(r),{heading:l,locality:i}=s(t.displayTitle,r),d=iq("flex min-h-0 w-full items-center gap-2.5 border px-2.5 py-2 text-left no-underline transition-opacity hover:opacity-90",1===e.length?"h-[calc(50%-0.25rem)] shrink-0":"flex-1",$?"cursor-pointer":"cursor-default"),f={borderColor:b,color:h,borderRadius:`${g}px`},p=(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsxs)("div",{className:"flex w-8 shrink-0 flex-col items-center leading-none",children:[(0,lh.jsx)("span",{className:"text-[10px] font-medium uppercase tracking-wide",style:{opacity:.65},children:n}),(0,lh.jsx)("span",{className:"text-base font-semibold",children:o})]}),(0,lh.jsxs)("div",{className:"min-w-0",children:[(0,lh.jsx)("p",{className:"truncate text-sm font-semibold leading-tight",style:{color:h},children:l}),i?(0,lh.jsx)("p",{className:"mt-0.5 truncate text-xs",style:{opacity:.6},children:i}):null]})]});return u?(0,lh.jsx)("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:d,style:f,onClick:e=>{e.stopPropagation(),m?.(t,e)},onPointerDown:e=>e.stopPropagation(),children:p},t.cardKey):(0,lh.jsx)("div",{role:$?"link":void 0,tabIndex:$?0:void 0,className:d,style:f,onClick:$&&c?e=>{e.stopPropagation(),m?.(t,e)}:void 0,children:p},t.cardKey)})},e.map(e=>e.cardKey).join("-")||`col-${t}`)),(0,lh.jsx)("div",{"aria-hidden":!0,className:"h-full w-1 shrink-0"})]}):(0,lh.jsx)("div",{className:"mx-4 flex h-full items-center justify-center border border-dashed px-3 text-center text-xs",style:{borderRadius:`${g}px`,borderColor:b,color:h,opacity:.55},children:k?"loading"===N?"Finding nearby events…":S?"No nearby events":"Location unavailable":0===t.length?"Add an event link to get started":"No upcoming events"})}),(0,lh.jsxs)("div",{className:"flex shrink-0 items-center justify-between gap-3 px-4",children:[(0,lh.jsxs)("label",{className:"flex cursor-pointer items-center gap-2",onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:[(0,lh.jsx)(cY,{checked:k,disabled:!$,"aria-label":"Near Me",onCheckedChange:e=>{$&&C(e)}}),(0,lh.jsx)("span",{className:"text-sm font-medium",style:{color:h,opacity:k?1:.75},children:"Near Me"})]}),$&&f?(0,lh.jsx)("button",{type:"button",className:"text-sm font-medium hover:underline",style:{color:h},onClick:e=>{e.stopPropagation(),L()},children:"View All"}):(0,lh.jsx)("span",{className:"text-sm font-medium",style:{color:h,opacity:.7},children:"View All"})]})]})}e.s(["filterNearbyLinkEvents",()=>cK,"hasUsableViewerGeo",()=>cV],31338);let cX=i2("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]),cJ=i2("external-link",[["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"}]]),cQ={streamingDsp:"streaming_dsp",streamingHero:"streaming_hero",youtubeVideo:"youtube_video",youtubeShort:"youtube_short",youtubeChannel:"youtube_channel",instagramMedia:"instagram_media",instagramProfile:"instagram_profile",tiktokVideo:"tiktok_video",tiktokProfile:"tiktok_profile",xProfile:"x_profile",linkedinProfile:"linkedin_profile",twitchProfile:"twitch_profile",kickProfile:"kick_profile",snapchatProfile:"snapchat_profile",blueskyProfile:"bluesky_profile",pinterestProfile:"pinterest_profile",threadsProfile:"threads_profile",facebookProfile:"facebook_profile",platform3Content:"platform-3_content",platform3Profile:"platform-3_profile"};function c0({className:e}
16){return(0,lh.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,className:e,children:(0,lh.jsx)("path",{d:"M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.42 1.56-.299.421-1.02.599-1.56.3z"})})}function c1(e){let t=e.streamingRelease,r=t?.artists?.filter(Boolean)??[],n=function(e){switch(e){case"spotify-album":return"Album";case"spotify-track":return"Song";case"spotify-playlist":return"Playlist";case"spotify-show":return"Podcast";case"spotify-episode":return"Episode";case"spotify-artist":return"Artist";default:return"Music"}}(e.embed?.variant),o=t?.title?.trim()||e.displayTitle?.trim()||e.title?.trim()||"";return{title:function(e,t){if(!e||0===t.length)return e;for(let r of[t.join(", "),t[0]].filter(Boolean))for(let t of[" - "," – "," — "]){let n=`${t}${r}`;if(e.endsWith(n)){let t=e.slice(0,-n.length).trim();if(t)return t}}return e}(o,r)||o||"Untitled",description:r.length>0?`${n} \xb7 ${r.join(", ")}`:n}}function c2({block:e,links:t,theme:r,onLinkClick:n,onBlockInteraction:o}){let l=t.find(e=>"spotify"===e.platform)??t[0]??null;if(!l)return null;let i={id:`${e.id}-spotify-hero`,type:"link",position:e.position,clickhouseId:"",links:[],style:{blockLayout:"embed-spotify-md"}};return(0,lh.jsxs)("div",{className:"flex flex-col",children:[(0,lh.jsx)("div",{className:"relative w-full shrink-0 overflow-hidden rounded-2xl",style:{height:152},children:(0,lh.jsx)(cS,{link:l,block:i,theme:r,interactive:!0})}),t.length>0?(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsx)("p",{className:"mb-2 mt-5 text-sm font-semibold text-gray-500",children:"Listen on"}),(0,lh.jsx)("ul",{className:"flex flex-col gap-2",children:t.map(t=>{let r=nV(t.displayIconPlatform??t.platform??"")??lp(t.url,t.displayIconPlatform),l=nQ(t.platform);return(0,lh.jsx)("li",{children:(0,lh.jsxs)("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 rounded-2xl border border-gray-200 px-4 py-3 transition-colors hover:bg-gray-50",onClick:r=>((t,r)=>{let l;if(n&&(l=t._id,/^[a-f0-9]{24}$/i.test(l)))return void n({linkId:t._id,blockId:e.id??"",url:t.url,title:t.displayTitle??t.title??null,popOutEnabled:t.displayPopOutEnabled||t.popOutEnabled||!1},r);o?.({kind:"item_click",blockId:e.id??"",blockType:e.type,itemId:t.platform??"",itemType:cQ.streamingDsp,url:t.url,title:t.displayTitle??t.title??null,platform:t.platform??null})})(t,r),children:[r?(0,lh.jsx)("img",{src:r,alt:"",className:"h-8 w-8 shrink-0 rounded-md object-cover"}):(0,lh.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-gray-100",children:(0,lh.jsx)(cX,{className:"h-4 w-4 text-gray-400"})}),(0,lh.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-gray-900",children:l}),(0,lh.jsx)(cJ,{className:"h-4 w-4 shrink-0 text-gray-400"})]})},t._id)})})]}):null]})}function c3(e){let t=e.find(e=>"spotify"===e.platform)??e[0]??null;return t?c1(t).title:"Listen on"}function c4({links:e,className:t}){let r=function(e){let t=e.find(e=>"spotify"===e.platform)??e[0]??null;if(t)return c1(t).description}(e);return r?(0,lh.jsxs)("span",{className:iq("inline-flex max-w-full items-center gap-1.5",t),children:[(0,lh.jsx)(c0,{className:"h-4 w-4 shrink-0"}),(0,lh.jsx)("span",{className:"truncate",children:r})]}):null}function c5({size:e,coverUrl:t}){let r=.34*e,n=.045*e;return(0,lh.jsxs)("div",{"aria-hidden":!0,className:"relative rounded-full",style:{width:e,height:e,background:"radial-gradient(circle at center, #181818 0%, #181818 25%, #0d0d0d 25.5%, #111 27%, #0a0a0a 92%, #000 100%)",boxShadow:"inset 0 0 6px rgba(255,255,255,0.08), 2px 4px 14px rgba(0,0,0,0.45)"},children:[(0,lh.jsx)("div",{className:"absolute inset-0 rounded-full",style:{background:"repeating-radial-gradient(circle at center, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 4px)",maskImage:"radial-gradient(circle at center, transparent 30%, black 32%)",WebkitMaskImage:"radial-gradient(circle at center, transparent 30%, black 32%)"}}),(0,lh.jsx)("div",{className:"absolute inset-0 rounded-full",style:{background:"conic-gradient(from 210deg, transparent 0deg, rgba(255,255,255,0.16) 25deg, transparent 60deg, transparent 175deg, rgba(255,255,255,0.1) 205deg, transparent 245deg)"}}),(0,lh.jsxs)("div",{className:"absolute overflow-hidden rounded-full",style:{left:"50%",top:"50%",width:r,height:r,transform:"translate(-50%, -50%)",backgroundColor:"#161616",boxShadow:"0 0 0 2px rgba(0,0,0,0.55)"},children:[t?(0,lh.jsx)("img",{src:t,alt:"",className:"h-full w-full object-cover",draggable:!1}):null,(0,lh.jsx)("div",{className:"absolute rounded-full bg-black",style:{left:"50%",top:"50%",width:n,height:n,transform:"translate(-50%, -50%)",boxShadow:"inset 0 0 1px rgba(255,255,255,0.25)"}})]})]})}function c8({block:e,links:t,theme:r,isEditor:n=!1,onOpen:o}){let[l,i]=(0,lx.useState)(!1),[a,s]=(0,lx.useState)(!1),d=(0,lx.useRef)(null),c=t.find(e=>"spotify"===e.platform)??t[0]??null,u=!!c;(0,lx.useEffect)(()=>
16{if(!u)return void s(!1);let e=d.current;if(!e)return;let t=window.matchMedia("(hover: hover) and (pointer: fine)"),r=null,n=()=>{r?.disconnect(),r=null},o=()=>{(n(),t.matches)?s(!1):(r=new IntersectionObserver(([e])=>{let t=e?.isIntersecting??!1;s(t),t&&i(!0)},{threshold:.4})).observe(e)};return o(),t.addEventListener("change",o),()=>{t.removeEventListener("change",o),n()}},[u]);let m=r.textColor??"#000000";if(!c)return(0,lh.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 px-5 py-4",children:[(0,lh.jsx)(cX,{className:"h-6 w-6",style:{color:m,opacity:.4}}),(0,lh.jsx)("p",{className:"text-xs",style:{color:m,opacity:.6},children:"Song unavailable"})]});let f=iZ(c.displayImage?.path??c.image?.path),{title:p,description:h}=c1(c),b=!n&&!!o,g=()=>{b&&o&&o({block:e,links:t,theme:r})};return(0,lh.jsxs)("div",{ref:d,role:b?"button":void 0,tabIndex:b?0:void 0,"aria-haspopup":b?"dialog":void 0,onClick:g,onKeyDown:e=>{b&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),g())},onMouseEnter:()=>i(!0),onFocus:()=>i(!0),className:"group relative flex h-full w-full flex-col items-center justify-center gap-4 overflow-hidden px-5",style:{cursor:b?"pointer":void 0},children:[(0,lh.jsxs)("div",{className:"relative",style:{width:200,height:200},children:[(0,lh.jsx)("div",{className:iq("absolute inset-0 flex items-center justify-center transition-transform duration-500 ease-[cubic-bezier(0.22,1,0.36,1)] group-hover:translate-x-[38%] motion-reduce:transition-none motion-reduce:translate-x-0 motion-reduce:group-hover:translate-x-0",a&&"translate-x-[38%]"),children:(0,lh.jsx)("div",{className:l?"motion-safe:animate-[spin_3.5s_linear_infinite]":void 0,children:(0,lh.jsx)(c5,{size:176,coverUrl:f})})}),(0,lh.jsx)("div",{className:iq("relative h-full w-full overflow-hidden rounded-lg shadow-lg transition-transform duration-500 ease-[cubic-bezier(0.22,1,0.36,1)] group-hover:-translate-x-[14%] motion-reduce:transition-none motion-reduce:translate-x-0 motion-reduce:group-hover:translate-x-0",a&&"-translate-x-[14%]"),style:{backgroundColor:"rgba(0,0,0,0.25)"},children:f?(0,lh.jsx)("img",{src:f,alt:p,className:"h-full w-full object-cover"}):(0,lh.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,lh.jsx)(cX,{className:"h-16 w-16",style:{color:m,opacity:.35}})})})]}),(0,lh.jsxs)("div",{className:"flex max-w-full flex-col items-center gap-0.5",children:[(0,lh.jsx)("p",{className:"max-w-full truncate text-lg font-bold leading-tight",style:{color:m},children:p}),(0,lh.jsxs)("span",{className:"flex max-w-full items-center gap-1.5",style:{color:m},children:[(0,lh.jsx)(c0,{className:"h-4 w-4 shrink-0"}),(0,lh.jsx)("span",{className:"truncate text-sm font-medium",children:h})]})]})]})}Object.values(cQ),e.s(["SpotifyGlyph",()=>c0,"SpotifyStreamingDialogBody",()=>c2,"SpotifyStreamingDialogDescription",()=>c4,"spotifyStreamingDialogTitle",()=>c3,"spotifyStreamingPresentation",()=>c1],7881);let c9=(0,lx.memo)(function({block:e,links:t,theme:r,isPreview:n,isEditor:o,containerHeight:l,containerWidth:i,onHeightChange:a,contentBorderRadius:s,selectedLinkId:d,onLinkClick:c,onCouponLinkClick:u,onAdultLinkClick:m,onBlockInteraction:f,onStreamingLinksOpen:p,onEventsListOpen:h,isSelectedForInteraction:b,isPublicPage:g}){let x=tj(e.style.blockLayout);if(0===t.length&&!x)return g?null:(0,lh.jsx)(cP,{theme:r});let y=c||u||m||n?(t,r)=>{let o=t.displayPricing?.promoCode?.trim();if(o&&u){r?.preventDefault(),u({promoCode:o,promoValue:t.displayPricing?.promoValue,promoType:t.displayPricing?.promoType,imagePath:t.displayImage?.path??t.image?.path??null,url:t.url,title:t.displayTitle??null,popOutEnabled:t.displayPopOutEnabled||t.popOutEnabled||!1});return}if(t.displayIsAdultContent&&m){r?.preventDefault(),m({url:t.url,title:t.displayTitle??null,variant:"adult"});return}if(os(t.displayIconPlatform??t.platform)&&m){r?.preventDefault(),m({url:t.url,title:t.displayTitle??null,variant:"popout"});return}c?c({linkId:t._id,blockId:e.id??"",url:t.url,title:t.displayTitle??null,popOutEnabled:t.displayPopOutEnabled||t.popOutEnabled||!1},r):n&&!g&&window.open(t.url,"_blank","noopener,noreferrer")}:void 0,v=f?(t,r)=>f({kind:"embed_play",blockId:e.id,blockType:e.type,linkId:t._id,isHeuristic:r?.isHeuristic}):void 0,$=f?(t,r,n)=>f({kind:"outbound_click",blockId:e.id,blockType:e.type,linkId:t._id,url:r,title:t.displayTitle??null,platform:t.platform??null,isHeuristic:n?.isHeuristic}):void 0;if(x)return(0,lh.jsx)(cZ,{block:e,links:t,title:e.data?.title,image:e.image,theme:r,isEditor:o,isPreview:n,isPublicPage:g,onItemClick:y,onOpenList:h});let w=t.length>1,k=tw(e.style.blockLayout),C=e7(e.style.blockLayout),j=tA(e.style),N=r.borderRadius?parseInt(r.borderRadius,10):16,S=r.blockPadding??!1;if(w)return k?(0,lh.jsx)(cU,{links:t,cardComponent:cB,style:e.style,theme:r,borderRadius:N,isEditor:o,isPreview:n,block:e,containerHeight:l,containerWidth:i,selectedLinkId:d,onItemClick:y,onEmbedPlay:v,onEmbedOutboundClick:$,isPublicPage:g,isSelectedForInteraction:b}):(0,lh.jsx)(cU,{links:t,style:e.style,theme:r,borderRadius:N,isEditor:o,isPreview:n,block:e,containerHeight:l,containerWidth:i,selectedLinkId:d,onItemClick:y,isPublicPage:g,isSelectedForInteraction:b});let P=t[0];if(C){let t=function(e){let t=e.streamingRelease??null,r=nt(),n=e=>{let t=nG.indexOf((e??"").toLowerCase());return -1===t?nG.length:t},o=t?.title??null,l=t?.image??null,i=t?.links.find(e=>"spotify"===e.platform)?.url??e.url,a=new Map;for(let t of e.streamingDspLinks??[]){let e=String(t.platform??"").toLowerCase();e&&a.set(e,t)}for(let t of e.streamingLinks??[]){let r=String(t.platform??"").toLowerCase();if(!r||a.has(r))continue;let n=(e.streamingDspLinks??[]).find(e=>e._id===t.linkId);n&&a.set(r,n)}let s={...e,url:i,displayTitle:e.displayTitle??o??e.title??null,displayImage:e.displayImage??l??e.image??null},d=[s];for(let n of t?.links??[]){let t=String(n.platform??"").toLowerCase();if(!n.url||!t||"spotify"===t)continue;let i=a.get(t);if(i){d.push({...i,cardKey:r(i._id),platform:t,url:i.url||n.url,displayTitle:i.title??o??s.displayTitle,displayImage:i.image??l??s.displayImage,displayPricing:null,displayPopOutEnabled:!1,displayIsAdultContent:!1,displayIconPlatform:null});continue}let c=`streaming-dsp:${t}`;d.push({...e,_id:c,cardKey:r(c),platform:t,url:n.url,displayTitle:o??s.displayTitle,displayImage:l??s.displayImage,displayPricing:null,displayPopOutEnabled:!1,displayIsAdultContent:!1,displayIconPlatform:null,analyticsId:"",clickhouseId:""})}return d.sort((e,t)=>
16n(e.platform)-n(t.platform))}(P);return(0,lh.jsx)(c8,{block:e,links:t,theme:r,isEditor:!!o,onOpen:o?void 0:p})}if(k)return(0,lh.jsxs)("div",{className:"relative h-full w-full",children:[(0,lh.jsx)(cS,{link:P,block:e,theme:r,interactive:!o,onHeightChange:a,onPlay:v?e=>v(P,e):void 0,onOutboundClick:$?(e,t)=>$(P,e,t):void 0}),o?(0,lh.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 z-20 cursor-grab active:cursor-grabbing"}):null]});switch(j){case"fill":return(0,lh.jsx)(al,{link:P,theme:r,isEditor:o,isPreview:n,contentBorderRadius:s,onItemClick:y,isPublicPage:g,isSelectedForInteraction:b,block:e,borderRadius:N});case"left":return(0,lh.jsx)(ad,{link:P,theme:r,borderRadius:N,isEditor:o,isPreview:n,hasPadding:S,containerHeight:l,block:e,onItemClick:y,isPublicPage:g,isSelectedForInteraction:b});case"top":return(0,lh.jsx)(as,{link:P,theme:r,borderRadius:N,isEditor:o,isPreview:n,hasPadding:S,containerHeight:l,block:e,onItemClick:y,isPublicPage:g,isSelectedForInteraction:b});case"text":return(0,lh.jsx)(ac,{link:P,theme:r,block:e,borderRadius:N,isEditor:o,isPreview:n,onItemClick:y,isPublicPage:g,isSelectedForInteraction:b})}}),c6=i2("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);var c7=e.i(57688);let ue=i2("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);function ut({account:e,theme:t,isPublicPage:r=!1,onProfileClick:n}){let o=t.textColor??"#000000",l=e.profileImage?iZ(e.profileImage)??null:null,i=e.username?`https://tiktok.com/@${e.username}`:null,a=(0,lh.jsxs)(lh.Fragment,{children:[l?(0,lh.jsx)(c7.default,{src:l,alt:e.username||"Profile",width:72,height:72,className:"rounded-full object-cover flex-shrink-0"}):(0,lh.jsx)("div",{className:"h-[72px] w-[72px] rounded-full bg-gray-200 flex-shrink-0"}),(0,lh.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,lh.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,lh.jsxs)("div",{className:"min-w-0",children:[(0,lh.jsxs)("div",{className:"flex items-center gap-1",children:[(0,lh.jsx)("span",{className:"text-base font-bold truncate",style:{color:o},children:e.name||`@${e.username}`}),e.verified&&(0,lh.jsx)(ue,{className:"h-4 w-4 text-blue-500 flex-shrink-0"})]}),(0,lh.jsxs)("p",{className:"text-xs truncate",style:{color:o,opacity:.6},children:["@",e.username]})]}),(0,lh.jsx)("img",{src:"/dashboard-assets/tiktok.png",alt:"TikTok",width:22,height:22,className:"flex-shrink-0"})]}),(0,lh.jsx)("div",{className:"mt-2 flex gap-4",children:[{label:"Followers",value:e.followerCount},{label:"Following",value:e.followingCount},{label:"Likes",value:e.likeCount}].map(e=>{var t;return void 0!==e.value&&(0,lh.jsxs)("div",{children:[(0,lh.jsx)("p",{className:"text-sm font-bold",style:{color:o},children:null==(t=e.value)?"–":t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:t.toLocaleString()}),(0,lh.jsx)("p",{className:"text-[10px]",style:{color:o,opacity:.5},children:e.label})]},e.label)})})]})]});return r&&i?(0,lh.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"flex h-full items-center gap-4 px-5 py-4 no-underline",style:{color:o},onClick:()=>n?.(i),children:a}):(0,lh.jsx)("div",{className:"flex h-full items-center gap-4 px-5 py-4",children:a})}function ur({account:e,theme:t,isPublicPage:r=!1,onProfileClick:n}){let o=t.textColor??"#000000",l=e.profileImage?iZ(e.profileImage)??null:null,i=e.username?`https://youtube.com/@${e.username}`:"https://youtube.com",a=(0,lh.jsxs)(lh.Fragment,{children:[l?(0,lh.jsx)(c7.default,{src:l,alt:e.name||e.username||"Profile",width:72,height:72,className:"rounded-full object-cover flex-shrink-0"}):(0,lh.jsx)("div",{className:"h-[72px] w-[72px] rounded-full bg-gray-200 flex-shrink-0"}),(0,lh.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,lh.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,lh.jsxs)("div",{className:"min-w-0",children:[(0,lh.jsx)("span",{className:"text-base font-bold truncate block",style:{color:o},children:e.name||`@${e.username}`}),e.username&&(0,lh.jsxs)("p",{className:"text-xs truncate",style:{color:o,opacity:.6},children:["@",e.username]})]}),(0,lh.jsx)("img",{src:"/dashboard-assets/youtube.png",alt:"YouTube",width:22,height:22,className:"flex-shrink-0"})]}),(0,lh.jsx)("div",{className:"mt-2 flex gap-4",children:[{label:"Subscribers",value:e.subscriberCount},{label:"Views",value:e.viewCount}].map(e=>{var t;return void 0!==e.value&&(0,lh.jsxs)("div",{children:[(0,lh.jsx)("p",{className:"text-sm font-bold",style:{color:o},children:null==(t=e.value)?"–":t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}
16K`:t.toLocaleString()}),(0,lh.jsx)("p",{className:"text-[10px]",style:{color:o,opacity:.5},children:e.label})]},e.label)})})]})]});return r?(0,lh.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"flex h-full items-center gap-4 px-5 py-4 no-underline",style:{color:o},onClick:()=>n?.(i),children:a}):(0,lh.jsx)("div",{className:"flex h-full items-center gap-4 px-5 py-4",children:a})}function un({account:e,theme:t,isPublicPage:r=!1,onProfileClick:n}){let o=t.textColor??"#000000",l=e.profileImage?iZ(e.profileImage)??null:null,i=e.username?`https://instagram.com/${e.username}`:"https://instagram.com",a=(0,lh.jsxs)(lh.Fragment,{children:[l?(0,lh.jsx)(c7.default,{src:l,alt:e.name||e.username||"Profile",width:72,height:72,className:"rounded-full object-cover flex-shrink-0"}):(0,lh.jsx)("div",{className:"h-[72px] w-[72px] rounded-full bg-gray-200 flex-shrink-0"}),(0,lh.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,lh.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,lh.jsxs)("div",{className:"min-w-0",children:[(0,lh.jsx)("span",{className:"text-base font-bold truncate block",style:{color:o},children:e.name||`@${e.username}`}),e.username&&(0,lh.jsxs)("p",{className:"text-xs truncate",style:{color:o,opacity:.6},children:["@",e.username]})]}),(0,lh.jsx)("img",{src:"/dashboard-assets/instagram.png",alt:"Instagram",width:22,height:22,className:"flex-shrink-0"})]}),(0,lh.jsx)("div",{className:"mt-2 flex gap-4",children:[{label:"Followers",value:e.followerCount},{label:"Posts",value:e.postCount}].map(e=>{var t;return void 0!==e.value&&(0,lh.jsxs)("div",{children:[(0,lh.jsx)("p",{className:"text-sm font-bold",style:{color:o},children:null==(t=e.value)?"–":t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:t.toLocaleString()}),(0,lh.jsx)("p",{className:"text-[10px]",style:{color:o,opacity:.5},children:e.label})]},e.label)})})]})]});return r?(0,lh.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"flex h-full items-center gap-4 px-5 py-4 no-underline",style:{color:o},onClick:()=>n?.(i),children:a}):(0,lh.jsx)("div",{className:"flex h-full items-center gap-4 px-5 py-4",children:a})}function uo({account:e,theme:t,isPublicPage:r=!1,onProfileClick:n}){let o=t.textColor??"#000000",l=e.profileImage?iZ(e.profileImage)??null:null,i=e.username?`https://x.com/${e.username}`:null,a=(0,lh.jsxs)(lh.Fragment,{children:[l?(0,lh.jsx)(c7.default,{src:l,alt:e.username||"Profile",width:72,height:72,className:"rounded-full object-cover flex-shrink-0"}):(0,lh.jsx)("div",{className:"h-[72px] w-[72px] rounded-full bg-gray-200 flex-shrink-0"}),(0,lh.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,lh.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,lh.jsxs)("div",{className:"min-w-0",children:[(0,lh.jsxs)("div",{className:"flex items-center gap-1",children:[(0,lh.jsx)("span",{className:"text-base font-bold truncate",style:{color:o},children:e.name||`@${e.username}`}),e.verified&&(0,lh.jsx)(ue,{className:"h-4 w-4 text-sky-500 flex-shrink-0"})]}),(0,lh.jsxs)("p",{className:"text-xs truncate",style:{color:o,opacity:.6},children:["@",e.username]})]}),(0,lh.jsx)("img",{src:"/dashboard-assets/x.png",alt:"X",width:22,height:22,className:"flex-shrink-0"})]}),(0,lh.jsx)("div",{className:"mt-2 flex gap-4",children:[{label:"Followers",value:e.followerCount},{label:"Following",value:e.followingCount},{label:"Posts",value:e.postCount}].map(e=>{var t;return void 0!==e.value&&(0,lh.jsxs)("div",{children:[(0,lh.jsx)("p",{className:"text-sm font-bold",style:{color:o},children:null==(t=e.value)?"–":t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:t.toLocaleString()}),(0,lh.jsx)("p",{className:"text-[10px]",style:{color:o,opacity:.5},children:e.label})]},e.label)})})]})]});return r&&i?(0,lh.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"flex h-full items-center gap-4 px-5 py-4 no-underline",style:{color:o},onClick:()=>n?.(i),children:a}):(0,lh.jsx)("div",{className:"flex h-full items-center gap-4 px-5 py-4",children:a})}function ul({account:e,theme:t,isPublicPage:r=!1,onProfileClick:n}){var o;let l=t.textColor??"#000000",i=e.profileImage?iZ(e.profileImage)??null:null,a=e.username?`https://www.linkedin.com/in/${e.username}`:null,s=(0,lh.jsxs)(lh.Fragment,{children:[i?(0,lh.jsx)(c7.default,{src:i,alt:e.name||e.username||"Profile",width:72,height:72,className:"rounded-full object-cover flex-shrink-0"}):(0,lh.jsx)("div",{className:"h-[72px] w-[72px] rounded-full bg-gray-200 flex-shrink-0"}),(0,lh.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,lh.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,lh.jsxs)("div",{className:"min-w-0",children:[(0,lh.jsx)("span",{className:"block text-base font-bold truncate",style:{color:l},children:e.name||(e.username?`@${e.username}`:"LinkedIn")}),e.username?(0,lh.jsxs)("p",{className:"text-xs truncate",style:{color:l,opacity:.6},children:["@",e.username]}):null]}),(0,lh.jsx)("img",{src:"/dashboard-assets/linkedin.png",alt:"LinkedIn",width:22,height:22,className:"flex-shrink-0"})]}),void 0!==e.followerCount?(0,lh.jsxs)("div",{className:"mt-2",children:[(0,lh.jsx)("p",{className:"text-sm font-bold",style:{color:l},children:null==(o=e.followerCount)?"–":o>=1e6?`${(o/1e6).toFixed(1)}M`:o>=1e3?`${(o/1e3).toFixed(1)}
16K`:o.toLocaleString()}),(0,lh.jsx)("p",{className:"text-[10px]",style:{color:l,opacity:.5},children:"Followers"})]}):null]})]});return r&&a?(0,lh.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"flex h-full items-center gap-4 px-5 py-4 no-underline",style:{color:l},onClick:()=>n?.(a),children:s}):(0,lh.jsx)("div",{className:"flex h-full items-center gap-4 px-5 py-4",children:s})}function ui({account:e,theme:t,isPublicPage:r=!1,onProfileClick:n}){let o=t.textColor??"#000000",l=e.profileImage?iZ(e.profileImage)??null:null,i=e.username?`https://www.twitch.tv/${e.username}`:null,a=!0===e.verified,s=(0,lh.jsxs)(lh.Fragment,{children:[l?(0,lh.jsx)(c7.default,{src:l,alt:e.username||"Profile",width:72,height:72,className:"rounded-full object-cover flex-shrink-0"}):(0,lh.jsx)("div",{className:"h-[72px] w-[72px] rounded-full bg-gray-200 flex-shrink-0"}),(0,lh.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,lh.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,lh.jsxs)("div",{className:"min-w-0",children:[(0,lh.jsxs)("div",{className:"flex items-center gap-1",children:[(0,lh.jsx)("span",{className:"text-base font-bold truncate",style:{color:o},children:e.name||(e.username?e.username:"Twitch")}),a&&(0,lh.jsx)(ue,{className:"h-4 w-4 text-purple-500 flex-shrink-0"})]}),e.username?(0,lh.jsxs)("p",{className:"text-xs truncate",style:{color:o,opacity:.6},children:["twitch.tv/",e.username]}):null]}),(0,lh.jsx)("img",{src:"/dashboard-assets/twitch.png",alt:"Twitch",width:22,height:22,className:"flex-shrink-0"})]}),(0,lh.jsx)("div",{className:"mt-2 flex gap-4",children:[{label:"Followers",value:e.followerCount},{label:"Views",value:e.viewCount}].map(e=>{var t;return void 0!==e.value&&(0,lh.jsxs)("div",{children:[(0,lh.jsx)("p",{className:"text-sm font-bold",style:{color:o},children:null==(t=e.value)?"–":t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:t.toLocaleString()}),(0,lh.jsx)("p",{className:"text-[10px]",style:{color:o,opacity:.5},children:e.label})]},e.label)})})]})]});return r&&i?(0,lh.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"flex h-full items-center gap-4 px-5 py-4 no-underline",style:{color:o},onClick:()=>n?.(i),children:s}):(0,lh.jsx)("div",{className:"flex h-full items-center gap-4 px-5 py-4",children:s})}function ua({account:e,theme:t,isPublicPage:r=!1,onProfileClick:n}){var o;let l=t.textColor??"#000000",i=e.profileImage?iZ(e.profileImage)??null:null,a=e.username?`https://kick.com/${e.username}`:null,s=(0,lh.jsxs)(lh.Fragment,{children:[i?(0,lh.jsx)(c7.default,{src:i,alt:e.username||"Profile",width:72,height:72,className:"rounded-full object-cover flex-shrink-0"}):(0,lh.jsx)("div",{className:"h-[72px] w-[72px] rounded-full bg-gray-200 flex-shrink-0"}),(0,lh.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,lh.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,lh.jsxs)("div",{className:"min-w-0",children:[(0,lh.jsx)("div",{className:"flex items-center gap-1",children:(0,lh.jsx)("span",{className:"text-base font-bold truncate",style:{color:l},children:e.name||(e.username?e.username:"Kick")})}),e.username?(0,lh.jsxs)("p",{className:"text-xs truncate",style:{color:l,opacity:.6},children:["kick.com/",e.username]}):null]}),(0,lh.jsx)("img",{src:"/dashboard-assets/kick.png",alt:"Kick",width:22,height:22,className:"flex-shrink-0"})]}),void 0!==e.subscriberCount&&(0,lh.jsxs)("div",{className:"mt-2",children:[(0,lh.jsx)("p",{className:"text-sm font-bold",style:{color:l},children:null==(o=e.subscriberCount)?"–":o>=1e6?`${(o/1e6).toFixed(1)}M`:o>=1e3?`${(o/1e3).toFixed(1)}K`:o.toLocaleString()}),(0,lh.jsx)("p",{className:"text-[10px]",style:{color:l,opacity:.5},children:"Subscribers"})]})]})]});return r&&a?(0,lh.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"flex h-full items-center gap-4 px-5 py-4 no-underline",style:{color:l},onClick:()=>n?.(a),children:s}):(0,lh.jsx)("div",{className:"flex h-full items-center gap-4 px-5 py-4",children:s})}function us({account:e,theme:t,isPublicPage:r=!1,onProfileClick:n}){let o=t.textColor??"#000000",l=e.profileImage?iZ(e.profileImage)??null:null,i="https://www.snapchat.com",a=(0,lh.jsxs)(lh.Fragment,{children:[l?(0,lh.jsx)("img",{src:l,alt:e.name||"Snapchat",width:72,height:72,className:"rounded-full object-cover flex-shrink-0"}):(0,lh.jsx)("div",{className:"h-[72px] w-[72px] rounded-full bg-gray-200 flex-shrink-0"}),(0,lh.jsx)("div",{className:"min-w-0 flex-1",children:(0,lh.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,lh.jsx)("div",{className:"min-w-0",children:(0,lh.jsx)("span",{className:"text-base font-bold truncate block",style:{color:o},children:e.name||"Snapchat"})}),(0,lh.jsx)("img",{src:"/dashboard-assets/snapchat.png",alt:"Snapchat",width:22,height:22,className:"flex-shrink-0"})]})})]});return r?(0,lh.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"flex h-full items-center gap-4 px-5 py-4 no-underline",style:{color:o},onClick:()=>n?.(i),children:a}):(0,lh.jsx)("div",{className:"flex h-full items-center gap-4 px-5 py-4",children:a})}function ud({account:e,theme:t,isPublicPage:r=!1,onProfileClick:n}){let o=t.textColor??"#000000",l=e.profileImage?iZ(e.profileImage)??null:null,i=e.username?.replace(/^@/,"")||"",a=i?`https://bsky.app/profile/${i}`:null,s=(0,lh.jsxs)(lh.Fragment,{children:[l?(0,lh.jsx)(c7.default,{src:l,alt:i||"Profile",width:72,height:72,className:"rounded-full object-cover flex-shrink-0"}):(0,lh.jsx)("div",{className:"h-[72px] w-[72px] rounded-full bg-gray-200 flex-shrink-0"}),(0,lh.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,lh.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,lh.jsxs)("div",{className:"min-w-0",children:[(0,lh.jsx)("span",{className:"text-base font-bold truncate block",style:{color:o},children:e.name||(i?`@${i}`:"Bluesky")}),i?(0,lh.jsxs)("p",{className:"text-xs truncate",style:{color:o,opacity:.6},children:["@",i]}):null]}),(0,lh.jsx)("img",{src:"/dashboard-assets/bluesky.png",alt:"Bluesky",width:22,height:22,className:"flex-shrink-0"})]}),(0,lh.jsx)("div",{className:"mt-2 flex gap-4",children:[{label:"Followers",value:e.followerCount},{label:"Following",value:e.followingCount},{label:"Posts",value:e.postCount}].map(e=>{var t;return void 0!==e.value&&(0,lh.jsxs)("div",{children:[(0,lh.jsx)("p",{className:"text-sm font-bold",style:{color:o},children:null==(t=e.value)?"–":t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}
16K`:t.toLocaleString()}),(0,lh.jsx)("p",{className:"text-[10px]",style:{color:o,opacity:.5},children:e.label})]},e.label)})})]})]});return r&&a?(0,lh.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"flex h-full items-center gap-4 px-5 py-4 no-underline",style:{color:o},onClick:()=>n?.(a),children:s}):(0,lh.jsx)("div",{className:"flex h-full items-center gap-4 px-5 py-4",children:s})}function uc({account:e,theme:t,isPublicPage:r=!1,onProfileClick:n}){var o;let l=t.textColor??"#000000",i=e.profileImage?iZ(e.profileImage)??null:null,a=e.username?`https://www.pinterest.com/${e.username}`:null,s=(0,lh.jsxs)(lh.Fragment,{children:[i?(0,lh.jsx)("img",{src:i,alt:e.username||"Profile",width:72,height:72,className:"rounded-full object-cover flex-shrink-0"}):(0,lh.jsx)("div",{className:"h-[72px] w-[72px] rounded-full bg-gray-200 flex-shrink-0"}),(0,lh.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,lh.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,lh.jsxs)("div",{className:"min-w-0",children:[(0,lh.jsx)("div",{className:"flex items-center gap-1",children:(0,lh.jsx)("span",{className:"text-base font-bold truncate",style:{color:l},children:e.name||(e.username?e.username:"Pinterest")})}),e.username?(0,lh.jsxs)("p",{className:"text-xs truncate",style:{color:l,opacity:.6},children:["pinterest.com/",e.username]}):null]}),(0,lh.jsx)("img",{src:"/dashboard-assets/pinterest.png",alt:"Pinterest",width:22,height:22,className:"flex-shrink-0"})]}),void 0!==e.followerCount&&(0,lh.jsxs)("div",{className:"mt-2",children:[(0,lh.jsx)("p",{className:"text-sm font-bold",style:{color:l},children:null==(o=e.followerCount)?"–":o>=1e6?`${(o/1e6).toFixed(1)}M`:o>=1e3?`${(o/1e3).toFixed(1)}K`:o.toLocaleString()}),(0,lh.jsx)("p",{className:"text-[10px]",style:{color:l,opacity:.5},children:"Followers"})]})]})]});return r&&a?(0,lh.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"flex h-full items-center gap-4 px-5 py-4 no-underline",style:{color:l},onClick:()=>n?.(a),children:s}):(0,lh.jsx)("div",{className:"flex h-full items-center gap-4 px-5 py-4",children:s})}function uu({account:e,theme:t,isPublicPage:r=!1,onProfileClick:n}){let o=t.textColor??"#000000",l=e.profileImage?iZ(e.profileImage)??null:null,i=e.username?`https://www.threads.net/@${e.username.replace(/^@/,"")}`:null,a=[{label:"Followers",value:e.followerCount},{label:"Likes (7d)",value:e.likeCount},{label:"Views (7d)",value:e.viewCount},{label:"Replies (7d)",value:e.replyCount},{label:"Reposts (7d)",value:e.repostCount},{label:"Quotes (7d)",value:e.quoteCount}].filter(e=>void 0!==e.value),s=(0,lh.jsxs)(lh.Fragment,{children:[l?(0,lh.jsx)("img",{src:l,alt:e.username||"Profile",width:72,height:72,className:"rounded-full object-cover flex-shrink-0"}):(0,lh.jsx)("div",{className:"h-[72px] w-[72px] rounded-full bg-gray-200 flex-shrink-0"}),(0,lh.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,lh.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,lh.jsxs)("div",{className:"min-w-0",children:[(0,lh.jsxs)("div",{className:"flex items-center gap-1 min-w-0",children:[(0,lh.jsx)("span",{className:"text-base font-bold truncate",style:{color:o},children:e.name||(e.username?e.username:"Threads")}),e.verified?(0,lh.jsx)(ue,{className:"size-4 flex-shrink-0",style:{color:o},"aria-label":"Verified"}):null]}),e.username?(0,lh.jsxs)("p",{className:"text-xs truncate",style:{color:o,opacity:.6},children:["@",e.username.replace(/^@/,"")]}):null]}),(0,lh.jsx)("img",{src:"/dashboard-assets/threads.png",alt:"Threads",width:22,height:22,className:"flex-shrink-0"})]}),a.length>0?(0,lh.jsx)("div",{className:"mt-2 flex flex-wrap gap-x-4 gap-y-1",children:a.map(e=>{var t;return(0,lh.jsxs)("div",{children:[(0,lh.jsx)("p",{className:"text-sm font-bold",style:{color:o},children:null==(t=e.value)?"–":t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:t.toLocaleString()}),(0,lh.jsx)("p",{className:"text-[10px]",style:{color:o,opacity:.5},children:e.label})]},e.label)})}):null]})]});return r&&i?(0,lh.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"flex h-full items-center gap-4 px-5 py-4 no-underline",style:{color:o},onClick:()=>n?.(i),children:s}):(0,lh.jsx)("div",{className:"flex h-full items-center gap-4 px-5 py-4",children:s})}function um({account:e,theme:t,isPublicPage:r=!1,onProfileClick:n}){var o;let l=t.textColor??"#000000",i=e.profileImage?iZ(e.profileImage)??null:null,a=e.username?`https://www.facebook.com/${e.username}`:null,s=(0,lh.jsxs)(lh.Fragment,{children:[i?(0,lh.jsx)("img",{src:i,alt:e.username||"Profile",width:72,height:72,className:"rounded-full object-cover flex-shrink-0"}):(0,lh.jsx)("div",{className:"h-[72px] w-[72px] rounded-full bg-gray-200 flex-shrink-0"}),(0,lh.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,lh.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,lh.jsxs)("div",{className:"min-w-0",children:[(0,lh.jsx)("div",{className:"flex items-center gap-1",children:(0,lh.jsx)("span",{className:"text-base font-bold truncate",style:{color:l},children:e.name||(e.username?e.username:"Facebook")})}),e.username?(0,lh.jsxs)("p",{className:"text-xs truncate",style:{color:l,opacity:.6},children:["facebook.com/",e.username]}):null]}),(0,lh.jsx)("img",{src:"/dashboard-assets/facebook.png",alt:"Facebook",width:22,height:22,className:"flex-shrink-0"})]}),void 0!==e.followerCount&&(0,lh.jsxs)("div",{className:"mt-2",children:[(0,lh.jsx)("p",{className:"text-sm font-bold",style:{color:l},children:null==(o=e.followerCount)?"–":o>=1e6?`${(o/1e6).toFixed(1)}M`:o>=1e3?`${(o/1e3).toFixed(1)}
16K`:o.toLocaleString()}),(0,lh.jsx)("p",{className:"text-[10px]",style:{color:l,opacity:.5},children:"Followers"})]})]})]});return r&&a?(0,lh.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"flex h-full items-center gap-4 px-5 py-4 no-underline",style:{color:l},onClick:()=>n?.(a),children:s}):(0,lh.jsx)("div",{className:"flex h-full items-center gap-4 px-5 py-4",children:s})}function uf({theme:e,videos:t=[],isPublicPage:r=!1,onVideoClick:n}){let o=e.textColor??"#000000",l=(0,lx.useRef)(null),{showLeft:i,showRight:a,update:s,scrollBy:d}=cO(l,[t.length]);return 0===t.length?(0,lh.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 px-5 py-4",children:[(0,lh.jsx)(c6,{className:"h-6 w-6",style:{color:o,opacity:.4}}),(0,lh.jsx)("p",{className:"text-xs",style:{color:o,opacity:.6},children:"No content yet"})]}):(0,lh.jsxs)("div",{className:"relative h-full w-full overflow-hidden",children:[(0,lh.jsx)(cz,{direction:"left",visible:i,onClick:()=>d("left")}),(0,lh.jsx)(cz,{direction:"right",visible:a,onClick:()=>d("right")}),(0,lh.jsx)("div",{ref:l,className:"carousel-scroll-area scrollbar-hide flex h-full snap-x snap-mandatory gap-3 overflow-x-auto",onScroll:s,children:t.map(e=>{var t;let o=e.thumbnail?.path?iZ(e.thumbnail.path):null,l=null==(t=e.viewCount)?null:t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:t.toLocaleString(),i="relative h-full w-[182px] flex-shrink-0 snap-start overflow-hidden rounded-xl bg-black",a=(0,lh.jsxs)(lh.Fragment,{children:[o?(0,lh.jsx)("img",{src:o,alt:e.title||"TikTok video",className:"h-full w-full object-cover"}):(0,lh.jsx)("div",{className:"h-full w-full bg-gray-800"}),(0,lh.jsx)("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 45%)"}}),(0,lh.jsx)("img",{src:"/dashboard-assets/tiktok.png",alt:"TikTok",width:20,height:20,className:"absolute right-2 top-2 h-5 w-5"}),l&&(0,lh.jsxs)("div",{className:"absolute bottom-2 left-2.5 flex items-center gap-1 text-xs font-semibold text-white",children:[l," views"]})]});return r&&e.watchUrl?(0,lh.jsx)("a",{href:e.watchUrl,target:"_blank",rel:"noopener noreferrer",className:`${i} block no-underline`,onClick:()=>n?.(e),children:a},e.videoId):(0,lh.jsx)("div",{className:i,children:a},e.videoId)})})]})}function up({theme:e,videos:t=[],variant:r="videos",isPublicPage:n=!1,onVideoClick:o}){let l=e.textColor??"#000000",i=(0,lx.useRef)(null),{showLeft:a,showRight:s,update:d,scrollBy:c}=cO(i,[t.length]);return 0===t.length?(0,lh.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 px-5 py-4",children:[(0,lh.jsx)(c6,{className:"h-6 w-6",style:{color:l,opacity:.4}}),(0,lh.jsx)("p",{className:"text-xs",style:{color:l,opacity:.6},children:"No content yet"})]}):(0,lh.jsxs)("div",{className:"relative h-full w-full overflow-hidden",children:[(0,lh.jsx)(cz,{direction:"left",visible:a,onClick:()=>c("left")}),(0,lh.jsx)(cz,{direction:"right",visible:s,onClick:()=>c("right")}),(0,lh.jsx)("div",{ref:i,className:"carousel-scroll-area scrollbar-hide flex h-full snap-x snap-mandatory gap-3 overflow-x-auto",onScroll:d,children:t.map(e=>{var t;let l=e.thumbnail?.path?iZ(e.thumbnail.path):null,i=null==(t=e.viewCount)?null:t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:t.toLocaleString(),a=`relative h-full flex-shrink-0 snap-start overflow-hidden rounded-xl bg-black ${"shorts"===r?"w-[182px]":"aspect-video"}`,s=(0,lh.jsxs)(lh.Fragment,{children:[l?(0,lh.jsx)("img",{src:l,alt:e.title||"YouTube video",className:"h-full w-full object-cover"}):(0,lh.jsx)("div",{className:"h-full w-full bg-gray-800"}),(0,lh.jsx)("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 45%)"}}),(0,lh.jsx)("img",{src:"/dashboard-assets/youtube.png",alt:"YouTube",width:20,height:20,className:"absolute right-2 top-2 h-5 w-5"}),i&&(0,lh.jsxs)("div",{className:"absolute bottom-2 left-2.5 flex items-center gap-1 text-xs font-semibold text-white",children:[i," views"]})]});return n&&e.watchUrl?(0,lh.jsx)("a",{href:e.watchUrl,target:"_blank",rel:"noopener noreferrer",className:`${a} block no-underline`,onClick:()=>o?.(e),children:s},e.videoId):(0,lh.jsx)("div",{className:a,children:s},e.videoId)})})]})}function uh({account:e,theme:t,isPublicPage:r=!1,handle:n,sensitiveContentBaseUrl:o,onAdultUrlClick:l,onProfileClick:i}){let a=t.textColor??"#000000",s=e.profileImage?iZ(e.profileImage)??null:null,d=n&&o?`${o}/${n.toLowerCase()}/r/connected/platform-3`:null,c=(0,lh.jsxs)(lh.Fragment,{children:[s?(0,lh.jsx)(c7.default,{src:s,alt:e.name||"Profile",width:72,height:72,className:"rounded-full object-cover flex-shrink-0"}):(0,lh.jsx)("div",{className:"h-[72px] w-[72px] rounded-full bg-gray-200 flex-shrink-0"}),(0,lh.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,lh.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,lh.jsxs)("div",{className:"min-w-0",children:[(0,lh.jsx)("div",{className:"flex items-center gap-1",children:(0,lh.jsx)("span",{className:"text-base font-bold truncate",style:{color:a},children:e.name||`@${e.username}`})}),(0,lh.jsxs)("p",{className:"text-xs truncate",style:{color:a,opacity:.6},children:["@",e.username]})]}),(0,lh.jsx)("img",{src:"/dashboard-assets/platform-3.png",alt:"",width:22,height:22,className:"flex-shrink-0"})]}),(0,lh.jsx)("div",{className:"mt-2 flex gap-4",children:[{label:"Followers",value:e.followerCount},{label:"Subscribers",value:e.subscriberCount}].map(e=>{var t;return void 0!==e.value&&(0,lh.jsxs)("div",{children:[(0,lh.jsx)("p",{className:"text-sm font-bold",style:{color:a},children:null==(t=e.value)?"–":t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}
16K`:t.toLocaleString()}),(0,lh.jsx)("p",{className:"text-[10px]",style:{color:a,opacity:.5},children:e.label})]},e.label)})})]})]});return r&&d?(0,lh.jsx)("a",{href:d,onClick:t=>{d&&i?.(d),l&&d&&(t.preventDefault(),l(d,e.name||e.username||void 0))},target:"_blank",rel:"noopener noreferrer nofollow",className:"flex h-full items-center gap-4 px-5 py-4 no-underline",style:{color:a},children:c}):(0,lh.jsx)("div",{className:"flex h-full items-center gap-4 px-5 py-4",children:c})}let ub=i2("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);function ug({theme:e,content:t=[],isPublicPage:r=!1,handle:n,sensitiveContentBaseUrl:o,onAdultUrlClick:l,onItemClick:i}){let a=e.textColor??"#000000",s=r&&!!n&&!!o,d=n?.toLowerCase()??"";if(0===t.length)return(0,lh.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 px-5 py-4",children:[(0,lh.jsx)(c6,{className:"h-6 w-6",style:{color:a,opacity:.4}}),(0,lh.jsx)("p",{className:"text-xs",style:{color:a,opacity:.6},children:"No content yet"})]});let c=Array.from({length:6},(e,r)=>t[r]??null);return(0,lh.jsx)("div",{className:"grid h-full w-full grid-cols-3 grid-rows-2",children:c.map((e,t)=>{if(!e)return(0,lh.jsx)("div",{className:"relative overflow-hidden bg-gray-100"},`ph-${t}`);let r=e.thumbnail?.path?iZ(e.thumbnail.path):null,n=(0,lh.jsxs)(lh.Fragment,{children:[r?(0,lh.jsx)("img",{src:r,alt:"",className:"h-full w-full object-cover"}):(0,lh.jsx)("div",{className:"h-full w-full bg-gray-800"}),e.isBlurred&&(0,lh.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/10",children:(0,lh.jsx)(ub,{className:"h-5 w-5 text-white drop-shadow"})}),(0,lh.jsx)("img",{src:"/dashboard-assets/platform-3.png",alt:"",width:18,height:18,className:"absolute right-1.5 top-1.5 h-[18px] w-[18px]"})]});if(s){let t=`${o}/${d}/r/connected/platform-3/content/${encodeURIComponent(e.contentId)}`;return(0,lh.jsx)("a",{href:t,onClick:r=>{i?.(e,t),l&&(r.preventDefault(),l(t,void 0))},target:"_blank",rel:"noopener noreferrer nofollow",className:"relative block overflow-hidden bg-black no-underline",children:n},e.contentId)}return(0,lh.jsx)("div",{className:"relative overflow-hidden bg-black",children:n},e.contentId)})})}function ux({theme:e,content:t=[],isPublicPage:r=!1,onItemClick:n}){let o=e.textColor??"#000000";if(0===t.length)return(0,lh.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 px-5 py-4",children:[(0,lh.jsx)(c6,{className:"h-6 w-6",style:{color:o,opacity:.4}}),(0,lh.jsx)("p",{className:"text-xs",style:{color:o,opacity:.6},children:"No content yet"})]});let l=Array.from({length:6},(e,r)=>t[r]??null);return(0,lh.jsx)("div",{className:"grid h-full w-full grid-cols-3 grid-rows-2",children:l.map((e,t)=>{if(!e)return(0,lh.jsx)("div",{className:"relative overflow-hidden bg-gray-100"},`ph-${t}`);let o=e.thumbnail?.path?iZ(e.thumbnail.path):null,l=(0,lh.jsxs)(lh.Fragment,{children:[o?(0,lh.jsx)("img",{src:o,alt:"",className:"h-full w-full object-cover"}):(0,lh.jsx)("div",{className:"h-full w-full bg-gray-800"}),(0,lh.jsx)("img",{src:"/dashboard-assets/instagram.png",alt:"",width:18,height:18,className:"absolute right-1.5 top-1.5 h-[18px] w-[18px]"})]});return r&&e.watchUrl?(0,lh.jsx)("a",{href:e.watchUrl,target:"_blank",rel:"noopener noreferrer",className:"relative block overflow-hidden bg-black no-underline",onClick:()=>n?.(e),children:l},e.contentId):(0,lh.jsx)("div",{className:"relative overflow-hidden bg-black",children:l},e.contentId)})})}function uy({block:e,theme:t,accountData:r=null,tiktokVideos:n,platform3Content:o,isPublicPage:l=!1,handle:i,sensitiveContentBaseUrl:a,onAdultUrlClick:s,onBlockInteraction:d}){let c=t.textColor??"#000000",u=e.style?.blockLayout,m=(t,r,n,o,l)=>{d?.({kind:"item_click",blockId:e.id,blockType:e.type,itemId:t,itemType:r,url:n,title:o??null,platform:l??null})},f=(e,t)=>r=>m(r.videoId,e,r.watchUrl,r.title,t),p=(e,t)=>n=>m(r?.username??"",e,n,r?.name||r?.username,t);if("connected-account-tiktok-content-carousel-md"===u)return(0,lh.jsx)(uf,{theme:t,videos:n,isPublicPage:l,onVideoClick:f(cQ.tiktokVideo,"tiktok")});if("connected-account-youtube-videos-carousel-md"===u||"connected-account-youtube-shorts-carousel-md"===u){let e="connected-account-youtube-shorts-carousel-md"===u;return(0,lh.jsx)(up,{theme:t,videos:n,variant:e?"shorts":"videos",isPublicPage:l,onVideoClick:f(e?cQ.youtubeShort:cQ.youtubeVideo,"youtube")})}if("connected-account-platform-3-content-grid-md"===u)return(0,lh.jsx)(ug,{theme:t,content:o,isPublicPage:l,handle:i,sensitiveContentBaseUrl:a,onAdultUrlClick:s,onItemClick:(e,t)=>m(e.contentId,cQ.platform3Content,t,void 0,"platform-3")});if("connected-account-instagram-content-grid-md"===u)return(0,lh.jsx)(ux,{theme:t,content:o,isPublicPage:l,onItemClick:e=>m(e.contentId,cQ.instagramMedia,e.watchUrl??"",e.text,"instagram")});if(!r)return(0,lh.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 px-5 py-4",children:[(0,lh.jsx)(c6,{className:"h-6 w-6",style:{color:c,opacity:.4}}),(0,lh.jsx)("p",{className:"text-xs",style:{color:c,opacity:.6},children:"Account not connected"})]});switch(r.platform){case"tiktok":return(0,lh.jsx)(ut,{account:r,theme:t,isPublicPage:l,onProfileClick:p(cQ.tiktokProfile,"tiktok")});case"youtube":return(0,lh.jsx)(ur,{account:r,theme:t,isPublicPage:l,onProfileClick:p(cQ.youtubeChannel,"youtube")});case"instagram":return(0,lh.jsx)(un,{account:r,theme:t,isPublicPage:l,onProfileClick:p(cQ.instagramProfile,"instagram")});case"x":return(0,lh.jsx)(uo,{account:r,theme:t,isPublicPage:l,onProfileClick:p(cQ.xProfile,"x")});case"linkedin":return(0,lh.jsx)(ul,{account:r,theme:t,isPublicPage:l,onProfileClick:p(cQ.linkedinProfile,"linkedin")});case"twitch":return(0,lh.jsx)(ui,{account:r,theme:t,isPublicPage:l,onProfileClick:p(cQ.twitchProfile,"twitch")});case"kick":return(0,lh.jsx)(ua,{account:r,theme:t,isPublicPage:l,onProfileClick:p(cQ.kickProfile,"kick")});case"snapchat":return(0,lh.jsx)(us,{account:r,theme:t,isPublicPage:l,onProfileClick:p(cQ.snapchatProfile,"snapchat")});case"pinterest":return(0,lh.jsx)(uc,{account:r,theme:t,isPublicPage:l,onProfileClick:p(cQ.pinterestProfile,"pinterest")});case"threads":return(0,lh.jsx)(uu,{account:r,theme:t,isPublicPage:l,onProfileClick:p(cQ.threadsProfile,"threads")});case"facebook":return(0,lh.jsx)(um,{account:r,theme:t,isPublicPage:l,onProfileClick:p(cQ.facebookProfile,"facebook")});case"bluesky":return(0,lh.jsx)(ud,{account:r,theme:t,isPublicPage:l,onProfileClick:p(cQ.blueskyProfile,"bluesky")});case"platform-3":return(0,lh.jsx)(uh,{account:r,theme:t,isPublicPage:l,handle:i,sensitiveContentBaseUrl:a,onAdultUrlClick:s,onProfileClick:p(cQ.platform3Profile,"platform-3")});default:return null}}function uv(e,t){return function(e,t){if(!e||0===e.length)return[];let r=new Map;for(let e of t){let t=nr(e._id);null===t||r.has(t)||r.set(t,e)}let n=e.map((e,t)=>({ref:e,index:t})).sort((e,t)=>
16(e.ref.sortOrder??0)-(t.ref.sortOrder??0)||e.index-t.index),o=nt(),l=[];for(let{ref:e}of n){let t=nr(e.linkId),n=null===t?void 0:r.get(t);n&&l.push({...n,cardKey:o(t),displayTitle:e.title??null,displayImage:e.image??null,displayPricing:e.pricing??null,displayPopOutEnabled:e.popOutEnabled??n.popOutEnabled??!1,displayIsAdultContent:e.isAdultContent??n.isAdultContent??!1,displayIconPlatform:n.displayIconPlatform??null,displayEvent:e.event??null})}return l}(e.links,t)}function u$(e){return rL(e.style?.blockLayout)?e.style.badge:null}e.s([],1391);let uw=lx.useLayoutEffect,uk="--page-top-radius",uC="v3-page-frame-scroll-radius",uj=`var(${uk}, 32px)`,uN={transition:"top 400ms cubic-bezier(0.4, 0, 0.2, 1), border-bottom-left-radius 300ms ease-in-out, border-bottom-right-radius 300ms ease-in-out",borderTopLeftRadius:uj,borderTopRightRadius:uj};function uS(e,t,r){return!function(e,t){if(!l_(e))return!1;let r=lF(e);return t.some(e=>!!(e&&l_(e))&&.1>Math.abs(r-lF(e)))}(e,r)?{background:e,text:i8(e)}:{background:`color-mix(in srgb, ${t} 10%, transparent)`,text:t}}function uP(e){return uS(e.buttonColor??"#000000",e.titleTextColor??e.textColor??"#111111",[e.backgroundColor,e.blockBackgroundColor])}function uI(e,t){return Object.entries(t).every(([t,r])=>!r||e.options[t]===r)}function uE(e,t){let r=t.trim().toUpperCase();return e.variants.find(e=>e.asin.trim().toUpperCase()===r)}function uT(e,t,r,n){let o={...t,[r]:n};return e.some(e=>e.available&&uI(e,o))}function uL(...e){let t=new Set,r=[];for(let n of e)for(let e of Array.isArray(n)?n:n?[n]:[])!e?.path||t.has(e.path)||(t.add(e.path),r.push(e));return r}function uR(e){return e.replace(/(\d)\.00\b/g,"$1")}function uM(e){let t,r=e.amazon?.price;if(r)return uR(r);let n=e.pricing?.price;return"number"==typeof n?(t=2*!Number.isInteger(n),`$${n.toLocaleString("en-US",{minimumFractionDigits:t,maximumFractionDigits:2})}`):null}function uA(e){var t;let r,n;return t=e.amazon?.title,r=e.title?.trim()?e.title:null,n=t?.trim()?t:null,e.customTitle&&r?r:m(e)?n||r:r||n}function u_(e){let t=(e?.images?.filter(e=>!!e?.path)??[])[0]??null,r=e.amazon?.image,n=t?.path??r?.path;return n?iZ(n):null}function uO(e){return e.amazonProductId||e.amazon?"bg-white object-contain p-[7%]":"object-cover"}function uz(e){let t=parseInt(e,10);return!Number.isFinite(t)||t<=0?"0px":t>=24?"9999px":"8px"}function uF(e){let t,r=e.amazon,n=e.pricing?.price;return{id:e.id,...e.clickhouseId?{productClickhouseId:e.clickhouseId}:{},title:uA(e)||"Untitled Product",imageUrl:u_(e),price:r?.price?uR(r.price):"number"==typeof n?(t=2*!Number.isInteger(n),`$${n.toLocaleString("en-US",{minimumFractionDigits:t,maximumFractionDigits:2})}`):"",quantity:1,...r?{productKey:e.amazonProductId||r.asin||e.id}:{},...r?.asin?{asin:r.asin}:{},...r?.url||e.url?{url:r?.url||e.url}:{},...e.platform?.trim()?{platform:e.platform.trim()}:{}}}function uD(e){return`hoobe:shop-cart:${e.trim()}`}function uB(e){return"string"==typeof e&&e.trim()?e:void 0}function uU(e){let t=e.replace(/,/g,"").match(/(\d+(?:\.\d{1,2})?)/);return t?Math.round(100*Number(t[1])):null}function uH(e){return uR(new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e/100))}let uW=new Set(["co","com","net","org","gov","edu","ac"]),uG="collection",uq="product",uV="hoobeShop",uK="hoobeShopCart";function uY(){let e=window.history.state;return e&&"object"==typeof e?{...e}:{}}function uZ(e){return e?.trim()||null}function uX(e){let t=new URLSearchParams(e.startsWith("?")?e.slice(1):e);return{collectionId:uZ(t.get(uG)),productId:uZ(t.get(uq))}}function uJ(){let e=window.history.state;return!!(e&&"object"==typeof e&&uV in e)}let uQ="cart";function u0(e){return new URLSearchParams(e.startsWith("?")?e.slice(1):e).has(uQ)}function u1(e){return e?"string"==typeof e?e.trim():e.text?.trim()||"":""}function u2(e){let t=e.parentElement;for(;t&&t!==document.body;){let{overflowY:e}=getComputedStyle(t);if(("auto"===e||"scroll"===e||"overlay"===e)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null}function u3(e){let t=u2(e);t&&(t.scrollTop=0),window.scrollTo(0,0);let r=`.${uC}`,n=e?e.closest(r):document.querySelector(r);if(n){let e=n.style.animation;n.style.animation="none",n.offsetWidth,n.style.animation=e}window.dispatchEvent(new Event("scroll"))}let u4=(0,lx.createContext)(null);function u5(){return(0,lx.useContext)(u4)}function u8({enabled:e,textColor:t="#111827",backgroundColor:r="#ffffff",borderRadius:n="16px",buttonColor:o="#000000",iconColor:l,cartPage:i=!1,urlSync:a=!1,showActions:s=!0,barOnScroll:d,pin:c,frameTopRa
16dius:u,profileName:m,profileMedia:f,storageKey:p,affiliateTag:h="",onShopAction:b,children:g}){let x=d??i,[y,v]=(0,lx.useState)(!1),[$,w]=(0,lx.useState)(!1),[k,C]=(0,lx.useState)(!1),[j,N]=(0,lx.useState)([]),S=(0,lx.useRef)([]),[P,I]=(0,lx.useState)(!p),[E,T]=(0,lx.useState)([]),[L,R]=(0,lx.useState)(!1);(0,lx.useLayoutEffect)(()=>{if(!a||!e)return;let t=()=>w(u0(window.location.search));return t(),window.addEventListener("popstate",t),()=>window.removeEventListener("popstate",t)},[e,a]);let M=(0,lx.useRef)($);(0,lx.useEffect)(()=>{M.current!==$&&(M.current=$,a&&function(e){if(u0(window.location.search)===e)return;let t=new URL(window.location.href);e?t.searchParams.set(uQ,""):t.searchParams.delete(uQ);let r=`${t.pathname}${t.search.replace(/([?&]cart)=(?=&|$)/,"$1")}${t.hash}`,n=uY();e?window.history.pushState({...n,[uV]:!0,[uK]:!0},"",r):n[uK]?window.history.back():window.history.replaceState(n,"",r)}($),$||T([]))},[$,a]),(0,lx.useLayoutEffect)(()=>{if(!p)return;let e=function(e){let t=e.trim();if(!t)return[];try{let e=window.localStorage.getItem(uD(t));if(!e)return[];let r=JSON.parse(e);if(!Array.isArray(r))return[];return r.flatMap(e=>{let t=e&&"object"==typeof e&&"string"==typeof e.id&&e.id&&"string"==typeof e.title&&"string"==typeof e.price&&"number"==typeof e.quantity&&Number.isFinite(e.quantity)&&!(e.quantity<1)&&(null==e.imageUrl||"string"==typeof e.imageUrl)?{id:e.id,..."string"==typeof e.productClickhouseId&&/^\d{1,39}$/.test(e.productClickhouseId)?{productClickhouseId:e.productClickhouseId}:{},title:e.title,imageUrl:"string"==typeof e.imageUrl?e.imageUrl:null,price:e.price,quantity:Math.min(65535,Math.round(e.quantity)),...uB(e.asin)?{asin:uB(e.asin)}:{},...uB(e.url)?{url:uB(e.url)}:{},...uB(e.platform)?{platform:uB(e.platform)}:{},...uB(e.productKey)?{productKey:uB(e.productKey)}:{}}:null;return t?[t]:[]})}catch{return[]}}(p);S.current=e,N(e),I(!0)},[p]),(0,lx.useEffect)(()=>{p&&P&&function(e,t){let r=e.trim();if(!r)return;let n=uD(r);try{if(0===t.length)return void window.localStorage.removeItem(n);window.localStorage.setItem(n,JSON.stringify(t))}catch{return}}(p,j)},[P,j,p]);let A=(0,lx.useRef)(null),_=(0,lx.useCallback)(e=>{A.current=e},[]),O=(0,lx.useRef)(null),z=(0,lx.useRef)(null),F=(0,lx.useCallback)(e=>{O.current=e;let t=z.current;e&&t&&(z.current=null,e(t))},[]),D=(0,lx.useCallback)(e=>{(w(!1),C(!1),O.current)?O.current(e):z.current=e},[]);(0,lx.useEffect)(()=>{e||(v(!1),w(!1),C(!1),R(!1))},[e]);let B=(0,lx.useRef)(!1);(0,lx.useEffect)(()=>{if(y){B.current=!0;return}B.current&&(B.current=!1,z.current=null,w(!1),C(!1),R(!1))},[y]);let U=(0,lx.useCallback)(e=>{try{b?.(e)}catch{}},[b]),H=(0,lx.useCallback)((e,t)=>{var r;let n=S.current,o=Number.isFinite(r=t)?(r=Math.min(65535,Math.max(0,Math.round(r))))<=0?n.filter(t=>t.id!==e):n.map(t=>t.id===e?{...t,quantity:r}:t):n;S.current=o,N(o);let l=n.find(t=>t.id===e),i=o.find(t=>t.id===e),a=(i?.quantity??0)-(l?.quantity??0);i&&a>0&&U({eventName:"add_to_cart",items:[{...i,quantity:a}]})},[U]),W=(0,lx.useCallback)(e=>{let t=new Set(e),r=S.current,n=r.filter(e=>t.has(e.id));if(0===n.length)return;let o=r.filter(e=>!t.has(e.id));S.current=o,N(o),T(e=>[...e,...n])},[]),G=(0,lx.useCallback)(e=>{let t,r=uF(e),n=S.current,o=(t=n.findIndex(e=>e.id===r.id))<0?[...n,r]:n.map((e,n)=>n===t?{...e,productClickhouseId:r.productClickhouseId??e.productClickhouseId,quantity:Math.min(65535,e.quantity+1)}:e);S.current=o,N(o);let l=(o.find(e=>e.id===r.id)?.quantity??0)-(n.find(e=>e.id===r.id)?.quantity??0);l>0&&U({eventName:"add_to_cart",items:[{...r,quantity:l}]}),w(!0)},[U]),q=(0,lx.useMemo)(()=>({setIsShop:v,isCartOpen:$,closeCart:()=>w(!1),openCart:()=>w(!0),isSearchOpen:k,closeSearch:()=>C(!1),items:j,addToCart:G,productClick:e=>U({eventName:"product_click",items:[uF(e)]}
16),collectionClick:e=>{e.clickhouseId&&U({eventName:"collection_click",collectionId:e.clickhouseId,items:[]})},setQuantity:H,removeFromCart:e=>H(e,0),dropUnavailable:W,removedItems:E,checkout:e=>U({eventName:"checkout_start",items:e}),isBrowseOpen:L,setBrowseOpen:R,setBrowseBack:_,setBrowseNav:F,goHome:()=>D({kind:"home"}),openProduct:e=>D({kind:"product",productKey:e}),darkSurface:"#ffffff"===i8(r),affiliateTag:(h??"").trim(),reviewerName:u1(m)||"",reviewerImageUrl:f?.path&&"video"!==f.mediaType?iZ(f.path)??null:null}),[G,W,E,H,U,h,r,f,m,j,$,k,L,D,_,F]),V=L||$||k,K=uS(o,t,[r]),Y=(0,lx.useRef)(null),Z=(0,lx.useRef)(!1);(0,lx.useLayoutEffect)(()=>{let e=$||k;if(!e&&!Z.current)return;Z.current=e;let t=Y.current;t&&u3(t)},[$,k]);let{sentinelRef:X,scrolled:J}=function(e,t=1){let r=(0,lx.useRef)(null),[n,o]=(0,lx.useState)(!1);return(0,lx.useLayoutEffect)(()=>{if(!e)return void o(!1);let t=r.current;if(!t)return;let n=new IntersectionObserver(([e])=>{o(!e.isIntersecting)},{root:u2(t),threshold:0});return n.observe(t),()=>n.disconnect()},[e,t]),{sentinelRef:r,scrolled:n}}(e&&V),Q=u1(m)||"Untitled",ee=f?.path&&"video"!==f.mediaType?iZ(f.path)??null:null;return(0,lh.jsx)(u4.Provider,{value:q,children:(0,lh.jsxs)("div",{ref:Y,className:V?"v3-shop-browse-frame relative min-h-dvh min-[572px]:min-h-0":"relative",style:{"--surface-text":t,"--surface-bg":r,"--surface-radius":n,"--surface-button":K.background,"--surface-button-ink":K.text,"--chrome-ink":i8(r),...V?{backgroundColor:r}:{}},children:[V?(0,lh.jsx)("div",{ref:X,className:"pointer-events-none absolute top-0 left-0 h-px w-px","aria-hidden":!0}):null,e?(0,lh.jsx)(u7,{visible:y,showBack:V,cartOpen:$,searchOpen:k,onSearch:s?()=>{w(!1),C(e=>!e)}:void 0,scrub:x,scrollAnchorRef:Y,scrolled:J,pin:c??(x?"sticky":"fixed"),frameTopRadius:u,textColor:t,backgroundColor:r,profileName:Q,profileImageUrl:ee,onBack:$?()=>w(!1):k?()=>C(!1):()=>A.current?.(),onHome:()=>D({kind:"home"}),showActions:s,onClick:s&&(i||j.length>0)?()=>w(!$):void 0,cartCount:j.reduce((e,t)=>e+t.quantity,0),iconInk:l&&l_(l)?l:null}):null,g]})})}function u9({kind:e,label:t,onClick:r,interactive:n,iconInk:o,badge:l}){let i=o??"var(--chrome-ink)";return(0,lh.jsxs)("button",{type:"button","aria-label":t,tabIndex:n?0:-1,onClick:r,className:"relative flex size-10 shrink-0 items-center justify-center border motion-reduce:!transition-none",style:{color:i,backgroundColor:"color-mix(in srgb, var(--surface-bg) 48%, transparent)",backdropFilter:"blur(16px)",WebkitBackdropFilter:"blur(16px)",borderColor:`color-mix(in srgb, ${i} 22%, transparent)`,borderRadius:"var(--surface-radius, 16px)",pointerEvents:n?"auto":"none"},children:[function(e){switch(e){case"close":return(0,lh.jsx)(lL,{className:"size-5","aria-hidden":!0});case"back":return(0,lh.jsx)(lI,{className:"size-5","aria-hidden":!0});case"search":return(0,lh.jsx)(lE,{className:"size-5","aria-hidden":!0});case"cart":return(0,lh.jsx)(lT,{className:"size-5","aria-hidden":!0})}}(e),l]})}function u6({name:e,imageUrl:t,onHome:r,interactive:n}){let o=(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsx)("div",{className:"size-9 shrink-0 overflow-hidden rounded-full",style:{backgroundColor:"color-mix(in srgb, var(--surface-text) 8%, var(--surface-bg))"},children:(0,lh.jsx)("img",{src:t??X,alt:"",className:"size-full object-cover"})}),e?(0,lh.jsx)("span",{className:"truncate text-sm font-semibold",style:{color:"var(--chrome-ink)"},children:e}):null]}),l="flex min-w-0 max-w-full items-center gap-2 text-left";return r?(0,lh.jsx)("button",{type:"button","aria-label":e?`${e} shop home`:"Shop home",tabIndex:n?0:-1,onClick:r,className:`${l} rounded-full`,style:{pointerEvents:n?"auto":"none"},children:o}):(0,lh.jsx)("div",{className:l,children:o})}function u7({visible:e,showBack:t,cartOpen:r,searchOpen:n,onSearch:o,showActions:l,scrub:i,scrollAnchorRef:a,scrolled:s,pin:d,frameTopRadius:c,textColor:u,backgroundColor:m,profileName:f,profileImageUrl:p,onBack:h,onHome:b,onClick:g,cartCount:x,iconInk:y}){var v;let $,w=t||r||n,k=e&&(w||i),[C,j]=(0,lx.useState)(!1),N=(0,lx.useRef)(null),S=(0,lx.useRef)(null),{anch
16orRef:P,rect:I}=function(e){let t=(0,lx.useRef)(null),[r,n]=(0,lx.useState)(null);return(0,lx.useLayoutEffect)(()=>{if(!e)return void n(null);let r=t.current;if(!r)return;let o=u2(r),l=()=>{let e=r.getBoundingClientRect(),t=0;if(o){let e=o.getBoundingClientRect(),r=parseFloat(getComputedStyle(o).scrollPaddingTop)||0;t=e.top+r}n({top:Math.max(e.top,t),left:e.left,width:e.width,zoom:ry(r),clamped:e.top<t})};l();let i={passive:!0};o?.addEventListener("scroll",l,i),window.addEventListener("scroll",l,i),window.addEventListener("resize",l);let a=new ResizeObserver(l);return a.observe(r),o&&a.observe(o),()=>{o?.removeEventListener("scroll",l),window.removeEventListener("scroll",l),window.removeEventListener("resize",l),a.disconnect()}},[e]),{anchorRef:t,rect:r}}("fixed"===d),E=i8(m),T=y??E,L=(0,lx.useCallback)(e=>{j(e)},[]);v=!!(k&&i&&!w&&("sticky"===d||null!=I)),$=(0,lx.useRef)(!1),(0,lx.useLayoutEffect)(()=>{if(!v){$.current=!1,L(!1);let e=N.current,t=S.current;e&&(e.style.transform="translateY(-100%)"),t&&(t.style.pointerEvents="none");return}let e=a.current,t=e?u2(e):null,r=0,n=()=>{var e;let n;r=0;let o=(e=t&&"scrollTop"in t?t.scrollTop:window.scrollY,n=Math.min(1,Math.max(0,(e-24*(window.innerWidth>=572))/120)),window.matchMedia("(prefers-reduced-motion: reduce)").matches?+(n>=.5):n),l=N.current,i=S.current;l&&(l.style.transform=`translateY(${-((1-o)*100)}%)`),i&&(i.style.pointerEvents=o>0?"auto":"none");let a=o>=1;a!==$.current&&($.current=a,L(a))},o=()=>{r||=window.requestAnimationFrame(n)};n();let l={passive:!0};return t?.addEventListener("scroll",o,l),window.addEventListener("scroll",o,l),window.addEventListener("resize",o),()=>{r&&window.cancelAnimationFrame(r),t?.removeEventListener("scroll",o),window.removeEventListener("scroll",o),window.removeEventListener("resize",o)}},[v,L,a,S,N]),(0,lx.useLayoutEffect)(()=>{if(!k||!w)return;let e=N.current,t=S.current;e&&(e.style.transform="translateY(0)"),t&&(t.style.pointerEvents="auto"),j(!0)},[w,k]);let R=l&&o?(0,lh.jsx)(u9,{kind:"search",label:n?"Close search":"Search products",onClick:o,interactive:e,iconInk:y}):null,M=l?(0,lh.jsx)(u9,{kind:r?"close":"cart",label:r?"Close cart":"Cart",onClick:g,interactive:!!(g&&e),iconInk:y,badge:!r&&x>0?(0,lh.jsx)("span",{className:"absolute -right-1.5 -top-1.5 flex h-5 min-w-5 items-center justify-center rounded-full px-1.5 text-xs font-semibold",style:{backgroundColor:T,color:i8(T)},children:x>99?"99+":x}):null}):null,A="p-5 pt-[max(1.25rem,env(safe-area-inset-top))]",_=(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsxs)("div",{className:`pointer-events-none relative z-20 flex justify-end gap-2 motion-reduce:!transition-none ${A}`,style:{opacity:+!!e,transition:`opacity 300ms ${ly}`},children:[R,M]}),k?(0,lh.jsx)("div",{ref:S,className:"absolute inset-x-0 top-0 z-10 overflow-hidden",style:{pointerEvents:"none"},children:(0,lh.jsx)("div",{ref:N,className:"v3-shop-browse-bar",style:{...w?{transform:"translateY(0)"}:{},backgroundColor:"color-mix(in srgb, var(--surface-bg) 78%, transparent)",backdropFilter:"blur(16px)",WebkitBackdropFilter:"blur(16px)",borderBottom:s||C?"1px solid color-mix(in srgb, var(--chrome-ink) 18%, transparent)":"1px solid transparent"},children:(0,lh.jsxs)("div",{className:`flex items-center gap-3 ${A}`,children:[t?(0,lh.jsx)(u9,{kind:"back",label:"Back",onClick:h,interactive:e,iconInk:y}):null,(0,lh.jsx)("div",{className:"flex min-w-0 flex-1 justify-start",children:(0,lh.jsx)(u6,{name:f,imageUrl:p,onHome:b,interactive:e})}),(0,lh.jsxs)("div",{className:"flex shrink-0 justify-end gap-2","aria-hidden":!0,children:[R?(0,lh.jsx)("div",{className:"size-10 shrink-0"}):null,M?(0,lh.jsx)("div",{className:"size-10 shrink-0"}):null]})]})})}):null]});return"fixed"===d?(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsx)("div",{ref:P,className:"h-0 w-full","aria-hidden":!0}),I?(0,lk.createPortal)((0,lh.jsx)("div",{className:"pointer-events-none overflow-visible",style:{position:"fixed",top:I.top/I.zoom,left:I.left/I.zoom,width:I.width/I.zoom,zoom:I.zoom,zIndex:30,"--surface-text":u,"--surface-bg":m,"--chrome-ink":E,...I.clamped?{"--page-top-radius":"0px"}:c?{"--page-top-radius":c}:{}},"aria-hidden":!e,children:_}),document.body):null]}):(0,lh.jsx)("div",{className:"pointer-events-none sticky top-0 z-50 h-0 overflow-visible",style:{"--surface-text":u,"--surface-bg":m,"--chrome-ink":E},"aria-hidden":!e,children:_})}let me=lP("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),mt=lP("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);function mr(...e){return iG(lU(e))}function mn({icon:e,title:t,description:r,children:n}){return(0,lh.jsxs)("div",{className:"flex flex-col items-center px-4 py-8 text-center",style:{color:"var(--surface-text)"},children:[(0,lh.jsx)("div",{className:"flex size-16 items-center justify-center border",style:{borderRadius:"var(--surface-radius, 16px)",borderColor:"color-mix(in srgb, var(--surface-text) 14%, transparent)",backgroundColor:"color-mix(in srgb, var(--surface-text) 6%, var(--surface-bg))"},children:(0,lh.jsx)(e,{className:"size-7 opacity-60","aria-hidden":!0})}),(0,lh.jsx)("p",{className:"mt-5 text-base font-medium",children:t}),(0,lh.jsx)("p",{className:"mt-1.5 max-w-[16rem] text-sm leading-relaxed",style:{color:"color-mix(in srgb, var(--surface-text) 55%, transparent)"},children:r}),n]})}let mo="color-mix(in srgb, var(--surface-text) 55%, transparent)",ml="color-mix(in srgb, var(--surface-text) 14%, transparent)",mi="color-mix(in srgb, var(--surface-text) 5%, var(--surface-bg))",ma={backgroundColor:"var(--surface-button)",color:"var(--surface-button-ink)",borderRadius:"var(--surface-radius)"},ms={border:`1px solid ${ml}`,color:"var(--surface-text)",borderRadius:"var(--surface-radius)"};function md({onClick:e,style:t,className:r}){return(0,lh.jsxs)("button",{type:"button",onClick:e,className:mr("relative flex min-h-12 w-full items-center justify-center px-4 text-sm font-semibold",r),style:t,children:[(0,lh.jsx)(lI,{className:"absolute left-4 size-4","aria-hidden":!0}),"Back to Shop"]})}function mc({onContinue:e}){let t=u5(),r=t?.items??[],n=function(e,t){let r=e.filter(e=>e.asin?.trim()),n=[];for(let o of(r.length>0&&n.push({key:"amazon",lines:r,merchant:"Amazon",checkoutUrl:function(e,t){let r=new URLSearchParams,n=1;for(let t of e){let e=t.asin?.trim().toUpperCase();e&&(r.set(`ASIN.${n}`,e),r.set(`Quantity.${n}`,String(Math.max(1,t.quantity))),n+=1)}if(1===n)return null;let o=t?.trim();return o&&r.set("AssociateTag",o),`https://www.amazon.com/gp/aws/cart/add.html?${r.toString()}`}(r,t),amazon:!0}),e)){if(o.asin?.trim())continue;let e=o.url?.trim()||null;n.push({key:o.id,lines:[o],merchant:function(e){let t=e.platform?.trim();if(t){let e=nQ(t);if(e&&"Link"!==e)return e}let r=e.url?.trim();if(r){let e=function(e){let t;try{t=new URL(e).hostname}catch{return null}
16let r=t.replace(/^www\./i,"").split(".").filter(Boolean);if(0===r.length)return null;r.length>1&&r.pop(),r.length>1&&uW.has(r[r.length-1].toLowerCase())&&r.pop();let n=r[r.length-1]?.trim();return n?n.toUpperCase():null}(r);if(e)return e}return t||null}(o),checkoutUrl:e,amazon:!1})}return n}(r,t?.affiliateTag),o=t?.removedItems??[];return 0===r.length?(0,lh.jsxs)("div",{className:"px-4 pb-8 pt-4 text-center",style:{color:"var(--surface-text)"},children:[(0,lh.jsx)("h1",{className:"text-2xl font-bold tracking-tight",children:"Cart"}),(0,lh.jsx)(mu,{lines:o}),(0,lh.jsx)(mn,{icon:lT,title:"Your cart is empty",description:"Add something from the shop and it will show up here.",children:(0,lh.jsx)(md,{onClick:e,className:"mt-8",style:ma})})]}):(0,lh.jsxs)("section",{className:"px-4 pb-8 pt-4",style:{color:"var(--surface-text)"},children:[(0,lh.jsx)("h1",{className:"mb-4 text-2xl font-bold tracking-tight",children:"Cart"}),(0,lh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,lh.jsx)(mu,{lines:o}),n.map(e=>(0,lh.jsx)(mp,{group:e},e.key)),(0,lh.jsx)(md,{onClick:e,style:ms})]})]})}function mu({lines:e}){if(0===e.length)return null;let t=e.map(e=>e.title).join(", ");return(0,lh.jsxs)("p",{role:"status",className:"rounded-xl px-3 py-2 text-left text-sm",style:{backgroundColor:mi,color:mo},children:["No longer available, so removed from your cart: ",t,"."]})}function mm({label:e,lines:t,subdued:r}){let n=t.reduce((e,t)=>e+t.quantity,0),o=function(e){let t=0,r=!1;for(let n of e){let e=uU(n.price);null!=e&&(r=!0,t+=e*n.quantity)}return r?t:null}(t);return(0,lh.jsxs)("div",{className:`flex items-center justify-between ${r?"text-sm":"text-base"}`,children:[(0,lh.jsxs)("span",{style:{color:mo},children:[e,n>0?(0,lh.jsxs)("span",{className:"ml-1",children:["(",n," item",1===n?"":"s",")"]}):null]}),(0,lh.jsx)("span",{className:"font-semibold tabular-nums",children:null!=o?uH(o):"—"})]})}function mf(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function mp({group:e}){let t=u5(),[r,n]=(0,lx.useState)(!1),o=e.merchant?e.merchant.toLowerCase().replace(/(^|[-_])(\p{L})/gu,(e,t,r)=>t?`${t}${r.toUpperCase()}`:r.toUpperCase()):"Store",l=1===e.lines.length?e.lines[0]?.id??null:null,i=()=>{l&&t?.setQuantity(l,0)},a=()=>{mf()?i():n(!0)};return(0,lx.useEffect)(()=>{if(!r)return;let e=window.setTimeout(i,280);return()=>window.clearTimeout(e)},[r]),(0,lh.jsx)("div",{className:"grid transition-[grid-template-rows,opacity,transform] ease-out",style:{gridTemplateRows:r?"0fr":"1fr",opacity:+!r,transform:r?"translateY(-12px)":"translateY(0)",transitionDuration:"280ms"},children:(0,lh.jsx)("div",{className:"min-h-0 overflow-hidden",children:(0,lh.jsxs)("div",{className:"overflow-hidden border",style:{borderColor:ml,backgroundColor:mi,borderRadius:"var(--surface-radius)"},children:[(0,lh.jsx)("div",{className:"border-b px-4 py-3",style:{borderColor:ml},children:(0,lh.jsx)("h2",{className:"min-w-0 truncate text-sm font-semibold tracking-tight",children:o})}),(0,lh.jsx)("ul",{className:"px-4",children:e.lines.map((t,r)=>(0,lh.jsx)(mh,{item:t,divider:r<e.lines.length-1,collapseSection:l===t.id?a:void 0},t.id))}),(0,lh.jsxs)("div",{className:"space-y-3 border-t px-4 py-4",style:{borderColor:ml},children:[(0,lh.jsx)(mm,{label:"Subtotal",lines:e.lines,subdued:!0}),e.checkoutUrl?(0,lh.jsx)("a",{href:e.checkoutUrl,onClick:()=>t?.checkout(e.lines),onAuxClick:r=>{1===r.button&&t?.checkout(e.lines)},target:"_blank",rel:"noopener noreferrer",className:"flex min-h-12 w-full items-center justify-center gap-2 px-4 text-sm font-semibold",style:ma,children:e.amazon?(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsx)("span",{"aria-hidden":!0,className:"size-[18px] shrink-0 bg-current",style:{maskImage:"url(/dashboard-assets/amazon.png)",maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center"}}),"Checkout on Amazon"]}):e.merchant?`Checkout on ${o}`:"Checkout"}):null]})]})})})}function mh({item:e,divider:t,collapseSection:r}){let n=u5(),[o,l]=(0,lx.useState)(!1),i=uU(e.price),a=o?0:e.quantity,s=null==i?null:i*Math.max(a,0),d=e.productKey,c=d?()=>n?.openProduct(d):null,u=()=>n?.setQuantity(e.id,0);return(0,lx.useEffect)(()=>
16{if(!o)return;let e=window.setTimeout(u,280);return()=>window.clearTimeout(e)},[o]),(0,lh.jsx)("li",{className:"grid transition-[grid-template-rows,opacity,transform] ease-out",style:{gridTemplateRows:o?"0fr":"1fr",opacity:+!o,transform:o?"translateY(-12px)":"translateY(0)",transitionDuration:"280ms"},onTransitionEnd:e=>{o&&("opacity"===e.propertyName||"grid-template-rows"===e.propertyName)&&u()},children:(0,lh.jsx)("div",{className:"min-h-0 overflow-hidden",children:(0,lh.jsxs)("div",{className:`flex gap-4 py-5${t?" border-b":""}`,style:t?{borderColor:ml}:void 0,children:[(0,lh.jsx)(mb,{onClick:c,label:e.title,children:(0,lh.jsx)("div",{className:"size-24 shrink-0 overflow-hidden rounded-xl p-1.5 sm:size-28",style:{backgroundColor:"#ffffff"},children:e.imageUrl?(0,lh.jsx)("img",{src:e.imageUrl,alt:e.title,className:"size-full object-contain"}):null})}),(0,lh.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,lh.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,lh.jsx)(mb,{onClick:c,label:e.title,children:(0,lh.jsx)("p",{className:"line-clamp-2 text-left text-sm font-medium sm:text-base",children:e.title})}),(0,lh.jsx)("p",{className:"shrink-0 text-sm font-semibold tabular-nums sm:text-base",children:null!=s?uH(s):e.price||"—"})]}),e.price&&a>1?(0,lh.jsxs)("p",{className:"mt-1 text-xs",style:{color:mo},children:[e.price," each"]}):null,(0,lh.jsx)("div",{className:"mt-auto flex items-center pt-3",children:(0,lh.jsxs)("div",{className:"flex items-center gap-1",children:[(0,lh.jsx)(mg,{label:"Decrease quantity",onClick:()=>{e.quantity>1?n?.setQuantity(e.id,e.quantity-1):r?r():mf()?u():l(!0)},children:(0,lh.jsx)(me,{className:"size-3.5"})}),(0,lh.jsx)("span",{className:"w-8 text-center text-sm tabular-nums",children:a}),(0,lh.jsx)(mg,{label:"Increase quantity",onClick:()=>n?.setQuantity(e.id,e.quantity+1),children:(0,lh.jsx)(mt,{className:"size-3.5"})})]})})]})]})})})}function mb({onClick:e,label:t,children:r}){return e?(0,lh.jsx)("button",{type:"button",onClick:e,"aria-label":`View ${t}`,className:"min-w-0 text-left",children:r}):(0,lh.jsx)(lh.Fragment,{children:r})}function mg({label:e,onClick:t,children:r}){return(0,lh.jsx)("button",{type:"button","aria-label":e,onClick:t,className:"flex size-8 items-center justify-center rounded-lg border",style:{borderColor:"color-mix(in srgb, var(--surface-text) 22%, transparent)"},children:r})}function mx(e,t){if("collection_click"===e.eventName)return!e.collectionId||e.items.length?null:{eventName:e.eventName,collectionId:e.collectionId,items:[]};if(!e.items.length||e.items.length>300)return null;let r=e.items.map(e=>({productId:e.productClickhouseId||t(e)||"0",variantAsin:e.asin?.trim().toUpperCase()||"",quantity:e.quantity}));return"checkout_start"!==e.eventName&&r.some(e=>"0"===e.productId)?null:{eventName:e.eventName,items:r}}e.s(["shopAnalyticsPayload",()=>mx],74798);let my=lP("package-open",[["path",{d:"M12 22v-9",key:"x3hkom"}],["path",{d:"M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z",key:"2ntwy6"}],["path",{d:"M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13",key:"1pmm1c"}],["path",{d:"M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z",key:"12ttoo"}]]),mv=lP("search-x",[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);function m$(e){if(!e.amazon)return e;let t=function(e){let t=e.variants.filter(e=>e.available);if(0===t.length)return null;if(t.length===e.variants.length)return e;let r={...e,variants:t,dimensions:function(e){let t=[],r=new Map;for(let n of e)for(let[e,o]of Object.entries(n.options)){let l=o?.trim();if(!l)continue;r.has(e)||(t.push(e),r.set(e,new Map));let i=r.get(e);if(!i)continue;let a=/^(color|colour)$/i.test(e)&&n.image?.path?n.image.path:void 0,s=i.get(l);i.has(l)&&(s||!a)||i.set(l,a)}return t.map(e=>({key:e,values:[...r.get(e)?.entries()??[]].map(([e,t])=>({value:e,...t?{photo:t}:{}}))}
16))}(t)};if(t.some(t=>t.asin===e.asin))return r;let n=t[0];return{...r,asin:n.asin,price:n.price||e.price,url:n.url||e.url,...n.image?{image:n.image}:{}}}(e.amazon);return t?t===e.amazon?e:{...e,amazon:t}:null}let mw=lP("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),mk=lP("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),mC=lP("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);function mj(e){if(e.image?.path){let t=iZ(e.image.path);if(t)return{url:t,crop:e.image.crop??null,fitClass:"object-cover"}}for(let t of e.items){let e=u_(t);if(e)return{url:e,crop:null,fitClass:uO(t)}}return null}function mN({url:e,crop:t,fitClass:r}){return(0,lh.jsx)("img",{src:e,alt:"",className:`absolute inset-0 size-full ${r}`,style:t?nl(t):void 0})}function mS(e,t){let r;return!1===e.shopShowBrand?null:(r=t.brand?.trim())||t.amazon?.brand?.trim()||null}function mP(e,t){return!1===e.shopShowPrice?null:uM(t)}function mI(e){return e.titleTextColor??e.textColor??"#111111"}function mE(e){return e.textColor??"#111111"}function mT(e){return e.blockBackgroundColor??e.backgroundColor??"#ffffff"}function mL(e,t="20px"){return e.borderRadius??t}function mR(e){return uz(e.borderRadius??"16px")}function mM(e){return y({collectionTitleCase:e.shopCollectionTitleCase})}function mA(e,t){return v(t||"Untitled",mM(e))}let m_="text-base font-semibold leading-snug tracking-normal",mO="text-2xl font-semibold leading-snug tracking-normal",mz="text-sm font-semibold leading-snug";function mF({collections:e,theme:t,onOpenCollection:r,onPickCollection:n,onProductClick:o,onEditProduct:l,onBuy:i}){let a=p({shopLayout:t.shopLayout}),s=h({shopLayout:t.shopLayout,collectionTabs:t.shopCollectionTabs}),[d,c]=(0,lx.useState)(null),u=(0,lx.useMemo)(()=>(function(e){let t=new Set,r=[];for(let n of e)for(let e of n.items)t.has(e.id)||(t.add(e.id),r.push(e));return r})(e),[e]),m=d?e.filter(e=>e.id===d):e,f=e.find(e=>e.id===d),b=t=>{if(c(t),!t||!n)return;let r=e.find(e=>e.id===t);r&&n(r)};return 0===e.length?null:(0,lh.jsxs)("div",{className:"flex flex-col gap-4",children:["underline"===s?(0,lh.jsx)(mU,{collections:e,allCount:u.length,selectedId:d,theme:t,onSelect:b}):"pills"===s?(0,lh.jsx)(mD,{collections:e,allCount:u.length,selectedId:d,theme:t,onSelect:b}):null,f?(0,lh.jsx)(m3,{products:f.items,theme:t,onProductClick:o,onBuy:i}):"aisles"===a?(0,lh.jsx)(mH,{collections:m,theme:t,onOpenCollection:r,onProductClick:o,onBuy:i}):"covers"===a?(0,lh.jsx)(mW,{collections:m,theme:t,onOpenCollection:r}):"looks"===a?(0,lh.jsx)(m6,{collections:m,theme:t,onOpenCollection:r,onProductClick:o,onBuy:i}):"tiles"===a?(0,lh.jsx)(mK,{collections:e,theme:t,onOpenCollection:r}):"window"===a?(0,lh.jsx)(mG,{collections:m,theme:t,onOpenCollection:r}):"grid"===a?(0,lh.jsx)(mV,{collections:m,theme:t,onOpenCollection:r,onProductClick:o,onBuy:i}):"editorial"===a?(0,lh.jsx)(m1,{collections:m,theme:t,onOpenCollection:r,onEditProduct:l}):"list"===a?(0,lh.jsx)(mQ,{collections:m,theme:t,onOpenCollection:r,onProductClick:o,onBuy:i}):null]})}function mD({collections:e,allCount:t,selectedId:r,theme:n,onSelect:o}){let l=mI(n);return(0,lh.jsxs)("div",{className:"-mx-1 flex gap-2 overflow-x-auto px-1 pb-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[(0,lh.jsx)(mB,{label:`${v("All",mM(n))} ${t}`,active:null==r,theme:n,onClick:()=>o(null)}),e.map(e=>(0,lh.jsx)(mB,{label:mA(n,e.title),active:r===e.id,theme:n,onClick:()=>o(e.id),color:l},e.id))]})}function mB({label:e,active:t,theme:r,onClick:n}){let o=mI(r);return(0,lh.jsx)("button",{type:"button",onClick:n,className:"shrink-0 px-3.5 py-2 text-xs font-semibold tracking-wide",style:{borderRadius:mL(r,"16px"),backgroundColor:t?o:`color-mix(in srgb, ${o} 10%, transparent)`,color:t?mT(r):o},children:e})}function mU({collections:e,allCount:t,selectedId:r,theme:n,onSelect:o}){let l=mI(n),i=[{id:null,label:`${v("All",mM(n))} ${t}`},...e.map(e=>({id:e.id,label:`${mA(n,e.title)} ${e.items.length}`}))];return(0,lh.jsx)("div",{className:"-mx-1 flex gap-6 overflow-x-auto border-b px-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:{borderColor:`color-mix(in srgb, ${l} 14%, transparent)`},children:i.map(e=>{let t=e.id===r;return(0,lh.jsx)("button",{type:"button",onClick:()=>o(e.id),className:"shrink-0 pb-2.5 text-[12px] font-semibold tracking-wide",style:{color:t?l:`color-mix(in srgb, ${l} 45%, transparent)`,boxShadow:t?`inset 0 -2px 0 ${l}`:void 0},children:e.label},e.id??"all")})})}function mH({collections:e,theme:t,onOpenCollection:r,onProductClick:n,onBuy:o}){let l=mI(t);return(0,lh.jsx)("div",{className:"flex flex-col gap-4",children:e.map(e=>(0,lh.jsxs)(mZ,{theme:t,onClick:()=>r(e),children:[(0,lh.jsxs)("div",{className:"mb-4 flex items-center justify-between gap-4",children:[(0,lh.jsx)("button",{type:"button",onClick:()=>r(e),className:mr("min-w-0 truncate text-left",m_),style:{color:l},children:mA(t,e.title)}),e.items.length>0?(0,lh.jsxs)("button",{type:"button",onClick:()=>r(e),className:"flex shrink-0 items-center gap-0.5 text-[11px] font-medium",style:{color:l},children:["Shop All",(0,lh.jsx)(mw,{className:"size-3.5"})]}):null]}),(0,lh.jsx)(m7,{products:e.items,theme:t,onProductClick:n??(()=>r(e)),onBuy:o})]},e.id))})}function mW({collections:e,theme:t,onOpenCollection:r}){return(0,lh.jsx)("div",{className:"flex flex-col gap-4",children:e.map(e=>{var n;let o=mj(e);return(0,lh.jsxs)("button",{type:"button",onClick:()=>r(e),className:"relative min-h-[200px] overflow-hidden text-left",style:{borderRadius:mL(t,"24px")},children:[o?(0,lh.jsx)(mN,{...o}):(0,lh.jsx)("div",{className:"absolute inset-0",style:{backgroundColor:mI(t)}}),(0,lh.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/75 via-black/20 to-transparent"}),(0,lh.jsxs)("div",{className:"relative flex min-h-[200px] items-end justify-between gap-3 px-5 pb-5 pt-16",children:[(0,lh.jsxs)("div",{className:"text-white",children:[(0,lh.jsx)("p",{className:m_,children:mA(t,e.title)}),(0,lh.jsx)("p",{className:"mt-0.5 text-sm text-white/80",children:(n=e.items.length,`${n} Product${1===n?"":"s"}`)})]}),(0,lh.jsxs)("span",{className:"inline-flex shrink-0 items-center gap-1 bg-white px-3.5 py-1.5 text-sm font-semibold text-black",style:{borderRadius:mR(t)},children:["Shop",(0,lh.jsx)(mw,{className:"size-3.5"})]})]})]},e.id)})})}function mG({collections:e,theme:t,onOpenCollection:r}){return(0,lh.jsx)("div",{className:"grid grid-cols-2 gap-4",children:e.map(e=>(0,lh.jsx)(mq,{collection:e,theme:t,onOpenCollection:r},e.id))})}function mq({collection:e,theme:t,onOpenCollection:r}){let n=mj(e),o=mA(t,e.title);return(0,lh.jsxs)("button",{type:"button",onClick:()=>r(e),className:"relative h-[256px] w-full overflow-hidden text-left",style:{borderRadius:mL(t,"20p
16x"),backgroundColor:mI(t)},children:[n?(0,lh.jsx)(mN,{...n}):(0,lh.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-2 text-center",children:[(0,lh.jsx)(mk,{className:"size-6 text-white/45"}),(0,lh.jsx)("p",{className:"px-3 text-[11px] leading-snug text-white/55",children:"Add a collection photo"})]}),(0,lh.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/25 to-transparent"}),(0,lh.jsx)("p",{className:"absolute inset-x-0 bottom-0 line-clamp-2 p-3 text-[15px] font-semibold leading-snug text-white",children:o})]})}function mV({collections:e,theme:t,onOpenCollection:r,onProductClick:n,onBuy:o}){let l=mI(t);return(0,lh.jsx)("div",{className:"flex flex-col gap-4",children:e.map(e=>(0,lh.jsxs)(mZ,{theme:t,onClick:()=>r(e),children:[(0,lh.jsxs)("div",{className:"mb-4 flex items-center justify-between gap-4",children:[(0,lh.jsx)("button",{type:"button",onClick:()=>r(e),className:mr("min-w-0 truncate text-left",m_),style:{color:l},children:mA(t,e.title)}),e.items.length>4?(0,lh.jsxs)("button",{type:"button",onClick:()=>r(e),className:"flex shrink-0 items-center gap-0.5 text-[11px] font-medium",style:{color:l},children:["Shop All",(0,lh.jsx)(mw,{className:"size-3.5"})]}):null]}),(0,lh.jsx)(m9,{products:e.items.slice(0,4),theme:t,onProductClick:n??(()=>r(e)),onBuy:o})]},e.id))})}function mK({collections:e,theme:t,onOpenCollection:r}){let n=(0,lx.useMemo)(()=>{var r;return(r=e.reduce((e,r)=>{let n=mA(t,r.title).length;return n>e?n:e},0))<=18?14:r>=32?10:14-(r-18)/14*4},[e,t]);return(0,lh.jsx)("div",{className:"grid grid-cols-2 gap-px overflow-hidden",style:{backgroundColor:`color-mix(in srgb, ${mI(t)} 12%, transparent)`,borderRadius:mL(t,"20px")},children:e.map(e=>(0,lh.jsx)(m2,{collection:e,theme:t,titleFontSize:n,onOpenCollection:r},e.id))})}function mY(e){let t=mI(e);return{borderWidth:1,borderStyle:"solid",borderColor:`color-mix(in srgb, ${t} 28%, transparent)`,color:t}}function mZ({theme:e,children:t,className:r,onClick:n}){let o;return(0,lh.jsx)("div",{className:mr("overflow-hidden p-4",n&&"cursor-pointer",r),style:(o=mI(e),{backgroundColor:`color-mix(in srgb, ${o} 5%, ${mT(e)})`,borderWidth:1,borderStyle:"solid",borderColor:`color-mix(in srgb, ${o} 14%, transparent)`,borderRadius:mL(e,"16px")}),onClick:e=>{let t=e.target.closest('button, a, [role="button"]');t&&e.currentTarget.contains(t)||n?.()},children:t})}function mX({theme:e,onClick:t}){return(0,lh.jsxs)("button",{type:"button",onClick:t,className:"relative flex w-full items-center justify-center py-3 text-sm font-semibold",style:{...mY(e),borderRadius:e.borderRadius??"16px"},children:[(0,lh.jsx)(lI,{className:"absolute left-4 size-4","aria-hidden":!0}),"Back to Shop"]})}function mJ({collection:e,theme:t,onOpenCollection:r}){return 0===e.items.length?null:(0,lh.jsxs)("button",{type:"button",onClick:t=>{t.stopPropagation(),r(e)},className:"inline-flex items-center gap-0.5 px-5 py-2 text-sm font-medium",style:{...mY(t),borderRadius:mR(t)},children:["Shop All",(0,lh.jsx)(mw,{className:"size-4"})]})}function mQ({collections:e,theme:t,onOpenCollection:r,onProductClick:n,onBuy:o}){let l=mI(t);return(0,lh.jsx)("div",{className:"flex flex-col gap-4",children:e.map(e=>(0,lh.jsxs)(mZ,{theme:t,className:"flex flex-col gap-4",onClick:()=>r(e),children:[(0,lh.jsx)("h3",{className:m_,style:{color:l},children:mA(t,e.title)}),e.items.length>0?(0,lh.jsx)(m4,{products:e.items.slice(0,3),theme:t,onProductClick:n,onBuy:o}):null,(0,lh.jsx)("div",{className:"flex justify-center",children:(0,lh.jsx)(mJ,{collection:e,theme:t,onOpenCollection:r})})]},e.id))})}function m0({onEdit:e}){return(0,lh.jsx)("button",{type:"button","aria-label":"Edit product",onPointerDown:t=>{0===t.button&&(t.preventDefault(),t.stopPropagation(),e())},onClick:e=>{e.preventDefault(),e.stopPropagation()},className:"absolute inset-0 z-20 flex items-center justify-center bg-black/40 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100 [@media(hover:none)]:opacity-100",children:(0,lh.jsx)("span",{className:"flex size-9 items-center justify-center rounded-full bg-white text-black shadow-md",children:(0,lh.jsx)(mC,{className:"size-4",strokeWidth:2.2})})})}function m1({collections:e,theme:t,onOpenCollection:r,onEditProduct:n}){let o=mI(t);return(0,lh.jsx)("div",{className:"flex flex-col gap-4",children:e.map(e=>(0,lh.jsxs)(mZ,{theme:t,className:"flex w-full flex-col items-center gap-4",onClick:()=>r(e),children:[(0,lh.jsx)("h3",{className:mr("text-center",mO),style:{color:o},children:mA(t,e.title)}),e.items.length>0?(0,lh.jsx)("div",{className:"@container w-full min-w-0",children:(0,lh.jsx)("div",{className:"flex snap-x snap-mandatory gap-4 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:e.items.map(e=>{let r=u_(e);return(0,lh.jsxs)("div",{className:"group relative aspect-square w-full shrink-0 snap-start overflow-hidden bg-white @min-[220px]:w-[calc((100%-1rem)/2)] @min-[320px]:w-[calc((100%-2rem)/3)]",style:{borderRadius:mL(t,"16px")},children:[r?(0,lh.jsx)("img",{src:r,alt:"",className:`size-full ${uO(e)}`}):null,n?(0,lh.jsx)(m0,{onEdit:()=>n(e)}):null]},e.id)})})}):null,(0,lh.jsx)(mJ,{collection:e,theme:t,onOpenCollection:r})]},e.id))})}function m2({collection:e,theme:t,onOpenCollection:r,featured:n,titleFontSize:o=14}){let l=mj(e),i=mA(t,e.title);return(0,lh.jsxs)("button",{type:"button",onClick:()=>r(e),className:mr("relative overflow-hidden text-left",n?"aspect-[4/3] w-full":"aspect-square"),style:{backgroundColor:mT(t)},children:[l?(0,lh.jsx)(mN,{...l}):(0,lh.jsxs)("div",{className:"absolute inset-3 flex flex-col items-center justify-center gap-2 rounded-md border border-dashed border-black/20 text-center",children:[(0,lh.jsx)(mk,{className:"size-6 opacity-35",style:{color:mE(t)}}),(0,lh.jsx)("p",{className:"px-3 text-[11px] leading-snug opacity-45",style:{color:mE(t)},children:"Add a collection photo"})]}),(0,lh.jsx)("span",{className:"absolute inset-x-0 bottom-3 flex justify-center px-3",children:(0,lh.jsx)("span",{className:"max-w-full truncate whitespace-nowrap rounded-md bg-white px-3 py-1.5 text-center font-semibold leading-snug text-black shadow-sm",style:{fontSize:o},children:i})})]})}function m3({products:e,theme:t,onProductClick:r,onBuy:n}){let o=b({collectionView:t.shopCollectionView});return(0,lh.jsx)("div",{children:"list"===o?(0,lh.jsx)(m4,{products:e,theme:t,onProductClick:r,onBuy:n}):(0,lh.jsx)(m9,{products:e,theme:t,onProductClick:r,onBuy:n})})}function m4({products:e,theme:t,onProductClick:r,onBuy:n}){return 0===e.length?null:(0,lh.jsx)("div",{className:"flex flex-col gap-4",children:e.map(e=>(0,lh.jsx)(m8,{product:e,theme:t,onProductClick:r,onBuy:n},e.id))})}function m5({onClick:e,className:t,style:r,children:n}){return e?(0,lh.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),e()},className:t,style:r,children:n}):(0,lh.jsx)("div",{className:t,style:r,children:n})}function m8({product:e,theme:t,onProductClick:r,onBuy:n}){let o=mI(t),l=uA(e)||"Untitled",i=mS(t,e),a=mP(t,e),s=u_(e),d=$({buttonStyle:t.shopButtonStyle});return(0,lh.jsxs)("div",{className:"flex items-center gap-4",children:[(0,lh.jsxs)(m5,{onClick:r?()=>r(e):void 0,className:"relative size-40 shrink-0 overflow-hidden",style:{borderRadius:mL(t,"12px"),backgroundColor:"#ffffff",border:t.showBorders?`1px solid ${t.blockBorderColor??"#e5e7eb"}`:void 0},children:[s?(0,lh.jsx)("img",{src:s,alt:"",className:`size-full ${uO(e)}`}):null,(0,lh.jsx)(fr,{buttonStyle:d,onBuy:n,product:e})]}),(0,lh.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col justify-center gap-2",children:[(0,lh.jsxs)(m5,{onClick:r?()=>r(e):void 0,className:"text-left",children:[(0,lh.jsx)("p",{className:mr(mz,"line-clamp-2 min-h-[2.5em]"),style:{color:o},children:l}),i?(0,lh.jsx)("p",{className:"mt-0.5 text-xs opacity-50",style:{color:o},children:i}):null,a?(0,lh.jsx)("p",{className:"mt-0.5 text-sm font-medium",style:{color:o},children:a}):null]}),"add-to-cart"===d?n?(0,lh.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),n(e)},className:"w-full py-2 text-center text-xs font-semibold",style:fn(t),children:"Add to cart"}):(0,lh.jsx)("div",{className:"w-full py-2 text-center text-xs font-semibold",style:fn(t),children:"Add to cart"}):null]})]})}function m9({products:e,theme:t,onProductClick:r,onBuy:n}){return 0===e.length?null:(0,lh.jsx)("div",{className:"grid grid-cols-2 gap-4",children:e.map(e=>(0,lh.jsx)(fe,{product:e,theme:t,onProductClick:r,onBuy:n},e.id))})}function m6({collections:e,theme:t,onOpenCollection:r,onProductClick:n,onBuy:o}){let l=mI(t);return(0,lh.jsx)("div",{className:"flex flex-col gap-4",children:e.map(e=>{let i=mj(e);return(0,lh.jsxs)(mZ,{theme:t,className:"flex flex-col gap-2 p-3 text-center",onClick:()=>r(e),children:[(0,lh.jsx)("h3",{className:mO,style:{color:l},children:mA(t,e.title)}),(0,lh.jsx)("div",{className:"relative aspect-square w-full overflow-hidden",style:{borderRadius:mL(t,"12px")},children:i?(0,lh.jsx)(mN,{...i}):(0,lh.jsx)("div",{className:"absolute inset-0",style:{backgroundColor:`color-mix(in srgb, ${l} 8%, ${mT(t)})`}})}
16),e.items.length>0?(0,lh.jsx)("div",{className:"grid grid-flow-col auto-cols-[calc((100%-1.125rem)/4)] gap-1.5 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:e.items.map(e=>(0,lh.jsx)(ft,{product:e,theme:t,onProductClick:n,onBuy:o},e.id))}):null,e.items.length>0?(0,lh.jsxs)("button",{type:"button",onClick:()=>r(e),className:"flex w-full items-center justify-center gap-0.5 py-3 text-sm font-semibold",style:{...mY(t),borderRadius:mR(t)},children:["Shop All",(0,lh.jsx)(mw,{className:"size-4"})]}):null]},e.id)})})}function m7({products:e,theme:t,onProductClick:r,onBuy:n}){return 0===e.length?(0,lh.jsx)("p",{className:"text-sm opacity-50",style:{color:mI(t)},children:"No products in this collection yet."}):(0,lh.jsx)("div",{className:"-mx-1 flex items-stretch gap-4 overflow-x-auto px-1 pb-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:e.map(e=>(0,lh.jsx)("div",{className:"flex w-[42%] shrink-0 sm:w-[38%]",children:(0,lh.jsx)(fe,{product:e,theme:t,onProductClick:r,onBuy:n})},e.id))})}function fe({product:e,theme:t,onProductClick:r,onBuy:n}){let o=mI(t),l=uA(e)||"Untitled",i=mS(t,e),a=mP(t,e),s=u_(e),d=$({buttonStyle:t.shopButtonStyle}),c="add-to-cart"===d?n?(0,lh.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),n(e)},className:"mt-2 w-full shrink-0 py-2 text-center text-xs font-semibold",style:fn(t),children:"Add to cart"}):(0,lh.jsx)("div",{className:"mt-2 w-full shrink-0 py-2 text-center text-xs font-semibold",style:fn(t),children:"Add to cart"}):null;return(0,lh.jsxs)("div",{className:"flex h-full w-full flex-col",children:[(0,lh.jsxs)(m5,{onClick:r?()=>r(e):void 0,className:"flex min-h-0 flex-1 flex-col text-left",children:[(0,lh.jsxs)("div",{className:"relative aspect-square w-full shrink-0 overflow-hidden",style:{borderRadius:mL(t,"18px"),backgroundColor:"#ffffff",border:t.showBorders?`1px solid ${t.blockBorderColor??"#e5e7eb"}`:void 0},children:[s?(0,lh.jsx)("img",{src:s,alt:"",className:`size-full ${uO(e)}`}):null,(0,lh.jsx)(fr,{buttonStyle:d,onBuy:n,product:e})]}),(0,lh.jsxs)("div",{className:"mt-2 flex min-h-0 flex-1 flex-col text-left",children:[(0,lh.jsx)("p",{className:mr(mz,1===g({titleLines:t.shopTitleLines})?"line-clamp-1":"line-clamp-2"),style:{color:o},children:l}),i?(0,lh.jsx)("p",{className:"mt-0.5 text-xs opacity-50",style:{color:o},children:i}):null,a?(0,lh.jsx)("p",{className:"mt-0.5 text-sm font-medium",style:{color:o},children:a}):null]})]}),c]})}function ft({product:e,theme:t,onProductClick:r,onBuy:n}){let o=u_(e),l=$({buttonStyle:t.shopButtonStyle});return(0,lh.jsxs)(m5,{onClick:r?()=>r(e):void 0,className:"relative aspect-square w-full overflow-hidden",style:{borderRadius:mL(t,"10px"),backgroundColor:"#ffffff",border:`1px solid color-mix(in srgb, ${mI(t)} 10%, transparent)`},children:[o?(0,lh.jsx)("img",{src:o,alt:"",className:`size-full ${uO(e)}`}):null,(0,lh.jsx)(fr,{buttonStyle:l,onBuy:n,product:e,compact:!0})]})}function fr({buttonStyle:e,onBuy:t,product:r,compact:n}){if("icon"!==e)return null;let o=t?e=>{e.preventDefault(),e.stopPropagation(),t(r)}:void 0;return(0,lh.jsx)("span",{role:o?"button":void 0,tabIndex:o?0:void 0,"aria-hidden":!o||void 0,"aria-label":o?"Add to cart":void 0,onClick:o,onKeyDown:o?e=>{("Enter"===e.key||" "===e.key)&&o(e)}:void 0,className:mr("absolute z-10 flex items-center justify-center rounded-full border border-black/10 bg-white text-black shadow-[0_3px_10px_rgba(0,0,0,0.32)]",n?"bottom-1 right-1 size-6":"bottom-2 right-2 size-8"),children:(0,lh.jsx)(mt,{className:n?"size-3.5":"size-5",strokeWidth:2.4})})}function fn(e){let t=uP(e);return{backgroundColor:t.background,color:t.text,borderRadius:uz(e.borderRadius??"16px")}}function fo({collectionTitle:e,products:t,theme:r,onProductClick:n,onBuy:o,onShopAll:l}){let i=t.slice(0,8);if(0===i.length)return null;let a=e.trim(),s=a?v(a,y({collectionTitleCase:r.shopCollectionTitleCase})):"",d=r.titleTextColor??r.textColor??"var(--surface-text, inherit)";return(0,lh.jsxs)("section",{className:"mt-4",children:[(0,lh.jsxs)("div",{className:"mb-4 flex items-center justify-between gap-4",children:[(0,lh.jsx)("h2",{className:"min-w-0 truncate text-base font-semibold leading-snug tracking-normal",style:{color:d},children:s?`More from ${s}`:"More from this collection"}),l?(0,lh.jsxs)("button",{type:"button",onClick:l,className:"flex shrink-0 items-center gap-0.5 text-[11px] font-medium",style:{color:d},children:["Shop All",(0,lh.jsx)(mw,{className:"size-3.5"})]}):null]}),(0,lh.jsx)(m7,{products:i,theme:r,onProductClick:n,onBuy:o})]})}let fl=lP("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),fi=lP("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);function fa({product:e,catalog:t,theme:r,onBuy:n}){let o=u5(),[l,i]=(0,lx.useState)(()=>{var e;let r;return t?(r=((e=t.asin)?uE(t,e):void 0)??t.variants.find(e=>e.available)??t.variants[0],{...r?.options??{}}):{}}),a=(0,lx.useMemo)(()=>
16{if(t)return function(e,t){if(!Object.values(t).some(Boolean))return;let r=e.find(e=>uI(e,t));return r||e.find(e=>e.available&&uI(e,t))}(t.variants,l)??uE(t,t.asin)??t.variants.find(e=>e.available)??t.variants[0]},[t,l]),s=e.customTitle&&e.title?.trim()||a?.title||t?.title||e.title||"Product",d=(a?a.price:t?.price)||uM(e)||"",c=e.description?.trim()||a?.description||t?.description||"",u=e.features?.length?e.features:a?.features?.length?a.features:t?.features??[],f=e.review?.trim()??"",p=e.brand?.trim()||t?.brand?.trim()||"",h=uO(e),b=!!t&&m(e),g=(0,lx.useMemo)(()=>{let r=uL(a?.images,a?.image),n=uL(e.images);return b&&r.length>0?r:n.length>0?n:r.length>0?r:uL(t?.image)},[t?.image,b,e.images,a]),x=function(e){let t=(0,lx.useRef)(null),[r,n]=(0,lx.useState)(0),o=(0,lx.useRef)(0),l=(0,lx.useRef)(null);(0,lx.useEffect)(()=>()=>{l.current&&clearTimeout(l.current)},[]);let i=(0,lx.useCallback)(()=>{let e=t.current;e&&0!==e.clientWidth&&(n(e.scrollLeft/e.clientWidth),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{o.current=Math.round(e.scrollLeft/e.clientWidth)},120))},[]),a=(0,lx.useCallback)((e,r)=>{let n=t.current;if(!n)return;o.current=e;let l=window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;n.scrollTo({left:e*n.clientWidth,behavior:r?.instant||l?"auto":"smooth"})},[]),s=(0,lx.useCallback)(t=>{e<2||a((o.current+t+e)%e)},[e,a]),d=Math.min(Math.max(r,0),Math.max(0,e-1));return{ref:t,onScroll:i,goTo:a,step:s,position:d,index:Math.round(d)}}(g.length),y=a?.url||t?.url||e.url||"",v=a?.asin||t?.asin,$=uP(r),w=r.borderRadius??"16px",k=r.titleTextColor??r.textColor??"var(--surface-text, inherit)",C=g.length>1;return(0,lh.jsxs)("section",{className:"py-4",style:{color:k},children:[(0,lh.jsxs)("div",{className:"flex items-center gap-1",children:[(0,lh.jsx)(fu,{direction:"prev",hidden:!C,onClick:()=>x.step(-1)}),(0,lh.jsx)("div",{className:"relative min-w-0 flex-1 overflow-hidden",style:{borderRadius:w,aspectRatio:"1 / 1",backgroundColor:"#ffffff"},children:(0,lh.jsx)("div",{ref:x.ref,onScroll:x.onScroll,className:"absolute inset-0 flex snap-x snap-mandatory overflow-x-auto overscroll-x-contain [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:g.map((e,t)=>{let r=iZ(e.path);return(0,lh.jsx)("div",{className:"h-full w-full shrink-0 snap-center snap-always",style:{backgroundColor:"#ffffff"},children:r?(0,lh.jsx)("img",{src:r,alt:0===t?s:"",className:`size-full ${h}`,loading:0===t?void 0:"lazy",draggable:!1}):null},e.path)})})}),(0,lh.jsx)(fu,{direction:"next",hidden:!C,onClick:()=>x.step(1)})]}),C?(0,lh.jsx)(fc,{count:g.length,position:x.position,color:k,onSelect:e=>x.goTo(e)}):null,(0,lh.jsx)("h1",{className:"mt-2 text-xl font-semibold tracking-tight",children:s}),p?(0,lh.jsx)("p",{className:"mt-0.5 text-sm",style:{color:"color-mix(in srgb, var(--surface-text, currentColor) 60%, transparent)"},children:p}):null,d?(0,lh.jsx)("p",{className:"mt-1 text-base font-medium tabular-nums",children:uR(d)}):null,t?.dimensions.map(e=>(0,lh.jsx)(fm,{dimension:e,selected:l,variants:t.variants,textColor:k,radius:w,onSelect:r=>{i(n=>(function(e,t,r,n){let o={...t,[r]:n},l=e.find(e=>e.available&&uI(e,o));if(l)return{...l.options};let i=e.find(e=>e.available&&e.options[r]===n);if(i)return{...i.options};let a=e.find(e=>e.options[r]===n);return a?{...a.options}:o})(t.variants,n,e.key,r)),x.goTo(0,{instant:!0})}},e.key)),v||y?(0,lh.jsx)("button",{type:"button",onClick:()=>{let r=g[0],l={...e,...b&&r?{images:[r]}:{},id:v?`${e.id}:${v}`:e.id,title:s,url:y||e.url,amazon:t?{...t,asin:v||t.asin,url:y||t.url,title:s,price:d||t.price,image:r??t.image}:t};o?.addToCart(l),n?.(e,y)},className:"mt-4 w-full px-3 py-3 text-center text-sm font-semibold",style:{backgroundColor:$.background,color:$.text,borderRadius:w},children:"Add to Cart"}):null,(0,lh.jsx)(fs,{review:f,description:c,features:u})]})}function fs({review:e,description:t,features:r}){let n=[e?{id:"review",title:"Review",body:e}:null,t?{id:"description",title:"Description",body:t}:null,r.length?{id:"features",title:"Features",items:r}:null].filter(e=>!!e),[o,l]=(0,lx.useState)(()=>new Set);if(0===n.length)return null;let i="color-mix(in srgb, var(--surface-text, currentColor) 18%, transparent)",a="color-mix(in srgb, var(--surface-text, currentColor) 72%, transparent)";return(0,lh.jsx)("div",{className:"mt-6 border-t",style:{borderColor:i},children:n.map(e=>
16{let t=o.has(e.id),r="items"in e&&e.items?(0,lh.jsx)("ul",{className:"list-disc space-y-1.5 pb-3 pl-5 text-sm leading-relaxed",style:{color:a},children:e.items.map(e=>(0,lh.jsx)("li",{children:e},e))}):"review"===e.id&&"body"in e?(0,lh.jsx)(fd,{review:e.body}):(0,lh.jsx)("p",{className:"whitespace-pre-wrap pb-3 text-sm leading-relaxed",style:{color:a},children:"body"in e?e.body:""});return(0,lh.jsxs)("div",{className:"border-b",style:{borderColor:i},children:[(0,lh.jsxs)("button",{type:"button","aria-expanded":t,onClick:()=>l(r=>{let n=new Set(r);return t?n.delete(e.id):n.add(e.id),n}),className:"flex w-full items-center justify-between gap-3 py-3 text-left text-sm font-semibold",children:[e.title,(0,lh.jsx)(fl,{className:mr("size-4 shrink-0 opacity-60 transition-transform duration-300 ease-out motion-reduce:transition-none",t&&"rotate-180"),"aria-hidden":!0})]}),(0,lh.jsx)("div",{className:mr("grid transition-[grid-template-rows] duration-300 ease-out motion-reduce:transition-none",t?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,lh.jsx)("div",{className:"min-h-0 overflow-hidden",children:r})})]},e.id)})})}function fd({review:e}){let t=u5(),r=t?.reviewerName?.trim()||"",n=t?.reviewerImageUrl??null,o=r?r.charAt(0).toUpperCase():"",l=e.startsWith('"')||e.startsWith("“")?e:`“${e}”`;return(0,lh.jsxs)("div",{className:"mb-3 rounded-2xl p-4",style:{backgroundColor:"color-mix(in srgb, var(--surface-text, currentColor) 10%, transparent)"},children:[(0,lh.jsxs)("div",{className:"flex items-center gap-3",children:[n?(0,lh.jsx)("img",{src:n,alt:"",className:"size-10 shrink-0 rounded-full object-cover"}):(0,lh.jsx)("span",{className:"flex size-10 shrink-0 items-center justify-center rounded-full text-sm font-semibold",style:{backgroundColor:"color-mix(in srgb, var(--surface-text, currentColor) 16%, transparent)"},"aria-hidden":!0,children:o}),r?(0,lh.jsx)("p",{className:"text-sm font-semibold tracking-wide uppercase",children:r}):null]}),(0,lh.jsx)("p",{className:"mt-3 text-sm leading-relaxed",children:l})]})}function fc({count:e,position:t,color:r,onSelect:n}){return(0,lh.jsx)("div",{className:"mt-4 mb-2 flex justify-center",children:Array.from({length:e},(o,l)=>{let i=Math.round(25+75*Math.max(0,1-Math.abs(t-l)));return(0,lh.jsx)("button",{type:"button","aria-label":`Photo ${l+1} of ${e}`,"aria-current":Math.round(t)===l?"true":void 0,onClick:()=>n(l),className:"flex shrink-0 items-center justify-center",style:{padding:5},children:(0,lh.jsx)("span",{className:"block rounded-full",style:{width:8,height:8,backgroundColor:`color-mix(in srgb, ${r} ${i}%, transparent)`}})},l)})})}function fu({direction:e,hidden:t,onClick:r}){return t?(0,lh.jsx)("div",{className:"size-8 shrink-0","aria-hidden":!0}):(0,lh.jsx)("button",{type:"button","aria-label":"prev"===e?"Previous photo":"Next photo",onClick:r,className:"flex size-8 shrink-0 items-center justify-center",children:(0,lh.jsx)("prev"===e?fi:mw,{className:"size-6"})})}function fm({dimension:e,selected:t,variants:r,textColor:n,radius:o,onSelect:l}){let i=t[e.key]??"",a=e.values.some(e=>e.photo)?"swatch":2===e.values.length?"toggle":"dropdown",s="color-mix(in srgb, var(--surface-text, currentColor) 22%, transparent)";return(0,lh.jsxs)("div",{className:"mt-4",children:[(0,lh.jsxs)("p",{className:"mb-2 text-sm font-medium",children:[e.key,i?(0,lh.jsxs)("span",{className:"font-normal",style:{color:"color-mix(in srgb, var(--surface-text, currentColor) 60%, transparent)"},children:[" ","· ",i]}):null]}),"dropdown"===a?(0,lh.jsxs)("div",{className:"relative",children:[(0,lh.jsx)("select",{"aria-label":e.key,value:i,onChange:e=>l(e.target.value),className:"h-11 w-full appearance-none border bg-transparent px-3 pr-10 text-sm",style:{borderColor:s,borderRadius:o,color:n},children:e.values.map(n=>{let o=uT(r,t,e.key,n.value);return(0,lh.jsxs)("option",{value:n.value,disabled:!o,children:[n.value,o?"":" — unavailable"]},n.value)})}),(0,lh.jsx)(fl,{className:"pointer-events-none absolute right-3 top-1/2 size-4 -translate-y-1/2 opacity-60","aria-hidden":!0})]}):"toggle"===a?(0,lh.jsx)("div",{className:"grid grid-cols-2 overflow-hidden border",style:{borderColor:s,borderRadius:o},children:e.values.map(n=>{let o=i===n.value,a=uT(r,t,e.key,n.value);return(0,lh.jsx)("button",{type:"button","aria-pressed":o,disabled:!a,onClick:()=>
16l(n.value),className:"h-11 px-3 text-sm font-medium",style:{opacity:a?1:.4,backgroundColor:o?"color-mix(in srgb, var(--surface-text, currentColor) 14%, var(--surface-bg, transparent))":"transparent"},children:n.value},n.value)})}):(0,lh.jsx)("div",{className:"flex flex-wrap gap-2",children:e.values.map(a=>{let d=i===a.value,c=uT(r,t,e.key,a.value),u=a.photo?iZ(a.photo)??void 0:void 0;return(0,lh.jsx)("button",{type:"button","aria-pressed":d,onClick:()=>l(a.value),className:"size-10 overflow-hidden border bg-white p-1",style:{borderRadius:o,opacity:c?1:.4,borderColor:d?n:s},children:u?(0,lh.jsx)("img",{src:u,alt:a.value,className:"size-full object-contain"}):a.value},a.value)})})]})}function ff({value:e,onChange:t,label:r}){return(0,lh.jsxs)("div",{className:"relative mb-4",children:[(0,lh.jsx)("input",{type:"search",value:e,onChange:e=>t(e.target.value),placeholder:r,"aria-label":r,className:`h-12 w-full border px-5 text-base outline-none placeholder:opacity-50 [&::-webkit-search-cancel-button]:appearance-none ${e?"pr-12":""}`,style:{color:"var(--surface-text, inherit)",backgroundColor:"color-mix(in srgb, var(--surface-text, currentColor) 6%, transparent)",borderColor:"color-mix(in srgb, var(--surface-text, currentColor) 18%, transparent)",borderRadius:"var(--surface-radius, 16px)"}}),e?(0,lh.jsx)("button",{type:"button","aria-label":"Clear search",onClick:()=>t(""),className:"absolute right-3 top-1/2 flex size-7 -translate-y-1/2 items-center justify-center rounded-full",style:{color:"var(--surface-text, currentColor)"},children:(0,lh.jsx)(lL,{className:"size-4 opacity-60","aria-hidden":!0})}):null]})}function fp(e){return e.map(e=>"collection"===e.kind?{kind:"collection",collection:{id:e.id,clickhouseId:e.clickhouseId,title:e.title,items:e.items,...e.image?{image:e.image}:{}}}:{kind:"product",product:e})}function fh(e){let t=e.flatMap(e=>"collection"===e.kind?[e.collection]:[]);if(t.length>0)return t;let r=e.flatMap(e=>"product"===e.kind?[e.product]:[]);return 0===r.length?[]:[{id:"shop-uncategorized",title:"Shop",items:r}]}function fb(e){let t=new Set,r=[];for(let n of e)for(let e of n.items)t.has(e.id)||(t.add(e.id),r.push(e));return r}function fg(e){return e.amazonProductId||e.amazon?.asin||e.id}function fx(e,t){if(!t)return;let r=t.trim().toUpperCase();return e.find(e=>e.id===t||e.amazonProductId?.toUpperCase()===r||e.amazon?.asin.toUpperCase()===r||!!e.amazon?.variants.some(e=>e.asin.toUpperCase()===r))}function fy({entries:e,theme:t,onProductClick:r,emptyState:n,urlSync:o=!1,onEditItem:l}){let i=(0,lx.useMemo)(()=>(function(e){let t=[];for(let r of e){if("product"===r.kind){let e=m$(r.product);e&&t.push({kind:"product",product:e});continue}let e=function(e){if(0===e.items.length)return e;let t=e.items.flatMap(e=>{let t=m$(e);return t?[t]:[]});return 0===t.length?null:t.length===e.items.length?e:{...e,items:t}}(r.collection);e&&t.push({kind:"collection",collection:e})}return t})(e),[e]),a=(0,lx.useMemo)(()=>fh(i),[i]),s=(0,lx.useMemo)(()=>fb(a),[a]),d=(0,lx.useMemo)(()=>fb(fh(e)),[e]),[c,u]=(0,lx.useState)(null),[m,f]=(0,lx.useState)(null),[p,h]=(0,lx.useState)(""),b=p.trim().length>0,g=(0,lx.useMemo)(()=>{var e;let t;return e=s,0===(t=p.toLowerCase().split(/\s+/).map(e=>e.trim()).filter(Boolean)).length?[]:e.filter(e=>{let r,n=(r=e.amazon,[e.title??"",e.brand??"",e.review??"",e.description??"",r?.title??"",r?.brand??"",r?.description??"",...(r?.variants??[]).flatMap(e=>[e.title,e.description,...Object.values(e.options)])].join("\n").toLowerCase());return t.every(e=>n.includes(e))})},[s,p]),x=a.find(e=>e.id===c),$=m?s.find(e=>e.id===m.id):void 0,w=(0,lx.useMemo)(()=>{if(!$)return;let e=e=>e.items.some(e=>e.id===$.id),t=a.find(e=>e.id===m?.from);return t&&e(t)?t:a.find(e)},[a,m?.from,$]),k=u5(),C=!!k?.isSearchOpen,j=k?.items,N=k?.dropUnavailable;(0,lx.useEffect)(()=>{if(!N||!j?.length)return;let e=j.filter(e=>{var t,r;let n,o,l=(t=d,n=((r=e).productKey??r.id).trim().toUpperCase(),t.find(e=>e.id===r.id||e.id===r.productKey||e.amazonProductId?.toUpperCase()===n||e.amazon?.asin.toUpperCase()===n));if(!l?.amazon)return!1;if(!(!(o=l?.amazon?.variants)||0===o.length||o.some(e=>e.available)))return!0;let i=e.asin?.trim().toUpperCase();if(!i)return!1;let a=l.amazon.variants.find(e=>e.asin.toUpperCase()===i);return!!(a&&!a.available)});e.length>0&&N(e.map(e=>e.id))},[d,j,N]);let S=k?.setBrowseOpen,P=k?.setBrowseBack,I=k?.setBrowseNav,E=!!(x||$),T=e=>{let t=a.some(t=>t.id===e.collectionId)?e.collectionId:null,r=fx(s,e.productId);u(t),f(r?{id:r.id,from:t}:null)},L=(e,t)=>{T(e);let r=fx(s,e.productId);if("push"===t&&r&&k?.productClick(r),"push"===t&&!e.productId){let t=a.find(t=>
16t.id===e.collectionId);t&&k?.collectionClick(t)}o&&function(e,t){let r,n=(r=new URL(window.location.href),e.collectionId?r.searchParams.set(uG,e.collectionId):r.searchParams.delete(uG),e.productId?r.searchParams.set(uq,e.productId):r.searchParams.delete(uq),`${r.pathname}${r.search}${r.hash}`);if(n===`${window.location.pathname}${window.location.search}${window.location.hash}`)return;let o=uY();"push"===t&&delete o[uK];let l="push"===t?{...o,[uV]:!0}:{...o};"push"===t?window.history.pushState(l,"",n):window.history.replaceState(l,"",n)}({collectionId:e.collectionId,productId:r?fg(r):e.productId},t)};(0,lx.useLayoutEffect)(()=>{if(!o)return;T(uX(window.location.search));let e=()=>T(uX(window.location.search));return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[o]),(0,lx.useLayoutEffect)(()=>(S?.(E),()=>S?.(!1)),[E,S]),(0,lx.useLayoutEffect)(()=>{if(!E)return void P?.(null);let e=$?z:F;return P?.(()=>e()),()=>P?.(null)}),(0,lx.useLayoutEffect)(()=>(I?.(e=>{"home"===e.kind?D():B(e.productKey)}),()=>I?.(null)));let R=(0,lx.useRef)(null),M=`${c??""}/${m?.id??""}`,A=(0,lx.useRef)(M);(0,lx.useLayoutEffect)(()=>{A.current!==M&&(A.current=M,R.current&&u3(R.current))},[M]);let _=e=>{k?.addToCart(e);let t=e.amazon?.url||e.url;r?.(e,t)},O=e=>{L({collectionId:c??a.find(t=>t.items.some(t=>t.id===e.id))?.id??null,productId:fg(e)},"push")},z=()=>{let e={collectionId:m?.from??null,productId:null};o&&uJ()?window.history.back():L(e,"replace")},F=()=>{o&&uJ()?window.history.back():L({collectionId:null,productId:null},"replace")},D=()=>{(c||m)&&L({collectionId:null,productId:null},"push")},B=e=>{let t=fx(s,e);if(!t)return;let r=a.find(e=>e.items.some(e=>e.id===t.id));L({collectionId:r?.id??null,productId:e},"push")};return l?0===a.length?n??null:(0,lh.jsx)(mF,{collections:a,theme:t,onOpenCollection:e=>{"shop-uncategorized"!==e.id&&l(e.id)},onPickCollection:e=>{"shop-uncategorized"!==e.id&&l(e.id)},onProductClick:e=>l(e.id),onEditProduct:e=>l(e.id)}):0===i.length?n??null:C?(0,lh.jsxs)("div",{className:"py-4",children:[(0,lh.jsx)("h2",{className:"mb-2 py-2 text-center text-2xl font-bold tracking-tight",style:{color:"var(--surface-text, inherit)"},children:"Search"}),(0,lh.jsx)(ff,{value:p,onChange:h,label:"Search products"}),b?g.length>0?(0,lh.jsx)(m9,{products:g,theme:t,onProductClick:e=>{k?.closeSearch(),B(fg(e))},onBuy:_}):(0,lh.jsx)(mn,{icon:mv,title:"No products found",description:`Nothing matches “${p.trim()}”. Try a different word.`}):(0,lh.jsx)(mn,{icon:lE,title:"Search this shop",description:"Find a product by name, brand, or description."})]}):$?(0,lh.jsxs)("div",{ref:R,className:"pb-8",children:[(0,lh.jsx)(fa,{product:$,catalog:$.amazon,theme:t,onBuy:(e,t)=>r?.(e,t)},$.id),w?(0,lh.jsx)(fo,{collectionTitle:w.title,products:w.items.filter(e=>e.id!==$.id),theme:t,onProductClick:e=>{L({collectionId:w?.id??c,productId:fg(e)},"push")},onBuy:_,onShopAll:()=>L({collectionId:w.id,productId:null},"push")}):null,(0,lh.jsx)("div",{className:w?"mt-8":"mt-4",children:(0,lh.jsx)(mX,{theme:t,onClick:D})})]}):x?(0,lh.jsxs)("div",{ref:R,className:"relative pt-4 pb-8",children:[(0,lh.jsx)("h2",{className:"mb-2 px-4 py-2 text-center text-2xl font-bold tracking-tight",style:{color:"var(--surface-text, inherit)"},children:v(x.title||"Collection",y({collectionTitleCase:t.shopCollectionTitleCase}))}),0===x.items.length?(0,lh.jsx)(mn,{icon:my,title:"No products yet",description:"Products added to this collection will show up here."}):(0,lh.jsx)(m3,{products:x.items,theme:t,onProductClick:O,onBuy:_}),(0,lh.jsx)("div",{className:"mt-8",children:(0,lh.jsx)(mX,{theme:t,onClick:D})})]}):(0,lh.jsx)("div",{ref:R,className:"relative",children:(0,lh.jsx)(mF,{collections:a,theme:t,onOpenCollection:e=>L({collectionId:e.id,productId:null},"push"),onPickCollection:e=>k?.collectionClick(e),onProductClick:O,onBuy:_})})}function fv(e,t){let r={buttonStyle:$(t),shopLayout:p(t),productLayout:function(e){var t;if("carousel"===(t=e?.productLayout)||"grid"===t)return e.productLayout;let r=p(e);return"covers"===r||"tiles"===r||"window"===r||"grid"===r?"grid":"carousel"}(t),showPrice:t?.showPrice!==!1,showBrand:t?.showBrand!==!1,collectionTabs:h(t),collectionView:b(t),titleLines:g(t),collectionTitleCase:y(t)};return{...e,shopButtonStyle:r.buttonStyle,shopLayout:r.shopLayout,shopProductLayout:r.productLayout,shopShowPrice:r.showPrice,shopShowBrand:r.showBrand,shopCollectionTabs:r.collectionTabs,shopCollectionView:r.collectionView,shopTitleLines:r.titleLines,shopCollectionTitleCase:r.collectionTitleCase}}function f$({size:e=26}){return(0,lh.jsx)("img",{src:"/dashboard-assets/verified-check.svg",alt:"Verified",width:e,height:e,className:"drop-shadow-md",style:{width:e,height:e,transition:"width 200height 200ms ease-out"}})}function fw({verified:e,displayType:t,hasBorder:r=!1,className:n=""}){if(!e)return null;let o=!r&&r4[t]||r3[t];return(0,lh.jsx)("div",{className:`absolute z-[100] pointer-events-none ${n}`,style:{right:o.right,...void 0!==o.top?{top:o.top}:{bottom:o.bottom},transition:"top 300ms ease, bottom 300ms ease, right 300ms ease"}
16,"aria-hidden":!0,children:(0,lh.jsx)(f$,{})})}function fk({size:e}){return(0,lh.jsx)("span",{className:"pointer-events-none inline-flex shrink-0 items-center",style:{marginLeft:2},"aria-hidden":!0,children:(0,lh.jsx)(f$,{size:e})})}function fC({name:e,bio:t,profileMedia:r,nameFontSize:n,nameAlignment:o,nameImageHeight:l,bioFontSize:i,bioAlignment:a,profileTextColor:s,profileDisplayType:d,profileImageHeight:c,profileBorderColor:u,verified:m=!1,isMobile:f,useCssBreakpoints:p=!1,className:h}){var b;let g,x="string"==typeof e?e:e?.text||"",y="object"==typeof e&&e?.displayType?e.displayType:"text",v="object"==typeof e&&e?.image?.path?iZ(e.image.path)??null:null,$=r?.mediaType==="video",w=r?.path?iZ(r.path)??X:X,[k,C]=(0,lx.useState)(!1),j=k?X:w,N=n??22,S=o??"center",P=s??"#111827",I=J(d),E=Q(u),T=rQ[l??"md"],L=function(e){let{displayType:t,height:r,borderColor:n,isMobile:o=!1,canvasWidth:l=rJ.CANVAS_WIDTH}=e,i="fullScreen"===t,a="circle"===t||"square"===t||"portrait"===t,s=r9(t,r),d=a?rJ.SMALL_SIZE:"largeContent"===t?l-2*rJ.PAGE_PADDING:l,c=!i,u=c?rJ.BORDER.INSET:0,m=rJ.RADIUS[t],f=i?o?0:`${m}px ${m}px 0 0`:c?m+u:m;return{wrapper:{width:a?d+2*u:"100%",height:s+2*u,borderRadius:f},image:{width:d,height:s,borderRadius:i?0:m},border:{width:c?rJ.BORDER.WIDTH:0,padding:c?rJ.BORDER.PADDING:0,color:n??"transparent",visible:!!n&&c},isFullScreen:i,hasBorderSpace:c,displayType:t}}({displayType:I,height:c,borderColor:E,isMobile:f}),R=function(e){let t=(0,lx.useRef)(e),[r,n]=(0,lx.useState)("");return(0,lx.useEffect)(()=>{t.current!==e&&(n(function(e,t){let r=Math.abs(r6[t]-r6[e]);if(0===r)return"all 200ms ease-out";let n=r6[t]>r6[e];return`all ${300+80*r}ms ${n?"cubic-bezier(0.34, 1.56, 0.64, 1)":"cubic-bezier(0.32, 0.72, 0, 1)"}`}(t.current,e)),t.current=e)},[e]),r}(I),M=function(e){let t,{x:r,y:n,zoom:o}={x:ne((t=e??r7).x,-1,1),y:ne(t.y,-1,1),zoom:ne(t.zoom,1,3)},l=50+50*r,i=50+50*n;return{objectFit:"cover",objectPosition:`${l}% ${i}%`,transform:1!==o?`scale(${o})`:void 0,transformOrigin:`${l}% ${i}%`}}(r?.crop);(0,lx.useEffect)(()=>{C(!1)},[w,$]);let A="image"===y?!!v:!!x,_=!!t,O=A||_,z=m&&("largeContent"===I||"fullScreen"===I),F="image"===(b={nameDisplayType:y,nameFontSize:N,nameImageHeight:l??"md"}).nameDisplayType?r0[b.nameImageHeight??"md"]:r0[(g=b.nameFontSize??22)<=20?"sm":g>=24?"lg":"md"],D=p&&L.isFullScreen,B=mr("relative z-10 w-full",p&&"v3-profile-shell",L.isFullScreen?"overflow-hidden":"largeContent"===I?"px-6 pt-6":"px-6 pt-8");return(0,lh.jsx)("div",{className:mr("relative",h),children:(0,lh.jsx)("div",{className:B,style:{borderRadius:p?void 0:f?"0px":"32px 32px 0px 0px"},children:(0,lh.jsxs)("div",{className:"relative flex w-full flex-col items-center pb-2 text-center",children:[(0,lh.jsxs)("div",{className:"relative",style:{width:L.wrapper.width,height:L.wrapper.height,marginBottom:L.isFullScreen&&O?-32:16,transition:R},children:[(0,lh.jsx)("div",{className:D?"v3-profile-fullscreen-wrapper":void 0,style:{width:L.wrapper.width,height:L.wrapper.height,borderRadius:D?void 0:L.wrapper.borderRadius,overflow:"hidden",border:`${L.border.width}px solid ${L.border.color}`,padding:L.border.padding,transition:R,...L.isFullScreen&&{maskImage:r5,WebkitMaskImage:r5}},children:(0,lh.jsx)("div",{className:D?"v3-profile-fullscreen-image":void 0,style:{width:"100%",height:"100%",overflow:"hidden",borderRadius:D?void 0:L.image.borderRadius},children:$?(0,lh.jsx)("video",{src:w,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{width:"100%",height:"100%",...M}}):(0,lh.jsx)("img",{src:j,alt:x||"Profile",style:{width:"100%",height:"100%",...M},onError:()=>C(!0)})})}),!z&&(0,lh.jsx)(fw,{verified:m,displayType:I,hasBorder:L.border.visible})]}),(0,lh.jsxs)("div",{className:mr("relative z-10 w-full",L.isFullScreen&&"px-6"),style:{textAlign:S},children:[(A||z)&&(0,lh.jsxs)("div",{className:mr("flex w-full items-center px-2","image"===y&&v&&"mb-2"),style:{justifyContent:"left"===S?"flex-start":"right"===S?"flex-end":"center"},children:[A&&("image"===y&&v?(0,lh.jsx)("h1",{className:"min-w-0",children:(0,lh.jsx)("img",{src:v,alt:x||"Name",style:{height:T,objectFit:"contain"}})}):(0,lh.jsx)("h1",{className:"min-w-0 rounded-lg text-xl font-semibold",style:{fontSize:N,color:P,textAlign:S,maxWidth:"100%",whiteSpace:"normal",overflowWrap:"anywhere",wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:x})),z&&(0,lh.jsx)(fk,{size:F})]}),_&&(0,lh.jsx)("div",{className:"rounded-lg px-2",style:{fontSize:i??14,color:lD(P,.8),textAlign:a??"center",whiteSpace:"pre-wrap"},children:t})]})]})})})}e.s(["ShopStorefront",()=>fy,"toShopStorefrontEntries",()=>fp],7762),e.s(["themeWithShopOptions",()=>fv],11421);let fj="flex flex-col pb-2",fN="px-4 py-2",fS="mx-4 p-3";function fP(e,t,r,n){let o={backgroundColor:e};return t?.type==="image"&&r&&("page"===n?(o.backgroundImage=`url(${r})`,o.backgroundSize="100% auto",o.backgroundPosition="top center",o.backgroundRepeat=t.repeat?"repeat-y":"no-repeat"):(o.backgroundImage=`url(${r})`,o.backgroundSize="cover",o.backgroundPosition="center",o.backgroundRepeat="no-repeat")),o}function fI(e,t){var r,n,o,l,i;let a=et(e.themeConfig,t),s=e.themeConfig?.backgroundColor?.trim()||t.backgroundColor?.trim()||"#ffffff",c=e.themeConfig?.backgroundMedia??t.backgroundMedia??null,u=(l=c?.path)?iZ(l):null,m=e.themeConfig?.desktopBackgroun
16dColor?.trim()||t.desktopBackgroundColor?.trim()||S||"#f5f5f5",f=e.themeConfig?.desktopBackgroundMedia??t.desktopBackgroundMedia??null,p=(i=f?.path)?iZ(i):null,h=e.themeConfig?.pageFont??t.pageFont??"poppins",b=rm(void 0,t.blockConfig),g=0===function(e){let t=e?.trim().toLowerCase();if(!t)return 1;if("transparent"===t)return 0;if(t.startsWith("#")){let e=t.slice(1);return/^[0-9a-f]+$/.test(e)?4===e.length?parseInt(e[3]+e[3],16)/255:8===e.length?parseInt(e.slice(6,8),16)/255:1:1}let r=t.match(/^(?:rgba?|hsla?)\((.*)\)$/);if(!r)return 1;let n=r[1].trim().split(/[\s,/]+/).filter(Boolean);if(n.length<4)return 1;let o=n[3],l=o.endsWith("%")?Number(o.slice(0,-1))/100:Number(o);return Number.isFinite(l)?Math.min(1,Math.max(0,l)):1}(s);return{pageBackgroundColor:s,pageBackgroundIsTransparent:g,effectivePageBackgroundColor:g?m:s,pageBackgroundMedia:c,pageMediaUrl:u,pageBackgroundStyle:fP(s,c,u,"page"),pageBackgroundTopInset:(r=a.profileDisplayType,n=a.profileImageHeight,"fullScreen"!==r?0:Math.max(0,Math.round(.45*r9("fullScreen",n))-24)),desktopBackgroundColor:m,desktopBackgroundMedia:f,desktopMediaUrl:p,desktopBackgroundStyle:fP(m,f,p,"desktop"),fontFamily:`var(--font-${h&&d.has(h)?h:"poppins"})`,iconColor:t.iconConfig.color??"#000000",iconBackgroundColor:t.iconConfig.backgroundColor??"transparent",iconShape:(o=t.iconConfig.shape??"circle")&&nv.has(o)?o:"circle",socialIconPosition:t.iconConfig.position||"top",profilePresentation:a,titleTextColor:t.titleTextColor??"#000000",blockBackgroundColor:b.backgroundColor??"#ffffff",blockButtonColor:b.buttonColor??"#000000",blockBorderRadius:`${t7[b.borderRadius??"md"]??t7.md}px`}}function fE(e){let{showPhoneFrame:t,isMobile:r,preset:n,blocks:o,blockConfig:l}=e;return!t||r?{borderRadius:n.frameRadius}:{borderRadius:ra(o,rm(void 0,l).borderRadius,n.frameRadius),transition:re}}e.s(["PAGE_PREVIEW_BLOCKS_INSET_CLASS",0,fN,"PAGE_PREVIEW_SOCIALS_INSET_CLASS",0,fS,"PAGE_PREVIEW_STACK_CLASS",0,fj,"resolvePageFrameRadiusStyle",()=>fE,"resolvePagePreviewSurfaces",()=>fI],73390);let fT=new Set(["platform-1","platform-2","platform-3","platform-4","platform-5","onlyfans","fansly","fanvue","slushy","fanfix"]);function fL(e,t){let r=e.linkId?t.find(t=>t._id===e.linkId):void 0;return("string"==typeof e.url&&e.url?e.url:void 0)??r?.url??void 0}function fR(e,t){let r=e.linkId?t.find(t=>t._id===e.linkId):void 0,n=!!e.isAdultContent||!!r?.isAdultContent||fT.has((e.icon??"").toLowerCase()),o=!n&&(os(e.icon)||os(r?.platform)||os(r?.displayIconPlatform));return n?"adult":o?"popout":null}function fM({socials:e,iconColor:t="#000000",iconBackgroundColor:r="transparent",iconShape:n="circle",allLinks:o=[],readOnly:l=!1,showEmptyState:i=!0,emptyStateInteractive:a=!1,pageBackgroun
16dColor:s="#ffffff",onAdultSocialClick:d,onSocialClick:c,onSocialChoiceRequest:u}){let m=(0,lx.useMemo)(()=>nW(e),[e]),f=(0,lx.useMemo)(()=>[...e].sort((e,t)=>(e.sortOrder??0)-(t.sortOrder??0)),[e]),p=(0,lx.useMemo)(()=>ny.find(e=>e.value===n)??ny[0],[n]),h="parallelogram"===n,b="platform"===n;return 0===m.length?i?(0,lh.jsx)("div",{className:"flex flex-col items-center",children:(0,lh.jsx)("div",{className:"flex items-center justify-center flex-wrap",style:{gap:8},children:(0,lh.jsxs)("div",{className:mr("flex h-10 items-center justify-center gap-2 rounded-full border-2 border-dashed border-current bg-transparent px-4 text-muted-foreground",a&&"transition-colors duration-200 hover:bg-white/30 group-hover:bg-white/30"),style:{color:"#ffffff"===i8(s)?"#ffffff":void 0},children:[(0,lh.jsx)(mt,{className:"size-4"}),(0,lh.jsx)("span",{className:"text-sm font-medium",children:"Add social icons"})]})})}):null:(0,lh.jsx)("div",{className:"flex flex-col items-center",children:(0,lh.jsx)("div",{className:"flex items-center justify-center flex-wrap",style:{maxWidth:376,gap:8},children:m.map(e=>{let i=l?fL(e,o):void 0,a=l?fR(e,o):null,s=l?f.filter(t=>(t.icon??"").toLowerCase()===(e.icon??"").toLowerCase()).map(e=>{let t=fL(e,o);if(!t)return null;let r=e.linkId?o.find(t=>t._id===e.linkId):void 0;return{social:e,url:t,gate:fR(e,o),title:r?.title??null}}).filter(e=>null!=e):[];return((e,o,i,a=[])=>{let s=n0(e.icon)??"/socials/svgs/link.svg",m=!!(u&&a.length>1),f=t=>{if(m){t.preventDefault(),u?.({icon:e.icon,label:nQ(e.icon),options:a});return}if(i&&d&&o){t.preventDefault(),d(o,nQ(e.icon),i);return}!i&&c&&o&&c(e,o,t)},g=nZ({iconColor:t,iconBackgroundColor:r,platformValue:e.icon,iconShape:n??"circle",fallbackIconColor:"#000000",fallbackBackgroundColor:"transparent"});if(b){let t={display:"flex",alignItems:"center",justifyContent:"center",height:"40px",width:"40px",padding:g.squareIconPath?void 0:"4px"},r=g.squareIconPath?(0,lh.jsx)("div",{className:"size-full overflow-hidden rounded-lg",children:(0,lh.jsx)("img",{src:g.squareIconPath,alt:nQ(e.icon),className:"size-full object-cover"})}):(0,lh.jsx)("div",{className:"size-10",style:{backgroundColor:g.iconColor,WebkitMaskImage:`url(${s})`,WebkitMaskSize:"contain",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center",maskImage:`url(${s})`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center"}});return l&&o?(0,lh.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"relative p-0",style:t,title:nQ(e.icon),onClick:f,children:r},e.id):(0,lh.jsx)("div",{className:"relative p-0",style:t,title:nQ(e.icon),children:r},e.id)}let x={display:"flex",alignItems:"center",justifyContent:"center",height:"40px",width:h?"48px":"40px",marginLeft:h?"-4px":0,marginRight:h?"-4px":0},y=(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsx)("div",{className:"absolute inset-0",style:{background:g.iconBackgroundStyle??g.iconBackgroundColor,WebkitMaskImage:`url(${p.svg})`,WebkitMaskSize:"contain",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center",maskImage:`url(${p.svg})`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center"}}),(0,lh.jsx)("div",{className:mr("heart"===n?"size-5":"size-6","relative z-10"),style:{display:"block",margin:0,backgroundColor:g.iconColor,WebkitMaskImage:`url(${s})`,WebkitMaskSize:"contain",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center",maskImage:`url(${s})`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center"}})]});return l&&o?(0,lh.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"relative p-0",style:x,title:nQ(e.icon),onClick:f,children:y},e.id):(0,lh.jsx)("div",{className:"relative p-0",style:x,title:nQ(e.icon),children:y},e.id)})(e,i,a,s)})})})}function fA({socials:e,iconColor:t="#000000",iconBackgroundColor:r="transparent",iconShape:n="circle",allLinks:o,className:l,badge:i,onAdultSocialClick:a,onSocialClick:s,onSocialChoiceRequest:d}){return 0!==e.length||i?(0,lh.jsxs)("div",{className:mr(fS,"relative flex flex-col items-center gap-2",l),children:[e.length>0?(0,lh.jsx)(fM,{socials:e,iconColor:t,iconBackgroundColor:r,iconShape:n,allLinks:o,readOnly:!0,showEmptyState:!1,onAdultSocialClick:a,onSocialClick:s,onSocialChoiceRequest:d}):null,i]}):null}function f_({summary:e,textColor:t="#111827",resolveProfileUrl:r,onAccountNavigate:n}){return(0,lh.jsx)("ul",{className:"flex w-full flex-col gap-1",children:e.accounts.map(e=>{var o;let l=(o=e.profileImage)?/^https?:\/\//i.test(o)?o:iZ(o):null,i=nV(e.platform),a=r?.(e)??k(e.platform,e.username),s="Subscribers"===e.countLabel?"Subscribe":"Follow",d=void 0===e.count&&e.name?e.name:e.username?e.username.replace(/^@/,""):e.name||nQ(e.platform),c=C(e),u=(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsxs)("div",{className:"relative h-10 w-10 flex-shrink-0",children:[l?(0,lh.jsx)("img",{src:l,alt:"",className:"h-10 w-10 rounded-full object-cover"}):(0,lh.jsx)("div",{className:"h-10 w-10 rounded-full bg-neutral-300"}),i?(0,lh.jsx)("img",{src:i,alt:"",className:"absolute -bottom-0.5 -right-0.5 h-4 w-4 roun
16ded-full object-cover shadow-[0_0_0_2px_#fff]"}):null]}),(0,lh.jsxs)("div",{className:"min-w-0 flex-1 text-left",style:{color:t},children:[(0,lh.jsx)("p",{className:"truncate text-base font-semibold",children:d}),(0,lh.jsx)("p",{className:"truncate text-xs opacity-70",children:c})]}),(0,lh.jsx)("span",{className:"inline-flex h-8 flex-shrink-0 items-center justify-center rounded-md border border-neutral-200 bg-white px-3 text-xs font-medium text-neutral-900 transition-colors group-hover:bg-neutral-100","aria-hidden":!0,children:s})]}),m=mr("group flex w-full items-center gap-3 rounded-xl p-2 transition-colors",a&&"hover:bg-black/[0.04]");return a?(0,lh.jsx)("li",{children:(0,lh.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:m,onClick:t=>{"platform-3"===e.platform&&n&&(t.preventDefault(),n(a,e))},"aria-label":`${s} ${d} on ${nQ(e.platform)}`,children:u})},e.platform):(0,lh.jsx)("li",{className:m,children:u},e.platform)})})}function fO({summary:e,badge:t="followers",textColor:r="#ffffff",className:n,onOpenBreakdown:o}){if(!e.accounts.length)return null;let l="function"==typeof o,i=(0,lh.jsxs)("span",{className:"inline-flex items-center gap-1 text-sm font-semibold tracking-tight",children:[(0,lh.jsx)("span",{children:j(e,t)}),(0,lh.jsx)(fl,{className:"h-4 w-4 opacity-80","aria-hidden":!0})]});return(0,lh.jsx)("div",{className:mr("relative flex w-full flex-col items-center",n),children:l?(0,lh.jsx)("button",{type:"button",onClick:o,className:"rounded-xl px-3 transition-opacity hover:opacity-90",style:{color:r},"aria-haspopup":"dialog",children:i}):(0,lh.jsx)("div",{className:"pointer-events-none px-3",style:{color:r},children:i})})}function fz({children:e,overlay:t,borderRadius:r="16px",chromeMode:n="opaque",backgroundSurface:o="card",theme:l}){let i="title-like"===n?"8px":r,{showBorders:a,borderWidth:s,borderColor:d,backgroundColor:c,accentHeight:u,accentColor:m}=ru(l,"opaque"!==n,o);return(0,lh.jsxs)("div",{className:"relative h-full",style:{"--block-radius":i},children:[(0,lh.jsx)("div",{className:"relative h-full overflow-hidden",style:{borderRadius:i,backgroundColor:c},children:(0,lh.jsx)("div",{className:"h-full min-h-0 overflow-hidden",style:{borderRadius:i,isolation:"isolate"},children:e})}),(0,lh.jsxs)("div",{className:"pointer-events-none absolute inset-0 z-20 overflow-hidden",style:{borderRadius:i,isolation:"isolate"},children:[t,a&&(0,lh.jsx)("div",{className:"absolute inset-0 pointer-events-none z-30",style:{borderRadius:i,border:`${s} solid ${d}`}})]}),u>0&&(0,lh.jsx)("div",{className:"absolute inset-0 pointer-events-none z-10",style:{borderRadius:i,borderBottomStyle:"solid",borderBottomWidth:`${u}px`,borderBottomColor:m,boxSizing:"border-box"}})]})}function fF({block:e,allLinks:t,theme:r,connectedAccountData:n,connectedAccountVideos:o,connectedAccountPlatform3Content:l,containerHeight:i,containerWidth:a,onConsentTermsClick:s,onFormBlockClick:d,onFormInlineSubmit:c,renderFormPhoneInput:u,onTipsAmountClick:m,onStreamingLinksOpen:f,onEventsListOpen:p,onCouponLinkClick:h,onAdultLinkClick:b,onLinkClick:g,onBlockInteraction:x,onMeasuredHeight:y,isPublicPage:v=!1,connectedAccountHandle:$,sensitiveContentBaseUrl:w,onConnectedAdultUrlClick:k}){let C,j=(C="link"===e.type,(0,lx.useMemo)(()=>C?uv(e,t):[],[t,e,C])),N=(0,lx.useMemo)(()=>(function(e,t){let r=e;if("title"===t.type)return"8px"===e.borderRadius?e:{...e,borderRadius:"8px"};if(np.has(t.type)){let n=t.style,o=n?.backgroundColor,l=n?.paddingSize,i=n?.borderRadius,a=n?.borderSize,s=n?.borderColor,d=n?.accentColor,c=n?.accentSize,u=n?.buttonColor,m=n?.textColor;if(void 0!==o||void 0!==l||void 0!==i||void 0!==a||void 0!==s||void 0!==d||void 0!==c||void 0!==u||void 0!==m){let t=void 0!==a&&"none"!==a||void 0;r={...e,...void 0!==o&&{blockBackgroundColor:o},...void 0!==l&&{blockPadding:"none"!==l},...void 0!==i&&{borderRadius:`${rf({borderRadius:i})}px`},...void 0!==a&&{blockBorderSize:a},...void 0!==s&&{blockBorderColor:s},...void 0!==d&&{accentColor:d},...void 0!==c&&{accentSize:c},...void 0!==u&&{buttonColor:u},...void 0!==m&&{textColor:m},...void 0!==t&&{showBorders:t}}}}return r})(r,e),[r,e]),S=(0,lx.useMemo)(()=>(function(e,t){var r;let n,o;
16if("title"===e.type)return"title-like";if("tips"===e.type||"form"===e.type)return"opaque";if("connected-account"===e.type){let t=e.style?.blockLayout;return"connected-account-tiktok-content-carousel-md"===t||"connected-account-youtube-videos-carousel-md"===t||"connected-account-youtube-shorts-carousel-md"===t?"transparent":"opaque"}return"link"!==e.type?"opaque":(n=(r=t.resolvedLinksForLinkBlock)[0],o=n?.embed?.variant??(n?.url?lc(n.url).embedData?.variant:null)??null,function(e){let{blockLayout:t,linkCount:r,embedVariant:n}=e;return!(0===r||e7(t)||tj(t))&&(r>1||!!tw(t)&&(e9(n)||e5(n)))}({blockLayout:e.style.blockLayout,linkCount:r.length,embedVariant:o}))?"transparent":"opaque"})(e,{resolvedLinksForLinkBlock:j}),[e,j]),P=(0,lx.useMemo)(()=>(function(e,t,r){let n=e.style;if("link"!==e.type||!n)return"card";let o=n.blockLayout;return tw(o)||e7(o)||tj(o)?"card":tk(o)?"content":1!==r?"card":ns({imageLayout:tM(n),hasPadding:!!t.blockPadding})})(e,N,j.length),[e,N,j.length]),I=function(e,t,r){if("tips"===e.type||"form"===e.type){let t="tips"===e.type?e.style.badge:u$(e);return(0,lh.jsx)(cM,{badge:t})}return null}(e,0,0);return e._isPlaceholder?(0,lh.jsx)("div",{className:"h-full",children:(0,lh.jsx)("div",{style:{height:"100%",width:"100%",borderRadius:N.borderRadius??"24px",background:"linear-gradient(135deg, rgba(17,24,39,0.08), rgba(17,24,39,0.16))"}})}):(0,lh.jsx)("div",{className:"h-full",children:(0,lh.jsx)(fz,{borderRadius:N.borderRadius,chromeMode:S,backgroundSurface:P,theme:N,overlay:I,children:function({block:e,allLinks:t,theme:r,resolvedLinksForLinkBlock:n,isEditorContent:o=!0,isPublicPage:l=!1,isHovered:i=!1,isSelected:a=!1,isBlockBeingEdited:s=!1,isDragging:d=!1,containerHeight:c,containerWidth:u,onMeasuredHeight:m,selectedLinkId:f,onLinkClick:p,onBlockInteraction:h,isSelectedForInteraction:b,onConsentTermsClick:g,onFormBlockClick:x,onFormInlineSubmit:y,renderFormPhoneInput:v,onTipsAmountClick:$,onStreamingLinksOpen:w,onEventsListOpen:k,onCouponLinkClick:C,onAdultLinkClick:j,connectedAccountData:N,connectedAccountVideos:S,connectedAccountPlatform3Content:P,connectedAccountHandle:I,sensitiveContentBaseUrl:E,onConnectedAdultUrlClick:T}){let L=o&&i,R=o&&d;switch(e.type){case"title":return(0,lh.jsx)(lB,{block:e,theme:r,isHovered:L,isSelected:o&&a,isDragging:R,isBlockBeingEdited:o&&s,borderRadius:r.borderRadius,onHeightChange:m});case"tips":return(0,lh.jsx)(au,{block:e,theme:r,hasRibbon:rZ(e.style.badge),onAmountClick:$?t=>$(e,t):void 0});case"form":return(0,lh.jsx)(dD,{block:e,theme:r,hasRibbon:rZ(u$(e)),onClick:x?()=>x(e):void 0,onInlineSubmit:y?t=>y(e,t):void 0,renderPhoneInput:v,inlineReadOnly:o,onTermsClick:g});case"link":{let i=n??uv(e,t),a=e.style?.paddingSize,s=void 0!==a?{...r,blockPadding:"none"!==a}:r,d=function(e,t,r){if(!t.blockPadding||r>1||tw(e.style.blockLayout))return!1;let n=tM(e.style);return"top"!==n&&"left"!==n&&"text"!==n}(e,s,i.length),g=d&&null!=c?Math.max(0,c-24):c,x=d&&null!=u?Math.max(0,u-24):u,y=d?ni(s):void 0,v=d?ni(s):s.borderRadius,$=(0,lh.jsx)(c9,{block:e,links:i,allLinks:t,theme:s,isEditor:o,isPreview:!o&&!!(C||j),containerHeight:g,containerWidth:x,onHeightChange:m,selectedLinkId:o?f:void 0,onLinkClick:o||l?p:void 0,onCouponLinkClick:o?void 0:C,onAdultLinkClick:o?void 0:j,onBlockInteraction:h,onStreamingLinksOpen:o?void 0:w,onEventsListOpen:o?void 0:k,isPublicPage:!o&&l,isSelectedForInteraction:o?b:void 0,contentBorderRadius:y}),N=tM(e.style),S=s.blockPadding,P=tw(e.style.blockLayout)||1!==i.length?null:(0,lh.jsx)(cM,{badge:e.style.badge,url:i[0]?.url??"",platform:i[0]?.platform??null,isTextOnly:"text"===N,isLeftLayout:"left"===N,isTopLayout:"top"===N,backgroundColor:s.blockBackgroundColor??"#ffffff",paddingOffset:"top"===N&&S?12:0});return(0,lh.jsx)("div",{className:iq("box-border h-full min-h-0 overflow-hidden",o&&"transition-[padding] duration-300 ease-in-out"),style:{padding:12*!!d},children:(0,lh.jsxs)("div",{className:iq("relative h-full min-h-0 overflow-hidden",o&&"transition-[border-radius] duration-300 ease-in-out"),style:{borderRadius:v,containerType:"inline-size"},children:[$,P]})})}case"connected-account":return(0,lh.jsx)(uy,{block:e,theme:r,accountData:N,tiktokVideos:S,platform3Content:P,
16isPublicPage:!o&&l,handle:I,sensitiveContentBaseUrl:E,onAdultUrlClick:T,onBlockInteraction:h});default:return(0,lh.jsx)("div",{className:"flex h-full items-center p-4",children:(0,lh.jsx)("p",{className:"text-sm text-gray-500",children:"Unknown block type"})})}}({block:e,allLinks:t,theme:N,connectedAccountData:n,connectedAccountVideos:o,connectedAccountPlatform3Content:l,connectedAccountHandle:$,sensitiveContentBaseUrl:w,onConnectedAdultUrlClick:k,resolvedLinksForLinkBlock:j,isEditorContent:!1,isPublicPage:v,isHovered:!1,isDragging:!1,containerHeight:i,containerWidth:a,onConsentTermsClick:s,onFormBlockClick:d,onFormInlineSubmit:c,renderFormPhoneInput:u,onTipsAmountClick:m,onStreamingLinksOpen:f,onEventsListOpen:p,onCouponLinkClick:h,onAdultLinkClick:b,onLinkClick:g,onBlockInteraction:x,onMeasuredHeight:y})})})}e.s(["SocialsPreview",()=>fA],37946),e.s(["ConnectedAccountBadgeBreakdownList",()=>f_,"ConnectedAccountBadgePreview",()=>fO],75283),e.i(90380);let fD=lx.useLayoutEffect;function fB({blocks:e,allLinks:t,theme:r,className:n,onConsentTermsClick:o,onFormBlockClick:l,onFormInlineSubmit:i,renderFormPhoneInput:a,onTipsAmountClick:s,onStreamingLinksOpen:d,onEventsListOpen:c,onCouponLinkClick:u,onAdultLinkClick:m,connectedByBlockId:f={},connectedAccountHandle:p,initialContainerWidth:h=0,isPublicPage:b=!1,sensitiveContentBaseUrl:g,onLinkClick:x,onBlockInteraction:y,onConnectedAdultUrlClick:v}){let $=(0,lx.useRef)(null),[w,k]=(0,lx.useState)(h),[C,j]=(0,lx.useState)(()=>(function(e){let t=new Map;for(let r of e){let e=dH.get(r);void 0!==e&&t.set(r,e)}return t})(e.map(e=>e.id))),N=(0,lx.useMemo)(()=>(e,t)=>{dH.set(e,t),j(r=>{if(r.get(e)===t)return r;let n=new Map(r);return n.set(e,t),n})},[]);fD(()=>{if(!$.current)return;let e=()=>{$.current&&k($.current.offsetWidth)};e();let t=new ResizeObserver(e);return t.observe($.current),()=>t.disconnect()},[]);let S=(0,lx.useMemo)(()=>rD(e),[e]),P=w>0?w:448,I=r?.borderRadius??"24px",E={allLinks:t,theme:r,onConsentTermsClick:o,onFormBlockClick:l,onFormInlineSubmit:i,renderFormPhoneInput:a,onTipsAmountClick:s,onStreamingLinksOpen:d,onEventsListOpen:c,onCouponLinkClick:u,onAdultLinkClick:m,onLinkClick:x,onBlockInteraction:y,isPublicPage:b,connectedAccountHandle:p,sensitiveContentBaseUrl:g,onConnectedAdultUrlClick:v};return 0===e.length?null:(0,lh.jsx)("div",{ref:$,"data-page-preview-grid":"",className:mr("page-preview-block-grid relative w-full overflow-visible",n),style:{"--block-border-radius":I},children:S.map(({block:e,row:t,rowSpan:r,column:n,w:o})=>(0,lh.jsx)("div",{className:"page-preview-block-cell",style:{gridRow:r>1?`${t} / span ${r}`:t,gridColumn:2===o?"1 / -1":n,height:rz(e,C.get(e.id))},children:(0,lh.jsx)("div",{className:"h-full",children:(0,lh.jsx)(fF,{block:e,...E,connectedAccountData:f[e.id]?.account,connectedAccountVideos:f[e.id]?.videos,connectedAccountPlatform3Content:f[e.id]?.content,containerHeight:r_(e,C.get(e.id),2===o?P:rM(P)),containerWidth:P,onMeasuredHeight:t=>N(e.id,t)}
16)})},e.id))})}function fU({logo:e,isMobile:t}){let r=e.path.startsWith("http")?e.path:iZ(e.path);return r?(0,lh.jsx)("div",{style:{position:"absolute",top:"16px",left:"16px",zIndex:30,pointerEvents:"none"},children:(0,lh.jsx)("img",{src:r,alt:"",style:{maxHeight:t?"32px":"48px",maxWidth:t?"80px":"120px",objectFit:"contain",display:"block"}})}):null}e.s(["BlocksPreview",()=>fB],86783);let fH={editor:{showPhoneFrame:e=>!e,frameRadius:"32px",frameShadow:"shadow-[0_25px_50px_-12px_rgba(0,0,0,0.15)]",width:e=>e?"full":"fixed",showDesktopBackground:!1,showPageBackground:!0,fillContainerHeight:!1,fillViewportHeight:e=>e,showSignupFooter:!0,showSignupPopup:!0,enableDialogs:!0,shopBarOnScroll:!0,shopPin:"fixed",getWrapperClassName:()=>"relative w-full",getContentClassName:e=>e?"w-full":"flex w-full flex-col items-center justify-start"},public:{showPhoneFrame:e=>!e,frameRadius:"32px",frameShadow:"shadow-[0_25px_50px_-12px_rgba(0,0,0,0.15)]",width:e=>e?"full":"fixed",showDesktopBackground:!0,showPageBackground:!0,fillContainerHeight:!0,fillViewportHe
16ight:e=>e,showSignupFooter:!0,showSignupPopup:!0,enableDialogs:!0,shopBarOnScroll:!0,getWrapperClassName:e=>e?"relative flex-1 w-full":"relative flex-1 w-full px-4 py-8",getContentClassName:e=>e?"flex flex-1 flex-col w-full":"flex flex-1 w-full flex-col items-center justify-start"},wizard:{showPhoneFrame:()=>!0,frameRadius:"32px",frameShadow:"shadow-xl",width:e=>e?"full":"fixed",canvasWidthPx:420,showDesktopBackground:!1,showPageBackground:!0,fillContainerHeight:!1,fillViewportHeight:()=>!1,showSignupFooter:!1,showSignupPopup:!1,enableDialogs:!1,getWrapperClassName:()=>"flex flex-col items-center",getContentClassName:()=>""},thumbnail:{showPhoneFrame:()=>!1,frameRadius:"0px",frameShadow:"",width:()=>"full",showDesktopBackground:!1,showPageBackground:!0,fillContainerHeight:!0,fillViewportHeight:()=>!1,showSignupFooter:!1,showSignupPopup:!1,enableDialogs:!1,showShopActions:!1,getWrapperClassName:()=>"h-full",getContentClassName:()=>"h-full"},claim:{showPhoneFrame:e=>!e,frameRadius:"32px",frameShadow:"shadow-[0_25px_50px_-12px_rgba(0,0,0,0.15)]",width:e=>e?"full":"fixed",showDesktopBackground:!0,showPageBackground:!0,fillContainerHeight:!1,fillViewportHe
16ight:()=>!0,showSignupFooter:!1,showSignupPopup:!1,enableDialogs:!1,getWrapperClassName:()=>"relative flex-1 w-full",getContentClassName:e=>e?"flex flex-1 flex-col w-full":"flex flex-1 w-full flex-col items-center justify-start"}};function fW(e){return fH[e]}function fG({preset:e,isMobile:t,surfaces:r,frameRadiusStyle:n,agencyLogo:o,className:l,wrapperClassName:i,contentClassName:a,wrapperStyle:s,phoneFrameHeightStyle:d,desktopBackgroundMode:c,backgroundLayer:u,children:m,desktopFooter:f,placeDesktopFooterInContent:p=!0,scrollTopRadius:h=!1,fluidCanvasZoom:b=!1}){let g,x,y=!b&&t,v=e.showPhoneFrame(y),$=h&&v,{frameRef:w}=(g=(0,lx.useRef)(null),x=(0,lx.useRef)(null),uw(()=>{if(!$||"undefined"!=typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("animation-timeline","scroll()"))return;let e=()=>{x.current=null;let e=g.current;if(!e)return;if(window.innerWidth<572)return void e.style.removeProperty(uk);let t=rt({frameTop:e.getBoundingClientRect().top,scrolled:window.scrollY,maxRadius:32});e.style.setProperty(uk,`${t}px`)},t=()=>{x.current??=window.requestAnimationFrame(e)};return e(),window.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t),()=>{null!==x.current&&window.cancelAnimationFrame(x.current),x.current=null,window.removeEventListener("scroll",t),window.removeEventListener("resize",t),g.current?.style.removeProperty(uk)}},[$]),{frameRef:g}
16),k=0===r.pageBackgroundTopInset,C=r.pageBackgroundIsTransparent&&!r.pageBackgroundMedia?"":e.frameShadow,j=$&&k?uN:{},N=k?"":void 0,S=e.width(y),P=mr(e.getWrapperClassName(y),b&&"max-[572px]:px-0 max-[572px]:py-0",i,l),I=mr(e.getContentClassName(y),a),E=null!=e.canvasWidthPx&&e.canvasWidthPx>0?e.canvasWidthPx:null,T=b?{}:"fixed"!==S?null!=E?{maxWidth:E}:{}:null!=E?{width:480,zoom:E/480}:tU,L=$?(0,lh.jsx)("div",{"data-page-frame-surface":"","data-page-frame-bottom":"",className:mr("pointer-events-none absolute inset-0 -z-10",C,"max-[572px]:shadow-none"),style:n,"aria-hidden":!0}):null,R=(0,lh.jsxs)("div",{ref:w,className:mr("relative z-10",!b&&"w-full",v&&!$&&"overflow-hidden",v&&!$&&C,b&&"max-[572px]:shadow-none",b&&v&&"v3-page-frame-flush",b&&tH,$&&uC,"full"===S&&"min-w-0",e.fillContainerHeight&&!v&&"h-full",b&&e.fillContainerHeight&&"max-[572px]:h-full"),style:{fontFamily:r.fontFamily,...T,...v&&!$?n:{},...d},children:[L,e.showPageBackground?(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsx)("div",{"data-page-frame-surface":N,"data-page-frame-bottom":"",className:"pointer-events-none absolute inset-x-0 bottom-0 z-0 bg-background",style:{top:r.pageBackgroun
16dTopInset,...r.pageBackgroundStyle,...v?n:{},transition:r8,...j},"aria-hidden":!0}),r.pageBackgroundMedia?.type==="video"&&r.pageMediaUrl?(0,lh.jsx)("div",{"data-page-frame-surface":N,"data-page-frame-bottom":"",className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] overflow-hidden",style:{top:r.pageBackgroundTopInset,...v?n:{},transition:r8,...j},children:(0,lh.jsx)("video",{src:r.pageMediaUrl,className:"size-full object-cover",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,"aria-hidden":!0})}):null]}):null,o?.path?(0,lh.jsx)(fU,{logo:o,isMobile:y}):null,(0,lh.jsx)("div",{className:"relative z-10 min-h-0 overflow-visible",children:m})]}),M=r.desktopBackgroundMedia?.type==="video"&&r.desktopMediaUrl?(0,lh.jsx)("video",{src:r.desktopMediaUrl,className:"absolute inset-0 size-full object-cover",autoPlay:!0,muted:!0,loop:!0,playsInline:!0}):null,A=(0,lh.jsxs)("div",{className:mr("none"!==c&&"relative z-10",I),style:v?void 0:s,children:[R,p?f:null]});return(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsxs)("div",{className:"preview-canvas contents",children:[u,"fixed"===c?(0,lh.jsx)("div",{className:"fixed inset-0 -z-10",style:r.desktopBackgroundStyle,"aria-hidden":!0,children:M}):null,(0,lh.jsxs)("div",{className:P,style:"in-flow"===c?{...r.desktopBackgroundStyle,...s}:s,children:["in-flow"===c?M:null,A]})]}),p?null:f]})}function fq(e){let{page:t,surfaces:r}=e;return u(t).shop?(0,lh.jsx)(u8,{enabled:!0,textColor:r.titleTextColor,backgroundColor:r.effectivePageBackgroundColor,borderRadius:r.blockBorderRadius,buttonColor:r.blockButtonColor,iconColor:r.iconColor,profileName:t.name,profileMedia:t.profileMedia,cartPage:!0,urlSync:e.urlSync,showActions:e.showActions,barOnScroll:e.barOnScroll,pin:e.pin,frameTopRadius:e.frameTopRadius,storageKey:t._id,affiliateTag:e.affiliateTag,onShopAction:e.onShopAction,children:(0,lh.jsx)(fV,{...e})}):(0,lh.jsx)(fV,{...e})}function fV({page:e,allLinks:t,surfaces:r,verified:n,isMobile:o,useCssBreakpoints:l,urlSync:i=!1,shopContent:a,badgeSummary:s,badge:d="none",onOpenBadge:c,blocks:m,mobileFooter:f,onAdultSocialClick:p,onSocialClick:h,onSocialChoiceRequest:b}){let{profilePresentation:g,socialIconPosition:x}=r,y=s&&s.accounts.length>0&&s?(0,lh.jsx)(fO,{summary:s,badge:d,textColor:g.profileTextColor,onOpenBreakdown:c}):null,v=e.socials??[],$=u(e),[w,k]=(0,lx.useState)($.default),C=$[w]?w:$.default,j=u5(),N=j?.setIsShop,S=$.shop&&"shop"===C,P=!!j?.isCartOpen,I=!!(P||j?.isBrowseOpen||j?.isSearchOpen);(0,lx.useEffect)(()=>{N?.(S)},[S,N]),(0,lx.useLayoutEffect)(()=>{var e;if(!i||!$.shop)return;let t=window.location.search;((e=uX(t)).collectionId||e.productId||u0(t))&&k("shop")},[$.shop,i]);let E=e=>(0,lh.jsx)(fA,{socials:v,iconColor:r.iconColor,iconBackgroundColor:r.iconBackgroundColor,iconShape:r.iconShape,allLinks:t,badge:y,onAdultSocialClick:p,onSocialClick:h?(t,r,n)=>h(t,r,e,n):void 0,onSocialChoiceRequest:b?t=>b(t,e):void 0}),T=a??(0,lh.jsx)(mn,{icon:lT,title:"Nothing in the shop yet",description:"Products added to this shop will show up here."});return(0,lh.jsxs)(lh.Fragment,{children:[(0,lh.jsxs)("div",{className:mr(fj,I&&"pb-0"),children:[I?null:(0,lh.jsx)(fC,{name:e.name,bio:e.bio,profileMedia:e.profileMedia,nameFontSize:g.nameFontSize,nameAlignment:g.nameAlignment,nameImageHeight:g.nameImageHeight,bioFontSize:g.bioFontSize,bioAlignment:g.bioAlignment,profileTextColor:g.profileTextColor,profileDisplayType:g.profileDisplayType,profileImageHeight:g.profileImageHeight,profileBorderColor:g.profileBorderColor,verified:n,isMobile:o,useCssBreakpoints:l}),I||"top"!==x?null:E("top"),(0,lh.jsxs)("div",{className:"relative",style:I?{paddingTop:80}:void 0,children:[I?null:(0,lh.jsx)(lg,{tabs:$,active:C,onChange:k,textColor:g.profileTextColor,backgroundColor:r.effectivePageBackgroundColor,borderRadius:r.blockBorderRadius}),P&&j?(0,lh.jsx)(mc,{onContinue:j.closeCart}):null,(0,lh.jsx)("div",{className:mr(I?"px-4":fN,P&&"invisible absolute inset-x-0 top-0 h-0 overflow-hidden"),"aria-hidden":!!P||void 0,inert:!!P||void 0,children:(0,lh.jsx)(lw,{tabs:$,active:C,unmountWhenHidden:!0,links:m,shop:T})})]}),I||"bottom"!==x?null:E("bottom")]}),f]})}e.s(["resolvePreset",()=>fW],57852),e.s(["PagePreviewChrome",()=>fG],7166),e.s(["PagePreviewStack",()=>fq],9227),e.s([],2963);let fK=lx.useLayoutEffect;function fY(){let[e,t]=(0,lx.useState)(void 0);return fK(()=>{let e=window.matchMedia(`(max-width: ${571}px)`),r=()=>{t(window.innerWidth<572)};return e.addEventListener("change",r),t(window.innerWidth<572),()=>e.removeEventListener("change",r)},[]),e}e.s(["useIsomorphicLayoutEffect",0,fK],81722),e.s(["MOBILE_BREAKPOINT",0,572,"useIsMobile",()=>fY],30656),e.s([],30700),e.s([],64572)},49765,99673,32967,84613,63388,49165,12493,93354,57598,67083,84333,83123,34107,56460,20340,e=>{"use strict";let t="font-semibold transition-colors";e.s(["previewPrimaryCtaClassName",0,t,"previewPromoAccentTextClassName",0,"text-[#67c9d0]"],99673);var r=e.i(43476),n=e.i(7670),o=e.i(19056);function l(...e){return(0,o.twMerge)((0,n.clsx)(e))}function i(e){let t=u(e);if(!t)return .85;let{r,g:n,b:o}=t;return(.299*r+.587*n+.114*o)/255}let a={backgroundColor:"#000000",backgroundColorHover:"#1f1f1f",color:"#ffffff",isLightBg:!1};function s(e,t="mobile"){let r,n=e?.trim()||"#f3f4f6",o=i(n),l=o>=.5,m=u(n)??{r:243,g:244,b:246};if(r=(Math.max(m.r,m.g,m.b)-Math.min(m.r,m.g,m.b))/255,o>=.95&&r<=.08)return a;
16if("desktop"===t){let e=l?d(m,{r:0,g:0,b:0},.1):d(m,{r:255,g:255,b:255},.1);return{backgroundColor:c(m),backgroundColorHover:c(e),color:l?"#000000":"#ffffff",isLightBg:l}}return l?{backgroundColor:c(d(m,{r:0,g:0,b:0},.18)),backgroundColorHover:c(d(m,{r:0,g:0,b:0},.28)),color:"#000000",isLightBg:l}:{backgroundColor:c(d(m,{r:255,g:255,b:255},.22)),backgroundColorHover:c(d(m,{r:255,g:255,b:255},.32)),color:"#ffffff",isLightBg:l}}function d(e,t,r){return{r:Math.round(e.r+(t.r-e.r)*r),g:Math.round(e.g+(t.g-e.g)*r),b:Math.round(e.b+(t.b-e.b)*r)}}function c({r:e,g:t,b:r}){return`#${[e,t,r].map(e=>Math.max(0,Math.min(255,e)).toString(16).padStart(2,"0")).join("")}`}function u(e){let t=e.trim().toLowerCase();if(!t||"transparent"===t)return null;let r=t.match(/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)/);if(r)return{r:Number(r[1]),g:Number(r[2]),b:Number(r[3])};let n=t.match(/^rgba?\(\s*([\d.]+)\s+([\d.]+)\s+([\d.]+)/);if(n)return{r:Number(n[1]),g:Number(n[2]),b:Number(n[3])};let o=t.startsWith("#")?t.slice(1):t;if(!/^[0-9a-f]+$/i.test(o))return null;let l=o;if(3===o.length||4===o.length)l=o.slice(0,3).split("").map(e=>e+e).join("");else if(8===o.length)l=o.slice(0,6);else if(6!==o.length)return null;let i=parseInt(l.slice(0,2),16),a=parseInt(l.slice(2,4),16),s=parseInt(l.slice(4,6),16);return[i,a,s].some(e=>Number.isNaN(e))?null:{r:i,g:a,b:s}}let m="m-0 border-0 bg-transparent p-0 font-[inherit] cursor-pointer hover:underline";function f({signupUrl:e,primaryCtaClassName:t,className:n,backgroundColor:o="#ffffff",pageBackgroun
16dColor:a,ctaVariant:d="mobile",onAboutClick:c,onReportClick:u,onTermsClick:f,onPrivacyClick:p,termsHref:h="/terms",privacyHref:b="/privacy",iconSrc:g,onCtaClick:x,rootRef:y,showCta:v=!0}){let $=i(o?.trim()||"#f3f4f6")>=.5,w=$?"rgba(0, 0, 0, 0.4)":"rgba(255, 255, 255, 0.55)",k=$?"rgba(0, 0, 0, 0.65)":"rgba(255, 255, 255, 0.85)",C={color:w},j=s(a??o,d),N=g??(j.isLightBg?"/dashboard-assets/hoobe-icon-black.svg":"/dashboard-assets/hoobe-icon-white.svg"),S={onMouseEnter:e=>{e.currentTarget.style.color=k},onMouseLeave:e=>{e.currentTarget.style.color=w}};return(0,r.jsxs)("div",{ref:y,className:l("flex w-full flex-col items-center",n),children:[v?(0,r.jsx)("div",{className:"flex w-full flex-col items-center py-16",children:(0,r.jsxs)("a",{href:e,target:"_blank",rel:"noopener noreferrer",onClick:x,className:l("inline-flex items-center justify-center gap-2 rounded-xl px-6 py-2.5 text-base",t),style:{backgroundColor:j.backgroundColor,color:j.color},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=j.backgroundColorHover},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=j.backgroundColor},children:[(0,r.jsx)("img",{src:N,alt:"","aria-hidden":"true",className:"size-7"}),"Create your hoo.be"]})}):null,(0,r.jsxs)("nav",{"aria-label":"Page footer",className:l("flex flex-wrap items-center justify-center pb-8 text-xs",v?void 0:"pt-16"),style:{color:w},children:[c?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:c,className:m,style:C,...S,children:"About"}),(0,r.jsx)("span",{"aria-hidden":"true",children:"  ·  "})]}):null,u?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:u,className:m,style:C,...S,children:"Report"}),(0,r.jsx)("span",{"aria-hidden":"true",children:"  ·  "})]}):null,f?(0,r.jsx)("button",{type:"button",onClick:f,className:m,style:C,...S,children:"Terms"}):(0,r.jsx)("a",{href:h,className:m,style:C,...S,children:"Terms"}),(0,r.jsx)("span",{"aria-hidden":"true",children:"  ·  "}),p?(0,r.jsx)("button",{type:"button",onClick:p,className:m,style:C,...S,children:"Privacy"}):(0,r.jsx)("a",{href:b,className:m,style:C,...S,children:"Privacy"})]})]})}e.s(["SignupFooter",()=>f],32967);var p=e.i(71645);let h=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},b=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var g={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let x=(0,p.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:l,iconNode:i,...a},s)=>(0,p.createElement)("svg",{ref:s,...g,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:b("lucide",o),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(a)&&{"aria-hidden":"true"},...a},[...i.map(([e,t])=>(0,p.createElement)(e,t)),...Array.isArray(l)?l:[l]])),y=(e,t)=>{let r=(0,p.forwardRef)(({className:r,...n},o)=>(0,p.createElement)(x,{ref:o,iconNode:t,className:b(`lucide-${h(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...n}));return r.displayName=h(e),r},v=y("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),$=y("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function w({isVisible:e,children:t,onClose:n,revealDelayMs:o,onShown:i}){let[a,s]=(0,p.useState)(!1);(0,p.useEffect)(()=>{let e=setTimeout(()=>{s(!0)},o);return()=>clearTimeout(e)},[o]);let d=e&&a,[c,u]=(0,p.useState)(!0);(0,p.useEffect)(()=>{if(d)return void u(!1);let e=setTimeout(()=>u(!0),500);return()=>clearTimeout(e)},[d]);let m=(0,p.useRef)(!1);return(0,p.useEffect)(()=>{d&&!m.current&&(m.current=!0,i?.())},[d,i]),(0,r.jsxs)("div",{"aria-hidden":!d||void 0,className:l("fixed bottom-0 left-0 right-0 z-[100] rounded-t-2xl bg-background p-6 shadow-[0_-3px_16px_rgba(0,0,0,0.12)] transition-transform duration-500 ease-out","min-[572px]:bottom-2 min-[572px]:left-auto min-[572px]:right-2 min-[572px]:rounded-2xl min-[572px]:p-4",d?"translate-y-0":"translate-y-[calc(100%+150px)]"),style:{pointerEvents:d?"auto":"none",visibility:c?"hidden":"visible"},children:[t,(0,r.jsx)("button",{type:"button",onClick:n,className:"absolute right-2 top-2 flex size-8 items-center justify-center rounded opacity-70 transition-opacity hover:opacity-100","aria-label":"Close",children:(0,r.jsx)($,{className:"size-4 text-foreground"})})]})}function k({isVisible:e,onClose:n,signupUrl:o,profileImageUrl:i,revealDelayMs:a=1e4,pageBackgroun
16dColor:d="#ffffff",ctaVariant:c,onShown:u,onCtaClick:m}){let f=s(d,c),[h,b]=(0,p.useState)(!1),g=h?"/dashboard-assets/placeholders/user.svg":i;return(0,p.useEffect)(()=>{b(!1)},[i]),(0,r.jsxs)(w,{isVisible:e,onClose:n,revealDelayMs:a,onShown:u,children:[(0,r.jsxs)("div",{className:"mb-2 flex min-w-[250px] items-center justify-center",children:[(0,r.jsx)("div",{className:"size-10 overflow-hidden rounded-full",children:(0,r.jsx)("img",{src:"/socials/square/hoobe-square.webp",alt:"Hoobe",className:"size-full object-cover"})}),(0,r.jsxs)("div",{className:"relative -ml-1",children:[(0,r.jsx)("div",{className:"absolute left-1/2 top-1/2 size-[45px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-background"}),(0,r.jsx)("div",{className:"relative z-[1] size-10 overflow-hidden rounded-full",children:(0,r.jsx)("img",{src:g,alt:"Creator",className:"size-full object-cover",onError:()=>b(!0)})})]})]}),(0,r.jsx)("div",{className:"text-center text-base font-semibold text-foreground",children:"Join top creators on hoo.be"}),(0,r.jsxs)("a",{href:o,target:"_blank",rel:"noopener noreferrer",onClick:m,className:l("mx-auto mt-4 flex items-center justify-center rounded-xl px-6 py-2.5 text-sm",t),style:{position:"relative",display:"flex",width:"100%",alignItems:"center",justifyContent:"center",backgroundColor:f.backgroundColor,color:f.color},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=f.backgroundColorHover},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=f.backgroundColor},children:["Sign up",(0,r.jsx)(v,{"aria-hidden":"true",style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)",width:16,height:16,color:f.color,pointerEvents:"none"}})]})]})}e.s(["SignupPopup",()=>k],84613);let C=y("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),j=y("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),N=y("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.i(1391);var S=e.i(43723);function P({children:e,className:t}){return e?(0,r.jsx)("div",{className:l("rounded-lg bg-red-50 p-3 text-sm text-red-500",t),children:e}):null}function I({message:e,onDone:t,doneLabel:n="Done",description:o}){return(0,r.jsxs)("div",{className:"flex flex-col items-center gap-3 py-2 text-center",children:[(0,r.jsx)("div",{className:"mx-auto flex h-16 w-16 items-center justify-center rounded-full bg-green-100",children:(0,r.jsx)(j,{className:"h-8 w-8 text-green-500"})}),e?(0,r.jsx)("div",{className:"text-foreground",style:{fontSize:18,fontWeight:600,lineHeight:1.3},children:e}):null,o?(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:o}):null,(0,r.jsx)("button",{type:"button",onClick:t,className:l("inline-flex h-12 w-full items-center justify-center rounded-xl bg-foreground text-sm font-medium text-background transition-colors hover:bg-foreground
16/90 disabled:pointer-events-none disabled:opacity-50","mt-3"),children:n})]})}function E({id:e,checked:t,disabled:n=!1,onToggle:o,children:i}){let a=`${e}-label`;return(0,r.jsxs)("div",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[(0,r.jsx)("button",{id:e,type:"button",role:"checkbox","aria-checked":t,"aria-labelledby":a,disabled:n,onClick:o,style:{borderRadius:4},className:l("mt-0.5 flex size-4 shrink-0 items-center justify-center border transition-colors",t?"border-transparent bg-foreground text-background":"border-neutral-200 bg-white",n&&"cursor-default opacity-50",!n&&"cursor-pointer"),children:t?(0,r.jsx)(C,{className:"size-3",strokeWidth:3}):null}),(0,r.jsx)("p",{id:a,className:"leading-snug",children:i})]})}function T({consented:e,isSubmitting:t,onToggle:n,onTermsClick:o}){return(0,r.jsxs)(E,{id:"contact-consent",checked:e,disabled:t,onToggle:n,children:[(0,r.jsx)("label",{htmlFor:"contact-consent",className:"cursor-pointer",children:S.CONTACT_CONSENT_PREFIX}),o?(0,r.jsx)("button",{type:"button",onClick:o,className:"text-foreground underline underline-offset-2",children:S.CONTACT_CONSENT_TERMS_LABEL}):(0,r.jsx)("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",className:"text-foreground underline underline-offset-2",children:S.CONTACT_CONSENT_TERMS_LABEL})]})}e.s(["ConsentTermsRow",()=>T,"DialogSuccessBody",()=>I,"FormErrorBanner",()=>P],63388);var L=e.i(94102);let R=(0,p.createContext)(null);function M({Shell:e,children:t}){return(0,r.jsx)(R.Provider,{value:e,children:t})}function A(){let e=(0,p.useContext)(R);if(!e)throw Error("Creator dialogs must render inside CreatorDialogShellProvider");return e}e.s(["CreatorDialogShellProvider",()=>M,"useCreatorDialogShell",()=>A],49165);var _=e.i(93617);e.i(75080);var O=e.i(74385);function z({open:e,onOpenChange:t,handle:n,displayName:o,bio:l,profileMediaPath:i,verified:a=!1,isMobile:s}){let d=A(),c=(0,_.getMediaUrl)(i)??O.DEFAULT_PROFILE_PLACEHOLDER,u=o?.trim()||n,m=`hoo.be/${n.replace(/^@/,"")}`;return(0,r.jsx)(d,{open:e,onOpenChange:t,isMobile:s,title:"About this creator",children:(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:12,paddingTop:s?8:4,paddingBottom:s?8:4,fontFamily:"var(--font-poppins), sans-serif"},children:[(0,r.jsx)("img",{src:c,alt:"",width:88,height:88,style:{width:88,height:88,borderRadius:"50%",objectFit:"cover",backgroundColor:"#f3f4f6"}}),(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,r.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:6,fontSize:18,fontWeight:600,color:L.DIALOG_INK,lineHeight:1.3},children:[(0,r.jsx)("span",{children:u}),a?(0,r.jsx)("img",{src:"/dashboard-assets/verified-check.svg",alt:"Verified",width:18,height:18}):null]}),(0,r.jsx)("div",{style:{fontSize:14,fontWeight:500,color:"#6b7280",lineHeight:1.3},children:m})]}),l?.trim()?(0,r.jsx)("p",{style:{margin:0,marginTop:4,fontSize:14,lineHeight:1.5,color:"#374151",maxWidth:360,whiteSpace:"pre-wrap"},children:l.trim()}):null]})})}e.s(["AboutCreatorDialog",()=>z],12493);let F=y("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),D=y("baby",[["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"11xh7x"}],["path",{d:"M9 12h.01",key:"157uk2"}]]),B=y("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]),U=y("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),H=y("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]),W=y("message-circle-more",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]]),G=y("octagon-x",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),q=y("user-round-x",[["path",{d:"M2 21a8 8 0 0 1 11.873-7",key:"74fkxq"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m17 17 5 5",key:"p7ous7"}],["path",{d:"m22 17-5 5",key:"gqnmv0"}]]);function V(e,t){return e?.trim()||t.replace(/^@/,"")}function K(e){return`hoo.be/${e.replace(/^@/,"")}`}let Y={margin:0,fontSize:14,fontWeight:600,color:L.DIALOG_INK,lineHeight:1.3},Z={margin:0,fontSize:14,lineHeight:1.5,color:"#4b5563"},X={margin:0,paddingLeft:20,fontSize:14,lineHeight:1.5,color:"#4b5563",listStyleType:"disc",listStylePosition:"outside"},J={marginBottom:6};function Q({title:e,children:t}){return(0,r.jsxs)("section",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,r.jsx)("h3",{style:Y,children:e}),"string"==typeof t?(0,r.jsx)("p",{style:Z,children:t}):t]})}function ee({children:e}){return(0,r.jsx)("p",{style:Z,children:e})}function et({items:e}){return(0,r.jsx)("ul",{style:X,children:e.map((t,n)=>(0,r.jsx)("li",{style:{...J,marginBottom:6*(n!==e.length-1)},children:t},t))})}let er="max-h-[40vh] overflow-y-auto";function en({children:e}){return(0,r.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:16,fontFamily:"var(--font-poppins), sans-serif"},children:e})}let eo={color:L.DIALOG_INK,fontWeight:500,textDecoration:"underline",cursor:"pointer"};function el({href:e,label:t,disabled:n=!1}){return(0,r.jsxs)(ee,{children:[`You can read the full ${t} `,n?(0,r.jsx)("span",{style:{...eo,color:"#9ca3af",cursor:"default"},children:"here"}):(0,r.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",style:eo,children:"here"}),"."]})}let ei=`
17.hoobe-report-reason-row {
18  transition:
19    border-color 150ms ease,
20    background-color 150ms ease;
21}
22.hoobe-report-check {
23  width: 18px;
24  height: 18px;
25  border-radius: 50%;
26  border: 1.5px solid #d1d5db;
27  background-color: #ffffff;
28  display: flex;
29  align-items: center;
30  justify-content: center;
31  flex-shrink: 0;
32  box-sizing: border-box;
33  transition:
34    background-color 150ms ease,
35    border-color 150ms ease;
36}
37.hoobe-report-check[data-selected='true'] {
38  border-color: ${L.DIALOG_INK};
39  background-color: ${L.DIALOG_INK};
40}
41.hoobe-report-check-icon {
42  width: 11px;
43  height: 11px;
44  color: ${L.DIALOG_INK_ON_FILL};
45  opacity: 0;
46  transition: opacity 150ms ease;
47}
48.hoobe-report-check[data-selected='true'] .hoobe-report-check-icon {
49  opacity: 1;
50}
51@media (prefers-reduced-motion: reduce) {
52  .hoobe-report-reason-row,
53  .hoobe-report-check,
54  .hoobe-report-check-icon {
55    transition: none;
56  }
57}
58`,ea=[{id:"involves_minors",Icon:D,title:"Involves minors"},{id:"non_consensual",Icon:B,title:"Non-consensual content"},{id:"harassment",Icon:F,title:"Harassment or threats"},{id:"sexual_exploitation",Icon:U,title:"Sexual exploitation"},{id:"impersonation",Icon:q,title:"Impersonation"},{id:"scam",Icon:H,title:"Scam or harmful links"},{id:"hate_speech",Icon:G,title:"Hate speech"},{id:"something_else",Icon:W,title:"Something else"}];function es({open:e,onOpenChange:t,handle:n,pageId:o,isMobile:l,disableActions:i=!1}){let a=A(),[s,d]=(0,p.useState)(null),[c,u]=(0,p.useState)(""),[m,f]=(0,p.useState)(!1),[h,b]=(0,p.useState)(!1),[g,x]=(0,p.useState)(null),y=n.replace(/^@/,""),v="something_else"===s,$=c.trim(),w=!i&&!!s&&(!v||$.length>
580),k=i||m||!w,S=e=>{m||(e||(d(null),u(""),f(!1),b(!1),x(null)),t(e))},P=async()=>{if(!i){if(!s)return void x("Please select a reason");if(v&&!$)return void x("Please describe the issue");f(!0),x(null);try{let e=await fetch("/api/reports",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:y,reason:s,...o?{pageId:o}:{},...v?{details:$}:{}})}),t=await e.json();if(!e.ok)return void x(t.error||"Failed to submit report");b(!0)}catch(e){x(e instanceof Error?e.message:"Failed to submit report")}finally{f(!1)}}},I=(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:12,padding:"8px 0 4px",fontFamily:"var(--font-poppins), sans-serif"},children:[(0,r.jsx)("div",{style:{display:"flex",height:64,width:64,alignItems:"center",justifyContent:"center",borderRadius:9999,backgroundColor:"#dcfce7"},children:(0,r.jsx)(j,{style:{width:32,height:32,color:"#22c55e"},"aria-hidden":!0})}),(0,r.jsx)("div",{style:{fontSize:18,fontWeight:600,lineHeight:1.3,color:L.DIALOG_INK,fontFamily:"var(--font-poppins), sans-serif"},children:"Thank you for reporting!"}),(0,r.jsx)("p",{style:{margin:0,fontSize:14,lineHeight:1.5,color:"#6b7280"},children:"We review reports as quickly as we can. You can close this window."})]}),E={height:48,width:"100%",padding:"0 16px",borderRadius:12,border:"none",color:L.DIALOG_INK_ON_FILL,fontSize:14,fontWeight:600,fontFamily:"var(--font-poppins), sans-serif",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8},T=(0,r.jsx)("button",{type:"button",onClick:()=>S(!1),style:{...E,backgroundColor:L.DIALOG_INK,cursor:"pointer"},children:"Done"}),R=(0,r.jsx)("button",{type:"button",onClick:P,disabled:k,style:{...E,backgroundColor:k?"#9ca3af":L.DIALOG_INK,cursor:k?"not-allowed":"pointer"},children:m?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(N,{style:{width:16,height:16,animation:"spin 1s linear infinite"}}),"Submitting..."]}):"Submit report"}),M=h?null:(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16,fontFamily:"var(--font-poppins), sans-serif"},children:[(0,r.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:ea.map(e=>{let t=s===e.id,{Icon:n}=e;return(0,r.jsxs)("button",{type:"button","aria-pressed":t,className:"hoobe-report-reason-row",onClick:()=>{let r=t?null:e.id;d(r),"something_else"!==r&&u(""),x(null)},style:{display:"flex",alignItems:"center",gap:12,width:"100%",padding:"12px 14px",borderRadius:12,border:t?"1.5px solid #9ca3af":"1.5px solid #e5e7eb",backgroundColor:t?"#f3f4f6":"#ffffff",cursor:"pointer",textAlign:"left"},children:[(0,r.jsx)(n,{style:{width:20,height:20,color:"#6b7280",flexShrink:0},"aria-hidden":!0}),(0,r.jsx)("span",{style:{fontSize:14,fontWeight:600,color:L.DIALOG_INK,lineHeight:1.3,minWidth:0,flex:1},children:e.title}),(0,r.jsx)("span",{"aria-hidden":!0,className:"hoobe-report-check","data-selected":t,children:(0,r.jsx)(C,{className:"hoobe-report-check-icon",strokeWidth:3})})]},e.id)})}),v?(0,r.jsx)("textarea",{value:c,onChange:e=>{u(e.target.value),x(null)},placeholder:"Tell us what’s going on…",rows:4,maxLength:2e3,style:{width:"100%",boxSizing:"border-box",resize:"vertical",minHeight:96,borderRadius:12,border:"1px solid #e5e7eb",backgroundColor:"#f9fafb",padding:"12px 14px",fontSize:14,lineHeight:1.45,fontFamily:"var(--font-poppins), sans-serif",color:L.DIALOG_INK,outline:"none"}}):null,g?(0,r.jsx)("div",{style:{fontSize:14,color:"#ef4444"},children:g}):null,l?R:null]});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{children:ei}),(0,r.jsx)(a,{open:e,onOpenChange:S,isMobile:l,title:h?"Thank you for reporting!":`Report ${y}`,hideTitle:h,description:h?void 0:"Help us understand what feels off about this profile.",contentClassName:l||h?void 0:er,footer:h?T:l?void 0:R,children:h?I:M})]})}e.s(["ReportCreatorDialog",()=>es],93354);let ed={hasTips:!1,hasContactCollection:!1,hasTrackingPixels:!1};function ec({open:e,onOpenChange:t,handle:n,displayName:o,features:l=ed,isMobile:i,disableActions:a=!1}){let s=A(),d=V(o,n),c=K(n);return(0,r.jsx)(s,{open:e,onOpenChange:t,isMobile:i,title:`Terms for ${d}'s page`,contentClassName:i?void 0:er,children:(0,r.jsxs)(en,{children:[(0,r.jsx)(Q,{title:`${d}'s page on hoo.be`,children:`${c} is a public page published by ${d} and hosted by FNL Technologies, Inc. ("hoo.be"). By using this page you agree to follow hoo.be's Terms of Service. This summary explains what that means while you're on ${d}'s page — it isn't a substitute for the full Terms.`}),(0,r.jsx)(Q,{title:"Content and links",children:(0,r.jsx)(et,{items:[`${d} chooses the links, media, and copy on this page`,"Third-party sites you open from here have their own terms and privacy practices","hoo.be does not endorse every destination linked from a creator page","We may remove or restrict content that violates our policies"]}
58)}),(0,r.jsx)(Q,{title:"How you should use this page",children:(0,r.jsx)(et,{items:["Use the page for lawful, personal browsing","Don't scrape, attack, or try to disrupt the Service","Don't impersonate others or misuse report / contact tools","Don't submit false information through forms or tips"]})}),l.hasTips?(0,r.jsx)(Q,{title:"Tips",children:`Tips sent to ${d} are voluntary payments processed through Stripe. Amounts, fees, refunds, and payout timing follow our Terms and Stripe's rules. Tip only if you're comfortable with the amount shown.`}):null,l.hasContactCollection?(0,r.jsx)(Q,{title:"Contacting the creator",children:`If you submit contact or form details to ${d}, you're asking them to receive that information. Don't share anything you aren't willing to give ${d}. Spam, harassment, or illegal submissions aren't allowed.`}):null,(0,r.jsx)(Q,{title:"Safety and reporting",children:"If something on this page looks scammy, abusive, or otherwise wrong, use Report in the page footer. We review reports and may take action under our Terms, including removing content or restricting accounts."}),(0,r.jsx)(ee,{children:"The full Terms of Service govern your use of hoo.be, including this page, accounts, payments, and enforcement."}),(0,r.jsx)(el,{href:"/terms",label:"Terms of Service",disabled:a})]})})}e.s(["CreatorTermsDialog",()=>ec],57598);let eu={hasTips:!1,hasContactCollection:!1,hasTrackingPixels:!1};function em({open:e,onOpenChange:t,handle:n,displayName:o,features:l=eu,isMobile:i,disableActions:a=!1}){let s=A(),d=V(o,n),c=K(n);return(0,r.jsx)(s,{open:e,onOpenChange:t,isMobile:i,title:`Privacy on ${d}'s page`,contentClassName:i?void 0:er,children:(0,r.jsxs)(en,{children:[(0,r.jsx)(Q,{title:"This page is hosted by hoo.be",children:`${d} built this page on hoo.be. FNL Technologies, Inc. ("hoo.be") runs the platform that loads ${c}, measures basic traffic, and keeps the Service secure. This summary is about visiting this creator's page — not a replacement for our full Privacy Policy.`}),(0,r.jsxs)(Q,{title:"What we collect when you visit",children:[(0,r.jsxs)(ee,{children:["When you open this page, hoo.be collects standard analytics so"," ",d," can see how the page performs. That typically includes:"]}),(0,r.jsx)(et,{items:["Pages viewed and links clicked","Device, browser, and approximate (city-level) location from IP","Referrer and campaign information","Cookie-based visitor and session identifiers"]}),(0,r.jsxs)(ee,{children:["This data is used to operate the Service, prevent abuse, and show"," ",d," aggregated stats (views, clicks, top locations). Creators do not see your IP address."]})]}),l.hasContactCollection?(0,r.jsx)(Q,{title:`Info you send to ${d}`,children:`This page may include forms or contact tools. If you submit your name, email, phone, or other details, that information goes to ${d} (and is also stored by hoo.be to run the feature and prevent fraud). ${d} is responsible for how they use what you send. To request removal, contact ${d} or email [email protected].`}):null,l.hasTips?(0,r.jsx)(Q,{title:"Tips and payments",children:`If you tip ${d} on this page, payment details are processed by Stripe. hoo.be does not store your full card number. Transaction records related to the tip may be kept to run payouts, receipts, and fraud checks.`}):null,l.hasTrackingPixels?(0,r.jsx)(Q,{title:"Creator tracking pixels",children:`${d} has enabled optional advertising pixels (such as Meta or TikTok) on this page. Those platforms may receive visit data directly from the page. hoo.be does not control how Meta or TikTok use that data — ${d} is responsible for using pixels lawfully.`}):null,(0,r.jsx)(Q,{title:"Your choices",children:(0,r.jsx)(et,{items:["You can browse without creating an account","You can skip forms, tips, and other optional actions","You can report this profile from the page footer if something feels off","You can limit cookies in your browser (some features may break)"]})}),(0,r.jsx)(ee,{children:"The full Privacy Policy covers how FNL / hoo.be collects and uses information across the whole Service."}),(0,r.jsx)(el,{href:"/privacy",label:"Privacy Policy",disabled:a})]})})}e.s(["CreatorPrivacyDialog",()=>em],67083);var ef=e.i(7881);function ep({open:e,onOpenChange:t,payload:n,isMobile:o,onLinkClick:l,onBlockInteraction:i}){let a=A();if(!n)return null;let s=(0,ef.spotifyStreamingDialogTitle)(n.links);return(0,r.jsx)(a,{open:e,onOpenChange:t,isMobile:o,title:s,description:(0,r.jsx)(ef.
58SpotifyStreamingDialogDescription,{links:n.links}),children:(0,r.jsx)(ef.SpotifyStreamingDialogBody,{block:n.block,links:n.links,theme:n.theme,onLinkClick:l,onBlockInteraction:i})})}e.s(["SpotifyStreamingLinksDialog",()=>ep],84333);let eh=y("external-link",[["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"}]]);e.i(80464);var eb=e.i(15057),eg=e.i(90221);function ex({open:e,onOpenChange:t,payload:n,isMobile:o,onChoose:i}){let a=A();return n&&0!==n.options.length?(0,r.jsx)(a,{open:e,onOpenChange:t,isMobile:o,title:n.label,titleClassName:"!text-base font-semibold",contentClassName:"px-0 py-0",children:(0,r.jsx)("div",{className:"pb-2 pt-1",children:(0,r.jsx)("ul",{className:"flex w-full flex-col gap-1",children:n.options.map(e=>{let t=(0,eg.getSocialSvgPath)(e.social.icon)??"/socials/svgs/link.svg",{name:o,subline:a,ctaLabel:s}=(0,eb.formatSocialPlatformChoiceCopy)({url:e.url,platform:e.social.icon,title:e.title});return(0,r.jsx)("li",{children:(0,r.jsxs)("button",{type:"button",onClick:()=>i(e),className:l("group flex w-full items-center gap-3 rounded-xl p-2 text-left transition-colors","hover:bg-black/[0.04]"),"aria-label":s?`${s} ${o} on ${n.label}`:`Open ${o}`,children:[(0,r.jsx)("div",{className:"size-6 shrink-0 bg-neutral-900",style:{WebkitMaskImage:`url(${t})`,WebkitMaskSize:"contain",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center",maskImage:`url(${t})`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center"},"aria-hidden":!0}),(0,r.jsxs)("div",{className:"min-w-0 flex-1 text-left text-neutral-900",children:[(0,r.jsx)("p",{className:"truncate text-base font-semibold",children:o}),(0,r.jsx)("p",{className:"truncate text-xs opacity-70",children:a})]}),s?(0,r.jsx)("span",{className:"inline-flex h-8 flex-shrink-0 items-center justify-center rounded-md border border-neutral-200 bg-white px-3 text-xs font-medium text-neutral-900 transition-colors group-hover:bg-neutral-100","aria-hidden":!0,children:s}):(0,r.jsx)(eh,{className:"size-4 shrink-0 text-neutral-400 group-hover:text-neutral-700","aria-hidden":!0})]})},e.social.id)})})})}):null}e.s(["SocialPlatformLinksDialog",()=>ex],83123);let ey=y("calendar-days",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);e.i(60748);var ev=e.i(25112),e$=e.i(31338);e.i(86360);var ew=e.i(43041);let ek=[{id:"all",label:"All Dates"},{id:"nearby",label:"Near Me"}];function eC({open:e,onOpenChange:t,payload:n,isMobile:o,viewerGeoEndpoint:i=null,onLinkClick:a}){let s=A(),d=n?.nearMe?"nearby":"all",[c,u]=(0,p.useState)(d);(0,p.useEffect)(()=>{e&&u(d)},[e,d]);let{geo:m,status:f}=(0,ew.useViewerGeo)(e&&"nearby"===c?i:null),h=(0,p.useMemo)(()=>n?.links??[],[n]),b=(0,p.useMemo)(()=>(0,e$.filterNearbyLinkEvents)(h,m),[h,m]),g=(0,e$.hasUsableViewerGeo)(m),x="nearby"===c?b:h;if(!n)return null;let y=n.imagePath?(0,_.getMediaUrl)(n.imagePath):null,v=ek.findIndex(e=>e.id===c);return(0,r.jsx)(s,{open:e,onOpenChange:t,isMobile:o,title:(0,r.jsxs)("span",{className:"flex min-w-0 items-center gap-3",children:[(0,r.jsx)("span",{className:"flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-xl bg-neutral-100","aria-hidden":!0,children:y?(0,r.jsx)("img",{src:y,alt:"",className:"size-full object-cover"}):(0,r.jsx)(ey,{className:"size-5 text-neutral-500"})}),(0,r.jsxs)("span",{className:"min-w-0",children:[(0,r.jsx)("span",{className:"block truncate text-base font-semibold",children:n.title}),(0,r.jsx)("span",{className:"block truncate text-xs font-normal text-neutral-500",children:n.countLabel})]})]}),titleClassName:"!text-base font-semibold",contentClassName:"px-0 py-0",children:(0,r.jsxs)("div",{className:"pb-2 pt-1",children:[(0,r.jsx)("div",{role:"tablist","aria-label":"Event filters",className:"box-border flex h-11 w-full items-stretch rounded-xl bg-neutral-200 p-1",style:{"--surface-text":L.DIALOG_INK,"--surface-bg":L.DIALOG_INK_ON_FILL},children:(0,r.jsxs)("div",{className:"relative grid h-full w-full",style:{gridTemplateColumns:`repeat(${ek.length}, minmax(0, 1fr))`}
58,children:[(0,r.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-0 left-0 rounded-lg bg-white shadow-sm will-change-transform motion-reduce:!transition-none",style:{width:`${100/ek.length}%`,transform:`translateX(${100*v}%)`,transition:"transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1)"}}),ek.map(e=>{let t=e.id===c,n="nearby"===e.id&&g&&b.length>0?` (${b.length})`:"";return(0,r.jsxs)("button",{type:"button",role:"tab","aria-selected":t,onClick:()=>u(e.id),className:"relative z-10 flex h-full min-w-0 flex-1 items-center justify-center whitespace-nowrap px-3 text-center text-sm font-semibold transition-colors motion-reduce:!transition-none",style:{color:t?L.DIALOG_INK:"rgba(23,23,23,0.5)",transitionDuration:"320ms"},children:[e.label,n]},e.id)})]})}),(0,r.jsx)("div",{role:"tabpanel",className:"mt-3 min-h-[22rem]",children:"nearby"===c&&"loading"===f?(0,r.jsx)(ej,{children:"Finding nearby events…"}):"nearby"!==c||g?x.length>0?(0,r.jsx)("ul",{className:"flex w-full flex-col gap-1",children:x.map(e=>{let t=e.displayEvent??null,{month:o,day:i}=(0,ev.formatLinkEventDateStack)(t),{heading:s,locality:d}=(0,ev.linkEventRowLines)(e.displayTitle,t);return(0,r.jsx)("li",{children:(0,r.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",onClick:t=>a?.({linkId:e._id,blockId:n.block.id??"",url:e.url,title:e.displayTitle??null,popOutEnabled:e.displayPopOutEnabled||e.popOutEnabled||!1},t),className:l("group flex w-full items-center gap-3 rounded-xl p-2 text-left no-underline transition-colors","hover:bg-black/[0.04]"),"aria-label":`Open ${s}`,children:[(0,r.jsxs)("span",{className:"flex w-10 shrink-0 flex-col items-center rounded-lg bg-neutral-100 py-1.5 leading-none text-neutral-900",children:[(0,r.jsx)("span",{className:"text-[10px] font-medium uppercase tracking-wide opacity-70",children:o}),(0,r.jsx)("span",{className:"text-base font-semibold",children:i})]}),(0,r.jsxs)("span",{className:"min-w-0 flex-1 text-left text-neutral-900",children:[(0,r.jsx)("span",{className:"block truncate text-base font-semibold",children:s}),d?(0,r.jsx)("span",{className:"block truncate text-xs opacity-70",children:d}):null]}),(0,r.jsx)(eh,{className:"size-4 shrink-0 text-neutral-400 group-hover:text-neutral-700","aria-hidden":!0})]})},e.cardKey)})}):(0,r.jsx)(ej,{children:"nearby"===c?"No nearby events":"No upcoming events"}):(0,r.jsx)(ej,{children:"Location unavailable for Near Me"})})]})})}function ej({children:e}){return(0,r.jsx)("div",{className:"flex min-h-[22rem] items-center justify-center px-4",children:(0,r.jsx)("p",{className:"text-center text-sm text-neutral-500",children:e})})}e.s(["EventsListDialog",()=>eC],34107),e.i(2963);var eN=e.i(75283),eS=e.i(88374);function eP({open:e,onOpenChange:t,summary:n,badge:o="followers",textColor:l="#111827",isMobile:i,handle:a,sensitiveContentBaseUrl:s,onConnectedAdultUrlClick:d}){let c=A(),u=(0,p.useCallback)(e=>"platform-3"===e.platform&&a&&s?`${s}/${a.toLowerCase()}/r/connected/platform-3`:null,[a,s]);return n&&0!==n.accounts.length?(0,r.jsx)(c,{open:e,onOpenChange:t,isMobile:i,title:(0,eS.formatConnectedAccountBadgeTitle)(n,o),titleClassName:"!text-base font-semibold",contentClassName:"px-0 py-0",children:(0,r.jsx)("div",{className:"pb-2 pt-1",children:(0,r.jsx)(eN.ConnectedAccountBadgeBreakdownList,{summary:n,textColor:l,resolveProfileUrl:u,onAccountNavigate:d?(e,t)=>d(e,t.name||t.username||void 0):void 0})})}):null}function eI(e){return btoa(JSON.stringify(e))}e.s(["ConnectedAccountBadgeDialog",()=>eP],56460),e.s([],49765),e.s(["encodeReferrer",()=>eI],20340)},11413,e=>{"use strict";let t={NEXT_PUBLIC_CDN_BASE_URL:"https://cdn.hoobe.media",NEXT_PUBLIC_DASHBOARD_BASE_URL:"https://dashboard.hoo.be",NEXT_PUBLIC_SITE:"hoo.be",NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY:e.i(47167).default.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY??""};e.s(["env",0,t])},97512,26395,e=>{"use strict";var t=e.i(43476),r=e.i(71645);e.i(49765);var n=e.i(32967),o=e.i(20340),l=e.i(11413);e.i(47167);var i=e.i(99673);let a=/^[a-f\d]{24}$/i,s=(()=>{try{return"false"===new URLSearchParams(window.location.search).get("trackPageView")}catch{return!1}})(),d=new Set,c=new Map;function u(e,t,r,n){try{fetch("/api/signup-cta",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:e,source:t,...r.profileId&&a.test(r.profileId)?{profileId:r.profileId}:{},...r.pageId&&a.test(r.pageId)?{pageId:r.pageId}:{}}),keepalive:n}).catch(()=>{})}catch{}}function m(e,t={}){try{if(s||d.has(e))return;d.add(e),u("view",e,t,!1)}catch{}}function f(e,t={}){try{if(s)return;let r=Date.now(),n=c.get(e);if(void 0!==n&&r-n<500)return;c.set(e,r),u("click",e,t,!0)}catch{}}function p({userId:e,profileId:a,pageId:s,...d}){let c,u=(c=l.env.NEXT_PUBLIC_SITE).startsWith("http")?c.replace(/\/+$/,""):`https://${c}`,p=(0,r.useRef)(null),h=!1!==d.showCta;(0,r.useEffect)(()=>
58{if(!h)return;let e=p.current;if(!e||"undefined"==typeof IntersectionObserver)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(t.disconnect(),m("footer",{profileId:a,pageId:s}))});return t.observe(e),()=>t.disconnect()},[a,s,h]);let b=a&&s?`?ref=${(0,o.encodeReferrer)({userId:e??"",profileId:a,pageId:s,source:"footer"})}`:"",g=`${u}/signup${b}`;return(0,t.jsx)(n.SignupFooter,{signupUrl:g,primaryCtaClassName:i.previewPrimaryCtaClassName,rootRef:p,onCtaClick:()=>f("footer",{profileId:a,pageId:s}),...d})}e.s(["trackSignupCtaClick",()=>f,"trackSignupCtaView",()=>m],26395),e.s(["SignupFooter",()=>p],97512)},41444,e=>{"use strict";var t=e.i(7670),r=e.i(19056);function n(...e){return(0,r.twMerge)((0,t.clsx)(e))}e.s(["cn",()=>n])}]);
59
60//# chunkId=01a0d76d-1dc6-7321-9208-ad86faa453e1

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.