@builder.io/sdk-react-nextjs 0.7.1-2 → 0.7.1-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/lib/browser/{USE_CLIENT_BUNDLE-11d41596.js → USE_CLIENT_BUNDLE-36991304.js} +1 -1
  2. package/lib/{node/USE_CLIENT_BUNDLE-e041d92c.mjs → browser/USE_CLIENT_BUNDLE-a0cfd96e.mjs} +2 -2
  3. package/lib/{edge/USE_SERVER_BUNDLE-305bf94a.js → browser/USE_SERVER_BUNDLE-2ca6fbdb.js} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-66d4b8c4.mjs → browser/USE_SERVER_BUNDLE-4b7a745a.mjs} +1 -1
  5. package/lib/browser/{bundle-05622db1.js → bundle-55af31a8.js} +2 -2
  6. package/lib/browser/{bundle-242ae8b5.mjs → bundle-97bfd273.mjs} +2 -2
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +3 -3
  9. package/lib/{node/USE_CLIENT_BUNDLE-8147b412.js → edge/USE_CLIENT_BUNDLE-66349ab4.js} +1 -1
  10. package/lib/{browser/USE_CLIENT_BUNDLE-48d9356f.mjs → edge/USE_CLIENT_BUNDLE-bcf2ccc8.mjs} +2 -2
  11. package/lib/{node/USE_SERVER_BUNDLE-8c1ae1f0.js → edge/USE_SERVER_BUNDLE-02f64ca7.js} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-1634816a.mjs → edge/USE_SERVER_BUNDLE-046e1bfb.mjs} +1 -1
  13. package/lib/edge/{bundle-3d31ba5d.mjs → bundle-4c987206.mjs} +2 -2
  14. package/lib/edge/{bundle-1b9b93c7.js → bundle-cb675da6.js} +2 -2
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +3 -3
  17. package/lib/{edge/USE_CLIENT_BUNDLE-6eb1ee54.mjs → node/USE_CLIENT_BUNDLE-3263fb05.mjs} +2 -2
  18. package/lib/{edge/USE_CLIENT_BUNDLE-bba76732.js → node/USE_CLIENT_BUNDLE-9a315fd7.js} +1 -1
  19. package/lib/{browser/USE_SERVER_BUNDLE-3875256b.mjs → node/USE_SERVER_BUNDLE-5a2dbc47.mjs} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-568694d9.js → node/USE_SERVER_BUNDLE-ddf14d3b.js} +1 -1
  21. package/lib/node/{bundle-4203318d.js → bundle-b8de5bb9.js} +2 -2
  22. package/lib/node/{bundle-7ebcd79e.mjs → bundle-e3f18037.mjs} +2 -2
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +3 -3
  25. package/package.json +2 -2
  26. package/types/constants/sdk-version.d.ts +1 -1
@@ -1,4 +1,4 @@
1
- "use client";"use strict";const t=require("react/jsx-runtime"),c=require("./bundle-05622db1.js"),o=require("react"),_=require("./USE_SERVER_BUNDLE-568694d9.js"),M=require("next/navigation");function W(e){return t.jsxs(t.Fragment,{children:[e.link?t.jsx(t.Fragment,{children:t.jsx("a",{role:"button",...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,children:e.text})}):t.jsx(t.Fragment,{children:t.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-35669e6c",children:e.text})}),t.jsx("style",{children:`.button-35669e6c {
1
+ "use client";"use strict";const t=require("react/jsx-runtime"),c=require("./bundle-55af31a8.js"),o=require("react"),_=require("./USE_SERVER_BUNDLE-2ca6fbdb.js"),M=require("next/navigation");function W(e){return t.jsxs(t.Fragment,{children:[e.link?t.jsx(t.Fragment,{children:t.jsx("a",{role:"button",...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,children:e.text})}):t.jsx(t.Fragment,{children:t.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-35669e6c",children:e.text})}),t.jsx("style",{children:`.button-35669e6c {
2
2
  all: unset;
3
3
  }`})]})}function A(e){return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})},children:e.children})}function V(e){return t.jsxs(t.Fragment,{children:[" ",e.hasChildren?t.jsx(t.Fragment,{children:t.jsxs(e.Wrapper,{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:[" ",e.children," "]})}):t.jsx(t.Fragment,{children:t.jsx(e.Wrapper,{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})})})," "]})}function z(e){function a(){var s;return"builder-blocks"+((s=e.blocks)!=null&&s.length?"":" no-blocks")}function g(){var s,x;c.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((x=window.parent)==null||x.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function h(){var s,x;c.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((x=window.parent)==null||x.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:a()+" div-02c7a115","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:s=>g(),onMouseEnter:s=>h(),onKeyPress:s=>g(),children:e.children}),t.jsx("style",{children:`.div-02c7a115 {
4
4
  display: flex;
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsxs as w, Fragment as g, jsx as c } from "react/jsx-runtime";
3
- import { g as T, a as N, i as E, b as R, c as G, d as P, e as W, _ as A, f as $, l as Q, h as D, j as X, k as Y, r as Z, s as p, m as ee, n as te, o as ne } from "./bundle-7ebcd79e.mjs";
3
+ import { g as T, a as N, i as E, b as R, c as G, d as P, e as W, _ as A, f as $, l as Q, h as D, j as X, k as Y, r as Z, s as p, m as ee, n as te, o as ne } from "./bundle-97bfd273.mjs";
4
4
  import { useRef as j, useState as y, useEffect as x, createContext as ie, createElement as ae } from "react";
5
- import { p as ce } from "./USE_SERVER_BUNDLE-1634816a.mjs";
5
+ import { p as ce } from "./USE_SERVER_BUNDLE-4b7a745a.mjs";
6
6
  import { useRouter as re } from "next/navigation";
7
7
  function ge(e) {
8
8
  return /* @__PURE__ */ w(g, { children: [
@@ -1 +1 @@
1
- "use server";"use strict";const n=require("./bundle-1b9b93c7.js");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
1
+ "use server";"use strict";const n=require("./bundle-55af31a8.js");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { p as s } from "./bundle-3d31ba5d.mjs";
2
+ import { p as s } from "./bundle-97bfd273.mjs";
3
3
  async function n({
4
4
  key: t,
5
5
  value: r
@@ -1,4 +1,4 @@
1
- "use strict";const We=require("lru-cache"),s=require("react/jsx-runtime"),Le=require("react"),v=require("./USE_CLIENT_BUNDLE-11d41596.js");require("next/navigation");const R=e=>JSON.parse(JSON.stringify(e)),de={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},X=(e,t=de)=>`@media (max-width: ${t[e].max}px)`,me=({small:e,medium:t})=>{const n=R(de);if(!e||!t)return n;const o=Math.floor(e/2);n.small={max:e,min:o,default:o+1};const r=n.small.max+1;n.medium={max:t,min:r,default:r+1};const i=n.medium.max+1;return n.large={max:2e3,min:i,default:i+1},n},I="rsc",A="[Builder.io]: ",k={log:(...e)=>console.log(A,...e),error:(...e)=>console.error(A,...e),warn:(...e)=>console.warn(A,...e),debug:(...e)=>console.debug(A,...e)};function S(){return typeof window<"u"&&typeof document<"u"}function Ue(){return S()&&window.self!==window.top}function F(){return Ue()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const Me=()=>{if(S()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},_e=()=>typeof navigator=="object"&&navigator.userAgent||"",fe=()=>{const e=_e(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||I==="reactNative"}},n=e.match(/Tablet|iPad/i),o=Me();return{urlPath:o==null?void 0:o.pathname,host:(o==null?void 0:o.host)||(o==null?void 0:o.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},Ke=({builder:e,context:t,event:n,state:o})=>Object.entries({state:o,Builder:e,builder:e,context:t,event:n}),He=()=>({isEditing:F(),isBrowser:S(),isServer:!S(),getUserAttributes:()=>fe()}),De=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,Q=({code:e,builder:t,context:n,event:o,localState:r,rootSetState:i,rootState:a})=>{const l=Ke({builder:t,context:n,event:o,state:ze(a,r,i)});return new Function(...l.map(([c])=>c),e)(...l.map(([,c])=>c))};function ze(e,t,n){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(o,r)=>t&&r in t?t[r]:e[r],set:(o,r,i)=>{if(t&&r in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[r]=i,n==null||n(e),!0}})}const qe=e=>(S(),Q(e));function O({code:e,context:t,localState:n,rootState:o,rootSetState:r,event:i,isExpression:a=!0}){if(e===""){k.warn("Skipping evaluation of empty code block.");return}const l={code:De(e,{isExpression:a}),builder:He(),context:t,event:i,rootSetState:r,rootState:o,localState:n};try{return qe(l)}catch(c){k.error("Failed code evaluation: "+c.message,{code:e});return}}const Ge=(e,t,n)=>{if(Object(e)!==e)return e;const o=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return o.slice(0,-1).reduce((r,i,a)=>Object(r[i])===r[i]?r[i]:r[i]=Math.abs(Number(o[a+1]))>>0===+o[a+1]?[]:{},e)[o[o.length-1]]=n,e};const Je=({block:e,context:t,localState:n,rootState:o,rootSetState:r})=>{if(!e.bindings)return e;const i=R(e),a={...i,properties:{...i.properties},actions:{...i.actions}};for(const l in e.bindings){const c=e.bindings[l],d=O({code:c,localState:n,rootState:o,rootSetState:r,context:t});Ge(a,l,d)}return a};function V({block:e,context:t,shouldEvaluateBindings:n,localState:o,rootState:r,rootSetState:i}){const a=e;return n?Je({block:a,localState:o,rootState:r,rootSetState:i,context:t}):a}const Ye=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),C=e=>e!=null,he=e=>Object.entries(e).map(([n,o])=>{if(typeof o=="string")return`${Ye(n)}: ${o};`}).filter(C),Xe=e=>he(e).join(`
1
+ "use strict";const We=require("lru-cache"),s=require("react/jsx-runtime"),Le=require("react"),v=require("./USE_CLIENT_BUNDLE-36991304.js");require("next/navigation");const R=e=>JSON.parse(JSON.stringify(e)),de={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},X=(e,t=de)=>`@media (max-width: ${t[e].max}px)`,me=({small:e,medium:t})=>{const n=R(de);if(!e||!t)return n;const o=Math.floor(e/2);n.small={max:e,min:o,default:o+1};const r=n.small.max+1;n.medium={max:t,min:r,default:r+1};const i=n.medium.max+1;return n.large={max:2e3,min:i,default:i+1},n},I="rsc",A="[Builder.io]: ",k={log:(...e)=>console.log(A,...e),error:(...e)=>console.error(A,...e),warn:(...e)=>console.warn(A,...e),debug:(...e)=>console.debug(A,...e)};function S(){return typeof window<"u"&&typeof document<"u"}function Ue(){return S()&&window.self!==window.top}function F(){return Ue()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const Me=()=>{if(S()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},_e=()=>typeof navigator=="object"&&navigator.userAgent||"",fe=()=>{const e=_e(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||I==="reactNative"}},n=e.match(/Tablet|iPad/i),o=Me();return{urlPath:o==null?void 0:o.pathname,host:(o==null?void 0:o.host)||(o==null?void 0:o.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},Ke=({builder:e,context:t,event:n,state:o})=>Object.entries({state:o,Builder:e,builder:e,context:t,event:n}),He=()=>({isEditing:F(),isBrowser:S(),isServer:!S(),getUserAttributes:()=>fe()}),De=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,Q=({code:e,builder:t,context:n,event:o,localState:r,rootSetState:i,rootState:a})=>{const l=Ke({builder:t,context:n,event:o,state:ze(a,r,i)});return new Function(...l.map(([c])=>c),e)(...l.map(([,c])=>c))};function ze(e,t,n){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(o,r)=>t&&r in t?t[r]:e[r],set:(o,r,i)=>{if(t&&r in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[r]=i,n==null||n(e),!0}})}const qe=e=>(S(),Q(e));function O({code:e,context:t,localState:n,rootState:o,rootSetState:r,event:i,isExpression:a=!0}){if(e===""){k.warn("Skipping evaluation of empty code block.");return}const l={code:De(e,{isExpression:a}),builder:He(),context:t,event:i,rootSetState:r,rootState:o,localState:n};try{return qe(l)}catch(c){k.error("Failed code evaluation: "+c.message,{code:e});return}}const Ge=(e,t,n)=>{if(Object(e)!==e)return e;const o=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return o.slice(0,-1).reduce((r,i,a)=>Object(r[i])===r[i]?r[i]:r[i]=Math.abs(Number(o[a+1]))>>0===+o[a+1]?[]:{},e)[o[o.length-1]]=n,e};const Je=({block:e,context:t,localState:n,rootState:o,rootSetState:r})=>{if(!e.bindings)return e;const i=R(e),a={...i,properties:{...i.properties},actions:{...i.actions}};for(const l in e.bindings){const c=e.bindings[l],d=O({code:c,localState:n,rootState:o,rootSetState:r,context:t});Ge(a,l,d)}return a};function V({block:e,context:t,shouldEvaluateBindings:n,localState:o,rootState:r,rootSetState:i}){const a=e;return n?Je({block:a,localState:o,rootState:r,rootSetState:i,context:t}):a}const Ye=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),C=e=>e!=null,he=e=>Object.entries(e).map(([n,o])=>{if(typeof o=="string")return`${Ye(n)}: ${o};`}).filter(C),Xe=e=>he(e).join(`
2
2
  `),M=({mediaQuery:e,className:t,styles:n})=>{const o=`.${t} {
3
3
  ${Xe(n)}
4
4
  }`;return e?`${e} {
@@ -73,4 +73,4 @@ ${Wt({customFonts:e.customFonts})}
73
73
  font-family: inherit;
74
74
  }
75
75
  `.trim();return s.jsx(N,{styles:t})}const Mt=({content:e,data:t,locale:n})=>{var i,a,l;const o={};(a=(i=e==null?void 0:e.data)==null?void 0:i.inputs)==null||a.forEach(c=>{var d;c.name&&c.defaultValue!==void 0&&((d=e==null?void 0:e.data)!=null&&d.state)&&e.data.state[c.name]===void 0&&(o[c.name]=c.defaultValue)});const r={...(l=e==null?void 0:e.data)==null?void 0:l.state,...t,...n?{locale:n}:{}};return{...o,...r}},_t=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function Kt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function Ht(){const e=Kt().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
76
- For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const ve=Ht(),Dt=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},ke=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(o=>o.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(o){k.warn("[COOKIE] GET error: ",(o==null?void 0:o.message)||o);return}},we=async e=>ke(e),zt=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(C).join("; "),qt=[["secure",""],["SameSite","None"]],Gt=({name:e,value:t,expires:n})=>{const r=(S()?location.protocol==="https:":!0)?qt:[[]],i=n?[["expires",n.toUTCString()]]:[[]],a=[[e,t],...i,["path","/"],["domain",Dt(window.location.hostname)],...r];return zt(a)},Ce=async({name:e,value:t,expires:n,canTrack:o})=>{try{if(!o)return;const r=Gt({name:e,value:t,expires:n});document.cookie=r}catch(r){k.warn("[COOKIE] SET error: ",(r==null?void 0:r.message)||r)}};function Jt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function Ie(){return Jt().replace(/-/g,"")}const Te="builderSessionId",Yt=async({canTrack:e})=>{if(!e)return;const t=await we({name:Te,canTrack:e});if(C(t))return t;{const n=Xt();return Qt({id:n,canTrack:e}),n}},Xt=()=>Ie(),Qt=({id:e,canTrack:t})=>Ce({name:Te,value:e,canTrack:t}),Ee=()=>S()&&typeof localStorage<"u"?localStorage:void 0,Zt=({key:e,canTrack:t})=>{var n;try{return t?(n=Ee())==null?void 0:n.getItem(e):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},en=({key:e,canTrack:t,value:n})=>{var o;try{t&&((o=Ee())==null||o.setItem(e,n))}catch(r){console.debug("[LocalStorage] SET error: ",r)}},Re="builderVisitorId",tn=({canTrack:e})=>{if(!e)return;const t=Zt({key:Re,canTrack:e});if(C(t))return t;{const n=nn();return on({id:n,canTrack:e}),n}},nn=()=>Ie(),on=({id:e,canTrack:t})=>en({key:Re,value:e,canTrack:t}),rn=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await Yt({canTrack:e}),n=tn({canTrack:e});return{sessionId:t,visitorId:n}},an=async({type:e,canTrack:t,apiKey:n,metadata:o,...r})=>({type:e,data:{...r,metadata:{url:location.href,...o},...await rn({canTrack:t}),userAttributes:fe(),ownerId:n}});async function je(e){if(!e.apiKey){k.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!F()&&(S()||I==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await an(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const sn=e=>je({...e,canTrack:!0}),cn="0.7.1-2",oe={};function Ae(e,t){let n=oe[e];if(n||(n=oe[e]=[]),n.push(t),S()){const o={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(r){console.debug("Could not postmessage",r)}}}const ln=()=>{Ae("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let re=!1;const un=(e={})=>{var t,n;re||(re=!0,S()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:I,version:cn,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",({data:o})=>{var r,i;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const a=o.data.text,l=o.data.arguments||[],c=o.data.id,d=new Function(a);let f,p=null;try{f=d.apply(null,l)}catch(b){p=b}p?(r=window.parent)==null||r.postMessage({type:"builder.evaluateError",data:{id:c,error:p.message}},"*"):f&&typeof f.then=="function"?f.then(b=>{var m;(m=window.parent)==null||m.postMessage({type:"builder.evaluateResult",data:{id:c,result:b}},"*")}).catch(console.error):(i=window.parent)==null||i.postMessage({type:"builder.evaluateResult",data:{result:f,id:c}},"*");break}}})))};function ie(e){return Math.round(e*1e3)/1e3}const dn=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let o=n?e:e.parentElement;do{if(!o)return null;if(t(o))return o}while(o=o.parentElement);return null},mn=e=>dn(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),ae=({event:e,target:t})=>{const n=t.getBoundingClientRect(),o=e.clientX-n.left,r=e.clientY-n.top,i=ie(o/n.width),a=ie(r/n.height);return{x:i,y:a}},fn=e=>{const t=e.target,n=t&&mn(t),o=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:o||void 0,metadata:{targetOffset:t?ae({event:e,target:t}):void 0,builderTargetOffset:n?ae({event:e,target:n}):void 0,builderElementIndex:n&&o?[].slice.call(document.getElementsByClassName(o)).indexOf(n):void 0}}},hn="builder.tests",z=e=>`${hn}.${e}`,gn=({contentId:e})=>we({name:z(e),canTrack:!0}),pn=({contentId:e})=>ke({name:z(e),canTrack:!0}),bn=({contentId:e,value:t})=>Ce({name:z(e),value:t,canTrack:!0}),Be=e=>C(e.id)&&C(e.variations)&&Object.keys(e.variations).length>0,yn=({id:e,variations:t})=>{var r;let n=0;const o=Math.random();for(const i in t){const a=(r=t[i])==null?void 0:r.testRatio;if(n+=a,o<n)return i}return e},Pe=e=>{const t=yn(e);return bn({contentId:e.id,value:t}).catch(n=>{k.error("could not store A/B test variation: ",n)}),t},Ve=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},xn=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!Be(e))return e;const n=pn({contentId:e.id})||Pe({variations:e.variations,id:e.id}),o=Ve({item:e,testGroupId:n});return{...e,...o}},Sn=async({item:e,canTrack:t})=>{if(!t||!Be(e))return e;const o=await gn({contentId:e.id})||Pe({variations:e.variations,id:e.id}),r=Ve({item:e,testGroupId:o});return{...e,...r}},$=e=>C(e)?e:!0,vn=e=>{const t=e.get("preview"),n=e.get("overrides."+t);return n||k.warn("No previewed ID found in search params."),n};function $e(){globalThis._BUILDER_PREVIEW_LRU_CACHE||(globalThis._BUILDER_PREVIEW_LRU_CACHE=new We.LRUCache({max:500,ttl:1e3*60*5}))}function kn(e){$e();const t=vn(e);return typeof t=="string"?globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t):void 0}function P(e,t=null,n="."){return Object.keys(e).reduce((o,r)=>{const i=e[r],a=[t,r].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...o,...P(i,a,n)}:{...o,[a]:i}},{})}const se="builder.",wn="options.",Cn=e=>{const t={};return e.forEach((n,o)=>{t[o]=n}),t},q=e=>{if(!e)return{};const t=Fe(e),n={};return Object.keys(t).forEach(o=>{if(o.startsWith(se)){const r=o.replace(se,"").replace(wn,"");n[r]=t[o]}}),n},In=()=>{if(!S())return{};const e=new URLSearchParams(window.location.search);return q(e)},Fe=e=>e instanceof URLSearchParams?Cn(e):e,Tn="v3",ce=e=>typeof e=="number"&&!isNaN(e)&&e>=0,G=e=>{let{noTraverse:t=!1}=e;const{limit:n=30,userAttributes:o,query:r,model:i,apiKey:a,includeRefs:l=!0,enrich:c,locale:d,apiVersion:f=Tn,fields:p,omit:b,offset:m,cacheSeconds:h,staleCacheSeconds:u,sort:y,includeUnpublished:x}=e;if(!a)throw new Error("Missing API key");if(!["v2","v3"].includes(f))throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${f}'`);(e.limit===void 0||e.limit>1)&&!("noTraverse"in e)&&(t=!0);const g=new URL(`https://cdn.builder.io/api/${f}/content/${i}?apiKey=${a}&limit=${n}&noTraverse=${t}&includeRefs=${l}${d?`&locale=${d}`:""}${c?`&enrich=${c}`:""}`);if(g.searchParams.set("omit",b||"meta.componentsUsed"),p&&g.searchParams.set("fields",p),Number.isFinite(m)&&m>-1&&g.searchParams.set("offset",String(Math.floor(m))),typeof x=="boolean"&&g.searchParams.set("includeUnpublished",String(x)),h&&ce(h)&&g.searchParams.set("cacheSeconds",String(h)),u&&ce(u)&&g.searchParams.set("staleCacheSeconds",String(u)),y){const w=P({sort:y});for(const E in w)g.searchParams.set(E,JSON.stringify(w[E]))}const j={...In(),...Fe(e.options||{})},T=P(j);for(const w in T)g.searchParams.set(w,String(T[w]));if(o&&g.searchParams.set("userAttributes",JSON.stringify(o)),r){const w=P({query:r});for(const E in w)g.searchParams.set(E,JSON.stringify(w[E]))}return g},En=e=>"results"in e;async function U(e){const t=await J({...e,limit:1});return t&&t.results[0]||null}const Rn=U,jn=async e=>{const t=G(e);return await(await ve(t.href)).json()},Oe=async(e,t,n=G(e))=>{const o=$(e.canTrack);if(n.search.includes("preview=")){const i=[];for(const a of t.results){const l=kn(n.searchParams);i.push(l||a)}t.results=i}if(!o||!(S()||I==="reactNative"))return t;try{const i=[];for(const a of t.results)i.push(await Sn({item:a,canTrack:o}));t.results=i}catch(i){k.error("Could not process A/B tests. ",i)}return t};async function J(e){try{const t=G(e),n=await jn(e);return En(n)?Oe(e,n):(k.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return k.error("Error fetching data. ",t),null}}const An=J;function Bn(){return!S()||F()?!1:location.search.indexOf("builder.preview=")!==-1}function H(e){return s.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id})}function le(e){var r,i,a,l,c,d,f,p,b;const t=St({variationId:(r=e.content)==null?void 0:r.testVariationId,contentId:(i=e.content)==null?void 0:i.id}),n=[...te(),...ne,...e.customComponents||[]].reduce((m,{component:h,...u})=>({...m,[u.name]:{component:h,...K(u)}}),{}),o={content:_t({content:e.content,data:e.data}),localState:void 0,rootState:Mt({content:e.content,data:e.data,locale:e.locale}),rootSetState:void 0,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...te(),...ne,...e.customComponents||[]].reduce((m,{component:h,...u})=>({...m,[u.name]:K(u)}),{}),inheritedStyles:{}};return s.jsxs(v.EnableEditor,{content:e.content,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,classNameProp:e.classNameProp,showContent:e.showContent,builderContextSignal:o,children:[e.isSsrAbTest?s.jsx(s.Fragment,{children:s.jsx(H,{scriptStr:t})}):null,s.jsx(s.Fragment,{children:s.jsx(Ut,{contentId:(a=o.content)==null?void 0:a.id,cssCode:(c=(l=o.content)==null?void 0:l.data)==null?void 0:c.cssCode,customFonts:(f=(d=o.content)==null?void 0:d.data)==null?void 0:f.customFonts})}),s.jsx(L,{blocks:(b=(p=o.content)==null?void 0:p.data)==null?void 0:b.blocks,context:o,registeredComponents:n})]})}function Y(e){var i,a,l;const t=ht({canTrack:$(e.canTrack),content:e.content}),n=function(){var d;return xt(B(e.content).map(f=>({id:f.testVariationId,testRatio:f.testRatio})),((d=e.content)==null?void 0:d.id)||"")},o=function(){return B(e.content).map(d=>`.variant-${d.testVariationId} { display: none; } `).join("")},r=function(){var d;return t?{...e.content,testVariationId:(d=e.content)==null?void 0:d.id}:xn({item:e.content,canTrack:$(e.canTrack)})};return s.jsxs(s.Fragment,{children:[!e.__isNestedRender&&I!=="reactNative"?s.jsx(s.Fragment,{children:s.jsx(H,{scriptStr:yt()})}):null,t?s.jsxs(s.Fragment,{children:[s.jsx(N,{id:`variants-styles-${(i=e.content)==null?void 0:i.id}`,styles:o()}),s.jsx(H,{scriptStr:n()}),(a=B(e.content))==null?void 0:a.map(c=>s.jsx(le,{content:c,showContent:!1,classNameProp:void 0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t},c.testVariationId))]}):null,s.jsx(le,{content:r(),classNameProp:`variant-${(l=e.content)==null?void 0:l.id}`,showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t})]})}const Pn=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return U({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{k.error("Could not fetch symbol content: ",n)})};async function Ne(e){var o,r,i,a;const t=function(){var c,d;return[e.attributes.className,"builder-symbol",(c=e.symbol)!=null&&c.inline?"builder-inline-symbol":void 0,(d=e.symbol)!=null&&d.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},n=((o=e.symbol)==null?void 0:o.content)||await Pn({symbol:e.symbol,builderContextValue:e.builderContext});return s.jsx("div",{...e.attributes,className:t(),children:s.jsx(Y,{__isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:e.builderContext.context,customComponents:Object.values(e.builderComponents),data:{...(r=e.symbol)==null?void 0:r.data,...e.builderContext.localState,...(i=n==null?void 0:n.data)==null?void 0:i.state},model:(a=e.symbol)==null?void 0:a.model,content:n})})}const Vn=L,$n=Y,ue={};function Fn(e){if(S()){Object.assign(ue,e);const t={type:"builder.settingsChange",data:ue};parent.postMessage(t,"*")}}const On=async e=>{var o,r,i;const t=e.path||((o=e.url)==null?void 0:o.pathname)||((r=e.userAttributes)==null?void 0:r.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:q(e.searchParams||((i=e.url)==null?void 0:i.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await U(n)}};exports.Blocks=L;exports.Columns=pe;exports.ContentVariants=Y;exports.RenderBlocks=Vn;exports.RenderContent=$n;exports.Symbol=Ne;exports.Text=Se;exports._processContentResult=Oe;exports._track=je;exports.createRegisterComponentMessage=$t;exports.evaluate=O;exports.fastClone=R;exports.fetch=ve;exports.fetchBuilderProps=On;exports.fetchEntries=J;exports.fetchOneEntry=U;exports.getAllContent=An;exports.getBlockActions=at;exports.getBlockProperties=ge;exports.getBuilderSearchParams=q;exports.getContent=Rn;exports.getDefaultCanTrack=$;exports.getInteractionPropertiesForEvent=fn;exports.getSrcSet=ft;exports.init=$e;exports.isBrowser=S;exports.isEditing=F;exports.isJsScript=Bt;exports.isPreviewing=Bn;exports.logger=k;exports.register=Ae;exports.registerInsertMenu=ln;exports.setEditorSettings=Fn;exports.setupBrowserForEditing=un;exports.track=sn;
76
+ For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const ve=Ht(),Dt=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},ke=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(o=>o.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(o){k.warn("[COOKIE] GET error: ",(o==null?void 0:o.message)||o);return}},we=async e=>ke(e),zt=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(C).join("; "),qt=[["secure",""],["SameSite","None"]],Gt=({name:e,value:t,expires:n})=>{const r=(S()?location.protocol==="https:":!0)?qt:[[]],i=n?[["expires",n.toUTCString()]]:[[]],a=[[e,t],...i,["path","/"],["domain",Dt(window.location.hostname)],...r];return zt(a)},Ce=async({name:e,value:t,expires:n,canTrack:o})=>{try{if(!o)return;const r=Gt({name:e,value:t,expires:n});document.cookie=r}catch(r){k.warn("[COOKIE] SET error: ",(r==null?void 0:r.message)||r)}};function Jt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function Ie(){return Jt().replace(/-/g,"")}const Te="builderSessionId",Yt=async({canTrack:e})=>{if(!e)return;const t=await we({name:Te,canTrack:e});if(C(t))return t;{const n=Xt();return Qt({id:n,canTrack:e}),n}},Xt=()=>Ie(),Qt=({id:e,canTrack:t})=>Ce({name:Te,value:e,canTrack:t}),Ee=()=>S()&&typeof localStorage<"u"?localStorage:void 0,Zt=({key:e,canTrack:t})=>{var n;try{return t?(n=Ee())==null?void 0:n.getItem(e):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},en=({key:e,canTrack:t,value:n})=>{var o;try{t&&((o=Ee())==null||o.setItem(e,n))}catch(r){console.debug("[LocalStorage] SET error: ",r)}},Re="builderVisitorId",tn=({canTrack:e})=>{if(!e)return;const t=Zt({key:Re,canTrack:e});if(C(t))return t;{const n=nn();return on({id:n,canTrack:e}),n}},nn=()=>Ie(),on=({id:e,canTrack:t})=>en({key:Re,value:e,canTrack:t}),rn=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await Yt({canTrack:e}),n=tn({canTrack:e});return{sessionId:t,visitorId:n}},an=async({type:e,canTrack:t,apiKey:n,metadata:o,...r})=>({type:e,data:{...r,metadata:{url:location.href,...o},...await rn({canTrack:t}),userAttributes:fe(),ownerId:n}});async function je(e){if(!e.apiKey){k.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!F()&&(S()||I==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await an(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const sn=e=>je({...e,canTrack:!0}),cn="0.7.1-3",oe={};function Ae(e,t){let n=oe[e];if(n||(n=oe[e]=[]),n.push(t),S()){const o={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(r){console.debug("Could not postmessage",r)}}}const ln=()=>{Ae("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let re=!1;const un=(e={})=>{var t,n;re||(re=!0,S()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:I,version:cn,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",({data:o})=>{var r,i;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const a=o.data.text,l=o.data.arguments||[],c=o.data.id,d=new Function(a);let f,p=null;try{f=d.apply(null,l)}catch(b){p=b}p?(r=window.parent)==null||r.postMessage({type:"builder.evaluateError",data:{id:c,error:p.message}},"*"):f&&typeof f.then=="function"?f.then(b=>{var m;(m=window.parent)==null||m.postMessage({type:"builder.evaluateResult",data:{id:c,result:b}},"*")}).catch(console.error):(i=window.parent)==null||i.postMessage({type:"builder.evaluateResult",data:{result:f,id:c}},"*");break}}})))};function ie(e){return Math.round(e*1e3)/1e3}const dn=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let o=n?e:e.parentElement;do{if(!o)return null;if(t(o))return o}while(o=o.parentElement);return null},mn=e=>dn(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),ae=({event:e,target:t})=>{const n=t.getBoundingClientRect(),o=e.clientX-n.left,r=e.clientY-n.top,i=ie(o/n.width),a=ie(r/n.height);return{x:i,y:a}},fn=e=>{const t=e.target,n=t&&mn(t),o=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:o||void 0,metadata:{targetOffset:t?ae({event:e,target:t}):void 0,builderTargetOffset:n?ae({event:e,target:n}):void 0,builderElementIndex:n&&o?[].slice.call(document.getElementsByClassName(o)).indexOf(n):void 0}}},hn="builder.tests",z=e=>`${hn}.${e}`,gn=({contentId:e})=>we({name:z(e),canTrack:!0}),pn=({contentId:e})=>ke({name:z(e),canTrack:!0}),bn=({contentId:e,value:t})=>Ce({name:z(e),value:t,canTrack:!0}),Be=e=>C(e.id)&&C(e.variations)&&Object.keys(e.variations).length>0,yn=({id:e,variations:t})=>{var r;let n=0;const o=Math.random();for(const i in t){const a=(r=t[i])==null?void 0:r.testRatio;if(n+=a,o<n)return i}return e},Pe=e=>{const t=yn(e);return bn({contentId:e.id,value:t}).catch(n=>{k.error("could not store A/B test variation: ",n)}),t},Ve=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},xn=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!Be(e))return e;const n=pn({contentId:e.id})||Pe({variations:e.variations,id:e.id}),o=Ve({item:e,testGroupId:n});return{...e,...o}},Sn=async({item:e,canTrack:t})=>{if(!t||!Be(e))return e;const o=await gn({contentId:e.id})||Pe({variations:e.variations,id:e.id}),r=Ve({item:e,testGroupId:o});return{...e,...r}},$=e=>C(e)?e:!0,vn=e=>{const t=e.get("preview"),n=e.get("overrides."+t);return n||k.warn("No previewed ID found in search params."),n};function $e(){globalThis._BUILDER_PREVIEW_LRU_CACHE||(globalThis._BUILDER_PREVIEW_LRU_CACHE=new We.LRUCache({max:500,ttl:1e3*60*5}))}function kn(e){$e();const t=vn(e);return typeof t=="string"?globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t):void 0}function P(e,t=null,n="."){return Object.keys(e).reduce((o,r)=>{const i=e[r],a=[t,r].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...o,...P(i,a,n)}:{...o,[a]:i}},{})}const se="builder.",wn="options.",Cn=e=>{const t={};return e.forEach((n,o)=>{t[o]=n}),t},q=e=>{if(!e)return{};const t=Fe(e),n={};return Object.keys(t).forEach(o=>{if(o.startsWith(se)){const r=o.replace(se,"").replace(wn,"");n[r]=t[o]}}),n},In=()=>{if(!S())return{};const e=new URLSearchParams(window.location.search);return q(e)},Fe=e=>e instanceof URLSearchParams?Cn(e):e,Tn="v3",ce=e=>typeof e=="number"&&!isNaN(e)&&e>=0,G=e=>{let{noTraverse:t=!1}=e;const{limit:n=30,userAttributes:o,query:r,model:i,apiKey:a,includeRefs:l=!0,enrich:c,locale:d,apiVersion:f=Tn,fields:p,omit:b,offset:m,cacheSeconds:h,staleCacheSeconds:u,sort:y,includeUnpublished:x}=e;if(!a)throw new Error("Missing API key");if(!["v2","v3"].includes(f))throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${f}'`);(e.limit===void 0||e.limit>1)&&!("noTraverse"in e)&&(t=!0);const g=new URL(`https://cdn.builder.io/api/${f}/content/${i}?apiKey=${a}&limit=${n}&noTraverse=${t}&includeRefs=${l}${d?`&locale=${d}`:""}${c?`&enrich=${c}`:""}`);if(g.searchParams.set("omit",b||"meta.componentsUsed"),p&&g.searchParams.set("fields",p),Number.isFinite(m)&&m>-1&&g.searchParams.set("offset",String(Math.floor(m))),typeof x=="boolean"&&g.searchParams.set("includeUnpublished",String(x)),h&&ce(h)&&g.searchParams.set("cacheSeconds",String(h)),u&&ce(u)&&g.searchParams.set("staleCacheSeconds",String(u)),y){const w=P({sort:y});for(const E in w)g.searchParams.set(E,JSON.stringify(w[E]))}const j={...In(),...Fe(e.options||{})},T=P(j);for(const w in T)g.searchParams.set(w,String(T[w]));if(o&&g.searchParams.set("userAttributes",JSON.stringify(o)),r){const w=P({query:r});for(const E in w)g.searchParams.set(E,JSON.stringify(w[E]))}return g},En=e=>"results"in e;async function U(e){const t=await J({...e,limit:1});return t&&t.results[0]||null}const Rn=U,jn=async e=>{const t=G(e);return await(await ve(t.href)).json()},Oe=async(e,t,n=G(e))=>{const o=$(e.canTrack);if(n.search.includes("preview=")){const i=[];for(const a of t.results){const l=kn(n.searchParams);i.push(l||a)}t.results=i}if(!o||!(S()||I==="reactNative"))return t;try{const i=[];for(const a of t.results)i.push(await Sn({item:a,canTrack:o}));t.results=i}catch(i){k.error("Could not process A/B tests. ",i)}return t};async function J(e){try{const t=G(e),n=await jn(e);return En(n)?Oe(e,n):(k.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return k.error("Error fetching data. ",t),null}}const An=J;function Bn(){return!S()||F()?!1:location.search.indexOf("builder.preview=")!==-1}function H(e){return s.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id})}function le(e){var r,i,a,l,c,d,f,p,b;const t=St({variationId:(r=e.content)==null?void 0:r.testVariationId,contentId:(i=e.content)==null?void 0:i.id}),n=[...te(),...ne,...e.customComponents||[]].reduce((m,{component:h,...u})=>({...m,[u.name]:{component:h,...K(u)}}),{}),o={content:_t({content:e.content,data:e.data}),localState:void 0,rootState:Mt({content:e.content,data:e.data,locale:e.locale}),rootSetState:void 0,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...te(),...ne,...e.customComponents||[]].reduce((m,{component:h,...u})=>({...m,[u.name]:K(u)}),{}),inheritedStyles:{}};return s.jsxs(v.EnableEditor,{content:e.content,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,classNameProp:e.classNameProp,showContent:e.showContent,builderContextSignal:o,children:[e.isSsrAbTest?s.jsx(s.Fragment,{children:s.jsx(H,{scriptStr:t})}):null,s.jsx(s.Fragment,{children:s.jsx(Ut,{contentId:(a=o.content)==null?void 0:a.id,cssCode:(c=(l=o.content)==null?void 0:l.data)==null?void 0:c.cssCode,customFonts:(f=(d=o.content)==null?void 0:d.data)==null?void 0:f.customFonts})}),s.jsx(L,{blocks:(b=(p=o.content)==null?void 0:p.data)==null?void 0:b.blocks,context:o,registeredComponents:n})]})}function Y(e){var i,a,l;const t=ht({canTrack:$(e.canTrack),content:e.content}),n=function(){var d;return xt(B(e.content).map(f=>({id:f.testVariationId,testRatio:f.testRatio})),((d=e.content)==null?void 0:d.id)||"")},o=function(){return B(e.content).map(d=>`.variant-${d.testVariationId} { display: none; } `).join("")},r=function(){var d;return t?{...e.content,testVariationId:(d=e.content)==null?void 0:d.id}:xn({item:e.content,canTrack:$(e.canTrack)})};return s.jsxs(s.Fragment,{children:[!e.__isNestedRender&&I!=="reactNative"?s.jsx(s.Fragment,{children:s.jsx(H,{scriptStr:yt()})}):null,t?s.jsxs(s.Fragment,{children:[s.jsx(N,{id:`variants-styles-${(i=e.content)==null?void 0:i.id}`,styles:o()}),s.jsx(H,{scriptStr:n()}),(a=B(e.content))==null?void 0:a.map(c=>s.jsx(le,{content:c,showContent:!1,classNameProp:void 0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t},c.testVariationId))]}):null,s.jsx(le,{content:r(),classNameProp:`variant-${(l=e.content)==null?void 0:l.id}`,showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t})]})}const Pn=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return U({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{k.error("Could not fetch symbol content: ",n)})};async function Ne(e){var o,r,i,a;const t=function(){var c,d;return[e.attributes.className,"builder-symbol",(c=e.symbol)!=null&&c.inline?"builder-inline-symbol":void 0,(d=e.symbol)!=null&&d.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},n=((o=e.symbol)==null?void 0:o.content)||await Pn({symbol:e.symbol,builderContextValue:e.builderContext});return s.jsx("div",{...e.attributes,className:t(),children:s.jsx(Y,{__isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:e.builderContext.context,customComponents:Object.values(e.builderComponents),data:{...(r=e.symbol)==null?void 0:r.data,...e.builderContext.localState,...(i=n==null?void 0:n.data)==null?void 0:i.state},model:(a=e.symbol)==null?void 0:a.model,content:n})})}const Vn=L,$n=Y,ue={};function Fn(e){if(S()){Object.assign(ue,e);const t={type:"builder.settingsChange",data:ue};parent.postMessage(t,"*")}}const On=async e=>{var o,r,i;const t=e.path||((o=e.url)==null?void 0:o.pathname)||((r=e.userAttributes)==null?void 0:r.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:q(e.searchParams||((i=e.url)==null?void 0:i.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await U(n)}};exports.Blocks=L;exports.Columns=pe;exports.ContentVariants=Y;exports.RenderBlocks=Vn;exports.RenderContent=$n;exports.Symbol=Ne;exports.Text=Se;exports._processContentResult=Oe;exports._track=je;exports.createRegisterComponentMessage=$t;exports.evaluate=O;exports.fastClone=R;exports.fetch=ve;exports.fetchBuilderProps=On;exports.fetchEntries=J;exports.fetchOneEntry=U;exports.getAllContent=An;exports.getBlockActions=at;exports.getBlockProperties=ge;exports.getBuilderSearchParams=q;exports.getContent=Rn;exports.getDefaultCanTrack=$;exports.getInteractionPropertiesForEvent=fn;exports.getSrcSet=ft;exports.init=$e;exports.isBrowser=S;exports.isEditing=F;exports.isJsScript=Bt;exports.isPreviewing=Bn;exports.logger=k;exports.register=Ae;exports.registerInsertMenu=ln;exports.setEditorSettings=Fn;exports.setupBrowserForEditing=un;exports.track=sn;
@@ -1,7 +1,7 @@
1
1
  import { LRUCache as $e } from "lru-cache";
2
2
  import { jsx as l, Fragment as x, jsxs as C } from "react/jsx-runtime";
3
3
  import { createElement as Pe } from "react";
4
- import { I as Be, B as J, a as Fe, b as Oe, C as Ne, E as We, F as Le, c as Ue, d as Me, S as _e, V as je, e as Ke } from "./USE_CLIENT_BUNDLE-48d9356f.mjs";
4
+ import { I as Be, B as J, a as Fe, b as Oe, C as Ne, E as We, F as Le, c as Ue, d as Me, S as _e, V as je, e as Ke } from "./USE_CLIENT_BUNDLE-a0cfd96e.mjs";
5
5
  import "next/navigation";
6
6
  const F = (e) => JSON.parse(JSON.stringify(e)), ue = {
7
7
  small: {
@@ -1793,7 +1793,7 @@ async function dn(e) {
1793
1793
  const Hn = (e) => dn({
1794
1794
  ...e,
1795
1795
  canTrack: !0
1796
- }), mn = "0.7.1-2", ne = {};
1796
+ }), mn = "0.7.1-3", ne = {};
1797
1797
  function fn(e, t) {
1798
1798
  let n = ne[e];
1799
1799
  if (n || (n = ne[e] = []), n.push(t), v()) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-05622db1.js"),t=require("./USE_CLIENT_BUNDLE-11d41596.js");require("lru-cache");require("react/jsx-runtime");require("react");require("next/navigation");require("./USE_SERVER_BUNDLE-568694d9.js");exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-55af31a8.js"),t=require("./USE_CLIENT_BUNDLE-36991304.js");require("lru-cache");require("react/jsx-runtime");require("react");require("next/navigation");require("./USE_SERVER_BUNDLE-2ca6fbdb.js");exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;
@@ -1,10 +1,10 @@
1
- import { B as i, t as m, C as c, R as g, q as p, S as l, T as C, z as d, m as f, E as u, w as B, n as S, x as E, A as R, y as h, i as x, f as k, u as y, v as P, D as b } from "./bundle-242ae8b5.mjs";
2
- import { b as w, F as A, c as F, S as T, V } from "./USE_CLIENT_BUNDLE-48d9356f.mjs";
1
+ import { B as i, t as m, C as c, R as g, q as p, S as l, T as C, z as d, m as f, E as u, w as B, n as S, x as E, A as R, y as h, i as x, f as k, u as y, v as P, D as b } from "./bundle-97bfd273.mjs";
2
+ import { b as w, F as A, c as F, S as T, V } from "./USE_CLIENT_BUNDLE-a0cfd96e.mjs";
3
3
  import "lru-cache";
4
4
  import "react/jsx-runtime";
5
5
  import "react";
6
6
  import "next/navigation";
7
- import "./USE_SERVER_BUNDLE-3875256b.mjs";
7
+ import "./USE_SERVER_BUNDLE-4b7a745a.mjs";
8
8
  export {
9
9
  i as Blocks,
10
10
  w as Button,
@@ -1,4 +1,4 @@
1
- "use client";"use strict";const t=require("react/jsx-runtime"),c=require("./bundle-4203318d.js"),o=require("react"),_=require("./USE_SERVER_BUNDLE-8c1ae1f0.js"),M=require("next/navigation");function W(e){return t.jsxs(t.Fragment,{children:[e.link?t.jsx(t.Fragment,{children:t.jsx("a",{role:"button",...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,children:e.text})}):t.jsx(t.Fragment,{children:t.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-35669e6c",children:e.text})}),t.jsx("style",{children:`.button-35669e6c {
1
+ "use client";"use strict";const t=require("react/jsx-runtime"),c=require("./bundle-cb675da6.js"),o=require("react"),_=require("./USE_SERVER_BUNDLE-02f64ca7.js"),M=require("next/navigation");function W(e){return t.jsxs(t.Fragment,{children:[e.link?t.jsx(t.Fragment,{children:t.jsx("a",{role:"button",...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,children:e.text})}):t.jsx(t.Fragment,{children:t.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-35669e6c",children:e.text})}),t.jsx("style",{children:`.button-35669e6c {
2
2
  all: unset;
3
3
  }`})]})}function A(e){return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})},children:e.children})}function V(e){return t.jsxs(t.Fragment,{children:[" ",e.hasChildren?t.jsx(t.Fragment,{children:t.jsxs(e.Wrapper,{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:[" ",e.children," "]})}):t.jsx(t.Fragment,{children:t.jsx(e.Wrapper,{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})})})," "]})}function z(e){function a(){var s;return"builder-blocks"+((s=e.blocks)!=null&&s.length?"":" no-blocks")}function g(){var s,x;c.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((x=window.parent)==null||x.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function h(){var s,x;c.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((x=window.parent)==null||x.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:a()+" div-02c7a115","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:s=>g(),onMouseEnter:s=>h(),onKeyPress:s=>g(),children:e.children}),t.jsx("style",{children:`.div-02c7a115 {
4
4
  display: flex;
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsxs as w, Fragment as g, jsx as c } from "react/jsx-runtime";
3
- import { g as T, a as N, i as E, b as R, c as G, d as P, e as W, _ as A, f as $, l as Q, h as D, j as X, k as Y, r as Z, s as p, m as ee, n as te, o as ne } from "./bundle-242ae8b5.mjs";
3
+ import { g as T, a as N, i as E, b as R, c as G, d as P, e as W, _ as A, f as $, l as Q, h as D, j as X, k as Y, r as Z, s as p, m as ee, n as te, o as ne } from "./bundle-4c987206.mjs";
4
4
  import { useRef as j, useState as y, useEffect as x, createContext as ie, createElement as ae } from "react";
5
- import { p as ce } from "./USE_SERVER_BUNDLE-3875256b.mjs";
5
+ import { p as ce } from "./USE_SERVER_BUNDLE-046e1bfb.mjs";
6
6
  import { useRouter as re } from "next/navigation";
7
7
  function ge(e) {
8
8
  return /* @__PURE__ */ w(g, { children: [
@@ -1 +1 @@
1
- "use server";"use strict";const n=require("./bundle-4203318d.js");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
1
+ "use server";"use strict";const n=require("./bundle-cb675da6.js");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { p as s } from "./bundle-7ebcd79e.mjs";
2
+ import { p as s } from "./bundle-4c987206.mjs";
3
3
  async function n({
4
4
  key: t,
5
5
  value: r
@@ -1,7 +1,7 @@
1
1
  import { LRUCache as Qr } from "lru-cache";
2
2
  import { jsx as I, Fragment as L, jsxs as ue } from "react/jsx-runtime";
3
3
  import { createElement as eo } from "react";
4
- import { I as to, B as Wn, a as no, b as ro, C as oo, E as io, F as ao, c as so, d as lo, S as co, V as uo, e as fo } from "./USE_CLIENT_BUNDLE-6eb1ee54.mjs";
4
+ import { I as to, B as Wn, a as no, b as ro, C as oo, E as io, F as ao, c as so, d as lo, S as co, V as uo, e as fo } from "./USE_CLIENT_BUNDLE-bcf2ccc8.mjs";
5
5
  import "next/navigation";
6
6
  const ut = (e) => JSON.parse(JSON.stringify(e)), cr = {
7
7
  small: {
@@ -4265,7 +4265,7 @@ async function Yi(e) {
4265
4265
  const ja = (e) => Yi({
4266
4266
  ...e,
4267
4267
  canTrack: !0
4268
- }), qi = "0.7.1-2", tr = {};
4268
+ }), qi = "0.7.1-3", tr = {};
4269
4269
  function Zi(e, t) {
4270
4270
  let n = tr[e];
4271
4271
  if (n || (n = tr[e] = []), n.push(t), G()) {
@@ -1,4 +1,4 @@
1
- "use strict";const ao=require("lru-cache"),m=require("react/jsx-runtime"),so=require("react"),q=require("./USE_CLIENT_BUNDLE-bba76732.js");require("next/navigation");const ze=e=>JSON.parse(JSON.stringify(e)),ur={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Kn=(e,t=ur)=>`@media (max-width: ${t[e].max}px)`,fr=({small:e,medium:t})=>{const n=ze(ur);if(!e||!t)return n;const r=Math.floor(e/2);n.small={max:e,min:r,default:r+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const i=n.medium.max+1;return n.large={max:2e3,min:i,default:i+1},n},ve="rsc",at="[Builder.io]: ",z={log:(...e)=>console.log(at,...e),error:(...e)=>console.error(at,...e),warn:(...e)=>console.warn(at,...e),debug:(...e)=>console.debug(at,...e)};function K(){return typeof window<"u"&&typeof document<"u"}function lo(){return K()&&window.self!==window.top}function ft(){return lo()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const co=()=>{if(K()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},uo=()=>typeof navigator=="object"&&navigator.userAgent||"",pr=()=>{const e=uo(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||ve==="reactNative"}},n=e.match(/Tablet|iPad/i),r=co();return{urlPath:r==null?void 0:r.pathname,host:(r==null?void 0:r.host)||(r==null?void 0:r.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},hr=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),fo=()=>({isEditing:ft(),isBrowser:K(),isServer:!K(),getUserAttributes:()=>pr()}),po=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,ho=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:i,rootState:s})=>{const f=hr({builder:t,context:n,event:r,state:mo(s,o,i)});return new Function(...f.map(([p])=>p),e)(...f.map(([,p])=>p))};function mo(e,t,n){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(r,o)=>t&&o in t?t[o]:e[o],set:(r,o,i)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[o]=i,n==null||n(e),!0}})}const dr=(e,t,n)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((o,i,s)=>Object(o[i])===o[i]?o[i]:o[i]=Math.abs(Number(r[s+1]))>>0===+r[s+1]?[]:{},e)[r[r.length-1]]=n,e};var F,go=function(e){function t(a){return 48>a?a===36:58>a?!0:65>a?!1:91>a?!0:97>a?a===95:123>a?!0:170<=a&&oo.test(String.fromCharCode(a))}function n(a){return 65>a?a===36:91>a?!0:97>a?a===95:123>a?!0:170<=a&&Hn.test(String.fromCharCode(a))}function r(a,l){for(var c=w,h=1,T=0;;){it.lastIndex=T;var $=it.exec(c);if($&&$.index<a)++h,T=$.index+$[0].length;else break}throw c={line:h,ab:a-T},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=a,l.X=c,l.o=u,l}function o(a){a=a.split(" ");for(var l=Object.create(null),c=0;c<a.length;c++)l[a[c]]=!0;return function(h){return l[h]||!1}}function i(){this.line=we,this.ab=u-oe}function s(a,l){ke=u,O.C&&(Tt=new i),I=a,p(),Q=l,Me=a.m}function f(){for(var a=u,l=O.va&&O.C&&new i,c=w.charCodeAt(u+=2);u<Se&&c!==10&&c!==13&&c!==8232&&c!==8233;)++u,c=w.charCodeAt(u);O.va&&O.va(!1,w.slice(a+2,u),a,u,l,O.C&&new i)}function p(){for(;u<Se;){var a=w.charCodeAt(u);if(a===32)++u;else if(a===13)++u,a=w.charCodeAt(u),a===10&&++u,O.C&&(++we,oe=u);else if(a===10||a===8232||a===8233)++u,O.C&&(++we,oe=u);else if(8<a&&14>a)++u;else if(a===47)if(a=w.charCodeAt(u+1),a===42){a=void 0;var l=O.va&&O.C&&new i,c=u,h=w.indexOf("*/",u+=2);if(h===-1&&r(u-2,"Unterminated comment"),u=h+2,O.C)for(it.lastIndex=c;(a=it.exec(w))&&a.index<u;)++we,oe=a.index+a[0].length;O.va&&O.va(!0,w.slice(c+2,h),c,u,l,O.C&&new i)}else if(a===47)f();else break;else if(a===160)++u;else if(5760<=a&&ro.test(String.fromCharCode(a)))++u;else break}}function y(a){switch(a){case 46:a=w.charCodeAt(u+1),48<=a&&57>=a?k(!0):(++u,s(Bn));return;case 40:return++u,s(ie);case 41:return++u,s(te);case 59:return++u,s(ae);case 44:return++u,s(ge);case 91:return++u,s(_t);case 93:return++u,s(Vt);case 123:return++u,s(_e);case 125:return++u,s(Ee);case 58:return++u,s(Ve);case 63:return++u,s(Un);case 48:if(a=w.charCodeAt(u+1),a===120||a===88){u+=2,a=j(16),a===null&&r(L+2,"Expected hexadecimal number"),n(w.charCodeAt(u))&&r(u,"Identifier directly after number"),s(Ue,a);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return k(!1);case 34:case 39:u++;for(var l="";;){u>=Se&&r(L,"Unterminated string constant");var c=w.charCodeAt(u);if(c===a){++u,s(tt,l);break}if(c===92){c=w.charCodeAt(++u);var h=/^[0-7]+/.exec(w.slice(u,u+3));for(h&&(h=h[0]);h&&255<parseInt(h,8);)h=h.slice(0,-1);if(h==="0"&&(h=null),++u,h)Y&&r(u-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(h,8)),u+=h.length-1;else switch(c){case 110:l+=`
1
+ "use strict";const ao=require("lru-cache"),m=require("react/jsx-runtime"),so=require("react"),q=require("./USE_CLIENT_BUNDLE-66349ab4.js");require("next/navigation");const ze=e=>JSON.parse(JSON.stringify(e)),ur={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Kn=(e,t=ur)=>`@media (max-width: ${t[e].max}px)`,fr=({small:e,medium:t})=>{const n=ze(ur);if(!e||!t)return n;const r=Math.floor(e/2);n.small={max:e,min:r,default:r+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const i=n.medium.max+1;return n.large={max:2e3,min:i,default:i+1},n},ve="rsc",at="[Builder.io]: ",z={log:(...e)=>console.log(at,...e),error:(...e)=>console.error(at,...e),warn:(...e)=>console.warn(at,...e),debug:(...e)=>console.debug(at,...e)};function K(){return typeof window<"u"&&typeof document<"u"}function lo(){return K()&&window.self!==window.top}function ft(){return lo()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const co=()=>{if(K()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},uo=()=>typeof navigator=="object"&&navigator.userAgent||"",pr=()=>{const e=uo(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||ve==="reactNative"}},n=e.match(/Tablet|iPad/i),r=co();return{urlPath:r==null?void 0:r.pathname,host:(r==null?void 0:r.host)||(r==null?void 0:r.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},hr=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),fo=()=>({isEditing:ft(),isBrowser:K(),isServer:!K(),getUserAttributes:()=>pr()}),po=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,ho=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:i,rootState:s})=>{const f=hr({builder:t,context:n,event:r,state:mo(s,o,i)});return new Function(...f.map(([p])=>p),e)(...f.map(([,p])=>p))};function mo(e,t,n){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(r,o)=>t&&o in t?t[o]:e[o],set:(r,o,i)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[o]=i,n==null||n(e),!0}})}const dr=(e,t,n)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((o,i,s)=>Object(o[i])===o[i]?o[i]:o[i]=Math.abs(Number(r[s+1]))>>0===+r[s+1]?[]:{},e)[r[r.length-1]]=n,e};var F,go=function(e){function t(a){return 48>a?a===36:58>a?!0:65>a?!1:91>a?!0:97>a?a===95:123>a?!0:170<=a&&oo.test(String.fromCharCode(a))}function n(a){return 65>a?a===36:91>a?!0:97>a?a===95:123>a?!0:170<=a&&Hn.test(String.fromCharCode(a))}function r(a,l){for(var c=w,h=1,T=0;;){it.lastIndex=T;var $=it.exec(c);if($&&$.index<a)++h,T=$.index+$[0].length;else break}throw c={line:h,ab:a-T},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=a,l.X=c,l.o=u,l}function o(a){a=a.split(" ");for(var l=Object.create(null),c=0;c<a.length;c++)l[a[c]]=!0;return function(h){return l[h]||!1}}function i(){this.line=we,this.ab=u-oe}function s(a,l){ke=u,O.C&&(Tt=new i),I=a,p(),Q=l,Me=a.m}function f(){for(var a=u,l=O.va&&O.C&&new i,c=w.charCodeAt(u+=2);u<Se&&c!==10&&c!==13&&c!==8232&&c!==8233;)++u,c=w.charCodeAt(u);O.va&&O.va(!1,w.slice(a+2,u),a,u,l,O.C&&new i)}function p(){for(;u<Se;){var a=w.charCodeAt(u);if(a===32)++u;else if(a===13)++u,a=w.charCodeAt(u),a===10&&++u,O.C&&(++we,oe=u);else if(a===10||a===8232||a===8233)++u,O.C&&(++we,oe=u);else if(8<a&&14>a)++u;else if(a===47)if(a=w.charCodeAt(u+1),a===42){a=void 0;var l=O.va&&O.C&&new i,c=u,h=w.indexOf("*/",u+=2);if(h===-1&&r(u-2,"Unterminated comment"),u=h+2,O.C)for(it.lastIndex=c;(a=it.exec(w))&&a.index<u;)++we,oe=a.index+a[0].length;O.va&&O.va(!0,w.slice(c+2,h),c,u,l,O.C&&new i)}else if(a===47)f();else break;else if(a===160)++u;else if(5760<=a&&ro.test(String.fromCharCode(a)))++u;else break}}function y(a){switch(a){case 46:a=w.charCodeAt(u+1),48<=a&&57>=a?k(!0):(++u,s(Bn));return;case 40:return++u,s(ie);case 41:return++u,s(te);case 59:return++u,s(ae);case 44:return++u,s(ge);case 91:return++u,s(_t);case 93:return++u,s(Vt);case 123:return++u,s(_e);case 125:return++u,s(Ee);case 58:return++u,s(Ve);case 63:return++u,s(Un);case 48:if(a=w.charCodeAt(u+1),a===120||a===88){u+=2,a=j(16),a===null&&r(L+2,"Expected hexadecimal number"),n(w.charCodeAt(u))&&r(u,"Identifier directly after number"),s(Ue,a);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return k(!1);case 34:case 39:u++;for(var l="";;){u>=Se&&r(L,"Unterminated string constant");var c=w.charCodeAt(u);if(c===a){++u,s(tt,l);break}if(c===92){c=w.charCodeAt(++u);var h=/^[0-7]+/.exec(w.slice(u,u+3));for(h&&(h=h[0]);h&&255<parseInt(h,8);)h=h.slice(0,-1);if(h==="0"&&(h=null),++u,h)Y&&r(u-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(h,8)),u+=h.length-1;else switch(c){case 110:l+=`
2
2
  `;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(v(2));break;case 117:l+=String.fromCharCode(v(4));break;case 85:l+=String.fromCharCode(v(8));break;case 116:l+=" ";break;case 98:l+="\b";break;case 118:l+="\v";break;case 102:l+="\f";break;case 48:l+="\0";break;case 13:w.charCodeAt(u)===10&&++u;case 10:O.C&&(oe=u,++we);break;default:l+=String.fromCharCode(c)}}else c!==13&&c!==10&&c!==8232&&c!==8233||r(L,"Unterminated string constant"),l+=String.fromCharCode(c),++u}return;case 47:a=w.charCodeAt(u+1),Me?(++u,N()):a===61?S(be,2):S(_n,1);return;case 37:case 42:w.charCodeAt(u+1)===61?S(be,2):S(eo,1);return;case 124:case 38:l=w.charCodeAt(u+1),l===a?S(a===124?$n:Dn,2):l===61?S(be,2):S(a===124?Xr:zr,1);return;case 94:w.charCodeAt(u+1)===61?S(be,2):S(Jr,1);return;case 43:case 45:l=w.charCodeAt(u+1),l===a?l===45&&w.charCodeAt(u+2)===62&&ot.test(w.slice(me,u))?(u+=3,f(),p(),x()):S(Gr,2):l===61?S(be,2):S(Qr,1);return;case 60:case 62:l=w.charCodeAt(u+1),c=1,l===a?(c=a===62&&w.charCodeAt(u+2)===62?3:2,w.charCodeAt(u+c)===61?S(be,c+1):S(Zr,c)):l===33&&a===60&&w.charCodeAt(u+2)===45&&w.charCodeAt(u+3)===45?(u+=4,f(),p(),x()):(l===61&&(c=w.charCodeAt(u+2)===61?3:2),S(qr,c));return;case 61:case 33:w.charCodeAt(u+1)===61?S(Yr,w.charCodeAt(u+2)===61?3:2):S(a===61?Vn:Ln,1);return;case 126:return S(Ln,1)}return!1}function x(a){if(a?u=L+1:L=u,O.C&&(It=new i),a)return N();if(u>=Se)return s(Rt);if(a=w.charCodeAt(u),n(a)||a===92)return M();if(y(a)===!1){if(a=String.fromCharCode(a),a==="\\"||Hn.test(a))return M();r(u,"Unexpected character '"+a+"'")}}function S(a,l){var c=w.slice(u,u+l);u+=l,s(a,c)}function N(){for(var a,l,c=u;;){u>=Se&&r(c,"Unterminated regexp");var h=w.charAt(u);if(ot.test(h)&&r(c,"Unterminated regexp"),a)a=!1;else{if(h==="[")l=!0;else if(h==="]"&&l)l=!1;else if(h==="/"&&!l)break;a=h==="\\"}++u}a=w.slice(c,u),++u,(l=P())&&!/^[gmi]*$/.test(l)&&r(c,"Invalid regexp flag");try{var T=new RegExp(a,l)}catch($){throw $ instanceof SyntaxError&&r(c,$.message),$}s(yn,T)}function j(a,l){for(var c=u,h=0,T=l===void 0?1/0:l,$=0;$<T;++$){var G=w.charCodeAt(u);if(G=97<=G?G-97+10:65<=G?G-65+10:48<=G&&57>=G?G-48:1/0,G>=a)break;++u,h=h*a+G}return u===c||l!==void 0&&u-c!==l?null:h}function k(a){var l=u,c=!1,h=w.charCodeAt(u)===48;a||j(10)!==null||r(l,"Invalid number"),w.charCodeAt(u)===46&&(++u,j(10),c=!0),a=w.charCodeAt(u),(a===69||a===101)&&(a=w.charCodeAt(++u),a!==43&&a!==45||++u,j(10)===null&&r(l,"Invalid number"),c=!0),n(w.charCodeAt(u))&&r(u,"Identifier directly after number"),a=w.slice(l,u);var T;c?T=parseFloat(a):h&&a.length!==1?/[89]/.test(a)||Y?r(l,"Invalid number"):T=parseInt(a,8):T=parseInt(a,10),s(Ue,T)}function v(a){return a=j(16,a),a===null&&r(L,"Bad character escape sequence"),a}function P(){je=!1;for(var a,l=!0,c=u;;){var h=w.charCodeAt(u);if(t(h))je&&(a+=w.charAt(u)),++u;else if(h===92){je||(a=w.slice(c,u)),je=!0,w.charCodeAt(++u)!==117&&r(u,"Expecting Unicode escape sequence \\uXXXX"),++u,h=v(4);var T=String.fromCharCode(h);T||r(u-1,"Invalid Unicode escape"),(l?n(h):t(h))||r(u-4,"Invalid Unicode escape"),a+=T}else break;l=!1}return je?a:w.slice(c,u)}function M(){var a=P(),l=Ce;!je&&no(a)&&(l=Kr[a]),s(l,a)}function g(){At=L,me=ke,Ot=Tt,x()}function pe(a){if(Y=a,u=L,O.C)for(;u<oe;)oe=w.lastIndexOf(`
3
3
  `,oe-2)+1,--we;p(),x()}function he(){this.type=null,this.start=L,this.end=null}function Z(){this.start=It,this.end=null,jt&&(this.source=jt)}function B(){var a=new he;return O.C&&(a.X=new Z),O.vb&&(a.sourceFile=O.vb),O.Xa&&(a.j=[L,0]),a}function de(a){var l=new he;return l.start=a.start,O.C&&(l.X=new Z,l.X.start=a.X.start),O.Xa&&(l.j=[a.j[0],0]),l}function A(a,l){return a.type=l,a.end=me,O.C&&(a.X.end=Ot),O.Xa&&(a.j[1]=me),a}function xt(a){return a.type==="ExpressionStatement"&&a.la.type==="Literal"&&a.la.value==="use strict"}function U(a){return I===a?(g(),!0):!1}function Ze(){return!O.fc&&(I===Rt||I===Ee||ot.test(w.slice(me,L)))}function xe(){U(ae)||Ze()||ne()}function _(a){I===a?g():ne()}function ne(){r(L,"Unexpected token")}function Qe(a){a.type!=="Identifier"&&a.type!=="MemberExpression"&&r(a.start,"Assigning to rvalue"),Y&&a.type==="Identifier"&&rt(a.name)&&r(a.start,"Assigning to "+a.name+" in strict mode")}function ee(){(I===_n||I===be&&Q==="/=")&&x(!0);var a=I,l=B();switch(a){case Pt:case xn:g();var c=a===Pt;U(ae)||Ze()?l.label=null:I!==Ce?ne():(l.label=re(),xe());for(var h=0;h<V.length;++h){var T=V[h];if((l.label===null||T.name===l.label.name)&&(T.kind!==null&&(c||T.kind==="loop")||l.label&&c))break}return h===V.length&&r(l.start,"Unsyntactic "+a.l),A(l,c?"BreakStatement":"ContinueStatement");case wn:return g(),xe(),A(l,"DebuggerStatement");case Sn:return g(),V.push(Lt),l.body=ee(),V.pop(),_(Ut),l.test=Pe(),xe(),A(l,"DoWhileStatement");case En:return g(),V.push(Lt),_(ie),I===ae?wt(l,null):I===Bt?(a=B(),g(),mn(a,!0),A(a,"VariableDeclaration"),a.fa.length===1&&U(nt)?dn(l,a):wt(l,a)):(a=H(!1,!0),U(nt)?(Qe(a),dn(l,a)):wt(l,a));case Ft:return g(),Ct(l,!0);case jn:return g(),l.test=Pe(),l.da=ee(),l.alternate=U(kn)?ee():null,A(l,"IfStatement");case In:return Be||O.Ib||r(L,"'return' outside of function"),g(),U(ae)||Ze()?l.K=null:(l.K=H(),xe()),A(l,"ReturnStatement");case Mt:for(g(),l.Qb=Pe(),l.tb=[],_(_e),V.push(io);I!==Ee;)I===Nt||I===bn?(a=I===Nt,h&&A(h,"SwitchCase"),l.tb.push(h=B()),h.da=[],g(),a?h.test=H():(c&&r(At,"Multiple default clauses"),c=!0,h.test=null),_(Ve)):(h||ne(),h.da.push(ee()));return h&&A(h,"SwitchCase"),g(),V.pop(),A(l,"SwitchStatement");case Tn:return g(),ot.test(w.slice(me,L))&&r(me,"Illegal newline after throw"),l.K=H(),xe(),A(l,"ThrowStatement");case An:return g(),l.block=Ne(),l.Ea=null,I===vn&&(a=B(),g(),_(ie),a.Ua=re(),Y&&rt(a.Ua.name)&&r(a.Ua.start,"Binding "+a.Ua.name+" in strict mode"),_(te),a.body=Ne(),l.Ea=A(a,"CatchClause")),l.fb=U(Cn)?Ne():null,l.Ea||l.fb||r(l.start,"Missing catch or finally clause"),A(l,"TryStatement");case Bt:return g(),mn(l),xe(),A(l,"VariableDeclaration");case Ut:return g(),l.test=Pe(),V.push(Lt),l.body=ee(),V.pop(),A(l,"WhileStatement");case On:return Y&&r(L,"'with' in strict mode"),g(),l.object=Pe(),l.body=ee(),A(l,"WithStatement");case _e:return Ne();case ae:return g(),A(l,"EmptyStatement");default:if(c=Q,T=H(),a===Ce&&T.type==="Identifier"&&U(Ve)){for(h=0;h<V.length;++h)V[h].name===c&&r(T.start,"Label '"+c+"' is already declared");return V.push({name:c,kind:I.W?"loop":I===Mt?"switch":null}),l.body=ee(),V.pop(),l.label=T,A(l,"LabeledStatement")}return l.la=T,xe(),A(l,"ExpressionStatement")}}function Pe(){_(ie);var a=H();return _(te),a}function Ne(a){var l=B(),c=!0,h=!1;for(l.body=[],_(_e);!U(Ee);){var T=ee();if(l.body.push(T),c&&a&&xt(T)){var $=h;pe(h=!0)}c=!1}return h&&!$&&pe(!1),A(l,"BlockStatement")}function wt(a,l){return a.ua=l,_(ae),a.test=I===ae?null:H(),_(ae),a.update=I===te?null:H(),_(te),a.body=ee(),V.pop(),A(a,"ForStatement")}function dn(a,l){return a.left=l,a.right=H(),_(te),a.body=ee(),V.pop(),A(a,"ForInStatement")}function mn(a,l){for(a.fa=[],a.kind="var";;){var c=B();if(c.id=re(),Y&&rt(c.id.name)&&r(c.id.start,"Binding "+c.id.name+" in strict mode"),c.ua=U(Vn)?H(!0,l):null,a.fa.push(A(c,"VariableDeclarator")),!U(ge))break}}function H(a,l){var c=bt(l);if(!a&&I===ge){for(a=de(c),a.xb=[c];U(ge);)a.xb.push(bt(l));return A(a,"SequenceExpression")}return c}function bt(a){var l=St(kt(),-1,a);if(U(Un)){var c=de(l);c.test=l,c.da=H(!0),_(Ve),c.alternate=H(!0,a),l=A(c,"ConditionalExpression")}return I.Cb?(c=de(l),c.operator=Q,c.left=l,g(),c.right=bt(a),Qe(l),A(c,"AssignmentExpression")):l}function St(a,l,c){var h=I.L;if(h!==null&&(!c||I!==nt)&&h>l){var T=de(a);return T.left=a,T.operator=Q,a=I,g(),T.right=St(kt(),h,c),h=A(T,a===$n||a===Dn?"LogicalExpression":"BinaryExpression"),St(h,l,c)}return a}function kt(){if(I.prefix){var a=B(),l=I.$b;return a.operator=Q,Me=a.prefix=!0,g(),a.K=kt(),l?Qe(a.K):Y&&a.operator==="delete"&&a.K.type==="Identifier"&&r(a.start,"Deleting local variable in strict mode"),A(a,l?"UpdateExpression":"UnaryExpression")}for(l=Fe(et());I.cc&&!Ze();)a=de(l),a.operator=Q,a.prefix=!1,a.K=l,Qe(l),g(),l=A(a,"UpdateExpression");return l}function Fe(a,l){if(U(Bn)){var c=de(a);return c.object=a,c.Wa=re(!0),c.bb=!1,Fe(A(c,"MemberExpression"),l)}return U(_t)?(c=de(a),c.object=a,c.Wa=H(),c.bb=!0,_(Vt),Fe(A(c,"MemberExpression"),l)):!l&&U(ie)?(c=de(a),c.callee=a,c.arguments=Et(te,!1),Fe(A(c,"CallExpression"),l)):a}function et(){switch(I){case Pn:var a=B();return g(),A(a,"ThisExpression");case Ce:return re();case Ue:case tt:case yn:return a=B(),a.value=Q,a.raw=w.slice(L,ke),g(),A(a,"Literal");case Nn:case Fn:case Mn:return a=B(),a.value=I.$a,a.raw=I.l,g(),A(a,"Literal");case ie:a=It;var l=L;g();var c=H();return c.start=l,c.end=ke,O.C&&(c.X.start=a,c.X.end=Tt),O.Xa&&(c.j=[l,ke]),_(te),c;case _t:return a=B(),g(),a.elements=Et(Vt,!0,!0),A(a,"ArrayExpression");case _e:for(a=B(),l=!0,c=!1,a.h=[],g();!U(Ee);){if(l)l=!1;else if(_(ge),O.sb&&U(Ee))break;var h={key:I===Ue||I===tt?et():re(!0)},T=!1;if(U(Ve)){h.value=H(!0);var $=h.kind="init"}else h.key.type!=="Identifier"||h.key.name!=="get"&&h.key.name!=="set"?ne():(T=c=!0,$=h.kind=h.key.name,h.key=I===Ue||I===tt?et():re(!0),I!==ie&&ne(),h.value=Ct(B(),!1));if(h.key.type==="Identifier"&&(Y||c))for(var G=0;G<a.h.length;++G){var Ie=a.h[G];if(Ie.key.name===h.key.name){var $t=$===Ie.kind||T&&Ie.kind==="init"||$==="init"&&(Ie.kind==="get"||Ie.kind==="set");$t&&!Y&&$==="init"&&Ie.kind==="init"&&($t=!1),$t&&r(h.key.start,"Redefinition of property")}}a.h.push(h)}return A(a,"ObjectExpression");case Ft:return a=B(),g(),Ct(a,!1);case Rn:return a=B(),g(),a.callee=Fe(et(),!0),a.arguments=U(ie)?Et(te,!1):Hr,A(a,"NewExpression")}ne()}function Ct(a,l){I===Ce?a.id=re():l?ne():a.id=null,a.oa=[];var c=!0;for(_(ie);!U(te);)c?c=!1:_(ge),a.oa.push(re());c=Be;var h=V;if(Be=!0,V=[],a.body=Ne(!0),Be=c,V=h,Y||a.body.body.length&&xt(a.body.body[0])){for(c=a.id?-1:0;c<a.oa.length;++c)if(h=0>c?a.id:a.oa[c],(Wn(h.name)||rt(h.name))&&r(h.start,"Defining '"+h.name+"' in strict mode"),0<=c)for(var T=0;T<c;++T)h.name===a.oa[T].name&&r(h.start,"Argument name clash in strict mode")}return A(a,l?"FunctionDeclaration":"FunctionExpression")}function Et(a,l,c){for(var h=[],T=!0;!U(a);){if(T)T=!1;else if(_(ge),l&&O.sb&&U(a))break;h.push(c&&I===ge?null:H(!0))}return h}function re(a){var l=B();return a&&O.yb==="everywhere"&&(a=!1),I===Ce?(!a&&(O.yb&&to(Q)||Y&&Wn(Q))&&w.slice(L,ke).indexOf("\\")===-1&&r(L,"The keyword '"+Q+"' is reserved"),l.name=Q):a&&I.l?l.name=I.l:ne(),Me=!1,g(),A(l,"Identifier")}e.version="0.5.0";var O,w="",Se,jt;e.parse=function(a,l){w=String(a),Se=w.length,O=l||{};for(var c in gn)Object.prototype.hasOwnProperty.call(O,c)||(O[c]=gn[c]);for(jt=O.sourceFile,we=1,u=oe=0,Me=!0,p(),c=O.dc,At=me=u,O.C&&(Ot=new i),Be=Y=!1,V=[],x(),a=c||B(),l=!0,c||(a.body=[]);I!==Rt;)c=ee(),a.body.push(c),l&&xt(c)&&pe(!0),l=!1;return A(a,"Program")};var gn={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},u=0,L=0,ke=0,It,Tt,I,Q,Me,we,oe,At=0,me=0,Ot,Be,V,Y,Hr=[],Ue={type:"num"},yn={type:"regexp"},tt={type:"string"},Ce={type:"name"},Rt={type:"eof"},Pt={l:"break"},Nt={l:"case",m:!0},vn={l:"catch"},xn={l:"continue"},wn={l:"debugger"},bn={l:"default"},Sn={l:"do",W:!0},kn={l:"else",m:!0},Cn={l:"finally"},En={l:"for",W:!0},Ft={l:"function"},jn={l:"if"},In={l:"return",m:!0},Mt={l:"switch"},Tn={l:"throw",m:!0},An={l:"try"},Bt={l:"var"},Ut={l:"while",W:!0},On={l:"with"},Rn={l:"new",m:!0},Pn={l:"this"},Nn={l:"null",$a:null},Fn={l:"true",$a:!0},Mn={l:"false",$a:!1},nt={l:"in",L:7,m:!0},Kr={break:Pt,case:Nt,catch:vn,continue:xn,debugger:wn,default:bn,do:Sn,else:kn,finally:Cn,for:En,function:Ft,if:jn,return:In,switch:Mt,throw:Tn,try:An,var:Bt,while:Ut,with:On,null:Nn,true:Fn,false:Mn,new:Rn,in:nt,instanceof:{l:"instanceof",L:7,m:!0},this:Pn,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},_t={type:"[",m:!0},Vt={type:"]"},_e={type:"{",m:!0},Ee={type:"}"},ie={type:"(",m:!0},te={type:")"},ge={type:",",m:!0},ae={type:";",m:!0},Ve={type:":",m:!0},Bn={type:"."},Un={type:"?",m:!0},_n={L:10,m:!0},Vn={Cb:!0,m:!0},be={Cb:!0,m:!0},Gr={cc:!0,prefix:!0,$b:!0},Ln={prefix:!0,m:!0},$n={L:1,m:!0},Dn={L:2,m:!0},Xr={L:3,m:!0},Jr={L:4,m:!0},zr={L:5,m:!0},Yr={L:6,m:!0},qr={L:7,m:!0},Zr={L:8,m:!0},Qr={L:9,prefix:!0,m:!0},eo={L:10,m:!0},to=o("class enum extends super const export import"),Wn=o("implements interface let package private protected public static yield"),rt=o("eval arguments"),no=o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),ro=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Hn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),oo=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),ot=/[\n\r\u2028\u2029]/,it=/\r\n|[\n\r\u2028\u2029]/g,je,Lt={kind:"loop"},io={kind:"switch"}},Kt=Kt=typeof globalThis>"u"?void 0:globalThis;go(Kt.j||(Kt.j={}));function d(e,t){typeof e=="string"&&(e=Ae(e,"code"));var n=e.constructor;this.ya=function(){return new n({options:{}})};var r=this.ya(),o;for(o in e)r[o]=o==="body"?e[o].slice():e[o];this.ra=r,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var i,s;for(s in this)typeof this[s]=="function"&&(i=s.match(e))&&(this.rb[i[1]]=this[s].bind(this));this.N=Xt(this,this.ra,null),this.Na=this.N.object,this.ra=Ae(this.ba.join(`
4
4
  `),"polyfills"),this.ba=void 0,pt(this.ra),i=new C(this.ra,this.N),i.done=!1,this.o=[i],this.Eb(),this.value=void 0,this.ra=r,i=new C(this.ra,this.N),i.done=!1,this.o.length=0,this.o[0]=i}var Gn={C:!0,kc:5},Yt={configurable:!0,enumerable:!0,writable:!1},b={configurable:!0,enumerable:!1,writable:!0},J={configurable:!0,enumerable:!1,writable:!1},Le={configurable:!1,enumerable:!1,writable:!1},Xn={configurable:!1,enumerable:!0,writable:!0},mr={STEP_ERROR:!0},Re={SCOPE_REFERENCE:!0},Xe={VALUE_IN_DESCRIPTOR:!0},Te={REGEXP_TIMEOUT:!0},Jn=[],le=null,Ke=null,ye=typeof globalThis>"u"?void 0:globalThis,yo=["onmessage = function(e) {","var result;","var data = e.data;","switch (data[0]) {","case 'split':","result = data[1].split(data[2], data[3]);","break;","case 'match':","result = data[1].match(data[2]);","break;","case 'search':","result = data[1].search(data[2]);","break;","case 'replace':","result = data[1].replace(data[2], data[3]);","break;","case 'exec':","var regexp = data[1];","regexp.lastIndex = data[2];","result = [regexp.exec(data[3]), data[1].lastIndex];","break;","default:","throw Error('Unknown RegExp operation: ' + data[0]);","}","postMessage(result);","close();","};"];function qt(e){var t=e>>>0;return t===Number(e)?t:NaN}function Ge(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function pt(e,t,n){t?e.start=t:delete e.start,n?e.end=n:delete e.end;for(var r in e)if(r!=="loc"&&e.hasOwnProperty(r)){var o=e[r];o&&typeof o=="object"&&pt(o,t,n)}}d.prototype.REGEXP_MODE=2;d.prototype.REGEXP_THREAD_TIMEOUT=1e3;d.prototype.POLYFILL_TIMEOUT=1e3;F=d.prototype;F.P=!1;F.Ka=!1;F.Kb=0;F.ic=0;function Ae(e,t){var n={},r;for(r in Gn)n[r]=Gn[r];return n.sourceFile=t,ye.j.parse(e,n)}F.Jb=function(e){var t=this.o[0];if(!t||t.node.type!=="Program")throw Error("Expecting original AST to start with a Program node");if(typeof e=="string"&&(e=Ae(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");Je(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};F.lb=function(){var e=this.o,t;do{var n=e[e.length-1];if(this.za)break;if(!n||n.node.type==="Program"&&n.done){if(!this.ca.length)return!1;if(n=this.ca[0],!n||n.time>Date.now())n=null;else{this.ca.shift(),0<=n.interval&&vr(this,n,n.interval);var r=new C(n.node,n.scope);n.zb&&(r.ia=2,r.B=this.Na,r.U=n.zb,r.Qa=!0,r.F=n.Lb),n=r}if(!n)break}r=n.node;var o=Ke;Ke=this;try{var i=this.rb[r.type](e,n,r)}catch(s){if(s!==mr)throw this.value!==s&&(this.value=void 0),s}finally{Ke=o}if(i&&e.push(i),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||r.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!r.end&&t>Date.now());return!0};F.Eb=function(){for(;!this.za&&this.lb(););return this.za};function vo(e,t){e.g(t,"NaN",NaN,Le),e.g(t,"Infinity",1/0,Le),e.g(t,"undefined",void 0,Le),e.g(t,"window",t,Yt),e.g(t,"this",t,Le),e.g(t,"self",t),e.M=new R(null),e.Z=new R(e.M),xo(e,t),wo(e,t),t.xa=e.M,e.g(t,"constructor",e.v,b),bo(e,t),So(e,t),ko(e,t),Co(e,t),Eo(e,t),jo(e,t),Io(e,t),To(e,t),Ao(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,b),e.g(t,"parseInt",e.i(parseInt,!1),b),e.g(t,"parseFloat",e.i(parseFloat,!1),b),e.g(t,"isNaN",e.i(isNaN,!1),b),e.g(t,"isFinite",e.i(isFinite,!1),b);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<r.length;o++)n=function(i){return function(s){try{return i(s)}catch(f){E(e,e.Gb,f.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),b);n=function(i){return zn(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),b),n=function(i){return zn(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),b),n=function(i){Yn(e,i)},e.g(t,"clearTimeout",e.i(n,!1),b),n=function(i){Yn(e,i)},e.g(t,"clearInterval",e.i(n,!1),b),e.OBJECT=e.v,e.OBJECT_PROTO=e.M,e.FUNCTION=e.O,e.FUNCTION_PROTO=e.Z,e.ARRAY=e.qa,e.ARRAY_PROTO=e.La,e.REGEXP=e.I,e.REGEXP_PROTO=e.Ma,e.DATE=e.$,e.DATE_PROTO=e.nb,e.qb&&e.qb(e,t)}F.Wb=0;function xo(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){var i=arguments.length?String(arguments[arguments.length-1]):"",s=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(s){s=s.split(/\s*,\s*/);for(var f=0;f<s.length;f++){var p=s[f];n.test(p)||E(e,e.T,"Invalid function argument: "+p)}s=s.join(", ")}try{var y=Ae("(function("+s+") {"+i+"})","function"+e.Wb++)}catch(x){E(e,e.T,"Invalid code: "+x.message)}return y.body.length!==1&&E(e,e.T,"Invalid code in function body"),en(e,y.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,b),e.g(e.O,"prototype",e.Z,b),e.g(e.Z,"constructor",e.O,b),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,J),e.Z.H="Function",r=function(o,i){var s=e.o[e.o.length-1];s.U=this,s.B=o,s.F=[],i!=null&&(i instanceof R?s.F=gr(e,i):E(e,e.j,"CreateListFromArrayLike called on non-object")),s.eb=!1},D(e,e.O,"apply",r),r=function(o){var i=e.o[e.o.length-1];i.U=this,i.B=o,i.F=[];for(var s=1;s<arguments.length;s++)i.F.push(arguments[s]);i.eb=!1},D(e,e.O,"call",r),e.ba.push("Object.defineProperty(Function.prototype, 'bind',","{configurable: true, writable: true, value:","function bind(oThis) {","if (typeof this !== 'function') {","throw TypeError('What is trying to be bound is not callable');","}","var aArgs = Array.prototype.slice.call(arguments, 1),","fToBind = this,","fNOP = function() {},","fBound = function() {","return fToBind.apply(this instanceof fNOP","? this",": oThis,","aArgs.concat(Array.prototype.slice.call(arguments)));","};","if (this.prototype) {","fNOP.prototype = this.prototype;","}","fBound.prototype = new fNOP();","return fBound;","}","});",""),r=function(){return String(this)},D(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),b),r=function(){return this.valueOf()},D(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),b)}function wo(e,t){function n(o){o!=null||E(e,e.j,"Cannot convert '"+o+"' to object")}var r=function(o){if(o==null)return ue(e)?this:e.s(e.M);if(!(o instanceof R)){var i=e.s(ce(e,o));return i.data=o,i}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,b),e.g(e.M,"constructor",e.v,b),e.g(t,"Object",e.v,b),r=function(o){return n(o),se(e,Object.getOwnPropertyNames(o instanceof R?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),b),r=function(o){return n(o),o instanceof R&&(o=o.h),se(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),b),r=function(o){return o===null?e.s(null):(o instanceof R||E(e,e.j,"Object prototype may only be an Object or null, not "+o),e.s(o))},e.g(e.v,"create",e.i(r,!1),b),e.ba.push("(function() {","var create_ = Object.create;","Object.create = function create(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();",""),r=function(o,i,s){return i=String(i),o instanceof R||E(e,e.j,"Object.defineProperty called on non-object: "+o),s instanceof R||E(e,e.j,"Property description must be an object"),!o.preventExtensions||i in o.h||E(e,e.j,"Can't define property '"+i+"', object is not extensible"),e.g(o,i,Xe,s.h),o},e.g(e.v,"defineProperty",e.i(r,!1),b),e.ba.push("(function() {","var defineProperty_ = Object.defineProperty;","Object.defineProperty = function defineProperty(obj, prop, d1) {","var d2 = {};","if ('configurable' in d1) d2.configurable = d1.configurable;","if ('enumerable' in d1) d2.enumerable = d1.enumerable;","if ('writable' in d1) d2.writable = d1.writable;","if ('value' in d1) d2.value = d1.value;","if ('get' in d1) d2.get = d1.get;","if ('set' in d1) d2.set = d1.set;","return defineProperty_(obj, prop, d2);","};","})();","Object.defineProperty(Object, 'defineProperties',","{configurable: true, writable: true, value:","function defineProperties(obj, props) {","var keys = Object.keys(props);","for (var i = 0; i < keys.length; i++) {","Object.defineProperty(obj, keys[i], props[keys[i]]);","}","return obj;","}","});",""),r=function(o,i){if(o instanceof R||E(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),i=String(i),i in o.h){var s=Object.getOwnPropertyDescriptor(o.h,i),f=o.V[i];return o=o.Y[i],i=e.s(e.M),f||o?(e.g(i,"get",f),e.g(i,"set",o)):(e.g(i,"value",s.value),e.g(i,"writable",s.writable)),e.g(i,"configurable",s.configurable),e.g(i,"enumerable",s.enumerable),i}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),b),r=function(o){return n(o),ce(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),b),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),b),r=function(o){return o instanceof R&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),b),D(e,e.v,"toString",R.prototype.toString),D(e,e.v,"toLocaleString",R.prototype.toString),D(e,e.v,"valueOf",R.prototype.valueOf),r=function(o){return n(this),this instanceof R?String(o)in this.h:this.hasOwnProperty(o)},D(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof R?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},D(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=ce(e,o),!o)return!1;if(o===this)return!0}},D(e,e.v,"isPrototypeOf",r)}function bo(e,t){var n=function(r){var o=ue(e)?this:Oe(e),i=arguments[0];if(arguments.length===1&&typeof i=="number")isNaN(qt(i))&&E(e,e.ob,"Invalid array length: "+i),o.h.length=i;else{for(i=0;i<arguments.length;i++)o.h[i]=arguments[i];o.h.length=i}return o};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,b),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),b),e.g(e.La,"length",0,{configurable:!1,enumerable:!1,writable:!0}),e.La.H="Array",e.ba.push("(function() {","function createArrayMethod_(f) {","Object.defineProperty(Array.prototype, f.name,","{configurable: true, writable: true, value: f});","}","createArrayMethod_(","function pop() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","len--;","var x = o[len];","delete o[len];","o.length = len;","return x;","}",");","createArrayMethod_(","function push(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","for (var i = 0; i < arguments.length; i++) {","o[len] = arguments[i];","len++;","}","o.length = len;","return len;","}",");","createArrayMethod_(","function shift() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","var value = o[0];","for (var i = 0; i < len - 1; i++) {","if ((i + 1) in o) {","o[i] = o[i + 1];","} else {","delete o[i];","}","}","delete o[i];","o.length = len - 1;","return value;","}",");","createArrayMethod_(","function unshift(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","len = 0;","}","for (var i = len - 1; i >= 0; i--) {","if (i in o) {","o[i + arguments.length] = o[i];","} else {","delete o[i + arguments.length];","}","}","for (var i = 0; i < arguments.length; i++) {","o[i] = arguments[i];","}","return (o.length = len + arguments.length);","}",");","createArrayMethod_(","function reverse() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 2) {","return o;","}","for (var i = 0; i < len / 2 - 0.5; i++) {","var x = o[i];","var hasX = i in o;","if ((len - i - 1) in o) {","o[i] = o[len - i - 1];","} else {","delete o[i];","}","if (hasX) {","o[len - i - 1] = x;","} else {","delete o[len - i - 1];","}","}","return o;","}",");","createArrayMethod_(","function indexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var n = fromIndex | 0;","if (!len || n >= len) {","return -1;","}","var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);","while (i < len) {","if (i in o && o[i] === searchElement) {","return i;","}","i++;","}","return -1;","}",");","createArrayMethod_(","function lastIndexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len) {","return -1;","}","var n = len - 1;","if (arguments.length > 1) {","n = fromIndex | 0;","if (n) {","n = (n > 0 || -1) * Math.floor(Math.abs(n));","}","}","var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);","while (i >= 0) {","if (i in o && o[i] === searchElement) {","return i;","}","i--;","}","return -1;","}",");","createArrayMethod_(","function slice(start, end) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","start = (start >= 0) ? start : Math.max(0, len + start);","if (typeof end !== 'undefined') {","if (end !== Infinity) {","end |= 0;","}","if (end < 0) {","end = len + end;","} else {","end = Math.min(end, len);","}","} else {","end = len;","}","var size = end - start;","var cloned = new Array(size);","for (var i = 0; i < size; i++) {","if ((start + i) in o) {","cloned[i] = o[start + i];","}","}","return cloned;","}",");","createArrayMethod_(","function splice(start, deleteCount, var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","if (start < 0) {","start = Math.max(len + start, 0);","} else {","start = Math.min(start, len);","}","if (arguments.length < 1) {","deleteCount = len - start;","} else {","deleteCount |= 0;","deleteCount = Math.max(0, Math.min(deleteCount, len - start));","}","var removed = [];","for (var i = start; i < start + deleteCount; i++) {","if (i in o) {","removed.push(o[i]);","} else {","removed.length++;","}","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = start + deleteCount; i < len - deleteCount; i++) {","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = len - deleteCount; i < len; i++) {","delete o[i];","}","len -= deleteCount;","var arl = arguments.length - 2;","for (var i = len - 1; i >= start; i--) {","if (i in o) {","o[i + arl] = o[i];","} else {","delete o[i + arl];","}","}","len += arl;","for (var i = 2; i < arguments.length; i++) {","o[start + i - 2] = arguments[i];","}","o.length = len;","return removed;","}",");","createArrayMethod_(","function concat(var_args) {","if (!this) throw TypeError();","var o = Object(this);","var cloned = [];","for (var i = -1; i < arguments.length; i++) {","var value = (i === -1) ? o : arguments[i];","if (Array.isArray(value)) {","for (var j = 0, l = value.length; j < l; j++) {","if (j in value) {","cloned.push(value[j]);","} else {","cloned.length++;","}","}","} else {","cloned.push(value);","}","}","return cloned;","}",");","createArrayMethod_(","function join(opt_separator) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var sep = typeof opt_separator === 'undefined' ?","',' : ('' + opt_separator);","var str = '';","for (var i = 0; i < len; i++) {","if (i && sep) str += sep;","str += (o[i] === null || o[i] === undefined) ? '' : o[i];","}","return str;","}",");","createArrayMethod_(","function every(callbackfn, thisArg) {","if (!this || typeof callbackfn !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o && !callbackfn.call(t, o[k], k, o)) return false;","k++;","}","return true;","}",");","createArrayMethod_(","function filter(fun, var_args) {","if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var res = [];","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o) {","var val = o[i];","if (fun.call(thisArg, val, i, o)) res.push(val);","}","}","return res;","}",");","createArrayMethod_(","function forEach(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o) callback.call(t, o[k], k, o);","k++;","}","}",");","createArrayMethod_(","function map(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","var a = new Array(len);","while (k < len) {","if (k in o) a[k] = callback.call(t, o[k], k, o);","k++;","}","return a;","}",");","createArrayMethod_(","function reduce(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = 0, value;","if (arguments.length === 2) {","value = arguments[1];","} else {","while (k < len && !(k in o)) k++;","if (k >= len) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k++];","}","for (; k < len; k++) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function reduceRight(callback /*, initialValue*/) {","if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = len - 1, value;","if (arguments.length >= 2) {","value = arguments[1];","} else {","while (k >= 0 && !(k in o)) k--;","if (k < 0) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k--];","}","for (; k >= 0; k--) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function some(fun/*, thisArg*/) {","if (!this || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o && fun.call(thisArg, o[i], i, o)) return true;","}","return false;","}",");","createArrayMethod_(","function sort(opt_comp) {","if (!this) throw TypeError();","if (typeof opt_comp !== 'function') {","opt_comp = undefined;","}","for (var i = 0; i < this.length; i++) {","var changes = 0;","for (var j = 0; j < this.length - i - 1; j++) {","if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :","(String(this[j]) > String(this[j + 1]))) {","var swap = this[j];","var hasSwap = j in this;","if ((j + 1) in this) {","this[j] = this[j + 1];","} else {","delete this[j];","}","if (hasSwap) {","this[j + 1] = swap;","} else {","delete this[j + 1];","}","changes++;","}","}","if (!changes) break;","}","return this;","}",");","createArrayMethod_(","function toLocaleString() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var out = [];","for (var i = 0; i < len; i++) {","out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();","}","return out.join(',');","}",");","})();","")}function So(e,t){var n=function(r){return r=arguments.length?ye.String(r):"",ue(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,b),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),b),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)D(e,e.J,t[n],String.prototype[t[n]]);n=function(r,o,i){o=e.R(o),i=e.R(i);try{return String(this).localeCompare(r,o,i)}catch(s){E(e,e.D,"localeCompare: "+s.message)}},D(e,e.J,"localeCompare",n),n=function(r,o,i){var s=String(this);if(o=o?Number(o):void 0,W(e,r,e.I)&&(r=r.data,De(e,r,i),e.REGEXP_MODE===2)){if(le)r=$e(e,"string.split(separator, limit)",{string:s,separator:r,limit:o},r,i),r!==Te&&i(se(e,r));else{var f=e.ha(),p=We(e,r,f,i);f.onmessage=function(y){clearTimeout(p),i(se(e,y.data))},f.postMessage(["split",s,r,o])}return}r=s.split(r,o),i(se(e,r))},He(e,e.J,"split",n),n=function(r,o){var i=String(this);if(r=W(e,r,e.I)?r.data:new RegExp(r),De(e,r,o),e.REGEXP_MODE===2)if(le)r=$e(e,"string.match(regexp)",{string:i,regexp:r},r,o),r!==Te&&o(r&&se(e,r));else{var s=e.ha(),f=We(e,r,s,o);s.onmessage=function(p){clearTimeout(f),o(p.data&&se(e,p.data))},s.postMessage(["match",i,r])}else r=i.match(r),o(r&&se(e,r))},He(e,e.J,"match",n),n=function(r,o){var i=String(this);if(W(e,r,e.I)?r=r.data:r=new RegExp(r),De(e,r,o),e.REGEXP_MODE===2)if(le)r=$e(e,"string.search(regexp)",{string:i,regexp:r},r,o),r!==Te&&o(r);else{var s=e.ha(),f=We(e,r,s,o);s.onmessage=function(p){clearTimeout(f),o(p.data)},s.postMessage(["search",i,r])}else o(i.search(r))},He(e,e.J,"search",n),n=function(r,o,i){var s=String(this);if(o=String(o),W(e,r,e.I)&&(r=r.data,De(e,r,i),e.REGEXP_MODE===2)){if(le)r=$e(e,"string.replace(substr, newSubstr)",{string:s,substr:r,newSubstr:o},r,i),r!==Te&&i(r);else{var f=e.ha(),p=We(e,r,f,i);f.onmessage=function(y){clearTimeout(p),i(y.data)},f.postMessage(["replace",s,r,o])}return}i(s.replace(r,o))},He(e,e.J,"replace",n),e.ba.push("(function() {","var replace_ = String.prototype.replace;","String.prototype.replace = function replace(substr, newSubstr) {","if (typeof newSubstr !== 'function') {","return replace_.call(this, substr, newSubstr);","}","var str = this;","if (substr instanceof RegExp) {","var subs = [];","var m = substr.exec(str);","while (m) {","m.push(m.index, str);","var inject = newSubstr.apply(null, m);","subs.push([m.index, m[0].length, inject]);","m = substr.global ? substr.exec(str) : null;","}","for (var i = subs.length - 1; i >= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","")}function ko(e,t){e.mb=e.i(function(n){return n=ye.Boolean(n),ue(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,b)}function Co(e,t){var n=function(r){return r=arguments.length?ye.Number(r):0,ue(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,b),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],n=0;n<t.length;n++)e.g(e.aa,t[n],Number[t[n]],Le);n=function(r){try{return Number(this).toExponential(r)}catch(o){E(e,e.D,o.message)}},D(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){E(e,e.D,o.message)}},D(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){E(e,e.D,o.message)}},D(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){E(e,e.D,o.message)}},D(e,e.aa,"toString",n),n=function(r,o){r=r?e.R(r):void 0,o=o?e.R(o):void 0;try{return Number(this).toLocaleString(r,o)}catch(i){E(e,e.D,"toLocaleString: "+i.message)}},D(e,e.aa,"toLocaleString",n)}function Eo(e,t){var n=function(o,i){if(!ue(e))return ye.Date();var s=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(ye.Date,s)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,b),e.g(e.$,"now",e.i(Date.now,!1),b),e.g(e.$,"parse",e.i(Date.parse,!1),b),e.g(e.$,"UTC",e.i(Date.UTC,!1),b),t="getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");for(var r=0;r<t.length;r++)n=function(o){return function(i){var s=this.data;s instanceof Date||E(e,e.j,o+" not called on a Date");for(var f=[],p=0;p<arguments.length;p++)f[p]=e.R(arguments[p]);return s[o].apply(s,f)}}(t[r]),D(e,e.$,t[r],n)}function jo(e,t){var n=function(r,o){if(ue(e))var i=this;else{if(o===void 0&&W(e,r,e.I))return r;i=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||E(e,e.T,"Invalid regexp flag: "+o);try{var s=new ye.RegExp(r,o)}catch(f){E(e,e.T,f.message)}return Zt(e,i,s),i};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,b),e.g(e.I.h.prototype,"global",void 0,J),e.g(e.I.h.prototype,"ignoreCase",void 0,J),e.g(e.I.h.prototype,"multiline",void 0,J),e.g(e.I.h.prototype,"source","(?:)",J),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),n=function(r,o){function i(x){if(x){var S=se(e,x);return e.g(S,"index",x.index),e.g(S,"input",x.input),S}return null}var s=this.data;if(r=String(r),s.lastIndex=Number(e.G(this,"lastIndex")),De(e,s,o),e.REGEXP_MODE===2)if(le)r=$e(e,"regexp.exec(string)",{string:r,regexp:s},s,o),r!==Te&&(e.g(this,"lastIndex",s.lastIndex),o(i(r)));else{var f=e.ha(),p=We(e,s,f,o),y=this;f.onmessage=function(x){clearTimeout(p),e.g(y,"lastIndex",x.data[1]),o(i(x.data[0]))},f.postMessage(["exec",s,s.lastIndex,r])}else r=s.exec(r),e.g(this,"lastIndex",s.lastIndex),o(i(r))},He(e,e.I,"exec",n)}function Io(e,t){function n(r){var o=e.i(function(i){var s=ue(e)?this:e.Aa(o);return Gt(e,s,i),s},!0);return e.g(o,"prototype",e.Aa(e.D),b),e.g(o.h.prototype,"name",r,b),e.g(t,r,o,b),o}e.D=e.i(function(r){var o=ue(e)?this:e.Aa(e.D);return Gt(e,o,r),o},!0),e.g(t,"Error",e.D,b),e.g(e.D.h.prototype,"message","",b),e.g(e.D.h.prototype,"name","Error",b),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function To(e,t){var n=e.s(e.M);e.g(t,"Math",n,b);var r="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<r.length;t++)e.g(n,r[t],Math[r[t]],J);for(r="abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "),t=0;t<r.length;t++)e.g(n,r[t],e.i(Math[r[t]],!1),b)}function Ao(e,t){var n=e.s(e.M);e.g(t,"JSON",n,b),t=function(r){try{var o=JSON.parse(String(r))}catch(i){E(e,e.T,i.message)}return e.Ia(o)},e.g(n,"parse",e.i(t,!1)),t=function(r,o,i){o&&o.H==="Function"?E(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=gr(e,o),o=o.filter(function(f){return typeof f=="string"||typeof f=="number"})):o=null,typeof i!="string"&&typeof i!="number"&&(i=void 0),r=e.R(r);try{var s=JSON.stringify(r,o,i)}catch(f){E(e,e.j,f.message)}return s},e.g(n,"stringify",e.i(t,!1))}function W(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=ce(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function Zt(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,b),e.g(t,"source",n.source,J),e.g(t,"global",n.global,J),e.g(t,"ignoreCase",n.ignoreCase,J),e.g(t,"multiline",n.multiline,J)}function Gt(e,t,n){n&&e.g(t,"message",String(n),b),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],i=o.node;i.type==="CallExpression"&&(o=o.U)&&n.length&&(n[n.length-1].Ob=e.G(o,"name")),!i.X||n.length&&i.type!=="CallExpression"||n.push({Nb:i.X})}for(r=String(e.G(t,"name")),i=String(e.G(t,"message")),i=r+": "+i+`
@@ -93,4 +93,4 @@ ${Ci({customFonts:e.customFonts})}
93
93
  font-family: inherit;
94
94
  }
95
95
  `.trim();return m.jsx(mt,{styles:t})}const Ii=({content:e,data:t,locale:n})=>{var i,s,f;const r={};(s=(i=e==null?void 0:e.data)==null?void 0:i.inputs)==null||s.forEach(p=>{var y;p.name&&p.defaultValue!==void 0&&((y=e==null?void 0:e.data)!=null&&y.state)&&e.data.state[p.name]===void 0&&(r[p.name]=p.defaultValue)});const o={...(f=e==null?void 0:e.data)==null?void 0:f.state,...t,...n?{locale:n}:{}};return{...r,...o}},Ti=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function Ai(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function Oi(){const e=Ai().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
96
- For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const Ir=Oi(),Ri=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},Tr=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(r){z.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},Ar=async e=>Tr(e),Pi=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(fe).join("; "),Ni=[["secure",""],["SameSite","None"]],Fi=({name:e,value:t,expires:n})=>{const o=(K()?location.protocol==="https:":!0)?Ni:[[]],i=n?[["expires",n.toUTCString()]]:[[]],s=[[e,t],...i,["path","/"],["domain",Ri(window.location.hostname)],...o];return Pi(s)},Or=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=Fi({name:e,value:t,expires:n});document.cookie=o}catch(o){z.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}};function Mi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function Rr(){return Mi().replace(/-/g,"")}const Pr="builderSessionId",Bi=async({canTrack:e})=>{if(!e)return;const t=await Ar({name:Pr,canTrack:e});if(fe(t))return t;{const n=Ui();return _i({id:n,canTrack:e}),n}},Ui=()=>Rr(),_i=({id:e,canTrack:t})=>Or({name:Pr,value:e,canTrack:t}),Nr=()=>K()&&typeof localStorage<"u"?localStorage:void 0,Vi=({key:e,canTrack:t})=>{var n;try{return t?(n=Nr())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},Li=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=Nr())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},Fr="builderVisitorId",$i=({canTrack:e})=>{if(!e)return;const t=Vi({key:Fr,canTrack:e});if(fe(t))return t;{const n=Di();return Wi({id:n,canTrack:e}),n}},Di=()=>Rr(),Wi=({id:e,canTrack:t})=>Li({key:Fr,value:e,canTrack:t}),Hi=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await Bi({canTrack:e}),n=$i({canTrack:e});return{sessionId:t,visitorId:n}},Ki=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await Hi({canTrack:t}),userAttributes:pr(),ownerId:n}});async function Mr(e){if(!e.apiKey){z.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!ft()&&(K()||ve==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await Ki(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const Gi=e=>Mr({...e,canTrack:!0}),Xi="0.7.1-2",nr={};function Br(e,t){let n=nr[e];if(n||(n=nr[e]=[]),n.push(t),K()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(o){console.debug("Could not postmessage",o)}}}const Ji=()=>{Br("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let rr=!1;const zi=(e={})=>{var t,n;rr||(rr=!0,K()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:ve,version:Xi,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",({data:r})=>{var o,i;if(r!=null&&r.type)switch(r.type){case"builder.evaluate":{const s=r.data.text,f=r.data.arguments||[],p=r.data.id,y=new Function(s);let x,S=null;try{x=y.apply(null,f)}catch(N){S=N}S?(o=window.parent)==null||o.postMessage({type:"builder.evaluateError",data:{id:p,error:S.message}},"*"):x&&typeof x.then=="function"?x.then(N=>{var j;(j=window.parent)==null||j.postMessage({type:"builder.evaluateResult",data:{id:p,result:N}},"*")}).catch(console.error):(i=window.parent)==null||i.postMessage({type:"builder.evaluateResult",data:{result:x,id:p}},"*");break}}})))};function or(e){return Math.round(e*1e3)/1e3}const Yi=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let r=n?e:e.parentElement;do{if(!r)return null;if(t(r))return r}while(r=r.parentElement);return null},qi=e=>Yi(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),ir=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=or(r/n.width),s=or(o/n.height);return{x:i,y:s}},Zi=e=>{const t=e.target,n=t&&qi(t),r=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:r||void 0,metadata:{targetOffset:t?ir({event:e,target:t}):void 0,builderTargetOffset:n?ir({event:e,target:n}):void 0,builderElementIndex:n&&r?[].slice.call(document.getElementsByClassName(r)).indexOf(n):void 0}}},Qi="builder.tests",cn=e=>`${Qi}.${e}`,ea=({contentId:e})=>Ar({name:cn(e),canTrack:!0}),ta=({contentId:e})=>Tr({name:cn(e),canTrack:!0}),na=({contentId:e,value:t})=>Or({name:cn(e),value:t,canTrack:!0}),Ur=e=>fe(e.id)&&fe(e.variations)&&Object.keys(e.variations).length>0,ra=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const i in t){const s=(o=t[i])==null?void 0:o.testRatio;if(n+=s,r<n)return i}return e},_r=e=>{const t=ra(e);return na({contentId:e.id,value:t}).catch(n=>{z.error("could not store A/B test variation: ",n)}),t},Vr=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},oa=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!Ur(e))return e;const n=ta({contentId:e.id})||_r({variations:e.variations,id:e.id}),r=Vr({item:e,testGroupId:n});return{...e,...r}},ia=async({item:e,canTrack:t})=>{if(!t||!Ur(e))return e;const r=await ea({contentId:e.id})||_r({variations:e.variations,id:e.id}),o=Vr({item:e,testGroupId:r});return{...e,...o}},ut=e=>fe(e)?e:!0,aa=e=>{const t=e.get("preview"),n=e.get("overrides."+t);return n||z.warn("No previewed ID found in search params."),n};function Lr(){globalThis._BUILDER_PREVIEW_LRU_CACHE||(globalThis._BUILDER_PREVIEW_LRU_CACHE=new ao.LRUCache({max:500,ttl:1e3*60*5}))}function sa(e){Lr();const t=aa(e);return typeof t=="string"?globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t):void 0}function lt(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const i=e[o],s=[t,o].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...r,...lt(i,s,n)}:{...r,[s]:i}},{})}const ar="builder.",la="options.",ca=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},un=e=>{if(!e)return{};const t=$r(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(ar)){const o=r.replace(ar,"").replace(la,"");n[o]=t[r]}}),n},ua=()=>{if(!K())return{};const e=new URLSearchParams(window.location.search);return un(e)},$r=e=>e instanceof URLSearchParams?ca(e):e,fa="v3",sr=e=>typeof e=="number"&&!isNaN(e)&&e>=0,fn=e=>{let{noTraverse:t=!1}=e;const{limit:n=30,userAttributes:r,query:o,model:i,apiKey:s,includeRefs:f=!0,enrich:p,locale:y,apiVersion:x=fa,fields:S,omit:N,offset:j,cacheSeconds:k,staleCacheSeconds:v,sort:P,includeUnpublished:M}=e;if(!s)throw new Error("Missing API key");if(!["v2","v3"].includes(x))throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${x}'`);(e.limit===void 0||e.limit>1)&&!("noTraverse"in e)&&(t=!0);const g=new URL(`https://cdn.builder.io/api/${x}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${f}${y?`&locale=${y}`:""}${p?`&enrich=${p}`:""}`);if(g.searchParams.set("omit",N||"meta.componentsUsed"),S&&g.searchParams.set("fields",S),Number.isFinite(j)&&j>-1&&g.searchParams.set("offset",String(Math.floor(j))),typeof M=="boolean"&&g.searchParams.set("includeUnpublished",String(M)),k&&sr(k)&&g.searchParams.set("cacheSeconds",String(k)),v&&sr(v)&&g.searchParams.set("staleCacheSeconds",String(v)),P){const Z=lt({sort:P});for(const B in Z)g.searchParams.set(B,JSON.stringify(Z[B]))}const pe={...ua(),...$r(e.options||{})},he=lt(pe);for(const Z in he)g.searchParams.set(Z,String(he[Z]));if(r&&g.searchParams.set("userAttributes",JSON.stringify(r)),o){const Z=lt({query:o});for(const B in Z)g.searchParams.set(B,JSON.stringify(Z[B]))}return g},pa=e=>"results"in e;async function vt(e){const t=await pn({...e,limit:1});return t&&t.results[0]||null}const ha=vt,da=async e=>{const t=fn(e);return await(await Ir(t.href)).json()},Dr=async(e,t,n=fn(e))=>{const r=ut(e.canTrack);if(n.search.includes("preview=")){const i=[];for(const s of t.results){const f=sa(n.searchParams);i.push(f||s)}t.results=i}if(!r||!(K()||ve==="reactNative"))return t;try{const i=[];for(const s of t.results)i.push(await ia({item:s,canTrack:r}));t.results=i}catch(i){z.error("Could not process A/B tests. ",i)}return t};async function pn(e){try{const t=fn(e),n=await da(e);return pa(n)?Dr(e,n):(z.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return z.error("Error fetching data. ",t),null}}const ma=pn;function ga(){return!K()||ft()?!1:location.search.indexOf("builder.preview=")!==-1}function zt(e){return m.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id})}function lr(e){var o,i,s,f,p,y,x,S,N;const t=ai({variationId:(o=e.content)==null?void 0:o.testVariationId,contentId:(i=e.content)==null?void 0:i.id}),n=[...er(),...tr,...e.customComponents||[]].reduce((j,{component:k,...v})=>({...j,[v.name]:{component:k,...Jt(v)}}),{}),r={content:Ti({content:e.content,data:e.data}),localState:void 0,rootState:Ii({content:e.content,data:e.data,locale:e.locale}),rootSetState:void 0,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...er(),...tr,...e.customComponents||[]].reduce((j,{component:k,...v})=>({...j,[v.name]:Jt(v)}),{}),inheritedStyles:{}};return m.jsxs(q.EnableEditor,{content:e.content,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,classNameProp:e.classNameProp,showContent:e.showContent,builderContextSignal:r,children:[e.isSsrAbTest?m.jsx(m.Fragment,{children:m.jsx(zt,{scriptStr:t})}):null,m.jsx(m.Fragment,{children:m.jsx(ji,{contentId:(s=r.content)==null?void 0:s.id,cssCode:(p=(f=r.content)==null?void 0:f.data)==null?void 0:p.cssCode,customFonts:(x=(y=r.content)==null?void 0:y.data)==null?void 0:x.customFonts})}),m.jsx(yt,{blocks:(N=(S=r.content)==null?void 0:S.data)==null?void 0:N.blocks,context:r,registeredComponents:n})]})}function hn(e){var i,s,f;const t=ei({canTrack:ut(e.canTrack),content:e.content}),n=function(){var y;return ii(st(e.content).map(x=>({id:x.testVariationId,testRatio:x.testRatio})),((y=e.content)==null?void 0:y.id)||"")},r=function(){return st(e.content).map(y=>`.variant-${y.testVariationId} { display: none; } `).join("")},o=function(){var y;return t?{...e.content,testVariationId:(y=e.content)==null?void 0:y.id}:oa({item:e.content,canTrack:ut(e.canTrack)})};return m.jsxs(m.Fragment,{children:[!e.__isNestedRender&&ve!=="reactNative"?m.jsx(m.Fragment,{children:m.jsx(zt,{scriptStr:oi()})}):null,t?m.jsxs(m.Fragment,{children:[m.jsx(mt,{id:`variants-styles-${(i=e.content)==null?void 0:i.id}`,styles:r()}),m.jsx(zt,{scriptStr:n()}),(s=st(e.content))==null?void 0:s.map(p=>m.jsx(lr,{content:p,showContent:!1,classNameProp:void 0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t},p.testVariationId))]}):null,m.jsx(lr,{content:o(),classNameProp:`variant-${(f=e.content)==null?void 0:f.id}`,showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t})]})}const ya=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return vt({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{z.error("Could not fetch symbol content: ",n)})};async function Wr(e){var r,o,i,s;const t=function(){var p,y;return[e.attributes.className,"builder-symbol",(p=e.symbol)!=null&&p.inline?"builder-inline-symbol":void 0,(y=e.symbol)!=null&&y.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},n=((r=e.symbol)==null?void 0:r.content)||await ya({symbol:e.symbol,builderContextValue:e.builderContext});return m.jsx("div",{...e.attributes,className:t(),children:m.jsx(hn,{__isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:e.builderContext.context,customComponents:Object.values(e.builderComponents),data:{...(o=e.symbol)==null?void 0:o.data,...e.builderContext.localState,...(i=n==null?void 0:n.data)==null?void 0:i.state},model:(s=e.symbol)==null?void 0:s.model,content:n})})}const va=yt,xa=hn,cr={};function wa(e){if(K()){Object.assign(cr,e);const t={type:"builder.settingsChange",data:cr};parent.postMessage(t,"*")}}const ba=async e=>{var r,o,i;const t=e.path||((r=e.url)==null?void 0:r.pathname)||((o=e.userAttributes)==null?void 0:o.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:un(e.searchParams||((i=e.url)==null?void 0:i.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await vt(n)}};exports.Blocks=yt;exports.Columns=Sr;exports.ContentVariants=hn;exports.RenderBlocks=va;exports.RenderContent=xa;exports.Symbol=Wr;exports.Text=jr;exports._processContentResult=Dr;exports._track=Mr;exports.createRegisterComponentMessage=wi;exports.evaluate=dt;exports.fastClone=ze;exports.fetch=Ir;exports.fetchBuilderProps=ba;exports.fetchEntries=pn;exports.fetchOneEntry=vt;exports.getAllContent=ma;exports.getBlockActions=Go;exports.getBlockProperties=br;exports.getBuilderSearchParams=un;exports.getContent=ha;exports.getDefaultCanTrack=ut;exports.getInteractionPropertiesForEvent=Zi;exports.getSrcSet=Qo;exports.init=Lr;exports.isBrowser=K;exports.isEditing=ft;exports.isJsScript=yi;exports.isPreviewing=ga;exports.logger=z;exports.register=Br;exports.registerInsertMenu=Ji;exports.setEditorSettings=wa;exports.setupBrowserForEditing=zi;exports.track=Gi;
96
+ For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const Ir=Oi(),Ri=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},Tr=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(r){z.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},Ar=async e=>Tr(e),Pi=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(fe).join("; "),Ni=[["secure",""],["SameSite","None"]],Fi=({name:e,value:t,expires:n})=>{const o=(K()?location.protocol==="https:":!0)?Ni:[[]],i=n?[["expires",n.toUTCString()]]:[[]],s=[[e,t],...i,["path","/"],["domain",Ri(window.location.hostname)],...o];return Pi(s)},Or=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=Fi({name:e,value:t,expires:n});document.cookie=o}catch(o){z.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}};function Mi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function Rr(){return Mi().replace(/-/g,"")}const Pr="builderSessionId",Bi=async({canTrack:e})=>{if(!e)return;const t=await Ar({name:Pr,canTrack:e});if(fe(t))return t;{const n=Ui();return _i({id:n,canTrack:e}),n}},Ui=()=>Rr(),_i=({id:e,canTrack:t})=>Or({name:Pr,value:e,canTrack:t}),Nr=()=>K()&&typeof localStorage<"u"?localStorage:void 0,Vi=({key:e,canTrack:t})=>{var n;try{return t?(n=Nr())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},Li=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=Nr())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},Fr="builderVisitorId",$i=({canTrack:e})=>{if(!e)return;const t=Vi({key:Fr,canTrack:e});if(fe(t))return t;{const n=Di();return Wi({id:n,canTrack:e}),n}},Di=()=>Rr(),Wi=({id:e,canTrack:t})=>Li({key:Fr,value:e,canTrack:t}),Hi=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await Bi({canTrack:e}),n=$i({canTrack:e});return{sessionId:t,visitorId:n}},Ki=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await Hi({canTrack:t}),userAttributes:pr(),ownerId:n}});async function Mr(e){if(!e.apiKey){z.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!ft()&&(K()||ve==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await Ki(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const Gi=e=>Mr({...e,canTrack:!0}),Xi="0.7.1-3",nr={};function Br(e,t){let n=nr[e];if(n||(n=nr[e]=[]),n.push(t),K()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(o){console.debug("Could not postmessage",o)}}}const Ji=()=>{Br("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let rr=!1;const zi=(e={})=>{var t,n;rr||(rr=!0,K()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:ve,version:Xi,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",({data:r})=>{var o,i;if(r!=null&&r.type)switch(r.type){case"builder.evaluate":{const s=r.data.text,f=r.data.arguments||[],p=r.data.id,y=new Function(s);let x,S=null;try{x=y.apply(null,f)}catch(N){S=N}S?(o=window.parent)==null||o.postMessage({type:"builder.evaluateError",data:{id:p,error:S.message}},"*"):x&&typeof x.then=="function"?x.then(N=>{var j;(j=window.parent)==null||j.postMessage({type:"builder.evaluateResult",data:{id:p,result:N}},"*")}).catch(console.error):(i=window.parent)==null||i.postMessage({type:"builder.evaluateResult",data:{result:x,id:p}},"*");break}}})))};function or(e){return Math.round(e*1e3)/1e3}const Yi=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let r=n?e:e.parentElement;do{if(!r)return null;if(t(r))return r}while(r=r.parentElement);return null},qi=e=>Yi(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),ir=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=or(r/n.width),s=or(o/n.height);return{x:i,y:s}},Zi=e=>{const t=e.target,n=t&&qi(t),r=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:r||void 0,metadata:{targetOffset:t?ir({event:e,target:t}):void 0,builderTargetOffset:n?ir({event:e,target:n}):void 0,builderElementIndex:n&&r?[].slice.call(document.getElementsByClassName(r)).indexOf(n):void 0}}},Qi="builder.tests",cn=e=>`${Qi}.${e}`,ea=({contentId:e})=>Ar({name:cn(e),canTrack:!0}),ta=({contentId:e})=>Tr({name:cn(e),canTrack:!0}),na=({contentId:e,value:t})=>Or({name:cn(e),value:t,canTrack:!0}),Ur=e=>fe(e.id)&&fe(e.variations)&&Object.keys(e.variations).length>0,ra=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const i in t){const s=(o=t[i])==null?void 0:o.testRatio;if(n+=s,r<n)return i}return e},_r=e=>{const t=ra(e);return na({contentId:e.id,value:t}).catch(n=>{z.error("could not store A/B test variation: ",n)}),t},Vr=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},oa=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!Ur(e))return e;const n=ta({contentId:e.id})||_r({variations:e.variations,id:e.id}),r=Vr({item:e,testGroupId:n});return{...e,...r}},ia=async({item:e,canTrack:t})=>{if(!t||!Ur(e))return e;const r=await ea({contentId:e.id})||_r({variations:e.variations,id:e.id}),o=Vr({item:e,testGroupId:r});return{...e,...o}},ut=e=>fe(e)?e:!0,aa=e=>{const t=e.get("preview"),n=e.get("overrides."+t);return n||z.warn("No previewed ID found in search params."),n};function Lr(){globalThis._BUILDER_PREVIEW_LRU_CACHE||(globalThis._BUILDER_PREVIEW_LRU_CACHE=new ao.LRUCache({max:500,ttl:1e3*60*5}))}function sa(e){Lr();const t=aa(e);return typeof t=="string"?globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t):void 0}function lt(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const i=e[o],s=[t,o].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...r,...lt(i,s,n)}:{...r,[s]:i}},{})}const ar="builder.",la="options.",ca=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},un=e=>{if(!e)return{};const t=$r(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(ar)){const o=r.replace(ar,"").replace(la,"");n[o]=t[r]}}),n},ua=()=>{if(!K())return{};const e=new URLSearchParams(window.location.search);return un(e)},$r=e=>e instanceof URLSearchParams?ca(e):e,fa="v3",sr=e=>typeof e=="number"&&!isNaN(e)&&e>=0,fn=e=>{let{noTraverse:t=!1}=e;const{limit:n=30,userAttributes:r,query:o,model:i,apiKey:s,includeRefs:f=!0,enrich:p,locale:y,apiVersion:x=fa,fields:S,omit:N,offset:j,cacheSeconds:k,staleCacheSeconds:v,sort:P,includeUnpublished:M}=e;if(!s)throw new Error("Missing API key");if(!["v2","v3"].includes(x))throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${x}'`);(e.limit===void 0||e.limit>1)&&!("noTraverse"in e)&&(t=!0);const g=new URL(`https://cdn.builder.io/api/${x}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${f}${y?`&locale=${y}`:""}${p?`&enrich=${p}`:""}`);if(g.searchParams.set("omit",N||"meta.componentsUsed"),S&&g.searchParams.set("fields",S),Number.isFinite(j)&&j>-1&&g.searchParams.set("offset",String(Math.floor(j))),typeof M=="boolean"&&g.searchParams.set("includeUnpublished",String(M)),k&&sr(k)&&g.searchParams.set("cacheSeconds",String(k)),v&&sr(v)&&g.searchParams.set("staleCacheSeconds",String(v)),P){const Z=lt({sort:P});for(const B in Z)g.searchParams.set(B,JSON.stringify(Z[B]))}const pe={...ua(),...$r(e.options||{})},he=lt(pe);for(const Z in he)g.searchParams.set(Z,String(he[Z]));if(r&&g.searchParams.set("userAttributes",JSON.stringify(r)),o){const Z=lt({query:o});for(const B in Z)g.searchParams.set(B,JSON.stringify(Z[B]))}return g},pa=e=>"results"in e;async function vt(e){const t=await pn({...e,limit:1});return t&&t.results[0]||null}const ha=vt,da=async e=>{const t=fn(e);return await(await Ir(t.href)).json()},Dr=async(e,t,n=fn(e))=>{const r=ut(e.canTrack);if(n.search.includes("preview=")){const i=[];for(const s of t.results){const f=sa(n.searchParams);i.push(f||s)}t.results=i}if(!r||!(K()||ve==="reactNative"))return t;try{const i=[];for(const s of t.results)i.push(await ia({item:s,canTrack:r}));t.results=i}catch(i){z.error("Could not process A/B tests. ",i)}return t};async function pn(e){try{const t=fn(e),n=await da(e);return pa(n)?Dr(e,n):(z.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return z.error("Error fetching data. ",t),null}}const ma=pn;function ga(){return!K()||ft()?!1:location.search.indexOf("builder.preview=")!==-1}function zt(e){return m.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id})}function lr(e){var o,i,s,f,p,y,x,S,N;const t=ai({variationId:(o=e.content)==null?void 0:o.testVariationId,contentId:(i=e.content)==null?void 0:i.id}),n=[...er(),...tr,...e.customComponents||[]].reduce((j,{component:k,...v})=>({...j,[v.name]:{component:k,...Jt(v)}}),{}),r={content:Ti({content:e.content,data:e.data}),localState:void 0,rootState:Ii({content:e.content,data:e.data,locale:e.locale}),rootSetState:void 0,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...er(),...tr,...e.customComponents||[]].reduce((j,{component:k,...v})=>({...j,[v.name]:Jt(v)}),{}),inheritedStyles:{}};return m.jsxs(q.EnableEditor,{content:e.content,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,classNameProp:e.classNameProp,showContent:e.showContent,builderContextSignal:r,children:[e.isSsrAbTest?m.jsx(m.Fragment,{children:m.jsx(zt,{scriptStr:t})}):null,m.jsx(m.Fragment,{children:m.jsx(ji,{contentId:(s=r.content)==null?void 0:s.id,cssCode:(p=(f=r.content)==null?void 0:f.data)==null?void 0:p.cssCode,customFonts:(x=(y=r.content)==null?void 0:y.data)==null?void 0:x.customFonts})}),m.jsx(yt,{blocks:(N=(S=r.content)==null?void 0:S.data)==null?void 0:N.blocks,context:r,registeredComponents:n})]})}function hn(e){var i,s,f;const t=ei({canTrack:ut(e.canTrack),content:e.content}),n=function(){var y;return ii(st(e.content).map(x=>({id:x.testVariationId,testRatio:x.testRatio})),((y=e.content)==null?void 0:y.id)||"")},r=function(){return st(e.content).map(y=>`.variant-${y.testVariationId} { display: none; } `).join("")},o=function(){var y;return t?{...e.content,testVariationId:(y=e.content)==null?void 0:y.id}:oa({item:e.content,canTrack:ut(e.canTrack)})};return m.jsxs(m.Fragment,{children:[!e.__isNestedRender&&ve!=="reactNative"?m.jsx(m.Fragment,{children:m.jsx(zt,{scriptStr:oi()})}):null,t?m.jsxs(m.Fragment,{children:[m.jsx(mt,{id:`variants-styles-${(i=e.content)==null?void 0:i.id}`,styles:r()}),m.jsx(zt,{scriptStr:n()}),(s=st(e.content))==null?void 0:s.map(p=>m.jsx(lr,{content:p,showContent:!1,classNameProp:void 0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t},p.testVariationId))]}):null,m.jsx(lr,{content:o(),classNameProp:`variant-${(f=e.content)==null?void 0:f.id}`,showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t})]})}const ya=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return vt({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{z.error("Could not fetch symbol content: ",n)})};async function Wr(e){var r,o,i,s;const t=function(){var p,y;return[e.attributes.className,"builder-symbol",(p=e.symbol)!=null&&p.inline?"builder-inline-symbol":void 0,(y=e.symbol)!=null&&y.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},n=((r=e.symbol)==null?void 0:r.content)||await ya({symbol:e.symbol,builderContextValue:e.builderContext});return m.jsx("div",{...e.attributes,className:t(),children:m.jsx(hn,{__isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:e.builderContext.context,customComponents:Object.values(e.builderComponents),data:{...(o=e.symbol)==null?void 0:o.data,...e.builderContext.localState,...(i=n==null?void 0:n.data)==null?void 0:i.state},model:(s=e.symbol)==null?void 0:s.model,content:n})})}const va=yt,xa=hn,cr={};function wa(e){if(K()){Object.assign(cr,e);const t={type:"builder.settingsChange",data:cr};parent.postMessage(t,"*")}}const ba=async e=>{var r,o,i;const t=e.path||((r=e.url)==null?void 0:r.pathname)||((o=e.userAttributes)==null?void 0:o.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:un(e.searchParams||((i=e.url)==null?void 0:i.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await vt(n)}};exports.Blocks=yt;exports.Columns=Sr;exports.ContentVariants=hn;exports.RenderBlocks=va;exports.RenderContent=xa;exports.Symbol=Wr;exports.Text=jr;exports._processContentResult=Dr;exports._track=Mr;exports.createRegisterComponentMessage=wi;exports.evaluate=dt;exports.fastClone=ze;exports.fetch=Ir;exports.fetchBuilderProps=ba;exports.fetchEntries=pn;exports.fetchOneEntry=vt;exports.getAllContent=ma;exports.getBlockActions=Go;exports.getBlockProperties=br;exports.getBuilderSearchParams=un;exports.getContent=ha;exports.getDefaultCanTrack=ut;exports.getInteractionPropertiesForEvent=Zi;exports.getSrcSet=Qo;exports.init=Lr;exports.isBrowser=K;exports.isEditing=ft;exports.isJsScript=yi;exports.isPreviewing=ga;exports.logger=z;exports.register=Br;exports.registerInsertMenu=Ji;exports.setEditorSettings=wa;exports.setupBrowserForEditing=zi;exports.track=Gi;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-1b9b93c7.js"),t=require("./USE_CLIENT_BUNDLE-bba76732.js");require("lru-cache");require("react/jsx-runtime");require("react");require("next/navigation");require("./USE_SERVER_BUNDLE-305bf94a.js");exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-cb675da6.js"),t=require("./USE_CLIENT_BUNDLE-66349ab4.js");require("lru-cache");require("react/jsx-runtime");require("react");require("next/navigation");require("./USE_SERVER_BUNDLE-02f64ca7.js");exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;
@@ -1,10 +1,10 @@
1
- import { B as i, t as m, C as c, R as g, q as p, S as l, T as C, z as d, m as f, E as u, w as B, n as S, x as E, A as R, y as h, i as x, f as k, u as y, v as P, D as b } from "./bundle-3d31ba5d.mjs";
2
- import { b as w, F as A, c as F, S as T, V } from "./USE_CLIENT_BUNDLE-6eb1ee54.mjs";
1
+ import { B as i, t as m, C as c, R as g, q as p, S as l, T as C, z as d, m as f, E as u, w as B, n as S, x as E, A as R, y as h, i as x, f as k, u as y, v as P, D as b } from "./bundle-4c987206.mjs";
2
+ import { b as w, F as A, c as F, S as T, V } from "./USE_CLIENT_BUNDLE-bcf2ccc8.mjs";
3
3
  import "lru-cache";
4
4
  import "react/jsx-runtime";
5
5
  import "react";
6
6
  import "next/navigation";
7
- import "./USE_SERVER_BUNDLE-66d4b8c4.mjs";
7
+ import "./USE_SERVER_BUNDLE-046e1bfb.mjs";
8
8
  export {
9
9
  i as Blocks,
10
10
  w as Button,
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsxs as w, Fragment as g, jsx as c } from "react/jsx-runtime";
3
- import { g as T, a as N, i as E, b as R, c as G, d as P, e as W, _ as A, f as $, l as Q, h as D, j as X, k as Y, r as Z, s as p, m as ee, n as te, o as ne } from "./bundle-3d31ba5d.mjs";
3
+ import { g as T, a as N, i as E, b as R, c as G, d as P, e as W, _ as A, f as $, l as Q, h as D, j as X, k as Y, r as Z, s as p, m as ee, n as te, o as ne } from "./bundle-e3f18037.mjs";
4
4
  import { useRef as j, useState as y, useEffect as x, createContext as ie, createElement as ae } from "react";
5
- import { p as ce } from "./USE_SERVER_BUNDLE-66d4b8c4.mjs";
5
+ import { p as ce } from "./USE_SERVER_BUNDLE-5a2dbc47.mjs";
6
6
  import { useRouter as re } from "next/navigation";
7
7
  function ge(e) {
8
8
  return /* @__PURE__ */ w(g, { children: [
@@ -1,4 +1,4 @@
1
- "use client";"use strict";const t=require("react/jsx-runtime"),c=require("./bundle-1b9b93c7.js"),o=require("react"),_=require("./USE_SERVER_BUNDLE-305bf94a.js"),M=require("next/navigation");function W(e){return t.jsxs(t.Fragment,{children:[e.link?t.jsx(t.Fragment,{children:t.jsx("a",{role:"button",...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,children:e.text})}):t.jsx(t.Fragment,{children:t.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-35669e6c",children:e.text})}),t.jsx("style",{children:`.button-35669e6c {
1
+ "use client";"use strict";const t=require("react/jsx-runtime"),c=require("./bundle-b8de5bb9.js"),o=require("react"),_=require("./USE_SERVER_BUNDLE-ddf14d3b.js"),M=require("next/navigation");function W(e){return t.jsxs(t.Fragment,{children:[e.link?t.jsx(t.Fragment,{children:t.jsx("a",{role:"button",...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,children:e.text})}):t.jsx(t.Fragment,{children:t.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-35669e6c",children:e.text})}),t.jsx("style",{children:`.button-35669e6c {
2
2
  all: unset;
3
3
  }`})]})}function A(e){return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})},children:e.children})}function V(e){return t.jsxs(t.Fragment,{children:[" ",e.hasChildren?t.jsx(t.Fragment,{children:t.jsxs(e.Wrapper,{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:[" ",e.children," "]})}):t.jsx(t.Fragment,{children:t.jsx(e.Wrapper,{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})})})," "]})}function z(e){function a(){var s;return"builder-blocks"+((s=e.blocks)!=null&&s.length?"":" no-blocks")}function g(){var s,x;c.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((x=window.parent)==null||x.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function h(){var s,x;c.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((x=window.parent)==null||x.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:a()+" div-02c7a115","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:s=>g(),onMouseEnter:s=>h(),onKeyPress:s=>g(),children:e.children}),t.jsx("style",{children:`.div-02c7a115 {
4
4
  display: flex;
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { p as s } from "./bundle-242ae8b5.mjs";
2
+ import { p as s } from "./bundle-e3f18037.mjs";
3
3
  async function n({
4
4
  key: t,
5
5
  value: r
@@ -1 +1 @@
1
- "use server";"use strict";const n=require("./bundle-05622db1.js");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
1
+ "use server";"use strict";const n=require("./bundle-b8de5bb9.js");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
@@ -1,4 +1,4 @@
1
- "use strict";const lruCache=require("lru-cache"),jsxRuntime=require("react/jsx-runtime"),react=require("react"),USE_CLIENT_BUNDLE=require("./USE_CLIENT_BUNDLE-8147b412.js");require("next/navigation");const fastClone=e=>JSON.parse(JSON.stringify(e)),SIZES={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},getMaxWidthQueryForSize=(e,t=SIZES)=>`@media (max-width: ${t[e].max}px)`,getSizesForBreakpoints=({small:e,medium:t})=>{const n=fastClone(SIZES);if(!e||!t)return n;const o=Math.floor(e/2);n.small={max:e,min:o,default:o+1};const r=n.small.max+1;n.medium={max:t,min:r,default:r+1};const i=n.medium.max+1;return n.large={max:2e3,min:i,default:i+1},n},TARGET="rsc",MSG_PREFIX="[Builder.io]: ",logger={log:(...e)=>console.log(MSG_PREFIX,...e),error:(...e)=>console.error(MSG_PREFIX,...e),warn:(...e)=>console.warn(MSG_PREFIX,...e),debug:(...e)=>console.debug(MSG_PREFIX,...e)};function isBrowser(){return typeof window<"u"&&typeof document<"u"}function isIframe(){return isBrowser()&&window.self!==window.top}function isEditing(){return isIframe()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const getLocation=()=>{if(isBrowser()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},getUserAgent=()=>typeof navigator=="object"&&navigator.userAgent||"",getUserAttributes=()=>{const e=getUserAgent(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||TARGET==="reactNative"}},n=e.match(/Tablet|iPad/i),o=getLocation();return{urlPath:o==null?void 0:o.pathname,host:(o==null?void 0:o.host)||(o==null?void 0:o.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},getFunctionArguments=({builder:e,context:t,event:n,state:o})=>Object.entries({state:o,Builder:e,builder:e,context:t,event:n}),getBuilderGlobals=()=>({isEditing:isEditing(),isBrowser:isBrowser(),isServer:!isBrowser(),getUserAttributes:()=>getUserAttributes()}),parseCode=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,runInBrowser=({code:e,builder:t,context:n,event:o,localState:r,rootSetState:i,rootState:a})=>{const c=getFunctionArguments({builder:t,context:n,event:o,state:flattenState(a,r,i)});return new Function(...c.map(([s])=>s),e)(...c.map(([,s])=>s))};function flattenState(e,t,n){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(o,r)=>t&&r in t?t[r]:e[r],set:(o,r,i)=>{if(t&&r in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[r]=i,n==null||n(e),!0}})}const noop=()=>null;let safeDynamicRequire=noop;try{safeDynamicRequire=eval("require")}catch(e){}const set=(e,t,n)=>{if(Object(e)!==e)return e;const o=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return o.slice(0,-1).reduce((r,i,a)=>Object(r[i])===r[i]?r[i]:r[i]=Math.abs(Number(o[a+1]))>>0===+o[a+1]?[]:{},e)[o[o.length-1]]=n,e},ivm=safeDynamicRequire("isolated-vm"),getSyncValName=e=>`bldr_${e}_sync`,BUILDER_SET_STATE_NAME="BUILDER_SET_STATE",INJECTED_IVM_GLOBAL="BUILDER_IVM",REF_TO_PROXY_FN=`
1
+ "use strict";const lruCache=require("lru-cache"),jsxRuntime=require("react/jsx-runtime"),react=require("react"),USE_CLIENT_BUNDLE=require("./USE_CLIENT_BUNDLE-9a315fd7.js");require("next/navigation");const fastClone=e=>JSON.parse(JSON.stringify(e)),SIZES={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},getMaxWidthQueryForSize=(e,t=SIZES)=>`@media (max-width: ${t[e].max}px)`,getSizesForBreakpoints=({small:e,medium:t})=>{const n=fastClone(SIZES);if(!e||!t)return n;const o=Math.floor(e/2);n.small={max:e,min:o,default:o+1};const r=n.small.max+1;n.medium={max:t,min:r,default:r+1};const i=n.medium.max+1;return n.large={max:2e3,min:i,default:i+1},n},TARGET="rsc",MSG_PREFIX="[Builder.io]: ",logger={log:(...e)=>console.log(MSG_PREFIX,...e),error:(...e)=>console.error(MSG_PREFIX,...e),warn:(...e)=>console.warn(MSG_PREFIX,...e),debug:(...e)=>console.debug(MSG_PREFIX,...e)};function isBrowser(){return typeof window<"u"&&typeof document<"u"}function isIframe(){return isBrowser()&&window.self!==window.top}function isEditing(){return isIframe()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const getLocation=()=>{if(isBrowser()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},getUserAgent=()=>typeof navigator=="object"&&navigator.userAgent||"",getUserAttributes=()=>{const e=getUserAgent(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||TARGET==="reactNative"}},n=e.match(/Tablet|iPad/i),o=getLocation();return{urlPath:o==null?void 0:o.pathname,host:(o==null?void 0:o.host)||(o==null?void 0:o.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},getFunctionArguments=({builder:e,context:t,event:n,state:o})=>Object.entries({state:o,Builder:e,builder:e,context:t,event:n}),getBuilderGlobals=()=>({isEditing:isEditing(),isBrowser:isBrowser(),isServer:!isBrowser(),getUserAttributes:()=>getUserAttributes()}),parseCode=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,runInBrowser=({code:e,builder:t,context:n,event:o,localState:r,rootSetState:i,rootState:a})=>{const c=getFunctionArguments({builder:t,context:n,event:o,state:flattenState(a,r,i)});return new Function(...c.map(([s])=>s),e)(...c.map(([,s])=>s))};function flattenState(e,t,n){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(o,r)=>t&&r in t?t[r]:e[r],set:(o,r,i)=>{if(t&&r in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[r]=i,n==null||n(e),!0}})}const noop=()=>null;let safeDynamicRequire=noop;try{safeDynamicRequire=eval("require")}catch(e){}const set=(e,t,n)=>{if(Object(e)!==e)return e;const o=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return o.slice(0,-1).reduce((r,i,a)=>Object(r[i])===r[i]?r[i]:r[i]=Math.abs(Number(o[a+1]))>>0===+o[a+1]?[]:{},e)[o[o.length-1]]=n,e},ivm=safeDynamicRequire("isolated-vm"),getSyncValName=e=>`bldr_${e}_sync`,BUILDER_SET_STATE_NAME="BUILDER_SET_STATE",INJECTED_IVM_GLOBAL="BUILDER_IVM",REF_TO_PROXY_FN=`
2
2
  var refToProxy = (obj) => {
3
3
  if (typeof obj !== 'object' || obj === null) {
4
4
  return obj;
@@ -113,4 +113,4 @@ ${getFontCss({customFonts:e.customFonts})}
113
113
  font-family: inherit;
114
114
  }
115
115
  `.trim();return jsxRuntime.jsx(InlinedStyles,{styles:t})}const getContextStateInitialValue=({content:e,data:t,locale:n})=>{var i,a,c;const o={};(a=(i=e==null?void 0:e.data)==null?void 0:i.inputs)==null||a.forEach(s=>{var u;s.name&&s.defaultValue!==void 0&&((u=e==null?void 0:e.data)!=null&&u.state)&&e.data.state[s.name]===void 0&&(o[s.name]=s.defaultValue)});const r={...(c=e==null?void 0:e.data)==null?void 0:c.state,...t,...n?{locale:n}:{}};return{...o,...r}},getContentInitialValue=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function getGlobalThis(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function getFetch(){const e=getGlobalThis().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
116
- For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const fetch$1=getFetch(),getTopLevelDomain=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},getCookieSync=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(o=>o.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(o){logger.warn("[COOKIE] GET error: ",(o==null?void 0:o.message)||o);return}},getCookie=async e=>getCookieSync(e),stringifyCookie=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(checkIsDefined).join("; "),SECURE_CONFIG=[["secure",""],["SameSite","None"]],createCookieString=({name:e,value:t,expires:n})=>{const r=(isBrowser()?location.protocol==="https:":!0)?SECURE_CONFIG:[[]],i=n?[["expires",n.toUTCString()]]:[[]],a=[[e,t],...i,["path","/"],["domain",getTopLevelDomain(window.location.hostname)],...r];return stringifyCookie(a)},setCookie=async({name:e,value:t,expires:n,canTrack:o})=>{try{if(!o)return;const r=createCookieString({name:e,value:t,expires:n});document.cookie=r}catch(r){logger.warn("[COOKIE] SET error: ",(r==null?void 0:r.message)||r)}};function uuidv4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function uuid(){return uuidv4().replace(/-/g,"")}const SESSION_LOCAL_STORAGE_KEY="builderSessionId",getSessionId=async({canTrack:e})=>{if(!e)return;const t=await getCookie({name:SESSION_LOCAL_STORAGE_KEY,canTrack:e});if(checkIsDefined(t))return t;{const n=createSessionId();return setSessionId({id:n,canTrack:e}),n}},createSessionId=()=>uuid(),setSessionId=({id:e,canTrack:t})=>setCookie({name:SESSION_LOCAL_STORAGE_KEY,value:e,canTrack:t}),getLocalStorage=()=>isBrowser()&&typeof localStorage<"u"?localStorage:void 0,getLocalStorageItem=({key:e,canTrack:t})=>{var n;try{return t?(n=getLocalStorage())==null?void 0:n.getItem(e):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},setLocalStorageItem=({key:e,canTrack:t,value:n})=>{var o;try{t&&((o=getLocalStorage())==null||o.setItem(e,n))}catch(r){console.debug("[LocalStorage] SET error: ",r)}},VISITOR_LOCAL_STORAGE_KEY="builderVisitorId",getVisitorId=({canTrack:e})=>{if(!e)return;const t=getLocalStorageItem({key:VISITOR_LOCAL_STORAGE_KEY,canTrack:e});if(checkIsDefined(t))return t;{const n=createVisitorId();return setVisitorId({id:n,canTrack:e}),n}},createVisitorId=()=>uuid(),setVisitorId=({id:e,canTrack:t})=>setLocalStorageItem({key:VISITOR_LOCAL_STORAGE_KEY,value:e,canTrack:t}),getTrackingEventData=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await getSessionId({canTrack:e}),n=getVisitorId({canTrack:e});return{sessionId:t,visitorId:n}},createEvent=async({type:e,canTrack:t,apiKey:n,metadata:o,...r})=>({type:e,data:{...r,metadata:{url:location.href,...o},...await getTrackingEventData({canTrack:t}),userAttributes:getUserAttributes(),ownerId:n}});async function _track(e){if(!e.apiKey){logger.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!isEditing()&&(isBrowser()||TARGET==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await createEvent(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const track=e=>_track({...e,canTrack:!0}),SDK_VERSION="0.7.1-2",registry={};function register(e,t){let n=registry[e];if(n||(n=registry[e]=[]),n.push(t),isBrowser()){const o={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(r){console.debug("Could not postmessage",r)}}}const registerInsertMenu=()=>{register("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let isSetupForEditing=!1;const setupBrowserForEditing=(e={})=>{var t,n;isSetupForEditing||(isSetupForEditing=!0,isBrowser()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:TARGET,version:SDK_VERSION,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",({data:o})=>{var r,i;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const a=o.data.text,c=o.data.arguments||[],s=o.data.id,u=new Function(a);let m,h=null;try{m=u.apply(null,c)}catch(p){h=p}h?(r=window.parent)==null||r.postMessage({type:"builder.evaluateError",data:{id:s,error:h.message}},"*"):m&&typeof m.then=="function"?m.then(p=>{var l;(l=window.parent)==null||l.postMessage({type:"builder.evaluateResult",data:{id:s,result:p}},"*")}).catch(console.error):(i=window.parent)==null||i.postMessage({type:"builder.evaluateResult",data:{result:m,id:s}},"*");break}}})))};function round(e){return Math.round(e*1e3)/1e3}const findParentElement=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let o=n?e:e.parentElement;do{if(!o)return null;if(t(o))return o}while(o=o.parentElement);return null},findBuilderParent=e=>findParentElement(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),computeOffset=({event:e,target:t})=>{const n=t.getBoundingClientRect(),o=e.clientX-n.left,r=e.clientY-n.top,i=round(o/n.width),a=round(r/n.height);return{x:i,y:a}},getInteractionPropertiesForEvent=e=>{const t=e.target,n=t&&findBuilderParent(t),o=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:o||void 0,metadata:{targetOffset:t?computeOffset({event:e,target:t}):void 0,builderTargetOffset:n?computeOffset({event:e,target:n}):void 0,builderElementIndex:n&&o?[].slice.call(document.getElementsByClassName(o)).indexOf(n):void 0}}},BUILDER_STORE_PREFIX="builder.tests",getContentTestKey=e=>`${BUILDER_STORE_PREFIX}.${e}`,getContentVariationCookie=({contentId:e})=>getCookie({name:getContentTestKey(e),canTrack:!0}),getContentVariationCookieSync=({contentId:e})=>getCookieSync({name:getContentTestKey(e),canTrack:!0}),setContentVariationCookie=({contentId:e,value:t})=>setCookie({name:getContentTestKey(e),value:t,canTrack:!0}),checkIsBuilderContentWithVariations=e=>checkIsDefined(e.id)&&checkIsDefined(e.variations)&&Object.keys(e.variations).length>0,getRandomVariationId=({id:e,variations:t})=>{var r;let n=0;const o=Math.random();for(const i in t){const a=(r=t[i])==null?void 0:r.testRatio;if(n+=a,o<n)return i}return e},getAndSetVariantId=e=>{const t=getRandomVariationId(e);return setContentVariationCookie({contentId:e.id,value:t}).catch(n=>{logger.error("could not store A/B test variation: ",n)}),t},getTestFields=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},handleABTestingSync=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!checkIsBuilderContentWithVariations(e))return e;const n=getContentVariationCookieSync({contentId:e.id})||getAndSetVariantId({variations:e.variations,id:e.id}),o=getTestFields({item:e,testGroupId:n});return{...e,...o}},handleABTesting=async({item:e,canTrack:t})=>{if(!t||!checkIsBuilderContentWithVariations(e))return e;const o=await getContentVariationCookie({contentId:e.id})||getAndSetVariantId({variations:e.variations,id:e.id}),r=getTestFields({item:e,testGroupId:o});return{...e,...r}},getDefaultCanTrack=e=>checkIsDefined(e)?e:!0,getIdFromSearchParams=e=>{const t=e.get("preview"),n=e.get("overrides."+t);return n||logger.warn("No previewed ID found in search params."),n};function init(){globalThis._BUILDER_PREVIEW_LRU_CACHE||(globalThis._BUILDER_PREVIEW_LRU_CACHE=new lruCache.LRUCache({max:500,ttl:1e3*60*5}))}function getPreviewContent(e){init();const t=getIdFromSearchParams(e);return typeof t=="string"?globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t):void 0}function flatten(e,t=null,n="."){return Object.keys(e).reduce((o,r)=>{const i=e[r],a=[t,r].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...o,...flatten(i,a,n)}:{...o,[a]:i}},{})}const BUILDER_SEARCHPARAMS_PREFIX="builder.",BUILDER_OPTIONS_PREFIX="options.",convertSearchParamsToQueryObject=e=>{const t={};return e.forEach((n,o)=>{t[o]=n}),t},getBuilderSearchParams=e=>{if(!e)return{};const t=normalizeSearchParams(e),n={};return Object.keys(t).forEach(o=>{if(o.startsWith(BUILDER_SEARCHPARAMS_PREFIX)){const r=o.replace(BUILDER_SEARCHPARAMS_PREFIX,"").replace(BUILDER_OPTIONS_PREFIX,"");n[r]=t[o]}}),n},getBuilderSearchParamsFromWindow=()=>{if(!isBrowser())return{};const e=new URLSearchParams(window.location.search);return getBuilderSearchParams(e)},normalizeSearchParams=e=>e instanceof URLSearchParams?convertSearchParamsToQueryObject(e):e,DEFAULT_API_VERSION="v3",isPositiveNumber=e=>typeof e=="number"&&!isNaN(e)&&e>=0,generateContentUrl=e=>{let{noTraverse:t=!1}=e;const{limit:n=30,userAttributes:o,query:r,model:i,apiKey:a,includeRefs:c=!0,enrich:s,locale:u,apiVersion:m=DEFAULT_API_VERSION,fields:h,omit:p,offset:l,cacheSeconds:f,staleCacheSeconds:d,sort:x,includeUnpublished:b}=e;if(!a)throw new Error("Missing API key");if(!["v2","v3"].includes(m))throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${m}'`);(e.limit===void 0||e.limit>1)&&!("noTraverse"in e)&&(t=!0);const g=new URL(`https://cdn.builder.io/api/${m}/content/${i}?apiKey=${a}&limit=${n}&noTraverse=${t}&includeRefs=${c}${u?`&locale=${u}`:""}${s?`&enrich=${s}`:""}`);if(g.searchParams.set("omit",p||"meta.componentsUsed"),h&&g.searchParams.set("fields",h),Number.isFinite(l)&&l>-1&&g.searchParams.set("offset",String(Math.floor(l))),typeof b=="boolean"&&g.searchParams.set("includeUnpublished",String(b)),f&&isPositiveNumber(f)&&g.searchParams.set("cacheSeconds",String(f)),d&&isPositiveNumber(d)&&g.searchParams.set("staleCacheSeconds",String(d)),x){const y=flatten({sort:x});for(const C in y)g.searchParams.set(C,JSON.stringify(y[C]))}const v={...getBuilderSearchParamsFromWindow(),...normalizeSearchParams(e.options||{})},S=flatten(v);for(const y in S)g.searchParams.set(y,String(S[y]));if(o&&g.searchParams.set("userAttributes",JSON.stringify(o)),r){const y=flatten({query:r});for(const C in y)g.searchParams.set(C,JSON.stringify(y[C]))}return g},checkContentHasResults=e=>"results"in e;async function fetchOneEntry(e){const t=await fetchEntries({...e,limit:1});return t&&t.results[0]||null}const getContent=fetchOneEntry,_fetchContent=async e=>{const t=generateContentUrl(e);return await(await fetch$1(t.href)).json()},_processContentResult=async(e,t,n=generateContentUrl(e))=>{const o=getDefaultCanTrack(e.canTrack);if(n.search.includes("preview=")){const i=[];for(const a of t.results){const c=getPreviewContent(n.searchParams);i.push(c||a)}t.results=i}if(!o||!(isBrowser()||TARGET==="reactNative"))return t;try{const i=[];for(const a of t.results)i.push(await handleABTesting({item:a,canTrack:o}));t.results=i}catch(i){logger.error("Could not process A/B tests. ",i)}return t};async function fetchEntries(e){try{const t=generateContentUrl(e),n=await _fetchContent(e);return checkContentHasResults(n)?_processContentResult(e,n):(logger.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return logger.error("Error fetching data. ",t),null}}const getAllContent=fetchEntries;function isPreviewing(){return!isBrowser()||isEditing()?!1:location.search.indexOf("builder.preview=")!==-1}function InlinedScript(e){return jsxRuntime.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id})}function ContentComponent(e){var r,i,a,c,s,u,m,h,p;const t=getRenderContentScriptString({variationId:(r=e.content)==null?void 0:r.testVariationId,contentId:(i=e.content)==null?void 0:i.id}),n=[...getDefaultRegisteredComponents(),...components,...e.customComponents||[]].reduce((l,{component:f,...d})=>({...l,[d.name]:{component:f,...serializeComponentInfo(d)}}),{}),o={content:getContentInitialValue({content:e.content,data:e.data}),localState:void 0,rootState:getContextStateInitialValue({content:e.content,data:e.data,locale:e.locale}),rootSetState:void 0,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...getDefaultRegisteredComponents(),...components,...e.customComponents||[]].reduce((l,{component:f,...d})=>({...l,[d.name]:serializeComponentInfo(d)}),{}),inheritedStyles:{}};return jsxRuntime.jsxs(USE_CLIENT_BUNDLE.EnableEditor,{content:e.content,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,classNameProp:e.classNameProp,showContent:e.showContent,builderContextSignal:o,children:[e.isSsrAbTest?jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(InlinedScript,{scriptStr:t})}):null,jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(ContentStyles,{contentId:(a=o.content)==null?void 0:a.id,cssCode:(s=(c=o.content)==null?void 0:c.data)==null?void 0:s.cssCode,customFonts:(m=(u=o.content)==null?void 0:u.data)==null?void 0:m.customFonts})}),jsxRuntime.jsx(Blocks,{blocks:(p=(h=o.content)==null?void 0:h.data)==null?void 0:p.blocks,context:o,registeredComponents:n})]})}function ContentVariants(e){var i,a,c;const t=checkShouldRunVariants({canTrack:getDefaultCanTrack(e.canTrack),content:e.content}),n=function(){var u;return getVariantsScriptString(getVariants(e.content).map(m=>({id:m.testVariationId,testRatio:m.testRatio})),((u=e.content)==null?void 0:u.id)||"")},o=function(){return getVariants(e.content).map(u=>`.variant-${u.testVariationId} { display: none; } `).join("")},r=function(){var u;return t?{...e.content,testVariationId:(u=e.content)==null?void 0:u.id}:handleABTestingSync({item:e.content,canTrack:getDefaultCanTrack(e.canTrack)})};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!e.__isNestedRender&&TARGET!=="reactNative"?jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(InlinedScript,{scriptStr:getScriptString()})}):null,t?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(InlinedStyles,{id:`variants-styles-${(i=e.content)==null?void 0:i.id}`,styles:o()}),jsxRuntime.jsx(InlinedScript,{scriptStr:n()}),(a=getVariants(e.content))==null?void 0:a.map(s=>jsxRuntime.jsx(ContentComponent,{content:s,showContent:!1,classNameProp:void 0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t},s.testVariationId))]}):null,jsxRuntime.jsx(ContentComponent,{content:r(),classNameProp:`variant-${(c=e.content)==null?void 0:c.id}`,showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t})]})}const fetchSymbolContent=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return fetchOneEntry({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{logger.error("Could not fetch symbol content: ",n)})};async function Symbol$1(e){var o,r,i,a;const t=function(){var s,u;return[e.attributes.className,"builder-symbol",(s=e.symbol)!=null&&s.inline?"builder-inline-symbol":void 0,(u=e.symbol)!=null&&u.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},n=((o=e.symbol)==null?void 0:o.content)||await fetchSymbolContent({symbol:e.symbol,builderContextValue:e.builderContext});return jsxRuntime.jsx("div",{...e.attributes,className:t(),children:jsxRuntime.jsx(ContentVariants,{__isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:e.builderContext.context,customComponents:Object.values(e.builderComponents),data:{...(r=e.symbol)==null?void 0:r.data,...e.builderContext.localState,...(i=n==null?void 0:n.data)==null?void 0:i.state},model:(a=e.symbol)==null?void 0:a.model,content:n})})}const RenderBlocks=Blocks,RenderContent=ContentVariants,settings={};function setEditorSettings(e){if(isBrowser()){Object.assign(settings,e);const t={type:"builder.settingsChange",data:settings};parent.postMessage(t,"*")}}const fetchBuilderProps=async e=>{var o,r,i;const t=e.path||((o=e.url)==null?void 0:o.pathname)||((r=e.userAttributes)==null?void 0:r.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:getBuilderSearchParams(e.searchParams||((i=e.url)==null?void 0:i.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await fetchOneEntry(n)}};exports.Blocks=Blocks;exports.Columns=Columns;exports.ContentVariants=ContentVariants;exports.RenderBlocks=RenderBlocks;exports.RenderContent=RenderContent;exports.Symbol=Symbol$1;exports.Text=Text;exports._processContentResult=_processContentResult;exports._track=_track;exports.createRegisterComponentMessage=createRegisterComponentMessage;exports.evaluate=evaluate;exports.fastClone=fastClone;exports.fetch=fetch$1;exports.fetchBuilderProps=fetchBuilderProps;exports.fetchEntries=fetchEntries;exports.fetchOneEntry=fetchOneEntry;exports.getAllContent=getAllContent;exports.getBlockActions=getBlockActions;exports.getBlockProperties=getBlockProperties;exports.getBuilderSearchParams=getBuilderSearchParams;exports.getContent=getContent;exports.getDefaultCanTrack=getDefaultCanTrack;exports.getInteractionPropertiesForEvent=getInteractionPropertiesForEvent;exports.getSrcSet=getSrcSet;exports.init=init;exports.isBrowser=isBrowser;exports.isEditing=isEditing;exports.isJsScript=isJsScript;exports.isPreviewing=isPreviewing;exports.logger=logger;exports.register=register;exports.registerInsertMenu=registerInsertMenu;exports.setEditorSettings=setEditorSettings;exports.setupBrowserForEditing=setupBrowserForEditing;exports.track=track;
116
+ For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const fetch$1=getFetch(),getTopLevelDomain=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},getCookieSync=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(o=>o.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(o){logger.warn("[COOKIE] GET error: ",(o==null?void 0:o.message)||o);return}},getCookie=async e=>getCookieSync(e),stringifyCookie=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(checkIsDefined).join("; "),SECURE_CONFIG=[["secure",""],["SameSite","None"]],createCookieString=({name:e,value:t,expires:n})=>{const r=(isBrowser()?location.protocol==="https:":!0)?SECURE_CONFIG:[[]],i=n?[["expires",n.toUTCString()]]:[[]],a=[[e,t],...i,["path","/"],["domain",getTopLevelDomain(window.location.hostname)],...r];return stringifyCookie(a)},setCookie=async({name:e,value:t,expires:n,canTrack:o})=>{try{if(!o)return;const r=createCookieString({name:e,value:t,expires:n});document.cookie=r}catch(r){logger.warn("[COOKIE] SET error: ",(r==null?void 0:r.message)||r)}};function uuidv4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function uuid(){return uuidv4().replace(/-/g,"")}const SESSION_LOCAL_STORAGE_KEY="builderSessionId",getSessionId=async({canTrack:e})=>{if(!e)return;const t=await getCookie({name:SESSION_LOCAL_STORAGE_KEY,canTrack:e});if(checkIsDefined(t))return t;{const n=createSessionId();return setSessionId({id:n,canTrack:e}),n}},createSessionId=()=>uuid(),setSessionId=({id:e,canTrack:t})=>setCookie({name:SESSION_LOCAL_STORAGE_KEY,value:e,canTrack:t}),getLocalStorage=()=>isBrowser()&&typeof localStorage<"u"?localStorage:void 0,getLocalStorageItem=({key:e,canTrack:t})=>{var n;try{return t?(n=getLocalStorage())==null?void 0:n.getItem(e):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},setLocalStorageItem=({key:e,canTrack:t,value:n})=>{var o;try{t&&((o=getLocalStorage())==null||o.setItem(e,n))}catch(r){console.debug("[LocalStorage] SET error: ",r)}},VISITOR_LOCAL_STORAGE_KEY="builderVisitorId",getVisitorId=({canTrack:e})=>{if(!e)return;const t=getLocalStorageItem({key:VISITOR_LOCAL_STORAGE_KEY,canTrack:e});if(checkIsDefined(t))return t;{const n=createVisitorId();return setVisitorId({id:n,canTrack:e}),n}},createVisitorId=()=>uuid(),setVisitorId=({id:e,canTrack:t})=>setLocalStorageItem({key:VISITOR_LOCAL_STORAGE_KEY,value:e,canTrack:t}),getTrackingEventData=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await getSessionId({canTrack:e}),n=getVisitorId({canTrack:e});return{sessionId:t,visitorId:n}},createEvent=async({type:e,canTrack:t,apiKey:n,metadata:o,...r})=>({type:e,data:{...r,metadata:{url:location.href,...o},...await getTrackingEventData({canTrack:t}),userAttributes:getUserAttributes(),ownerId:n}});async function _track(e){if(!e.apiKey){logger.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!isEditing()&&(isBrowser()||TARGET==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await createEvent(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const track=e=>_track({...e,canTrack:!0}),SDK_VERSION="0.7.1-3",registry={};function register(e,t){let n=registry[e];if(n||(n=registry[e]=[]),n.push(t),isBrowser()){const o={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(r){console.debug("Could not postmessage",r)}}}const registerInsertMenu=()=>{register("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let isSetupForEditing=!1;const setupBrowserForEditing=(e={})=>{var t,n;isSetupForEditing||(isSetupForEditing=!0,isBrowser()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:TARGET,version:SDK_VERSION,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",({data:o})=>{var r,i;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const a=o.data.text,c=o.data.arguments||[],s=o.data.id,u=new Function(a);let m,h=null;try{m=u.apply(null,c)}catch(p){h=p}h?(r=window.parent)==null||r.postMessage({type:"builder.evaluateError",data:{id:s,error:h.message}},"*"):m&&typeof m.then=="function"?m.then(p=>{var l;(l=window.parent)==null||l.postMessage({type:"builder.evaluateResult",data:{id:s,result:p}},"*")}).catch(console.error):(i=window.parent)==null||i.postMessage({type:"builder.evaluateResult",data:{result:m,id:s}},"*");break}}})))};function round(e){return Math.round(e*1e3)/1e3}const findParentElement=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let o=n?e:e.parentElement;do{if(!o)return null;if(t(o))return o}while(o=o.parentElement);return null},findBuilderParent=e=>findParentElement(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),computeOffset=({event:e,target:t})=>{const n=t.getBoundingClientRect(),o=e.clientX-n.left,r=e.clientY-n.top,i=round(o/n.width),a=round(r/n.height);return{x:i,y:a}},getInteractionPropertiesForEvent=e=>{const t=e.target,n=t&&findBuilderParent(t),o=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:o||void 0,metadata:{targetOffset:t?computeOffset({event:e,target:t}):void 0,builderTargetOffset:n?computeOffset({event:e,target:n}):void 0,builderElementIndex:n&&o?[].slice.call(document.getElementsByClassName(o)).indexOf(n):void 0}}},BUILDER_STORE_PREFIX="builder.tests",getContentTestKey=e=>`${BUILDER_STORE_PREFIX}.${e}`,getContentVariationCookie=({contentId:e})=>getCookie({name:getContentTestKey(e),canTrack:!0}),getContentVariationCookieSync=({contentId:e})=>getCookieSync({name:getContentTestKey(e),canTrack:!0}),setContentVariationCookie=({contentId:e,value:t})=>setCookie({name:getContentTestKey(e),value:t,canTrack:!0}),checkIsBuilderContentWithVariations=e=>checkIsDefined(e.id)&&checkIsDefined(e.variations)&&Object.keys(e.variations).length>0,getRandomVariationId=({id:e,variations:t})=>{var r;let n=0;const o=Math.random();for(const i in t){const a=(r=t[i])==null?void 0:r.testRatio;if(n+=a,o<n)return i}return e},getAndSetVariantId=e=>{const t=getRandomVariationId(e);return setContentVariationCookie({contentId:e.id,value:t}).catch(n=>{logger.error("could not store A/B test variation: ",n)}),t},getTestFields=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},handleABTestingSync=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!checkIsBuilderContentWithVariations(e))return e;const n=getContentVariationCookieSync({contentId:e.id})||getAndSetVariantId({variations:e.variations,id:e.id}),o=getTestFields({item:e,testGroupId:n});return{...e,...o}},handleABTesting=async({item:e,canTrack:t})=>{if(!t||!checkIsBuilderContentWithVariations(e))return e;const o=await getContentVariationCookie({contentId:e.id})||getAndSetVariantId({variations:e.variations,id:e.id}),r=getTestFields({item:e,testGroupId:o});return{...e,...r}},getDefaultCanTrack=e=>checkIsDefined(e)?e:!0,getIdFromSearchParams=e=>{const t=e.get("preview"),n=e.get("overrides."+t);return n||logger.warn("No previewed ID found in search params."),n};function init(){globalThis._BUILDER_PREVIEW_LRU_CACHE||(globalThis._BUILDER_PREVIEW_LRU_CACHE=new lruCache.LRUCache({max:500,ttl:1e3*60*5}))}function getPreviewContent(e){init();const t=getIdFromSearchParams(e);return typeof t=="string"?globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t):void 0}function flatten(e,t=null,n="."){return Object.keys(e).reduce((o,r)=>{const i=e[r],a=[t,r].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...o,...flatten(i,a,n)}:{...o,[a]:i}},{})}const BUILDER_SEARCHPARAMS_PREFIX="builder.",BUILDER_OPTIONS_PREFIX="options.",convertSearchParamsToQueryObject=e=>{const t={};return e.forEach((n,o)=>{t[o]=n}),t},getBuilderSearchParams=e=>{if(!e)return{};const t=normalizeSearchParams(e),n={};return Object.keys(t).forEach(o=>{if(o.startsWith(BUILDER_SEARCHPARAMS_PREFIX)){const r=o.replace(BUILDER_SEARCHPARAMS_PREFIX,"").replace(BUILDER_OPTIONS_PREFIX,"");n[r]=t[o]}}),n},getBuilderSearchParamsFromWindow=()=>{if(!isBrowser())return{};const e=new URLSearchParams(window.location.search);return getBuilderSearchParams(e)},normalizeSearchParams=e=>e instanceof URLSearchParams?convertSearchParamsToQueryObject(e):e,DEFAULT_API_VERSION="v3",isPositiveNumber=e=>typeof e=="number"&&!isNaN(e)&&e>=0,generateContentUrl=e=>{let{noTraverse:t=!1}=e;const{limit:n=30,userAttributes:o,query:r,model:i,apiKey:a,includeRefs:c=!0,enrich:s,locale:u,apiVersion:m=DEFAULT_API_VERSION,fields:h,omit:p,offset:l,cacheSeconds:f,staleCacheSeconds:d,sort:x,includeUnpublished:b}=e;if(!a)throw new Error("Missing API key");if(!["v2","v3"].includes(m))throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${m}'`);(e.limit===void 0||e.limit>1)&&!("noTraverse"in e)&&(t=!0);const g=new URL(`https://cdn.builder.io/api/${m}/content/${i}?apiKey=${a}&limit=${n}&noTraverse=${t}&includeRefs=${c}${u?`&locale=${u}`:""}${s?`&enrich=${s}`:""}`);if(g.searchParams.set("omit",p||"meta.componentsUsed"),h&&g.searchParams.set("fields",h),Number.isFinite(l)&&l>-1&&g.searchParams.set("offset",String(Math.floor(l))),typeof b=="boolean"&&g.searchParams.set("includeUnpublished",String(b)),f&&isPositiveNumber(f)&&g.searchParams.set("cacheSeconds",String(f)),d&&isPositiveNumber(d)&&g.searchParams.set("staleCacheSeconds",String(d)),x){const y=flatten({sort:x});for(const C in y)g.searchParams.set(C,JSON.stringify(y[C]))}const v={...getBuilderSearchParamsFromWindow(),...normalizeSearchParams(e.options||{})},S=flatten(v);for(const y in S)g.searchParams.set(y,String(S[y]));if(o&&g.searchParams.set("userAttributes",JSON.stringify(o)),r){const y=flatten({query:r});for(const C in y)g.searchParams.set(C,JSON.stringify(y[C]))}return g},checkContentHasResults=e=>"results"in e;async function fetchOneEntry(e){const t=await fetchEntries({...e,limit:1});return t&&t.results[0]||null}const getContent=fetchOneEntry,_fetchContent=async e=>{const t=generateContentUrl(e);return await(await fetch$1(t.href)).json()},_processContentResult=async(e,t,n=generateContentUrl(e))=>{const o=getDefaultCanTrack(e.canTrack);if(n.search.includes("preview=")){const i=[];for(const a of t.results){const c=getPreviewContent(n.searchParams);i.push(c||a)}t.results=i}if(!o||!(isBrowser()||TARGET==="reactNative"))return t;try{const i=[];for(const a of t.results)i.push(await handleABTesting({item:a,canTrack:o}));t.results=i}catch(i){logger.error("Could not process A/B tests. ",i)}return t};async function fetchEntries(e){try{const t=generateContentUrl(e),n=await _fetchContent(e);return checkContentHasResults(n)?_processContentResult(e,n):(logger.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return logger.error("Error fetching data. ",t),null}}const getAllContent=fetchEntries;function isPreviewing(){return!isBrowser()||isEditing()?!1:location.search.indexOf("builder.preview=")!==-1}function InlinedScript(e){return jsxRuntime.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id})}function ContentComponent(e){var r,i,a,c,s,u,m,h,p;const t=getRenderContentScriptString({variationId:(r=e.content)==null?void 0:r.testVariationId,contentId:(i=e.content)==null?void 0:i.id}),n=[...getDefaultRegisteredComponents(),...components,...e.customComponents||[]].reduce((l,{component:f,...d})=>({...l,[d.name]:{component:f,...serializeComponentInfo(d)}}),{}),o={content:getContentInitialValue({content:e.content,data:e.data}),localState:void 0,rootState:getContextStateInitialValue({content:e.content,data:e.data,locale:e.locale}),rootSetState:void 0,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...getDefaultRegisteredComponents(),...components,...e.customComponents||[]].reduce((l,{component:f,...d})=>({...l,[d.name]:serializeComponentInfo(d)}),{}),inheritedStyles:{}};return jsxRuntime.jsxs(USE_CLIENT_BUNDLE.EnableEditor,{content:e.content,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,classNameProp:e.classNameProp,showContent:e.showContent,builderContextSignal:o,children:[e.isSsrAbTest?jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(InlinedScript,{scriptStr:t})}):null,jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(ContentStyles,{contentId:(a=o.content)==null?void 0:a.id,cssCode:(s=(c=o.content)==null?void 0:c.data)==null?void 0:s.cssCode,customFonts:(m=(u=o.content)==null?void 0:u.data)==null?void 0:m.customFonts})}),jsxRuntime.jsx(Blocks,{blocks:(p=(h=o.content)==null?void 0:h.data)==null?void 0:p.blocks,context:o,registeredComponents:n})]})}function ContentVariants(e){var i,a,c;const t=checkShouldRunVariants({canTrack:getDefaultCanTrack(e.canTrack),content:e.content}),n=function(){var u;return getVariantsScriptString(getVariants(e.content).map(m=>({id:m.testVariationId,testRatio:m.testRatio})),((u=e.content)==null?void 0:u.id)||"")},o=function(){return getVariants(e.content).map(u=>`.variant-${u.testVariationId} { display: none; } `).join("")},r=function(){var u;return t?{...e.content,testVariationId:(u=e.content)==null?void 0:u.id}:handleABTestingSync({item:e.content,canTrack:getDefaultCanTrack(e.canTrack)})};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!e.__isNestedRender&&TARGET!=="reactNative"?jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(InlinedScript,{scriptStr:getScriptString()})}):null,t?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(InlinedStyles,{id:`variants-styles-${(i=e.content)==null?void 0:i.id}`,styles:o()}),jsxRuntime.jsx(InlinedScript,{scriptStr:n()}),(a=getVariants(e.content))==null?void 0:a.map(s=>jsxRuntime.jsx(ContentComponent,{content:s,showContent:!1,classNameProp:void 0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t},s.testVariationId))]}):null,jsxRuntime.jsx(ContentComponent,{content:r(),classNameProp:`variant-${(c=e.content)==null?void 0:c.id}`,showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t})]})}const fetchSymbolContent=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return fetchOneEntry({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{logger.error("Could not fetch symbol content: ",n)})};async function Symbol$1(e){var o,r,i,a;const t=function(){var s,u;return[e.attributes.className,"builder-symbol",(s=e.symbol)!=null&&s.inline?"builder-inline-symbol":void 0,(u=e.symbol)!=null&&u.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},n=((o=e.symbol)==null?void 0:o.content)||await fetchSymbolContent({symbol:e.symbol,builderContextValue:e.builderContext});return jsxRuntime.jsx("div",{...e.attributes,className:t(),children:jsxRuntime.jsx(ContentVariants,{__isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:e.builderContext.context,customComponents:Object.values(e.builderComponents),data:{...(r=e.symbol)==null?void 0:r.data,...e.builderContext.localState,...(i=n==null?void 0:n.data)==null?void 0:i.state},model:(a=e.symbol)==null?void 0:a.model,content:n})})}const RenderBlocks=Blocks,RenderContent=ContentVariants,settings={};function setEditorSettings(e){if(isBrowser()){Object.assign(settings,e);const t={type:"builder.settingsChange",data:settings};parent.postMessage(t,"*")}}const fetchBuilderProps=async e=>{var o,r,i;const t=e.path||((o=e.url)==null?void 0:o.pathname)||((r=e.userAttributes)==null?void 0:r.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:getBuilderSearchParams(e.searchParams||((i=e.url)==null?void 0:i.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await fetchOneEntry(n)}};exports.Blocks=Blocks;exports.Columns=Columns;exports.ContentVariants=ContentVariants;exports.RenderBlocks=RenderBlocks;exports.RenderContent=RenderContent;exports.Symbol=Symbol$1;exports.Text=Text;exports._processContentResult=_processContentResult;exports._track=_track;exports.createRegisterComponentMessage=createRegisterComponentMessage;exports.evaluate=evaluate;exports.fastClone=fastClone;exports.fetch=fetch$1;exports.fetchBuilderProps=fetchBuilderProps;exports.fetchEntries=fetchEntries;exports.fetchOneEntry=fetchOneEntry;exports.getAllContent=getAllContent;exports.getBlockActions=getBlockActions;exports.getBlockProperties=getBlockProperties;exports.getBuilderSearchParams=getBuilderSearchParams;exports.getContent=getContent;exports.getDefaultCanTrack=getDefaultCanTrack;exports.getInteractionPropertiesForEvent=getInteractionPropertiesForEvent;exports.getSrcSet=getSrcSet;exports.init=init;exports.isBrowser=isBrowser;exports.isEditing=isEditing;exports.isJsScript=isJsScript;exports.isPreviewing=isPreviewing;exports.logger=logger;exports.register=register;exports.registerInsertMenu=registerInsertMenu;exports.setEditorSettings=setEditorSettings;exports.setupBrowserForEditing=setupBrowserForEditing;exports.track=track;
@@ -1,7 +1,7 @@
1
1
  import { LRUCache } from "lru-cache";
2
2
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
3
3
  import { createElement } from "react";
4
- import { I as InteractiveElement, B as BlockWrapper, a as BlocksWrapper, b as Button, C as CustomCode, E as Embed, F as FragmentComponent, c as Image, d as ImgComponent, S as SectionComponent, V as Video, e as EnableEditor } from "./USE_CLIENT_BUNDLE-e041d92c.mjs";
4
+ import { I as InteractiveElement, B as BlockWrapper, a as BlocksWrapper, b as Button, C as CustomCode, E as Embed, F as FragmentComponent, c as Image, d as ImgComponent, S as SectionComponent, V as Video, e as EnableEditor } from "./USE_CLIENT_BUNDLE-3263fb05.mjs";
5
5
  import "next/navigation";
6
6
  const fastClone = (e) => JSON.parse(JSON.stringify(e)), SIZES = {
7
7
  small: {
@@ -1890,7 +1890,7 @@ async function _track(e) {
1890
1890
  const track = (e) => _track({
1891
1891
  ...e,
1892
1892
  canTrack: !0
1893
- }), SDK_VERSION = "0.7.1-2", registry = {};
1893
+ }), SDK_VERSION = "0.7.1-3", registry = {};
1894
1894
  function register(e, t) {
1895
1895
  let n = registry[e];
1896
1896
  if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-4203318d.js"),t=require("./USE_CLIENT_BUNDLE-8147b412.js");require("lru-cache");require("react/jsx-runtime");require("react");require("next/navigation");require("./USE_SERVER_BUNDLE-8c1ae1f0.js");exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-b8de5bb9.js"),t=require("./USE_CLIENT_BUNDLE-9a315fd7.js");require("lru-cache");require("react/jsx-runtime");require("react");require("next/navigation");require("./USE_SERVER_BUNDLE-ddf14d3b.js");exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;
@@ -1,10 +1,10 @@
1
- import { B as i, t as m, C as c, R as g, q as p, S as l, T as C, z as d, m as f, E as u, w as B, n as S, x as E, A as R, y as h, i as x, f as k, u as y, v as P, D as b } from "./bundle-7ebcd79e.mjs";
2
- import { b as w, F as A, c as F, S as T, V } from "./USE_CLIENT_BUNDLE-e041d92c.mjs";
1
+ import { B as i, t as m, C as c, R as g, q as p, S as l, T as C, z as d, m as f, E as u, w as B, n as S, x as E, A as R, y as h, i as x, f as k, u as y, v as P, D as b } from "./bundle-e3f18037.mjs";
2
+ import { b as w, F as A, c as F, S as T, V } from "./USE_CLIENT_BUNDLE-3263fb05.mjs";
3
3
  import "lru-cache";
4
4
  import "react/jsx-runtime";
5
5
  import "react";
6
6
  import "next/navigation";
7
- import "./USE_SERVER_BUNDLE-1634816a.mjs";
7
+ import "./USE_SERVER_BUNDLE-5a2dbc47.mjs";
8
8
  export {
9
9
  i as Blocks,
10
10
  w as Button,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-react-nextjs",
3
3
  "description": "Builder.io RSC SDK for NextJS App Directory",
4
- "version": "0.7.1-2",
4
+ "version": "0.7.1-3",
5
5
  "files": [
6
6
  "lib",
7
7
  "types"
@@ -97,7 +97,7 @@
97
97
  "build:browser": "SDK_ENV=browser vite build --mode lib"
98
98
  },
99
99
  "peerDependencies": {
100
- "next": "^13.4.20",
100
+ "next": ">=13.4.20",
101
101
  "react": "^18.2.0",
102
102
  "react-dom": "^18.2.0"
103
103
  },
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.7.1-2";
1
+ export declare const SDK_VERSION = "0.7.1-3";