@builder.io/sdk-react-nextjs 0.14.26 → 0.14.28

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 (37) hide show
  1. package/lib/{node/USE_CLIENT_BUNDLE-07e24176.js → browser/USE_CLIENT_BUNDLE-1c35fc0a.js} +36 -35
  2. package/lib/browser/{USE_CLIENT_BUNDLE-26be487e.cjs → USE_CLIENT_BUNDLE-65950ed4.cjs} +5 -5
  3. package/lib/{edge/USE_SERVER_BUNDLE-06472a9d.cjs → browser/USE_SERVER_BUNDLE-3ea7f606.cjs} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-3c38a1b1.js → browser/USE_SERVER_BUNDLE-812dfc95.js} +1 -1
  5. package/lib/browser/{bundle-999a2785.js → bundle-763c7cf6.js} +311 -302
  6. package/lib/browser/bundle-aff841a2.cjs +169 -0
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +3 -3
  9. package/lib/{browser/USE_CLIENT_BUNDLE-4c845b66.js → edge/USE_CLIENT_BUNDLE-cf0350f7.js} +36 -35
  10. package/lib/{node/USE_CLIENT_BUNDLE-9966f569.cjs → edge/USE_CLIENT_BUNDLE-fc025b97.cjs} +5 -5
  11. package/lib/{node/USE_SERVER_BUNDLE-e36813e6.cjs → edge/USE_SERVER_BUNDLE-8e198f44.cjs} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-aa3e89ff.js → edge/USE_SERVER_BUNDLE-ded4dbdc.js} +1 -1
  13. package/lib/edge/bundle-05000fd3.cjs +189 -0
  14. package/lib/edge/{bundle-66b04b60.js → bundle-c67d25d8.js} +843 -842
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +3 -3
  17. package/lib/{edge/USE_CLIENT_BUNDLE-6a4fcac3.js → node/USE_CLIENT_BUNDLE-0fda6fd8.js} +36 -35
  18. package/lib/{edge/USE_CLIENT_BUNDLE-7517cd42.cjs → node/USE_CLIENT_BUNDLE-c57c9376.cjs} +5 -5
  19. package/lib/{browser/USE_SERVER_BUNDLE-f8a1ee85.js → node/USE_SERVER_BUNDLE-15a235fc.js} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-a3f3b1f7.cjs → node/USE_SERVER_BUNDLE-5472e997.cjs} +1 -1
  21. package/lib/node/{bundle-1b7db75b.js → bundle-40b09581.js} +26 -17
  22. package/lib/node/{bundle-e09f3bd9.cjs → bundle-acffe20a.cjs} +6 -6
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +3 -3
  25. package/package.json +1 -1
  26. package/types/cjs/blocks/image/image.types.d.ts +1 -0
  27. package/types/cjs/components/block/block.helpers.d.ts +20 -2
  28. package/types/cjs/components/block/components/block-wrapper.d.ts +0 -1
  29. package/types/cjs/components/content/components/enable-editor.d.ts +1 -1
  30. package/types/cjs/constants/sdk-version.d.ts +1 -1
  31. package/types/esm/blocks/image/image.types.d.ts +1 -0
  32. package/types/esm/components/block/block.helpers.d.ts +20 -2
  33. package/types/esm/components/block/components/block-wrapper.d.ts +0 -1
  34. package/types/esm/components/content/components/enable-editor.d.ts +1 -1
  35. package/types/esm/constants/sdk-version.d.ts +1 -1
  36. package/lib/browser/bundle-476e30d7.cjs +0 -169
  37. package/lib/edge/bundle-ba82c7f5.cjs +0 -189
@@ -0,0 +1,189 @@
1
+ "use strict";const y=require("react/jsx-runtime");require("react");const yo=require("lru-cache"),te=require("./USE_CLIENT_BUNDLE-fc025b97.cjs");require("next/navigation");const vo=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),bo=e=>typeof e=="string"&&vo.has(e.toLowerCase()),Z="rsc",ht=()=>{switch(Z){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function xo(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options}}const lt="[Builder.io]: ",Q={log:(...e)=>console.log(lt,...e),error:(...e)=>console.error(lt,...e),warn:(...e)=>console.warn(lt,...e),debug:(...e)=>console.debug(lt,...e)};function G(){return typeof window<"u"&&typeof document<"u"}const So=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},dr=e=>e instanceof URLSearchParams?So(e):e,fr=e=>typeof e=="string"?e:e instanceof URLSearchParams?e.toString():new URLSearchParams(e).toString();function wo(){return G()&&window.self!==window.top}function zt(e){return wo()&&fr(e||window.location.search).indexOf("builder.frameEditing=")!==-1}const ko=()=>{if(G()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},Co=()=>typeof navigator=="object"&&navigator.userAgent||"",pr=()=>{const e=Co(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||Z==="reactNative"}},n=e.match(/Tablet|iPad/i),r=ko();return{urlPath:r==null?void 0:r.pathname,host:(r==null?void 0:r.host)||(r==null?void 0:r.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},hr=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),Eo=()=>({isEditing:zt(),isBrowser:G(),isServer:!G(),getUserAttributes:()=>pr()}),Io=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,jo=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:i,rootState:s})=>{const u=hr({builder:t,context:n,event:r,state:mr({rootState:s,localState:o,rootSetState:i})});return new Function(...u.map(([p])=>p),e)(...u.map(([,p])=>p))};function mr({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(r,o)=>{if(t&&o in t)return t[o];const i=r[o];return typeof i=="object"&&i!==null?mr({rootState:i,localState:void 0,rootSetState:n?s=>{r[o]=s,n(r)}:void 0}):i},set:(r,o,i)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return r[o]=i,n==null||n(r),!0}})}const gr=(e,t,n)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((o,i,s)=>Object(o[i])===o[i]?o[i]:o[i]=Math.abs(Number(r[s+1]))>>0===+r[s+1]?[]:{},e)[r[r.length-1]]=n,e};var P,To=function(e){function t(a){return 48>a?a===36:58>a?!0:65>a?!1:91>a?!0:97>a?a===95:123>a?!0:170<=a&&mo.test(String.fromCharCode(a))}function n(a){return 65>a?a===36:91>a?!0:97>a?a===95:123>a?!0:170<=a&&Kn.test(String.fromCharCode(a))}function r(a,l){for(var c=v,f=1,I=0;;){st.lastIndex=I;var $=st.exec(c);if($&&$.index<a)++f,I=$.index+$[0].length;else break}throw c={line:f,ab:a-I},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=a,l.X=c,l.o=d,l}function o(a){a=a.split(" ");for(var l=Object.create(null),c=0;c<a.length;c++)l[a[c]]=!0;return function(f){return l[f]||!1}}function i(){this.line=xe,this.ab=d-ce}function s(a,l){ke=d,T.C&&(At=new i),E=a,p(),ne=l,Ue=a.m}function u(){for(var a=d,l=T.va&&T.C&&new i,c=v.charCodeAt(d+=2);d<we&&c!==10&&c!==13&&c!==8232&&c!==8233;)++d,c=v.charCodeAt(d);T.va&&T.va(!1,v.slice(a+2,d),a,d,l,T.C&&new i)}function p(){for(;d<we;){var a=v.charCodeAt(d);if(a===32)++d;else if(a===13)++d,a=v.charCodeAt(d),a===10&&++d,T.C&&(++xe,ce=d);else if(a===10||a===8232||a===8233)++d,T.C&&(++xe,ce=d);else if(8<a&&14>a)++d;else if(a===47)if(a=v.charCodeAt(d+1),a===42){a=void 0;var l=T.va&&T.C&&new i,c=d,f=v.indexOf("*/",d+=2);if(f===-1&&r(d-2,"Unterminated comment"),d=f+2,T.C)for(st.lastIndex=c;(a=st.exec(v))&&a.index<d;)++xe,ce=a.index+a[0].length;T.va&&T.va(!0,v.slice(c+2,f),c,d,l,T.C&&new i)}else if(a===47)u();else break;else if(a===160)++d;else if(5760<=a&&ho.test(String.fromCharCode(a)))++d;else break}}function x(a){switch(a){case 46:a=v.charCodeAt(d+1),48<=a&&57>=a?B(!0):(++d,s(Mn));return;case 40:return++d,s(ue);case 41:return++d,s(ie);case 59:return++d,s(de);case 44:return++d,s(ye);case 91:return++d,s(Dt);case 93:return++d,s(Lt);case 123:return++d,s(De);case 125:return++d,s(Ee);case 58:return++d,s(Le);case 63:return++d,s(Vn);case 48:if(a=v.charCodeAt(d+1),a===120||a===88){d+=2,a=R(16),a===null&&r(_+2,"Expected hexadecimal number"),n(v.charCodeAt(d))&&r(d,"Identifier directly after number"),s(Ve,a);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return B(!1);case 34:case 39:d++;for(var l="";;){d>=we&&r(_,"Unterminated string constant");var c=v.charCodeAt(d);if(c===a){++d,s(rt,l);break}if(c===92){c=v.charCodeAt(++d);var f=/^[0-7]+/.exec(v.slice(d,d+3));for(f&&(f=f[0]);f&&255<parseInt(f,8);)f=f.slice(0,-1);if(f==="0"&&(f=null),++d,f)ee&&r(d-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(f,8)),d+=f.length-1;else switch(c){case 110:l+=`
2
+ `;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(N(2));break;case 117:l+=String.fromCharCode(N(4));break;case 85:l+=String.fromCharCode(N(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:v.charCodeAt(d)===10&&++d;case 10:T.C&&(ce=d,++xe);break;default:l+=String.fromCharCode(c)}}else c!==13&&c!==10&&c!==8232&&c!==8233||r(_,"Unterminated string constant"),l+=String.fromCharCode(c),++d}return;case 47:a=v.charCodeAt(d+1),Ue?(++d,A()):a===61?m(Se,2):m(Dn,1);return;case 37:case 42:v.charCodeAt(d+1)===61?m(Se,2):m(uo,1);return;case 124:case 38:l=v.charCodeAt(d+1),l===a?m(a===124?_n:$n,2):l===61?m(Se,2):m(a===124?ro:io,1);return;case 94:v.charCodeAt(d+1)===61?m(Se,2):m(oo,1);return;case 43:case 45:l=v.charCodeAt(d+1),l===a?l===45&&v.charCodeAt(d+2)===62&&at.test(v.slice(ge,d))?(d+=3,u(),p(),k()):m(no,2):l===61?m(Se,2):m(co,1);return;case 60:case 62:l=v.charCodeAt(d+1),c=1,l===a?(c=a===62&&v.charCodeAt(d+2)===62?3:2,v.charCodeAt(d+c)===61?m(Se,c+1):m(lo,c)):l===33&&a===60&&v.charCodeAt(d+2)===45&&v.charCodeAt(d+3)===45?(d+=4,u(),p(),k()):(l===61&&(c=v.charCodeAt(d+2)===61?3:2),m(so,c));return;case 61:case 33:v.charCodeAt(d+1)===61?m(ao,v.charCodeAt(d+2)===61?3:2):m(a===61?Ln:Wn,1);return;case 126:return m(Wn,1)}return!1}function k(a){if(a?d=_+1:_=d,T.C&&(Tt=new i),a)return A();if(d>=we)return s(Pt);if(a=v.charCodeAt(d),n(a)||a===92)return C();if(x(a)===!1){if(a=String.fromCharCode(a),a==="\\"||Kn.test(a))return C();r(d,"Unexpected character '"+a+"'")}}function m(a,l){var c=v.slice(d,d+l);d+=l,s(a,c)}function A(){for(var a,l,c=d;;){d>=we&&r(c,"Unterminated regexp");var f=v.charAt(d);if(at.test(f)&&r(c,"Unterminated regexp"),a)a=!1;else{if(f==="[")l=!0;else if(f==="]"&&l)l=!1;else if(f==="/"&&!l)break;a=f==="\\"}++d}a=v.slice(c,d),++d,(l=W())&&!/^[gmi]*$/.test(l)&&r(c,"Invalid regexp flag");try{var I=new RegExp(a,l)}catch($){throw $ instanceof SyntaxError&&r(c,$.message),$}s(vn,I)}function R(a,l){for(var c=d,f=0,I=l===void 0?1/0:l,$=0;$<I;++$){var J=v.charCodeAt(d);if(J=97<=J?J-97+10:65<=J?J-65+10:48<=J&&57>=J?J-48:1/0,J>=a)break;++d,f=f*a+J}return d===c||l!==void 0&&d-c!==l?null:f}function B(a){var l=d,c=!1,f=v.charCodeAt(d)===48;a||R(10)!==null||r(l,"Invalid number"),v.charCodeAt(d)===46&&(++d,R(10),c=!0),a=v.charCodeAt(d),(a===69||a===101)&&(a=v.charCodeAt(++d),a!==43&&a!==45||++d,R(10)===null&&r(l,"Invalid number"),c=!0),n(v.charCodeAt(d))&&r(d,"Identifier directly after number"),a=v.slice(l,d);var I;c?I=parseFloat(a):f&&a.length!==1?/[89]/.test(a)||ee?r(l,"Invalid number"):I=parseInt(a,8):I=parseInt(a,10),s(Ve,I)}function N(a){return a=R(16,a),a===null&&r(_,"Bad character escape sequence"),a}function W(){Ie=!1;for(var a,l=!0,c=d;;){var f=v.charCodeAt(d);if(t(f))Ie&&(a+=v.charAt(d)),++d;else if(f===92){Ie||(a=v.slice(c,d)),Ie=!0,v.charCodeAt(++d)!==117&&r(d,"Expecting Unicode escape sequence \\uXXXX"),++d,f=N(4);var I=String.fromCharCode(f);I||r(d-1,"Invalid Unicode escape"),(l?n(f):t(f))||r(d-4,"Invalid Unicode escape"),a+=I}else break;l=!1}return Ie?a:v.slice(c,d)}function C(){var a=W(),l=Ce;!Ie&&po(a)&&(l=to[a]),s(l,a)}function g(){Ot=_,ge=ke,Rt=At,k()}function F(a){if(ee=a,d=_,T.C)for(;d<ce;)ce=v.lastIndexOf(`
3
+ `,ce-2)+1,--xe;p(),k()}function U(){this.type=null,this.start=_,this.end=null}function Y(){this.start=Tt,this.end=null,jt&&(this.source=jt)}function V(){var a=new U;return T.C&&(a.X=new Y),T.vb&&(a.sourceFile=T.vb),T.Xa&&(a.j=[_,0]),a}function re(a){var l=new U;return l.start=a.start,T.C&&(l.X=new Y,l.X.start=a.X.start),T.Xa&&(l.j=[a.j[0],0]),l}function j(a,l){return a.type=l,a.end=ge,T.C&&(a.X.end=Rt),T.Xa&&(a.j[1]=ge),a}function Qe(a){return a.type==="ExpressionStatement"&&a.la.type==="Literal"&&a.la.value==="use strict"}function M(a){return E===a?(g(),!0):!1}function et(){return!T.fc&&(E===Pt||E===Ee||at.test(v.slice(ge,_)))}function be(){M(de)||et()||se()}function D(a){E===a?g():se()}function se(){r(_,"Unexpected token")}function tt(a){a.type!=="Identifier"&&a.type!=="MemberExpression"&&r(a.start,"Assigning to rvalue"),ee&&a.type==="Identifier"&&it(a.name)&&r(a.start,"Assigning to "+a.name+" in strict mode")}function oe(){(E===Dn||E===Se&&ne==="/=")&&k(!0);var a=E,l=V();switch(a){case Nt:case xn:g();var c=a===Nt;M(de)||et()?l.label=null:E!==Ce?se():(l.label=le(),be());for(var f=0;f<L.length;++f){var I=L[f];if((l.label===null||I.name===l.label.name)&&(I.kind!==null&&(c||I.kind==="loop")||l.label&&c))break}return f===L.length&&r(l.start,"Unsyntactic "+a.l),j(l,c?"BreakStatement":"ContinueStatement");case Sn:return g(),be(),j(l,"DebuggerStatement");case kn:return g(),L.push(Wt),l.body=oe(),L.pop(),D(Vt),l.test=Ne(),be(),j(l,"DoWhileStatement");case In:return g(),L.push(Wt),D(ue),E===de?St(l,null):E===Mt?(a=V(),g(),gn(a,!0),j(a,"VariableDeclaration"),a.fa.length===1&&M(ot)?mn(l,a):St(l,a)):(a=X(!1,!0),M(ot)?(tt(a),mn(l,a)):St(l,a));case Ft:return g(),Et(l,!0);case jn:return g(),l.test=Ne(),l.da=oe(),l.alternate=M(Cn)?oe():null,j(l,"IfStatement");case Tn:return Me||T.Ib||r(_,"'return' outside of function"),g(),M(de)||et()?l.K=null:(l.K=X(),be()),j(l,"ReturnStatement");case Ut:for(g(),l.Qb=Ne(),l.tb=[],D(De),L.push(go);E!==Ee;)E===Bt||E===wn?(a=E===Bt,f&&j(f,"SwitchCase"),l.tb.push(f=V()),f.da=[],g(),a?f.test=X():(c&&r(Ot,"Multiple default clauses"),c=!0,f.test=null),D(Le)):(f||se(),f.da.push(oe()));return f&&j(f,"SwitchCase"),g(),L.pop(),j(l,"SwitchStatement");case An:return g(),at.test(v.slice(ge,_))&&r(ge,"Illegal newline after throw"),l.K=X(),be(),j(l,"ThrowStatement");case On:return g(),l.block=Be(),l.Ea=null,E===bn&&(a=V(),g(),D(ue),a.Ua=le(),ee&&it(a.Ua.name)&&r(a.Ua.start,"Binding "+a.Ua.name+" in strict mode"),D(ie),a.body=Be(),l.Ea=j(a,"CatchClause")),l.fb=M(En)?Be():null,l.Ea||l.fb||r(l.start,"Missing catch or finally clause"),j(l,"TryStatement");case Mt:return g(),gn(l),be(),j(l,"VariableDeclaration");case Vt:return g(),l.test=Ne(),L.push(Wt),l.body=oe(),L.pop(),j(l,"WhileStatement");case Rn:return ee&&r(_,"'with' in strict mode"),g(),l.object=Ne(),l.body=oe(),j(l,"WithStatement");case De:return Be();case de:return g(),j(l,"EmptyStatement");default:if(c=ne,I=X(),a===Ce&&I.type==="Identifier"&&M(Le)){for(f=0;f<L.length;++f)L[f].name===c&&r(I.start,"Label '"+c+"' is already declared");return L.push({name:c,kind:E.W?"loop":E===Ut?"switch":null}),l.body=oe(),L.pop(),l.label=I,j(l,"LabeledStatement")}return l.la=I,be(),j(l,"ExpressionStatement")}}function Ne(){D(ue);var a=X();return D(ie),a}function Be(a){var l=V(),c=!0,f=!1;for(l.body=[],D(De);!M(Ee);){var I=oe();if(l.body.push(I),c&&a&&Qe(I)){var $=f;F(f=!0)}c=!1}return f&&!$&&F(!1),j(l,"BlockStatement")}function St(a,l){return a.ua=l,D(de),a.test=E===de?null:X(),D(de),a.update=E===ie?null:X(),D(ie),a.body=oe(),L.pop(),j(a,"ForStatement")}function mn(a,l){return a.left=l,a.right=X(),D(ie),a.body=oe(),L.pop(),j(a,"ForInStatement")}function gn(a,l){for(a.fa=[],a.kind="var";;){var c=V();if(c.id=le(),ee&&it(c.id.name)&&r(c.id.start,"Binding "+c.id.name+" in strict mode"),c.ua=M(Ln)?X(!0,l):null,a.fa.push(j(c,"VariableDeclarator")),!M(ye))break}}function X(a,l){var c=wt(l);if(!a&&E===ye){for(a=re(c),a.xb=[c];M(ye);)a.xb.push(wt(l));return j(a,"SequenceExpression")}return c}function wt(a){var l=kt(Ct(),-1,a);if(M(Vn)){var c=re(l);c.test=l,c.da=X(!0),D(Le),c.alternate=X(!0,a),l=j(c,"ConditionalExpression")}return E.Cb?(c=re(l),c.operator=ne,c.left=l,g(),c.right=wt(a),tt(l),j(c,"AssignmentExpression")):l}function kt(a,l,c){var f=E.L;if(f!==null&&(!c||E!==ot)&&f>l){var I=re(a);return I.left=a,I.operator=ne,a=E,g(),I.right=kt(Ct(),f,c),f=j(I,a===_n||a===$n?"LogicalExpression":"BinaryExpression"),kt(f,l,c)}return a}function Ct(){if(E.prefix){var a=V(),l=E.$b;return a.operator=ne,Ue=a.prefix=!0,g(),a.K=Ct(),l?tt(a.K):ee&&a.operator==="delete"&&a.K.type==="Identifier"&&r(a.start,"Deleting local variable in strict mode"),j(a,l?"UpdateExpression":"UnaryExpression")}for(l=Fe(nt());E.cc&&!et();)a=re(l),a.operator=ne,a.prefix=!1,a.K=l,tt(l),g(),l=j(a,"UpdateExpression");return l}function Fe(a,l){if(M(Mn)){var c=re(a);return c.object=a,c.Wa=le(!0),c.bb=!1,Fe(j(c,"MemberExpression"),l)}return M(Dt)?(c=re(a),c.object=a,c.Wa=X(),c.bb=!0,D(Lt),Fe(j(c,"MemberExpression"),l)):!l&&M(ue)?(c=re(a),c.callee=a,c.arguments=It(ie,!1),Fe(j(c,"CallExpression"),l)):a}function nt(){switch(E){case Nn:var a=V();return g(),j(a,"ThisExpression");case Ce:return le();case Ve:case rt:case vn:return a=V(),a.value=ne,a.raw=v.slice(_,ke),g(),j(a,"Literal");case Bn:case Fn:case Un:return a=V(),a.value=E.$a,a.raw=E.l,g(),j(a,"Literal");case ue:a=Tt;var l=_;g();var c=X();return c.start=l,c.end=ke,T.C&&(c.X.start=a,c.X.end=At),T.Xa&&(c.j=[l,ke]),D(ie),c;case Dt:return a=V(),g(),a.elements=It(Lt,!0,!0),j(a,"ArrayExpression");case De:for(a=V(),l=!0,c=!1,a.h=[],g();!M(Ee);){if(l)l=!1;else if(D(ye),T.sb&&M(Ee))break;var f={key:E===Ve||E===rt?nt():le(!0)},I=!1;if(M(Le)){f.value=X(!0);var $=f.kind="init"}else f.key.type!=="Identifier"||f.key.name!=="get"&&f.key.name!=="set"?se():(I=c=!0,$=f.kind=f.key.name,f.key=E===Ve||E===rt?nt():le(!0),E!==ue&&se(),f.value=Et(V(),!1));if(f.key.type==="Identifier"&&(ee||c))for(var J=0;J<a.h.length;++J){var je=a.h[J];if(je.key.name===f.key.name){var _t=$===je.kind||I&&je.kind==="init"||$==="init"&&(je.kind==="get"||je.kind==="set");_t&&!ee&&$==="init"&&je.kind==="init"&&(_t=!1),_t&&r(f.key.start,"Redefinition of property")}}a.h.push(f)}return j(a,"ObjectExpression");case Ft:return a=V(),g(),Et(a,!1);case Pn:return a=V(),g(),a.callee=Fe(nt(),!0),a.arguments=M(ue)?It(ie,!1):eo,j(a,"NewExpression")}se()}function Et(a,l){E===Ce?a.id=le():l?se():a.id=null,a.oa=[];var c=!0;for(D(ue);!M(ie);)c?c=!1:D(ye),a.oa.push(le());c=Me;var f=L;if(Me=!0,L=[],a.body=Be(!0),Me=c,L=f,ee||a.body.body.length&&Qe(a.body.body[0])){for(c=a.id?-1:0;c<a.oa.length;++c)if(f=0>c?a.id:a.oa[c],(Hn(f.name)||it(f.name))&&r(f.start,"Defining '"+f.name+"' in strict mode"),0<=c)for(var I=0;I<c;++I)f.name===a.oa[I].name&&r(f.start,"Argument name clash in strict mode")}return j(a,l?"FunctionDeclaration":"FunctionExpression")}function It(a,l,c){for(var f=[],I=!0;!M(a);){if(I)I=!1;else if(D(ye),l&&T.sb&&M(a))break;f.push(c&&E===ye?null:X(!0))}return f}function le(a){var l=V();return a&&T.yb==="everywhere"&&(a=!1),E===Ce?(!a&&(T.yb&&fo(ne)||ee&&Hn(ne))&&v.slice(_,ke).indexOf("\\")===-1&&r(_,"The keyword '"+ne+"' is reserved"),l.name=ne):a&&E.l?l.name=E.l:se(),Ue=!1,g(),j(l,"Identifier")}e.version="0.5.0";var T,v="",we,jt;e.parse=function(a,l){v=String(a),we=v.length,T=l||{};for(var c in yn)Object.prototype.hasOwnProperty.call(T,c)||(T[c]=yn[c]);for(jt=T.sourceFile,xe=1,d=ce=0,Ue=!0,p(),c=T.dc,Ot=ge=d,T.C&&(Rt=new i),Me=ee=!1,L=[],k(),a=c||V(),l=!0,c||(a.body=[]);E!==Pt;)c=oe(),a.body.push(c),l&&Qe(c)&&F(!0),l=!1;return j(a,"Program")};var yn={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},d=0,_=0,ke=0,Tt,At,E,ne,Ue,xe,ce,Ot=0,ge=0,Rt,Me,L,ee,eo=[],Ve={type:"num"},vn={type:"regexp"},rt={type:"string"},Ce={type:"name"},Pt={type:"eof"},Nt={l:"break"},Bt={l:"case",m:!0},bn={l:"catch"},xn={l:"continue"},Sn={l:"debugger"},wn={l:"default"},kn={l:"do",W:!0},Cn={l:"else",m:!0},En={l:"finally"},In={l:"for",W:!0},Ft={l:"function"},jn={l:"if"},Tn={l:"return",m:!0},Ut={l:"switch"},An={l:"throw",m:!0},On={l:"try"},Mt={l:"var"},Vt={l:"while",W:!0},Rn={l:"with"},Pn={l:"new",m:!0},Nn={l:"this"},Bn={l:"null",$a:null},Fn={l:"true",$a:!0},Un={l:"false",$a:!1},ot={l:"in",L:7,m:!0},to={break:Nt,case:Bt,catch:bn,continue:xn,debugger:Sn,default:wn,do:kn,else:Cn,finally:En,for:In,function:Ft,if:jn,return:Tn,switch:Ut,throw:An,try:On,var:Mt,while:Vt,with:Rn,null:Bn,true:Fn,false:Un,new:Pn,in:ot,instanceof:{l:"instanceof",L:7,m:!0},this:Nn,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Dt={type:"[",m:!0},Lt={type:"]"},De={type:"{",m:!0},Ee={type:"}"},ue={type:"(",m:!0},ie={type:")"},ye={type:",",m:!0},de={type:";",m:!0},Le={type:":",m:!0},Mn={type:"."},Vn={type:"?",m:!0},Dn={L:10,m:!0},Ln={Cb:!0,m:!0},Se={Cb:!0,m:!0},no={cc:!0,prefix:!0,$b:!0},Wn={prefix:!0,m:!0},_n={L:1,m:!0},$n={L:2,m:!0},ro={L:3,m:!0},oo={L:4,m:!0},io={L:5,m:!0},ao={L:6,m:!0},so={L:7,m:!0},lo={L:8,m:!0},co={L:9,prefix:!0,m:!0},uo={L:10,m:!0},fo=o("class enum extends super const export import"),Hn=o("implements interface let package private protected public static yield"),it=o("eval arguments"),po=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"),ho=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Kn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),mo=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),at=/[\n\r\u2028\u2029]/,st=/\r\n|[\n\r\u2028\u2029]/g,Ie,Wt={kind:"loop"},go={kind:"switch"}},Ht=Ht=typeof globalThis>"u"?void 0:globalThis;To(Ht.j||(Ht.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 i,s;for(s in this)typeof this[s]=="function"&&(i=s.match(e))&&(this.rb[i[1]]=this[s].bind(this));this.N=Gt(this,this.ra,null),this.Na=this.N.object,this.ra=Oe(this.ba.join(`
4
+ `),"polyfills"),this.ba=void 0,mt(this.ra),i=new S(this.ra,this.N),i.done=!1,this.o=[i],this.Eb(),this.value=void 0,this.ra=r,i=new S(this.ra,this.N),i.done=!1,this.o.length=0,this.o[0]=i}var Gn={C:!0,kc:5},qt={configurable:!0,enumerable:!0,writable:!1},b={configurable:!0,enumerable:!1,writable:!0},q={configurable:!0,enumerable:!1,writable:!1},We={configurable:!1,enumerable:!1,writable:!1},Xn={configurable:!1,enumerable:!0,writable:!0},yr={STEP_ERROR:!0},Pe={SCOPE_REFERENCE:!0},Ye={VALUE_IN_DESCRIPTOR:!0},Ae={REGEXP_TIMEOUT:!0},Yn=[],pe=null,Ge=null,ve=typeof globalThis>"u"?void 0:globalThis,Ao=["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 Zt(e){var t=e>>>0;return t===Number(e)?t:NaN}function Xe(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function mt(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"&&mt(o,t,n)}}h.prototype.REGEXP_MODE=2;h.prototype.REGEXP_THREAD_TIMEOUT=1e3;h.prototype.POLYFILL_TIMEOUT=1e3;P=h.prototype;P.P=!1;P.Ka=!1;P.Kb=0;P.ic=0;function Oe(e,t){var n={},r;for(r in Gn)n[r]=Gn[r];return n.sourceFile=t,ve.j.parse(e,n)}P.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");Je(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};P.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 S(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 i=this.rb[r.type](e,n,r)}catch(s){if(s!==yr)throw this.value!==s&&(this.value=void 0),s}finally{Ge=o}if(i&&e.push(i),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||r.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!r.end&&t>Date.now());return!0};P.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Oo(e,t){e.g(t,"NaN",NaN,We),e.g(t,"Infinity",1/0,We),e.g(t,"undefined",void 0,We),e.g(t,"window",t,qt),e.g(t,"this",t,We),e.g(t,"self",t),e.M=new O(null),e.Z=new O(e.M),Ro(e,t),Po(e,t),t.xa=e.M,e.g(t,"constructor",e.v,b),No(e,t),Bo(e,t),Fo(e,t),Uo(e,t),Mo(e,t),Vo(e,t),Do(e,t),Lo(e,t),Wo(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,b),e.g(t,"parseInt",e.i(parseInt,!1),b),e.g(t,"parseFloat",e.i(parseFloat,!1),b),e.g(t,"isNaN",e.i(isNaN,!1),b),e.g(t,"isFinite",e.i(isFinite,!1),b);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<r.length;o++)n=function(i){return function(s){try{return i(s)}catch(u){w(e,e.Gb,u.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),b);n=function(i){return Jn(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),b),n=function(i){return Jn(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),b),n=function(i){zn(e,i)},e.g(t,"clearTimeout",e.i(n,!1),b),n=function(i){zn(e,i)},e.g(t,"clearInterval",e.i(n,!1),b),e.OBJECT=e.v,e.OBJECT_PROTO=e.M,e.FUNCTION=e.O,e.FUNCTION_PROTO=e.Z,e.ARRAY=e.qa,e.ARRAY_PROTO=e.La,e.REGEXP=e.I,e.REGEXP_PROTO=e.Ma,e.DATE=e.$,e.DATE_PROTO=e.nb,e.qb&&e.qb(e,t)}P.Wb=0;function Ro(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){var i=arguments.length?String(arguments[arguments.length-1]):"",s=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(s){s=s.split(/\s*,\s*/);for(var u=0;u<s.length;u++){var p=s[u];n.test(p)||w(e,e.T,"Invalid function argument: "+p)}s=s.join(", ")}try{var x=Oe("(function("+s+") {"+i+"})","function"+e.Wb++)}catch(k){w(e,e.T,"Invalid code: "+k.message)}return x.body.length!==1&&w(e,e.T,"Invalid code in function body"),tn(e,x.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,b),e.g(e.O,"prototype",e.Z,b),e.g(e.Z,"constructor",e.O,b),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,q),e.Z.H="Function",r=function(o,i){var s=e.o[e.o.length-1];s.U=this,s.B=o,s.F=[],i!=null&&(i instanceof O?s.F=vr(e,i):w(e,e.j,"CreateListFromArrayLike called on non-object")),s.eb=!1},H(e,e.O,"apply",r),r=function(o){var i=e.o[e.o.length-1];i.U=this,i.B=o,i.F=[];for(var s=1;s<arguments.length;s++)i.F.push(arguments[s]);i.eb=!1},H(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)},H(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),b),r=function(){return this.valueOf()},H(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),b)}function Po(e,t){function n(o){o!=null||w(e,e.j,"Cannot convert '"+o+"' to object")}var r=function(o){if(o==null)return me(e)?this:e.s(e.M);if(!(o instanceof O)){var i=e.s(he(e,o));return i.data=o,i}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,b),e.g(e.M,"constructor",e.v,b),e.g(t,"Object",e.v,b),r=function(o){return n(o),fe(e,Object.getOwnPropertyNames(o instanceof O?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),b),r=function(o){return n(o),o instanceof O&&(o=o.h),fe(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),b),r=function(o){return o===null?e.s(null):(o instanceof O||w(e,e.j,"Object prototype may only be an Object or null, not "+o),e.s(o))},e.g(e.v,"create",e.i(r,!1),b),e.ba.push("(function() {","var create_ = Object.create;","Object.create = function create(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();",""),r=function(o,i,s){return i=String(i),o instanceof O||w(e,e.j,"Object.defineProperty called on non-object: "+o),s instanceof O||w(e,e.j,"Property description must be an object"),!o.preventExtensions||i in o.h||w(e,e.j,"Can't define property '"+i+"', object is not extensible"),e.g(o,i,Ye,s.h),o},e.g(e.v,"defineProperty",e.i(r,!1),b),e.ba.push("(function() {","var defineProperty_ = Object.defineProperty;","Object.defineProperty = function defineProperty(obj, prop, d1) {","var d2 = {};","if ('configurable' in d1) d2.configurable = d1.configurable;","if ('enumerable' in d1) d2.enumerable = d1.enumerable;","if ('writable' in d1) d2.writable = d1.writable;","if ('value' in d1) d2.value = d1.value;","if ('get' in d1) d2.get = d1.get;","if ('set' in d1) d2.set = d1.set;","return defineProperty_(obj, prop, d2);","};","})();","Object.defineProperty(Object, 'defineProperties',","{configurable: true, writable: true, value:","function defineProperties(obj, props) {","var keys = Object.keys(props);","for (var i = 0; i < keys.length; i++) {","Object.defineProperty(obj, keys[i], props[keys[i]]);","}","return obj;","}","});",""),r=function(o,i){if(o instanceof O||w(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),i=String(i),i in o.h){var s=Object.getOwnPropertyDescriptor(o.h,i),u=o.V[i];return o=o.Y[i],i=e.s(e.M),u||o?(e.g(i,"get",u),e.g(i,"set",o)):(e.g(i,"value",s.value),e.g(i,"writable",s.writable)),e.g(i,"configurable",s.configurable),e.g(i,"enumerable",s.enumerable),i}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),b),r=function(o){return n(o),he(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),b),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),b),r=function(o){return o instanceof O&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),b),H(e,e.v,"toString",O.prototype.toString),H(e,e.v,"toLocaleString",O.prototype.toString),H(e,e.v,"valueOf",O.prototype.valueOf),r=function(o){return n(this),this instanceof O?String(o)in this.h:this.hasOwnProperty(o)},H(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof O?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},H(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=he(e,o),!o)return!1;if(o===this)return!0}},H(e,e.v,"isPrototypeOf",r)}function No(e,t){var n=function(r){var o=me(e)?this:Re(e),i=arguments[0];if(arguments.length===1&&typeof i=="number")isNaN(Zt(i))&&w(e,e.ob,"Invalid array length: "+i),o.h.length=i;else{for(i=0;i<arguments.length;i++)o.h[i]=arguments[i];o.h.length=i}return o};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,b),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),b),e.g(e.La,"length",0,{configurable:!1,enumerable:!1,writable:!0}),e.La.H="Array",e.ba.push("(function() {","function createArrayMethod_(f) {","Object.defineProperty(Array.prototype, f.name,","{configurable: true, writable: true, value: f});","}","createArrayMethod_(","function pop() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","len--;","var x = o[len];","delete o[len];","o.length = len;","return x;","}",");","createArrayMethod_(","function push(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","for (var i = 0; i < arguments.length; i++) {","o[len] = arguments[i];","len++;","}","o.length = len;","return len;","}",");","createArrayMethod_(","function shift() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","var value = o[0];","for (var i = 0; i < len - 1; i++) {","if ((i + 1) in o) {","o[i] = o[i + 1];","} else {","delete o[i];","}","}","delete o[i];","o.length = len - 1;","return value;","}",");","createArrayMethod_(","function unshift(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","len = 0;","}","for (var i = len - 1; i >= 0; i--) {","if (i in o) {","o[i + arguments.length] = o[i];","} else {","delete o[i + arguments.length];","}","}","for (var i = 0; i < arguments.length; i++) {","o[i] = arguments[i];","}","return (o.length = len + arguments.length);","}",");","createArrayMethod_(","function reverse() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 2) {","return o;","}","for (var i = 0; i < len / 2 - 0.5; i++) {","var x = o[i];","var hasX = i in o;","if ((len - i - 1) in o) {","o[i] = o[len - i - 1];","} else {","delete o[i];","}","if (hasX) {","o[len - i - 1] = x;","} else {","delete o[len - i - 1];","}","}","return o;","}",");","createArrayMethod_(","function indexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var n = fromIndex | 0;","if (!len || n >= len) {","return -1;","}","var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);","while (i < len) {","if (i in o && o[i] === searchElement) {","return i;","}","i++;","}","return -1;","}",");","createArrayMethod_(","function lastIndexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len) {","return -1;","}","var n = len - 1;","if (arguments.length > 1) {","n = fromIndex | 0;","if (n) {","n = (n > 0 || -1) * Math.floor(Math.abs(n));","}","}","var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);","while (i >= 0) {","if (i in o && o[i] === searchElement) {","return i;","}","i--;","}","return -1;","}",");","createArrayMethod_(","function slice(start, end) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","start = (start >= 0) ? start : Math.max(0, len + start);","if (typeof end !== 'undefined') {","if (end !== Infinity) {","end |= 0;","}","if (end < 0) {","end = len + end;","} else {","end = Math.min(end, len);","}","} else {","end = len;","}","var size = end - start;","var cloned = new Array(size);","for (var i = 0; i < size; i++) {","if ((start + i) in o) {","cloned[i] = o[start + i];","}","}","return cloned;","}",");","createArrayMethod_(","function splice(start, deleteCount, var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","if (start < 0) {","start = Math.max(len + start, 0);","} else {","start = Math.min(start, len);","}","if (arguments.length < 1) {","deleteCount = len - start;","} else {","deleteCount |= 0;","deleteCount = Math.max(0, Math.min(deleteCount, len - start));","}","var removed = [];","for (var i = start; i < start + deleteCount; i++) {","if (i in o) {","removed.push(o[i]);","} else {","removed.length++;","}","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = start + deleteCount; i < len - deleteCount; i++) {","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = len - deleteCount; i < len; i++) {","delete o[i];","}","len -= deleteCount;","var arl = arguments.length - 2;","for (var i = len - 1; i >= start; i--) {","if (i in o) {","o[i + arl] = o[i];","} else {","delete o[i + arl];","}","}","len += arl;","for (var i = 2; i < arguments.length; i++) {","o[start + i - 2] = arguments[i];","}","o.length = len;","return removed;","}",");","createArrayMethod_(","function concat(var_args) {","if (!this) throw TypeError();","var o = Object(this);","var cloned = [];","for (var i = -1; i < arguments.length; i++) {","var value = (i === -1) ? o : arguments[i];","if (Array.isArray(value)) {","for (var j = 0, l = value.length; j < l; j++) {","if (j in value) {","cloned.push(value[j]);","} else {","cloned.length++;","}","}","} else {","cloned.push(value);","}","}","return cloned;","}",");","createArrayMethod_(","function join(opt_separator) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var sep = typeof opt_separator === 'undefined' ?","',' : ('' + opt_separator);","var str = '';","for (var i = 0; i < len; i++) {","if (i && sep) str += sep;","str += (o[i] === null || o[i] === undefined) ? '' : o[i];","}","return str;","}",");","createArrayMethod_(","function every(callbackfn, thisArg) {","if (!this || typeof callbackfn !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o && !callbackfn.call(t, o[k], k, o)) return false;","k++;","}","return true;","}",");","createArrayMethod_(","function filter(fun, var_args) {","if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var res = [];","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o) {","var val = o[i];","if (fun.call(thisArg, val, i, o)) res.push(val);","}","}","return res;","}",");","createArrayMethod_(","function forEach(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o) callback.call(t, o[k], k, o);","k++;","}","}",");","createArrayMethod_(","function map(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","var a = new Array(len);","while (k < len) {","if (k in o) a[k] = callback.call(t, o[k], k, o);","k++;","}","return a;","}",");","createArrayMethod_(","function reduce(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = 0, value;","if (arguments.length === 2) {","value = arguments[1];","} else {","while (k < len && !(k in o)) k++;","if (k >= len) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k++];","}","for (; k < len; k++) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function reduceRight(callback /*, initialValue*/) {","if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = len - 1, value;","if (arguments.length >= 2) {","value = arguments[1];","} else {","while (k >= 0 && !(k in o)) k--;","if (k < 0) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k--];","}","for (; k >= 0; k--) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function some(fun/*, thisArg*/) {","if (!this || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o && fun.call(thisArg, o[i], i, o)) return true;","}","return false;","}",");","createArrayMethod_(","function sort(opt_comp) {","if (!this) throw TypeError();","if (typeof opt_comp !== 'function') {","opt_comp = undefined;","}","for (var i = 0; i < this.length; i++) {","var changes = 0;","for (var j = 0; j < this.length - i - 1; j++) {","if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :","(String(this[j]) > String(this[j + 1]))) {","var swap = this[j];","var hasSwap = j in this;","if ((j + 1) in this) {","this[j] = this[j + 1];","} else {","delete this[j];","}","if (hasSwap) {","this[j + 1] = swap;","} else {","delete this[j + 1];","}","changes++;","}","}","if (!changes) break;","}","return this;","}",");","createArrayMethod_(","function toLocaleString() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var out = [];","for (var i = 0; i < len; i++) {","out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();","}","return out.join(',');","}",");","})();","")}function Bo(e,t){var n=function(r){return r=arguments.length?ve.String(r):"",me(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,b),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),b),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)H(e,e.J,t[n],String.prototype[t[n]]);n=function(r,o,i){o=e.R(o),i=e.R(i);try{return String(this).localeCompare(r,o,i)}catch(s){w(e,e.D,"localeCompare: "+s.message)}},H(e,e.J,"localeCompare",n),n=function(r,o,i){var s=String(this);if(o=o?Number(o):void 0,K(e,r,e.I)&&(r=r.data,$e(e,r,i),e.REGEXP_MODE===2)){if(pe)r=_e(e,"string.split(separator, limit)",{string:s,separator:r,limit:o},r,i),r!==Ae&&i(fe(e,r));else{var u=e.ha(),p=He(e,r,u,i);u.onmessage=function(x){clearTimeout(p),i(fe(e,x.data))},u.postMessage(["split",s,r,o])}return}r=s.split(r,o),i(fe(e,r))},Ke(e,e.J,"split",n),n=function(r,o){var i=String(this);if(r=K(e,r,e.I)?r.data:new RegExp(r),$e(e,r,o),e.REGEXP_MODE===2)if(pe)r=_e(e,"string.match(regexp)",{string:i,regexp:r},r,o),r!==Ae&&o(r&&fe(e,r));else{var s=e.ha(),u=He(e,r,s,o);s.onmessage=function(p){clearTimeout(u),o(p.data&&fe(e,p.data))},s.postMessage(["match",i,r])}else r=i.match(r),o(r&&fe(e,r))},Ke(e,e.J,"match",n),n=function(r,o){var i=String(this);if(K(e,r,e.I)?r=r.data:r=new RegExp(r),$e(e,r,o),e.REGEXP_MODE===2)if(pe)r=_e(e,"string.search(regexp)",{string:i,regexp:r},r,o),r!==Ae&&o(r);else{var s=e.ha(),u=He(e,r,s,o);s.onmessage=function(p){clearTimeout(u),o(p.data)},s.postMessage(["search",i,r])}else o(i.search(r))},Ke(e,e.J,"search",n),n=function(r,o,i){var s=String(this);if(o=String(o),K(e,r,e.I)&&(r=r.data,$e(e,r,i),e.REGEXP_MODE===2)){if(pe)r=_e(e,"string.replace(substr, newSubstr)",{string:s,substr:r,newSubstr:o},r,i),r!==Ae&&i(r);else{var u=e.ha(),p=He(e,r,u,i);u.onmessage=function(x){clearTimeout(p),i(x.data)},u.postMessage(["replace",s,r,o])}return}i(s.replace(r,o))},Ke(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 Fo(e,t){e.mb=e.i(function(n){return n=ve.Boolean(n),me(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,b)}function Uo(e,t){var n=function(r){return r=arguments.length?ve.Number(r):0,me(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,b),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],n=0;n<t.length;n++)e.g(e.aa,t[n],Number[t[n]],We);n=function(r){try{return Number(this).toExponential(r)}catch(o){w(e,e.D,o.message)}},H(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){w(e,e.D,o.message)}},H(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){w(e,e.D,o.message)}},H(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){w(e,e.D,o.message)}},H(e,e.aa,"toString",n),n=function(r,o){r=r?e.R(r):void 0,o=o?e.R(o):void 0;try{return Number(this).toLocaleString(r,o)}catch(i){w(e,e.D,"toLocaleString: "+i.message)}},H(e,e.aa,"toLocaleString",n)}function Mo(e,t){var n=function(o,i){if(!me(e))return ve.Date();var s=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(ve.Date,s)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,b),e.g(e.$,"now",e.i(Date.now,!1),b),e.g(e.$,"parse",e.i(Date.parse,!1),b),e.g(e.$,"UTC",e.i(Date.UTC,!1),b),t="getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");for(var r=0;r<t.length;r++)n=function(o){return function(i){var s=this.data;s instanceof Date||w(e,e.j,o+" not called on a Date");for(var u=[],p=0;p<arguments.length;p++)u[p]=e.R(arguments[p]);return s[o].apply(s,u)}}(t[r]),H(e,e.$,t[r],n)}function Vo(e,t){var n=function(r,o){if(me(e))var i=this;else{if(o===void 0&&K(e,r,e.I))return r;i=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||w(e,e.T,"Invalid regexp flag: "+o);try{var s=new ve.RegExp(r,o)}catch(u){w(e,e.T,u.message)}return Qt(e,i,s),i};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,b),e.g(e.I.h.prototype,"global",void 0,q),e.g(e.I.h.prototype,"ignoreCase",void 0,q),e.g(e.I.h.prototype,"multiline",void 0,q),e.g(e.I.h.prototype,"source","(?:)",q),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),n=function(r,o){function i(k){if(k){var m=fe(e,k);return e.g(m,"index",k.index),e.g(m,"input",k.input),m}return null}var s=this.data;if(r=String(r),s.lastIndex=Number(e.G(this,"lastIndex")),$e(e,s,o),e.REGEXP_MODE===2)if(pe)r=_e(e,"regexp.exec(string)",{string:r,regexp:s},s,o),r!==Ae&&(e.g(this,"lastIndex",s.lastIndex),o(i(r)));else{var u=e.ha(),p=He(e,s,u,o),x=this;u.onmessage=function(k){clearTimeout(p),e.g(x,"lastIndex",k.data[1]),o(i(k.data[0]))},u.postMessage(["exec",s,s.lastIndex,r])}else r=s.exec(r),e.g(this,"lastIndex",s.lastIndex),o(i(r))},Ke(e,e.I,"exec",n)}function Do(e,t){function n(r){var o=e.i(function(i){var s=me(e)?this:e.Aa(o);return Kt(e,s,i),s},!0);return e.g(o,"prototype",e.Aa(e.D),b),e.g(o.h.prototype,"name",r,b),e.g(t,r,o,b),o}e.D=e.i(function(r){var o=me(e)?this:e.Aa(e.D);return Kt(e,o,r),o},!0),e.g(t,"Error",e.D,b),e.g(e.D.h.prototype,"message","",b),e.g(e.D.h.prototype,"name","Error",b),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function Lo(e,t){var n=e.s(e.M);e.g(t,"Math",n,b);var r="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<r.length;t++)e.g(n,r[t],Math[r[t]],q);for(r="abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "),t=0;t<r.length;t++)e.g(n,r[t],e.i(Math[r[t]],!1),b)}function Wo(e,t){var n=e.s(e.M);e.g(t,"JSON",n,b),t=function(r){try{var o=JSON.parse(String(r))}catch(i){w(e,e.T,i.message)}return e.Ia(o)},e.g(n,"parse",e.i(t,!1)),t=function(r,o,i){o&&o.H==="Function"?w(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=vr(e,o),o=o.filter(function(u){return typeof u=="string"||typeof u=="number"})):o=null,typeof i!="string"&&typeof i!="number"&&(i=void 0),r=e.R(r);try{var s=JSON.stringify(r,o,i)}catch(u){w(e,e.j,u.message)}return s},e.g(n,"stringify",e.i(t,!1))}function K(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=he(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function Qt(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,b),e.g(t,"source",n.source,q),e.g(t,"global",n.global,q),e.g(t,"ignoreCase",n.ignoreCase,q),e.g(t,"multiline",n.multiline,q)}function Kt(e,t,n){n&&e.g(t,"message",String(n),b),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],i=o.node;i.type==="CallExpression"&&(o=o.U)&&n.length&&(n[n.length-1].Ob=e.G(o,"name")),!i.X||n.length&&i.type!=="CallExpression"||n.push({Nb:i.X})}for(r=String(e.G(t,"name")),i=String(e.G(t,"message")),i=r+": "+i+`
5
+ `,r=0;r<n.length;r++){var s=n[r].Nb;o=n[r].Ob,s=s.source+":"+s.start.line+":"+s.start.ab,i=o?i+(" at "+o+" ("+s+`)
6
+ `):i+(" at "+s+`
7
+ `)}e.g(t,"stack",i.trim(),b)}P.ha=function(){var e=this.ha.Mb;return e||(e=new Blob([Ao.join(`
8
+ `)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function _e(e,t,n,r,o){var i={timeout:e.REGEXP_THREAD_TIMEOUT};try{return pe.runInNewContext(t,n,i)}catch{o(null),w(e,e.D,"RegExp Timeout: "+r)}return Ae}function $e(e,t,n){if(e.REGEXP_MODE===0)var r=!1;else if(e.REGEXP_MODE===1)r=!0;else if(pe)r=!0;else if(typeof Worker=="function"&&typeof URL=="function")r=!0;else if(typeof require=="function"){try{pe=require("vm")}catch{}r=!!pe}else r=!1;r||(n(null),w(e,e.D,"Regular expressions not supported: "+t))}function He(e,t,n,r){return setTimeout(function(){n.terminate(),r(null);try{w(e,e.D,"RegExp Timeout: "+t)}catch{}},e.REGEXP_THREAD_TIMEOUT)}P.Aa=function(e){return this.s(e&&e.h.prototype)};P.s=function(e){if(typeof e!="object")throw Error("Non object prototype");return e=new O(e),K(this,e,this.D)&&(e.H="Error"),e};function Re(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function en(e,t,n){var r=e.s(e.Z);return n?(n=e.s(e.M),e.g(r,"prototype",n,b),e.g(n,"constructor",r,b)):r.Ab=!0,e.g(r,"length",t,q),r.H="Function",r}function tn(e,t,n,r){var o=en(e,t.oa.length,!0);return o.Va=n,o.node=t,e.g(o,"name",t.id?String(t.id.name):r||"",q),o}P.i=function(e,t){return t=en(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,q),t};P.ub=function(e){var t=en(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,q),t};P.Ia=function(e){if(e instanceof O)throw Error("Object is already pseudo");if(e==null||e===!0||e===!1||typeof e=="string"||typeof e=="number")return e;if(e instanceof RegExp){var t=this.s(this.Ma);return Qt(this,t,e),t}if(e instanceof Date)return t=this.s(this.nb),t.data=new Date(e.valueOf()),t;if(typeof e=="function"){var n=this;return t=Object.getOwnPropertyDescriptor(e,"prototype"),this.i(function(){var o=Array.prototype.slice.call(arguments).map(function(i){return n.R(i)});return o=e.apply(n,o),n.Ia(o)},!!t)}if(Array.isArray(e)){t=Re(this);for(var r=0;r<e.length;r++)r in e&&this.g(t,r,this.Ia(e[r]));return t}t=this.s(this.M);for(r in e)this.g(t,r,this.Ia(e[r]));return t};P.R=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof O))throw Error("Object is not pseudo");if(K(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(K(this,e,this.$))return new Date(e.data.valueOf());t=t||{hb:[],Sa:[]};var n=t.hb.indexOf(e);if(n!==-1)return t.Sa[n];if(t.hb.push(e),K(this,e,this.qa)){n=[],t.Sa.push(n);for(var r=this.G(e,"length"),o=0;o<r;o++)gt(this,e,o)&&(n[o]=this.R(this.G(e,o),t))}else for(r in n={},t.Sa.push(n),e.h)o=this.R(e.h[r],t),Object.defineProperty(n,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),n};function fe(e,t){for(var n=Re(e),r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++)e.g(n,r[o],t[r[o]]);return n}function vr(e,t){var n=[],r;for(r in t.h)n[r]=e.G(t,r);return n.length=Zt(e.G(t,"length"))||0,n}function he(e,t){switch(typeof t){case"number":return e.aa.h.prototype;case"boolean":return e.mb.h.prototype;case"string":return e.J.h.prototype}return t?t.xa:null}P.G=function(e,t){if(this.P)throw Error("Getter not supported in that context");if(t=String(t),e!=null||w(this,this.j,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof O))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(K(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&K(this,e,this.J)){var n=Xe(t);if(!isNaN(n)&&n<String(e).length)return String(e)[n]}do if(e.h&&t in e.h)return(n=e.V[t])?(this.P=!0,n):e.h[t];while(e=he(this,e))};function gt(e,t,n){if(!(t instanceof O))throw TypeError("Primitive data type has no properties");if(n=String(n),n==="length"&&K(e,t,e.J))return!0;if(K(e,t,e.J)){var r=Xe(n);if(!isNaN(r)&&r<String(t).length)return!0}do if(t.h&&n in t.h)return!0;while(t=he(e,t));return!1}P.g=function(e,t,n,r){if(this.Ka)throw Error("Setter not supported in that context");if(t=String(t),e!=null||w(this,this.j,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof O))throw TypeError("Expecting native value or pseudo object");r&&("get"in r||"set"in r)&&("value"in r||"writable"in r)&&w(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var o=!this.o||nn(this).S;if(e instanceof O){if(K(this,e,this.J)){var i=Xe(t);if(t==="length"||!isNaN(i)&&i<String(e).length){o&&w(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(i=e.h.length,t==="length"){if(r){if(!("value"in r))return;n=r.value}if(n=Zt(n),isNaN(n)&&w(this,this.ob,"Invalid array length"),n<i)for(s in e.h){var s=Xe(s);!isNaN(s)&&n<=s&&delete e.h[s]}}else isNaN(s=Xe(t))||(e.h.length=Math.max(i,s+1));if(!e.preventExtensions||t in e.h)if(r){o={},"get"in r&&r.get&&(e.V[t]=r.get,o.get=this.g.ac),"set"in r&&r.set&&(e.Y[t]=r.set,o.set=this.g.bc),"configurable"in r&&(o.configurable=r.configurable),"enumerable"in r&&(o.enumerable=r.enumerable),"writable"in r&&(o.writable=r.writable,delete e.V[t],delete e.Y[t]),"value"in r?(o.value=r.value,delete e.V[t],delete e.Y[t]):n!==Ye&&(o.value=n,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,o)}catch{w(this,this.j,"Cannot redefine property: "+t)}"get"in r&&!r.get&&delete e.V[t],"set"in r&&!r.set&&delete e.Y[t]}else{if(n===Ye)throw ReferenceError("Value not specified");for(r=e;!(t in r.h);)if(r=he(this,r),!r){r=e;break}if(r.Y&&r.Y[t])return this.Ka=!0,r.Y[t];if(r.V&&r.V[t])o&&w(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=n}catch{o&&w(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else o&&w(this,this.j,"Can't add property '"+t+"', object is not extensible")}else o&&w(this,this.j,"Can't create property '"+t+"' on '"+e+"'")};P.g.ac=function(){throw Error("Placeholder getter")};P.g.bc=function(){throw Error("Placeholder setter")};function H(e,t,n,r){e.g(t.h.prototype,n,e.i(r,!1),b)}function Ke(e,t,n,r){e.g(t.h.prototype,n,e.ub(r),b)}function nn(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function Gt(e,t,n){var r=!1;if(n&&n.S)r=!0;else{var o=t.body&&t.body[0];o&&o.la&&o.la.type==="Literal"&&o.la.value==="use strict"&&(r=!0)}return o=e.s(null),r=new Sr(n,r,o),n||Oo(e,r.object),Je(e,t,r),r}function rn(e,t,n){if(!t)throw Error("parentScope required");return e=n||e.s(null),new Sr(t,t.S,e)}function on(e,t){for(var n=nn(e);n&&n!==e.N;){if(t in n.object.h)return n.object.h[t];n=n.Va}if(n===e.N&&gt(e,n.object,t))return e.G(n.object,t);n=e.o[e.o.length-1].node,n.type==="UnaryExpression"&&n.operator==="typeof"||w(e,e.pb,t+" is not defined")}function br(e,t,n){for(var r=nn(e),o=r.S;r&&r!==e.N;){if(t in r.object.h){try{r.object.h[t]=n}catch{o&&w(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}r=r.Va}if(r===e.N&&(!o||gt(e,r.object,t)))return e.g(r.object,t,n);w(e,e.pb,t+" is not defined")}function Je(e,t,n){if(t.jb)var r=t.jb;else{switch(r=Object.create(null),t.type){case"VariableDeclaration":for(var o=0;o<t.fa.length;o++)r[t.fa[o].id.name]=!0;break;case"FunctionDeclaration":r[t.id.name]=t;break;case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"Program":case"SwitchCase":case"SwitchStatement":case"TryStatement":case"WithStatement":case"WhileStatement":var i=t.constructor,s;for(s in t)if(s!=="loc"){var u=t[s];if(u&&typeof u=="object"){if(Array.isArray(u)){for(o=0;o<u.length;o++)if(u[o]&&u[o].constructor===i){var p=Je(e,u[o],n);for(s in p)r[s]=p[s]}}else if(u.constructor===i)for(s in p=Je(e,u,n),p)r[s]=p[s]}}}t.jb=r}for(s in r)r[s]===!0?e.g(n.object,s,void 0,Xn):e.g(n.object,s,tn(e,r[s],n),Xn);return r}function me(e){return e.o[e.o.length-1].isConstructor}function an(e,t){return t[0]===Pe?on(e,t[1]):e.G(t[0],t[1])}function sn(e,t,n){return t[0]===Pe?br(e,t[1],n):e.g(t[0],t[1],n)}function w(e,t,n){throw e.N?(n!==void 0&&t instanceof O&&(t=e.Aa(t),Kt(e,t,n)),ze(e,4,t),yr):n===void 0?t:n}function ze(e,t,n,r){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var o=e.o;e:for(;0<o.length;o.pop()){var i=o[o.length-1];switch(i.node.type){case"TryStatement":i.ea={type:t,value:n,label:r};return;case"CallExpression":case"NewExpression":if(t===3){i.value=n;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":i.done=!0;break e}if(t===1){if(r?i.labels&&i.labels.indexOf(r)!==-1:i.W||i.Zb){o.pop();return}}else if(t===2&&(r?i.labels&&i.labels.indexOf(r)!==-1:i.W))return}throw K(e,n,e.D)?(t={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},r=String(e.G(n,"name")),o=e.G(n,"message").valueOf(),t=(t[r]||Error)(o),t.stack=String(e.G(n,"stack"))):t=String(n),e.value=t,t}function z(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return z(e,t.left)+" "+t.operator+" "+z(e,t.right);case"CallExpression":return z(e,t.callee)+"(...)";case"ConditionalExpression":return z(e,t.test)+" ? "+z(e,t.da)+" : "+z(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var n=z(e,t.object);return e=z(e,t.Wa),t.bb?n+"["+e+"]":n+"."+e;case"NewExpression":return"new "+z(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+z(e,t.K);case"UpdateExpression":return n=z(e,t.K),t.prefix?t.operator+n:n+t.operator}return"???"}function Jn(e,t,n){var r=e.o[e.o.length-1],o=Array.from(n),i=o.shift();n=Math.max(Number(o.shift()||0),0);var s=e.ya();if(i instanceof O&&i.H==="Function"){var u=i;s.type="CallExpression",r=r.scope}else{try{var p=Oe(String(i),"taskCode"+e.ic++)}catch(x){w(e,e.T,"Invalid code: "+x.message)}s.type="EvalProgram_",s.body=p.body,r=r.node.arguments[0],mt(s,r?r.start:void 0,r?r.end:void 0),r=e.N,o.length=0}return t=new _o(u,o,r,s,t?n:-1),xr(e,t,n),t.Db}function xr(e,t,n){t.time=Date.now()+n,e.ca.push(t),e.ca.sort(function(r,o){return r.time-o.time})}function zn(e,t){for(var n=0;n<e.ca.length;n++)if(e.ca[n].Db==t){e.ca.splice(n,1);break}}function qe(e,t,n){if(!e.P)throw Error("Unexpected call to createGetter");e.P=!1,n=Array.isArray(n)?n[0]:n;var r=e.ya();return r.type="CallExpression",e=new S(r,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[],e}function ln(e,t,n,r){if(!e.Ka)throw Error("Unexpected call to createSetter");e.Ka=!1,n=Array.isArray(n)?n[0]:e.Na;var o=e.ya();return o.type="CallExpression",e=new S(o,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[r],e}function $t(e,t){return t==null?e.Na:t instanceof O?t:(e=e.s(he(e,t)),e.data=t,e)}P.Xb=function(){return this.N};P.Yb=function(){return this.o};P.ec=function(e){this.o=e};function S(e,t){this.node=e,this.scope=t}function Sr(e,t,n){this.Va=e,this.S=t,this.object=n}function O(e){this.V=Object.create(null),this.Y=Object.create(null),this.h=Object.create(null),this.xa=e}P=O.prototype;P.xa=null;P.H="Object";P.data=null;P.toString=function(){if(!Ge)return"[object Interpreter.Object]";if(!(this instanceof O))return String(this);if(this.H==="Array"){var e=Yn;e.push(this);try{var t=[],n=this.h.length,r=!1;1024<n&&(n=1e3,r=!0);for(var o=0;o<n;o++){var i=this.h[o];t[o]=i instanceof O&&e.indexOf(i)!==-1?"...":i}r&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=Yn,e.indexOf(this)!==-1)return"[object Error]";n=this;do if("name"in n.h){t=n.h.name;break}while(n=n.xa);n=this;do if("message"in n.h){r=n.h.message;break}while(n=n.xa);e.push(this);try{t=t&&String(t),r=r&&String(r)}finally{e.pop()}return r?t+": "+r:String(t)}return this.data!==null?String(this.data):"[object "+this.H+"]"};P.valueOf=function(){return!Ge||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function _o(e,t,n,r,o){this.zb=e,this.Lb=t,this.scope=n,this.node=r,this.interval=o,this.Db=++$o,this.time=0}var $o=0;h.prototype.stepArrayExpression=function(e,t,n){n=n.elements;var r=t.A||0;for(t.Oa?(this.g(t.Oa,r,t.value),r++):(t.Oa=Re(this),t.Oa.h.length=n.length);r<n.length;){if(n[r])return t.A=r,new S(n[r],t.scope);r++}e.pop(),e[e.length-1].value=t.Oa};h.prototype.stepAssignmentExpression=function(e,t,n){if(!t.ja)return t.ja=!0,t=new S(n.left,t.scope),t.sa=!0,t;if(!t.Da)return t.Fa||(t.Fa=t.value),t.Ba&&(t.ma=t.value),!t.Ba&&n.operator!=="="&&(e=an(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,qe(this,e,t.Fa)):(t.Da=!0,n.operator==="="&&n.left.type==="Identifier"&&(t.Pa=n.left.name),new S(n.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var r=t.ma,o=t.value;switch(n.operator){case"=":r=o;break;case"+=":r+=o;break;case"-=":r-=o;break;case"*=":r*=o;break;case"/=":r/=o;break;case"%=":r%=o;break;case"<<=":r<<=o;break;case">>=":r>>=o;break;case">>>=":r>>>=o;break;case"&=":r&=o;break;case"^=":r^=o;break;case"|=":r|=o;break;default:throw SyntaxError("Unknown assignment expression: "+n.operator)}if(n=sn(this,t.Fa,r))return t.ta=!0,t.ib=r,ln(this,n,t.Fa,r);e.pop(),e[e.length-1].value=r}};h.prototype.stepBinaryExpression=function(e,t,n){if(!t.ja)return t.ja=!0,new S(n.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new S(n.right,t.scope);e.pop();var r=t.ma;switch(t=t.value,n.operator){case"==":n=r==t;break;case"!=":n=r!=t;break;case"===":n=r===t;break;case"!==":n=r!==t;break;case">":n=r>t;break;case">=":n=r>=t;break;case"<":n=r<t;break;case"<=":n=r<=t;break;case"+":n=r+t;break;case"-":n=r-t;break;case"*":n=r*t;break;case"/":n=r/t;break;case"%":n=r%t;break;case"&":n=r&t;break;case"|":n=r|t;break;case"^":n=r^t;break;case"<<":n=r<<t;break;case">>":n=r>>t;break;case">>>":n=r>>>t;break;case"in":t instanceof O||w(this,this.j,"'in' expects an object, not '"+t+"'"),n=gt(this,t,r);break;case"instanceof":K(this,t,this.O)||w(this,this.j,"'instanceof' expects an object, not '"+t+"'"),n=r instanceof O?K(this,r,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+n.operator)}e[e.length-1].value=n};h.prototype.stepBlockStatement=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new S(n,t.scope);e.pop()};h.prototype.stepBreakStatement=function(e,t,n){ze(this,1,void 0,n.label&&n.label.name)};h.prototype.Hb=0;h.prototype.stepCallExpression=function(e,t,n){if(!t.ia){t.ia=1;var r=new S(n.callee,t.scope);return r.sa=!0,r}if(t.ia===1){t.ia=2;var o=t.value;if(Array.isArray(o)){if(t.U=an(this,o),o[0]===Pe?t.Pb=o[1]==="eval":t.B=o[0],o=t.U,this.P)return t.ia=1,qe(this,o,t.value)}else t.U=o;t.F=[],t.A=0}if(o=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),n.arguments[t.A])return new S(n.arguments[t.A++],t.scope);if(n.type==="NewExpression"){if(o instanceof O&&!o.Ab||w(this,this.j,z(this,n.callee)+" is not a constructor"),o===this.qa)t.B=Re(this);else{var i=o.h.prototype;(typeof i!="object"||i===null)&&(i=this.M),t.B=this.s(i)}t.isConstructor=!0}t.Qa=!0}if(t.eb)e.pop(),e[e.length-1].value=t.isConstructor&&typeof t.value!="object"?t.B:t.value;else{if(t.eb=!0,o instanceof O||w(this,this.j,z(this,n.callee)+" is not a function"),e=o.node){for(n=Gt(this,e.body,o.Va),r=Re(this),o=0;o<t.F.length;o++)this.g(r,o,t.F[o]);for(this.g(n.object,"arguments",r),o=0;o<e.oa.length;o++)this.g(n.object,e.oa[o].name,t.F.length>o?t.F[o]:void 0);return n.S||(t.B=$t(this,t.B)),this.g(n.object,"this",t.B,qt),t.value=void 0,new S(e.body,n)}if(o.eval)if(o=t.F[0],typeof o!="string")t.value=o;else{try{r=Oe(String(o),"eval"+this.Hb++)}catch(u){w(this,this.T,"Invalid code: "+u.message)}return o=this.ya(),o.type="EvalProgram_",o.body=r.body,mt(o,n.start,n.end),n=t.Pb?t.scope:this.N,n.S?n=Gt(this,r,n):Je(this,r,n),this.value=void 0,new S(o,n)}else if(o.Ta)t.scope.S||(t.B=$t(this,t.B)),t.value=o.Ta.apply(t.B,t.F);else if(o.Za){var s=this;r=o.Za.length-1,r=t.F.concat(Array(r)).slice(0,r),r.push(function(u){t.value=u,s.za=!1}),this.za=!0,t.scope.S||(t.B=$t(this,t.B)),o.Za.apply(t.B,r)}else w(this,this.j,z(this,n.callee)+" is not callable")}};h.prototype.stepConditionalExpression=function(e,t,n){var r=t.na||0;if(r===0)return t.na=1,new S(n.test,t.scope);if(r===1){if(t.na=2,(r=!!t.value)&&n.da)return new S(n.da,t.scope);if(!r&&n.alternate)return new S(n.alternate,t.scope);this.value=void 0}e.pop(),n.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};h.prototype.stepContinueStatement=function(e,t,n){ze(this,2,void 0,n.label&&n.label.name)};h.prototype.stepDebuggerStatement=function(e){e.pop()};h.prototype.stepDoWhileStatement=function(e,t,n){if(n.type==="DoWhileStatement"&&t.ga===void 0&&(t.value=!0,t.ga=!0),!t.ga)return t.ga=!0,new S(n.test,t.scope);if(!t.value)e.pop();else if(n.body)return t.ga=!1,t.W=!0,new S(n.body,t.scope)};h.prototype.stepEmptyStatement=function(e){e.pop()};h.prototype.stepEvalProgram_=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new S(n,t.scope);e.pop(),e[e.length-1].value=this.value};h.prototype.stepExpressionStatement=function(e,t,n){if(!t.ka)return this.value=void 0,t.ka=!0,new S(n.la,t.scope);e.pop(),this.value=t.value};h.prototype.stepForInStatement=function(e,t,n){if(!t.Ub&&(t.Ub=!0,n.left.fa&&n.left.fa[0].ua))return t.scope.S&&w(this,this.T,"for-in loop variable declaration may not have an initializer"),new S(n.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new S(n.right,t.scope);if(t.W||(t.W=!0,t.u=t.value,t.kb=Object.create(null)),t.Ra===void 0)e:for(;;){if(t.u instanceof O)for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u.h));;){var r=t.wa.shift();if(r===void 0)break;if(Object.prototype.hasOwnProperty.call(t.u.h,r)&&!t.kb[r]&&(t.kb[r]=!0,Object.prototype.propertyIsEnumerable.call(t.u.h,r))){t.Ra=r;break e}}else if(t.u!==null&&t.u!==void 0){for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u));r=t.wa.shift(),r!==void 0;)if(t.kb[r]=!0,Object.prototype.propertyIsEnumerable.call(t.u,r)){t.Ra=r;break e}}if(t.u=he(this,t.u),t.wa=null,t.u===null){e.pop();return}}if(!t.wb)if(t.wb=!0,e=n.left,e.type==="VariableDeclaration")t.pa=[Pe,e.fa[0].id.name];else return t.pa=null,t=new S(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,r=sn(this,t.pa,e)))return ln(this,r,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,n.body)return new S(n.body,t.scope)};h.prototype.stepForStatement=function(e,t,n){switch(t.na){default:if(t.na=1,n.ua)return new S(n.ua,t.scope);break;case 1:if(t.na=2,n.test)return new S(n.test,t.scope);break;case 2:if(t.na=3,n.test&&!t.value)e.pop();else return t.W=!0,new S(n.body,t.scope);break;case 3:if(t.na=1,n.update)return new S(n.update,t.scope)}};h.prototype.stepFunctionDeclaration=function(e){e.pop()};h.prototype.stepFunctionExpression=function(e,t,n){e.pop(),t=e[e.length-1],e=t.scope,n.id&&(e=rn(this,e)),t.value=tn(this,n,e,t.Pa),n.id&&this.g(e.object,n.id.name,t.value,qt)};h.prototype.stepIdentifier=function(e,t,n){if(e.pop(),t.sa)e[e.length-1].value=[Pe,n.name];else{if(t=on(this,n.name),this.P)return qe(this,t,this.Na);e[e.length-1].value=t}};h.prototype.stepIfStatement=h.prototype.stepConditionalExpression;h.prototype.stepLabeledStatement=function(e,t,n){return e.pop(),e=t.labels||[],e.push(n.label.name),t=new S(n.body,t.scope),t.labels=e,t};h.prototype.stepLiteral=function(e,t,n){e.pop(),t=n.value,t instanceof RegExp&&(n=this.s(this.Ma),Qt(this,n,t),t=n),e[e.length-1].value=t};h.prototype.stepLogicalExpression=function(e,t,n){if(n.operator!=="&&"&&n.operator!=="||")throw SyntaxError("Unknown logical operator: "+n.operator);if(!t.ja)return t.ja=!0,new S(n.left,t.scope);if(t.Da)e.pop(),e[e.length-1].value=t.value;else if(n.operator==="&&"&&!t.value||n.operator==="||"&&t.value)e.pop(),e[e.length-1].value=t.value;else return t.Da=!0,new S(n.right,t.scope)};h.prototype.stepMemberExpression=function(e,t,n){if(!t.Ca)return t.Ca=!0,new S(n.object,t.scope);if(n.bb)if(t.Vb)n=t.value;else return t.u=t.value,t.Vb=!0,new S(n.Wa,t.scope);else t.u=t.value,n=n.Wa.name;if(e.pop(),t.sa)e[e.length-1].value=[t.u,n];else{if(n=this.G(t.u,n),this.P)return qe(this,n,t.u);e[e.length-1].value=n}};h.prototype.stepNewExpression=h.prototype.stepCallExpression;h.prototype.stepObjectExpression=function(e,t,n){var r=t.A||0,o=n.h[r];if(t.u){var i=t.Pa;t.Ja[i]||(t.Ja[i]={}),t.Ja[i][o.kind]=t.value,t.A=++r,o=n.h[r]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(o){var s=o.key;if(s.type==="Identifier")i=s.name;else if(s.type==="Literal")i=s.value;else throw SyntaxError("Unknown object structure: "+s.type);return t.Pa=i,new S(o.value,t.scope)}for(s in t.Ja)n=t.Ja[s],"get"in n||"set"in n?this.g(t.u,s,Ye,{configurable:!0,enumerable:!0,get:n.get,set:n.set}):this.g(t.u,s,n.init);e.pop(),e[e.length-1].value=t.u};h.prototype.stepProgram=function(e,t,n){if(e=n.body.shift())return t.done=!1,new S(e,t.scope);t.done=!0};h.prototype.stepReturnStatement=function(e,t,n){if(n.K&&!t.ka)return t.ka=!0,new S(n.K,t.scope);ze(this,3,t.value)};h.prototype.stepSequenceExpression=function(e,t,n){var r=t.A||0;if(n=n.xb[r])return t.A=r+1,new S(n,t.scope);e.pop(),e[e.length-1].value=t.value};h.prototype.stepSwitchStatement=function(e,t,n){if(!t.ga)return t.ga=1,new S(n.Qb,t.scope);for(t.ga===1&&(t.ga=2,t.hc=t.value,t.cb=-1);;){var r=t.gb||0,o=n.tb[r];if(t.Ha||!o||o.test)if(o||t.Ha||t.cb===-1)if(o){if(!t.Ha&&!t.Fb&&o.test)return t.Fb=!0,new S(o.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var i=t.A||0;if(o.da[i])return t.Zb=!0,t.A=i+1,new S(o.da[i],t.scope)}t.Fb=!1,t.A=0,t.gb=r+1}else{e.pop();break}else t.Ha=!0,t.gb=t.cb;else t.cb=r,t.gb=r+1}};h.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=on(this,"this")};h.prototype.stepThrowStatement=function(e,t,n){if(t.ka)w(this,t.value);else return t.ka=!0,new S(n.K,t.scope)};h.prototype.stepTryStatement=function(e,t,n){if(!t.Rb)return t.Rb=!0,new S(n.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&n.Ea)return t.Tb=!0,e=rn(this,t.scope),this.g(e.object,n.Ea.Ua.name,t.ea.value),t.ea=void 0,new S(n.Ea.body,e);if(!t.Sb&&n.fb)return t.Sb=!0,new S(n.fb,t.scope);e.pop(),t.ea&&ze(this,t.ea.type,t.ea.value,t.ea.label)};h.prototype.stepUnaryExpression=function(e,t,n){if(!t.ka)return t.ka=!0,e=new S(n.K,t.scope),e.sa=n.operator==="delete",e;e.pop();var r=t.value;switch(n.operator){case"-":r=-r;break;case"+":r=+r;break;case"!":r=!r;break;case"~":r=~r;break;case"delete":if(n=!0,Array.isArray(r)){var o=r[0];o===Pe&&(o=t.scope),r=String(r[1]);try{delete o.h[r]}catch{t.scope.S?w(this,this.j,"Cannot delete property '"+r+"' of '"+o+"'"):n=!1}}r=n;break;case"typeof":r=r&&r.H==="Function"?"function":typeof r;break;case"void":r=void 0;break;default:throw SyntaxError("Unknown unary operator: "+n.operator)}e[e.length-1].value=r};h.prototype.stepUpdateExpression=function(e,t,n){if(!t.ja)return t.ja=!0,e=new S(n.K,t.scope),e.sa=!0,e;if(t.Ga||(t.Ga=t.value),t.Ba&&(t.ma=t.value),!t.Ba){var r=an(this,t.Ga);if(t.ma=r,this.P)return t.Ba=!0,qe(this,r,t.Ga)}if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{if(r=Number(t.ma),n.operator==="++")var o=r+1;else if(n.operator==="--")o=r-1;else throw SyntaxError("Unknown update expression: "+n.operator);if(n=n.prefix?o:r,r=sn(this,t.Ga,o))return t.ta=!0,t.ib=n,ln(this,r,t.Ga,o);e.pop(),e[e.length-1].value=n}};h.prototype.stepVariableDeclaration=function(e,t,n){n=n.fa;var r=t.A||0,o=n[r];for(t.Bb&&o&&(br(this,o.id.name,t.value),t.Bb=!1,o=n[++r]);o;){if(o.ua)return t.A=r,t.Bb=!0,t.Pa=o.id.name,new S(o.ua,t.scope);o=n[++r]}e.pop()};h.prototype.stepWithStatement=function(e,t,n){return t.Ca?(e.pop(),e=rn(this,t.scope,t.value),new S(n.body,e)):(t.Ca=!0,new S(n.object,t.scope))};h.prototype.stepWhileStatement=h.prototype.stepDoWhileStatement;ve.Interpreter=h;h.prototype.step=h.prototype.lb;h.prototype.run=h.prototype.Eb;h.prototype.appendCode=h.prototype.Jb;h.prototype.createObject=h.prototype.Aa;h.prototype.createObjectProto=h.prototype.s;h.prototype.createAsyncFunction=h.prototype.ub;h.prototype.createNativeFunction=h.prototype.i;h.prototype.getProperty=h.prototype.G;h.prototype.setProperty=h.prototype.g;h.prototype.nativeToPseudo=h.prototype.Ia;h.prototype.pseudoToNative=h.prototype.R;h.prototype.getGlobalScope=h.prototype.Xb;h.prototype.getStateStack=h.prototype.Yb;h.prototype.setStateStack=h.prototype.ec;h.VALUE_IN_DESCRIPTOR=Ye;const Ho=e=>e.split(`
9
+ `).map(t=>{const n=t.trim();if(t.includes("__awaiter"))return;if(!n.startsWith("state."))return t;const[o,i]=n.split("="),u=`setRootState('${o.replace("state.","").trim()}', ${i.trim()})`;return`
10
+ ${t}
11
+ ${u}
12
+ `}).filter(Boolean).join(`
13
+ `),qn=e=>e+"JSON",Ko=({builder:e,context:t,event:n,rootState:r,localState:o,rootSetState:i,code:s})=>{const u={...r,...o},p=hr({builder:e,context:t,event:n,state:u}),x=p.map(([W])=>{const C=qn(W);return`var ${W} = ${C} === undefined ? undefined : JSON.parse(${C});`}).join(`
14
+ `),k=Ho(s);if(k===""){Q.warn("Skipping evaluation of empty code block.");return}const m=`
15
+ function theFunction() {
16
+ ${x}
17
+
18
+ ${k}
19
+ }
20
+ theFunction();
21
+ `,A=(W,C)=>{const g=gr(u,W,C);i==null||i(g)},R=function(W,C){p.forEach(([g,F])=>{const U=JSON.stringify(F);W.setProperty(C,qn(g),U)}),W.setProperty(C,"setRootState",W.createNativeFunction(A))},B=new h(m,R);return B.run(),B.pseudoToNative(B.value)},ae=e=>e!=null;function Go(){var e;return typeof process<"u"&&ae((e=process==null?void 0:process.versions)==null?void 0:e.node)}const Xo=()=>{var r;if(!Go())return!1;const e=process.arch==="arm64",t=process.version.startsWith("v20"),n=(r=process.env.NODE_OPTIONS)==null?void 0:r.includes("--no-node-snapshot");return e&&t&&!n?(Q.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "),!0):!1},Yo=e=>G()||Xo()?jo(e):Ko(e),cn=class Te{static getCacheKey(t){return JSON.stringify({...t,event:t.event?Math.random():void 0})}static getCachedValue(t){return Te.cache.get(t)}static setCachedValue(t,n){Te.cache.size>20&&Te.cache.delete(Te.cache.keys().next().value),Te.cache.set(t,{value:n})}};cn.cacheLimit=20;cn.cache=new Map;let ct=cn;function yt({code:e,context:t,localState:n,rootState:r,rootSetState:o,event:i,isExpression:s=!0,enableCache:u}){if(e==="")return;const p={code:Io(e,{isExpression:s}),builder:Eo(),context:t,event:i,rootSetState:o,rootState:r,localState:n};if(u){const x=ct.getCacheKey(p),k=ct.getCachedValue(x);if(k)return k.value}try{const x=Yo(p);if(u){const k=ct.getCacheKey(p);ct.setCachedValue(k,x)}return x}catch(x){Q.error("Failed code evaluation: "+x.message,{code:e});return}}const Ze=e=>JSON.parse(JSON.stringify(e));const Jo=({block:e,context:t,localState:n,rootState:r,rootSetState:o})=>{if(!e.bindings)return e;const i=Ze(e),s={...i,properties:{...i.properties},actions:{...i.actions}};for(const u in e.bindings){const p=e.bindings[u],x=yt({code:p,localState:n,rootState:r,rootSetState:o,context:t,enableCache:!0});gr(s,u,x)}return s};function ft({block:e,context:t,shouldEvaluateBindings:n,localState:r,rootState:o,rootSetState:i}){const s=e;return n?Jo({block:s,localState:r,rootState:o,rootSetState:i,context:t}):s}const un=e=>e?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():"",wr=e=>Object.entries(e).map(([n,r])=>{if(typeof r=="string")return`${un(n)}: ${r};`}).filter(ae),zo=e=>wr(e).join(`
22
+ `),ut=({mediaQuery:e,className:t,styles:n})=>{const r=`.${t} {
23
+ ${zo(n)}
24
+ }`;return e?`${e} {
25
+ ${r}
26
+ }`:r};function qo({style:e}){return e}const Zo=({block:e,context:t})=>kr(qo({style:e.style||{},context:t,block:e}));function kr(e){switch(Z){case"svelte":case"vue":case"solid":case"angular":return wr(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const Qo=({block:e,context:t,registeredComponents:n})=>{var i;const r=(i=ft({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:i.name;if(!r)return null;const o=n[r];if(o)return o;console.warn(`
27
+ Could not find a registered component named "${r}".
28
+ If you registered it, is the file that registered it imported by the file that needs to render it?`)},ei=({block:e,context:t})=>{const{repeat:n,...r}=e;if(!(n!=null&&n.collection))return;const o=yt({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,enableCache:!0});if(!Array.isArray(o))return;const i=n.collection.split(".").pop(),s=n.itemName||(i?i+"Item":"item");return o.map((p,x)=>({context:{...t,localState:{...t.localState,$index:x,$item:p,[s]:p,[`$${s}Index`]:x}},block:r}))},ti=(e,t)=>e&&(e.isRSC&&Z==="rsc"||["Core:Button","Symbol","Columns","Form:Form","Builder: Tabs","Builder:Accordion"].includes(e.name))?{builderLinkComponent:t}:{},ni=(e,t)=>e&&(e.isRSC&&Z==="rsc"||["Symbol","Columns","Form:Form","Builder: Tabs","Builder:Accordion"].includes(e.name))?{builderComponents:t}:{},ri=(e,t)=>e&&(e.isRSC&&Z==="rsc"||Z==="reactNative"||["Builder:Accordion","Columns","Form:Form","Builder: Tabs","Symbol","Image","Video"].includes(e.name))?{builderBlock:t}:{},oi=(e,t)=>e&&(e.isRSC&&Z==="rsc"||["Builder:Accordion","Columns","Form:Form","Builder: Tabs","Symbol","Slot"].includes(e.name))?{builderContext:t}:{},Cr={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Zn=(e,t=Cr)=>`@media (max-width: ${t[e].max}px)`,Er=({small:e,medium:t})=>{const n=Ze(Cr);if(!e||!t)return n;const r=Math.floor(e/2);n.small={max:e,min:r,default:r+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const i=n.medium.max+1;return n.large={max:2e3,min:i,default:i+1},n};function vt(e){return y.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},"data-id":e.id})}function ii(e){const t=function(){const o=ft({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0});return ae(o.hide)?!o.hide:ae(o.show)?o.show:!0},n=function(){var C,g,F;const o=ft({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0}),i=o.responsiveStyles,s=e.context.content,u=Er(((C=s==null?void 0:s.meta)==null?void 0:C.breakpoints)||{}),p=i==null?void 0:i.large,x=i==null?void 0:i.medium,k=i==null?void 0:i.small,m=o.id;if(!m)return"";const A=p?ut({className:m,styles:p}):"",R=x?ut({className:m,styles:x,mediaQuery:Zn("medium",u)}):"",B=k?ut({className:m,styles:k,mediaQuery:Zn("small",u)}):"",N=o.animations&&o.animations.find(U=>U.trigger==="hover");let W="";if(N){const U=((F=(g=N.steps)==null?void 0:g[1])==null?void 0:F.styles)||{};W=ut({className:`${m}:hover`,styles:{...U,transition:`all ${N.duration}s ${un(N.easing)}`,transitionDelay:N.delay?`${N.delay}s`:"0s"}})||""}return[A,R,B,W].join(" ")};return y.jsx(y.Fragment,{children:n()&&t()?y.jsx(y.Fragment,{children:y.jsx(vt,{id:"builderio-block",styles:n()})}):null})}function ai(e){return e.charAt(0).toUpperCase()+e.slice(1)}const si=e=>`on${ai(e)}`,li=(e,t)=>n=>yt({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:n,isExpression:!1,enableCache:!0});function ci(e){const t={},n=e.block.actions??{};for(const r in n){if(!n.hasOwnProperty(r))continue;const o=n[r];let i=si(r);if(e.stripPrefix)switch(Z){case"vue":i=i.replace("v-on:","");break;case"svelte":i=i.replace("on:","");break}t[i]=li(o,e)}return t}function ui({properties:e}){return e}const di=e=>({href:e.href});function Ir({block:e,context:t}){var r;const n={...di(e),...e.properties,"builder-id":e.id,style:Zo({block:e,context:t}),[ht()]:[e.id,"builder-block",e.class,(r=e.properties)==null?void 0:r.class].filter(Boolean).join(" ")};return ui({properties:n,context:t,block:e})}const fi=({componentOptions:e,builderBlock:t,context:n,componentRef:r,includeBlockProps:o,isInteractive:i,contextValue:s})=>{const u={...e,...o?{attributes:Ir({block:t,context:s})}:{}};return i?{Wrapper:r,block:t,context:n,wrapperProps:e,includeBlockProps:o}:u};function Qn(e){var n;const t=e.isInteractive?te.InteractiveElement:e.componentRef;return y.jsx(y.Fragment,{children:e.componentRef?y.jsx(y.Fragment,{children:y.jsx(t,{...fi({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:(n=e.blockChildren)==null?void 0:n.map(r=>y.jsx(bt,{block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},r.id))})}):null})}function pi(e){const t=e.repeatContext;return y.jsx(bt,{block:e.block,context:t,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent})}function bt(e){var p,x,k;const t=function(){return Qo({block:e.block,context:e.context,registeredComponents:e.registeredComponents})},n=function(){return ei({block:e.block,context:e.context})},r=function(){var A;return(A=e.block.repeat)!=null&&A.collection?e.block:ft({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0})},o=function(){var R;return e.block.tagName==="a"||((R=r().properties)==null?void 0:R.href)||r().href?e.linkComponent||"a":e.block.tagName||"div"},i=function(){var B,N;if((B=e.block.repeat)!=null&&B.collection)return!!((N=n())!=null&&N.length);const A="hide"in r()?r().hide:!1;return("show"in r()?r().show:!0)&&!A},s=function(){var R;return!((R=t())!=null&&R.component)&&!n()?r().children??[]:[]},u=function(){var A,R,B;return{blockChildren:r().children??[],componentRef:(A=t())==null?void 0:A.component,componentOptions:{...xo(r()),...ri(t(),r()),...oi(t(),e.context),...ti(t(),e.linkComponent),...ni(t(),e.registeredComponents)},context:e.context,linkComponent:e.linkComponent,registeredComponents:e.registeredComponents,builderBlock:r(),includeBlockProps:((R=t())==null?void 0:R.noWrap)===!0,isInteractive:!((B=t())!=null&&B.isRSC)}};return y.jsx(y.Fragment,{children:i()?y.jsxs(y.Fragment,{children:[y.jsx(ii,{block:e.block,context:e.context}),(p=t())!=null&&p.noWrap?y.jsx(y.Fragment,{children:y.jsx(Qn,{componentRef:u().componentRef,componentOptions:u().componentOptions,blockChildren:u().blockChildren,context:u().context,registeredComponents:u().registeredComponents,linkComponent:u().linkComponent,builderBlock:u().builderBlock,includeBlockProps:u().includeBlockProps,isInteractive:u().isInteractive})}):y.jsx(y.Fragment,{children:n()?y.jsx(y.Fragment,{children:(k=n())==null?void 0:k.map((m,A)=>y.jsx(pi,{repeatContext:m.context,block:m.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},A))}):y.jsxs(te.BlockWrapper,{Wrapper:o(),block:r(),context:e.context,children:[y.jsx(Qn,{componentRef:u().componentRef,componentOptions:u().componentOptions,blockChildren:u().blockChildren,context:u().context,registeredComponents:u().registeredComponents,linkComponent:u().linkComponent,builderBlock:u().builderBlock,includeBlockProps:u().includeBlockProps,isInteractive:u().isInteractive}),(x=s())==null?void 0:x.map(m=>y.jsx(bt,{block:m,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},m.id))]})})]}):null})}function xt(e){var t,n,r;return y.jsx(te.BlocksWrapper,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:(t=e.context)==null?void 0:t.BlocksWrapper,BlocksWrapperProps:(n=e.context)==null?void 0:n.BlocksWrapperProps,children:e.blocks?y.jsx(y.Fragment,{children:(r=e.blocks)==null?void 0:r.map(o=>y.jsx(bt,{block:o,linkComponent:e.linkComponent,context:e.context,registeredComponents:e.registeredComponents},o.id))}):null})}const hi=e=>`builder-columns ${e}-breakpoints`;function jr(e){var N,W;const t=typeof e.space=="number"?e.space||0:20,n=e.columns||[],r=e.stackColumnsAt||"tablet",o=function(g){return g.link?e.builderLinkComponent||"a":"div"},i=function(g){var F;return((F=n[g])==null?void 0:F.width)||100/n.length},s=function(g){const F=t*(n.length-1)/n.length;return`calc(${i(g)}% - ${F}px)`},u=function({stackedStyle:g,desktopStyle:F}){return r==="tablet"?g:F},p=function({stackedStyle:g,desktopStyle:F}){return r==="never"?F:g},x=e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column",k=function(){return{"--flex-dir":x,"--flex-dir-tablet":u({stackedStyle:x,desktopStyle:"row"})}},m=function(g){const F=g===0?0:t,U=s(g),Y=`${F}px`,V="100%",re=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:U,["marginLeft"]:Y,"--column-width-mobile":p({stackedStyle:V,desktopStyle:U}),"--column-margin-left-mobile":p({stackedStyle:re,desktopStyle:Y}),"--column-width-tablet":u({stackedStyle:V,desktopStyle:U}),"--column-margin-left-tablet":u({stackedStyle:re,desktopStyle:Y})}},A=function(g){var U,Y;return Er(((Y=(U=e.builderContext.content)==null?void 0:U.meta)==null?void 0:Y.breakpoints)||{})[g].max},R=function(){return`
29
+ @media (max-width: ${A("medium")}px) {
30
+ .${e.builderBlock.id}-breakpoints {
31
+ flex-direction: var(--flex-dir-tablet);
32
+ align-items: stretch;
33
+ }
34
+
35
+ .${e.builderBlock.id}-breakpoints > .builder-column {
36
+ width: var(--column-width-tablet) !important;
37
+ margin-left: var(--column-margin-left-tablet) !important;
38
+ }
39
+ }
40
+
41
+ @media (max-width: ${A("small")}px) {
42
+ .${e.builderBlock.id}-breakpoints {
43
+ flex-direction: var(--flex-dir);
44
+ align-items: stretch;
45
+ }
46
+
47
+ .${e.builderBlock.id}-breakpoints > .builder-column {
48
+ width: var(--column-width-mobile) !important;
49
+ margin-left: var(--column-margin-left-mobile) !important;
50
+ }
51
+ },
52
+ `},B=function(g,F){return{...g.link?{href:g.link}:{},[ht()]:"builder-column",style:kr(m(F))}};return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:hi((N=e.builderBlock)==null?void 0:N.id)+" div-eeca3604",style:k(),children:[y.jsx(vt,{id:"builderio-columns",styles:R()}),(W=e.columns)==null?void 0:W.map((C,g)=>y.jsx(te.DynamicRenderer,{TagName:o(C),actionAttributes:{},attributes:B(C,g),children:y.jsx(xt,{path:`component.options.columns.${g}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:C.blocks})},g))]}),y.jsx("style",{children:`.div-eeca3604 {
53
+ display: flex;
54
+ line-height: normal;
55
+ }`})]})}function er(e){return e.replace(/http(s)?:/,"")}function mi(e="",t,n){const r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=e.indexOf("?")!==-1?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+o+t+"="+encodeURIComponent(n)}function gi(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return er(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const r=e.split(n[0]),o=n[3],i=t.match("x")?t:`${t}x`;return er(`${r[0]}_${i}${o}`)}return null}function yi(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const r=Number(e.split("?width=")[1]);return isNaN(r)||(n=`${n} ${r}w`),t.filter(o=>o!==r).map(o=>`${mi(e,"width",o)} ${o}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[gi(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,r])=>`${n} ${r}w`).concat([e]).join(", "):e}const vi=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},Tr=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(r){Q.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},Ar=async e=>Tr(e),bi=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(ae).join("; "),xi=[["secure",""],["SameSite","None"]],Si=({name:e,value:t,expires:n})=>{const o=(G()?location.protocol==="https:":!0)?xi:[[]],i=n?[["expires",n.toUTCString()]]:[[]],s=[[e,t],...i,["path","/"],["domain",vi(window.location.hostname)],...o];return bi(s)},Or=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=Si({name:e,value:t,expires:n});document.cookie=o}catch(o){Q.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}},wi="builder.tests",dn=e=>`${wi}.${e}`,ki=({contentId:e})=>Ar({name:dn(e),canTrack:!0}),Ci=({contentId:e})=>Tr({name:dn(e),canTrack:!0}),Ei=({contentId:e,value:t})=>Or({name:dn(e),value:t,canTrack:!0}),Rr=e=>ae(e.id)&&ae(e.variations)&&Object.keys(e.variations).length>0,Ii=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const i in t){const s=(o=t[i])==null?void 0:o.testRatio;if(n+=s,r<n)return i}return e},Pr=e=>{const t=Ii(e);return Ei({contentId:e.id,value:t}).catch(n=>{Q.error("could not store A/B test variation: ",n)}),t},Nr=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},ji=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!Rr(e))return e;const n=Ci({contentId:e.id})||Pr({variations:e.variations,id:e.id}),r=Nr({item:e,testGroupId:n});return{...e,...r}},Ti=async({item:e,canTrack:t})=>{if(!t||!Rr(e))return e;const r=await ki({contentId:e.id})||Pr({variations:e.variations,id:e.id}),o=Nr({item:e,testGroupId:r});return{...e,...o}},pt=e=>ae(e)?e:!0,Ai={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},Oi={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(r=>{r.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(o=>o.get("width"))&&(n.find(i=>!i.get("width"))||n.reduce((u,p)=>u+p.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}]},Ri={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Pi={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(s,u=6e4){return new Promise((p,x)=>{const k=document.createElement("img");let m=!1;k.onload=()=>{m=!0,p(k)},k.addEventListener("error",A=>{console.warn("Image load failed",A.error),x(A.error)}),k.src=s,setTimeout(()=>{m||x(new Error("Image load timed out"))},u)})}function r(s){return Math.round(s*1e3)/1e3}const o=e.get("image"),i=e.get("aspectRatio");if(fetch(o).then(s=>s.blob()).then(s=>{s.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!i||i===.7041))return n(o).then(s=>{const u=e.get("aspectRatio");e.get("image")===o&&(!u||u===.7041)&&s.width&&s.height&&(e.set("aspectRatio",r(s.height/s.width)),e.set("height",s.height),e.set("width",s.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}]},Ni={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>"}}}]},Bi={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"}]};function Fi(e){var t,n,r;return y.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:y.jsx(xt,{parent:(n=e.builderContext.context)==null?void 0:n.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,blocks:(r=e.builderContext.rootState)==null?void 0:r[e.name]})})}const Ui={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"}]},Mi={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"}};function Br(e){var t;return y.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const Vi={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}]},Di={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(r=>r.json()).then(r=>{e.get("url")===t&&(r.html?e.set("content",r.html):e.set("content","Invalid url, please try another"))}).catch(r=>{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}]},Li=["text/javascript","application/javascript","application/ecmascript"],Wi=e=>Li.includes(e.type),_i={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},$i={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}]},Hi=()=>[{component:te.CustomCode,...Vi},{component:te.Embed,...Di},{component:te.ImgComponent,..._i},{component:te.Video,...$i}],tr=()=>[{component:te.Button,...Ai},{component:jr,...Oi},{component:te.FragmentComponent,...Ri},{component:te.Image,...Pi},{component:te.SectionComponent,...Ni},{component:Fi,...Bi},{component:Qr,...Ui},{component:Br,...Mi},...Hi()],Ki=e=>({type:"builder.registerComponent",data:Xt(e)}),Gi=e=>{const t=e.toString().trim();return`return (${!t.startsWith("function")&&!t.startsWith("(")?"function ":""}${t}).apply(this, arguments)`},Xi=e=>typeof e=="function"?Gi(e):Ze(e),Xt=({inputs:e,...t})=>({...Ze(t),inputs:e==null?void 0:e.map(n=>Object.entries(n).reduce((r,[o,i])=>({...r,[o]:Xi(i)}),{}))}),Yi=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
56
+ function getAndSetVariantId() {
57
+ function setCookie(name, value, days) {
58
+ let expires = '';
59
+ if (days) {
60
+ const date = new Date();
61
+ date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
62
+ expires = '; expires=' + date.toUTCString();
63
+ }
64
+ document.cookie = name + '=' + (value || '') + expires + '; path=/' + '; Secure; SameSite=None';
65
+ }
66
+ function getCookie(name) {
67
+ const nameEQ = name + '=';
68
+ const ca = document.cookie.split(';');
69
+ for (let i = 0; i < ca.length; i++) {
70
+ let c = ca[i];
71
+ while (c.charAt(0) === ' ') c = c.substring(1, c.length);
72
+ if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
73
+ }
74
+ return null;
75
+ }
76
+ const cookieName = \`builder.tests.\${contentId}\`;
77
+ const variantInCookie = getCookie(cookieName);
78
+ const availableIDs = variants.map(vr => vr.id).concat(contentId);
79
+ if (variantInCookie && availableIDs.includes(variantInCookie)) {
80
+ return variantInCookie;
81
+ }
82
+ let n = 0;
83
+ const random = Math.random();
84
+ for (let i = 0; i < variants.length; i++) {
85
+ const variant = variants[i];
86
+ const testRatio = variant.testRatio;
87
+ n += testRatio;
88
+ if (random < n) {
89
+ setCookie(cookieName, variant.id);
90
+ return variant.id;
91
+ }
92
+ }
93
+ setCookie(cookieName, contentId);
94
+ return contentId;
95
+ }
96
+ const winningVariantId = getAndSetVariantId();
97
+ const styleEl = document.currentScript?.previousElementSibling;
98
+ if (isHydrationTarget) {
99
+ styleEl.remove();
100
+ const thisScriptEl = document.currentScript;
101
+ thisScriptEl?.remove();
102
+ } else {
103
+ const newStyleStr = variants.concat({
104
+ id: contentId
105
+ }).filter(variant => variant.id !== winningVariantId).map(value => {
106
+ return \`.variant-\${value.id} { display: none; }
107
+ \`;
108
+ }).join('');
109
+ styleEl.innerHTML = newStyleStr;
110
+ }
111
+ }`,Ji=`function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
112
+ if (!navigator.cookieEnabled) {
113
+ return;
114
+ }
115
+ function getCookie(name) {
116
+ const nameEQ = name + '=';
117
+ const ca = document.cookie.split(';');
118
+ for (let i = 0; i < ca.length; i++) {
119
+ let c = ca[i];
120
+ while (c.charAt(0) === ' ') c = c.substring(1, c.length);
121
+ if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
122
+ }
123
+ return null;
124
+ }
125
+ const cookieName = \`builder.tests.\${defaultContentId}\`;
126
+ const winningVariant = getCookie(cookieName);
127
+ const parentDiv = document.currentScript?.parentElement;
128
+ const isDefaultContent = variantContentId === defaultContentId;
129
+ const isWinningVariant = winningVariant === variantContentId;
130
+ if (isWinningVariant && !isDefaultContent) {
131
+ parentDiv?.removeAttribute('hidden');
132
+ parentDiv?.removeAttribute('aria-hidden');
133
+ } else if (!isWinningVariant && isDefaultContent) {
134
+ parentDiv?.setAttribute('hidden', 'true');
135
+ parentDiv?.setAttribute('aria-hidden', 'true');
136
+ }
137
+ if (isHydrationTarget) {
138
+ if (!isWinningVariant) {
139
+ parentDiv?.remove();
140
+ }
141
+ const thisScriptEl = document.currentScript;
142
+ thisScriptEl?.remove();
143
+ }
144
+ return;
145
+ }`,Fr="builderIoAbTest",Ur="builderIoRenderContent",dt=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),zi=({canTrack:e,content:t})=>!(!(dt(t).length>0)||!e||G()),qi=e=>e==="react"||e==="reactNative",Mr=qi(Z),Zi=()=>`
146
+ window.${Fr} = ${Yi}
147
+ window.${Ur} = ${Ji}
148
+ `,Qi=(e,t)=>`
149
+ window.${Fr}(
150
+ "${t}",${JSON.stringify(e)}, ${Mr}
151
+ )`,ea=({contentId:e,variationId:t})=>`window.${Ur}(
152
+ "${t}", "${e}", ${Mr}
153
+ )`;function Yt(e){return y.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},"data-id":e.id})}const ta=e=>{const t=e.get("preview"),n=e.get("overrides."+t);return n||Q.warn("No previewed ID found in search params."),n};function Vr(){globalThis._BUILDER_PREVIEW_LRU_CACHE||(globalThis._BUILDER_PREVIEW_LRU_CACHE=new yo.LRUCache({max:500,ttl:1e3*60*5}))}function na(e){Vr();const t=ta(e);return typeof t=="string"?globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t):void 0}function ra(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function oa(){const e=ra().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
154
+ For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const Dr=oa();function Jt(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const i=e[o],s=[t,o].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...r,...Jt(i,s,n)}:{...r,[s]:i}},{})}function Lr(e,t,n={}){for(const r in e){const o=e[r],i=t?t+"."+r:r;o&&typeof o=="object"&&!Array.isArray(o)&&!Object.keys(o).find(s=>s.startsWith("$"))?Lr(o,i,n):n[i]=o}return n}const ia="v3",nr="builder.",aa="options.",fn=e=>{if(!e)return{};const t=dr(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(nr)){const o=r.replace(nr,"").replace(aa,"");n[o]=t[r]}}),n},sa=()=>{if(!G())return{};const e=new URLSearchParams(window.location.search);return fn(e)},rr=e=>typeof e=="number"&&!isNaN(e)&&e>=0,pn=e=>{const{limit:t=30,userAttributes:n,query:r,model:o,apiKey:i,enrich:s,locale:u,apiVersion:p=ia,fields:x,omit:k,offset:m,cacheSeconds:A,staleCacheSeconds:R,sort:B,includeUnpublished:N}=e;if(!i)throw new Error("Missing API key");if(!["v3"].includes(p))throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);const W=t!==1,C=new URL(`https://cdn.builder.io/api/${p}/content/${o}`);if(C.searchParams.set("apiKey",i),C.searchParams.set("limit",String(t)),C.searchParams.set("noTraverse",String(W)),C.searchParams.set("includeRefs",String(!0)),u&&C.searchParams.set("locale",u),s&&C.searchParams.set("enrich",String(s)),C.searchParams.set("omit",k||"meta.componentsUsed"),x&&C.searchParams.set("fields",x),Number.isFinite(m)&&m>-1&&C.searchParams.set("offset",String(Math.floor(m))),typeof N=="boolean"&&C.searchParams.set("includeUnpublished",String(N)),A&&rr(A)&&C.searchParams.set("cacheSeconds",String(A)),R&&rr(R)&&C.searchParams.set("staleCacheSeconds",String(R)),B){const U=Jt({sort:B});for(const Y in U)C.searchParams.set(Y,JSON.stringify(U[Y]))}const g={...sa(),...dr(e.options||{})},F=Jt(g);for(const U in F)C.searchParams.set(U,String(F[U]));if(n&&C.searchParams.set("userAttributes",JSON.stringify(n)),r){const U=Lr({query:r});for(const Y in U)C.searchParams.set(Y,JSON.stringify(U[Y]))}return C},la=e=>"results"in e;async function hn(e){const t=await _r({...e,limit:1});return t&&t[0]||null}const ca=async e=>{const t=pn(e);return await(await(e.fetch??Dr)(t.href,e.fetchOptions)).json()},Wr=async(e,t,n=pn(e))=>{const r=pt(e.canTrack);if(n.search.includes("preview=")){const i=[];for(const s of t.results){const u=na(n.searchParams);i.push(u||s)}t.results=i}if(!r||!(G()||Z==="reactNative"))return t.results;try{const i=[];for(const s of t.results)i.push(await Ti({item:s,canTrack:r}));t.results=i}catch(i){Q.error("Could not process A/B tests. ",i)}return t.results};async function _r(e){try{const t=pn(e),n=await ca(e);return la(n)?Wr(e,n):(Q.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return Q.error("Error fetching data. ",t),null}}function ua(e){const t=e||(G()?window.location.search:void 0);return t?fr(t).indexOf("builder.preview=")!==-1:!1}function da(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function $r(){return da().replace(/-/g,"")}const Hr="builderSessionId",fa=async({canTrack:e})=>{if(!e)return;const t=await Ar({name:Hr,canTrack:e});if(ae(t))return t;{const n=pa();return ha({id:n,canTrack:e}),n}},pa=()=>$r(),ha=({id:e,canTrack:t})=>Or({name:Hr,value:e,canTrack:t}),Kr=()=>G()&&typeof localStorage<"u"?localStorage:void 0,ma=({key:e,canTrack:t})=>{var n;try{return t?(n=Kr())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},ga=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=Kr())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},Gr="builderVisitorId",ya=({canTrack:e})=>{if(!e)return;const t=ma({key:Gr,canTrack:e});if(ae(t))return t;{const n=va();return ba({id:n,canTrack:e}),n}},va=()=>$r(),ba=({id:e,canTrack:t})=>ga({key:Gr,value:e,canTrack:t}),xa=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await fa({canTrack:e}),n=ya({canTrack:e});return{sessionId:t,visitorId:n}},Sa=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await xa({canTrack:t}),userAttributes:pr(),ownerId:n}});async function Xr(e){if(!e.apiKey){Q.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!zt()&&(G()||Z==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await Sa(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const wa=e=>Xr({...e,canTrack:!0});function or(e){return Math.round(e*1e3)/1e3}const ka=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let r=n?e:e.parentElement;do{if(!r)return null;if(t(r))return r}while(r=r.parentElement);return null},Ca=e=>ka(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),ir=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=or(r/n.width),s=or(o/n.height);return{x:i,y:s}},Ea=e=>{const t=e.target,n=t&&Ca(t),r=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:r||void 0,metadata:{targetOffset:t?ir({event:e,target:t}):void 0,builderTargetOffset:n?ir({event:e,target:n}):void 0,builderElementIndex:n&&r?[].slice.call(document.getElementsByClassName(r)).indexOf(n):void 0}}},Ia=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function Yr(e,t){if(!t.origin.startsWith("http")&&!t.origin.startsWith("https"))return!1;const n=new URL(t.origin),r=n.hostname;return(e||Ia).findIndex(o=>o.startsWith("*.")?r.endsWith(o.slice(1)):o===r)>-1}const ja="0.14.28",ar={};function Jr(e,t){let n=ar[e];if(n||(n=ar[e]=[]),n.push(t),G()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(o){console.debug("Could not postmessage",o)}}}const Ta=()=>{Jr("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let sr=!1;const zr=(e={})=>{var t,n;sr||(sr=!0,G()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:Z,version:ja,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",r=>{var i,s;if(!Yr(e.trustedHosts,r))return;const{data:o}=r;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const u=o.data.text,p=o.data.arguments||[],x=o.data.id,k=new Function(u);let m,A=null;try{m=k.apply(null,p)}catch(R){A=R}A?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:x,error:A.message}},"*"):m&&typeof m.then=="function"?m.then(R=>{var B;(B=window.parent)==null||B.postMessage({type:"builder.evaluateResult",data:{id:x,result:R}},"*")}).catch(console.error):(s=window.parent)==null||s.postMessage({type:"builder.evaluateResult",data:{result:m,id:x}},"*");break}}})))},qr=({model:e,trustedHosts:t,callbacks:n})=>r=>{if(!Yr(t,r))return;const{data:o}=r;if(o)switch(o.type){case"builder.configureSdk":{n.configureSdk(o.data);break}case"builder.triggerAnimation":{n.animation(o.data);break}case"builder.contentUpdate":{const i=o.data,s=i.key||i.alias||i.entry||i.modelName,u=i.data;s===e&&n.contentUpdate(u);break}}},Aa=(e,t,n)=>{if(!G)return Q.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};zr();const r=qr({callbacks:{contentUpdate:t,animation:()=>{},configureSdk:()=>{}},model:e,trustedHosts:n==null?void 0:n.trustedHosts});return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}};function lr(e,...t){const n=Object(e);for(let r=1;r<arguments.length;r++){const o=arguments[r];if(o!=null)for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n}function Oa(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function Ra(e,t){const n=Pa(e),r=getComputedStyle(t),o=e.steps[0].styles,i=e.steps[e.steps.length-1].styles,s=[o,i];for(const u of s)for(const p of n)p in u||(u[p]=r[p])}function Pa(e){const t=[];for(const n of e.steps)for(const r in n.styles)t.indexOf(r)===-1&&t.push(r);return t}function Na(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){Oa(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{Ra(e,n),n.style.transition="none",n.style.transitionDelay="0",lr(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${un(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),lr(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}const Ba=e=>{var i;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],r=e.fileUrl??((i=e==null?void 0:e.files)==null?void 0:i.regular);let o="";if(r&&t&&n&&(o+=`
155
+ @font-face {
156
+ font-family: "${t}";
157
+ src: local("${n}"), url('${r}') format('woff2');
158
+ font-display: fallback;
159
+ font-weight: 400;
160
+ }
161
+ `.trim()),e.files)for(const s in e.files){if(!(String(Number(s))===s))continue;const p=e.files[s];p&&p!==r&&(o+=`
162
+ @font-face {
163
+ font-family: "${t}";
164
+ src: url('${p}') format('woff2');
165
+ font-display: fallback;
166
+ font-weight: ${s};
167
+ }
168
+ `.trim())}return o},Fa=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(n=>Ba(n)))==null?void 0:t.join(" "))||""},Ua=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"",Ma=`
169
+ .builder-button {
170
+ all: unset;
171
+ }
172
+
173
+ .builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
174
+ margin: 0;
175
+ }
176
+ .builder-text > p, .builder-text > .builder-paragraph {
177
+ color: inherit;
178
+ line-height: inherit;
179
+ letter-spacing: inherit;
180
+ font-weight: inherit;
181
+ font-size: inherit;
182
+ text-align: inherit;
183
+ font-family: inherit;
184
+ }
185
+ `,Va=e=>e?"":Ma,Da=e=>`variant-${e}`;function La(e){const t=`
186
+ ${Ua({cssCode:e.cssCode,contentId:e.contentId})}
187
+ ${Fa({customFonts:e.customFonts})}
188
+ ${Va(e.isNestedRender)}
189
+ `.trim();return y.jsx(vt,{id:"builderio-content",styles:t})}const Wa=({content:e,data:t,locale:n})=>{var i,s,u;const r={},o=((i=e==null?void 0:e.data)==null?void 0:i.state)||{};return(u=(s=e==null?void 0:e.data)==null?void 0:s.inputs)==null||u.forEach(p=>{p.name&&p.defaultValue!==void 0&&(r[p.name]=p.defaultValue)}),{...r,...o,...t,...n?{locale:n}:{}}},_a=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function cr(e){var o,i,s,u,p,x,k,m,A;const t=ea({variationId:(o=e.content)==null?void 0:o.testVariationId,contentId:(i=e.content)==null?void 0:i.id}),n=[...tr(),...e.customComponents||[]].reduce((R,{component:B,...N})=>({...R,[N.name]:{component:B,...Xt(N)}}),{}),r={content:_a({content:e.content,data:e.data}),localState:void 0,rootState:Wa({content:e.content,data:e.data,locale:e.locale}),rootSetState:void 0,context:e.context||{},canTrack:e.canTrack,apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...tr(),...e.customComponents||[]].reduce((R,{component:B,...N})=>({...R,[N.name]:Xt(N)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{}};return y.jsxs(te.EnableEditor,{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:r,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts,children:[e.isSsrAbTest?y.jsx(Yt,{id:"builderio-variant-visibility",scriptStr:t}):null,y.jsx(La,{isNestedRender:e.isNestedRender,contentId:(s=r.content)==null?void 0:s.id,cssCode:(p=(u=r.content)==null?void 0:u.data)==null?void 0:p.cssCode,customFonts:(k=(x=r.content)==null?void 0:x.data)==null?void 0:k.customFonts}),y.jsx(xt,{blocks:(A=(m=r.content)==null?void 0:m.data)==null?void 0:A.blocks,context:r,registeredComponents:n,linkComponent:e.linkComponent})]})}function Zr(e){var i;const t=zi({canTrack:pt(e.canTrack),content:e.content}),n=function(){var u;return Qi(dt(e.content).map(p=>({id:p.testVariationId,testRatio:p.testRatio})),((u=e.content)==null?void 0:u.id)||"")},r=function(){return dt(e.content).map(u=>`.variant-${u.testVariationId} { display: none; } `).join("")},o=function(){var u;return t?{...e.content,testVariationId:(u=e.content)==null?void 0:u.id}:ji({item:e.content,canTrack:pt(e.canTrack)})};return y.jsxs(y.Fragment,{children:[!e.isNestedRender&&Z!=="reactNative"?y.jsx(Yt,{id:"builderio-init-variants-fns",scriptStr:Zi()}):null,t?y.jsxs(y.Fragment,{children:[y.jsx(vt,{id:"builderio-variants",styles:r()}),y.jsx(Yt,{id:"builderio-variants-visibility",scriptStr:n()}),(i=dt(e.content))==null?void 0:i.map(s=>y.jsx(cr,{isNestedRender:e.isNestedRender,content:s,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},s.testVariationId))]}):null,y.jsx(cr,{isNestedRender:e.isNestedRender,content:o(),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})]})}const $a=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return hn({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{Q.error("Could not fetch symbol content: ",n)})};async function Qr(e){var i,s,u,p,x;const t=function(){return"div"},n=function(){return"div"},r=function(){var m,A;return[e.attributes[ht()],"builder-symbol",(m=e.symbol)!=null&&m.inline?"builder-inline-symbol":void 0,(A=e.symbol)!=null&&A.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},o=((i=e.symbol)==null?void 0:i.content)||await $a({symbol:e.symbol,builderContextValue:e.builderContext});return y.jsx("div",{...e.attributes,className:r(),children:y.jsx(Zr,{isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(s=e.builderBlock)==null?void 0:s.id},customComponents:Object.values(e.builderComponents),data:{...(u=e.symbol)==null?void 0:u.data,...e.builderContext.localState,...(p=o==null?void 0:o.data)==null?void 0:p.state},canTrack:e.builderContext.canTrack,model:(x=e.symbol)==null?void 0:x.model,content:o,linkComponent:e.builderLinkComponent,blocksWrapper:t(),contentWrapper:n()})})}const ur={};function Ha(e){if(G()){Object.assign(ur,e);const t={type:"builder.settingsChange",data:ur};parent.postMessage(t,"*")}}const Ka=async e=>{var r,o,i;const t=e.path||((r=e.url)==null?void 0:r.pathname)||((o=e.userAttributes)==null?void 0:o.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:fn(e.searchParams||((i=e.url)==null?void 0:i.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await hn(n)}};exports.Blocks=xt;exports.Columns=jr;exports.ContentVariants=Zr;exports.Symbol=Qr;exports.Text=Br;exports._processContentResult=Wr;exports._track=Xr;exports.createEditorListener=qr;exports.createRegisterComponentMessage=Ki;exports.evaluate=yt;exports.fastClone=Ze;exports.fetch=Dr;exports.fetchBuilderProps=Ka;exports.fetchEntries=_r;exports.fetchOneEntry=hn;exports.getBlockActions=ci;exports.getBlockProperties=Ir;exports.getBuilderSearchParams=fn;exports.getClassPropName=ht;exports.getDefaultCanTrack=pt;exports.getInteractionPropertiesForEvent=Ea;exports.getSrcSet=yi;exports.getWrapperClassName=Da;exports.init=Vr;exports.isBrowser=G;exports.isEditing=zt;exports.isEmptyElement=bo;exports.isJsScript=Wi;exports.isPreviewing=ua;exports.logger=Q;exports.register=Jr;exports.registerInsertMenu=Ta;exports.setEditorSettings=Ha;exports.setupBrowserForEditing=zr;exports.subscribeToEditor=Aa;exports.track=wa;exports.triggerAnimation=Na;