@builder.io/sdk-react 1.0.32 → 1.0.35

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 (62) hide show
  1. package/lib/browser/blocks-exports.cjs +2 -2
  2. package/lib/browser/blocks-exports.mjs +8 -5
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +1 -1
  6. package/lib/browser/init.mjs +1 -1
  7. package/lib/browser/{server-entry-7087f752.cjs → server-entry-6bbf0d8e.cjs} +1 -1
  8. package/lib/browser/{server-entry-d2ddbe06.js → server-entry-b3ba0c65.js} +3 -1
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/{accordion-00336b68.js → accordion-5b4a3309.js} +1 -1
  12. package/lib/edge/{accordion-eaf400b6.cjs → accordion-5cca8f06.cjs} +1 -1
  13. package/lib/edge/{blocks-f4e58922.js → blocks-30dbe829.js} +2 -2
  14. package/lib/edge/{blocks-fd020527.cjs → blocks-7855e195.cjs} +1 -1
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-79831328.cjs → button-1e80769d.cjs} +1 -1
  18. package/lib/edge/{button-78da9c83.js → button-94d3cdf8.js} +2 -2
  19. package/lib/edge/{columns-4444ec1b.cjs → columns-18e70134.cjs} +1 -1
  20. package/lib/edge/{columns-38a7fb4b.js → columns-e5074ad9.js} +3 -3
  21. package/lib/edge/{content-variants-9095e1ca.js → content-variants-4450b25f.js} +25 -22
  22. package/lib/edge/{content-variants-bea4ff80.cjs → content-variants-d6dca201.cjs} +5 -5
  23. package/lib/edge/{form-890bbb80.js → form-9ddabd0e.js} +3 -3
  24. package/lib/edge/{form-aeff55d1.cjs → form-a08b5177.cjs} +1 -1
  25. package/lib/edge/{get-class-prop-name-27e19262.cjs → get-class-prop-name-3a85a54d.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-366f7202.js → get-class-prop-name-d5155434.js} +1 -1
  27. package/lib/edge/{img-243d1364.js → img-256419c6.js} +1 -1
  28. package/lib/edge/{img-0840043d.cjs → img-a38d9d0b.cjs} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/init.cjs +1 -1
  32. package/lib/edge/init.mjs +1 -1
  33. package/lib/edge/{input-ee44639e.cjs → input-76252038.cjs} +1 -1
  34. package/lib/edge/{input-e98eed44.js → input-e030821e.js} +1 -1
  35. package/lib/edge/{select-bab66ff4.js → select-92af3038.js} +1 -1
  36. package/lib/edge/{select-6f0d439e.cjs → select-98849dc7.cjs} +1 -1
  37. package/lib/edge/{server-entry-d9aa1880.cjs → server-entry-5b4426a1.cjs} +1 -1
  38. package/lib/edge/{server-entry-8225a827.js → server-entry-b8d1a7db.js} +3 -1
  39. package/lib/edge/server-entry.cjs +1 -1
  40. package/lib/edge/server-entry.mjs +1 -1
  41. package/lib/edge/{slot-95c853d6.js → slot-27c3a577.js} +3 -3
  42. package/lib/edge/{slot-a3b50951.cjs → slot-27ff859a.cjs} +1 -1
  43. package/lib/edge/{symbol-890aaa72.cjs → symbol-3c1f8827.cjs} +1 -1
  44. package/lib/edge/{symbol-8901206b.js → symbol-6c0f8a5c.js} +2 -2
  45. package/lib/edge/{tabs-4cac4a30.js → tabs-5b4535f0.js} +3 -3
  46. package/lib/edge/{tabs-cec9e481.cjs → tabs-770b1029.cjs} +1 -1
  47. package/lib/node/blocks-exports.cjs +8 -8
  48. package/lib/node/blocks-exports.mjs +9 -6
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +2 -2
  51. package/lib/node/init.cjs +1 -1
  52. package/lib/node/init.mjs +2 -2
  53. package/lib/node/{node-runtime-a8fa9432.js → node-runtime-79df5f59.js} +1 -1
  54. package/lib/node/{node-runtime-540333d0.cjs → node-runtime-80dbd8f2.cjs} +1 -1
  55. package/lib/node/{server-entry-e1ba6829.cjs → server-entry-11bc96ae.cjs} +1 -1
  56. package/lib/node/{server-entry-1ad27cd7.js → server-entry-ea775ab5.js} +3 -1
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/package.json +1 -1
  60. package/types/constants/sdk-version.d.ts +1 -1
  61. package/types/functions/evaluate/node-runtime/safeDynamicRequire.d.ts +2 -0
  62. package/types/functions/extract-css-var-default-value.d.ts +1 -0
@@ -1,4 +1,4 @@
1
- "use strict";var Sn=Object.defineProperty;var wn=(e,t,n)=>t in e?Sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Bt=(e,t,n)=>(wn(e,typeof t!="symbol"?t+"":t,n),n);const C=require("react/jsx-runtime"),je=require("react"),Fr=require("./blocks-exports.cjs"),N=require("./server-entry-d9aa1880.cjs"),kn=require("./get-class-prop-name-27e19262.cjs"),En=require("./dynamic-renderer-b29b45ca.cjs"),Lt=(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,s,a)=>Object(o[s])===o[s]?o[s]:o[s]=Math.abs(Number(r[a+1]))>>0===+r[a+1]?[]:{},e)[r[r.length-1]]=n,e},Lr=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),Cn=()=>({isEditing:N.isEditing(),isBrowser:N.isBrowser(),isServer:!N.isBrowser(),getUserAttributes:()=>N.getUserAttributes()}),jn=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,_r=je.createContext({registeredComponents:{}});function On(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options}}const An=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:s,rootState:a})=>{const f=Lr({builder:t,context:n,event:r,state:Wr({rootState:a,localState:o,rootSetState:s})});return new Function(...f.map(([g])=>g),e)(...f.map(([,g])=>g))};function Wr({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(r,o)=>{if(t&&o in t)return t[o];const s=r[o];return typeof s=="object"&&s!==null?Wr({rootState:s,localState:void 0,rootSetState:n?a=>{r[o]=a,n(r)}:void 0}):s},set:(r,o,s)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return r[o]=s,n==null||n(r),!0}})}var I,bn=function(e){function t(i){return 48>i?i===36:58>i?!0:65>i?!1:91>i?!0:97>i?i===95:123>i?!0:170<=i&&vn.test(String.fromCharCode(i))}function n(i){return 65>i?i===36:91>i?!0:97>i?i===95:123>i?!0:170<=i&&Ir.test(String.fromCharCode(i))}function r(i,l){for(var u=d,p=1,w=0;;){ot.lastIndex=w;var F=ot.exec(u);if(F&&F.index<i)++p,w=F.index+F[0].length;else break}throw u={line:p,ab:i-w},l+=" ("+u.line+":"+u.ab+")",l=new SyntaxError(l),l.j=i,l.X=u,l.o=c,l}function o(i){i=i.split(" ");for(var l=Object.create(null),u=0;u<i.length;u++)l[i[u]]=!0;return function(p){return l[p]||!1}}function s(){this.line=de,this.ab=c-te}function a(i,l){ve=c,O.C&&(St=new s),S=i,g(),Y=l,Ne=i.m}function f(){for(var i=c,l=O.va&&O.C&&new s,u=d.charCodeAt(c+=2);c<me&&u!==10&&u!==13&&u!==8232&&u!==8233;)++c,u=d.charCodeAt(c);O.va&&O.va(!1,d.slice(i+2,c),i,c,l,O.C&&new s)}function g(){for(;c<me;){var i=d.charCodeAt(c);if(i===32)++c;else if(i===13)++c,i=d.charCodeAt(c),i===10&&++c,O.C&&(++de,te=c);else if(i===10||i===8232||i===8233)++c,O.C&&(++de,te=c);else if(8<i&&14>i)++c;else if(i===47)if(i=d.charCodeAt(c+1),i===42){i=void 0;var l=O.va&&O.C&&new s,u=c,p=d.indexOf("*/",c+=2);if(p===-1&&r(c-2,"Unterminated comment"),c=p+2,O.C)for(ot.lastIndex=u;(i=ot.exec(d))&&i.index<c;)++de,te=i.index+i[0].length;O.va&&O.va(!0,d.slice(u+2,p),u,c,l,O.C&&new s)}else if(i===47)f();else break;else if(i===160)++c;else if(5760<=i&&mn.test(String.fromCharCode(i)))++c;else break}}function A(i){switch(i){case 46:i=d.charCodeAt(c+1),48<=i&&57>=i?P(!0):(++c,a(wr));return;case 40:return++c,a(re);case 41:return++c,a(Z);case 59:return++c,a(ne);case 44:return++c,a(pe);case 91:return++c,a(Tt);case 93:return++c,a(Rt);case 123:return++c,a(Me);case 125:return++c,a(Se);case 58:return++c,a(De);case 63:return++c,a(kr);case 48:if(i=d.charCodeAt(c+1),i===120||i===88){c+=2,i=B(16),i===null&&r(U+2,"Expected hexadecimal number"),n(d.charCodeAt(c))&&r(c,"Identifier directly after number"),a(Be,i);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return P(!1);case 34:case 39:c++;for(var l="";;){c>=me&&r(U,"Unterminated string constant");var u=d.charCodeAt(c);if(u===i){++c,a(et,l);break}if(u===92){u=d.charCodeAt(++c);var p=/^[0-7]+/.exec(d.slice(c,c+3));for(p&&(p=p[0]);p&&255<parseInt(p,8);)p=p.slice(0,-1);if(p==="0"&&(p=null),++c,p)J&&r(c-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(p,8)),c+=p.length-1;else switch(u){case 110:l+=`
1
+ "use strict";var Sn=Object.defineProperty;var wn=(e,t,n)=>t in e?Sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Bt=(e,t,n)=>(wn(e,typeof t!="symbol"?t+"":t,n),n);const C=require("react/jsx-runtime"),je=require("react"),Fr=require("./blocks-exports.cjs"),N=require("./server-entry-5b4426a1.cjs"),kn=require("./get-class-prop-name-3a85a54d.cjs"),En=require("./dynamic-renderer-b29b45ca.cjs"),Lt=(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,s,a)=>Object(o[s])===o[s]?o[s]:o[s]=Math.abs(Number(r[a+1]))>>0===+r[a+1]?[]:{},e)[r[r.length-1]]=n,e},Lr=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),Cn=()=>({isEditing:N.isEditing(),isBrowser:N.isBrowser(),isServer:!N.isBrowser(),getUserAttributes:()=>N.getUserAttributes()}),jn=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,_r=je.createContext({registeredComponents:{}});function On(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options}}const An=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:s,rootState:a})=>{const f=Lr({builder:t,context:n,event:r,state:Wr({rootState:a,localState:o,rootSetState:s})});return new Function(...f.map(([g])=>g),e)(...f.map(([,g])=>g))};function Wr({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(r,o)=>{if(t&&o in t)return t[o];const s=r[o];return typeof s=="object"&&s!==null?Wr({rootState:s,localState:void 0,rootSetState:n?a=>{r[o]=a,n(r)}:void 0}):s},set:(r,o,s)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return r[o]=s,n==null||n(r),!0}})}var I,bn=function(e){function t(i){return 48>i?i===36:58>i?!0:65>i?!1:91>i?!0:97>i?i===95:123>i?!0:170<=i&&vn.test(String.fromCharCode(i))}function n(i){return 65>i?i===36:91>i?!0:97>i?i===95:123>i?!0:170<=i&&Ir.test(String.fromCharCode(i))}function r(i,l){for(var u=d,p=1,w=0;;){ot.lastIndex=w;var F=ot.exec(u);if(F&&F.index<i)++p,w=F.index+F[0].length;else break}throw u={line:p,ab:i-w},l+=" ("+u.line+":"+u.ab+")",l=new SyntaxError(l),l.j=i,l.X=u,l.o=c,l}function o(i){i=i.split(" ");for(var l=Object.create(null),u=0;u<i.length;u++)l[i[u]]=!0;return function(p){return l[p]||!1}}function s(){this.line=de,this.ab=c-te}function a(i,l){ve=c,O.C&&(St=new s),S=i,g(),Y=l,Ne=i.m}function f(){for(var i=c,l=O.va&&O.C&&new s,u=d.charCodeAt(c+=2);c<me&&u!==10&&u!==13&&u!==8232&&u!==8233;)++c,u=d.charCodeAt(c);O.va&&O.va(!1,d.slice(i+2,c),i,c,l,O.C&&new s)}function g(){for(;c<me;){var i=d.charCodeAt(c);if(i===32)++c;else if(i===13)++c,i=d.charCodeAt(c),i===10&&++c,O.C&&(++de,te=c);else if(i===10||i===8232||i===8233)++c,O.C&&(++de,te=c);else if(8<i&&14>i)++c;else if(i===47)if(i=d.charCodeAt(c+1),i===42){i=void 0;var l=O.va&&O.C&&new s,u=c,p=d.indexOf("*/",c+=2);if(p===-1&&r(c-2,"Unterminated comment"),c=p+2,O.C)for(ot.lastIndex=u;(i=ot.exec(d))&&i.index<c;)++de,te=i.index+i[0].length;O.va&&O.va(!0,d.slice(u+2,p),u,c,l,O.C&&new s)}else if(i===47)f();else break;else if(i===160)++c;else if(5760<=i&&mn.test(String.fromCharCode(i)))++c;else break}}function A(i){switch(i){case 46:i=d.charCodeAt(c+1),48<=i&&57>=i?P(!0):(++c,a(wr));return;case 40:return++c,a(re);case 41:return++c,a(Z);case 59:return++c,a(ne);case 44:return++c,a(pe);case 91:return++c,a(Tt);case 93:return++c,a(Rt);case 123:return++c,a(Me);case 125:return++c,a(Se);case 58:return++c,a(De);case 63:return++c,a(kr);case 48:if(i=d.charCodeAt(c+1),i===120||i===88){c+=2,i=B(16),i===null&&r(U+2,"Expected hexadecimal number"),n(d.charCodeAt(c))&&r(c,"Identifier directly after number"),a(Be,i);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return P(!1);case 34:case 39:c++;for(var l="";;){c>=me&&r(U,"Unterminated string constant");var u=d.charCodeAt(c);if(u===i){++c,a(et,l);break}if(u===92){u=d.charCodeAt(++c);var p=/^[0-7]+/.exec(d.slice(c,c+3));for(p&&(p=p[0]);p&&255<parseInt(p,8);)p=p.slice(0,-1);if(p==="0"&&(p=null),++c,p)J&&r(c-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(p,8)),c+=p.length-1;else switch(u){case 110:l+=`
2
2
  `;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(ue(2));break;case 117:l+=String.fromCharCode(ue(4));break;case 85:l+=String.fromCharCode(ue(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:d.charCodeAt(c)===10&&++c;case 10:O.C&&(te=c,++de);break;default:l+=String.fromCharCode(u)}}else u!==13&&u!==10&&u!==8232&&u!==8233||r(U,"Unterminated string constant"),l+=String.fromCharCode(u),++c}return;case 47:i=d.charCodeAt(c+1),Ne?(++c,T()):i===61?x(ye,2):x(Er,1);return;case 37:case 42:d.charCodeAt(c+1)===61?x(ye,2):x(gn,1);return;case 124:case 38:l=d.charCodeAt(c+1),l===i?x(i===124?Or:Ar,2):l===61?x(ye,2):x(i===124?an:un,1);return;case 94:d.charCodeAt(c+1)===61?x(ye,2):x(ln,1);return;case 43:case 45:l=d.charCodeAt(c+1),l===i?l===45&&d.charCodeAt(c+2)===62&&nt.test(d.slice(fe,c))?(c+=3,f(),g(),j()):x(sn,2):l===61?x(ye,2):x(hn,1);return;case 60:case 62:l=d.charCodeAt(c+1),u=1,l===i?(u=i===62&&d.charCodeAt(c+2)===62?3:2,d.charCodeAt(c+u)===61?x(ye,u+1):x(pn,u)):l===33&&i===60&&d.charCodeAt(c+2)===45&&d.charCodeAt(c+3)===45?(c+=4,f(),g(),j()):(l===61&&(u=d.charCodeAt(c+2)===61?3:2),x(fn,u));return;case 61:case 33:d.charCodeAt(c+1)===61?x(cn,d.charCodeAt(c+2)===61?3:2):x(i===61?Cr:jr,1);return;case 126:return x(jr,1)}return!1}function j(i){if(i?c=U+1:U=c,O.C&&(xt=new s),i)return T();if(c>=me)return a(Et);if(i=d.charCodeAt(c),n(i)||i===92)return K();if(A(i)===!1){if(i=String.fromCharCode(i),i==="\\"||Ir.test(i))return K();r(c,"Unexpected character '"+i+"'")}}function x(i,l){var u=d.slice(c,c+l);c+=l,a(i,u)}function T(){for(var i,l,u=c;;){c>=me&&r(u,"Unterminated regexp");var p=d.charAt(c);if(nt.test(p)&&r(u,"Unterminated regexp"),i)i=!1;else{if(p==="[")l=!0;else if(p==="]"&&l)l=!1;else if(p==="/"&&!l)break;i=p==="\\"}++c}i=d.slice(u,c),++c,(l=$())&&!/^[gmi]*$/.test(l)&&r(u,"Invalid regexp flag");try{var w=new RegExp(i,l)}catch(F){throw F instanceof SyntaxError&&r(u,F.message),F}a(rr,w)}function B(i,l){for(var u=c,p=0,w=l===void 0?1/0:l,F=0;F<w;++F){var V=d.charCodeAt(c);if(V=97<=V?V-97+10:65<=V?V-65+10:48<=V&&57>=V?V-48:1/0,V>=i)break;++c,p=p*i+V}return c===u||l!==void 0&&c-u!==l?null:p}function P(i){var l=c,u=!1,p=d.charCodeAt(c)===48;i||B(10)!==null||r(l,"Invalid number"),d.charCodeAt(c)===46&&(++c,B(10),u=!0),i=d.charCodeAt(c),(i===69||i===101)&&(i=d.charCodeAt(++c),i!==43&&i!==45||++c,B(10)===null&&r(l,"Invalid number"),u=!0),n(d.charCodeAt(c))&&r(c,"Identifier directly after number"),i=d.slice(l,c);var w;u?w=parseFloat(i):p&&i.length!==1?/[89]/.test(i)||J?r(l,"Invalid number"):w=parseInt(i,8):w=parseInt(i,10),a(Be,w)}function ue(i){return i=B(16,i),i===null&&r(U,"Bad character escape sequence"),i}function $(){we=!1;for(var i,l=!0,u=c;;){var p=d.charCodeAt(c);if(t(p))we&&(i+=d.charAt(c)),++c;else if(p===92){we||(i=d.slice(u,c)),we=!0,d.charCodeAt(++c)!==117&&r(c,"Expecting Unicode escape sequence \\uXXXX"),++c,p=ue(4);var w=String.fromCharCode(p);w||r(c-1,"Invalid Unicode escape"),(l?n(p):t(p))||r(c-4,"Invalid Unicode escape"),i+=w}else break;l=!1}return we?i:d.slice(u,c)}function K(){var i=$(),l=xe;!we&&yn(i)&&(l=on[i]),a(l,i)}function k(){wt=U,fe=ve,kt=St,j()}function q(i){if(J=i,c=U,O.C)for(;c<te;)te=d.lastIndexOf(`
3
3
  `,te-2)+1,--de;g(),j()}function ze(){this.type=null,this.start=U,this.end=null}function qt(){this.start=xt,this.end=null,vt&&(this.source=vt)}function _(){var i=new ze;return O.C&&(i.X=new qt),O.vb&&(i.sourceFile=O.vb),O.Xa&&(i.j=[U,0]),i}function ce(i){var l=new ze;return l.start=i.start,O.C&&(l.X=new qt,l.X.start=i.X.start),O.Xa&&(l.j=[i.j[0],0]),l}function E(i,l){return i.type=l,i.end=fe,O.C&&(i.X.end=kt),O.Xa&&(i.j[1]=fe),i}function ft(i){return i.type==="ExpressionStatement"&&i.la.type==="Literal"&&i.la.value==="use strict"}function R(i){return S===i?(k(),!0):!1}function Ze(){return!O.fc&&(S===Et||S===Se||nt.test(d.slice(fe,U)))}function ge(){R(ne)||Ze()||Q()}function M(i){S===i?k():Q()}function Q(){r(U,"Unexpected token")}function qe(i){i.type!=="Identifier"&&i.type!=="MemberExpression"&&r(i.start,"Assigning to rvalue"),J&&i.type==="Identifier"&&rt(i.name)&&r(i.start,"Assigning to "+i.name+" in strict mode")}function z(){(S===Er||S===ye&&Y==="/=")&&j(!0);var i=S,l=_();switch(i){case Ct:case or:k();var u=i===Ct;R(ne)||Ze()?l.label=null:S!==xe?Q():(l.label=ee(),ge());for(var p=0;p<D.length;++p){var w=D[p];if((l.label===null||w.name===l.label.name)&&(w.kind!==null&&(u||w.kind==="loop")||l.label&&u))break}return p===D.length&&r(l.start,"Unsyntactic "+i.l),E(l,u?"BreakStatement":"ContinueStatement");case ir:return k(),ge(),E(l,"DebuggerStatement");case ar:return k(),D.push(Nt),l.body=z(),D.pop(),M(It),l.test=Ie(),ge(),E(l,"DoWhileStatement");case cr:return k(),D.push(Nt),M(re),S===ne?pt(l,null):S===bt?(i=_(),k(),er(i,!0),E(i,"VariableDeclaration"),i.fa.length===1&&R(tt)?Qt(l,i):pt(l,i)):(i=G(!1,!0),R(tt)?(qe(i),Qt(l,i)):pt(l,i));case Ot:return k(),yt(l,!0);case fr:return k(),l.test=Ie(),l.da=z(),l.alternate=R(lr)?z():null,E(l,"IfStatement");case pr:return Pe||O.Ib||r(U,"'return' outside of function"),k(),R(ne)||Ze()?l.K=null:(l.K=G(),ge()),E(l,"ReturnStatement");case At:for(k(),l.Qb=Ie(),l.tb=[],M(Me),D.push(xn);S!==Se;)S===jt||S===sr?(i=S===jt,p&&E(p,"SwitchCase"),l.tb.push(p=_()),p.da=[],k(),i?p.test=G():(u&&r(wt,"Multiple default clauses"),u=!0,p.test=null),M(De)):(p||Q(),p.da.push(z()));return p&&E(p,"SwitchCase"),k(),D.pop(),E(l,"SwitchStatement");case hr:return k(),nt.test(d.slice(fe,U))&&r(fe,"Illegal newline after throw"),l.K=G(),ge(),E(l,"ThrowStatement");case gr:return k(),l.block=Te(),l.Ea=null,S===nr&&(i=_(),k(),M(re),i.Ua=ee(),J&&rt(i.Ua.name)&&r(i.Ua.start,"Binding "+i.Ua.name+" in strict mode"),M(Z),i.body=Te(),l.Ea=E(i,"CatchClause")),l.fb=R(ur)?Te():null,l.Ea||l.fb||r(l.start,"Missing catch or finally clause"),E(l,"TryStatement");case bt:return k(),er(l),ge(),E(l,"VariableDeclaration");case It:return k(),l.test=Ie(),D.push(Nt),l.body=z(),D.pop(),E(l,"WhileStatement");case dr:return J&&r(U,"'with' in strict mode"),k(),l.object=Ie(),l.body=z(),E(l,"WithStatement");case Me:return Te();case ne:return k(),E(l,"EmptyStatement");default:if(u=Y,w=G(),i===xe&&w.type==="Identifier"&&R(De)){for(p=0;p<D.length;++p)D[p].name===u&&r(w.start,"Label '"+u+"' is already declared");return D.push({name:u,kind:S.W?"loop":S===At?"switch":null}),l.body=z(),D.pop(),l.label=w,E(l,"LabeledStatement")}return l.la=w,ge(),E(l,"ExpressionStatement")}}function Ie(){M(re);var i=G();return M(Z),i}function Te(i){var l=_(),u=!0,p=!1;for(l.body=[],M(Me);!R(Se);){var w=z();if(l.body.push(w),u&&i&&ft(w)){var F=p;q(p=!0)}u=!1}return p&&!F&&q(!1),E(l,"BlockStatement")}function pt(i,l){return i.ua=l,M(ne),i.test=S===ne?null:G(),M(ne),i.update=S===Z?null:G(),M(Z),i.body=z(),D.pop(),E(i,"ForStatement")}function Qt(i,l){return i.left=l,i.right=G(),M(Z),i.body=z(),D.pop(),E(i,"ForInStatement")}function er(i,l){for(i.fa=[],i.kind="var";;){var u=_();if(u.id=ee(),J&&rt(u.id.name)&&r(u.id.start,"Binding "+u.id.name+" in strict mode"),u.ua=R(Cr)?G(!0,l):null,i.fa.push(E(u,"VariableDeclarator")),!R(pe))break}}function G(i,l){var u=ht(l);if(!i&&S===pe){for(i=ce(u),i.xb=[u];R(pe);)i.xb.push(ht(l));return E(i,"SequenceExpression")}return u}function ht(i){var l=gt(dt(),-1,i);if(R(kr)){var u=ce(l);u.test=l,u.da=G(!0),M(De),u.alternate=G(!0,i),l=E(u,"ConditionalExpression")}return S.Cb?(u=ce(l),u.operator=Y,u.left=l,k(),u.right=ht(i),qe(l),E(u,"AssignmentExpression")):l}function gt(i,l,u){var p=S.L;if(p!==null&&(!u||S!==tt)&&p>l){var w=ce(i);return w.left=i,w.operator=Y,i=S,k(),w.right=gt(dt(),p,u),p=E(w,i===Or||i===Ar?"LogicalExpression":"BinaryExpression"),gt(p,l,u)}return i}function dt(){if(S.prefix){var i=_(),l=S.$b;return i.operator=Y,Ne=i.prefix=!0,k(),i.K=dt(),l?qe(i.K):J&&i.operator==="delete"&&i.K.type==="Identifier"&&r(i.start,"Deleting local variable in strict mode"),E(i,l?"UpdateExpression":"UnaryExpression")}for(l=Re(Qe());S.cc&&!Ze();)i=ce(l),i.operator=Y,i.prefix=!1,i.K=l,qe(l),k(),l=E(i,"UpdateExpression");return l}function Re(i,l){if(R(wr)){var u=ce(i);return u.object=i,u.Wa=ee(!0),u.bb=!1,Re(E(u,"MemberExpression"),l)}return R(Tt)?(u=ce(i),u.object=i,u.Wa=G(),u.bb=!0,M(Rt),Re(E(u,"MemberExpression"),l)):!l&&R(re)?(u=ce(i),u.callee=i,u.arguments=mt(Z,!1),Re(E(u,"CallExpression"),l)):i}function Qe(){switch(S){case mr:var i=_();return k(),E(i,"ThisExpression");case xe:return ee();case Be:case et:case rr:return i=_(),i.value=Y,i.raw=d.slice(U,ve),k(),E(i,"Literal");case vr:case xr:case Sr:return i=_(),i.value=S.$a,i.raw=S.l,k(),E(i,"Literal");case re:i=xt;var l=U;k();var u=G();return u.start=l,u.end=ve,O.C&&(u.X.start=i,u.X.end=St),O.Xa&&(u.j=[l,ve]),M(Z),u;case Tt:return i=_(),k(),i.elements=mt(Rt,!0,!0),E(i,"ArrayExpression");case Me:for(i=_(),l=!0,u=!1,i.h=[],k();!R(Se);){if(l)l=!1;else if(M(pe),O.sb&&R(Se))break;var p={key:S===Be||S===et?Qe():ee(!0)},w=!1;if(R(De)){p.value=G(!0);var F=p.kind="init"}else p.key.type!=="Identifier"||p.key.name!=="get"&&p.key.name!=="set"?Q():(w=u=!0,F=p.kind=p.key.name,p.key=S===Be||S===et?Qe():ee(!0),S!==re&&Q(),p.value=yt(_(),!1));if(p.key.type==="Identifier"&&(J||u))for(var V=0;V<i.h.length;++V){var ke=i.h[V];if(ke.key.name===p.key.name){var Pt=F===ke.kind||w&&ke.kind==="init"||F==="init"&&(ke.kind==="get"||ke.kind==="set");Pt&&!J&&F==="init"&&ke.kind==="init"&&(Pt=!1),Pt&&r(p.key.start,"Redefinition of property")}}i.h.push(p)}return E(i,"ObjectExpression");case Ot:return i=_(),k(),yt(i,!1);case yr:return i=_(),k(),i.callee=Re(Qe(),!0),i.arguments=R(re)?mt(Z,!1):nn,E(i,"NewExpression")}Q()}function yt(i,l){S===xe?i.id=ee():l?Q():i.id=null,i.oa=[];var u=!0;for(M(re);!R(Z);)u?u=!1:M(pe),i.oa.push(ee());u=Pe;var p=D;if(Pe=!0,D=[],i.body=Te(!0),Pe=u,D=p,J||i.body.body.length&&ft(i.body.body[0])){for(u=i.id?-1:0;u<i.oa.length;++u)if(p=0>u?i.id:i.oa[u],(br(p.name)||rt(p.name))&&r(p.start,"Defining '"+p.name+"' in strict mode"),0<=u)for(var w=0;w<u;++w)p.name===i.oa[w].name&&r(p.start,"Argument name clash in strict mode")}return E(i,l?"FunctionDeclaration":"FunctionExpression")}function mt(i,l,u){for(var p=[],w=!0;!R(i);){if(w)w=!1;else if(M(pe),l&&O.sb&&R(i))break;p.push(u&&S===pe?null:G(!0))}return p}function ee(i){var l=_();return i&&O.yb==="everywhere"&&(i=!1),S===xe?(!i&&(O.yb&&dn(Y)||J&&br(Y))&&d.slice(U,ve).indexOf("\\")===-1&&r(U,"The keyword '"+Y+"' is reserved"),l.name=Y):i&&S.l?l.name=S.l:Q(),Ne=!1,k(),E(l,"Identifier")}e.version="0.5.0";var O,d="",me,vt;e.parse=function(i,l){d=String(i),me=d.length,O=l||{};for(var u in tr)Object.prototype.hasOwnProperty.call(O,u)||(O[u]=tr[u]);for(vt=O.sourceFile,de=1,c=te=0,Ne=!0,g(),u=O.dc,wt=fe=c,O.C&&(kt=new s),Pe=J=!1,D=[],j(),i=u||_(),l=!0,u||(i.body=[]);S!==Et;)u=z(),i.body.push(u),l&&ft(u)&&q(!0),l=!1;return E(i,"Program")};var tr={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},c=0,U=0,ve=0,xt,St,S,Y,Ne,de,te,wt=0,fe=0,kt,Pe,D,J,nn=[],Be={type:"num"},rr={type:"regexp"},et={type:"string"},xe={type:"name"},Et={type:"eof"},Ct={l:"break"},jt={l:"case",m:!0},nr={l:"catch"},or={l:"continue"},ir={l:"debugger"},sr={l:"default"},ar={l:"do",W:!0},lr={l:"else",m:!0},ur={l:"finally"},cr={l:"for",W:!0},Ot={l:"function"},fr={l:"if"},pr={l:"return",m:!0},At={l:"switch"},hr={l:"throw",m:!0},gr={l:"try"},bt={l:"var"},It={l:"while",W:!0},dr={l:"with"},yr={l:"new",m:!0},mr={l:"this"},vr={l:"null",$a:null},xr={l:"true",$a:!0},Sr={l:"false",$a:!1},tt={l:"in",L:7,m:!0},on={break:Ct,case:jt,catch:nr,continue:or,debugger:ir,default:sr,do:ar,else:lr,finally:ur,for:cr,function:Ot,if:fr,return:pr,switch:At,throw:hr,try:gr,var:bt,while:It,with:dr,null:vr,true:xr,false:Sr,new:yr,in:tt,instanceof:{l:"instanceof",L:7,m:!0},this:mr,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Tt={type:"[",m:!0},Rt={type:"]"},Me={type:"{",m:!0},Se={type:"}"},re={type:"(",m:!0},Z={type:")"},pe={type:",",m:!0},ne={type:";",m:!0},De={type:":",m:!0},wr={type:"."},kr={type:"?",m:!0},Er={L:10,m:!0},Cr={Cb:!0,m:!0},ye={Cb:!0,m:!0},sn={cc:!0,prefix:!0,$b:!0},jr={prefix:!0,m:!0},Or={L:1,m:!0},Ar={L:2,m:!0},an={L:3,m:!0},ln={L:4,m:!0},un={L:5,m:!0},cn={L:6,m:!0},fn={L:7,m:!0},pn={L:8,m:!0},hn={L:9,prefix:!0,m:!0},gn={L:10,m:!0},dn=o("class enum extends super const export import"),br=o("implements interface let package private protected public static yield"),rt=o("eval arguments"),yn=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"),mn=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ir=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),vn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),nt=/[\n\r\u2028\u2029]/,ot=/\r\n|[\n\r\u2028\u2029]/g,we,Nt={kind:"loop"},xn={kind:"switch"}},Dt=Dt=typeof globalThis=="undefined"?void 0:globalThis;bn(Dt.j||(Dt.j={}));function h(e,t){typeof e=="string"&&(e=Oe(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 s,a;for(a in this)typeof this[a]=="function"&&(s=a.match(e))&&(this.rb[s[1]]=this[a].bind(this));this.N=Ft(this,this.ra,null),this.Na=this.N.object,this.ra=Oe(this.ba.join(`
4
4
  `),"polyfills"),this.ba=void 0,at(this.ra),s=new m(this.ra,this.N),s.done=!1,this.o=[s],this.Eb(),this.value=void 0,this.ra=r,s=new m(this.ra,this.N),s.done=!1,this.o.length=0,this.o[0]=s}var Tr={C:!0,kc:5},_t={configurable:!0,enumerable:!0,writable:!1},y={configurable:!0,enumerable:!1,writable:!0},H={configurable:!0,enumerable:!1,writable:!1},Ue={configurable:!1,enumerable:!1,writable:!1},Rr={configurable:!1,enumerable:!0,writable:!0},Gr={STEP_ERROR:!0},be={SCOPE_REFERENCE:!0},Xe={VALUE_IN_DESCRIPTOR:!0},Ee={REGEXP_TIMEOUT:!0},Nr=[],se=null,Ge=null,he=typeof globalThis=="undefined"?void 0:globalThis,In=["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 Wt(e){var t=e>>>0;return t===Number(e)?t:NaN}function $e(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function at(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"&&at(o,t,n)}}h.prototype.REGEXP_MODE=2;h.prototype.REGEXP_THREAD_TIMEOUT=1e3;h.prototype.POLYFILL_TIMEOUT=1e3;I=h.prototype;I.P=!1;I.Ka=!1;I.Kb=0;I.ic=0;function Oe(e,t){var n={},r;for(r in Tr)n[r]=Tr[r];return n.sourceFile=t,he.j.parse(e,n)}I.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=Oe(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");He(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};I.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&&Xr(this,n,n.interval);var r=new m(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=Ge;Ge=this;try{var s=this.rb[r.type](e,n,r)}catch(a){if(a!==Gr)throw this.value!==a&&(this.value=void 0),a}finally{Ge=o}if(s&&e.push(s),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};I.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Tn(e,t){e.g(t,"NaN",NaN,Ue),e.g(t,"Infinity",1/0,Ue),e.g(t,"undefined",void 0,Ue),e.g(t,"window",t,_t),e.g(t,"this",t,Ue),e.g(t,"self",t),e.M=new b(null),e.Z=new b(e.M),Rn(e,t),Nn(e,t),t.xa=e.M,e.g(t,"constructor",e.v,y),Pn(e,t),Bn(e,t),Mn(e,t),Dn(e,t),Un(e,t),Fn(e,t),Ln(e,t),_n(e,t),Wn(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,y),e.g(t,"parseInt",e.i(parseInt,!1),y),e.g(t,"parseFloat",e.i(parseFloat,!1),y),e.g(t,"isNaN",e.i(isNaN,!1),y),e.g(t,"isFinite",e.i(isFinite,!1),y);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<r.length;o++)n=function(s){return function(a){try{return s(a)}catch(f){v(e,e.Gb,f.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),y);n=function(s){return Pr(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),y),n=function(s){return Pr(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),y),n=function(s){Br(e,s)},e.g(t,"clearTimeout",e.i(n,!1),y),n=function(s){Br(e,s)},e.g(t,"clearInterval",e.i(n,!1),y),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)}I.Wb=0;function Rn(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){var s=arguments.length?String(arguments[arguments.length-1]):"",a=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(a){a=a.split(/\s*,\s*/);for(var f=0;f<a.length;f++){var g=a[f];n.test(g)||v(e,e.T,"Invalid function argument: "+g)}a=a.join(", ")}try{var A=Oe("(function("+a+") {"+s+"})","function"+e.Wb++)}catch(j){v(e,e.T,"Invalid code: "+j.message)}return A.body.length!==1&&v(e,e.T,"Invalid code in function body"),Vt(e,A.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,y),e.g(e.O,"prototype",e.Z,y),e.g(e.Z,"constructor",e.O,y),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,H),e.Z.H="Function",r=function(o,s){var a=e.o[e.o.length-1];a.U=this,a.B=o,a.F=[],s!=null&&(s instanceof b?a.F=$r(e,s):v(e,e.j,"CreateListFromArrayLike called on non-object")),a.eb=!1},L(e,e.O,"apply",r),r=function(o){var s=e.o[e.o.length-1];s.U=this,s.B=o,s.F=[];for(var a=1;a<arguments.length;a++)s.F.push(arguments[a]);s.eb=!1},L(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)},L(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),y),r=function(){return this.valueOf()},L(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),y)}function Nn(e,t){function n(o){o!=null||v(e,e.j,"Cannot convert '"+o+"' to object")}var r=function(o){if(o==null)return le(e)?this:e.s(e.M);if(!(o instanceof b)){var s=e.s(ae(e,o));return s.data=o,s}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,y),e.g(e.M,"constructor",e.v,y),e.g(t,"Object",e.v,y),r=function(o){return n(o),ie(e,Object.getOwnPropertyNames(o instanceof b?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),y),r=function(o){return n(o),o instanceof b&&(o=o.h),ie(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),y),r=function(o){return o===null?e.s(null):(o instanceof b||v(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),y),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,s,a){return s=String(s),o instanceof b||v(e,e.j,"Object.defineProperty called on non-object: "+o),a instanceof b||v(e,e.j,"Property description must be an object"),!o.preventExtensions||s in o.h||v(e,e.j,"Can't define property '"+s+"', object is not extensible"),e.g(o,s,Xe,a.h),o},e.g(e.v,"defineProperty",e.i(r,!1),y),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,s){if(o instanceof b||v(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),s=String(s),s in o.h){var a=Object.getOwnPropertyDescriptor(o.h,s),f=o.V[s];return o=o.Y[s],s=e.s(e.M),f||o?(e.g(s,"get",f),e.g(s,"set",o)):(e.g(s,"value",a.value),e.g(s,"writable",a.writable)),e.g(s,"configurable",a.configurable),e.g(s,"enumerable",a.enumerable),s}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),y),r=function(o){return n(o),ae(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),y),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),y),r=function(o){return o instanceof b&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),y),L(e,e.v,"toString",b.prototype.toString),L(e,e.v,"toLocaleString",b.prototype.toString),L(e,e.v,"valueOf",b.prototype.valueOf),r=function(o){return n(this),this instanceof b?String(o)in this.h:this.hasOwnProperty(o)},L(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof b?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},L(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=ae(e,o),!o)return!1;if(o===this)return!0}},L(e,e.v,"isPrototypeOf",r)}function Pn(e,t){var n=function(r){var o=le(e)?this:Ae(e),s=arguments[0];if(arguments.length===1&&typeof s=="number")isNaN(Wt(s))&&v(e,e.ob,"Invalid array length: "+s),o.h.length=s;else{for(s=0;s<arguments.length;s++)o.h[s]=arguments[s];o.h.length=s}return o};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,y),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),y),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 Bn(e,t){var n=function(r){return r=arguments.length?he.String(r):"",le(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,y),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),y),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)L(e,e.J,t[n],String.prototype[t[n]]);n=function(r,o,s){o=e.R(o),s=e.R(s);try{return String(this).localeCompare(r,o,s)}catch(a){v(e,e.D,"localeCompare: "+a.message)}},L(e,e.J,"localeCompare",n),n=function(r,o,s){var a=String(this);if(o=o?Number(o):void 0,W(e,r,e.I)&&(r=r.data,Le(e,r,s),e.REGEXP_MODE===2)){if(se)r=Fe(e,"string.split(separator, limit)",{string:a,separator:r,limit:o},r,s),r!==Ee&&s(ie(e,r));else{var f=e.ha(),g=_e(e,r,f,s);f.onmessage=function(A){clearTimeout(g),s(ie(e,A.data))},f.postMessage(["split",a,r,o])}return}r=a.split(r,o),s(ie(e,r))},We(e,e.J,"split",n),n=function(r,o){var s=String(this);if(r=W(e,r,e.I)?r.data:new RegExp(r),Le(e,r,o),e.REGEXP_MODE===2)if(se)r=Fe(e,"string.match(regexp)",{string:s,regexp:r},r,o),r!==Ee&&o(r&&ie(e,r));else{var a=e.ha(),f=_e(e,r,a,o);a.onmessage=function(g){clearTimeout(f),o(g.data&&ie(e,g.data))},a.postMessage(["match",s,r])}else r=s.match(r),o(r&&ie(e,r))},We(e,e.J,"match",n),n=function(r,o){var s=String(this);if(W(e,r,e.I)?r=r.data:r=new RegExp(r),Le(e,r,o),e.REGEXP_MODE===2)if(se)r=Fe(e,"string.search(regexp)",{string:s,regexp:r},r,o),r!==Ee&&o(r);else{var a=e.ha(),f=_e(e,r,a,o);a.onmessage=function(g){clearTimeout(f),o(g.data)},a.postMessage(["search",s,r])}else o(s.search(r))},We(e,e.J,"search",n),n=function(r,o,s){var a=String(this);if(o=String(o),W(e,r,e.I)&&(r=r.data,Le(e,r,s),e.REGEXP_MODE===2)){if(se)r=Fe(e,"string.replace(substr, newSubstr)",{string:a,substr:r,newSubstr:o},r,s),r!==Ee&&s(r);else{var f=e.ha(),g=_e(e,r,f,s);f.onmessage=function(A){clearTimeout(g),s(A.data)},f.postMessage(["replace",a,r,o])}return}s(a.replace(r,o))},We(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 Mn(e,t){e.mb=e.i(function(n){return n=he.Boolean(n),le(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,y)}function Dn(e,t){var n=function(r){return r=arguments.length?he.Number(r):0,le(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,y),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]],Ue);n=function(r){try{return Number(this).toExponential(r)}catch(o){v(e,e.D,o.message)}},L(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){v(e,e.D,o.message)}},L(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){v(e,e.D,o.message)}},L(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){v(e,e.D,o.message)}},L(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(s){v(e,e.D,"toLocaleString: "+s.message)}},L(e,e.aa,"toLocaleString",n)}function Un(e,t){var n=function(o,s){if(!le(e))return he.Date();var a=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(he.Date,a)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,y),e.g(e.$,"now",e.i(Date.now,!1),y),e.g(e.$,"parse",e.i(Date.parse,!1),y),e.g(e.$,"UTC",e.i(Date.UTC,!1),y),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(s){var a=this.data;a instanceof Date||v(e,e.j,o+" not called on a Date");for(var f=[],g=0;g<arguments.length;g++)f[g]=e.R(arguments[g]);return a[o].apply(a,f)}}(t[r]),L(e,e.$,t[r],n)}function Fn(e,t){var n=function(r,o){if(le(e))var s=this;else{if(o===void 0&&W(e,r,e.I))return r;s=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||v(e,e.T,"Invalid regexp flag: "+o);try{var a=new he.RegExp(r,o)}catch(f){v(e,e.T,f.message)}return Gt(e,s,a),s};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,y),e.g(e.I.h.prototype,"global",void 0,H),e.g(e.I.h.prototype,"ignoreCase",void 0,H),e.g(e.I.h.prototype,"multiline",void 0,H),e.g(e.I.h.prototype,"source","(?:)",H),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 s(j){if(j){var x=ie(e,j);return e.g(x,"index",j.index),e.g(x,"input",j.input),x}return null}var a=this.data;if(r=String(r),a.lastIndex=Number(e.G(this,"lastIndex")),Le(e,a,o),e.REGEXP_MODE===2)if(se)r=Fe(e,"regexp.exec(string)",{string:r,regexp:a},a,o),r!==Ee&&(e.g(this,"lastIndex",a.lastIndex),o(s(r)));else{var f=e.ha(),g=_e(e,a,f,o),A=this;f.onmessage=function(j){clearTimeout(g),e.g(A,"lastIndex",j.data[1]),o(s(j.data[0]))},f.postMessage(["exec",a,a.lastIndex,r])}else r=a.exec(r),e.g(this,"lastIndex",a.lastIndex),o(s(r))},We(e,e.I,"exec",n)}function Ln(e,t){function n(r){var o=e.i(function(s){var a=le(e)?this:e.Aa(o);return Ut(e,a,s),a},!0);return e.g(o,"prototype",e.Aa(e.D),y),e.g(o.h.prototype,"name",r,y),e.g(t,r,o,y),o}e.D=e.i(function(r){var o=le(e)?this:e.Aa(e.D);return Ut(e,o,r),o},!0),e.g(t,"Error",e.D,y),e.g(e.D.h.prototype,"message","",y),e.g(e.D.h.prototype,"name","Error",y),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function _n(e,t){var n=e.s(e.M);e.g(t,"Math",n,y);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]],H);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),y)}function Wn(e,t){var n=e.s(e.M);e.g(t,"JSON",n,y),t=function(r){try{var o=JSON.parse(String(r))}catch(s){v(e,e.T,s.message)}return e.Ia(o)},e.g(n,"parse",e.i(t,!1)),t=function(r,o,s){o&&o.H==="Function"?v(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=$r(e,o),o=o.filter(function(f){return typeof f=="string"||typeof f=="number"})):o=null,typeof s!="string"&&typeof s!="number"&&(s=void 0),r=e.R(r);try{var a=JSON.stringify(r,o,s)}catch(f){v(e,e.j,f.message)}return a},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=ae(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function Gt(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,y),e.g(t,"source",n.source,H),e.g(t,"global",n.global,H),e.g(t,"ignoreCase",n.ignoreCase,H),e.g(t,"multiline",n.multiline,H)}function Ut(e,t,n){n&&e.g(t,"message",String(n),y),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],s=o.node;s.type==="CallExpression"&&(o=o.U)&&n.length&&(n[n.length-1].Ob=e.G(o,"name")),!s.X||n.length&&s.type!=="CallExpression"||n.push({Nb:s.X})}for(r=String(e.G(t,"name")),s=String(e.G(t,"message")),s=r+": "+s+`
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");require("./server-entry-d9aa1880.cjs");const t=e.lazy(()=>Promise.resolve().then(()=>require("./button-79831328.cjs"))),r=e.lazy(()=>Promise.resolve().then(()=>require("./columns-4444ec1b.cjs"))),n=e.lazy(()=>Promise.resolve().then(()=>require("./fragment-b6e3a326.cjs"))),s=e.lazy(()=>Promise.resolve().then(()=>require("./image-ea37781b.cjs"))),i=e.lazy(()=>Promise.resolve().then(()=>require("./section-d655ea14.cjs"))),l=e.lazy(()=>Promise.resolve().then(()=>require("./symbol-890aaa72.cjs"))),c=e.lazy(()=>Promise.resolve().then(()=>require("./text-e6dbb721.cjs"))),a=e.lazy(()=>Promise.resolve().then(()=>require("./video-e20dcbbc.cjs"))),u=e.lazy(()=>Promise.resolve().then(()=>require("./blocks-fd020527.cjs")).then(o=>o.blocks)),m=e.lazy(()=>Promise.resolve().then(()=>require("./content-variants-bea4ff80.cjs"))),y=e.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}});exports.Blocks=u;exports.BuilderContext=y;exports.Button=t;exports.Columns=r;exports.Content=m;exports.Fragment=n;exports.Image=s;exports.Section=i;exports.Symbol=l;exports.Text=c;exports.Video=a;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");require("./server-entry-5b4426a1.cjs");const t=e.lazy(()=>Promise.resolve().then(()=>require("./button-1e80769d.cjs"))),r=e.lazy(()=>Promise.resolve().then(()=>require("./columns-18e70134.cjs"))),n=e.lazy(()=>Promise.resolve().then(()=>require("./fragment-b6e3a326.cjs"))),s=e.lazy(()=>Promise.resolve().then(()=>require("./image-ea37781b.cjs"))),i=e.lazy(()=>Promise.resolve().then(()=>require("./section-d655ea14.cjs"))),l=e.lazy(()=>Promise.resolve().then(()=>require("./symbol-3c1f8827.cjs"))),c=e.lazy(()=>Promise.resolve().then(()=>require("./text-e6dbb721.cjs"))),a=e.lazy(()=>Promise.resolve().then(()=>require("./video-e20dcbbc.cjs"))),u=e.lazy(()=>Promise.resolve().then(()=>require("./blocks-7855e195.cjs")).then(o=>o.blocks)),m=e.lazy(()=>Promise.resolve().then(()=>require("./content-variants-d6dca201.cjs"))),y=e.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}});exports.Blocks=u;exports.BuilderContext=y;exports.Button=t;exports.Columns=r;exports.Content=m;exports.Fragment=n;exports.Image=s;exports.Section=i;exports.Symbol=l;exports.Text=c;exports.Video=a;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { lazy as t, createContext as n } from "react";
3
- import "./server-entry-8225a827.js";
4
- const i = t(() => import("./button-78da9c83.js")), r = t(() => import("./columns-38a7fb4b.js")), a = t(() => import("./fragment-1492bc7f.js")), c = t(() => import("./image-68451fc8.js")), m = t(() => import("./section-d83e2dd3.js")), p = t(() => import("./symbol-8901206b.js")), l = t(() => import("./text-5915f038.js")), u = t(() => import("./video-58c2cc8d.js")), d = t(() => import("./blocks-f4e58922.js").then((o) => o.blocks)), x = t(() => import("./content-variants-9095e1ca.js")), S = n({
3
+ import "./server-entry-b8d1a7db.js";
4
+ const i = t(() => import("./button-94d3cdf8.js")), r = t(() => import("./columns-e5074ad9.js")), a = t(() => import("./fragment-1492bc7f.js")), c = t(() => import("./image-68451fc8.js")), m = t(() => import("./section-d83e2dd3.js")), p = t(() => import("./symbol-6c0f8a5c.js")), l = t(() => import("./text-5915f038.js")), u = t(() => import("./video-58c2cc8d.js")), d = t(() => import("./blocks-30dbe829.js").then((o) => o.blocks)), x = t(() => import("./content-variants-4450b25f.js")), S = n({
5
5
  content: null,
6
6
  context: {},
7
7
  localState: void 0,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),r=require("./dynamic-renderer-b29b45ca.cjs"),t=require("./get-class-prop-name-27e19262.cjs");require("./server-entry-d9aa1880.cjs");function u(e){function n(){return{...e.attributes,[t.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[t.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return i.jsx(r.DynamicRenderer,{attributes:n(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}exports.default=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),r=require("./dynamic-renderer-b29b45ca.cjs"),t=require("./get-class-prop-name-3a85a54d.cjs");require("./server-entry-5b4426a1.cjs");function u(e){function n(){return{...e.attributes,[t.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[t.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return i.jsx(r.DynamicRenderer,{attributes:n(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}exports.default=u;
@@ -1,7 +1,7 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { DynamicRenderer as r } from "./dynamic-renderer-8b343325.js";
3
- import { getClassPropName as n } from "./get-class-prop-name-366f7202.js";
4
- import "./server-entry-8225a827.js";
3
+ import { getClassPropName as n } from "./get-class-prop-name-d5155434.js";
4
+ import "./server-entry-b8d1a7db.js";
5
5
  function b(t) {
6
6
  function e() {
7
7
  return {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("react"),a=require("./blocks-fd020527.cjs"),p=require("./dynamic-renderer-b29b45ca.cjs"),B=require("./get-class-prop-name-27e19262.cjs");require("./blocks-exports.cjs");require("./server-entry-d9aa1880.cjs");const q=t=>`builder-columns ${t}-breakpoints`;function z(t){var f,g;const[u,A]=s.useState(()=>typeof t.space=="number"?t.space||0:20),[o,L]=s.useState(()=>t.columns||[]),[d,N]=s.useState(()=>t.stackColumnsAt||"tablet");function y(e){return e.link?t.builderLinkComponent||"a":"div"}function x(e){var n;return((n=o[e])==null?void 0:n.width)||100/o.length}function C(e){const n=u*(o.length-1)/o.length;return`calc(${x(e)}% - ${n}px)`}function c({stackedStyle:e,desktopStyle:n}){return d==="tablet"?e:n}function m({stackedStyle:e,desktopStyle:n}){return d==="never"?n:e}const[b,W]=s.useState(()=>t.stackColumnsAt==="never"?"row":t.reverseColumnsWhenStacked?"column-reverse":"column");function v(){return{"--flex-dir":b,"--flex-dir-tablet":c({stackedStyle:b,desktopStyle:"row"})}}function w(e){const n=e===0?0:u,l=C(e),r=`${n}px`,h="100%",S=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:l,["marginLeft"]:r,"--column-width-mobile":m({stackedStyle:h,desktopStyle:l}),"--column-margin-left-mobile":m({stackedStyle:S,desktopStyle:r}),"--column-width-tablet":c({stackedStyle:h,desktopStyle:l}),"--column-margin-left-tablet":c({stackedStyle:S,desktopStyle:r})}}function k(e){var l,r;return a.getSizesForBreakpoints(((r=(l=t.builderContext.content)==null?void 0:l.meta)==null?void 0:r.breakpoints)||{})[e].max}function $(){return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("react"),a=require("./blocks-7855e195.cjs"),p=require("./dynamic-renderer-b29b45ca.cjs"),B=require("./get-class-prop-name-3a85a54d.cjs");require("./blocks-exports.cjs");require("./server-entry-5b4426a1.cjs");const q=t=>`builder-columns ${t}-breakpoints`;function z(t){var f,g;const[u,A]=s.useState(()=>typeof t.space=="number"?t.space||0:20),[o,L]=s.useState(()=>t.columns||[]),[d,N]=s.useState(()=>t.stackColumnsAt||"tablet");function y(e){return e.link?t.builderLinkComponent||"a":"div"}function x(e){var n;return((n=o[e])==null?void 0:n.width)||100/o.length}function C(e){const n=u*(o.length-1)/o.length;return`calc(${x(e)}% - ${n}px)`}function c({stackedStyle:e,desktopStyle:n}){return d==="tablet"?e:n}function m({stackedStyle:e,desktopStyle:n}){return d==="never"?n:e}const[b,W]=s.useState(()=>t.stackColumnsAt==="never"?"row":t.reverseColumnsWhenStacked?"column-reverse":"column");function v(){return{"--flex-dir":b,"--flex-dir-tablet":c({stackedStyle:b,desktopStyle:"row"})}}function w(e){const n=e===0?0:u,l=C(e),r=`${n}px`,h="100%",S=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:l,["marginLeft"]:r,"--column-width-mobile":m({stackedStyle:h,desktopStyle:l}),"--column-margin-left-mobile":m({stackedStyle:S,desktopStyle:r}),"--column-width-tablet":c({stackedStyle:h,desktopStyle:l}),"--column-margin-left-tablet":c({stackedStyle:S,desktopStyle:r})}}function k(e){var l,r;return a.getSizesForBreakpoints(((r=(l=t.builderContext.content)==null?void 0:l.meta)==null?void 0:r.breakpoints)||{})[e].max}function $(){return`
2
2
  @media (max-width: ${k("medium")}px) {
3
3
  .${t.builderBlock.id}-breakpoints {
4
4
  flex-direction: var(--flex-dir-tablet);
@@ -1,10 +1,10 @@
1
1
  import { jsxs as y, Fragment as B, jsx as r } from "react/jsx-runtime";
2
2
  import { useState as s } from "react";
3
- import { InlinedStyles as z, Blocks as A, mapStyleObjToStrIfNeeded as L, getSizesForBreakpoints as W } from "./blocks-f4e58922.js";
3
+ import { InlinedStyles as z, Blocks as A, mapStyleObjToStrIfNeeded as L, getSizesForBreakpoints as W } from "./blocks-30dbe829.js";
4
4
  import { DynamicRenderer as N } from "./dynamic-renderer-8b343325.js";
5
- import { getClassPropName as D } from "./get-class-prop-name-366f7202.js";
5
+ import { getClassPropName as D } from "./get-class-prop-name-d5155434.js";
6
6
  import "./blocks-exports.mjs";
7
- import "./server-entry-8225a827.js";
7
+ import "./server-entry-b8d1a7db.js";
8
8
  const F = (e) => `builder-columns ${e}-breakpoints`;
9
9
  function J(e) {
10
10
  var f, k;
@@ -1,9 +1,9 @@
1
1
  import { jsx as f, jsxs as $, Fragment as z } from "react/jsx-runtime";
2
2
  import { lazy as T, useRef as le, useState as k, useEffect as S } from "react";
3
- import { isBrowser as H, TARGET as te, isEditing as F, registerInsertMenu as se, setupBrowserForEditing as de, createRegisterComponentMessage as ce, getDefaultCanTrack as A, _track as J, isPreviewing as ue, fetchOneEntry as me, logger as pe, createEditorListener as ge, fetch as fe, fastClone as he, serializeComponentInfo as Y, handleABTestingSync as be } from "./server-entry-8225a827.js";
3
+ import { isBrowser as H, TARGET as te, isEditing as F, registerInsertMenu as se, setupBrowserForEditing as de, createRegisterComponentMessage as ce, getDefaultCanTrack as A, _track as J, isPreviewing as ue, fetchOneEntry as me, logger as pe, createEditorListener as ge, fetch as fe, fastClone as he, serializeComponentInfo as Y, handleABTestingSync as be } from "./server-entry-b8d1a7db.js";
4
4
  import { Video as ye, Button as xe, Columns as ve, Fragment as Se, Image as Te, Section as Ie, Symbol as ke, Text as Ce, BuilderContext as we } from "./blocks-exports.mjs";
5
- import { triggerAnimation as Ve, evaluate as Q, InlinedStyles as ne, ComponentsContext as Re, Blocks as Ee } from "./blocks-f4e58922.js";
6
- import "./get-class-prop-name-366f7202.js";
5
+ import { triggerAnimation as Ve, evaluate as Q, InlinedStyles as ne, ComponentsContext as Re, Blocks as Ee } from "./blocks-30dbe829.js";
6
+ import "./get-class-prop-name-d5155434.js";
7
7
  import "./dynamic-renderer-8b343325.js";
8
8
  const P = {
9
9
  "@type": "@builder.io/sdk:Element",
@@ -123,7 +123,7 @@ const P = {
123
123
  e.get("useChildrenForItems") === !0 && e.set("items", []);
124
124
  }
125
125
  }]
126
- }, We = T(() => import("./accordion-00336b68.js")), Ae = {
126
+ }, We = T(() => import("./accordion-5b4a3309.js")), Ae = {
127
127
  name: "Core:Button",
128
128
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
129
129
  defaultStyles: {
@@ -378,7 +378,7 @@ const P = {
378
378
  name: "image",
379
379
  type: "file",
380
380
  bubble: !0,
381
- allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
381
+ allowedFileTypes: ["jpeg", "jpg", "png", "svg", "webp"],
382
382
  required: !0,
383
383
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
384
384
  onChange: (e) => {
@@ -520,7 +520,7 @@ const P = {
520
520
  required: !0,
521
521
  defaultValue: "children"
522
522
  }]
523
- }, He = T(() => import("./slot-95c853d6.js")), Ne = {
523
+ }, He = T(() => import("./slot-27c3a577.js")), Ne = {
524
524
  name: "Symbol",
525
525
  noWrap: !0,
526
526
  static: !0,
@@ -688,7 +688,7 @@ const P = {
688
688
  value: "flex-end"
689
689
  }]
690
690
  }]
691
- }, je = T(() => import("./tabs-4cac4a30.js")), qe = {
691
+ }, je = T(() => import("./tabs-5b4535f0.js")), qe = {
692
692
  name: "Text",
693
693
  static: !0,
694
694
  isRSC: !0,
@@ -728,7 +728,7 @@ const P = {
728
728
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
729
729
  advanced: !0
730
730
  }]
731
- }, Me = T(() => import("./custom-code-7786788e.js")), Oe = {
731
+ }, _e = T(() => import("./custom-code-7786788e.js")), Me = {
732
732
  name: "Embed",
733
733
  static: !0,
734
734
  inputs: [{
@@ -739,13 +739,16 @@ const P = {
739
739
  helperText: "e.g. enter a youtube url, google map, etc",
740
740
  onChange: (e) => {
741
741
  const t = e.get("url");
742
- if (t)
743
- return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((a) => a.json()).then((a) => {
742
+ if (t) {
743
+ e.set("content", "Loading...");
744
+ const n = _iframelyApiKey;
745
+ return fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=${n}`).then((a) => a.json()).then((a) => {
744
746
  e.get("url") === t && (a.html ? e.set("content", a.html) : e.set("content", "Invalid url, please try another"));
745
747
  }).catch((a) => {
746
748
  e.set("content", "There was an error embedding this URL, please try again or another URL");
747
749
  });
748
- e.delete("content");
750
+ } else
751
+ e.delete("content");
749
752
  }
750
753
  }, {
751
754
  name: "content",
@@ -753,7 +756,7 @@ const P = {
753
756
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
754
757
  hideFromUI: !0
755
758
  }]
756
- }, _e = T(() => import("./embed-5c1bbe12.js")), ze = {
759
+ }, Oe = T(() => import("./embed-5c1bbe12.js")), ze = {
757
760
  name: "Form:Form",
758
761
  // editableTags: ['builder-form-error']
759
762
  defaults: {
@@ -984,7 +987,7 @@ const P = {
984
987
  }
985
988
  }
986
989
  }]
987
- }, Je = T(() => import("./form-890bbb80.js")), Ye = {
990
+ }, Je = T(() => import("./form-9ddabd0e.js")), Ye = {
988
991
  name: "Form:Input",
989
992
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
990
993
  inputs: [
@@ -1035,7 +1038,7 @@ const P = {
1035
1038
  borderStyle: "solid",
1036
1039
  borderColor: "#ccc"
1037
1040
  }
1038
- }, Qe = T(() => import("./input-e98eed44.js")), Ge = {
1041
+ }, Qe = T(() => import("./input-e030821e.js")), Ge = {
1039
1042
  name: "Form:Select",
1040
1043
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
1041
1044
  defaultStyles: {
@@ -1077,7 +1080,7 @@ const P = {
1077
1080
  }],
1078
1081
  static: !0,
1079
1082
  noWrap: !0
1080
- }, Xe = T(() => import("./select-bab66ff4.js")), Ze = {
1083
+ }, Xe = T(() => import("./select-92af3038.js")), Ze = {
1081
1084
  name: "Form:SubmitButton",
1082
1085
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
1083
1086
  defaultStyles: {
@@ -1116,7 +1119,7 @@ const P = {
1116
1119
  }],
1117
1120
  noWrap: !0,
1118
1121
  static: !0
1119
- }, nt = T(() => import("./img-243d1364.js")), at = {
1122
+ }, nt = T(() => import("./img-256419c6.js")), at = {
1120
1123
  name: "Video",
1121
1124
  canHaveChildren: !0,
1122
1125
  defaultStyles: {
@@ -1198,11 +1201,11 @@ const P = {
1198
1201
  advanced: !0
1199
1202
  }]
1200
1203
  }, it = () => [{
1201
- component: Me,
1204
+ component: _e,
1202
1205
  ...Ke
1203
1206
  }, {
1204
- component: _e,
1205
- ...Oe
1207
+ component: Oe,
1208
+ ...Me
1206
1209
  }, {
1207
1210
  component: Je,
1208
1211
  ...ze
@@ -1464,7 +1467,7 @@ font-weight: ${o};
1464
1467
  }
1465
1468
  `, xt = (e) => e ? "" : yt, vt = (e) => `variant-${e}`;
1466
1469
  function St(e) {
1467
- var B, j, q, K, M, O, _;
1470
+ var B, j, q, K, _, M, O;
1468
1471
  const t = le(null);
1469
1472
  function n(r) {
1470
1473
  var p, s;
@@ -1680,12 +1683,12 @@ function St(e) {
1680
1683
  {
1681
1684
  ref: t,
1682
1685
  onClick: (r) => y(r),
1683
- "builder-content-id": (M = e.builderContextSignal.content) == null ? void 0 : M.id,
1686
+ "builder-content-id": (_ = e.builderContextSignal.content) == null ? void 0 : _.id,
1684
1687
  "builder-model": e.model,
1685
1688
  ...d(),
1686
1689
  ...e.contentWrapperProps,
1687
1690
  className: vt(
1688
- ((O = e.content) == null ? void 0 : O.testVariationId) || ((_ = e.content) == null ? void 0 : _.id)
1691
+ ((M = e.content) == null ? void 0 : M.testVariationId) || ((O = e.content) == null ? void 0 : O.id)
1689
1692
  ),
1690
1693
  children: e.children
1691
1694
  }
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),r=require("react"),l=require("./server-entry-d9aa1880.cjs"),k=require("./blocks-exports.cjs"),w=require("./blocks-fd020527.cjs");require("./get-class-prop-name-27e19262.cjs");require("./dynamic-renderer-b29b45ca.cjs");const W={"@type":"@builder.io/sdk:Element",layerName:"Accordion item title",responsiveStyles:{large:{marginTop:"10px",position:"relative",display:"flex",alignItems:"stretch",flexDirection:"column",paddingBottom:"10px"}},children:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"left",display:"flex",flexDirection:"column"}},component:{name:"Text",options:{text:"I am an accordion title. Click me!"}}}]},A={"@type":"@builder.io/sdk:Element",layerName:"Accordion item detail",responsiveStyles:{large:{position:"relative",display:"flex",alignItems:"stretch",flexDirection:"column",marginTop:"10px",paddingBottom:"10px"}},children:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{paddingTop:"50px",textAlign:"left",display:"flex",flexDirection:"column",paddingBottom:"50px"}},component:{name:"Text",options:{text:"I am an accordion detail, hello!"}}}]},X={name:"Builder:Accordion",canHaveChildren:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",defaultStyles:{display:"flex",flexDirection:"column",alignItems:"stretch"},inputs:[{name:"items",type:"list",broadcast:!0,subFields:[{name:"title",type:"uiBlocks",hideFromUI:!0,defaultValue:[W]},{name:"detail",type:"uiBlocks",hideFromUI:!0,defaultValue:[A]}],defaultValue:[{title:[W],detail:[A]},{title:[W],detail:[A]}],showIf:e=>!e.get("useChildrenForItems")},{name:"oneAtATime",helperText:"Only allow opening one at a time (collapse all others when new item openned)",type:"boolean",defaultValue:!1},{name:"grid",helperText:"Display as a grid",type:"boolean",defaultValue:!1},{name:"gridRowWidth",helperText:"Display as a grid",type:"string",showIf:e=>e.get("grid"),defaultValue:"25%"},{name:"useChildrenForItems",type:"boolean",helperText:"Use child elements for each slide, instead of the array. Useful for dynamically repeating items",advanced:!0,defaultValue:!1,onChange:e=>{e.get("useChildrenForItems")===!0&&e.set("items",[])}}]},Z=r.lazy(()=>Promise.resolve().then(()=>require("./accordion-eaf400b6.cjs"))),ee={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},te={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(a=>{a.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(u=>u.get("width"))&&(n.find(p=>!p.get("width"))||n.reduce((o,f)=>o+f.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},ne={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},ae={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(i,o=6e4){return new Promise((f,y)=>{const C=document.createElement("img");let I=!1;C.onload=()=>{I=!0,f(C)},C.addEventListener("error",V=>{console.warn("Image load failed",V.error),y(V.error)}),C.src=i,setTimeout(()=>{I||y(new Error("Image load timed out"))},o)})}function a(i){return Math.round(i*1e3)/1e3}const u=e.get("image"),p=e.get("aspectRatio");if(fetch(u).then(i=>i.blob()).then(i=>{i.type.includes("svg")&&e.set("noWebp",!0)}),u&&(!p||p===.7041))return n(u).then(i=>{const o=e.get("aspectRatio");e.get("image")===u&&(!o||o===.7041)&&i.width&&i.height&&(e.set("aspectRatio",a(i.height/i.width)),e.set("height",i.height),e.set("width",i.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"highPriority",type:"boolean",advanced:!0,helperText:"Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},ie={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},oe={name:"Slot",isRSC:!0,description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}]},re=r.lazy(()=>Promise.resolve().then(()=>require("./slot-a3b50951.cjs"))),le={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},D={"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"10px",paddingBottom:"10px",minWidth:"100px",textAlign:"center",display:"flex",flexDirection:"column",cursor:"pointer",userSelect:"none"}},component:{name:"Text",options:{text:"New tab"}}},q={"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{height:"200px",display:"flex",marginTop:"20px",flexDirection:"column"}},component:{name:"Text",options:{text:"New tab content "}}},se={name:"Builder: Tabs",inputs:[{name:"tabs",type:"list",broadcast:!0,subFields:[{name:"label",type:"uiBlocks",hideFromUI:!0,defaultValue:[D]},{name:"content",type:"uiBlocks",hideFromUI:!0,defaultValue:[q]}],defaultValue:[{label:[{...D,component:{name:"Text",options:{text:"Tab 1"}}}],content:[{...q,component:{name:"Text",options:{text:"Tab 1 content"}}}]},{label:[{...D,component:{name:"Text",options:{text:"Tab 2"}}}],content:[{...q,component:{name:"Text",options:{text:"Tab 2 content"}}}]}]},{name:"activeTabStyle",type:"uiStyle",helperText:"CSS styles for the active tab",defaultValue:{backgroundColor:"rgba(0, 0, 0, 0.1)"}},{name:"defaultActiveTab",type:"number",helperText:'Default tab to open to. Set to "1" for the first tab, "2" for the second, or choose "0" for none',defaultValue:1,advanced:!0},{name:"collapsible",type:"boolean",helperText:"If on, clicking an open tab closes it so no tabs are active",defaultValue:!1,advanced:!0},{name:"tabHeaderLayout",type:"enum",helperText:"Change the layout of the tab headers (uses justify-content)",defaultValue:"flex-start",enum:[{label:"Center",value:"center"},{label:"Space between",value:"space-between"},{label:"Space around",value:"space-around"},{label:"Left",value:"flex-start"},{label:"Right",value:"flex-end"}]}]},de=r.lazy(()=>Promise.resolve().then(()=>require("./tabs-cec9e481.cjs"))),ce={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},ue={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},me=r.lazy(()=>Promise.resolve().then(()=>require("./custom-code-6d9730ff.cjs"))),pe={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(a=>a.json()).then(a=>{e.get("url")===t&&(a.html?e.set("content",a.html):e.set("content","Invalid url, please try another"))}).catch(a=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},fe=r.lazy(()=>Promise.resolve().then(()=>require("./embed-32bdd007.cjs"))),ge={name:"Form:Form",defaults:{responsiveStyles:{large:{marginTop:"15px",paddingBottom:"15px"}}},image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fef36d2a846134910b64b88e6d18c5ca5",inputs:[{name:"sendSubmissionsTo",type:"string",enum:[{label:"Send to email",value:"email",helperText:"Send form submissions to the email address of your choosing"},{label:"Custom",value:"custom",helperText:"Handle where the form requests go manually with a little code, e.g. to your own custom backend"}],defaultValue:"email"},{name:"sendSubmissionsToEmail",type:"string",required:!0,defaultValue:"your@email.com",showIf:'options.get("sendSubmissionsTo") === "email"'},{name:"sendWithJs",type:"boolean",helperText:"Set to false to use basic html form action",defaultValue:!0,showIf:'options.get("sendSubmissionsTo") === "custom"'},{name:"name",type:"string",defaultValue:"My form"},{name:"action",type:"string",helperText:"URL to send the form data to",showIf:'options.get("sendSubmissionsTo") === "custom"'},{name:"contentType",type:"string",defaultValue:"application/json",advanced:!0,enum:["application/json","multipart/form-data","application/x-www-form-urlencoded"],showIf:'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'},{name:"method",type:"string",showIf:'options.get("sendSubmissionsTo") === "custom"',defaultValue:"POST",advanced:!0},{name:"previewState",type:"string",enum:["unsubmitted","sending","success","error"],defaultValue:"unsubmitted",helperText:'Choose a state to edit, e.g. choose "success" to show what users see on success and edit the message',showIf:'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'},{name:"successUrl",type:"url",helperText:"Optional URL to redirect the user to on form submission success",showIf:'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'},{name:"resetFormOnSubmit",type:"boolean",showIf:"options.get('sendSubmissionsTo') === 'custom' && options.get('sendWithJs') === true",advanced:!0},{name:"successMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Thanks!</span>"}}}]},{name:"validate",type:"boolean",defaultValue:!0,advanced:!0},{name:"errorMessagePath",type:"text",advanced:!0,helperText:'Path to where to get the error message from in a JSON response to display to the user, e.g. "error.message" for a response like { "error": { "message": "this username is taken" }}'},{name:"errorMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},bindings:{"component.options.text":"state.formErrorMessage || block.component.options.text"},component:{name:"Text",options:{text:"<span>Form submission error :( Please check your answers and try again</span>"}}}]},{name:"sendingMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Sending...</span>"}}}]},{name:"customHeaders",type:"map",valueType:{type:"string"},advanced:!0,showIf:'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'}],noWrap:!0,canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Enter your name</span>"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:Input",options:{name:"name",placeholder:"Jane Doe"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Enter your email</span>"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:Input",options:{name:"email",placeholder:"jane@doe.com"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:SubmitButton",options:{text:"Submit"}}}]},he=r.lazy(()=>Promise.resolve().then(()=>require("./form-aeff55d1.cjs"))),be={name:"Form:Input",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",inputs:[{name:"type",type:"text",enum:["text","number","email","url","checkbox","radio","range","date","datetime-local","search","tel","time","file","month","week","password","color","hidden"],defaultValue:"text"},{name:"name",type:"string",required:!0,helperText:'Every input in a form needs a unique name describing what it takes, e.g. "email"'},{name:"placeholder",type:"string",defaultValue:"Hello there",helperText:"Text to display when there is no value"},{name:"defaultValue",type:"string"},{name:"value",type:"string",advanced:!0},{name:"required",type:"boolean",helperText:"Is this input required to be filled out to submit a form",defaultValue:!1}],noWrap:!0,static:!0,defaultStyles:{paddingTop:"10px",paddingBottom:"10px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"3px",borderWidth:"1px",borderStyle:"solid",borderColor:"#ccc"}},ye=r.lazy(()=>Promise.resolve().then(()=>require("./input-ee44639e.cjs"))),xe={name:"Form:Select",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",defaultStyles:{alignSelf:"flex-start"},inputs:[{name:"options",type:"list",required:!0,subFields:[{name:"value",type:"text",required:!0},{name:"name",type:"text"}],defaultValue:[{value:"option 1"},{value:"option 2"}]},{name:"name",type:"string",required:!0,helperText:'Every select in a form needs a unique name describing what it gets, e.g. "email"'},{name:"defaultValue",type:"string"},{name:"value",type:"string",advanced:!0},{name:"required",type:"boolean",defaultValue:!1}],static:!0,noWrap:!0},ve=r.lazy(()=>Promise.resolve().then(()=>require("./select-6f0d439e.cjs"))),Se={name:"Form:SubmitButton",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#3898EC",color:"white",borderRadius:"4px",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me"}],static:!0,noWrap:!0},Te=r.lazy(()=>Promise.resolve().then(()=>require("./submit-button-b363e0ed.cjs"))),Ie={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},ke=r.lazy(()=>Promise.resolve().then(()=>require("./img-0840043d.cjs"))),Ce={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},we=()=>[{component:me,...ue},{component:fe,...pe},{component:he,...ge},{component:ye,...be},{component:Te,...Se},{component:ve,...xe},{component:ke,...Ie},{component:k.Video,...Ce}],z=()=>[{component:k.Button,...ee},{component:k.Columns,...te},{component:k.Fragment,...ne},{component:k.Image,...ae},{component:k.Section,...ie},{component:re,...oe},{component:k.Symbol,...le},{component:k.Text,...ce},{component:de,...se},{component:Z,...X},...we()],Ve=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),r=require("react"),l=require("./server-entry-5b4426a1.cjs"),k=require("./blocks-exports.cjs"),w=require("./blocks-7855e195.cjs");require("./get-class-prop-name-3a85a54d.cjs");require("./dynamic-renderer-b29b45ca.cjs");const A={"@type":"@builder.io/sdk:Element",layerName:"Accordion item title",responsiveStyles:{large:{marginTop:"10px",position:"relative",display:"flex",alignItems:"stretch",flexDirection:"column",paddingBottom:"10px"}},children:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"left",display:"flex",flexDirection:"column"}},component:{name:"Text",options:{text:"I am an accordion title. Click me!"}}}]},W={"@type":"@builder.io/sdk:Element",layerName:"Accordion item detail",responsiveStyles:{large:{position:"relative",display:"flex",alignItems:"stretch",flexDirection:"column",marginTop:"10px",paddingBottom:"10px"}},children:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{paddingTop:"50px",textAlign:"left",display:"flex",flexDirection:"column",paddingBottom:"50px"}},component:{name:"Text",options:{text:"I am an accordion detail, hello!"}}}]},X={name:"Builder:Accordion",canHaveChildren:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",defaultStyles:{display:"flex",flexDirection:"column",alignItems:"stretch"},inputs:[{name:"items",type:"list",broadcast:!0,subFields:[{name:"title",type:"uiBlocks",hideFromUI:!0,defaultValue:[A]},{name:"detail",type:"uiBlocks",hideFromUI:!0,defaultValue:[W]}],defaultValue:[{title:[A],detail:[W]},{title:[A],detail:[W]}],showIf:e=>!e.get("useChildrenForItems")},{name:"oneAtATime",helperText:"Only allow opening one at a time (collapse all others when new item openned)",type:"boolean",defaultValue:!1},{name:"grid",helperText:"Display as a grid",type:"boolean",defaultValue:!1},{name:"gridRowWidth",helperText:"Display as a grid",type:"string",showIf:e=>e.get("grid"),defaultValue:"25%"},{name:"useChildrenForItems",type:"boolean",helperText:"Use child elements for each slide, instead of the array. Useful for dynamically repeating items",advanced:!0,defaultValue:!1,onChange:e=>{e.get("useChildrenForItems")===!0&&e.set("items",[])}}]},Z=r.lazy(()=>Promise.resolve().then(()=>require("./accordion-5cca8f06.cjs"))),ee={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},te={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(a=>{a.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(u=>u.get("width"))&&(n.find(p=>!p.get("width"))||n.reduce((o,f)=>o+f.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},ne={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},ae={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg","webp"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(i,o=6e4){return new Promise((f,y)=>{const C=document.createElement("img");let I=!1;C.onload=()=>{I=!0,f(C)},C.addEventListener("error",V=>{console.warn("Image load failed",V.error),y(V.error)}),C.src=i,setTimeout(()=>{I||y(new Error("Image load timed out"))},o)})}function a(i){return Math.round(i*1e3)/1e3}const u=e.get("image"),p=e.get("aspectRatio");if(fetch(u).then(i=>i.blob()).then(i=>{i.type.includes("svg")&&e.set("noWebp",!0)}),u&&(!p||p===.7041))return n(u).then(i=>{const o=e.get("aspectRatio");e.get("image")===u&&(!o||o===.7041)&&i.width&&i.height&&(e.set("aspectRatio",a(i.height/i.width)),e.set("height",i.height),e.set("width",i.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"highPriority",type:"boolean",advanced:!0,helperText:"Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},ie={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},oe={name:"Slot",isRSC:!0,description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}]},re=r.lazy(()=>Promise.resolve().then(()=>require("./slot-27ff859a.cjs"))),le={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},D={"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"10px",paddingBottom:"10px",minWidth:"100px",textAlign:"center",display:"flex",flexDirection:"column",cursor:"pointer",userSelect:"none"}},component:{name:"Text",options:{text:"New tab"}}},q={"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{height:"200px",display:"flex",marginTop:"20px",flexDirection:"column"}},component:{name:"Text",options:{text:"New tab content "}}},se={name:"Builder: Tabs",inputs:[{name:"tabs",type:"list",broadcast:!0,subFields:[{name:"label",type:"uiBlocks",hideFromUI:!0,defaultValue:[D]},{name:"content",type:"uiBlocks",hideFromUI:!0,defaultValue:[q]}],defaultValue:[{label:[{...D,component:{name:"Text",options:{text:"Tab 1"}}}],content:[{...q,component:{name:"Text",options:{text:"Tab 1 content"}}}]},{label:[{...D,component:{name:"Text",options:{text:"Tab 2"}}}],content:[{...q,component:{name:"Text",options:{text:"Tab 2 content"}}}]}]},{name:"activeTabStyle",type:"uiStyle",helperText:"CSS styles for the active tab",defaultValue:{backgroundColor:"rgba(0, 0, 0, 0.1)"}},{name:"defaultActiveTab",type:"number",helperText:'Default tab to open to. Set to "1" for the first tab, "2" for the second, or choose "0" for none',defaultValue:1,advanced:!0},{name:"collapsible",type:"boolean",helperText:"If on, clicking an open tab closes it so no tabs are active",defaultValue:!1,advanced:!0},{name:"tabHeaderLayout",type:"enum",helperText:"Change the layout of the tab headers (uses justify-content)",defaultValue:"flex-start",enum:[{label:"Center",value:"center"},{label:"Space between",value:"space-between"},{label:"Space around",value:"space-around"},{label:"Left",value:"flex-start"},{label:"Right",value:"flex-end"}]}]},de=r.lazy(()=>Promise.resolve().then(()=>require("./tabs-770b1029.cjs"))),ce={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},ue={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},me=r.lazy(()=>Promise.resolve().then(()=>require("./custom-code-6d9730ff.cjs"))),pe={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t){e.set("content","Loading...");const n=_iframelyApiKey;return fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=${n}`).then(a=>a.json()).then(a=>{e.get("url")===t&&(a.html?e.set("content",a.html):e.set("content","Invalid url, please try another"))}).catch(a=>{e.set("content","There was an error embedding this URL, please try again or another URL")})}else e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},fe=r.lazy(()=>Promise.resolve().then(()=>require("./embed-32bdd007.cjs"))),ge={name:"Form:Form",defaults:{responsiveStyles:{large:{marginTop:"15px",paddingBottom:"15px"}}},image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fef36d2a846134910b64b88e6d18c5ca5",inputs:[{name:"sendSubmissionsTo",type:"string",enum:[{label:"Send to email",value:"email",helperText:"Send form submissions to the email address of your choosing"},{label:"Custom",value:"custom",helperText:"Handle where the form requests go manually with a little code, e.g. to your own custom backend"}],defaultValue:"email"},{name:"sendSubmissionsToEmail",type:"string",required:!0,defaultValue:"your@email.com",showIf:'options.get("sendSubmissionsTo") === "email"'},{name:"sendWithJs",type:"boolean",helperText:"Set to false to use basic html form action",defaultValue:!0,showIf:'options.get("sendSubmissionsTo") === "custom"'},{name:"name",type:"string",defaultValue:"My form"},{name:"action",type:"string",helperText:"URL to send the form data to",showIf:'options.get("sendSubmissionsTo") === "custom"'},{name:"contentType",type:"string",defaultValue:"application/json",advanced:!0,enum:["application/json","multipart/form-data","application/x-www-form-urlencoded"],showIf:'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'},{name:"method",type:"string",showIf:'options.get("sendSubmissionsTo") === "custom"',defaultValue:"POST",advanced:!0},{name:"previewState",type:"string",enum:["unsubmitted","sending","success","error"],defaultValue:"unsubmitted",helperText:'Choose a state to edit, e.g. choose "success" to show what users see on success and edit the message',showIf:'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'},{name:"successUrl",type:"url",helperText:"Optional URL to redirect the user to on form submission success",showIf:'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'},{name:"resetFormOnSubmit",type:"boolean",showIf:"options.get('sendSubmissionsTo') === 'custom' && options.get('sendWithJs') === true",advanced:!0},{name:"successMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Thanks!</span>"}}}]},{name:"validate",type:"boolean",defaultValue:!0,advanced:!0},{name:"errorMessagePath",type:"text",advanced:!0,helperText:'Path to where to get the error message from in a JSON response to display to the user, e.g. "error.message" for a response like { "error": { "message": "this username is taken" }}'},{name:"errorMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},bindings:{"component.options.text":"state.formErrorMessage || block.component.options.text"},component:{name:"Text",options:{text:"<span>Form submission error :( Please check your answers and try again</span>"}}}]},{name:"sendingMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Sending...</span>"}}}]},{name:"customHeaders",type:"map",valueType:{type:"string"},advanced:!0,showIf:'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'}],noWrap:!0,canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Enter your name</span>"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:Input",options:{name:"name",placeholder:"Jane Doe"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Enter your email</span>"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:Input",options:{name:"email",placeholder:"jane@doe.com"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:SubmitButton",options:{text:"Submit"}}}]},he=r.lazy(()=>Promise.resolve().then(()=>require("./form-a08b5177.cjs"))),be={name:"Form:Input",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",inputs:[{name:"type",type:"text",enum:["text","number","email","url","checkbox","radio","range","date","datetime-local","search","tel","time","file","month","week","password","color","hidden"],defaultValue:"text"},{name:"name",type:"string",required:!0,helperText:'Every input in a form needs a unique name describing what it takes, e.g. "email"'},{name:"placeholder",type:"string",defaultValue:"Hello there",helperText:"Text to display when there is no value"},{name:"defaultValue",type:"string"},{name:"value",type:"string",advanced:!0},{name:"required",type:"boolean",helperText:"Is this input required to be filled out to submit a form",defaultValue:!1}],noWrap:!0,static:!0,defaultStyles:{paddingTop:"10px",paddingBottom:"10px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"3px",borderWidth:"1px",borderStyle:"solid",borderColor:"#ccc"}},ye=r.lazy(()=>Promise.resolve().then(()=>require("./input-76252038.cjs"))),xe={name:"Form:Select",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",defaultStyles:{alignSelf:"flex-start"},inputs:[{name:"options",type:"list",required:!0,subFields:[{name:"value",type:"text",required:!0},{name:"name",type:"text"}],defaultValue:[{value:"option 1"},{value:"option 2"}]},{name:"name",type:"string",required:!0,helperText:'Every select in a form needs a unique name describing what it gets, e.g. "email"'},{name:"defaultValue",type:"string"},{name:"value",type:"string",advanced:!0},{name:"required",type:"boolean",defaultValue:!1}],static:!0,noWrap:!0},ve=r.lazy(()=>Promise.resolve().then(()=>require("./select-98849dc7.cjs"))),Se={name:"Form:SubmitButton",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#3898EC",color:"white",borderRadius:"4px",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me"}],static:!0,noWrap:!0},Te=r.lazy(()=>Promise.resolve().then(()=>require("./submit-button-b363e0ed.cjs"))),Ie={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},ke=r.lazy(()=>Promise.resolve().then(()=>require("./img-a38d9d0b.cjs"))),Ce={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},we=()=>[{component:me,...ue},{component:fe,...pe},{component:he,...ge},{component:ye,...be},{component:Te,...Se},{component:ve,...xe},{component:ke,...Ie},{component:k.Video,...Ce}],z=()=>[{component:k.Button,...ee},{component:k.Columns,...te},{component:k.Fragment,...ne},{component:k.Image,...ae},{component:k.Section,...ie},{component:re,...oe},{component:k.Symbol,...le},{component:k.Text,...ce},{component:de,...se},{component:Z,...X},...we()],Ve=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2
2
  function getAndSetVariantId() {
3
3
  function setCookie(name, value, days) {
4
4
  let expires = '';
@@ -91,12 +91,12 @@
91
91
  }`,J="builderIoAbTest",Y="builderIoRenderContent",P=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),Re=({canTrack:e,content:t})=>!(!(P(t).length>0)||!e||l.isBrowser()),Fe=e=>e==="react"||e==="reactNative",G=Fe(l.TARGET),Pe=()=>`
92
92
  window.${J} = ${Ve}
93
93
  window.${Y} = ${Ee}
94
- `,We=(e,t)=>`
94
+ `,Ae=(e,t)=>`
95
95
  window.${J}(
96
96
  "${t}",${JSON.stringify(e)}, ${G}
97
- )`,Ae=({contentId:e,variationId:t})=>`window.${Y}(
97
+ )`,We=({contentId:e,variationId:t})=>`window.${Y}(
98
98
  "${t}", "${e}", ${G}
99
- )`;function j(e){return h.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},"data-id":e.id})}function M(e){return Math.round(e*1e3)/1e3}const De=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let a=n?e:e.parentElement;do{if(!a)return null;if(t(a))return a}while(a=a.parentElement);return null},qe=e=>De(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),O=({event:e,target:t})=>{const n=t.getBoundingClientRect(),a=e.clientX-n.left,u=e.clientY-n.top,p=M(a/n.width),i=M(u/n.height);return{x:p,y:i}},je=e=>{const t=e.target,n=t&&qe(t),a=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:a||void 0,metadata:{targetOffset:t?O({event:e,target:t}):void 0,builderTargetOffset:n?O({event:e,target:n}):void 0,builderElementIndex:n&&a?[].slice.call(document.getElementsByClassName(a)).indexOf(n):void 0}}},Ue=e=>{var p,i;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],a=(i=e.fileUrl)!=null?i:(p=e==null?void 0:e.files)==null?void 0:p.regular;let u="";if(a&&t&&n&&(u+=`
99
+ )`;function j(e){return h.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},"data-id":e.id})}function _(e){return Math.round(e*1e3)/1e3}const De=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let a=n?e:e.parentElement;do{if(!a)return null;if(t(a))return a}while(a=a.parentElement);return null},qe=e=>De(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),M=({event:e,target:t})=>{const n=t.getBoundingClientRect(),a=e.clientX-n.left,u=e.clientY-n.top,p=_(a/n.width),i=_(u/n.height);return{x:p,y:i}},je=e=>{const t=e.target,n=t&&qe(t),a=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:a||void 0,metadata:{targetOffset:t?M({event:e,target:t}):void 0,builderTargetOffset:n?M({event:e,target:n}):void 0,builderElementIndex:n&&a?[].slice.call(document.getElementsByClassName(a)).indexOf(n):void 0}}},Ue=e=>{var p,i;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],a=(i=e.fileUrl)!=null?i:(p=e==null?void 0:e.files)==null?void 0:p.regular;let u="";if(a&&t&&n&&(u+=`
100
100
  @font-face {
101
101
  font-family: "${t}";
102
102
  src: local("${n}"), url('${a}') format('woff2');
@@ -131,4 +131,4 @@ font-weight: ${o};
131
131
  ${He({cssCode:e.cssCode,contentId:e.contentId})}
132
132
  ${Le({customFonts:e.customFonts})}
133
133
  ${Be(e.isNestedRender)}
134
- `.trim());return h.jsx(w.InlinedStyles,{id:"builderio-content",styles:t})}const Me=({content:e,data:t,locale:n})=>{var p,i,o;const a={},u=((p=e==null?void 0:e.data)==null?void 0:p.state)||{};return(o=(i=e==null?void 0:e.data)==null?void 0:i.inputs)==null||o.forEach(f=>{f.name&&f.defaultValue!==void 0&&(a[f.name]=f.defaultValue)}),{...a,...u,...t,...n?{locale:n}:{}}},Oe=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function _(e){var f,y,C,I,V,R,F;const[t,n]=r.useState(()=>{var v,S;return Ae({variationId:(v=e.content)==null?void 0:v.testVariationId,contentId:(S=e.content)==null?void 0:S.id})});function a(v){o(S=>({...S,rootState:v}))}const[u,p]=r.useState(()=>[...z(),...e.customComponents||[]].reduce((v,{component:S,...T})=>({...v,[T.name]:{component:S,...l.serializeComponentInfo(T)}}),{})),[i,o]=r.useState(()=>({content:Oe({content:e.content,data:e.data}),localState:void 0,rootState:Me({content:e.content,data:e.data,locale:e.locale}),rootSetState:a,context:e.context||{},canTrack:e.canTrack,apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...z(),...e.customComponents||[]].reduce((v,{component:S,...T})=>({...v,[T.name]:l.serializeComponentInfo(T)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{}}));return h.jsx(w.ComponentsContext.Provider,{value:{registeredComponents:u},children:h.jsxs(Ke,{content:e.content,data:e.data,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,showContent:e.showContent,builderContextSignal:i,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts,setBuilderContextSignal:o,children:[e.isSsrAbTest?h.jsx(j,{id:"builderio-variant-visibility",scriptStr:t}):null,h.jsx(ze,{isNestedRender:e.isNestedRender,contentId:(f=i.content)==null?void 0:f.id,cssCode:(C=(y=i.content)==null?void 0:y.data)==null?void 0:C.cssCode,customFonts:(V=(I=i.content)==null?void 0:I.data)==null?void 0:V.customFonts}),h.jsx(w.Blocks,{blocks:(F=(R=i.content)==null?void 0:R.data)==null?void 0:F.blocks,context:i,registeredComponents:u,linkComponent:e.linkComponent})]})})}function _e(e){var i;const[t,n]=r.useState(()=>Re({canTrack:l.getDefaultCanTrack(e.canTrack),content:e.content}));function a(){var o;return We(P(e.content).map(f=>({id:f.testVariationId,testRatio:f.testRatio})),((o=e.content)==null?void 0:o.id)||"")}function u(){return P(e.content).map(o=>`.variant-${o.testVariationId} { display: none; } `).join("")}function p(){var o;return t?{...e.content,testVariationId:(o=e.content)==null?void 0:o.id}:l.handleABTestingSync({item:e.content,canTrack:l.getDefaultCanTrack(e.canTrack)})}return r.useEffect(()=>{},[]),h.jsxs(h.Fragment,{children:[!e.isNestedRender&&l.TARGET!=="reactNative"?h.jsx(j,{id:"builderio-init-variants-fns",scriptStr:Pe()}):null,t?h.jsxs(h.Fragment,{children:[h.jsx(w.InlinedStyles,{id:"builderio-variants",styles:u()}),h.jsx(j,{id:"builderio-variants-visibility",scriptStr:a()}),(i=P(e.content))==null?void 0:i.map(o=>h.jsx(_,{isNestedRender:e.isNestedRender,content:o,showContent:!1,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},o.testVariationId))]}):null,h.jsx(_,{isNestedRender:e.isNestedRender,content:p(),showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts})]})}exports.default=_e;
134
+ `.trim());return h.jsx(w.InlinedStyles,{id:"builderio-content",styles:t})}const _e=({content:e,data:t,locale:n})=>{var p,i,o;const a={},u=((p=e==null?void 0:e.data)==null?void 0:p.state)||{};return(o=(i=e==null?void 0:e.data)==null?void 0:i.inputs)==null||o.forEach(f=>{f.name&&f.defaultValue!==void 0&&(a[f.name]=f.defaultValue)}),{...a,...u,...t,...n?{locale:n}:{}}},Me=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function O(e){var f,y,C,I,V,R,F;const[t,n]=r.useState(()=>{var v,S;return We({variationId:(v=e.content)==null?void 0:v.testVariationId,contentId:(S=e.content)==null?void 0:S.id})});function a(v){o(S=>({...S,rootState:v}))}const[u,p]=r.useState(()=>[...z(),...e.customComponents||[]].reduce((v,{component:S,...T})=>({...v,[T.name]:{component:S,...l.serializeComponentInfo(T)}}),{})),[i,o]=r.useState(()=>({content:Me({content:e.content,data:e.data}),localState:void 0,rootState:_e({content:e.content,data:e.data,locale:e.locale}),rootSetState:a,context:e.context||{},canTrack:e.canTrack,apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...z(),...e.customComponents||[]].reduce((v,{component:S,...T})=>({...v,[T.name]:l.serializeComponentInfo(T)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{}}));return h.jsx(w.ComponentsContext.Provider,{value:{registeredComponents:u},children:h.jsxs(Ke,{content:e.content,data:e.data,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,showContent:e.showContent,builderContextSignal:i,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts,setBuilderContextSignal:o,children:[e.isSsrAbTest?h.jsx(j,{id:"builderio-variant-visibility",scriptStr:t}):null,h.jsx(ze,{isNestedRender:e.isNestedRender,contentId:(f=i.content)==null?void 0:f.id,cssCode:(C=(y=i.content)==null?void 0:y.data)==null?void 0:C.cssCode,customFonts:(V=(I=i.content)==null?void 0:I.data)==null?void 0:V.customFonts}),h.jsx(w.Blocks,{blocks:(F=(R=i.content)==null?void 0:R.data)==null?void 0:F.blocks,context:i,registeredComponents:u,linkComponent:e.linkComponent})]})})}function Oe(e){var i;const[t,n]=r.useState(()=>Re({canTrack:l.getDefaultCanTrack(e.canTrack),content:e.content}));function a(){var o;return Ae(P(e.content).map(f=>({id:f.testVariationId,testRatio:f.testRatio})),((o=e.content)==null?void 0:o.id)||"")}function u(){return P(e.content).map(o=>`.variant-${o.testVariationId} { display: none; } `).join("")}function p(){var o;return t?{...e.content,testVariationId:(o=e.content)==null?void 0:o.id}:l.handleABTestingSync({item:e.content,canTrack:l.getDefaultCanTrack(e.canTrack)})}return r.useEffect(()=>{},[]),h.jsxs(h.Fragment,{children:[!e.isNestedRender&&l.TARGET!=="reactNative"?h.jsx(j,{id:"builderio-init-variants-fns",scriptStr:Pe()}):null,t?h.jsxs(h.Fragment,{children:[h.jsx(w.InlinedStyles,{id:"builderio-variants",styles:u()}),h.jsx(j,{id:"builderio-variants-visibility",scriptStr:a()}),(i=P(e.content))==null?void 0:i.map(o=>h.jsx(O,{isNestedRender:e.isNestedRender,content:o,showContent:!1,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},o.testVariationId))]}):null,h.jsx(O,{isNestedRender:e.isNestedRender,content:p(),showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts})]})}exports.default=Oe;
@@ -1,9 +1,9 @@
1
1
  import { jsxs as N, Fragment as w, jsx as u } from "react/jsx-runtime";
2
2
  import { useRef as J, useState as y } from "react";
3
- import { Block as O, Blocks as S, set as U } from "./blocks-f4e58922.js";
4
- import { isEditing as j } from "./server-entry-8225a827.js";
3
+ import { Block as O, Blocks as S, set as U } from "./blocks-30dbe829.js";
4
+ import { isEditing as j } from "./server-entry-b8d1a7db.js";
5
5
  import "./blocks-exports.mjs";
6
- import "./get-class-prop-name-366f7202.js";
6
+ import "./get-class-prop-name-d5155434.js";
7
7
  import "./dynamic-renderer-8b343325.js";
8
8
  const R = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], $ = () => {
9
9
  const e = process.env.NODE_ENV || "production";