@builder.io/sdk-react 0.12.1 → 0.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,37 +1,35 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),k=require("react"),y=require("./server-entry-df9eba5d.cjs");function Yn(e){return u.jsxs(u.Fragment,{children:[e.link?u.jsx(u.Fragment,{children:u.jsx("a",{...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"button",children:e.text})}):u.jsx(u.Fragment,{children:u.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-fdf49de0",children:e.text})}),u.jsx("style",{children:`.button-fdf49de0 {
2
- all: unset;
3
- }`})]})}const Kt=k.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}}),Jn=k.createContext({registeredComponents:{}});function Nr(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const qn=({builder:e,context:t,event:r,state:n})=>Object.entries({state:n,Builder:e,builder:e,context:t,event:r}),Fr=()=>({isEditing:y.isEditing(),isBrowser:y.isBrowser(),isServer:!y.isBrowser(),getUserAttributes:()=>y.getUserAttributes()}),Br=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,Mr=({code:e,builder:t,context:r,event:n,localState:i,rootSetState:a,rootState:s})=>{const d=qn({builder:t,context:r,event:n,state:Ur(s,i,a)});return new Function(...d.map(([h])=>h),e)(...d.map(([,h])=>h))};function Ur(e,t,r){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(n,i)=>t&&i in t?t[i]:e[i],set:(n,i,a)=>{if(t&&i in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[i]=a,r==null||r(e),!0}})}const Zn=(e,t,r)=>{if(Object(e)!==e)return e;const n=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return n.slice(0,-1).reduce((i,a,s)=>Object(i[a])===i[a]?i[a]:i[a]=Math.abs(Number(n[s+1]))>>0===+n[s+1]?[]:{},e)[n[n.length-1]]=r,e};var W,Dr=function(e){function t(o){return 48>o?o===36:58>o?!0:65>o?!1:91>o?!0:97>o?o===95:123>o?!0:170<=o&&Or.test(String.fromCharCode(o))}function r(o){return 65>o?o===36:91>o?!0:97>o?o===95:123>o?!0:170<=o&&Nn.test(String.fromCharCode(o))}function n(o,l){for(var c=b,p=1,O=0;;){st.lastIndex=O;var J=st.exec(c);if(J&&J.index<o)++p,O=J.index+J[0].length;else break}throw c={line:p,ab:o-O},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=o,l.X=c,l.o=f,l}function i(o){o=o.split(" ");for(var l=Object.create(null),c=0;c<o.length;c++)l[o[c]]=!0;return function(p){return l[p]||!1}}function a(){this.line=ke,this.ab=f-de}function s(o,l){Ie=f,P.C&&(wt=new a),R=o,h(),se=l,Ue=o.m}function d(){for(var o=f,l=P.va&&P.C&&new a,c=b.charCodeAt(f+=2);f<je&&c!==10&&c!==13&&c!==8232&&c!==8233;)++f,c=b.charCodeAt(f);P.va&&P.va(!1,b.slice(o+2,f),o,f,l,P.C&&new a)}function h(){for(;f<je;){var o=b.charCodeAt(f);if(o===32)++f;else if(o===13)++f,o=b.charCodeAt(f),o===10&&++f,P.C&&(++ke,de=f);else if(o===10||o===8232||o===8233)++f,P.C&&(++ke,de=f);else if(8<o&&14>o)++f;else if(o===47)if(o=b.charCodeAt(f+1),o===42){o=void 0;var l=P.va&&P.C&&new a,c=f,p=b.indexOf("*/",f+=2);if(p===-1&&n(f-2,"Unterminated comment"),f=p+2,P.C)for(st.lastIndex=c;(o=st.exec(b))&&o.index<f;)++ke,de=o.index+o[0].length;P.va&&P.va(!0,b.slice(c+2,p),c,f,l,P.C&&new a)}else if(o===47)d();else break;else if(o===160)++f;else if(5760<=o&&Rr.test(String.fromCharCode(o)))++f;else break}}function m(o){switch(o){case 46:o=b.charCodeAt(f+1),48<=o&&57>=o?N(!0):(++f,s(En));return;case 40:return++f,s(fe);case 41:return++f,s(ce);case 59:return++f,s(he);case 44:return++f,s(xe);case 91:return++f,s(Pt);case 93:return++f,s(Nt);case 123:return++f,s(We);case 125:return++f,s(Ae);case 58:return++f,s(Ve);case 63:return++f,s(jn);case 48:if(o=b.charCodeAt(f+1),o===120||o===88){f+=2,o=U(16),o===null&&n(X+2,"Expected hexadecimal number"),r(b.charCodeAt(f))&&n(f,"Identifier directly after number"),s(_e,o);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return N(!1);case 34:case 39:f++;for(var l="";;){f>=je&&n(X,"Unterminated string constant");var c=b.charCodeAt(f);if(c===o){++f,s(rt,l);break}if(c===92){c=b.charCodeAt(++f);var p=/^[0-7]+/.exec(b.slice(f,f+3));for(p&&(p=p[0]);p&&255<parseInt(p,8);)p=p.slice(0,-1);if(p==="0"&&(p=null),++f,p)oe&&n(f-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(p,8)),f+=p.length-1;else switch(c){case 110:l+=`
4
- `;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(F(2));break;case 117:l+=String.fromCharCode(F(4));break;case 85:l+=String.fromCharCode(F(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:b.charCodeAt(f)===10&&++f;case 10:P.C&&(de=f,++ke);break;default:l+=String.fromCharCode(c)}}else c!==13&&c!==10&&c!==8232&&c!==8233||n(X,"Unterminated string constant"),l+=String.fromCharCode(c),++f}return;case 47:o=b.charCodeAt(f+1),Ue?(++f,D()):o===61?S(Ce,2):S(In,1);return;case 37:case 42:b.charCodeAt(f+1)===61?S(Ce,2):S(Ir,1);return;case 124:case 38:l=b.charCodeAt(f+1),l===o?S(o===124?Rn:On,2):l===61?S(Ce,2):S(o===124?br:wr,1);return;case 94:b.charCodeAt(f+1)===61?S(Ce,2):S(Sr,1);return;case 43:case 45:l=b.charCodeAt(f+1),l===o?l===45&&b.charCodeAt(f+2)===62&&at.test(b.slice(ye,f))?(f+=3,d(),h(),v()):S(xr,2):l===61?S(Ce,2):S(jr,1);return;case 60:case 62:l=b.charCodeAt(f+1),c=1,l===o?(c=o===62&&b.charCodeAt(f+2)===62?3:2,b.charCodeAt(f+c)===61?S(Ce,c+1):S(Er,c)):l===33&&o===60&&b.charCodeAt(f+2)===45&&b.charCodeAt(f+3)===45?(f+=4,d(),h(),v()):(l===61&&(c=b.charCodeAt(f+2)===61?3:2),S(Cr,c));return;case 61:case 33:b.charCodeAt(f+1)===61?S(kr,b.charCodeAt(f+2)===61?3:2):S(o===61?Tn:An,1);return;case 126:return S(An,1)}return!1}function v(o){if(o?f=X+1:X=f,P.C&&(St=new a),o)return D();if(f>=je)return s(Et);if(o=b.charCodeAt(f),r(o)||o===92)return Y();if(m(o)===!1){if(o=String.fromCharCode(o),o==="\\"||Nn.test(o))return Y();n(f,"Unexpected character '"+o+"'")}}function S(o,l){var c=b.slice(f,f+l);f+=l,s(o,c)}function D(){for(var o,l,c=f;;){f>=je&&n(c,"Unterminated regexp");var p=b.charAt(f);if(at.test(p)&&n(c,"Unterminated regexp"),o)o=!1;else{if(p==="[")l=!0;else if(p==="]"&&l)l=!1;else if(p==="/"&&!l)break;o=p==="\\"}++f}o=b.slice(c,f),++f,(l=L())&&!/^[gmi]*$/.test(l)&&n(c,"Invalid regexp flag");try{var O=new RegExp(o,l)}catch(J){throw J instanceof SyntaxError&&n(c,J.message),J}s(an,O)}function U(o,l){for(var c=f,p=0,O=l===void 0?1/0:l,J=0;J<O;++J){var ne=b.charCodeAt(f);if(ne=97<=ne?ne-97+10:65<=ne?ne-65+10:48<=ne&&57>=ne?ne-48:1/0,ne>=o)break;++f,p=p*o+ne}return f===c||l!==void 0&&f-c!==l?null:p}function N(o){var l=f,c=!1,p=b.charCodeAt(f)===48;o||U(10)!==null||n(l,"Invalid number"),b.charCodeAt(f)===46&&(++f,U(10),c=!0),o=b.charCodeAt(f),(o===69||o===101)&&(o=b.charCodeAt(++f),o!==43&&o!==45||++f,U(10)===null&&n(l,"Invalid number"),c=!0),r(b.charCodeAt(f))&&n(f,"Identifier directly after number"),o=b.slice(l,f);var O;c?O=parseFloat(o):p&&o.length!==1?/[89]/.test(o)||oe?n(l,"Invalid number"):O=parseInt(o,8):O=parseInt(o,10),s(_e,O)}function F(o){return o=U(16,o),o===null&&n(X,"Bad character escape sequence"),o}function L(){Re=!1;for(var o,l=!0,c=f;;){var p=b.charCodeAt(f);if(t(p))Re&&(o+=b.charAt(f)),++f;else if(p===92){Re||(o=b.slice(c,f)),Re=!0,b.charCodeAt(++f)!==117&&n(f,"Expecting Unicode escape sequence \\uXXXX"),++f,p=F(4);var O=String.fromCharCode(p);O||n(f-1,"Invalid Unicode escape"),(l?r(p):t(p))||n(f-4,"Invalid Unicode escape"),o+=O}else break;l=!1}return Re?o:b.slice(c,f)}function Y(){var o=L(),l=Te;!Re&&Ar(o)&&(l=yr[o]),s(l,o)}function x(){kt=X,ye=Ie,Ct=wt,v()}function K(o){if(oe=o,f=X,P.C)for(;f<de;)de=b.lastIndexOf(`
5
- `,de-2)+1,--ke;h(),v()}function ee(){this.type=null,this.start=X,this.end=null}function ae(){this.start=St,this.end=null,bt&&(this.source=bt)}function $(){var o=new ee;return P.C&&(o.X=new ae),P.vb&&(o.sourceFile=P.vb),P.Xa&&(o.j=[X,0]),o}function te(o){var l=new ee;return l.start=o.start,P.C&&(l.X=new ae,l.X.start=o.X.start),P.Xa&&(l.j=[o.j[0],0]),l}function I(o,l){return o.type=l,o.end=ye,P.C&&(o.X.end=Ct),P.Xa&&(o.j[1]=ye),o}function Ee(o){return o.type==="ExpressionStatement"&&o.la.type==="Literal"&&o.la.value==="use strict"}function V(o){return R===o?(x(),!0):!1}function Se(){return!P.fc&&(R===Et||R===Ae||at.test(b.slice(ye,X)))}function le(){V(he)||Se()||j()}function H(o){R===o?x():j()}function j(){n(X,"Unexpected token")}function T(o){o.type!=="Identifier"&&o.type!=="MemberExpression"&&n(o.start,"Assigning to rvalue"),oe&&o.type==="Identifier"&&ot(o.name)&&n(o.start,"Assigning to "+o.name+" in strict mode")}function A(){(R===In||R===Ce&&se==="/=")&&v(!0);var o=R,l=$();switch(o){case jt:case ln:x();var c=o===jt;V(he)||Se()?l.label=null:R!==Te?j():(l.label=ue(),le());for(var p=0;p<z.length;++p){var O=z[p];if((l.label===null||O.name===l.label.name)&&(O.kind!==null&&(c||O.kind==="loop")||l.label&&c))break}return p===z.length&&n(l.start,"Unsyntactic "+o.l),I(l,c?"BreakStatement":"ContinueStatement");case cn:return x(),le(),I(l,"DebuggerStatement");case dn:return x(),z.push(Ft),l.body=A(),z.pop(),H(Ot),l.test=B(),le(),I(l,"DoWhileStatement");case pn:return x(),z.push(Ft),H(fe),R===he?G(l,null):R===Rt?(o=$(),x(),tt(o,!0),I(o,"VariableDeclaration"),o.fa.length===1&&V(it)?we(l,o):G(l,o)):(o=Q(!1,!0),V(it)?(T(o),we(l,o)):G(l,o));case Tt:return x(),yt(l,!0);case mn:return x(),l.test=B(),l.da=A(),l.alternate=V(fn)?A():null,I(l,"IfStatement");case gn:return De||P.Ib||n(X,"'return' outside of function"),x(),V(he)||Se()?l.K=null:(l.K=Q(),le()),I(l,"ReturnStatement");case At:for(x(),l.Qb=B(),l.tb=[],H(We),z.push(Pr);R!==Ae;)R===It||R===un?(o=R===It,p&&I(p,"SwitchCase"),l.tb.push(p=$()),p.da=[],x(),o?p.test=Q():(c&&n(kt,"Multiple default clauses"),c=!0,p.test=null),H(Ve)):(p||j(),p.da.push(A()));return p&&I(p,"SwitchCase"),x(),z.pop(),I(l,"SwitchStatement");case vn:return x(),at.test(b.slice(ye,X))&&n(ye,"Illegal newline after throw"),l.K=Q(),le(),I(l,"ThrowStatement");case yn:return x(),l.block=_(),l.Ea=null,R===sn&&(o=$(),x(),H(fe),o.Ua=ue(),oe&&ot(o.Ua.name)&&n(o.Ua.start,"Binding "+o.Ua.name+" in strict mode"),H(ce),o.body=_(),l.Ea=I(o,"CatchClause")),l.fb=V(hn)?_():null,l.Ea||l.fb||n(l.start,"Missing catch or finally clause"),I(l,"TryStatement");case Rt:return x(),tt(l),le(),I(l,"VariableDeclaration");case Ot:return x(),l.test=B(),z.push(Ft),l.body=A(),z.pop(),I(l,"WhileStatement");case xn:return oe&&n(X,"'with' in strict mode"),x(),l.object=B(),l.body=A(),I(l,"WithStatement");case We:return _();case he:return x(),I(l,"EmptyStatement");default:if(c=se,O=Q(),o===Te&&O.type==="Identifier"&&V(Ve)){for(p=0;p<z.length;++p)z[p].name===c&&n(O.start,"Label '"+c+"' is already declared");return z.push({name:c,kind:R.W?"loop":R===At?"switch":null}),l.body=A(),z.pop(),l.label=O,I(l,"LabeledStatement")}return l.la=O,le(),I(l,"ExpressionStatement")}}function B(){H(fe);var o=Q();return H(ce),o}function _(o){var l=$(),c=!0,p=!1;for(l.body=[],H(We);!V(Ae);){var O=A();if(l.body.push(O),c&&o&&Ee(O)){var J=p;K(p=!0)}c=!1}return p&&!J&&K(!1),I(l,"BlockStatement")}function G(o,l){return o.ua=l,H(he),o.test=R===he?null:Q(),H(he),o.update=R===ce?null:Q(),H(ce),o.body=A(),z.pop(),I(o,"ForStatement")}function we(o,l){return o.left=l,o.right=Q(),H(ce),o.body=A(),z.pop(),I(o,"ForInStatement")}function tt(o,l){for(o.fa=[],o.kind="var";;){var c=$();if(c.id=ue(),oe&&ot(c.id.name)&&n(c.id.start,"Binding "+c.id.name+" in strict mode"),c.ua=V(Tn)?Q(!0,l):null,o.fa.push(I(c,"VariableDeclarator")),!V(xe))break}}function Q(o,l){var c=mt(l);if(!o&&R===xe){for(o=te(c),o.xb=[c];V(xe);)o.xb.push(mt(l));return I(o,"SequenceExpression")}return c}function mt(o){var l=gt(vt(),-1,o);if(V(jn)){var c=te(l);c.test=l,c.da=Q(!0),H(Ve),c.alternate=Q(!0,o),l=I(c,"ConditionalExpression")}return R.Cb?(c=te(l),c.operator=se,c.left=l,x(),c.right=mt(o),T(l),I(c,"AssignmentExpression")):l}function gt(o,l,c){var p=R.L;if(p!==null&&(!c||R!==it)&&p>l){var O=te(o);return O.left=o,O.operator=se,o=R,x(),O.right=gt(vt(),p,c),p=I(O,o===Rn||o===On?"LogicalExpression":"BinaryExpression"),gt(p,l,c)}return o}function vt(){if(R.prefix){var o=$(),l=R.$b;return o.operator=se,Ue=o.prefix=!0,x(),o.K=vt(),l?T(o.K):oe&&o.operator==="delete"&&o.K.type==="Identifier"&&n(o.start,"Deleting local variable in strict mode"),I(o,l?"UpdateExpression":"UnaryExpression")}for(l=Me(nt());R.cc&&!Se();)o=te(l),o.operator=se,o.prefix=!1,o.K=l,T(l),x(),l=I(o,"UpdateExpression");return l}function Me(o,l){if(V(En)){var c=te(o);return c.object=o,c.Wa=ue(!0),c.bb=!1,Me(I(c,"MemberExpression"),l)}return V(Pt)?(c=te(o),c.object=o,c.Wa=Q(),c.bb=!0,H(Nt),Me(I(c,"MemberExpression"),l)):!l&&V(fe)?(c=te(o),c.callee=o,c.arguments=xt(ce,!1),Me(I(c,"CallExpression"),l)):o}function nt(){switch(R){case Sn:var o=$();return x(),I(o,"ThisExpression");case Te:return ue();case _e:case rt:case an:return o=$(),o.value=se,o.raw=b.slice(X,Ie),x(),I(o,"Literal");case wn:case kn:case Cn:return o=$(),o.value=R.$a,o.raw=R.l,x(),I(o,"Literal");case fe:o=St;var l=X;x();var c=Q();return c.start=l,c.end=Ie,P.C&&(c.X.start=o,c.X.end=wt),P.Xa&&(c.j=[l,Ie]),H(ce),c;case Pt:return o=$(),x(),o.elements=xt(Nt,!0,!0),I(o,"ArrayExpression");case We:for(o=$(),l=!0,c=!1,o.h=[],x();!V(Ae);){if(l)l=!1;else if(H(xe),P.sb&&V(Ae))break;var p={key:R===_e||R===rt?nt():ue(!0)},O=!1;if(V(Ve)){p.value=Q(!0);var J=p.kind="init"}else p.key.type!=="Identifier"||p.key.name!=="get"&&p.key.name!=="set"?j():(O=c=!0,J=p.kind=p.key.name,p.key=R===_e||R===rt?nt():ue(!0),R!==fe&&j(),p.value=yt($(),!1));if(p.key.type==="Identifier"&&(oe||c))for(var ne=0;ne<o.h.length;++ne){var Oe=o.h[ne];if(Oe.key.name===p.key.name){var Bt=J===Oe.kind||O&&Oe.kind==="init"||J==="init"&&(Oe.kind==="get"||Oe.kind==="set");Bt&&!oe&&J==="init"&&Oe.kind==="init"&&(Bt=!1),Bt&&n(p.key.start,"Redefinition of property")}}o.h.push(p)}return I(o,"ObjectExpression");case Tt:return o=$(),x(),yt(o,!1);case bn:return o=$(),x(),o.callee=Me(nt(),!0),o.arguments=V(fe)?xt(ce,!1):vr,I(o,"NewExpression")}j()}function yt(o,l){R===Te?o.id=ue():l?j():o.id=null,o.oa=[];var c=!0;for(H(fe);!V(ce);)c?c=!1:H(xe),o.oa.push(ue());c=De;var p=z;if(De=!0,z=[],o.body=_(!0),De=c,z=p,oe||o.body.body.length&&Ee(o.body.body[0])){for(c=o.id?-1:0;c<o.oa.length;++c)if(p=0>c?o.id:o.oa[c],(Pn(p.name)||ot(p.name))&&n(p.start,"Defining '"+p.name+"' in strict mode"),0<=c)for(var O=0;O<c;++O)p.name===o.oa[O].name&&n(p.start,"Argument name clash in strict mode")}return I(o,l?"FunctionDeclaration":"FunctionExpression")}function xt(o,l,c){for(var p=[],O=!0;!V(o);){if(O)O=!1;else if(H(xe),l&&P.sb&&V(o))break;p.push(c&&R===xe?null:Q(!0))}return p}function ue(o){var l=$();return o&&P.yb==="everywhere"&&(o=!1),R===Te?(!o&&(P.yb&&Tr(se)||oe&&Pn(se))&&b.slice(X,Ie).indexOf("\\")===-1&&n(X,"The keyword '"+se+"' is reserved"),l.name=se):o&&R.l?l.name=R.l:j(),Ue=!1,x(),I(l,"Identifier")}e.version="0.5.0";var P,b="",je,bt;e.parse=function(o,l){b=String(o),je=b.length,P=l||{};for(var c in on)Object.prototype.hasOwnProperty.call(P,c)||(P[c]=on[c]);for(bt=P.sourceFile,ke=1,f=de=0,Ue=!0,h(),c=P.dc,kt=ye=f,P.C&&(Ct=new a),De=oe=!1,z=[],v(),o=c||$(),l=!0,c||(o.body=[]);R!==Et;)c=A(),o.body.push(c),l&&Ee(c)&&K(!0),l=!1;return I(o,"Program")};var on={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},f=0,X=0,Ie=0,St,wt,R,se,Ue,ke,de,kt=0,ye=0,Ct,De,z,oe,vr=[],_e={type:"num"},an={type:"regexp"},rt={type:"string"},Te={type:"name"},Et={type:"eof"},jt={l:"break"},It={l:"case",m:!0},sn={l:"catch"},ln={l:"continue"},cn={l:"debugger"},un={l:"default"},dn={l:"do",W:!0},fn={l:"else",m:!0},hn={l:"finally"},pn={l:"for",W:!0},Tt={l:"function"},mn={l:"if"},gn={l:"return",m:!0},At={l:"switch"},vn={l:"throw",m:!0},yn={l:"try"},Rt={l:"var"},Ot={l:"while",W:!0},xn={l:"with"},bn={l:"new",m:!0},Sn={l:"this"},wn={l:"null",$a:null},kn={l:"true",$a:!0},Cn={l:"false",$a:!1},it={l:"in",L:7,m:!0},yr={break:jt,case:It,catch:sn,continue:ln,debugger:cn,default:un,do:dn,else:fn,finally:hn,for:pn,function:Tt,if:mn,return:gn,switch:At,throw:vn,try:yn,var:Rt,while:Ot,with:xn,null:wn,true:kn,false:Cn,new:bn,in:it,instanceof:{l:"instanceof",L:7,m:!0},this:Sn,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Pt={type:"[",m:!0},Nt={type:"]"},We={type:"{",m:!0},Ae={type:"}"},fe={type:"(",m:!0},ce={type:")"},xe={type:",",m:!0},he={type:";",m:!0},Ve={type:":",m:!0},En={type:"."},jn={type:"?",m:!0},In={L:10,m:!0},Tn={Cb:!0,m:!0},Ce={Cb:!0,m:!0},xr={cc:!0,prefix:!0,$b:!0},An={prefix:!0,m:!0},Rn={L:1,m:!0},On={L:2,m:!0},br={L:3,m:!0},Sr={L:4,m:!0},wr={L:5,m:!0},kr={L:6,m:!0},Cr={L:7,m:!0},Er={L:8,m:!0},jr={L:9,prefix:!0,m:!0},Ir={L:10,m:!0},Tr=i("class enum extends super const export import"),Pn=i("implements interface let package private protected public static yield"),ot=i("eval arguments"),Ar=i("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"),Rr=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Nn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),Or=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),at=/[\n\r\u2028\u2029]/,st=/\r\n|[\n\r\u2028\u2029]/g,Re,Ft={kind:"loop"},Pr={kind:"switch"}},Wt=Wt=typeof globalThis=="undefined"?void 0:globalThis;Dr(Wt.j||(Wt.j={}));function g(e,t){typeof e=="string"&&(e=Ne(e,"code"));var r=e.constructor;this.ya=function(){return new r({options:{}})};var n=this.ya(),i;for(i in e)n[i]=i==="body"?e[i].slice():e[i];this.ra=n,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var a,s;for(s in this)typeof this[s]=="function"&&(a=s.match(e))&&(this.rb[a[1]]=this[s].bind(this));this.N=Lt(this,this.ra,null),this.Na=this.N.object,this.ra=Ne(this.ba.join(`
6
- `),"polyfills"),this.ba=void 0,dt(this.ra),a=new C(this.ra,this.N),a.done=!1,this.o=[a],this.Eb(),this.value=void 0,this.ra=n,a=new C(this.ra,this.N),a.done=!1,this.o.length=0,this.o[0]=a}var Fn={C:!0,kc:5},Gt={configurable:!0,enumerable:!0,writable:!1},w={configurable:!0,enumerable:!1,writable:!0},ie={configurable:!0,enumerable:!1,writable:!1},Le={configurable:!1,enumerable:!1,writable:!1},Bn={configurable:!1,enumerable:!0,writable:!0},Qn={STEP_ERROR:!0},Be={SCOPE_REFERENCE:!0},Ye={VALUE_IN_DESCRIPTOR:!0},Pe={REGEXP_TIMEOUT:!0},Mn=[],me=null,ze=null,be=typeof globalThis=="undefined"?void 0:globalThis,_r=["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 dt(e,t,r){t?e.start=t:delete e.start,r?e.end=r:delete e.end;for(var n in e)if(n!=="loc"&&e.hasOwnProperty(n)){var i=e[n];i&&typeof i=="object"&&dt(i,t,r)}}g.prototype.REGEXP_MODE=2;g.prototype.REGEXP_THREAD_TIMEOUT=1e3;g.prototype.POLYFILL_TIMEOUT=1e3;W=g.prototype;W.P=!1;W.Ka=!1;W.Kb=0;W.ic=0;function Ne(e,t){var r={},n;for(n in Fn)r[n]=Fn[n];return r.sourceFile=t,be.j.parse(e,r)}W.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=Ne(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};W.lb=function(){var e=this.o,t;do{var r=e[e.length-1];if(this.za)break;if(!r||r.node.type==="Program"&&r.done){if(!this.ca.length)return!1;if(r=this.ca[0],!r||r.time>Date.now())r=null;else{this.ca.shift(),0<=r.interval&&nr(this,r,r.interval);var n=new C(r.node,r.scope);r.zb&&(n.ia=2,n.B=this.Na,n.U=r.zb,n.Qa=!0,n.F=r.Lb),r=n}if(!r)break}n=r.node;var i=ze;ze=this;try{var a=this.rb[n.type](e,r,n)}catch(s){if(s!==Qn)throw this.value!==s&&(this.value=void 0),s}finally{ze=i}if(a&&e.push(a),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||n.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!n.end&&t>Date.now());return!0};W.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Wr(e,t){e.g(t,"NaN",NaN,Le),e.g(t,"Infinity",1/0,Le),e.g(t,"undefined",void 0,Le),e.g(t,"window",t,Gt),e.g(t,"this",t,Le),e.g(t,"self",t),e.M=new M(null),e.Z=new M(e.M),Vr(e,t),Lr(e,t),t.xa=e.M,e.g(t,"constructor",e.v,w),$r(e,t),Hr(e,t),Kr(e,t),Gr(e,t),zr(e,t),Xr(e,t),Yr(e,t),Jr(e,t),qr(e,t);var r=e.i(function(){throw EvalError("Can't happen")},!1);r.eval=!0,e.g(t,"eval",r,w),e.g(t,"parseInt",e.i(parseInt,!1),w),e.g(t,"parseFloat",e.i(parseFloat,!1),w),e.g(t,"isNaN",e.i(isNaN,!1),w),e.g(t,"isFinite",e.i(isFinite,!1),w);for(var n=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],i=0;i<n.length;i++)r=function(a){return function(s){try{return a(s)}catch(d){E(e,e.Gb,d.message)}}}(n[i][0]),e.g(t,n[i][1],e.i(r,!1),w);r=function(a){return Un(e,!1,arguments)},e.g(t,"setTimeout",e.i(r,!1),w),r=function(a){return Un(e,!0,arguments)},e.g(t,"setInterval",e.i(r,!1),w),r=function(a){Dn(e,a)},e.g(t,"clearTimeout",e.i(r,!1),w),r=function(a){Dn(e,a)},e.g(t,"clearInterval",e.i(r,!1),w),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)}W.Wb=0;function Vr(e,t){var r=/^[A-Za-z_$][\w$]*$/,n=function(i){var a=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 d=0;d<s.length;d++){var h=s[d];r.test(h)||E(e,e.T,"Invalid function argument: "+h)}s=s.join(", ")}try{var m=Ne("(function("+s+") {"+a+"})","function"+e.Wb++)}catch(v){E(e,e.T,"Invalid code: "+v.message)}return m.body.length!==1&&E(e,e.T,"Invalid code in function body"),Jt(e,m.body[0].la,e.N,"anonymous")};e.O=e.i(n,!0),e.g(t,"Function",e.O,w),e.g(e.O,"prototype",e.Z,w),e.g(e.Z,"constructor",e.O,w),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,ie),e.Z.H="Function",n=function(i,a){var s=e.o[e.o.length-1];s.U=this,s.B=i,s.F=[],a!=null&&(a instanceof M?s.F=er(e,a):E(e,e.j,"CreateListFromArrayLike called on non-object")),s.eb=!1},q(e,e.O,"apply",n),n=function(i){var a=e.o[e.o.length-1];a.U=this,a.B=i,a.F=[];for(var s=1;s<arguments.length;s++)a.F.push(arguments[s]);a.eb=!1},q(e,e.O,"call",n),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;","}","});",""),n=function(){return String(this)},q(e,e.O,"toString",n),e.g(e.O,"toString",e.i(n,!1),w),n=function(){return this.valueOf()},q(e,e.O,"valueOf",n),e.g(e.O,"valueOf",e.i(n,!1),w)}function Lr(e,t){function r(i){i!=null||E(e,e.j,"Cannot convert '"+i+"' to object")}var n=function(i){if(i==null)return ve(e)?this:e.s(e.M);if(!(i instanceof M)){var a=e.s(ge(e,i));return a.data=i,a}return i};e.v=e.i(n,!0),e.g(e.v,"prototype",e.M,w),e.g(e.M,"constructor",e.v,w),e.g(t,"Object",e.v,w),n=function(i){return r(i),pe(e,Object.getOwnPropertyNames(i instanceof M?i.h:i))},e.g(e.v,"getOwnPropertyNames",e.i(n,!1),w),n=function(i){return r(i),i instanceof M&&(i=i.h),pe(e,Object.keys(i))},e.g(e.v,"keys",e.i(n,!1),w),n=function(i){return i===null?e.s(null):(i instanceof M||E(e,e.j,"Object prototype may only be an Object or null, not "+i),e.s(i))},e.g(e.v,"create",e.i(n,!1),w),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;","};","})();",""),n=function(i,a,s){return a=String(a),i instanceof M||E(e,e.j,"Object.defineProperty called on non-object: "+i),s instanceof M||E(e,e.j,"Property description must be an object"),!i.preventExtensions||a in i.h||E(e,e.j,"Can't define property '"+a+"', object is not extensible"),e.g(i,a,Ye,s.h),i},e.g(e.v,"defineProperty",e.i(n,!1),w),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;","}","});",""),n=function(i,a){if(i instanceof M||E(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+i),a=String(a),a in i.h){var s=Object.getOwnPropertyDescriptor(i.h,a),d=i.V[a];return i=i.Y[a],a=e.s(e.M),d||i?(e.g(a,"get",d),e.g(a,"set",i)):(e.g(a,"value",s.value),e.g(a,"writable",s.writable)),e.g(a,"configurable",s.configurable),e.g(a,"enumerable",s.enumerable),a}},e.g(e.v,"getOwnPropertyDescriptor",e.i(n,!1),w),n=function(i){return r(i),ge(e,i)},e.g(e.v,"getPrototypeOf",e.i(n,!1),w),n=function(i){return!!i&&!i.preventExtensions},e.g(e.v,"isExtensible",e.i(n,!1),w),n=function(i){return i instanceof M&&(i.preventExtensions=!0),i},e.g(e.v,"preventExtensions",e.i(n,!1),w),q(e,e.v,"toString",M.prototype.toString),q(e,e.v,"toLocaleString",M.prototype.toString),q(e,e.v,"valueOf",M.prototype.valueOf),n=function(i){return r(this),this instanceof M?String(i)in this.h:this.hasOwnProperty(i)},q(e,e.v,"hasOwnProperty",n),n=function(i){return r(this),this instanceof M?Object.prototype.propertyIsEnumerable.call(this.h,i):this.propertyIsEnumerable(i)},q(e,e.v,"propertyIsEnumerable",n),n=function(i){for(;;){if(i=ge(e,i),!i)return!1;if(i===this)return!0}},q(e,e.v,"isPrototypeOf",n)}function $r(e,t){var r=function(n){var i=ve(e)?this:Fe(e),a=arguments[0];if(arguments.length===1&&typeof a=="number")isNaN(zt(a))&&E(e,e.ob,"Invalid array length: "+a),i.h.length=a;else{for(a=0;a<arguments.length;a++)i.h[a]=arguments[a];i.h.length=a}return i};e.qa=e.i(r,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,w),r=function(n){return n&&n.H==="Array"},e.g(e.qa,"isArray",e.i(r,!1),w),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 Hr(e,t){var r=function(n){return n=arguments.length?be.String(n):"",ve(e)?(this.data=n,this):n};for(e.J=e.i(r,!0),e.g(t,"String",e.J,w),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),w),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),r=0;r<t.length;r++)q(e,e.J,t[r],String.prototype[t[r]]);r=function(n,i,a){i=e.R(i),a=e.R(a);try{return String(this).localeCompare(n,i,a)}catch(s){E(e,e.D,"localeCompare: "+s.message)}},q(e,e.J,"localeCompare",r),r=function(n,i,a){var s=String(this);if(i=i?Number(i):void 0,Z(e,n,e.I)&&(n=n.data,He(e,n,a),e.REGEXP_MODE===2)){if(me)n=$e(e,"string.split(separator, limit)",{string:s,separator:n,limit:i},n,a),n!==Pe&&a(pe(e,n));else{var d=e.ha(),h=Ke(e,n,d,a);d.onmessage=function(m){clearTimeout(h),a(pe(e,m.data))},d.postMessage(["split",s,n,i])}return}n=s.split(n,i),a(pe(e,n))},Ge(e,e.J,"split",r),r=function(n,i){var a=String(this);if(n=Z(e,n,e.I)?n.data:new RegExp(n),He(e,n,i),e.REGEXP_MODE===2)if(me)n=$e(e,"string.match(regexp)",{string:a,regexp:n},n,i),n!==Pe&&i(n&&pe(e,n));else{var s=e.ha(),d=Ke(e,n,s,i);s.onmessage=function(h){clearTimeout(d),i(h.data&&pe(e,h.data))},s.postMessage(["match",a,n])}else n=a.match(n),i(n&&pe(e,n))},Ge(e,e.J,"match",r),r=function(n,i){var a=String(this);if(Z(e,n,e.I)?n=n.data:n=new RegExp(n),He(e,n,i),e.REGEXP_MODE===2)if(me)n=$e(e,"string.search(regexp)",{string:a,regexp:n},n,i),n!==Pe&&i(n);else{var s=e.ha(),d=Ke(e,n,s,i);s.onmessage=function(h){clearTimeout(d),i(h.data)},s.postMessage(["search",a,n])}else i(a.search(n))},Ge(e,e.J,"search",r),r=function(n,i,a){var s=String(this);if(i=String(i),Z(e,n,e.I)&&(n=n.data,He(e,n,a),e.REGEXP_MODE===2)){if(me)n=$e(e,"string.replace(substr, newSubstr)",{string:s,substr:n,newSubstr:i},n,a),n!==Pe&&a(n);else{var d=e.ha(),h=Ke(e,n,d,a);d.onmessage=function(m){clearTimeout(h),a(m.data)},d.postMessage(["replace",s,n,i])}return}a(s.replace(n,i))},Ge(e,e.J,"replace",r),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 Kr(e,t){e.mb=e.i(function(r){return r=be.Boolean(r),ve(e)?(this.data=r,this):r},!0),e.g(t,"Boolean",e.mb,w)}function Gr(e,t){var r=function(n){return n=arguments.length?be.Number(n):0,ve(e)?(this.data=n,this):n};for(e.aa=e.i(r,!0),e.g(t,"Number",e.aa,w),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],r=0;r<t.length;r++)e.g(e.aa,t[r],Number[t[r]],Le);r=function(n){try{return Number(this).toExponential(n)}catch(i){E(e,e.D,i.message)}},q(e,e.aa,"toExponential",r),r=function(n){try{return Number(this).toFixed(n)}catch(i){E(e,e.D,i.message)}},q(e,e.aa,"toFixed",r),r=function(n){try{return Number(this).toPrecision(n)}catch(i){E(e,e.D,i.message)}},q(e,e.aa,"toPrecision",r),r=function(n){try{return Number(this).toString(n)}catch(i){E(e,e.D,i.message)}},q(e,e.aa,"toString",r),r=function(n,i){n=n?e.R(n):void 0,i=i?e.R(i):void 0;try{return Number(this).toLocaleString(n,i)}catch(a){E(e,e.D,"toLocaleString: "+a.message)}},q(e,e.aa,"toLocaleString",r)}function zr(e,t){var r=function(i,a){if(!ve(e))return be.Date();var s=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(be.Date,s)),this};e.$=e.i(r,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,w),e.g(e.$,"now",e.i(Date.now,!1),w),e.g(e.$,"parse",e.i(Date.parse,!1),w),e.g(e.$,"UTC",e.i(Date.UTC,!1),w),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 n=0;n<t.length;n++)r=function(i){return function(a){var s=this.data;s instanceof Date||E(e,e.j,i+" not called on a Date");for(var d=[],h=0;h<arguments.length;h++)d[h]=e.R(arguments[h]);return s[i].apply(s,d)}}(t[n]),q(e,e.$,t[n],r)}function Xr(e,t){var r=function(n,i){if(ve(e))var a=this;else{if(i===void 0&&Z(e,n,e.I))return n;a=e.s(e.Ma)}n=n===void 0?"":String(n),i=i?String(i):"",/^[gmi]*$/.test(i)||E(e,e.T,"Invalid regexp flag: "+i);try{var s=new be.RegExp(n,i)}catch(d){E(e,e.T,d.message)}return Xt(e,a,s),a};e.I=e.i(r,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,w),e.g(e.I.h.prototype,"global",void 0,ie),e.g(e.I.h.prototype,"ignoreCase",void 0,ie),e.g(e.I.h.prototype,"multiline",void 0,ie),e.g(e.I.h.prototype,"source","(?:)",ie),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),r=function(n,i){function a(v){if(v){var S=pe(e,v);return e.g(S,"index",v.index),e.g(S,"input",v.input),S}return null}var s=this.data;if(n=String(n),s.lastIndex=Number(e.G(this,"lastIndex")),He(e,s,i),e.REGEXP_MODE===2)if(me)n=$e(e,"regexp.exec(string)",{string:n,regexp:s},s,i),n!==Pe&&(e.g(this,"lastIndex",s.lastIndex),i(a(n)));else{var d=e.ha(),h=Ke(e,s,d,i),m=this;d.onmessage=function(v){clearTimeout(h),e.g(m,"lastIndex",v.data[1]),i(a(v.data[0]))},d.postMessage(["exec",s,s.lastIndex,n])}else n=s.exec(n),e.g(this,"lastIndex",s.lastIndex),i(a(n))},Ge(e,e.I,"exec",r)}function Yr(e,t){function r(n){var i=e.i(function(a){var s=ve(e)?this:e.Aa(i);return Vt(e,s,a),s},!0);return e.g(i,"prototype",e.Aa(e.D),w),e.g(i.h.prototype,"name",n,w),e.g(t,n,i,w),i}e.D=e.i(function(n){var i=ve(e)?this:e.Aa(e.D);return Vt(e,i,n),i},!0),e.g(t,"Error",e.D,w),e.g(e.D.h.prototype,"message","",w),e.g(e.D.h.prototype,"name","Error",w),r("EvalError"),e.ob=r("RangeError"),e.pb=r("ReferenceError"),e.T=r("SyntaxError"),e.j=r("TypeError"),e.Gb=r("URIError")}function Jr(e,t){var r=e.s(e.M);e.g(t,"Math",r,w);var n="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<n.length;t++)e.g(r,n[t],Math[n[t]],ie);for(n="abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "),t=0;t<n.length;t++)e.g(r,n[t],e.i(Math[n[t]],!1),w)}function qr(e,t){var r=e.s(e.M);e.g(t,"JSON",r,w),t=function(n){try{var i=JSON.parse(String(n))}catch(a){E(e,e.T,a.message)}return e.Ia(i)},e.g(r,"parse",e.i(t,!1)),t=function(n,i,a){i&&i.H==="Function"?E(e,e.j,"Function replacer on JSON.stringify not supported"):i&&i.H==="Array"?(i=er(e,i),i=i.filter(function(d){return typeof d=="string"||typeof d=="number"})):i=null,typeof a!="string"&&typeof a!="number"&&(a=void 0),n=e.R(n);try{var s=JSON.stringify(n,i,a)}catch(d){E(e,e.j,d.message)}return s},e.g(r,"stringify",e.i(t,!1))}function Z(e,t,r){if(t==null||!r)return!1;if(r=r.h.prototype,t===r)return!0;for(t=ge(e,t);t;){if(t===r)return!0;t=t.xa}return!1}function Xt(e,t,r){t.data=new RegExp(r.source,r.flags),e.g(t,"lastIndex",r.lastIndex,w),e.g(t,"source",r.source,ie),e.g(t,"global",r.global,ie),e.g(t,"ignoreCase",r.ignoreCase,ie),e.g(t,"multiline",r.multiline,ie)}function Vt(e,t,r){r&&e.g(t,"message",String(r),w),r=[];for(var n=e.o.length-1;0<=n;n--){var i=e.o[n],a=i.node;a.type==="CallExpression"&&(i=i.U)&&r.length&&(r[r.length-1].Ob=e.G(i,"name")),!a.X||r.length&&a.type!=="CallExpression"||r.push({Nb:a.X})}for(n=String(e.G(t,"name")),a=String(e.G(t,"message")),a=n+": "+a+`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),k=require("react"),y=require("./server-entry-df9eba5d.cjs");function Gn(e){return u.jsx(u.Fragment,{children:e.link?u.jsx(u.Fragment,{children:u.jsx("a",{...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"button",children:e.text})}):u.jsx(u.Fragment,{children:u.jsx("button",{role:"button",...e.attributes,className:`builder-button ${e.attributes.className}`,style:e.attributes.style,children:e.text})})})}const Lt=k.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}}),zn=k.createContext({registeredComponents:{}});function Pr(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const Xn=({builder:e,context:t,event:r,state:n})=>Object.entries({state:n,Builder:e,builder:e,context:t,event:r}),Nr=()=>({isEditing:y.isEditing(),isBrowser:y.isBrowser(),isServer:!y.isBrowser(),getUserAttributes:()=>y.getUserAttributes()}),Fr=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,Br=({code:e,builder:t,context:r,event:n,localState:i,rootSetState:a,rootState:s})=>{const d=Xn({builder:t,context:r,event:n,state:Mr(s,i,a)});return new Function(...d.map(([h])=>h),e)(...d.map(([,h])=>h))};function Mr(e,t,r){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(n,i)=>t&&i in t?t[i]:e[i],set:(n,i,a)=>{if(t&&i in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[i]=a,r==null||r(e),!0}})}const Yn=(e,t,r)=>{if(Object(e)!==e)return e;const n=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return n.slice(0,-1).reduce((i,a,s)=>Object(i[a])===i[a]?i[a]:i[a]=Math.abs(Number(n[s+1]))>>0===+n[s+1]?[]:{},e)[n[n.length-1]]=r,e};var W,Ur=function(e){function t(o){return 48>o?o===36:58>o?!0:65>o?!1:91>o?!0:97>o?o===95:123>o?!0:170<=o&&Rr.test(String.fromCharCode(o))}function r(o){return 65>o?o===36:91>o?!0:97>o?o===95:123>o?!0:170<=o&&On.test(String.fromCharCode(o))}function n(o,l){for(var c=S,p=1,O=0;;){st.lastIndex=O;var J=st.exec(c);if(J&&J.index<o)++p,O=J.index+J[0].length;else break}throw c={line:p,ab:o-O},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=o,l.X=c,l.o=f,l}function i(o){o=o.split(" ");for(var l=Object.create(null),c=0;c<o.length;c++)l[o[c]]=!0;return function(p){return l[p]||!1}}function a(){this.line=ke,this.ab=f-de}function s(o,l){Ie=f,N.C&&(St=new a),R=o,h(),se=l,Ue=o.m}function d(){for(var o=f,l=N.va&&N.C&&new a,c=S.charCodeAt(f+=2);f<je&&c!==10&&c!==13&&c!==8232&&c!==8233;)++f,c=S.charCodeAt(f);N.va&&N.va(!1,S.slice(o+2,f),o,f,l,N.C&&new a)}function h(){for(;f<je;){var o=S.charCodeAt(f);if(o===32)++f;else if(o===13)++f,o=S.charCodeAt(f),o===10&&++f,N.C&&(++ke,de=f);else if(o===10||o===8232||o===8233)++f,N.C&&(++ke,de=f);else if(8<o&&14>o)++f;else if(o===47)if(o=S.charCodeAt(f+1),o===42){o=void 0;var l=N.va&&N.C&&new a,c=f,p=S.indexOf("*/",f+=2);if(p===-1&&n(f-2,"Unterminated comment"),f=p+2,N.C)for(st.lastIndex=c;(o=st.exec(S))&&o.index<f;)++ke,de=o.index+o[0].length;N.va&&N.va(!0,S.slice(c+2,p),c,f,l,N.C&&new a)}else if(o===47)d();else break;else if(o===160)++f;else if(5760<=o&&Ar.test(String.fromCharCode(o)))++f;else break}}function m(o){switch(o){case 46:o=S.charCodeAt(f+1),48<=o&&57>=o?P(!0):(++f,s(kn));return;case 40:return++f,s(fe);case 41:return++f,s(ce);case 59:return++f,s(he);case 44:return++f,s(xe);case 91:return++f,s(Ot);case 93:return++f,s(Pt);case 123:return++f,s(We);case 125:return++f,s(Ae);case 58:return++f,s(Ve);case 63:return++f,s(Cn);case 48:if(o=S.charCodeAt(f+1),o===120||o===88){f+=2,o=M(16),o===null&&n(X+2,"Expected hexadecimal number"),r(S.charCodeAt(f))&&n(f,"Identifier directly after number"),s(_e,o);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return P(!1);case 34:case 39:f++;for(var l="";;){f>=je&&n(X,"Unterminated string constant");var c=S.charCodeAt(f);if(c===o){++f,s(rt,l);break}if(c===92){c=S.charCodeAt(++f);var p=/^[0-7]+/.exec(S.slice(f,f+3));for(p&&(p=p[0]);p&&255<parseInt(p,8);)p=p.slice(0,-1);if(p==="0"&&(p=null),++f,p)oe&&n(f-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(p,8)),f+=p.length-1;else switch(c){case 110:l+=`
2
+ `;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(F(2));break;case 117:l+=String.fromCharCode(F(4));break;case 85:l+=String.fromCharCode(F(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:S.charCodeAt(f)===10&&++f;case 10:N.C&&(de=f,++ke);break;default:l+=String.fromCharCode(c)}}else c!==13&&c!==10&&c!==8232&&c!==8233||n(X,"Unterminated string constant"),l+=String.fromCharCode(c),++f}return;case 47:o=S.charCodeAt(f+1),Ue?(++f,D()):o===61?x(Ce,2):x(En,1);return;case 37:case 42:S.charCodeAt(f+1)===61?x(Ce,2):x(jr,1);return;case 124:case 38:l=S.charCodeAt(f+1),l===o?x(o===124?Tn:An,2):l===61?x(Ce,2):x(o===124?xr:Sr,1);return;case 94:S.charCodeAt(f+1)===61?x(Ce,2):x(br,1);return;case 43:case 45:l=S.charCodeAt(f+1),l===o?l===45&&S.charCodeAt(f+2)===62&&at.test(S.slice(ve,f))?(f+=3,d(),h(),v()):x(vr,2):l===61?x(Ce,2):x(Er,1);return;case 60:case 62:l=S.charCodeAt(f+1),c=1,l===o?(c=o===62&&S.charCodeAt(f+2)===62?3:2,S.charCodeAt(f+c)===61?x(Ce,c+1):x(Cr,c)):l===33&&o===60&&S.charCodeAt(f+2)===45&&S.charCodeAt(f+3)===45?(f+=4,d(),h(),v()):(l===61&&(c=S.charCodeAt(f+2)===61?3:2),x(kr,c));return;case 61:case 33:S.charCodeAt(f+1)===61?x(wr,S.charCodeAt(f+2)===61?3:2):x(o===61?jn:In,1);return;case 126:return x(In,1)}return!1}function v(o){if(o?f=X+1:X=f,N.C&&(bt=new a),o)return D();if(f>=je)return s(Ct);if(o=S.charCodeAt(f),r(o)||o===92)return Y();if(m(o)===!1){if(o=String.fromCharCode(o),o==="\\"||On.test(o))return Y();n(f,"Unexpected character '"+o+"'")}}function x(o,l){var c=S.slice(f,f+l);f+=l,s(o,c)}function D(){for(var o,l,c=f;;){f>=je&&n(c,"Unterminated regexp");var p=S.charAt(f);if(at.test(p)&&n(c,"Unterminated regexp"),o)o=!1;else{if(p==="[")l=!0;else if(p==="]"&&l)l=!1;else if(p==="/"&&!l)break;o=p==="\\"}++f}o=S.slice(c,f),++f,(l=L())&&!/^[gmi]*$/.test(l)&&n(c,"Invalid regexp flag");try{var O=new RegExp(o,l)}catch(J){throw J instanceof SyntaxError&&n(c,J.message),J}s(rn,O)}function M(o,l){for(var c=f,p=0,O=l===void 0?1/0:l,J=0;J<O;++J){var ne=S.charCodeAt(f);if(ne=97<=ne?ne-97+10:65<=ne?ne-65+10:48<=ne&&57>=ne?ne-48:1/0,ne>=o)break;++f,p=p*o+ne}return f===c||l!==void 0&&f-c!==l?null:p}function P(o){var l=f,c=!1,p=S.charCodeAt(f)===48;o||M(10)!==null||n(l,"Invalid number"),S.charCodeAt(f)===46&&(++f,M(10),c=!0),o=S.charCodeAt(f),(o===69||o===101)&&(o=S.charCodeAt(++f),o!==43&&o!==45||++f,M(10)===null&&n(l,"Invalid number"),c=!0),r(S.charCodeAt(f))&&n(f,"Identifier directly after number"),o=S.slice(l,f);var O;c?O=parseFloat(o):p&&o.length!==1?/[89]/.test(o)||oe?n(l,"Invalid number"):O=parseInt(o,8):O=parseInt(o,10),s(_e,O)}function F(o){return o=M(16,o),o===null&&n(X,"Bad character escape sequence"),o}function L(){Re=!1;for(var o,l=!0,c=f;;){var p=S.charCodeAt(f);if(t(p))Re&&(o+=S.charAt(f)),++f;else if(p===92){Re||(o=S.slice(c,f)),Re=!0,S.charCodeAt(++f)!==117&&n(f,"Expecting Unicode escape sequence \\uXXXX"),++f,p=F(4);var O=String.fromCharCode(p);O||n(f-1,"Invalid Unicode escape"),(l?r(p):t(p))||n(f-4,"Invalid Unicode escape"),o+=O}else break;l=!1}return Re?o:S.slice(c,f)}function Y(){var o=L(),l=Te;!Re&&Tr(o)&&(l=yr[o]),s(l,o)}function b(){wt=X,ve=Ie,kt=St,v()}function K(o){if(oe=o,f=X,N.C)for(;f<de;)de=S.lastIndexOf(`
3
+ `,de-2)+1,--ke;h(),v()}function ee(){this.type=null,this.start=X,this.end=null}function ae(){this.start=bt,this.end=null,xt&&(this.source=xt)}function $(){var o=new ee;return N.C&&(o.X=new ae),N.vb&&(o.sourceFile=N.vb),N.Xa&&(o.j=[X,0]),o}function te(o){var l=new ee;return l.start=o.start,N.C&&(l.X=new ae,l.X.start=o.X.start),N.Xa&&(l.j=[o.j[0],0]),l}function I(o,l){return o.type=l,o.end=ve,N.C&&(o.X.end=kt),N.Xa&&(o.j[1]=ve),o}function Ee(o){return o.type==="ExpressionStatement"&&o.la.type==="Literal"&&o.la.value==="use strict"}function V(o){return R===o?(b(),!0):!1}function Se(){return!N.fc&&(R===Ct||R===Ae||at.test(S.slice(ve,X)))}function le(){V(he)||Se()||E()}function H(o){R===o?b():E()}function E(){n(X,"Unexpected token")}function T(o){o.type!=="Identifier"&&o.type!=="MemberExpression"&&n(o.start,"Assigning to rvalue"),oe&&o.type==="Identifier"&&ot(o.name)&&n(o.start,"Assigning to "+o.name+" in strict mode")}function A(){(R===En||R===Ce&&se==="/=")&&v(!0);var o=R,l=$();switch(o){case Et:case an:b();var c=o===Et;V(he)||Se()?l.label=null:R!==Te?E():(l.label=ue(),le());for(var p=0;p<z.length;++p){var O=z[p];if((l.label===null||O.name===l.label.name)&&(O.kind!==null&&(c||O.kind==="loop")||l.label&&c))break}return p===z.length&&n(l.start,"Unsyntactic "+o.l),I(l,c?"BreakStatement":"ContinueStatement");case sn:return b(),le(),I(l,"DebuggerStatement");case cn:return b(),z.push(Nt),l.body=A(),z.pop(),H(Rt),l.test=B(),le(),I(l,"DoWhileStatement");case fn:return b(),z.push(Nt),H(fe),R===he?G(l,null):R===At?(o=$(),b(),tt(o,!0),I(o,"VariableDeclaration"),o.fa.length===1&&V(it)?we(l,o):G(l,o)):(o=Q(!1,!0),V(it)?(T(o),we(l,o)):G(l,o));case It:return b(),yt(l,!0);case hn:return b(),l.test=B(),l.da=A(),l.alternate=V(un)?A():null,I(l,"IfStatement");case pn:return De||N.Ib||n(X,"'return' outside of function"),b(),V(he)||Se()?l.K=null:(l.K=Q(),le()),I(l,"ReturnStatement");case Tt:for(b(),l.Qb=B(),l.tb=[],H(We),z.push(Or);R!==Ae;)R===jt||R===ln?(o=R===jt,p&&I(p,"SwitchCase"),l.tb.push(p=$()),p.da=[],b(),o?p.test=Q():(c&&n(wt,"Multiple default clauses"),c=!0,p.test=null),H(Ve)):(p||E(),p.da.push(A()));return p&&I(p,"SwitchCase"),b(),z.pop(),I(l,"SwitchStatement");case mn:return b(),at.test(S.slice(ve,X))&&n(ve,"Illegal newline after throw"),l.K=Q(),le(),I(l,"ThrowStatement");case gn:return b(),l.block=_(),l.Ea=null,R===on&&(o=$(),b(),H(fe),o.Ua=ue(),oe&&ot(o.Ua.name)&&n(o.Ua.start,"Binding "+o.Ua.name+" in strict mode"),H(ce),o.body=_(),l.Ea=I(o,"CatchClause")),l.fb=V(dn)?_():null,l.Ea||l.fb||n(l.start,"Missing catch or finally clause"),I(l,"TryStatement");case At:return b(),tt(l),le(),I(l,"VariableDeclaration");case Rt:return b(),l.test=B(),z.push(Nt),l.body=A(),z.pop(),I(l,"WhileStatement");case yn:return oe&&n(X,"'with' in strict mode"),b(),l.object=B(),l.body=A(),I(l,"WithStatement");case We:return _();case he:return b(),I(l,"EmptyStatement");default:if(c=se,O=Q(),o===Te&&O.type==="Identifier"&&V(Ve)){for(p=0;p<z.length;++p)z[p].name===c&&n(O.start,"Label '"+c+"' is already declared");return z.push({name:c,kind:R.W?"loop":R===Tt?"switch":null}),l.body=A(),z.pop(),l.label=O,I(l,"LabeledStatement")}return l.la=O,le(),I(l,"ExpressionStatement")}}function B(){H(fe);var o=Q();return H(ce),o}function _(o){var l=$(),c=!0,p=!1;for(l.body=[],H(We);!V(Ae);){var O=A();if(l.body.push(O),c&&o&&Ee(O)){var J=p;K(p=!0)}c=!1}return p&&!J&&K(!1),I(l,"BlockStatement")}function G(o,l){return o.ua=l,H(he),o.test=R===he?null:Q(),H(he),o.update=R===ce?null:Q(),H(ce),o.body=A(),z.pop(),I(o,"ForStatement")}function we(o,l){return o.left=l,o.right=Q(),H(ce),o.body=A(),z.pop(),I(o,"ForInStatement")}function tt(o,l){for(o.fa=[],o.kind="var";;){var c=$();if(c.id=ue(),oe&&ot(c.id.name)&&n(c.id.start,"Binding "+c.id.name+" in strict mode"),c.ua=V(jn)?Q(!0,l):null,o.fa.push(I(c,"VariableDeclarator")),!V(xe))break}}function Q(o,l){var c=pt(l);if(!o&&R===xe){for(o=te(c),o.xb=[c];V(xe);)o.xb.push(pt(l));return I(o,"SequenceExpression")}return c}function pt(o){var l=mt(gt(),-1,o);if(V(Cn)){var c=te(l);c.test=l,c.da=Q(!0),H(Ve),c.alternate=Q(!0,o),l=I(c,"ConditionalExpression")}return R.Cb?(c=te(l),c.operator=se,c.left=l,b(),c.right=pt(o),T(l),I(c,"AssignmentExpression")):l}function mt(o,l,c){var p=R.L;if(p!==null&&(!c||R!==it)&&p>l){var O=te(o);return O.left=o,O.operator=se,o=R,b(),O.right=mt(gt(),p,c),p=I(O,o===Tn||o===An?"LogicalExpression":"BinaryExpression"),mt(p,l,c)}return o}function gt(){if(R.prefix){var o=$(),l=R.$b;return o.operator=se,Ue=o.prefix=!0,b(),o.K=gt(),l?T(o.K):oe&&o.operator==="delete"&&o.K.type==="Identifier"&&n(o.start,"Deleting local variable in strict mode"),I(o,l?"UpdateExpression":"UnaryExpression")}for(l=Me(nt());R.cc&&!Se();)o=te(l),o.operator=se,o.prefix=!1,o.K=l,T(l),b(),l=I(o,"UpdateExpression");return l}function Me(o,l){if(V(kn)){var c=te(o);return c.object=o,c.Wa=ue(!0),c.bb=!1,Me(I(c,"MemberExpression"),l)}return V(Ot)?(c=te(o),c.object=o,c.Wa=Q(),c.bb=!0,H(Pt),Me(I(c,"MemberExpression"),l)):!l&&V(fe)?(c=te(o),c.callee=o,c.arguments=vt(ce,!1),Me(I(c,"CallExpression"),l)):o}function nt(){switch(R){case xn:var o=$();return b(),I(o,"ThisExpression");case Te:return ue();case _e:case rt:case rn:return o=$(),o.value=se,o.raw=S.slice(X,Ie),b(),I(o,"Literal");case bn:case Sn:case wn:return o=$(),o.value=R.$a,o.raw=R.l,b(),I(o,"Literal");case fe:o=bt;var l=X;b();var c=Q();return c.start=l,c.end=Ie,N.C&&(c.X.start=o,c.X.end=St),N.Xa&&(c.j=[l,Ie]),H(ce),c;case Ot:return o=$(),b(),o.elements=vt(Pt,!0,!0),I(o,"ArrayExpression");case We:for(o=$(),l=!0,c=!1,o.h=[],b();!V(Ae);){if(l)l=!1;else if(H(xe),N.sb&&V(Ae))break;var p={key:R===_e||R===rt?nt():ue(!0)},O=!1;if(V(Ve)){p.value=Q(!0);var J=p.kind="init"}else p.key.type!=="Identifier"||p.key.name!=="get"&&p.key.name!=="set"?E():(O=c=!0,J=p.kind=p.key.name,p.key=R===_e||R===rt?nt():ue(!0),R!==fe&&E(),p.value=yt($(),!1));if(p.key.type==="Identifier"&&(oe||c))for(var ne=0;ne<o.h.length;++ne){var Oe=o.h[ne];if(Oe.key.name===p.key.name){var Ft=J===Oe.kind||O&&Oe.kind==="init"||J==="init"&&(Oe.kind==="get"||Oe.kind==="set");Ft&&!oe&&J==="init"&&Oe.kind==="init"&&(Ft=!1),Ft&&n(p.key.start,"Redefinition of property")}}o.h.push(p)}return I(o,"ObjectExpression");case It:return o=$(),b(),yt(o,!1);case vn:return o=$(),b(),o.callee=Me(nt(),!0),o.arguments=V(fe)?vt(ce,!1):gr,I(o,"NewExpression")}E()}function yt(o,l){R===Te?o.id=ue():l?E():o.id=null,o.oa=[];var c=!0;for(H(fe);!V(ce);)c?c=!1:H(xe),o.oa.push(ue());c=De;var p=z;if(De=!0,z=[],o.body=_(!0),De=c,z=p,oe||o.body.body.length&&Ee(o.body.body[0])){for(c=o.id?-1:0;c<o.oa.length;++c)if(p=0>c?o.id:o.oa[c],(Rn(p.name)||ot(p.name))&&n(p.start,"Defining '"+p.name+"' in strict mode"),0<=c)for(var O=0;O<c;++O)p.name===o.oa[O].name&&n(p.start,"Argument name clash in strict mode")}return I(o,l?"FunctionDeclaration":"FunctionExpression")}function vt(o,l,c){for(var p=[],O=!0;!V(o);){if(O)O=!1;else if(H(xe),l&&N.sb&&V(o))break;p.push(c&&R===xe?null:Q(!0))}return p}function ue(o){var l=$();return o&&N.yb==="everywhere"&&(o=!1),R===Te?(!o&&(N.yb&&Ir(se)||oe&&Rn(se))&&S.slice(X,Ie).indexOf("\\")===-1&&n(X,"The keyword '"+se+"' is reserved"),l.name=se):o&&R.l?l.name=R.l:E(),Ue=!1,b(),I(l,"Identifier")}e.version="0.5.0";var N,S="",je,xt;e.parse=function(o,l){S=String(o),je=S.length,N=l||{};for(var c in nn)Object.prototype.hasOwnProperty.call(N,c)||(N[c]=nn[c]);for(xt=N.sourceFile,ke=1,f=de=0,Ue=!0,h(),c=N.dc,wt=ve=f,N.C&&(kt=new a),De=oe=!1,z=[],v(),o=c||$(),l=!0,c||(o.body=[]);R!==Ct;)c=A(),o.body.push(c),l&&Ee(c)&&K(!0),l=!1;return I(o,"Program")};var nn={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},f=0,X=0,Ie=0,bt,St,R,se,Ue,ke,de,wt=0,ve=0,kt,De,z,oe,gr=[],_e={type:"num"},rn={type:"regexp"},rt={type:"string"},Te={type:"name"},Ct={type:"eof"},Et={l:"break"},jt={l:"case",m:!0},on={l:"catch"},an={l:"continue"},sn={l:"debugger"},ln={l:"default"},cn={l:"do",W:!0},un={l:"else",m:!0},dn={l:"finally"},fn={l:"for",W:!0},It={l:"function"},hn={l:"if"},pn={l:"return",m:!0},Tt={l:"switch"},mn={l:"throw",m:!0},gn={l:"try"},At={l:"var"},Rt={l:"while",W:!0},yn={l:"with"},vn={l:"new",m:!0},xn={l:"this"},bn={l:"null",$a:null},Sn={l:"true",$a:!0},wn={l:"false",$a:!1},it={l:"in",L:7,m:!0},yr={break:Et,case:jt,catch:on,continue:an,debugger:sn,default:ln,do:cn,else:un,finally:dn,for:fn,function:It,if:hn,return:pn,switch:Tt,throw:mn,try:gn,var:At,while:Rt,with:yn,null:bn,true:Sn,false:wn,new:vn,in:it,instanceof:{l:"instanceof",L:7,m:!0},this:xn,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Ot={type:"[",m:!0},Pt={type:"]"},We={type:"{",m:!0},Ae={type:"}"},fe={type:"(",m:!0},ce={type:")"},xe={type:",",m:!0},he={type:";",m:!0},Ve={type:":",m:!0},kn={type:"."},Cn={type:"?",m:!0},En={L:10,m:!0},jn={Cb:!0,m:!0},Ce={Cb:!0,m:!0},vr={cc:!0,prefix:!0,$b:!0},In={prefix:!0,m:!0},Tn={L:1,m:!0},An={L:2,m:!0},xr={L:3,m:!0},br={L:4,m:!0},Sr={L:5,m:!0},wr={L:6,m:!0},kr={L:7,m:!0},Cr={L:8,m:!0},Er={L:9,prefix:!0,m:!0},jr={L:10,m:!0},Ir=i("class enum extends super const export import"),Rn=i("implements interface let package private protected public static yield"),ot=i("eval arguments"),Tr=i("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"),Ar=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,On=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),Rr=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),at=/[\n\r\u2028\u2029]/,st=/\r\n|[\n\r\u2028\u2029]/g,Re,Nt={kind:"loop"},Or={kind:"switch"}},Dt=Dt=typeof globalThis=="undefined"?void 0:globalThis;Ur(Dt.j||(Dt.j={}));function g(e,t){typeof e=="string"&&(e=Ne(e,"code"));var r=e.constructor;this.ya=function(){return new r({options:{}})};var n=this.ya(),i;for(i in e)n[i]=i==="body"?e[i].slice():e[i];this.ra=n,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var a,s;for(s in this)typeof this[s]=="function"&&(a=s.match(e))&&(this.rb[a[1]]=this[s].bind(this));this.N=Wt(this,this.ra,null),this.Na=this.N.object,this.ra=Ne(this.ba.join(`
4
+ `),"polyfills"),this.ba=void 0,ut(this.ra),a=new C(this.ra,this.N),a.done=!1,this.o=[a],this.Eb(),this.value=void 0,this.ra=n,a=new C(this.ra,this.N),a.done=!1,this.o.length=0,this.o[0]=a}var Pn={C:!0,kc:5},$t={configurable:!0,enumerable:!0,writable:!1},w={configurable:!0,enumerable:!1,writable:!0},ie={configurable:!0,enumerable:!1,writable:!1},Le={configurable:!1,enumerable:!1,writable:!1},Nn={configurable:!1,enumerable:!0,writable:!0},Jn={STEP_ERROR:!0},Be={SCOPE_REFERENCE:!0},Ye={VALUE_IN_DESCRIPTOR:!0},Pe={REGEXP_TIMEOUT:!0},Fn=[],me=null,ze=null,be=typeof globalThis=="undefined"?void 0:globalThis,Dr=["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 Ht(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 ut(e,t,r){t?e.start=t:delete e.start,r?e.end=r:delete e.end;for(var n in e)if(n!=="loc"&&e.hasOwnProperty(n)){var i=e[n];i&&typeof i=="object"&&ut(i,t,r)}}g.prototype.REGEXP_MODE=2;g.prototype.REGEXP_THREAD_TIMEOUT=1e3;g.prototype.POLYFILL_TIMEOUT=1e3;W=g.prototype;W.P=!1;W.Ka=!1;W.Kb=0;W.ic=0;function Ne(e,t){var r={},n;for(n in Pn)r[n]=Pn[n];return r.sourceFile=t,be.j.parse(e,r)}W.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=Ne(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};W.lb=function(){var e=this.o,t;do{var r=e[e.length-1];if(this.za)break;if(!r||r.node.type==="Program"&&r.done){if(!this.ca.length)return!1;if(r=this.ca[0],!r||r.time>Date.now())r=null;else{this.ca.shift(),0<=r.interval&&Qn(this,r,r.interval);var n=new C(r.node,r.scope);r.zb&&(n.ia=2,n.B=this.Na,n.U=r.zb,n.Qa=!0,n.F=r.Lb),r=n}if(!r)break}n=r.node;var i=ze;ze=this;try{var a=this.rb[n.type](e,r,n)}catch(s){if(s!==Jn)throw this.value!==s&&(this.value=void 0),s}finally{ze=i}if(a&&e.push(a),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||n.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!n.end&&t>Date.now());return!0};W.Eb=function(){for(;!this.za&&this.lb(););return this.za};function _r(e,t){e.g(t,"NaN",NaN,Le),e.g(t,"Infinity",1/0,Le),e.g(t,"undefined",void 0,Le),e.g(t,"window",t,$t),e.g(t,"this",t,Le),e.g(t,"self",t),e.M=new U(null),e.Z=new U(e.M),Wr(e,t),Vr(e,t),t.xa=e.M,e.g(t,"constructor",e.v,w),Lr(e,t),$r(e,t),Hr(e,t),Kr(e,t),Gr(e,t),zr(e,t),Xr(e,t),Yr(e,t),Jr(e,t);var r=e.i(function(){throw EvalError("Can't happen")},!1);r.eval=!0,e.g(t,"eval",r,w),e.g(t,"parseInt",e.i(parseInt,!1),w),e.g(t,"parseFloat",e.i(parseFloat,!1),w),e.g(t,"isNaN",e.i(isNaN,!1),w),e.g(t,"isFinite",e.i(isFinite,!1),w);for(var n=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],i=0;i<n.length;i++)r=function(a){return function(s){try{return a(s)}catch(d){j(e,e.Gb,d.message)}}}(n[i][0]),e.g(t,n[i][1],e.i(r,!1),w);r=function(a){return Bn(e,!1,arguments)},e.g(t,"setTimeout",e.i(r,!1),w),r=function(a){return Bn(e,!0,arguments)},e.g(t,"setInterval",e.i(r,!1),w),r=function(a){Mn(e,a)},e.g(t,"clearTimeout",e.i(r,!1),w),r=function(a){Mn(e,a)},e.g(t,"clearInterval",e.i(r,!1),w),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)}W.Wb=0;function Wr(e,t){var r=/^[A-Za-z_$][\w$]*$/,n=function(i){var a=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 d=0;d<s.length;d++){var h=s[d];r.test(h)||j(e,e.T,"Invalid function argument: "+h)}s=s.join(", ")}try{var m=Ne("(function("+s+") {"+a+"})","function"+e.Wb++)}catch(v){j(e,e.T,"Invalid code: "+v.message)}return m.body.length!==1&&j(e,e.T,"Invalid code in function body"),zt(e,m.body[0].la,e.N,"anonymous")};e.O=e.i(n,!0),e.g(t,"Function",e.O,w),e.g(e.O,"prototype",e.Z,w),e.g(e.Z,"constructor",e.O,w),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,ie),e.Z.H="Function",n=function(i,a){var s=e.o[e.o.length-1];s.U=this,s.B=i,s.F=[],a!=null&&(a instanceof U?s.F=qn(e,a):j(e,e.j,"CreateListFromArrayLike called on non-object")),s.eb=!1},q(e,e.O,"apply",n),n=function(i){var a=e.o[e.o.length-1];a.U=this,a.B=i,a.F=[];for(var s=1;s<arguments.length;s++)a.F.push(arguments[s]);a.eb=!1},q(e,e.O,"call",n),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;","}","});",""),n=function(){return String(this)},q(e,e.O,"toString",n),e.g(e.O,"toString",e.i(n,!1),w),n=function(){return this.valueOf()},q(e,e.O,"valueOf",n),e.g(e.O,"valueOf",e.i(n,!1),w)}function Vr(e,t){function r(i){i!=null||j(e,e.j,"Cannot convert '"+i+"' to object")}var n=function(i){if(i==null)return ye(e)?this:e.s(e.M);if(!(i instanceof U)){var a=e.s(ge(e,i));return a.data=i,a}return i};e.v=e.i(n,!0),e.g(e.v,"prototype",e.M,w),e.g(e.M,"constructor",e.v,w),e.g(t,"Object",e.v,w),n=function(i){return r(i),pe(e,Object.getOwnPropertyNames(i instanceof U?i.h:i))},e.g(e.v,"getOwnPropertyNames",e.i(n,!1),w),n=function(i){return r(i),i instanceof U&&(i=i.h),pe(e,Object.keys(i))},e.g(e.v,"keys",e.i(n,!1),w),n=function(i){return i===null?e.s(null):(i instanceof U||j(e,e.j,"Object prototype may only be an Object or null, not "+i),e.s(i))},e.g(e.v,"create",e.i(n,!1),w),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;","};","})();",""),n=function(i,a,s){return a=String(a),i instanceof U||j(e,e.j,"Object.defineProperty called on non-object: "+i),s instanceof U||j(e,e.j,"Property description must be an object"),!i.preventExtensions||a in i.h||j(e,e.j,"Can't define property '"+a+"', object is not extensible"),e.g(i,a,Ye,s.h),i},e.g(e.v,"defineProperty",e.i(n,!1),w),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;","}","});",""),n=function(i,a){if(i instanceof U||j(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+i),a=String(a),a in i.h){var s=Object.getOwnPropertyDescriptor(i.h,a),d=i.V[a];return i=i.Y[a],a=e.s(e.M),d||i?(e.g(a,"get",d),e.g(a,"set",i)):(e.g(a,"value",s.value),e.g(a,"writable",s.writable)),e.g(a,"configurable",s.configurable),e.g(a,"enumerable",s.enumerable),a}},e.g(e.v,"getOwnPropertyDescriptor",e.i(n,!1),w),n=function(i){return r(i),ge(e,i)},e.g(e.v,"getPrototypeOf",e.i(n,!1),w),n=function(i){return!!i&&!i.preventExtensions},e.g(e.v,"isExtensible",e.i(n,!1),w),n=function(i){return i instanceof U&&(i.preventExtensions=!0),i},e.g(e.v,"preventExtensions",e.i(n,!1),w),q(e,e.v,"toString",U.prototype.toString),q(e,e.v,"toLocaleString",U.prototype.toString),q(e,e.v,"valueOf",U.prototype.valueOf),n=function(i){return r(this),this instanceof U?String(i)in this.h:this.hasOwnProperty(i)},q(e,e.v,"hasOwnProperty",n),n=function(i){return r(this),this instanceof U?Object.prototype.propertyIsEnumerable.call(this.h,i):this.propertyIsEnumerable(i)},q(e,e.v,"propertyIsEnumerable",n),n=function(i){for(;;){if(i=ge(e,i),!i)return!1;if(i===this)return!0}},q(e,e.v,"isPrototypeOf",n)}function Lr(e,t){var r=function(n){var i=ye(e)?this:Fe(e),a=arguments[0];if(arguments.length===1&&typeof a=="number")isNaN(Ht(a))&&j(e,e.ob,"Invalid array length: "+a),i.h.length=a;else{for(a=0;a<arguments.length;a++)i.h[a]=arguments[a];i.h.length=a}return i};e.qa=e.i(r,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,w),r=function(n){return n&&n.H==="Array"},e.g(e.qa,"isArray",e.i(r,!1),w),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 $r(e,t){var r=function(n){return n=arguments.length?be.String(n):"",ye(e)?(this.data=n,this):n};for(e.J=e.i(r,!0),e.g(t,"String",e.J,w),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),w),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),r=0;r<t.length;r++)q(e,e.J,t[r],String.prototype[t[r]]);r=function(n,i,a){i=e.R(i),a=e.R(a);try{return String(this).localeCompare(n,i,a)}catch(s){j(e,e.D,"localeCompare: "+s.message)}},q(e,e.J,"localeCompare",r),r=function(n,i,a){var s=String(this);if(i=i?Number(i):void 0,Z(e,n,e.I)&&(n=n.data,He(e,n,a),e.REGEXP_MODE===2)){if(me)n=$e(e,"string.split(separator, limit)",{string:s,separator:n,limit:i},n,a),n!==Pe&&a(pe(e,n));else{var d=e.ha(),h=Ke(e,n,d,a);d.onmessage=function(m){clearTimeout(h),a(pe(e,m.data))},d.postMessage(["split",s,n,i])}return}n=s.split(n,i),a(pe(e,n))},Ge(e,e.J,"split",r),r=function(n,i){var a=String(this);if(n=Z(e,n,e.I)?n.data:new RegExp(n),He(e,n,i),e.REGEXP_MODE===2)if(me)n=$e(e,"string.match(regexp)",{string:a,regexp:n},n,i),n!==Pe&&i(n&&pe(e,n));else{var s=e.ha(),d=Ke(e,n,s,i);s.onmessage=function(h){clearTimeout(d),i(h.data&&pe(e,h.data))},s.postMessage(["match",a,n])}else n=a.match(n),i(n&&pe(e,n))},Ge(e,e.J,"match",r),r=function(n,i){var a=String(this);if(Z(e,n,e.I)?n=n.data:n=new RegExp(n),He(e,n,i),e.REGEXP_MODE===2)if(me)n=$e(e,"string.search(regexp)",{string:a,regexp:n},n,i),n!==Pe&&i(n);else{var s=e.ha(),d=Ke(e,n,s,i);s.onmessage=function(h){clearTimeout(d),i(h.data)},s.postMessage(["search",a,n])}else i(a.search(n))},Ge(e,e.J,"search",r),r=function(n,i,a){var s=String(this);if(i=String(i),Z(e,n,e.I)&&(n=n.data,He(e,n,a),e.REGEXP_MODE===2)){if(me)n=$e(e,"string.replace(substr, newSubstr)",{string:s,substr:n,newSubstr:i},n,a),n!==Pe&&a(n);else{var d=e.ha(),h=Ke(e,n,d,a);d.onmessage=function(m){clearTimeout(h),a(m.data)},d.postMessage(["replace",s,n,i])}return}a(s.replace(n,i))},Ge(e,e.J,"replace",r),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 Hr(e,t){e.mb=e.i(function(r){return r=be.Boolean(r),ye(e)?(this.data=r,this):r},!0),e.g(t,"Boolean",e.mb,w)}function Kr(e,t){var r=function(n){return n=arguments.length?be.Number(n):0,ye(e)?(this.data=n,this):n};for(e.aa=e.i(r,!0),e.g(t,"Number",e.aa,w),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],r=0;r<t.length;r++)e.g(e.aa,t[r],Number[t[r]],Le);r=function(n){try{return Number(this).toExponential(n)}catch(i){j(e,e.D,i.message)}},q(e,e.aa,"toExponential",r),r=function(n){try{return Number(this).toFixed(n)}catch(i){j(e,e.D,i.message)}},q(e,e.aa,"toFixed",r),r=function(n){try{return Number(this).toPrecision(n)}catch(i){j(e,e.D,i.message)}},q(e,e.aa,"toPrecision",r),r=function(n){try{return Number(this).toString(n)}catch(i){j(e,e.D,i.message)}},q(e,e.aa,"toString",r),r=function(n,i){n=n?e.R(n):void 0,i=i?e.R(i):void 0;try{return Number(this).toLocaleString(n,i)}catch(a){j(e,e.D,"toLocaleString: "+a.message)}},q(e,e.aa,"toLocaleString",r)}function Gr(e,t){var r=function(i,a){if(!ye(e))return be.Date();var s=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(be.Date,s)),this};e.$=e.i(r,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,w),e.g(e.$,"now",e.i(Date.now,!1),w),e.g(e.$,"parse",e.i(Date.parse,!1),w),e.g(e.$,"UTC",e.i(Date.UTC,!1),w),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 n=0;n<t.length;n++)r=function(i){return function(a){var s=this.data;s instanceof Date||j(e,e.j,i+" not called on a Date");for(var d=[],h=0;h<arguments.length;h++)d[h]=e.R(arguments[h]);return s[i].apply(s,d)}}(t[n]),q(e,e.$,t[n],r)}function zr(e,t){var r=function(n,i){if(ye(e))var a=this;else{if(i===void 0&&Z(e,n,e.I))return n;a=e.s(e.Ma)}n=n===void 0?"":String(n),i=i?String(i):"",/^[gmi]*$/.test(i)||j(e,e.T,"Invalid regexp flag: "+i);try{var s=new be.RegExp(n,i)}catch(d){j(e,e.T,d.message)}return Kt(e,a,s),a};e.I=e.i(r,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,w),e.g(e.I.h.prototype,"global",void 0,ie),e.g(e.I.h.prototype,"ignoreCase",void 0,ie),e.g(e.I.h.prototype,"multiline",void 0,ie),e.g(e.I.h.prototype,"source","(?:)",ie),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),r=function(n,i){function a(v){if(v){var x=pe(e,v);return e.g(x,"index",v.index),e.g(x,"input",v.input),x}return null}var s=this.data;if(n=String(n),s.lastIndex=Number(e.G(this,"lastIndex")),He(e,s,i),e.REGEXP_MODE===2)if(me)n=$e(e,"regexp.exec(string)",{string:n,regexp:s},s,i),n!==Pe&&(e.g(this,"lastIndex",s.lastIndex),i(a(n)));else{var d=e.ha(),h=Ke(e,s,d,i),m=this;d.onmessage=function(v){clearTimeout(h),e.g(m,"lastIndex",v.data[1]),i(a(v.data[0]))},d.postMessage(["exec",s,s.lastIndex,n])}else n=s.exec(n),e.g(this,"lastIndex",s.lastIndex),i(a(n))},Ge(e,e.I,"exec",r)}function Xr(e,t){function r(n){var i=e.i(function(a){var s=ye(e)?this:e.Aa(i);return _t(e,s,a),s},!0);return e.g(i,"prototype",e.Aa(e.D),w),e.g(i.h.prototype,"name",n,w),e.g(t,n,i,w),i}e.D=e.i(function(n){var i=ye(e)?this:e.Aa(e.D);return _t(e,i,n),i},!0),e.g(t,"Error",e.D,w),e.g(e.D.h.prototype,"message","",w),e.g(e.D.h.prototype,"name","Error",w),r("EvalError"),e.ob=r("RangeError"),e.pb=r("ReferenceError"),e.T=r("SyntaxError"),e.j=r("TypeError"),e.Gb=r("URIError")}function Yr(e,t){var r=e.s(e.M);e.g(t,"Math",r,w);var n="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<n.length;t++)e.g(r,n[t],Math[n[t]],ie);for(n="abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "),t=0;t<n.length;t++)e.g(r,n[t],e.i(Math[n[t]],!1),w)}function Jr(e,t){var r=e.s(e.M);e.g(t,"JSON",r,w),t=function(n){try{var i=JSON.parse(String(n))}catch(a){j(e,e.T,a.message)}return e.Ia(i)},e.g(r,"parse",e.i(t,!1)),t=function(n,i,a){i&&i.H==="Function"?j(e,e.j,"Function replacer on JSON.stringify not supported"):i&&i.H==="Array"?(i=qn(e,i),i=i.filter(function(d){return typeof d=="string"||typeof d=="number"})):i=null,typeof a!="string"&&typeof a!="number"&&(a=void 0),n=e.R(n);try{var s=JSON.stringify(n,i,a)}catch(d){j(e,e.j,d.message)}return s},e.g(r,"stringify",e.i(t,!1))}function Z(e,t,r){if(t==null||!r)return!1;if(r=r.h.prototype,t===r)return!0;for(t=ge(e,t);t;){if(t===r)return!0;t=t.xa}return!1}function Kt(e,t,r){t.data=new RegExp(r.source,r.flags),e.g(t,"lastIndex",r.lastIndex,w),e.g(t,"source",r.source,ie),e.g(t,"global",r.global,ie),e.g(t,"ignoreCase",r.ignoreCase,ie),e.g(t,"multiline",r.multiline,ie)}function _t(e,t,r){r&&e.g(t,"message",String(r),w),r=[];for(var n=e.o.length-1;0<=n;n--){var i=e.o[n],a=i.node;a.type==="CallExpression"&&(i=i.U)&&r.length&&(r[r.length-1].Ob=e.G(i,"name")),!a.X||r.length&&a.type!=="CallExpression"||r.push({Nb:a.X})}for(n=String(e.G(t,"name")),a=String(e.G(t,"message")),a=n+": "+a+`
7
5
  `,n=0;n<r.length;n++){var s=r[n].Nb;i=r[n].Ob,s=s.source+":"+s.start.line+":"+s.start.ab,a=i?a+(" at "+i+" ("+s+`)
8
6
  `):a+(" at "+s+`
9
- `)}e.g(t,"stack",a.trim(),w)}W.ha=function(){var e=this.ha.Mb;return e||(e=new Blob([_r.join(`
10
- `)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function $e(e,t,r,n,i){var a={timeout:e.REGEXP_THREAD_TIMEOUT};try{return me.runInNewContext(t,r,a)}catch{i(null),E(e,e.D,"RegExp Timeout: "+n)}return Pe}function He(e,t,r){if(e.REGEXP_MODE===0)var n=!1;else if(e.REGEXP_MODE===1)n=!0;else if(me)n=!0;else if(typeof Worker=="function"&&typeof URL=="function")n=!0;else if(typeof require=="function"){try{me=require("vm")}catch{}n=!!me}else n=!1;n||(r(null),E(e,e.D,"Regular expressions not supported: "+t))}function Ke(e,t,r,n){return setTimeout(function(){r.terminate(),n(null);try{E(e,e.D,"RegExp Timeout: "+t)}catch{}},e.REGEXP_THREAD_TIMEOUT)}W.Aa=function(e){return this.s(e&&e.h.prototype)};W.s=function(e){if(typeof e!="object")throw Error("Non object prototype");return e=new M(e),Z(this,e,this.D)&&(e.H="Error"),e};function Fe(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function Yt(e,t,r){var n=e.s(e.Z);return r?(r=e.s(e.M),e.g(n,"prototype",r,w),e.g(r,"constructor",n,w)):n.Ab=!0,e.g(n,"length",t,ie),n.H="Function",n}function Jt(e,t,r,n){var i=Yt(e,t.oa.length,!0);return i.Va=r,i.node=t,e.g(i,"name",t.id?String(t.id.name):n||"",ie),i}W.i=function(e,t){return t=Yt(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,ie),t};W.ub=function(e){var t=Yt(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,ie),t};W.Ia=function(e){if(e instanceof M)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 Xt(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 r=this;return t=Object.getOwnPropertyDescriptor(e,"prototype"),this.i(function(){var i=Array.prototype.slice.call(arguments).map(function(a){return r.R(a)});return i=e.apply(r,i),r.Ia(i)},!!t)}if(Array.isArray(e)){t=Fe(this);for(var n=0;n<e.length;n++)n in e&&this.g(t,n,this.Ia(e[n]));return t}t=this.s(this.M);for(n in e)this.g(t,n,this.Ia(e[n]));return t};W.R=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof M))throw Error("Object is not pseudo");if(Z(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(Z(this,e,this.$))return new Date(e.data.valueOf());t=t||{hb:[],Sa:[]};var r=t.hb.indexOf(e);if(r!==-1)return t.Sa[r];if(t.hb.push(e),Z(this,e,this.qa)){r=[],t.Sa.push(r);for(var n=this.G(e,"length"),i=0;i<n;i++)ft(this,e,i)&&(r[i]=this.R(this.G(e,i),t))}else for(n in r={},t.Sa.push(r),e.h)i=this.R(e.h[n],t),Object.defineProperty(r,n,{value:i,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),r};function pe(e,t){for(var r=Fe(e),n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++)e.g(r,n[i],t[n[i]]);return r}function er(e,t){var r=[],n;for(n in t.h)r[n]=e.G(t,n);return r.length=zt(e.G(t,"length"))||0,r}function ge(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}W.G=function(e,t){if(this.P)throw Error("Getter not supported in that context");if(t=String(t),e!=null||E(this,this.j,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof M))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(Z(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&Z(this,e,this.J)){var r=Xe(t);if(!isNaN(r)&&r<String(e).length)return String(e)[r]}do if(e.h&&t in e.h)return(r=e.V[t])?(this.P=!0,r):e.h[t];while(e=ge(this,e))};function ft(e,t,r){if(!(t instanceof M))throw TypeError("Primitive data type has no properties");if(r=String(r),r==="length"&&Z(e,t,e.J))return!0;if(Z(e,t,e.J)){var n=Xe(r);if(!isNaN(n)&&n<String(t).length)return!0}do if(t.h&&r in t.h)return!0;while(t=ge(e,t));return!1}W.g=function(e,t,r,n){if(this.Ka)throw Error("Setter not supported in that context");if(t=String(t),e!=null||E(this,this.j,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof M))throw TypeError("Expecting native value or pseudo object");n&&("get"in n||"set"in n)&&("value"in n||"writable"in n)&&E(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var i=!this.o||qt(this).S;if(e instanceof M){if(Z(this,e,this.J)){var a=Xe(t);if(t==="length"||!isNaN(a)&&a<String(e).length){i&&E(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(a=e.h.length,t==="length"){if(n){if(!("value"in n))return;r=n.value}if(r=zt(r),isNaN(r)&&E(this,this.ob,"Invalid array length"),r<a)for(s in e.h){var s=Xe(s);!isNaN(s)&&r<=s&&delete e.h[s]}}else isNaN(s=Xe(t))||(e.h.length=Math.max(a,s+1));if(!e.preventExtensions||t in e.h)if(n){i={},"get"in n&&n.get&&(e.V[t]=n.get,i.get=this.g.ac),"set"in n&&n.set&&(e.Y[t]=n.set,i.set=this.g.bc),"configurable"in n&&(i.configurable=n.configurable),"enumerable"in n&&(i.enumerable=n.enumerable),"writable"in n&&(i.writable=n.writable,delete e.V[t],delete e.Y[t]),"value"in n?(i.value=n.value,delete e.V[t],delete e.Y[t]):r!==Ye&&(i.value=r,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,i)}catch{E(this,this.j,"Cannot redefine property: "+t)}"get"in n&&!n.get&&delete e.V[t],"set"in n&&!n.set&&delete e.Y[t]}else{if(r===Ye)throw ReferenceError("Value not specified");for(n=e;!(t in n.h);)if(n=ge(this,n),!n){n=e;break}if(n.Y&&n.Y[t])return this.Ka=!0,n.Y[t];if(n.V&&n.V[t])i&&E(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=r}catch{i&&E(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else i&&E(this,this.j,"Can't add property '"+t+"', object is not extensible")}else i&&E(this,this.j,"Can't create property '"+t+"' on '"+e+"'")};W.g.ac=function(){throw Error("Placeholder getter")};W.g.bc=function(){throw Error("Placeholder setter")};function q(e,t,r,n){e.g(t.h.prototype,r,e.i(n,!1),w)}function Ge(e,t,r,n){e.g(t.h.prototype,r,e.ub(n),w)}function qt(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function Lt(e,t,r){var n=!1;if(r&&r.S)n=!0;else{var i=t.body&&t.body[0];i&&i.la&&i.la.type==="Literal"&&i.la.value==="use strict"&&(n=!0)}return i=e.s(null),n=new rr(r,n,i),r||Wr(e,n.object),Je(e,t,n),n}function Zt(e,t,r){if(!t)throw Error("parentScope required");return e=r||e.s(null),new rr(t,t.S,e)}function Qt(e,t){for(var r=qt(e);r&&r!==e.N;){if(t in r.object.h)return r.object.h[t];r=r.Va}if(r===e.N&&ft(e,r.object,t))return e.G(r.object,t);r=e.o[e.o.length-1].node,r.type==="UnaryExpression"&&r.operator==="typeof"||E(e,e.pb,t+" is not defined")}function tr(e,t,r){for(var n=qt(e),i=n.S;n&&n!==e.N;){if(t in n.object.h){try{n.object.h[t]=r}catch{i&&E(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}n=n.Va}if(n===e.N&&(!i||ft(e,n.object,t)))return e.g(n.object,t,r);E(e,e.pb,t+" is not defined")}function Je(e,t,r){if(t.jb)var n=t.jb;else{switch(n=Object.create(null),t.type){case"VariableDeclaration":for(var i=0;i<t.fa.length;i++)n[t.fa[i].id.name]=!0;break;case"FunctionDeclaration":n[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 a=t.constructor,s;for(s in t)if(s!=="loc"){var d=t[s];if(d&&typeof d=="object"){if(Array.isArray(d)){for(i=0;i<d.length;i++)if(d[i]&&d[i].constructor===a){var h=Je(e,d[i],r);for(s in h)n[s]=h[s]}}else if(d.constructor===a)for(s in h=Je(e,d,r),h)n[s]=h[s]}}}t.jb=n}for(s in n)n[s]===!0?e.g(r.object,s,void 0,Bn):e.g(r.object,s,Jt(e,n[s],r),Bn);return n}function ve(e){return e.o[e.o.length-1].isConstructor}function en(e,t){return t[0]===Be?Qt(e,t[1]):e.G(t[0],t[1])}function tn(e,t,r){return t[0]===Be?tr(e,t[1],r):e.g(t[0],t[1],r)}function E(e,t,r){throw e.N?(r!==void 0&&t instanceof M&&(t=e.Aa(t),Vt(e,t,r)),Ze(e,4,t),Qn):r===void 0?t:r}function Ze(e,t,r,n){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var i=e.o;e:for(;0<i.length;i.pop()){var a=i[i.length-1];switch(a.node.type){case"TryStatement":a.ea={type:t,value:r,label:n};return;case"CallExpression":case"NewExpression":if(t===3){a.value=r;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":a.done=!0;break e}if(t===1){if(n?a.labels&&a.labels.indexOf(n)!==-1:a.W||a.Zb){i.pop();return}}else if(t===2&&(n?a.labels&&a.labels.indexOf(n)!==-1:a.W))return}throw Z(e,r,e.D)?(t={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},n=String(e.G(r,"name")),i=e.G(r,"message").valueOf(),t=(t[n]||Error)(i),t.stack=String(e.G(r,"stack"))):t=String(r),e.value=t,t}function re(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return re(e,t.left)+" "+t.operator+" "+re(e,t.right);case"CallExpression":return re(e,t.callee)+"(...)";case"ConditionalExpression":return re(e,t.test)+" ? "+re(e,t.da)+" : "+re(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var r=re(e,t.object);return e=re(e,t.Wa),t.bb?r+"["+e+"]":r+"."+e;case"NewExpression":return"new "+re(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+re(e,t.K);case"UpdateExpression":return r=re(e,t.K),t.prefix?t.operator+r:r+t.operator}return"???"}function Un(e,t,r){var n=e.o[e.o.length-1],i=Array.from(r),a=i.shift();r=Math.max(Number(i.shift()||0),0);var s=e.ya();if(a instanceof M&&a.H==="Function"){var d=a;s.type="CallExpression",n=n.scope}else{try{var h=Ne(String(a),"taskCode"+e.ic++)}catch(m){E(e,e.T,"Invalid code: "+m.message)}s.type="EvalProgram_",s.body=h.body,n=n.node.arguments[0],dt(s,n?n.start:void 0,n?n.end:void 0),n=e.N,i.length=0}return t=new Zr(d,i,n,s,t?r:-1),nr(e,t,r),t.Db}function nr(e,t,r){t.time=Date.now()+r,e.ca.push(t),e.ca.sort(function(n,i){return n.time-i.time})}function Dn(e,t){for(var r=0;r<e.ca.length;r++)if(e.ca[r].Db==t){e.ca.splice(r,1);break}}function Qe(e,t,r){if(!e.P)throw Error("Unexpected call to createGetter");e.P=!1,r=Array.isArray(r)?r[0]:r;var n=e.ya();return n.type="CallExpression",e=new C(n,e.o[e.o.length-1].scope),e.ia=2,e.B=r,e.U=t,e.Qa=!0,e.F=[],e}function nn(e,t,r,n){if(!e.Ka)throw Error("Unexpected call to createSetter");e.Ka=!1,r=Array.isArray(r)?r[0]:e.Na;var i=e.ya();return i.type="CallExpression",e=new C(i,e.o[e.o.length-1].scope),e.ia=2,e.B=r,e.U=t,e.Qa=!0,e.F=[n],e}function Mt(e,t){return t==null?e.Na:t instanceof M?t:(e=e.s(ge(e,t)),e.data=t,e)}W.Xb=function(){return this.N};W.Yb=function(){return this.o};W.ec=function(e){this.o=e};function C(e,t){this.node=e,this.scope=t}function rr(e,t,r){this.Va=e,this.S=t,this.object=r}function M(e){this.V=Object.create(null),this.Y=Object.create(null),this.h=Object.create(null),this.xa=e}W=M.prototype;W.xa=null;W.H="Object";W.data=null;W.toString=function(){if(!ze)return"[object Interpreter.Object]";if(!(this instanceof M))return String(this);if(this.H==="Array"){var e=Mn;e.push(this);try{var t=[],r=this.h.length,n=!1;1024<r&&(r=1e3,n=!0);for(var i=0;i<r;i++){var a=this.h[i];t[i]=a instanceof M&&e.indexOf(a)!==-1?"...":a}n&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=Mn,e.indexOf(this)!==-1)return"[object Error]";r=this;do if("name"in r.h){t=r.h.name;break}while(r=r.xa);r=this;do if("message"in r.h){n=r.h.message;break}while(r=r.xa);e.push(this);try{t=t&&String(t),n=n&&String(n)}finally{e.pop()}return n?t+": "+n:String(t)}return this.data!==null?String(this.data):"[object "+this.H+"]"};W.valueOf=function(){return!ze||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function Zr(e,t,r,n,i){this.zb=e,this.Lb=t,this.scope=r,this.node=n,this.interval=i,this.Db=++Qr,this.time=0}var Qr=0;g.prototype.stepArrayExpression=function(e,t,r){r=r.elements;var n=t.A||0;for(t.Oa?(this.g(t.Oa,n,t.value),n++):(t.Oa=Fe(this),t.Oa.h.length=r.length);n<r.length;){if(r[n])return t.A=n,new C(r[n],t.scope);n++}e.pop(),e[e.length-1].value=t.Oa};g.prototype.stepAssignmentExpression=function(e,t,r){if(!t.ja)return t.ja=!0,t=new C(r.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&&r.operator!=="="&&(e=en(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,Qe(this,e,t.Fa)):(t.Da=!0,r.operator==="="&&r.left.type==="Identifier"&&(t.Pa=r.left.name),new C(r.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var n=t.ma,i=t.value;switch(r.operator){case"=":n=i;break;case"+=":n+=i;break;case"-=":n-=i;break;case"*=":n*=i;break;case"/=":n/=i;break;case"%=":n%=i;break;case"<<=":n<<=i;break;case">>=":n>>=i;break;case">>>=":n>>>=i;break;case"&=":n&=i;break;case"^=":n^=i;break;case"|=":n|=i;break;default:throw SyntaxError("Unknown assignment expression: "+r.operator)}if(r=tn(this,t.Fa,n))return t.ta=!0,t.ib=n,nn(this,r,t.Fa,n);e.pop(),e[e.length-1].value=n}};g.prototype.stepBinaryExpression=function(e,t,r){if(!t.ja)return t.ja=!0,new C(r.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new C(r.right,t.scope);e.pop();var n=t.ma;switch(t=t.value,r.operator){case"==":r=n==t;break;case"!=":r=n!=t;break;case"===":r=n===t;break;case"!==":r=n!==t;break;case">":r=n>t;break;case">=":r=n>=t;break;case"<":r=n<t;break;case"<=":r=n<=t;break;case"+":r=n+t;break;case"-":r=n-t;break;case"*":r=n*t;break;case"/":r=n/t;break;case"%":r=n%t;break;case"&":r=n&t;break;case"|":r=n|t;break;case"^":r=n^t;break;case"<<":r=n<<t;break;case">>":r=n>>t;break;case">>>":r=n>>>t;break;case"in":t instanceof M||E(this,this.j,"'in' expects an object, not '"+t+"'"),r=ft(this,t,n);break;case"instanceof":Z(this,t,this.O)||E(this,this.j,"'instanceof' expects an object, not '"+t+"'"),r=n instanceof M?Z(this,n,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+r.operator)}e[e.length-1].value=r};g.prototype.stepBlockStatement=function(e,t,r){var n=t.A||0;if(r=r.body[n])return t.A=n+1,new C(r,t.scope);e.pop()};g.prototype.stepBreakStatement=function(e,t,r){Ze(this,1,void 0,r.label&&r.label.name)};g.prototype.Hb=0;g.prototype.stepCallExpression=function(e,t,r){if(!t.ia){t.ia=1;var n=new C(r.callee,t.scope);return n.sa=!0,n}if(t.ia===1){t.ia=2;var i=t.value;if(Array.isArray(i)){if(t.U=en(this,i),i[0]===Be?t.Pb=i[1]==="eval":t.B=i[0],i=t.U,this.P)return t.ia=1,Qe(this,i,t.value)}else t.U=i;t.F=[],t.A=0}if(i=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),r.arguments[t.A])return new C(r.arguments[t.A++],t.scope);if(r.type==="NewExpression"){if(i instanceof M&&!i.Ab||E(this,this.j,re(this,r.callee)+" is not a constructor"),i===this.qa)t.B=Fe(this);else{var a=i.h.prototype;(typeof a!="object"||a===null)&&(a=this.M),t.B=this.s(a)}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,i instanceof M||E(this,this.j,re(this,r.callee)+" is not a function"),e=i.node){for(r=Lt(this,e.body,i.Va),n=Fe(this),i=0;i<t.F.length;i++)this.g(n,i,t.F[i]);for(this.g(r.object,"arguments",n),i=0;i<e.oa.length;i++)this.g(r.object,e.oa[i].name,t.F.length>i?t.F[i]:void 0);return r.S||(t.B=Mt(this,t.B)),this.g(r.object,"this",t.B,Gt),t.value=void 0,new C(e.body,r)}if(i.eval)if(i=t.F[0],typeof i!="string")t.value=i;else{try{n=Ne(String(i),"eval"+this.Hb++)}catch(d){E(this,this.T,"Invalid code: "+d.message)}return i=this.ya(),i.type="EvalProgram_",i.body=n.body,dt(i,r.start,r.end),r=t.Pb?t.scope:this.N,r.S?r=Lt(this,n,r):Je(this,n,r),this.value=void 0,new C(i,r)}else if(i.Ta)t.scope.S||(t.B=Mt(this,t.B)),t.value=i.Ta.apply(t.B,t.F);else if(i.Za){var s=this;n=i.Za.length-1,n=t.F.concat(Array(n)).slice(0,n),n.push(function(d){t.value=d,s.za=!1}),this.za=!0,t.scope.S||(t.B=Mt(this,t.B)),i.Za.apply(t.B,n)}else E(this,this.j,re(this,r.callee)+" is not callable")}};g.prototype.stepConditionalExpression=function(e,t,r){var n=t.na||0;if(n===0)return t.na=1,new C(r.test,t.scope);if(n===1){if(t.na=2,(n=!!t.value)&&r.da)return new C(r.da,t.scope);if(!n&&r.alternate)return new C(r.alternate,t.scope);this.value=void 0}e.pop(),r.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};g.prototype.stepContinueStatement=function(e,t,r){Ze(this,2,void 0,r.label&&r.label.name)};g.prototype.stepDebuggerStatement=function(e){e.pop()};g.prototype.stepDoWhileStatement=function(e,t,r){if(r.type==="DoWhileStatement"&&t.ga===void 0&&(t.value=!0,t.ga=!0),!t.ga)return t.ga=!0,new C(r.test,t.scope);if(!t.value)e.pop();else if(r.body)return t.ga=!1,t.W=!0,new C(r.body,t.scope)};g.prototype.stepEmptyStatement=function(e){e.pop()};g.prototype.stepEvalProgram_=function(e,t,r){var n=t.A||0;if(r=r.body[n])return t.A=n+1,new C(r,t.scope);e.pop(),e[e.length-1].value=this.value};g.prototype.stepExpressionStatement=function(e,t,r){if(!t.ka)return this.value=void 0,t.ka=!0,new C(r.la,t.scope);e.pop(),this.value=t.value};g.prototype.stepForInStatement=function(e,t,r){if(!t.Ub&&(t.Ub=!0,r.left.fa&&r.left.fa[0].ua))return t.scope.S&&E(this,this.T,"for-in loop variable declaration may not have an initializer"),new C(r.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new C(r.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 M)for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u.h));;){var n=t.wa.shift();if(n===void 0)break;if(Object.prototype.hasOwnProperty.call(t.u.h,n)&&!t.kb[n]&&(t.kb[n]=!0,Object.prototype.propertyIsEnumerable.call(t.u.h,n))){t.Ra=n;break e}}else if(t.u!==null&&t.u!==void 0){for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u));n=t.wa.shift(),n!==void 0;)if(t.kb[n]=!0,Object.prototype.propertyIsEnumerable.call(t.u,n)){t.Ra=n;break e}}if(t.u=ge(this,t.u),t.wa=null,t.u===null){e.pop();return}}if(!t.wb)if(t.wb=!0,e=r.left,e.type==="VariableDeclaration")t.pa=[Be,e.fa[0].id.name];else return t.pa=null,t=new C(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,n=tn(this,t.pa,e)))return nn(this,n,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,r.body)return new C(r.body,t.scope)};g.prototype.stepForStatement=function(e,t,r){switch(t.na){default:if(t.na=1,r.ua)return new C(r.ua,t.scope);break;case 1:if(t.na=2,r.test)return new C(r.test,t.scope);break;case 2:if(t.na=3,r.test&&!t.value)e.pop();else return t.W=!0,new C(r.body,t.scope);break;case 3:if(t.na=1,r.update)return new C(r.update,t.scope)}};g.prototype.stepFunctionDeclaration=function(e){e.pop()};g.prototype.stepFunctionExpression=function(e,t,r){e.pop(),t=e[e.length-1],e=t.scope,r.id&&(e=Zt(this,e)),t.value=Jt(this,r,e,t.Pa),r.id&&this.g(e.object,r.id.name,t.value,Gt)};g.prototype.stepIdentifier=function(e,t,r){if(e.pop(),t.sa)e[e.length-1].value=[Be,r.name];else{if(t=Qt(this,r.name),this.P)return Qe(this,t,this.Na);e[e.length-1].value=t}};g.prototype.stepIfStatement=g.prototype.stepConditionalExpression;g.prototype.stepLabeledStatement=function(e,t,r){return e.pop(),e=t.labels||[],e.push(r.label.name),t=new C(r.body,t.scope),t.labels=e,t};g.prototype.stepLiteral=function(e,t,r){e.pop(),t=r.value,t instanceof RegExp&&(r=this.s(this.Ma),Xt(this,r,t),t=r),e[e.length-1].value=t};g.prototype.stepLogicalExpression=function(e,t,r){if(r.operator!=="&&"&&r.operator!=="||")throw SyntaxError("Unknown logical operator: "+r.operator);if(!t.ja)return t.ja=!0,new C(r.left,t.scope);if(t.Da)e.pop(),e[e.length-1].value=t.value;else if(r.operator==="&&"&&!t.value||r.operator==="||"&&t.value)e.pop(),e[e.length-1].value=t.value;else return t.Da=!0,new C(r.right,t.scope)};g.prototype.stepMemberExpression=function(e,t,r){if(!t.Ca)return t.Ca=!0,new C(r.object,t.scope);if(r.bb)if(t.Vb)r=t.value;else return t.u=t.value,t.Vb=!0,new C(r.Wa,t.scope);else t.u=t.value,r=r.Wa.name;if(e.pop(),t.sa)e[e.length-1].value=[t.u,r];else{if(r=this.G(t.u,r),this.P)return Qe(this,r,t.u);e[e.length-1].value=r}};g.prototype.stepNewExpression=g.prototype.stepCallExpression;g.prototype.stepObjectExpression=function(e,t,r){var n=t.A||0,i=r.h[n];if(t.u){var a=t.Pa;t.Ja[a]||(t.Ja[a]={}),t.Ja[a][i.kind]=t.value,t.A=++n,i=r.h[n]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(i){var s=i.key;if(s.type==="Identifier")a=s.name;else if(s.type==="Literal")a=s.value;else throw SyntaxError("Unknown object structure: "+s.type);return t.Pa=a,new C(i.value,t.scope)}for(s in t.Ja)r=t.Ja[s],"get"in r||"set"in r?this.g(t.u,s,Ye,{configurable:!0,enumerable:!0,get:r.get,set:r.set}):this.g(t.u,s,r.init);e.pop(),e[e.length-1].value=t.u};g.prototype.stepProgram=function(e,t,r){if(e=r.body.shift())return t.done=!1,new C(e,t.scope);t.done=!0};g.prototype.stepReturnStatement=function(e,t,r){if(r.K&&!t.ka)return t.ka=!0,new C(r.K,t.scope);Ze(this,3,t.value)};g.prototype.stepSequenceExpression=function(e,t,r){var n=t.A||0;if(r=r.xb[n])return t.A=n+1,new C(r,t.scope);e.pop(),e[e.length-1].value=t.value};g.prototype.stepSwitchStatement=function(e,t,r){if(!t.ga)return t.ga=1,new C(r.Qb,t.scope);for(t.ga===1&&(t.ga=2,t.hc=t.value,t.cb=-1);;){var n=t.gb||0,i=r.tb[n];if(t.Ha||!i||i.test)if(i||t.Ha||t.cb===-1)if(i){if(!t.Ha&&!t.Fb&&i.test)return t.Fb=!0,new C(i.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var a=t.A||0;if(i.da[a])return t.Zb=!0,t.A=a+1,new C(i.da[a],t.scope)}t.Fb=!1,t.A=0,t.gb=n+1}else{e.pop();break}else t.Ha=!0,t.gb=t.cb;else t.cb=n,t.gb=n+1}};g.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=Qt(this,"this")};g.prototype.stepThrowStatement=function(e,t,r){if(t.ka)E(this,t.value);else return t.ka=!0,new C(r.K,t.scope)};g.prototype.stepTryStatement=function(e,t,r){if(!t.Rb)return t.Rb=!0,new C(r.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&r.Ea)return t.Tb=!0,e=Zt(this,t.scope),this.g(e.object,r.Ea.Ua.name,t.ea.value),t.ea=void 0,new C(r.Ea.body,e);if(!t.Sb&&r.fb)return t.Sb=!0,new C(r.fb,t.scope);e.pop(),t.ea&&Ze(this,t.ea.type,t.ea.value,t.ea.label)};g.prototype.stepUnaryExpression=function(e,t,r){if(!t.ka)return t.ka=!0,e=new C(r.K,t.scope),e.sa=r.operator==="delete",e;e.pop();var n=t.value;switch(r.operator){case"-":n=-n;break;case"+":n=+n;break;case"!":n=!n;break;case"~":n=~n;break;case"delete":if(r=!0,Array.isArray(n)){var i=n[0];i===Be&&(i=t.scope),n=String(n[1]);try{delete i.h[n]}catch{t.scope.S?E(this,this.j,"Cannot delete property '"+n+"' of '"+i+"'"):r=!1}}n=r;break;case"typeof":n=n&&n.H==="Function"?"function":typeof n;break;case"void":n=void 0;break;default:throw SyntaxError("Unknown unary operator: "+r.operator)}e[e.length-1].value=n};g.prototype.stepUpdateExpression=function(e,t,r){if(!t.ja)return t.ja=!0,e=new C(r.K,t.scope),e.sa=!0,e;if(t.Ga||(t.Ga=t.value),t.Ba&&(t.ma=t.value),!t.Ba){var n=en(this,t.Ga);if(t.ma=n,this.P)return t.Ba=!0,Qe(this,n,t.Ga)}if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{if(n=Number(t.ma),r.operator==="++")var i=n+1;else if(r.operator==="--")i=n-1;else throw SyntaxError("Unknown update expression: "+r.operator);if(r=r.prefix?i:n,n=tn(this,t.Ga,i))return t.ta=!0,t.ib=r,nn(this,n,t.Ga,i);e.pop(),e[e.length-1].value=r}};g.prototype.stepVariableDeclaration=function(e,t,r){r=r.fa;var n=t.A||0,i=r[n];for(t.Bb&&i&&(tr(this,i.id.name,t.value),t.Bb=!1,i=r[++n]);i;){if(i.ua)return t.A=n,t.Bb=!0,t.Pa=i.id.name,new C(i.ua,t.scope);i=r[++n]}e.pop()};g.prototype.stepWithStatement=function(e,t,r){return t.Ca?(e.pop(),e=Zt(this,t.scope,t.value),new C(r.body,e)):(t.Ca=!0,new C(r.object,t.scope))};g.prototype.stepWhileStatement=g.prototype.stepDoWhileStatement;be.Interpreter=g;g.prototype.step=g.prototype.lb;g.prototype.run=g.prototype.Eb;g.prototype.appendCode=g.prototype.Jb;g.prototype.createObject=g.prototype.Aa;g.prototype.createObjectProto=g.prototype.s;g.prototype.createAsyncFunction=g.prototype.ub;g.prototype.createNativeFunction=g.prototype.i;g.prototype.getProperty=g.prototype.G;g.prototype.setProperty=g.prototype.g;g.prototype.nativeToPseudo=g.prototype.Ia;g.prototype.pseudoToNative=g.prototype.R;g.prototype.getGlobalScope=g.prototype.Xb;g.prototype.getStateStack=g.prototype.Yb;g.prototype.setStateStack=g.prototype.ec;g.VALUE_IN_DESCRIPTOR=Ye;const ei=e=>e.split(`
7
+ `)}e.g(t,"stack",a.trim(),w)}W.ha=function(){var e=this.ha.Mb;return e||(e=new Blob([Dr.join(`
8
+ `)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function $e(e,t,r,n,i){var a={timeout:e.REGEXP_THREAD_TIMEOUT};try{return me.runInNewContext(t,r,a)}catch{i(null),j(e,e.D,"RegExp Timeout: "+n)}return Pe}function He(e,t,r){if(e.REGEXP_MODE===0)var n=!1;else if(e.REGEXP_MODE===1)n=!0;else if(me)n=!0;else if(typeof Worker=="function"&&typeof URL=="function")n=!0;else if(typeof require=="function"){try{me=require("vm")}catch{}n=!!me}else n=!1;n||(r(null),j(e,e.D,"Regular expressions not supported: "+t))}function Ke(e,t,r,n){return setTimeout(function(){r.terminate(),n(null);try{j(e,e.D,"RegExp Timeout: "+t)}catch{}},e.REGEXP_THREAD_TIMEOUT)}W.Aa=function(e){return this.s(e&&e.h.prototype)};W.s=function(e){if(typeof e!="object")throw Error("Non object prototype");return e=new U(e),Z(this,e,this.D)&&(e.H="Error"),e};function Fe(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function Gt(e,t,r){var n=e.s(e.Z);return r?(r=e.s(e.M),e.g(n,"prototype",r,w),e.g(r,"constructor",n,w)):n.Ab=!0,e.g(n,"length",t,ie),n.H="Function",n}function zt(e,t,r,n){var i=Gt(e,t.oa.length,!0);return i.Va=r,i.node=t,e.g(i,"name",t.id?String(t.id.name):n||"",ie),i}W.i=function(e,t){return t=Gt(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,ie),t};W.ub=function(e){var t=Gt(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,ie),t};W.Ia=function(e){if(e instanceof U)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 Kt(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 r=this;return t=Object.getOwnPropertyDescriptor(e,"prototype"),this.i(function(){var i=Array.prototype.slice.call(arguments).map(function(a){return r.R(a)});return i=e.apply(r,i),r.Ia(i)},!!t)}if(Array.isArray(e)){t=Fe(this);for(var n=0;n<e.length;n++)n in e&&this.g(t,n,this.Ia(e[n]));return t}t=this.s(this.M);for(n in e)this.g(t,n,this.Ia(e[n]));return t};W.R=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof U))throw Error("Object is not pseudo");if(Z(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(Z(this,e,this.$))return new Date(e.data.valueOf());t=t||{hb:[],Sa:[]};var r=t.hb.indexOf(e);if(r!==-1)return t.Sa[r];if(t.hb.push(e),Z(this,e,this.qa)){r=[],t.Sa.push(r);for(var n=this.G(e,"length"),i=0;i<n;i++)dt(this,e,i)&&(r[i]=this.R(this.G(e,i),t))}else for(n in r={},t.Sa.push(r),e.h)i=this.R(e.h[n],t),Object.defineProperty(r,n,{value:i,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),r};function pe(e,t){for(var r=Fe(e),n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++)e.g(r,n[i],t[n[i]]);return r}function qn(e,t){var r=[],n;for(n in t.h)r[n]=e.G(t,n);return r.length=Ht(e.G(t,"length"))||0,r}function ge(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}W.G=function(e,t){if(this.P)throw Error("Getter not supported in that context");if(t=String(t),e!=null||j(this,this.j,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof U))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(Z(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&Z(this,e,this.J)){var r=Xe(t);if(!isNaN(r)&&r<String(e).length)return String(e)[r]}do if(e.h&&t in e.h)return(r=e.V[t])?(this.P=!0,r):e.h[t];while(e=ge(this,e))};function dt(e,t,r){if(!(t instanceof U))throw TypeError("Primitive data type has no properties");if(r=String(r),r==="length"&&Z(e,t,e.J))return!0;if(Z(e,t,e.J)){var n=Xe(r);if(!isNaN(n)&&n<String(t).length)return!0}do if(t.h&&r in t.h)return!0;while(t=ge(e,t));return!1}W.g=function(e,t,r,n){if(this.Ka)throw Error("Setter not supported in that context");if(t=String(t),e!=null||j(this,this.j,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof U))throw TypeError("Expecting native value or pseudo object");n&&("get"in n||"set"in n)&&("value"in n||"writable"in n)&&j(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var i=!this.o||Xt(this).S;if(e instanceof U){if(Z(this,e,this.J)){var a=Xe(t);if(t==="length"||!isNaN(a)&&a<String(e).length){i&&j(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(a=e.h.length,t==="length"){if(n){if(!("value"in n))return;r=n.value}if(r=Ht(r),isNaN(r)&&j(this,this.ob,"Invalid array length"),r<a)for(s in e.h){var s=Xe(s);!isNaN(s)&&r<=s&&delete e.h[s]}}else isNaN(s=Xe(t))||(e.h.length=Math.max(a,s+1));if(!e.preventExtensions||t in e.h)if(n){i={},"get"in n&&n.get&&(e.V[t]=n.get,i.get=this.g.ac),"set"in n&&n.set&&(e.Y[t]=n.set,i.set=this.g.bc),"configurable"in n&&(i.configurable=n.configurable),"enumerable"in n&&(i.enumerable=n.enumerable),"writable"in n&&(i.writable=n.writable,delete e.V[t],delete e.Y[t]),"value"in n?(i.value=n.value,delete e.V[t],delete e.Y[t]):r!==Ye&&(i.value=r,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,i)}catch{j(this,this.j,"Cannot redefine property: "+t)}"get"in n&&!n.get&&delete e.V[t],"set"in n&&!n.set&&delete e.Y[t]}else{if(r===Ye)throw ReferenceError("Value not specified");for(n=e;!(t in n.h);)if(n=ge(this,n),!n){n=e;break}if(n.Y&&n.Y[t])return this.Ka=!0,n.Y[t];if(n.V&&n.V[t])i&&j(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=r}catch{i&&j(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else i&&j(this,this.j,"Can't add property '"+t+"', object is not extensible")}else i&&j(this,this.j,"Can't create property '"+t+"' on '"+e+"'")};W.g.ac=function(){throw Error("Placeholder getter")};W.g.bc=function(){throw Error("Placeholder setter")};function q(e,t,r,n){e.g(t.h.prototype,r,e.i(n,!1),w)}function Ge(e,t,r,n){e.g(t.h.prototype,r,e.ub(n),w)}function Xt(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function Wt(e,t,r){var n=!1;if(r&&r.S)n=!0;else{var i=t.body&&t.body[0];i&&i.la&&i.la.type==="Literal"&&i.la.value==="use strict"&&(n=!0)}return i=e.s(null),n=new er(r,n,i),r||_r(e,n.object),Je(e,t,n),n}function Yt(e,t,r){if(!t)throw Error("parentScope required");return e=r||e.s(null),new er(t,t.S,e)}function Jt(e,t){for(var r=Xt(e);r&&r!==e.N;){if(t in r.object.h)return r.object.h[t];r=r.Va}if(r===e.N&&dt(e,r.object,t))return e.G(r.object,t);r=e.o[e.o.length-1].node,r.type==="UnaryExpression"&&r.operator==="typeof"||j(e,e.pb,t+" is not defined")}function Zn(e,t,r){for(var n=Xt(e),i=n.S;n&&n!==e.N;){if(t in n.object.h){try{n.object.h[t]=r}catch{i&&j(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}n=n.Va}if(n===e.N&&(!i||dt(e,n.object,t)))return e.g(n.object,t,r);j(e,e.pb,t+" is not defined")}function Je(e,t,r){if(t.jb)var n=t.jb;else{switch(n=Object.create(null),t.type){case"VariableDeclaration":for(var i=0;i<t.fa.length;i++)n[t.fa[i].id.name]=!0;break;case"FunctionDeclaration":n[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 a=t.constructor,s;for(s in t)if(s!=="loc"){var d=t[s];if(d&&typeof d=="object"){if(Array.isArray(d)){for(i=0;i<d.length;i++)if(d[i]&&d[i].constructor===a){var h=Je(e,d[i],r);for(s in h)n[s]=h[s]}}else if(d.constructor===a)for(s in h=Je(e,d,r),h)n[s]=h[s]}}}t.jb=n}for(s in n)n[s]===!0?e.g(r.object,s,void 0,Nn):e.g(r.object,s,zt(e,n[s],r),Nn);return n}function ye(e){return e.o[e.o.length-1].isConstructor}function qt(e,t){return t[0]===Be?Jt(e,t[1]):e.G(t[0],t[1])}function Zt(e,t,r){return t[0]===Be?Zn(e,t[1],r):e.g(t[0],t[1],r)}function j(e,t,r){throw e.N?(r!==void 0&&t instanceof U&&(t=e.Aa(t),_t(e,t,r)),Ze(e,4,t),Jn):r===void 0?t:r}function Ze(e,t,r,n){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var i=e.o;e:for(;0<i.length;i.pop()){var a=i[i.length-1];switch(a.node.type){case"TryStatement":a.ea={type:t,value:r,label:n};return;case"CallExpression":case"NewExpression":if(t===3){a.value=r;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":a.done=!0;break e}if(t===1){if(n?a.labels&&a.labels.indexOf(n)!==-1:a.W||a.Zb){i.pop();return}}else if(t===2&&(n?a.labels&&a.labels.indexOf(n)!==-1:a.W))return}throw Z(e,r,e.D)?(t={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},n=String(e.G(r,"name")),i=e.G(r,"message").valueOf(),t=(t[n]||Error)(i),t.stack=String(e.G(r,"stack"))):t=String(r),e.value=t,t}function re(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return re(e,t.left)+" "+t.operator+" "+re(e,t.right);case"CallExpression":return re(e,t.callee)+"(...)";case"ConditionalExpression":return re(e,t.test)+" ? "+re(e,t.da)+" : "+re(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var r=re(e,t.object);return e=re(e,t.Wa),t.bb?r+"["+e+"]":r+"."+e;case"NewExpression":return"new "+re(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+re(e,t.K);case"UpdateExpression":return r=re(e,t.K),t.prefix?t.operator+r:r+t.operator}return"???"}function Bn(e,t,r){var n=e.o[e.o.length-1],i=Array.from(r),a=i.shift();r=Math.max(Number(i.shift()||0),0);var s=e.ya();if(a instanceof U&&a.H==="Function"){var d=a;s.type="CallExpression",n=n.scope}else{try{var h=Ne(String(a),"taskCode"+e.ic++)}catch(m){j(e,e.T,"Invalid code: "+m.message)}s.type="EvalProgram_",s.body=h.body,n=n.node.arguments[0],ut(s,n?n.start:void 0,n?n.end:void 0),n=e.N,i.length=0}return t=new qr(d,i,n,s,t?r:-1),Qn(e,t,r),t.Db}function Qn(e,t,r){t.time=Date.now()+r,e.ca.push(t),e.ca.sort(function(n,i){return n.time-i.time})}function Mn(e,t){for(var r=0;r<e.ca.length;r++)if(e.ca[r].Db==t){e.ca.splice(r,1);break}}function Qe(e,t,r){if(!e.P)throw Error("Unexpected call to createGetter");e.P=!1,r=Array.isArray(r)?r[0]:r;var n=e.ya();return n.type="CallExpression",e=new C(n,e.o[e.o.length-1].scope),e.ia=2,e.B=r,e.U=t,e.Qa=!0,e.F=[],e}function Qt(e,t,r,n){if(!e.Ka)throw Error("Unexpected call to createSetter");e.Ka=!1,r=Array.isArray(r)?r[0]:e.Na;var i=e.ya();return i.type="CallExpression",e=new C(i,e.o[e.o.length-1].scope),e.ia=2,e.B=r,e.U=t,e.Qa=!0,e.F=[n],e}function Bt(e,t){return t==null?e.Na:t instanceof U?t:(e=e.s(ge(e,t)),e.data=t,e)}W.Xb=function(){return this.N};W.Yb=function(){return this.o};W.ec=function(e){this.o=e};function C(e,t){this.node=e,this.scope=t}function er(e,t,r){this.Va=e,this.S=t,this.object=r}function U(e){this.V=Object.create(null),this.Y=Object.create(null),this.h=Object.create(null),this.xa=e}W=U.prototype;W.xa=null;W.H="Object";W.data=null;W.toString=function(){if(!ze)return"[object Interpreter.Object]";if(!(this instanceof U))return String(this);if(this.H==="Array"){var e=Fn;e.push(this);try{var t=[],r=this.h.length,n=!1;1024<r&&(r=1e3,n=!0);for(var i=0;i<r;i++){var a=this.h[i];t[i]=a instanceof U&&e.indexOf(a)!==-1?"...":a}n&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=Fn,e.indexOf(this)!==-1)return"[object Error]";r=this;do if("name"in r.h){t=r.h.name;break}while(r=r.xa);r=this;do if("message"in r.h){n=r.h.message;break}while(r=r.xa);e.push(this);try{t=t&&String(t),n=n&&String(n)}finally{e.pop()}return n?t+": "+n:String(t)}return this.data!==null?String(this.data):"[object "+this.H+"]"};W.valueOf=function(){return!ze||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function qr(e,t,r,n,i){this.zb=e,this.Lb=t,this.scope=r,this.node=n,this.interval=i,this.Db=++Zr,this.time=0}var Zr=0;g.prototype.stepArrayExpression=function(e,t,r){r=r.elements;var n=t.A||0;for(t.Oa?(this.g(t.Oa,n,t.value),n++):(t.Oa=Fe(this),t.Oa.h.length=r.length);n<r.length;){if(r[n])return t.A=n,new C(r[n],t.scope);n++}e.pop(),e[e.length-1].value=t.Oa};g.prototype.stepAssignmentExpression=function(e,t,r){if(!t.ja)return t.ja=!0,t=new C(r.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&&r.operator!=="="&&(e=qt(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,Qe(this,e,t.Fa)):(t.Da=!0,r.operator==="="&&r.left.type==="Identifier"&&(t.Pa=r.left.name),new C(r.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var n=t.ma,i=t.value;switch(r.operator){case"=":n=i;break;case"+=":n+=i;break;case"-=":n-=i;break;case"*=":n*=i;break;case"/=":n/=i;break;case"%=":n%=i;break;case"<<=":n<<=i;break;case">>=":n>>=i;break;case">>>=":n>>>=i;break;case"&=":n&=i;break;case"^=":n^=i;break;case"|=":n|=i;break;default:throw SyntaxError("Unknown assignment expression: "+r.operator)}if(r=Zt(this,t.Fa,n))return t.ta=!0,t.ib=n,Qt(this,r,t.Fa,n);e.pop(),e[e.length-1].value=n}};g.prototype.stepBinaryExpression=function(e,t,r){if(!t.ja)return t.ja=!0,new C(r.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new C(r.right,t.scope);e.pop();var n=t.ma;switch(t=t.value,r.operator){case"==":r=n==t;break;case"!=":r=n!=t;break;case"===":r=n===t;break;case"!==":r=n!==t;break;case">":r=n>t;break;case">=":r=n>=t;break;case"<":r=n<t;break;case"<=":r=n<=t;break;case"+":r=n+t;break;case"-":r=n-t;break;case"*":r=n*t;break;case"/":r=n/t;break;case"%":r=n%t;break;case"&":r=n&t;break;case"|":r=n|t;break;case"^":r=n^t;break;case"<<":r=n<<t;break;case">>":r=n>>t;break;case">>>":r=n>>>t;break;case"in":t instanceof U||j(this,this.j,"'in' expects an object, not '"+t+"'"),r=dt(this,t,n);break;case"instanceof":Z(this,t,this.O)||j(this,this.j,"'instanceof' expects an object, not '"+t+"'"),r=n instanceof U?Z(this,n,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+r.operator)}e[e.length-1].value=r};g.prototype.stepBlockStatement=function(e,t,r){var n=t.A||0;if(r=r.body[n])return t.A=n+1,new C(r,t.scope);e.pop()};g.prototype.stepBreakStatement=function(e,t,r){Ze(this,1,void 0,r.label&&r.label.name)};g.prototype.Hb=0;g.prototype.stepCallExpression=function(e,t,r){if(!t.ia){t.ia=1;var n=new C(r.callee,t.scope);return n.sa=!0,n}if(t.ia===1){t.ia=2;var i=t.value;if(Array.isArray(i)){if(t.U=qt(this,i),i[0]===Be?t.Pb=i[1]==="eval":t.B=i[0],i=t.U,this.P)return t.ia=1,Qe(this,i,t.value)}else t.U=i;t.F=[],t.A=0}if(i=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),r.arguments[t.A])return new C(r.arguments[t.A++],t.scope);if(r.type==="NewExpression"){if(i instanceof U&&!i.Ab||j(this,this.j,re(this,r.callee)+" is not a constructor"),i===this.qa)t.B=Fe(this);else{var a=i.h.prototype;(typeof a!="object"||a===null)&&(a=this.M),t.B=this.s(a)}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,i instanceof U||j(this,this.j,re(this,r.callee)+" is not a function"),e=i.node){for(r=Wt(this,e.body,i.Va),n=Fe(this),i=0;i<t.F.length;i++)this.g(n,i,t.F[i]);for(this.g(r.object,"arguments",n),i=0;i<e.oa.length;i++)this.g(r.object,e.oa[i].name,t.F.length>i?t.F[i]:void 0);return r.S||(t.B=Bt(this,t.B)),this.g(r.object,"this",t.B,$t),t.value=void 0,new C(e.body,r)}if(i.eval)if(i=t.F[0],typeof i!="string")t.value=i;else{try{n=Ne(String(i),"eval"+this.Hb++)}catch(d){j(this,this.T,"Invalid code: "+d.message)}return i=this.ya(),i.type="EvalProgram_",i.body=n.body,ut(i,r.start,r.end),r=t.Pb?t.scope:this.N,r.S?r=Wt(this,n,r):Je(this,n,r),this.value=void 0,new C(i,r)}else if(i.Ta)t.scope.S||(t.B=Bt(this,t.B)),t.value=i.Ta.apply(t.B,t.F);else if(i.Za){var s=this;n=i.Za.length-1,n=t.F.concat(Array(n)).slice(0,n),n.push(function(d){t.value=d,s.za=!1}),this.za=!0,t.scope.S||(t.B=Bt(this,t.B)),i.Za.apply(t.B,n)}else j(this,this.j,re(this,r.callee)+" is not callable")}};g.prototype.stepConditionalExpression=function(e,t,r){var n=t.na||0;if(n===0)return t.na=1,new C(r.test,t.scope);if(n===1){if(t.na=2,(n=!!t.value)&&r.da)return new C(r.da,t.scope);if(!n&&r.alternate)return new C(r.alternate,t.scope);this.value=void 0}e.pop(),r.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};g.prototype.stepContinueStatement=function(e,t,r){Ze(this,2,void 0,r.label&&r.label.name)};g.prototype.stepDebuggerStatement=function(e){e.pop()};g.prototype.stepDoWhileStatement=function(e,t,r){if(r.type==="DoWhileStatement"&&t.ga===void 0&&(t.value=!0,t.ga=!0),!t.ga)return t.ga=!0,new C(r.test,t.scope);if(!t.value)e.pop();else if(r.body)return t.ga=!1,t.W=!0,new C(r.body,t.scope)};g.prototype.stepEmptyStatement=function(e){e.pop()};g.prototype.stepEvalProgram_=function(e,t,r){var n=t.A||0;if(r=r.body[n])return t.A=n+1,new C(r,t.scope);e.pop(),e[e.length-1].value=this.value};g.prototype.stepExpressionStatement=function(e,t,r){if(!t.ka)return this.value=void 0,t.ka=!0,new C(r.la,t.scope);e.pop(),this.value=t.value};g.prototype.stepForInStatement=function(e,t,r){if(!t.Ub&&(t.Ub=!0,r.left.fa&&r.left.fa[0].ua))return t.scope.S&&j(this,this.T,"for-in loop variable declaration may not have an initializer"),new C(r.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new C(r.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 U)for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u.h));;){var n=t.wa.shift();if(n===void 0)break;if(Object.prototype.hasOwnProperty.call(t.u.h,n)&&!t.kb[n]&&(t.kb[n]=!0,Object.prototype.propertyIsEnumerable.call(t.u.h,n))){t.Ra=n;break e}}else if(t.u!==null&&t.u!==void 0){for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u));n=t.wa.shift(),n!==void 0;)if(t.kb[n]=!0,Object.prototype.propertyIsEnumerable.call(t.u,n)){t.Ra=n;break e}}if(t.u=ge(this,t.u),t.wa=null,t.u===null){e.pop();return}}if(!t.wb)if(t.wb=!0,e=r.left,e.type==="VariableDeclaration")t.pa=[Be,e.fa[0].id.name];else return t.pa=null,t=new C(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,n=Zt(this,t.pa,e)))return Qt(this,n,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,r.body)return new C(r.body,t.scope)};g.prototype.stepForStatement=function(e,t,r){switch(t.na){default:if(t.na=1,r.ua)return new C(r.ua,t.scope);break;case 1:if(t.na=2,r.test)return new C(r.test,t.scope);break;case 2:if(t.na=3,r.test&&!t.value)e.pop();else return t.W=!0,new C(r.body,t.scope);break;case 3:if(t.na=1,r.update)return new C(r.update,t.scope)}};g.prototype.stepFunctionDeclaration=function(e){e.pop()};g.prototype.stepFunctionExpression=function(e,t,r){e.pop(),t=e[e.length-1],e=t.scope,r.id&&(e=Yt(this,e)),t.value=zt(this,r,e,t.Pa),r.id&&this.g(e.object,r.id.name,t.value,$t)};g.prototype.stepIdentifier=function(e,t,r){if(e.pop(),t.sa)e[e.length-1].value=[Be,r.name];else{if(t=Jt(this,r.name),this.P)return Qe(this,t,this.Na);e[e.length-1].value=t}};g.prototype.stepIfStatement=g.prototype.stepConditionalExpression;g.prototype.stepLabeledStatement=function(e,t,r){return e.pop(),e=t.labels||[],e.push(r.label.name),t=new C(r.body,t.scope),t.labels=e,t};g.prototype.stepLiteral=function(e,t,r){e.pop(),t=r.value,t instanceof RegExp&&(r=this.s(this.Ma),Kt(this,r,t),t=r),e[e.length-1].value=t};g.prototype.stepLogicalExpression=function(e,t,r){if(r.operator!=="&&"&&r.operator!=="||")throw SyntaxError("Unknown logical operator: "+r.operator);if(!t.ja)return t.ja=!0,new C(r.left,t.scope);if(t.Da)e.pop(),e[e.length-1].value=t.value;else if(r.operator==="&&"&&!t.value||r.operator==="||"&&t.value)e.pop(),e[e.length-1].value=t.value;else return t.Da=!0,new C(r.right,t.scope)};g.prototype.stepMemberExpression=function(e,t,r){if(!t.Ca)return t.Ca=!0,new C(r.object,t.scope);if(r.bb)if(t.Vb)r=t.value;else return t.u=t.value,t.Vb=!0,new C(r.Wa,t.scope);else t.u=t.value,r=r.Wa.name;if(e.pop(),t.sa)e[e.length-1].value=[t.u,r];else{if(r=this.G(t.u,r),this.P)return Qe(this,r,t.u);e[e.length-1].value=r}};g.prototype.stepNewExpression=g.prototype.stepCallExpression;g.prototype.stepObjectExpression=function(e,t,r){var n=t.A||0,i=r.h[n];if(t.u){var a=t.Pa;t.Ja[a]||(t.Ja[a]={}),t.Ja[a][i.kind]=t.value,t.A=++n,i=r.h[n]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(i){var s=i.key;if(s.type==="Identifier")a=s.name;else if(s.type==="Literal")a=s.value;else throw SyntaxError("Unknown object structure: "+s.type);return t.Pa=a,new C(i.value,t.scope)}for(s in t.Ja)r=t.Ja[s],"get"in r||"set"in r?this.g(t.u,s,Ye,{configurable:!0,enumerable:!0,get:r.get,set:r.set}):this.g(t.u,s,r.init);e.pop(),e[e.length-1].value=t.u};g.prototype.stepProgram=function(e,t,r){if(e=r.body.shift())return t.done=!1,new C(e,t.scope);t.done=!0};g.prototype.stepReturnStatement=function(e,t,r){if(r.K&&!t.ka)return t.ka=!0,new C(r.K,t.scope);Ze(this,3,t.value)};g.prototype.stepSequenceExpression=function(e,t,r){var n=t.A||0;if(r=r.xb[n])return t.A=n+1,new C(r,t.scope);e.pop(),e[e.length-1].value=t.value};g.prototype.stepSwitchStatement=function(e,t,r){if(!t.ga)return t.ga=1,new C(r.Qb,t.scope);for(t.ga===1&&(t.ga=2,t.hc=t.value,t.cb=-1);;){var n=t.gb||0,i=r.tb[n];if(t.Ha||!i||i.test)if(i||t.Ha||t.cb===-1)if(i){if(!t.Ha&&!t.Fb&&i.test)return t.Fb=!0,new C(i.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var a=t.A||0;if(i.da[a])return t.Zb=!0,t.A=a+1,new C(i.da[a],t.scope)}t.Fb=!1,t.A=0,t.gb=n+1}else{e.pop();break}else t.Ha=!0,t.gb=t.cb;else t.cb=n,t.gb=n+1}};g.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=Jt(this,"this")};g.prototype.stepThrowStatement=function(e,t,r){if(t.ka)j(this,t.value);else return t.ka=!0,new C(r.K,t.scope)};g.prototype.stepTryStatement=function(e,t,r){if(!t.Rb)return t.Rb=!0,new C(r.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&r.Ea)return t.Tb=!0,e=Yt(this,t.scope),this.g(e.object,r.Ea.Ua.name,t.ea.value),t.ea=void 0,new C(r.Ea.body,e);if(!t.Sb&&r.fb)return t.Sb=!0,new C(r.fb,t.scope);e.pop(),t.ea&&Ze(this,t.ea.type,t.ea.value,t.ea.label)};g.prototype.stepUnaryExpression=function(e,t,r){if(!t.ka)return t.ka=!0,e=new C(r.K,t.scope),e.sa=r.operator==="delete",e;e.pop();var n=t.value;switch(r.operator){case"-":n=-n;break;case"+":n=+n;break;case"!":n=!n;break;case"~":n=~n;break;case"delete":if(r=!0,Array.isArray(n)){var i=n[0];i===Be&&(i=t.scope),n=String(n[1]);try{delete i.h[n]}catch{t.scope.S?j(this,this.j,"Cannot delete property '"+n+"' of '"+i+"'"):r=!1}}n=r;break;case"typeof":n=n&&n.H==="Function"?"function":typeof n;break;case"void":n=void 0;break;default:throw SyntaxError("Unknown unary operator: "+r.operator)}e[e.length-1].value=n};g.prototype.stepUpdateExpression=function(e,t,r){if(!t.ja)return t.ja=!0,e=new C(r.K,t.scope),e.sa=!0,e;if(t.Ga||(t.Ga=t.value),t.Ba&&(t.ma=t.value),!t.Ba){var n=qt(this,t.Ga);if(t.ma=n,this.P)return t.Ba=!0,Qe(this,n,t.Ga)}if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{if(n=Number(t.ma),r.operator==="++")var i=n+1;else if(r.operator==="--")i=n-1;else throw SyntaxError("Unknown update expression: "+r.operator);if(r=r.prefix?i:n,n=Zt(this,t.Ga,i))return t.ta=!0,t.ib=r,Qt(this,n,t.Ga,i);e.pop(),e[e.length-1].value=r}};g.prototype.stepVariableDeclaration=function(e,t,r){r=r.fa;var n=t.A||0,i=r[n];for(t.Bb&&i&&(Zn(this,i.id.name,t.value),t.Bb=!1,i=r[++n]);i;){if(i.ua)return t.A=n,t.Bb=!0,t.Pa=i.id.name,new C(i.ua,t.scope);i=r[++n]}e.pop()};g.prototype.stepWithStatement=function(e,t,r){return t.Ca?(e.pop(),e=Yt(this,t.scope,t.value),new C(r.body,e)):(t.Ca=!0,new C(r.object,t.scope))};g.prototype.stepWhileStatement=g.prototype.stepDoWhileStatement;be.Interpreter=g;g.prototype.step=g.prototype.lb;g.prototype.run=g.prototype.Eb;g.prototype.appendCode=g.prototype.Jb;g.prototype.createObject=g.prototype.Aa;g.prototype.createObjectProto=g.prototype.s;g.prototype.createAsyncFunction=g.prototype.ub;g.prototype.createNativeFunction=g.prototype.i;g.prototype.getProperty=g.prototype.G;g.prototype.setProperty=g.prototype.g;g.prototype.nativeToPseudo=g.prototype.Ia;g.prototype.pseudoToNative=g.prototype.R;g.prototype.getGlobalScope=g.prototype.Xb;g.prototype.getStateStack=g.prototype.Yb;g.prototype.setStateStack=g.prototype.ec;g.VALUE_IN_DESCRIPTOR=Ye;const Qr=e=>e.split(`
11
9
  `).map(t=>{const r=t.trim();if(t.includes("__awaiter"))return;if(!r.startsWith("state."))return t;const[i,a]=r.split("="),d=`setRootState('${i.replace("state.","").trim()}', ${a.trim()})`;return`
12
10
  ${t}
13
11
  ${d}
14
12
  `}).filter(Boolean).join(`
15
- `),_n=e=>e+"JSON",ti=({builder:e,context:t,event:r,rootState:n,localState:i,rootSetState:a,code:s})=>{const d={...n,...i},h=qn({builder:e,context:t,event:r,state:d}),m=h.map(([N])=>{const F=_n(N);return`var ${N} = ${F} === undefined ? undefined : JSON.parse(${F});`}).join(`
16
- `),v=ei(s);if(v===""){y.logger.warn("Skipping evaluation of empty code block.");return}const S=`
13
+ `),Un=e=>e+"JSON",ei=({builder:e,context:t,event:r,rootState:n,localState:i,rootSetState:a,code:s})=>{const d={...n,...i},h=Xn({builder:e,context:t,event:r,state:d}),m=h.map(([P])=>{const F=Un(P);return`var ${P} = ${F} === undefined ? undefined : JSON.parse(${F});`}).join(`
14
+ `),v=Qr(s);if(v===""){y.logger.warn("Skipping evaluation of empty code block.");return}const x=`
17
15
  function theFunction() {
18
16
  ${m}
19
17
 
20
18
  ${v}
21
19
  }
22
20
  theFunction();
23
- `,D=(N,F)=>{const L=Zn(d,N,F);a==null||a(L)},U=function(N,F){h.forEach(([L,Y])=>{const x=JSON.stringify(Y);N.setProperty(F,_n(L),x)}),N.setProperty(F,"setRootState",N.createNativeFunction(D))};try{const N=new g(S,U);return N.run(),N.pseudoToNative(N.value)}catch(N){y.logger.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.",{e:N});return}},ni=e=>y.isBrowser()?Mr(e):ti(e);function qe({code:e,context:t,localState:r,rootState:n,rootSetState:i,event:a,isExpression:s=!0}){if(e===""){y.logger.warn("Skipping evaluation of empty code block.");return}const d={code:Br(e,{isExpression:s}),builder:Fr(),context:t,event:a,rootSetState:i,rootState:n,localState:r};try{return ni(d)}catch(h){y.logger.error("Failed code evaluation: "+h.message,{code:e});return}}const ri=({block:e,context:t,localState:r,rootState:n,rootSetState:i})=>{if(!e.bindings)return e;const a=y.fastClone(e),s={...a,properties:{...a.properties},actions:{...a.actions}};for(const d in e.bindings){const h=e.bindings[d],m=qe({code:h,localState:r,rootState:n,rootSetState:i,context:t});Zn(s,d,m)}return s};function ct({block:e,context:t,shouldEvaluateBindings:r,localState:n,rootState:i,rootSetState:a}){const s=e;return r?ri({block:s,localState:n,rootState:i,rootSetState:a,context:t}):s}const ii=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ut=e=>typeof e=="string"&&ii.includes(e.toLowerCase()),oi=({block:e,context:t,registeredComponents:r})=>{var a;const n=(a=ct({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:a.name;if(!n)return null;const i=r[n];if(i)return i;console.warn(`
21
+ `,D=(P,F)=>{const L=Yn(d,P,F);a==null||a(L)},M=function(P,F){h.forEach(([L,Y])=>{const b=JSON.stringify(Y);P.setProperty(F,Un(L),b)}),P.setProperty(F,"setRootState",P.createNativeFunction(D))};try{const P=new g(x,M);return P.run(),P.pseudoToNative(P.value)}catch(P){y.logger.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.",{e:P});return}},ti=e=>y.isBrowser()?Br(e):ei(e);function qe({code:e,context:t,localState:r,rootState:n,rootSetState:i,event:a,isExpression:s=!0}){if(e===""){y.logger.warn("Skipping evaluation of empty code block.");return}const d={code:Fr(e,{isExpression:s}),builder:Nr(),context:t,event:a,rootSetState:i,rootState:n,localState:r};try{return ti(d)}catch(h){y.logger.error("Failed code evaluation: "+h.message,{code:e});return}}const ni=({block:e,context:t,localState:r,rootState:n,rootSetState:i})=>{if(!e.bindings)return e;const a=y.fastClone(e),s={...a,properties:{...a.properties},actions:{...a.actions}};for(const d in e.bindings){const h=e.bindings[d],m=qe({code:h,localState:r,rootState:n,rootSetState:i,context:t});Yn(s,d,m)}return s};function ct({block:e,context:t,shouldEvaluateBindings:r,localState:n,rootState:i,rootSetState:a}){const s=e;return r?ni({block:s,localState:n,rootState:i,rootSetState:a,context:t}):s}const ri=({block:e,context:t,registeredComponents:r})=>{var a;const n=(a=ct({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:a.name;if(!n)return null;const i=r[n];if(i)return i;console.warn(`
24
22
  Could not find a registered component named "${n}".
25
- If you registered it, is the file that registered it imported by the file that needs to render it?`)},ai=({block:e,context:t})=>{const{repeat:r,...n}=e;if(!(r!=null&&r.collection))return;const i=qe({code:r.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(i))return;const a=r.collection.split(".").pop(),s=r.itemName||(a?a+"Item":"item");return i.map((h,m)=>({context:{...t,localState:{...t.localState,$index:m,$item:h,[s]:h,[`$${s}Index`]:m}},block:n}))},ir={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Wn=(e,t=ir)=>`@media (max-width: ${t[e].max}px)`,or=({small:e,medium:t})=>{const r=y.fastClone(ir);if(!e||!t)return r;const n=Math.floor(e/2);r.small={max:e,min:n,default:n+1};const i=r.small.max+1;r.medium={max:t,min:i,default:i+1};const a=r.medium.max+1;return r.large={max:2e3,min:a,default:a+1},r},si=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),ar=e=>Object.entries(e).map(([r,n])=>{if(typeof n=="string")return`${si(r)}: ${n};`}).filter(y.checkIsDefined),li=e=>ar(e).join(`
26
- `),Dt=({mediaQuery:e,className:t,styles:r})=>{const n=`.${t} {
27
- ${li(r)}
23
+ If you registered it, is the file that registered it imported by the file that needs to render it?`)},ii=({block:e,context:t})=>{const{repeat:r,...n}=e;if(!(r!=null&&r.collection))return;const i=qe({code:r.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(i))return;const a=r.collection.split(".").pop(),s=r.itemName||(a?a+"Item":"item");return i.map((h,m)=>({context:{...t,localState:{...t.localState,$index:m,$item:h,[s]:h,[`$${s}Index`]:m}},block:n}))},tr={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Dn=(e,t=tr)=>`@media (max-width: ${t[e].max}px)`,nr=({small:e,medium:t})=>{const r=y.fastClone(tr);if(!e||!t)return r;const n=Math.floor(e/2);r.small={max:e,min:n,default:n+1};const i=r.small.max+1;r.medium={max:t,min:i,default:i+1};const a=r.medium.max+1;return r.large={max:2e3,min:a,default:a+1},r},oi=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),rr=e=>Object.entries(e).map(([r,n])=>{if(typeof n=="string")return`${oi(r)}: ${n};`}).filter(y.checkIsDefined),ai=e=>rr(e).join(`
24
+ `),Mt=({mediaQuery:e,className:t,styles:r})=>{const n=`.${t} {
25
+ ${ai(r)}
28
26
  }`;return e?`${e} {
29
27
  ${n}
30
- }`:n};function ht(e){return u.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},id:e.id})}function ci(e){function t(){const n=ct({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0});return y.checkIsDefined(n.hide)?!n.hide:y.checkIsDefined(n.show)?n.show:!0}function r(){var N;const n=ct({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0}),i=n.responsiveStyles,a=e.context.content,s=or(((N=a==null?void 0:a.meta)==null?void 0:N.breakpoints)||{}),d=i==null?void 0:i.large,h=i==null?void 0:i.medium,m=i==null?void 0:i.small,v=n.id;if(!v)return"";const S=d?Dt({className:v,styles:d}):"",D=h?Dt({className:v,styles:h,mediaQuery:Wn("medium",s)}):"",U=m?Dt({className:v,styles:m,mediaQuery:Wn("small",s)}):"";return[S,D,U].join(" ")}return u.jsx(u.Fragment,{children:r()&&t()?u.jsx(u.Fragment,{children:u.jsx(ht,{styles:r()})}):null})}function ui(e){return e.charAt(0).toUpperCase()+e.slice(1)}const di=e=>`on${ui(e)}`,fi=(e,t)=>r=>qe({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function $t(e){var n;const t={},r=(n=e.block.actions)!=null?n:{};for(const i in r){if(!r.hasOwnProperty(i))continue;const a=r[i];let s=di(i);if(e.stripPrefix)switch(y.TARGET){case"vue":s=s.replace("v-on:","");break;case"svelte":s=s.replace("on:","");break}t[s]=fi(a,e)}return t}function hi({properties:e}){return e.className=e.class,delete e.class,e}const pi=e=>({href:e.href});function ut({block:e,context:t}){var n;const r={...pi(e),...e.properties,"builder-id":e.id,style:e.style?mi(e.style):void 0,class:[e.id,"builder-block",e.class,(n=e.properties)==null?void 0:n.class].filter(Boolean).join(" ")};return hi({properties:r,context:t,block:e})}function mi(e){switch(y.TARGET){case"svelte":case"vue":case"solid":return ar(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}function Vn(e){return u.jsxs(u.Fragment,{children:[" ",e.hasChildren?u.jsx(u.Fragment,{children:u.jsxs(e.Wrapper,{...ut({block:e.block,context:e.context}),...$t({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:[" ",e.children," "]})}):u.jsx(u.Fragment,{children:u.jsx(e.Wrapper,{...ut({block:e.block,context:e.context}),...$t({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})})})," "]})}function gi(e){return u.jsx(e.Wrapper,{...e.wrapperProps,attributes:e.includeBlockProps?{...ut({block:e.block,context:e.context}),...$t({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{},children:e.children})}const vi=({componentOptions:e,builderBlock:t,context:r,componentRef:n,includeBlockProps:i,isInteractive:a,contextValue:s})=>{const d={...e,...i?{attributes:ut({block:t,context:s})}:{}};return a?{Wrapper:n,block:t,context:r,wrapperProps:e,includeBlockProps:i}:d};function Ln(e){var n;const[t,r]=k.useState(()=>e.isInteractive?gi:e.componentRef);return u.jsx(u.Fragment,{children:e.componentRef?u.jsx(u.Fragment,{children:u.jsx(t,{...vi({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:(n=e.blockChildren)==null?void 0:n.map(i=>u.jsx(pt,{block:i,context:e.context,registeredComponents:e.registeredComponents},i.id))})}):null})}function yi(e){const[t,r]=k.useState(()=>e.repeatContext);return u.jsx(Kt.Provider,{value:t,children:u.jsx(pt,{block:e.block,context:t,registeredComponents:e.registeredComponents})})}function pt(e){var v,S,D;function t(){return oi({block:e.block,context:e.context,registeredComponents:e.registeredComponents})}function r(){return ai({block:e.block,context:e.context})}function n(){var U;return(U=e.block.repeat)!=null&&U.collection?e.block:ct({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0})}function i(){return e.block.tagName||"div"}function a(){var F,L;if((F=e.block.repeat)!=null&&F.collection)return!!((L=r==null?void 0:r())!=null&&L.length);const U="hide"in n()?n().hide:!1;return("show"in n()?n().show:!0)&&!U}function s(){var N,F;return!((N=t==null?void 0:t())!=null&&N.component)&&!r()?(F=n().children)!=null?F:[]:[]}function d(){var U,N,F,L,Y,x;return{blockChildren:(U=n().children)!=null?U:[],componentRef:(N=t==null?void 0:t())==null?void 0:N.component,componentOptions:{...Nr(n()),builderContext:e.context,...((F=t==null?void 0:t())==null?void 0:F.name)==="Symbol"||((L=t==null?void 0:t())==null?void 0:L.name)==="Columns"?{builderComponents:e.registeredComponents}:{}},context:h,registeredComponents:e.registeredComponents,builderBlock:n(),includeBlockProps:((Y=t==null?void 0:t())==null?void 0:Y.noWrap)===!0,isInteractive:!((x=t==null?void 0:t())!=null&&x.isRSC)}}const[h,m]=k.useState(()=>e.context);return u.jsx(u.Fragment,{children:a()?u.jsxs(u.Fragment,{children:[u.jsx(ci,{block:e.block,context:e.context}),(v=t==null?void 0:t())!=null&&v.noWrap?u.jsx(u.Fragment,{children:u.jsx(Ln,{componentRef:d().componentRef,componentOptions:d().componentOptions,blockChildren:d().blockChildren,context:d().context,registeredComponents:d().registeredComponents,builderBlock:d().builderBlock,includeBlockProps:d().includeBlockProps,isInteractive:d().isInteractive})}):u.jsxs(u.Fragment,{children:[Ut(i())?u.jsx(u.Fragment,{children:u.jsx(Vn,{Wrapper:i(),block:n(),context:e.context,hasChildren:!1})}):null,!Ut(i())&&r()?u.jsx(u.Fragment,{children:(S=r())==null?void 0:S.map((U,N)=>u.jsx(yi,{repeatContext:U.context,block:U.block,registeredComponents:e.registeredComponents},N))}):null,!Ut(i())&&!r()?u.jsx(u.Fragment,{children:u.jsxs(Vn,{Wrapper:i(),block:n(),context:e.context,hasChildren:!0,children:[u.jsx(Ln,{componentRef:d().componentRef,componentOptions:d().componentOptions,blockChildren:d().blockChildren,context:d().context,registeredComponents:d().registeredComponents,builderBlock:d().builderBlock,includeBlockProps:d().includeBlockProps,isInteractive:d().isInteractive}),(D=s())==null?void 0:D.map(U=>u.jsx(pt,{block:U,context:h,registeredComponents:e.registeredComponents},U.id))]})}):null]})]}):null})}function xi(e){function t(){var i;return"builder-blocks"+((i=e.blocks)!=null&&i.length?"":" no-blocks")}function r(){var i,a;y.isEditing()&&!((i=e.blocks)!=null&&i.length)&&((a=window.parent)==null||a.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function n(){var i,a;y.isEditing()&&!((i=e.blocks)!=null&&i.length)&&((a=window.parent)==null||a.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return u.jsxs(u.Fragment,{children:[u.jsx(e.BlocksWrapper,{className:t()+" props-blocks-wrapper-4f2c12d8","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:i=>r(),onMouseEnter:i=>n(),onKeyPress:i=>r(),...e.BlocksWrapperProps,children:e.children}),u.jsx("style",{children:`.props-blocks-wrapper-4f2c12d8 {
28
+ }`:n};function ft(e){return u.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},id:e.id})}function si(e){function t(){const n=ct({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0});return y.checkIsDefined(n.hide)?!n.hide:y.checkIsDefined(n.show)?n.show:!0}function r(){var P;const n=ct({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0}),i=n.responsiveStyles,a=e.context.content,s=nr(((P=a==null?void 0:a.meta)==null?void 0:P.breakpoints)||{}),d=i==null?void 0:i.large,h=i==null?void 0:i.medium,m=i==null?void 0:i.small,v=n.id;if(!v)return"";const x=d?Mt({className:v,styles:d}):"",D=h?Mt({className:v,styles:h,mediaQuery:Dn("medium",s)}):"",M=m?Mt({className:v,styles:m,mediaQuery:Dn("small",s)}):"";return[x,D,M].join(" ")}return u.jsx(u.Fragment,{children:r()&&t()?u.jsx(u.Fragment,{children:u.jsx(ft,{styles:r()})}):null})}function li(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ci=e=>`on${li(e)}`,ui=(e,t)=>r=>qe({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function ir(e){var n;const t={},r=(n=e.block.actions)!=null?n:{};for(const i in r){if(!r.hasOwnProperty(i))continue;const a=r[i];let s=ci(i);if(e.stripPrefix)switch(y.TARGET){case"vue":s=s.replace("v-on:","");break;case"svelte":s=s.replace("on:","");break}t[s]=ui(a,e)}return t}function di({properties:e}){return e.className=e.class,delete e.class,e}const fi=e=>({href:e.href});function en({block:e,context:t}){var n;const r={...fi(e),...e.properties,"builder-id":e.id,style:e.style?hi(e.style):void 0,class:[e.id,"builder-block",e.class,(n=e.properties)==null?void 0:n.class].filter(Boolean).join(" ")};return di({properties:r,context:t,block:e})}function hi(e){switch(y.TARGET){case"svelte":case"vue":case"solid":return rr(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const pi=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),mi=e=>typeof e=="string"&&pi.has(e.toLowerCase());function gi(e){return u.jsx(u.Fragment,{children:mi(e.TagName)?u.jsx(u.Fragment,{children:u.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):u.jsx(u.Fragment,{children:typeof e.TagName=="string"?u.jsx(u.Fragment,{children:u.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})}):u.jsx(u.Fragment,{children:u.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})})}function yi(e){return u.jsx(gi,{TagName:e.Wrapper,attributes:en({block:e.block,context:e.context}),actionAttributes:ir({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function vi(e){return u.jsx(e.Wrapper,{...e.wrapperProps,attributes:e.includeBlockProps?{...en({block:e.block,context:e.context}),...ir({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{},children:e.children})}const xi=({componentOptions:e,builderBlock:t,context:r,componentRef:n,includeBlockProps:i,isInteractive:a,contextValue:s})=>{const d={...e,...i?{attributes:en({block:t,context:s})}:{}};return a?{Wrapper:n,block:t,context:r,wrapperProps:e,includeBlockProps:i}:d};function _n(e){var n;const[t,r]=k.useState(()=>e.isInteractive?vi:e.componentRef);return u.jsx(u.Fragment,{children:e.componentRef?u.jsx(u.Fragment,{children:u.jsx(t,{...xi({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:(n=e.blockChildren)==null?void 0:n.map(i=>u.jsx(ht,{block:i,context:e.context,registeredComponents:e.registeredComponents},i.id))})}):null})}function bi(e){const[t,r]=k.useState(()=>e.repeatContext);return u.jsx(Lt.Provider,{value:t,children:u.jsx(ht,{block:e.block,context:t,registeredComponents:e.registeredComponents})})}function ht(e){var v,x,D;function t(){return ri({block:e.block,context:e.context,registeredComponents:e.registeredComponents})}function r(){return ii({block:e.block,context:e.context})}function n(){var M;return(M=e.block.repeat)!=null&&M.collection?e.block:ct({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0})}function i(){return e.block.tagName||"div"}function a(){var F,L;if((F=e.block.repeat)!=null&&F.collection)return!!((L=r==null?void 0:r())!=null&&L.length);const M="hide"in n()?n().hide:!1;return("show"in n()?n().show:!0)&&!M}function s(){var P,F;return!((P=t==null?void 0:t())!=null&&P.component)&&!r()?(F=n().children)!=null?F:[]:[]}function d(){var M,P,F,L,Y,b;return{blockChildren:(M=n().children)!=null?M:[],componentRef:(P=t==null?void 0:t())==null?void 0:P.component,componentOptions:{...Pr(n()),builderContext:e.context,...((F=t==null?void 0:t())==null?void 0:F.name)==="Symbol"||((L=t==null?void 0:t())==null?void 0:L.name)==="Columns"?{builderComponents:e.registeredComponents}:{}},context:h,registeredComponents:e.registeredComponents,builderBlock:n(),includeBlockProps:((Y=t==null?void 0:t())==null?void 0:Y.noWrap)===!0,isInteractive:!((b=t==null?void 0:t())!=null&&b.isRSC)}}const[h,m]=k.useState(()=>e.context);return u.jsx(u.Fragment,{children:a()?u.jsxs(u.Fragment,{children:[u.jsx(si,{block:e.block,context:e.context}),(v=t==null?void 0:t())!=null&&v.noWrap?u.jsx(u.Fragment,{children:u.jsx(_n,{componentRef:d().componentRef,componentOptions:d().componentOptions,blockChildren:d().blockChildren,context:d().context,registeredComponents:d().registeredComponents,builderBlock:d().builderBlock,includeBlockProps:d().includeBlockProps,isInteractive:d().isInteractive})}):u.jsx(u.Fragment,{children:r()?u.jsx(u.Fragment,{children:(D=r())==null?void 0:D.map((M,P)=>u.jsx(bi,{repeatContext:M.context,block:M.block,registeredComponents:e.registeredComponents},P))}):u.jsx(u.Fragment,{children:u.jsxs(yi,{Wrapper:i(),block:n(),context:e.context,children:[u.jsx(_n,{componentRef:d().componentRef,componentOptions:d().componentOptions,blockChildren:d().blockChildren,context:d().context,registeredComponents:d().registeredComponents,builderBlock:d().builderBlock,includeBlockProps:d().includeBlockProps,isInteractive:d().isInteractive}),(x=s())==null?void 0:x.map(M=>u.jsx(ht,{block:M,context:h,registeredComponents:e.registeredComponents},M.id))]})})})]}):null})}function Si(e){function t(){var i;return"builder-blocks"+((i=e.blocks)!=null&&i.length?"":" no-blocks")}function r(){var i,a;y.isEditing()&&!((i=e.blocks)!=null&&i.length)&&((a=window.parent)==null||a.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function n(){var i,a;y.isEditing()&&!((i=e.blocks)!=null&&i.length)&&((a=window.parent)==null||a.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return u.jsxs(u.Fragment,{children:[u.jsx(e.BlocksWrapper,{className:t()+" props-blocks-wrapper-4f2c12d8","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:i=>r(),onMouseEnter:i=>n(),onKeyPress:i=>r(),...e.BlocksWrapperProps,children:e.children}),u.jsx("style",{children:`.props-blocks-wrapper-4f2c12d8 {
31
29
  display: flex;
32
30
  flex-direction: column;
33
31
  align-items: stretch;
34
- }`})]})}function et(e){var n,i,a;const t=k.useContext(Kt),r=k.useContext(Jn);return u.jsx(xi,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:(n=e.context)==null?void 0:n.BlocksWrapper,BlocksWrapperProps:(i=e.context)==null?void 0:i.BlocksWrapperProps,children:e.blocks?u.jsx(u.Fragment,{children:(a=e.blocks)==null?void 0:a.map(s=>u.jsx(pt,{block:s,context:e.context||t,registeredComponents:e.registeredComponents||r.registeredComponents},s.id))}):null})}function sr(e){var Y;const[t,r]=k.useState(()=>typeof e.space=="number"?e.space||0:20),[n,i]=k.useState(()=>e.columns||[]),[a,s]=k.useState(()=>e.stackColumnsAt||"tablet");function d(x){var K;return((K=n[x])==null?void 0:K.width)||100/n.length}function h(x){const K=t*(n.length-1)/n.length;return`calc(${d(x)}% - ${K}px)`}function m({stackedStyle:x,desktopStyle:K}){return a==="tablet"?x:K}function v({stackedStyle:x,desktopStyle:K}){return a==="never"?K:x}const[S,D]=k.useState(()=>e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column");function U(){return{"--flex-dir":S,"--flex-dir-tablet":m({stackedStyle:S,desktopStyle:"row"})}}function N(x){const K=x===0?0:t,ee=h(x),ae=`${K}px`,$="100%",te=0;return{width:ee,["marginLeft"]:ae,"--column-width-mobile":v({stackedStyle:$,desktopStyle:ee}),"--column-margin-left-mobile":v({stackedStyle:te,desktopStyle:ae}),"--column-width-tablet":m({stackedStyle:$,desktopStyle:ee}),"--column-margin-left-tablet":m({stackedStyle:te,desktopStyle:ae})}}function F(x){var ee,ae;return or(((ae=(ee=e.builderContext.content)==null?void 0:ee.meta)==null?void 0:ae.breakpoints)||{})[x].max}function L(){return`
32
+ }`})]})}function et(e){var n,i,a;const t=k.useContext(Lt),r=k.useContext(zn);return u.jsx(Si,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:(n=e.context)==null?void 0:n.BlocksWrapper,BlocksWrapperProps:(i=e.context)==null?void 0:i.BlocksWrapperProps,children:e.blocks?u.jsx(u.Fragment,{children:(a=e.blocks)==null?void 0:a.map(s=>u.jsx(ht,{block:s,context:e.context||t,registeredComponents:e.registeredComponents||r.registeredComponents},s.id))}):null})}function or(e){var Y;const[t,r]=k.useState(()=>typeof e.space=="number"?e.space||0:20),[n,i]=k.useState(()=>e.columns||[]),[a,s]=k.useState(()=>e.stackColumnsAt||"tablet");function d(b){var K;return((K=n[b])==null?void 0:K.width)||100/n.length}function h(b){const K=t*(n.length-1)/n.length;return`calc(${d(b)}% - ${K}px)`}function m({stackedStyle:b,desktopStyle:K}){return a==="tablet"?b:K}function v({stackedStyle:b,desktopStyle:K}){return a==="never"?K:b}const[x,D]=k.useState(()=>e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column");function M(){return{"--flex-dir":x,"--flex-dir-tablet":m({stackedStyle:x,desktopStyle:"row"})}}function P(b){const K=b===0?0:t,ee=h(b),ae=`${K}px`,$="100%",te=0;return{width:ee,["marginLeft"]:ae,"--column-width-mobile":v({stackedStyle:$,desktopStyle:ee}),"--column-margin-left-mobile":v({stackedStyle:te,desktopStyle:ae}),"--column-width-tablet":m({stackedStyle:$,desktopStyle:ee}),"--column-margin-left-tablet":m({stackedStyle:te,desktopStyle:ae})}}function F(b){var ee,ae;return nr(((ae=(ee=e.builderContext.content)==null?void 0:ee.meta)==null?void 0:ae.breakpoints)||{})[b].max}function L(){return`
35
33
  @media (max-width: ${F("medium")}px) {
36
34
  .${e.builderBlock.id}-breakpoints {
37
35
  flex-direction: var(--flex-dir-tablet);
@@ -55,14 +53,14 @@ theFunction();
55
53
  margin-left: var(--column-margin-left-mobile) !important;
56
54
  }
57
55
  },
58
- `}return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:`builder-columns ${e.builderBlock.id}-breakpoints div-3c01d6ec`,style:U(),children:[u.jsx(u.Fragment,{children:u.jsx(ht,{styles:L()})}),(Y=e.columns)==null?void 0:Y.map((x,K)=>k.createElement("div",{className:"builder-column div-3c01d6ec-2",style:N(K),key:K},u.jsx(et,{path:`component.options.columns.${K}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,blocks:x.blocks})))]}),u.jsx("style",{children:`.div-3c01d6ec {
56
+ `}return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:`builder-columns ${e.builderBlock.id}-breakpoints div-3c01d6ec`,style:M(),children:[u.jsx(u.Fragment,{children:u.jsx(ft,{styles:L()})}),(Y=e.columns)==null?void 0:Y.map((b,K)=>k.createElement("div",{className:"builder-column div-3c01d6ec-2",style:P(K),key:K},u.jsx(et,{path:`component.options.columns.${K}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,blocks:b.blocks})))]}),u.jsx("style",{children:`.div-3c01d6ec {
59
57
  display: flex;
60
58
  line-height: normal;
61
59
  }.div-3c01d6ec-2 {
62
60
  display: flex;
63
61
  flex-direction: column;
64
62
  align-items: stretch;
65
- }`})]})}function lr(e){return u.jsx("span",{children:e.children})}function $n(e){return e.replace(/http(s)?:/,"")}function bi(e="",t,r){const n=new RegExp("([?&])"+t+"=.*?(&|$)","i"),i=e.indexOf("?")!==-1?"&":"?";return e.match(n)?e.replace(n,"$1"+t+"="+encodeURIComponent(r)+"$2"):e+i+t+"="+encodeURIComponent(r)}function Si(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return $n(e);const r=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(r){const n=e.split(r[0]),i=r[3],a=t.match("x")?t:`${t}x`;return $n(`${n[0]}_${a}${i}`)}return null}function _t(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let r=e;const n=Number(e.split("?width=")[1]);return isNaN(n)||(r=`${r} ${n}w`),t.filter(i=>i!==n).map(i=>`${bi(e,"width",i)} ${i}w`).concat([r]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(r=>[Si(e,`${r}x${r}`),r]).filter(([r])=>!!r).map(([r,n])=>`${r} ${n}w`).concat([e]).join(", "):e}function cr(e){var i,a,s,d;function t(){var v;const m=e.image||e.src;if(!m||!(m.match(/builder\.io/)||m.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((v=e.image)!=null&&v.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),_t(m)}else if(e.image&&!e.srcset)return _t(m);return _t(m)}function r(){var h;return(h=t==null?void 0:t())!=null&&h.match(/builder\.io/)&&!e.noWebp?t().replace(/\?/g,"?format=webp&"):""}function n(){const h={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?h:void 0}return u.jsxs(u.Fragment,{children:[u.jsxs(u.Fragment,{children:[u.jsxs("picture",{children:[r()?u.jsx(u.Fragment,{children:u.jsx("source",{type:"image/webp",srcSet:r()})}):null,u.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...n()},className:"builder-image"+(e.className?" "+e.className:"")+" img-40c70c9b",src:e.image,srcSet:t(),sizes:e.sizes})]}),e.aspectRatio&&!((a=(i=e.builderBlock)==null?void 0:i.children)!=null&&a.length&&e.fitContent)?u.jsx(u.Fragment,{children:u.jsx("div",{className:"builder-image-sizer div-40c70c9b",style:{paddingTop:e.aspectRatio*100+"%"}})}):null,(d=(s=e.builderBlock)==null?void 0:s.children)!=null&&d.length&&e.fitContent?u.jsx(u.Fragment,{children:e.children}):null,!e.fitContent&&e.children?u.jsx(u.Fragment,{children:u.jsx("div",{className:"div-40c70c9b-2",children:e.children})}):null]}),u.jsx("style",{children:`.img-40c70c9b {
63
+ }`})]})}function ar(e){return u.jsx("span",{children:e.children})}function Wn(e){return e.replace(/http(s)?:/,"")}function wi(e="",t,r){const n=new RegExp("([?&])"+t+"=.*?(&|$)","i"),i=e.indexOf("?")!==-1?"&":"?";return e.match(n)?e.replace(n,"$1"+t+"="+encodeURIComponent(r)+"$2"):e+i+t+"="+encodeURIComponent(r)}function ki(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return Wn(e);const r=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(r){const n=e.split(r[0]),i=r[3],a=t.match("x")?t:`${t}x`;return Wn(`${n[0]}_${a}${i}`)}return null}function Ut(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let r=e;const n=Number(e.split("?width=")[1]);return isNaN(n)||(r=`${r} ${n}w`),t.filter(i=>i!==n).map(i=>`${wi(e,"width",i)} ${i}w`).concat([r]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(r=>[ki(e,`${r}x${r}`),r]).filter(([r])=>!!r).map(([r,n])=>`${r} ${n}w`).concat([e]).join(", "):e}function sr(e){var i,a,s,d;function t(){var v;const m=e.image||e.src;if(!m||!(m.match(/builder\.io/)||m.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((v=e.image)!=null&&v.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),Ut(m)}else if(e.image&&!e.srcset)return Ut(m);return Ut(m)}function r(){var h;return(h=t==null?void 0:t())!=null&&h.match(/builder\.io/)&&!e.noWebp?t().replace(/\?/g,"?format=webp&"):""}function n(){const h={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?h:void 0}return u.jsxs(u.Fragment,{children:[u.jsxs(u.Fragment,{children:[u.jsxs("picture",{children:[r()?u.jsx(u.Fragment,{children:u.jsx("source",{type:"image/webp",srcSet:r()})}):null,u.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...n()},className:"builder-image"+(e.className?" "+e.className:"")+" img-40c70c9b",src:e.image,srcSet:t(),sizes:e.sizes})]}),e.aspectRatio&&!((a=(i=e.builderBlock)==null?void 0:i.children)!=null&&a.length&&e.fitContent)?u.jsx(u.Fragment,{children:u.jsx("div",{className:"builder-image-sizer div-40c70c9b",style:{paddingTop:e.aspectRatio*100+"%"}})}):null,(d=(s=e.builderBlock)==null?void 0:s.children)!=null&&d.length&&e.fitContent?u.jsx(u.Fragment,{children:e.children}):null,!e.fitContent&&e.children?u.jsx(u.Fragment,{children:u.jsx("div",{className:"div-40c70c9b-2",children:e.children})}):null]}),u.jsx("style",{children:`.img-40c70c9b {
66
64
  opacity: 1;
67
65
  transition: opacity 0.2s ease-in-out;
68
66
  }.div-40c70c9b {
@@ -78,7 +76,7 @@ theFunction();
78
76
  left: 0;
79
77
  width: 100%;
80
78
  height: 100%;
81
- }`})]})}function ur(e){return u.jsx("section",{...e.attributes,style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},children:e.children})}const wi={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},ki={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(){r.forEach(n=>{n.delete("width")})}const r=e.get("columns");Array.isArray(r)&&r.find(i=>i.get("width"))&&(r.find(a=>!a.get("width"))||r.reduce((d,h)=>d+h.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}]},Ci={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}]};function Ei(e){const t=k.useRef(null),[r,n]=k.useState(()=>[]),[i,a]=k.useState(()=>[]);return k.useEffect(()=>{var d;if(!((d=t.current)!=null&&d.getElementsByTagName)||typeof window=="undefined")return;const s=t.current.getElementsByTagName("script");for(let h=0;h<s.length;h++){const m=s[h];if(m.src){if(r.includes(m.src))continue;r.push(m.src);const v=document.createElement("script");v.async=!0,v.src=m.src,document.head.appendChild(v)}else if(!m.type||["text/javascript","application/javascript","application/ecmascript"].includes(m.type)){if(i.includes(m.innerText))continue;try{i.push(m.innerText),new Function(m.innerText)()}catch(v){console.warn("`CustomCode`: Error running script:",v)}}}},[]),u.jsx("div",{ref:t,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}const ji={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(n=>n.json()).then(n=>{e.get("url")===t&&(n.html?e.set("content",n.html):e.set("content","Invalid url, please try another"))}).catch(n=>{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}]},Ii=["text/javascript","application/javascript","application/ecmascript"],Ti=e=>Ii.includes(e.type);function Ai(e){const t=k.useRef(null),[r,n]=k.useState(()=>[]),[i,a]=k.useState(()=>[]),[s,d]=k.useState(()=>!1);function h(){if(!t.current||!t.current.getElementsByTagName)return;const m=t.current.getElementsByTagName("script");for(let v=0;v<m.length;v++){const S=m[v];if(S.src&&!r.includes(S.src)){r.push(S.src);const D=document.createElement("script");D.async=!0,D.src=S.src,document.head.appendChild(D)}else if(Ti(S)&&!i.includes(S.innerText))try{i.push(S.innerText),new Function(S.innerText)()}catch(D){console.warn("`Embed`: Error running script:",D)}}}return k.useEffect(()=>{t.current&&!s&&(d(!0),h())},[t.current,s]),u.jsx("div",{className:"builder-embed",ref:t,dangerouslySetInnerHTML:{__html:e.content}})}const Ri={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Oi={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 r(s,d=6e4){return new Promise((h,m)=>{const v=document.createElement("img");let S=!1;v.onload=()=>{S=!0,h(v)},v.addEventListener("error",D=>{console.warn("Image load failed",D.error),m(D.error)}),v.src=s,setTimeout(()=>{S||m(new Error("Image load timed out"))},d)})}function n(s){return Math.round(s*1e3)/1e3}const i=e.get("image"),a=e.get("aspectRatio");if(fetch(i).then(s=>s.blob()).then(s=>{s.type.includes("svg")&&e.set("noWebp",!0)}),i&&(!a||a===.7041))return r(i).then(s=>{const d=e.get("aspectRatio");e.get("image")===i&&(!d||d===.7041)&&s.width&&s.height&&(e.set("aspectRatio",n(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:"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}]},Pi={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};function Ni(e){return u.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},y.isEditing()&&e.imgSrc||"default-key")}const Fi={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 Mi(e){var t,r,n;return u.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:u.jsx(et,{parent:(r=e.builderContext.context)==null?void 0:r.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,blocks:(n=e.builderContext.rootState)==null?void 0:n[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"}]},Di={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 dr(e){var t;return u.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const _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://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",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}]};function fr(e){var n,i,a,s,d,h,m;function t(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function r(){return{...t()}}return u.jsxs("div",{style:{position:"relative"},children:[u.jsx("video",{className:"builder-video",...r(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(n=e.attributes)==null?void 0:n.style,objectFit:e.fit,objectPosition:e.position,zIndex:2,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},src:e.video||"no-src",poster:e.posterImage,children:e.lazyLoad?null:u.jsx("source",{type:"video/mp4",src:e.video})}),e.aspectRatio&&!(e.fitContent&&((a=(i=e.builderBlock)==null?void 0:i.children)!=null&&a.length))?u.jsx(u.Fragment,{children:u.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}})}):null,(d=(s=e.builderBlock)==null?void 0:s.children)!=null&&d.length&&e.fitContent?u.jsx(u.Fragment,{children:u.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children})}):null,(m=(h=e.builderBlock)==null?void 0:h.children)!=null&&m.length&&!e.fitContent?u.jsx(u.Fragment,{children:u.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},children:e.children})}):null]})}const Hn=()=>[{component:Yn,...wi},{component:sr,...ki},{component:Ei,...Ci},{component:Ai,...ji},{component:lr,...Ri},{component:cr,...Oi},{component:Ni,...Pi},{component:ur,...Fi},{component:gr,...Ui},{component:dr,...Di},{component:fr,..._i},{component:Mi,...Bi}],Wi=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
79
+ }`})]})}function lr(e){return u.jsx("section",{...e.attributes,style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},children:e.children})}const Ci={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},Ei={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(){r.forEach(n=>{n.delete("width")})}const r=e.get("columns");Array.isArray(r)&&r.find(i=>i.get("width"))&&(r.find(a=>!a.get("width"))||r.reduce((d,h)=>d+h.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}]},ji={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}]};function Ii(e){const t=k.useRef(null),[r,n]=k.useState(()=>[]),[i,a]=k.useState(()=>[]);return k.useEffect(()=>{var d;if(!((d=t.current)!=null&&d.getElementsByTagName)||typeof window=="undefined")return;const s=t.current.getElementsByTagName("script");for(let h=0;h<s.length;h++){const m=s[h];if(m.src){if(r.includes(m.src))continue;r.push(m.src);const v=document.createElement("script");v.async=!0,v.src=m.src,document.head.appendChild(v)}else if(!m.type||["text/javascript","application/javascript","application/ecmascript"].includes(m.type)){if(i.includes(m.innerText))continue;try{i.push(m.innerText),new Function(m.innerText)()}catch(v){console.warn("`CustomCode`: Error running script:",v)}}}},[]),u.jsx("div",{ref:t,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}const Ti={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(n=>n.json()).then(n=>{e.get("url")===t&&(n.html?e.set("content",n.html):e.set("content","Invalid url, please try another"))}).catch(n=>{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}]},Ai=["text/javascript","application/javascript","application/ecmascript"],Ri=e=>Ai.includes(e.type);function Oi(e){const t=k.useRef(null),[r,n]=k.useState(()=>[]),[i,a]=k.useState(()=>[]),[s,d]=k.useState(()=>!1);function h(){if(!t.current||!t.current.getElementsByTagName)return;const m=t.current.getElementsByTagName("script");for(let v=0;v<m.length;v++){const x=m[v];if(x.src&&!r.includes(x.src)){r.push(x.src);const D=document.createElement("script");D.async=!0,D.src=x.src,document.head.appendChild(D)}else if(Ri(x)&&!i.includes(x.innerText))try{i.push(x.innerText),new Function(x.innerText)()}catch(D){console.warn("`Embed`: Error running script:",D)}}}return k.useEffect(()=>{t.current&&!s&&(d(!0),h())},[t.current,s]),u.jsx("div",{className:"builder-embed",ref:t,dangerouslySetInnerHTML:{__html:e.content}})}const Pi={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Ni={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 r(s,d=6e4){return new Promise((h,m)=>{const v=document.createElement("img");let x=!1;v.onload=()=>{x=!0,h(v)},v.addEventListener("error",D=>{console.warn("Image load failed",D.error),m(D.error)}),v.src=s,setTimeout(()=>{x||m(new Error("Image load timed out"))},d)})}function n(s){return Math.round(s*1e3)/1e3}const i=e.get("image"),a=e.get("aspectRatio");if(fetch(i).then(s=>s.blob()).then(s=>{s.type.includes("svg")&&e.set("noWebp",!0)}),i&&(!a||a===.7041))return r(i).then(s=>{const d=e.get("aspectRatio");e.get("image")===i&&(!d||d===.7041)&&s.width&&s.height&&(e.set("aspectRatio",n(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:"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}]},Fi={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};function Bi(e){return u.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},y.isEditing()&&e.imgSrc||"default-key")}const Mi={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>"}}}]},Ui={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 Di(e){var t,r,n;return u.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:u.jsx(et,{parent:(r=e.builderContext.context)==null?void 0:r.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,blocks:(n=e.builderContext.rootState)==null?void 0:n[e.name]})})}const _i={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"}]},Wi={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 cr(e){var t;return u.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const Vi={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://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",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}]};function ur(e){var n,i,a,s,d,h,m;function t(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function r(){return{...t()}}return u.jsxs("div",{style:{position:"relative"},children:[u.jsx("video",{className:"builder-video",...r(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(n=e.attributes)==null?void 0:n.style,objectFit:e.fit,objectPosition:e.position,zIndex:2,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},src:e.video||"no-src",poster:e.posterImage,children:e.lazyLoad?null:u.jsx("source",{type:"video/mp4",src:e.video})}),e.aspectRatio&&!(e.fitContent&&((a=(i=e.builderBlock)==null?void 0:i.children)!=null&&a.length))?u.jsx(u.Fragment,{children:u.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}})}):null,(d=(s=e.builderBlock)==null?void 0:s.children)!=null&&d.length&&e.fitContent?u.jsx(u.Fragment,{children:u.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children})}):null,(m=(h=e.builderBlock)==null?void 0:h.children)!=null&&m.length&&!e.fitContent?u.jsx(u.Fragment,{children:u.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},children:e.children})}):null]})}const Vn=()=>[{component:Gn,...Ci},{component:or,...Ei},{component:Ii,...ji},{component:Oi,...Ti},{component:ar,...Pi},{component:sr,...Ni},{component:Bi,...Fi},{component:lr,...Mi},{component:mr,..._i},{component:cr,...Wi},{component:ur,...Vi},{component:Di,...Ui}],Li=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
82
80
  function getAndSetVariantId() {
83
81
  function setCookie(name, value, days) {
84
82
  let expires = '';
@@ -134,7 +132,7 @@ theFunction();
134
132
  }).join('');
135
133
  styleEl.innerHTML = newStyleStr;
136
134
  }
137
- }`,Vi=`function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
135
+ }`,$i=`function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
138
136
  if (!navigator.cookieEnabled) {
139
137
  return;
140
138
  }
@@ -168,15 +166,15 @@ theFunction();
168
166
  thisScriptEl?.remove();
169
167
  }
170
168
  return;
171
- }`,hr="builderIoAbTest",pr="builderIoRenderContent",lt=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),Li=({canTrack:e,content:t})=>!(!(lt(t).length>0)||!e||y.isBrowser()),$i=e=>e==="react"||e==="reactNative",mr=$i(y.TARGET),Hi=()=>`
172
- window.${hr} = ${Wi}
173
- window.${pr} = ${Vi}
174
- `,Ki=(e,t)=>`
175
- window.${hr}(
176
- "${t}",${JSON.stringify(e)}, ${mr}
177
- )`,Gi=({contentId:e,variationId:t})=>`window.${pr}(
178
- "${t}", "${e}", ${mr}
179
- )`;function Ht(e){return u.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id||""})}function Kn(e){return Math.round(e*1e3)/1e3}const zi=(e,t,r=!0)=>{if(!(e instanceof HTMLElement))return null;let n=r?e:e.parentElement;do{if(!n)return null;if(t(n))return n}while(n=n.parentElement);return null},Xi=e=>zi(e,t=>{const r=t.getAttribute("builder-id")||t.id;return(r==null?void 0:r.indexOf("builder-"))===0}),Gn=({event:e,target:t})=>{const r=t.getBoundingClientRect(),n=e.clientX-r.left,i=e.clientY-r.top,a=Kn(n/r.width),s=Kn(i/r.height);return{x:a,y:s}},Yi=e=>{const t=e.target,r=t&&Xi(t),n=(r==null?void 0:r.getAttribute("builder-id"))||(r==null?void 0:r.id);return{targetBuilderElement:n||void 0,metadata:{targetOffset:t?Gn({event:e,target:t}):void 0,builderTargetOffset:r?Gn({event:e,target:r}):void 0,builderElementIndex:r&&n?[].slice.call(document.getElementsByClassName(n)).indexOf(r):void 0}}},Ji="0.12.1",qi=()=>{y.register("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let zn=!1;const Zi=(e={})=>{var t,r;zn||(zn=!0,y.isBrowser()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:y.TARGET,version:Ji,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(r=window.parent)==null||r.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",({data:n})=>{var i,a;if(n!=null&&n.type)switch(n.type){case"builder.evaluate":{const s=n.data.text,d=n.data.arguments||[],h=n.data.id,m=new Function(s);let v,S=null;try{v=m.apply(null,d)}catch(D){S=D}S?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:h,error:S.message}},"*"):v&&typeof v.then=="function"?v.then(D=>{var U;(U=window.parent)==null||U.postMessage({type:"builder.evaluateResult",data:{id:h,result:D}},"*")}).catch(console.error):(a=window.parent)==null||a.postMessage({type:"builder.evaluateResult",data:{result:v,id:h}},"*");break}}})))};function Qi(e){var te,I,Ee,V,Se,le,H;const t=k.useRef(null),[r,n]=k.useState(()=>0);k.useState(()=>!0);function i(j){var A,B;const T={...e.builderContextSignal.rootState,...j};e.builderContextSignal.rootSetState?(B=(A=e.builderContextSignal).rootSetState)==null||B.call(A,T):e.setBuilderContextSignal(_=>({..._,rootState:T}))}function a(j){var A,B,_,G,we;const T={...e.builderContextSignal.content,...j,data:{...(A=e.builderContextSignal.content)==null?void 0:A.data,...j==null?void 0:j.data},meta:{...(B=e.builderContextSignal.content)==null?void 0:B.meta,...j==null?void 0:j.meta,breakpoints:((_=j==null?void 0:j.meta)==null?void 0:_.breakpoints)||((we=(G=e.builderContextSignal.content)==null?void 0:G.meta)==null?void 0:we.breakpoints)}};e.setBuilderContextSignal(tt=>({...tt,content:T}))}k.useState(()=>0);const[s,d]=k.useState(()=>!1),[h,m]=k.useState(()=>e.contentWrapper||"div");function v(j){var A;const{data:T}=j;if(T)switch(T.type){case"builder.configureSdk":{const B=T.data,{breakpoints:_,contentId:G}=B;if(!G||G!==((A=e.builderContextSignal.content)==null?void 0:A.id))return;_&&a({meta:{breakpoints:_}}),n(r+1);break}case"builder.contentUpdate":{const B=T.data,_=B.key||B.alias||B.entry||B.modelName,G=B.data;_===e.model&&(a(G),n(r+1));break}}}function S(){var T,A;const j=(A=(T=e.builderContextSignal.content)==null?void 0:T.data)==null?void 0:A.jsCode;j&&qe({code:j,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})}const[D,U]=k.useState(()=>({})),[N,F]=k.useState(()=>!1);function L(j){var T,A;if(e.builderContextSignal.content){const B=(T=e.builderContextSignal.content)==null?void 0:T.testVariationId,_=(A=e.builderContextSignal.content)==null?void 0:A.id;y._track({type:"click",canTrack:y.getDefaultCanTrack(e.canTrack),contentId:_,apiKey:e.apiKey,variationId:B!==_?B:void 0,...Yi(j),unique:!N})}N||F(!0)}function Y(j){return j.replace(/{{([^}]+)}}/g,(T,A)=>qe({code:A,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState}))}function x({url:j,key:T}){y.fetch(j).then(A=>A.json()).then(A=>{var _,G;const B={...e.builderContextSignal.rootState,[T]:A};(G=(_=e.builderContextSignal).rootSetState)==null||G.call(_,B),D[T]=!0}).catch(A=>{console.error("error fetching dynamic data",j,A)})}function K(){var T,A,B;const j=(B=(A=(T=e.builderContextSignal.content)==null?void 0:T.data)==null?void 0:A.httpRequests)!=null?B:{};Object.entries(j).forEach(([_,G])=>{if(G&&(!D[_]||y.isEditing())){const we=Y(G);x({url:we,key:_})}})}function ee(){y.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:y.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}function ae(j){n(r+1),window.addEventListener("message",v),qi(),Zi({...e.locale?{locale:e.locale}:{},...e.includeRefs?{includeRefs:e.includeRefs}:{},...e.enrich?{enrich:e.enrich}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(T=>{var B;const A=y.createRegisterComponentMessage(T);(B=window.parent)==null||B.postMessage(A,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",ee)}function $(j){const T=new URL(location.href).searchParams,A=T.get("builder.preview"),B=T.get(`builder.preview.${A}`),_=T.get("apiKey")||T.get("builder.space");A===e.model&&_===e.apiKey&&(!e.content||B===e.content.id)&&y.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion}).then(G=>{G&&a(G)})}return k.useEffect(()=>{var j;return(j=t.current)==null||j.addEventListener("initeditingbldr",ae),()=>{var T;return(T=t.current)==null?void 0:T.removeEventListener("initeditingbldr",ae)}},[]),k.useEffect(()=>{var j;return(j=t.current)==null||j.addEventListener("initpreviewingbldr",$),()=>{var T;return(T=t.current)==null?void 0:T.removeEventListener("initpreviewingbldr",$)}},[]),k.useEffect(()=>{var j,T;if(y.isBrowser()){if(y.isEditing()&&t.current&&t.current.dispatchEvent(new CustomEvent("initeditingbldr")),e.builderContextSignal.content&&y.getDefaultCanTrack(e.canTrack)){const B=(j=e.builderContextSignal.content)==null?void 0:j.testVariationId,_=(T=e.builderContextSignal.content)==null?void 0:T.id,G=e.apiKey;y._track({type:"impression",canTrack:!0,contentId:_,apiKey:G,variationId:B!==_?B:void 0})}y.isPreviewing()&&t.current&&t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"))}},[]),k.useEffect(()=>{e.apiKey||y.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),S(),K(),ee()},[]),k.useEffect(()=>{e.content&&a(e.content)},[e.content]),k.useEffect(()=>{},[s]),k.useEffect(()=>{S()},[(I=(te=e.builderContextSignal.content)==null?void 0:te.data)==null?void 0:I.jsCode,e.builderContextSignal.rootState]),k.useEffect(()=>{K()},[(V=(Ee=e.builderContextSignal.content)==null?void 0:Ee.data)==null?void 0:V.httpRequests]),k.useEffect(()=>{ee()},[e.builderContextSignal.rootState]),k.useEffect(()=>{e.data&&i(e.data)},[e.data]),k.useEffect(()=>{e.locale&&i({locale:e.locale})},[e.locale]),k.useEffect(()=>()=>{y.isBrowser()&&(window.removeEventListener("message",v),window.removeEventListener("builder:component:stateChangeListenerActivated",ee))},[]),u.jsx(Kt.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content?u.jsx(u.Fragment,{children:k.createElement(h,{key:r,ref:t,onClick:j=>L(j),"builder-content-id":(Se=e.builderContextSignal.content)==null?void 0:Se.id,"builder-model":e.model,...e.showContent?{}:{hidden:!0,"aria-hidden":!0},...e.contentWrapperProps,className:`variant-${((le=e.content)==null?void 0:le.testVariationId)||((H=e.content)==null?void 0:H.id)}`},e.children)}):null})}const eo=e=>{var a,s;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),r=t.split(",")[0],n=(s=e.fileUrl)!=null?s:(a=e==null?void 0:e.files)==null?void 0:a.regular;let i="";if(n&&t&&r&&(i+=`
169
+ }`,dr="builderIoAbTest",fr="builderIoRenderContent",lt=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),Hi=({canTrack:e,content:t})=>!(!(lt(t).length>0)||!e||y.isBrowser()),Ki=e=>e==="react"||e==="reactNative",hr=Ki(y.TARGET),Gi=()=>`
170
+ window.${dr} = ${Li}
171
+ window.${fr} = ${$i}
172
+ `,zi=(e,t)=>`
173
+ window.${dr}(
174
+ "${t}",${JSON.stringify(e)}, ${hr}
175
+ )`,Xi=({contentId:e,variationId:t})=>`window.${fr}(
176
+ "${t}", "${e}", ${hr}
177
+ )`;function Vt(e){return u.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id||""})}const Yi=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function pr(e,t){const r=new URL(t.origin),n=r.hostname;return(e||Yi).findIndex(i=>i.startsWith("*.")?n.endsWith(i.slice(1)):i===n)>-1}function Ln(e){return Math.round(e*1e3)/1e3}const Ji=(e,t,r=!0)=>{if(!(e instanceof HTMLElement))return null;let n=r?e:e.parentElement;do{if(!n)return null;if(t(n))return n}while(n=n.parentElement);return null},qi=e=>Ji(e,t=>{const r=t.getAttribute("builder-id")||t.id;return(r==null?void 0:r.indexOf("builder-"))===0}),$n=({event:e,target:t})=>{const r=t.getBoundingClientRect(),n=e.clientX-r.left,i=e.clientY-r.top,a=Ln(n/r.width),s=Ln(i/r.height);return{x:a,y:s}},Zi=e=>{const t=e.target,r=t&&qi(t),n=(r==null?void 0:r.getAttribute("builder-id"))||(r==null?void 0:r.id);return{targetBuilderElement:n||void 0,metadata:{targetOffset:t?$n({event:e,target:t}):void 0,builderTargetOffset:r?$n({event:e,target:r}):void 0,builderElementIndex:r&&n?[].slice.call(document.getElementsByClassName(n)).indexOf(r):void 0}}},Qi="0.12.3",eo=()=>{y.register("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let Hn=!1;const to=(e={})=>{var t,r;Hn||(Hn=!0,y.isBrowser()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:y.TARGET,version:Qi,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(r=window.parent)==null||r.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",n=>{var a,s;if(!pr(e.trustedHosts,n))return;const{data:i}=n;if(i!=null&&i.type)switch(i.type){case"builder.evaluate":{const d=i.data.text,h=i.data.arguments||[],m=i.data.id,v=new Function(d);let x,D=null;try{x=v.apply(null,h)}catch(M){D=M}D?(a=window.parent)==null||a.postMessage({type:"builder.evaluateError",data:{id:m,error:D.message}},"*"):x&&typeof x.then=="function"?x.then(M=>{var P;(P=window.parent)==null||P.postMessage({type:"builder.evaluateResult",data:{id:m,result:M}},"*")}).catch(console.error):(s=window.parent)==null||s.postMessage({type:"builder.evaluateResult",data:{result:x,id:m}},"*");break}}})))};function no(e){var te,I,Ee,V,Se,le,H;const t=k.useRef(null),[r,n]=k.useState(()=>0);k.useState(()=>!0);function i(E){var A,B;const T={...e.builderContextSignal.rootState,...E};e.builderContextSignal.rootSetState?(B=(A=e.builderContextSignal).rootSetState)==null||B.call(A,T):e.setBuilderContextSignal(_=>({..._,rootState:T}))}function a(E){var A,B,_,G,we;const T={...e.builderContextSignal.content,...E,data:{...(A=e.builderContextSignal.content)==null?void 0:A.data,...E==null?void 0:E.data},meta:{...(B=e.builderContextSignal.content)==null?void 0:B.meta,...E==null?void 0:E.meta,breakpoints:((_=E==null?void 0:E.meta)==null?void 0:_.breakpoints)||((we=(G=e.builderContextSignal.content)==null?void 0:G.meta)==null?void 0:we.breakpoints)}};e.setBuilderContextSignal(tt=>({...tt,content:T}))}k.useState(()=>0);const[s,d]=k.useState(()=>!1),[h,m]=k.useState(()=>e.contentWrapper||"div");function v(E){var A;if(!pr(e.trustedHosts,E))return;const{data:T}=E;if(T)switch(T.type){case"builder.configureSdk":{const B=T.data,{breakpoints:_,contentId:G}=B;if(!G||G!==((A=e.builderContextSignal.content)==null?void 0:A.id))return;_&&a({meta:{breakpoints:_}}),n(r+1);break}case"builder.contentUpdate":{const B=T.data,_=B.key||B.alias||B.entry||B.modelName,G=B.data;_===e.model&&(a(G),n(r+1));break}}}function x(){var T,A;const E=(A=(T=e.builderContextSignal.content)==null?void 0:T.data)==null?void 0:A.jsCode;E&&qe({code:E,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})}const[D,M]=k.useState(()=>({})),[P,F]=k.useState(()=>!1);function L(E){var T,A;if(e.builderContextSignal.content){const B=(T=e.builderContextSignal.content)==null?void 0:T.testVariationId,_=(A=e.builderContextSignal.content)==null?void 0:A.id;y._track({type:"click",canTrack:y.getDefaultCanTrack(e.canTrack),contentId:_,apiKey:e.apiKey,variationId:B!==_?B:void 0,...Zi(E),unique:!P})}P||F(!0)}function Y(E){return E.replace(/{{([^}]+)}}/g,(T,A)=>qe({code:A,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState}))}function b({url:E,key:T}){y.fetch(E).then(A=>A.json()).then(A=>{var _,G;const B={...e.builderContextSignal.rootState,[T]:A};(G=(_=e.builderContextSignal).rootSetState)==null||G.call(_,B),D[T]=!0}).catch(A=>{console.error("error fetching dynamic data",E,A)})}function K(){var T,A,B;const E=(B=(A=(T=e.builderContextSignal.content)==null?void 0:T.data)==null?void 0:A.httpRequests)!=null?B:{};Object.entries(E).forEach(([_,G])=>{if(G&&(!D[_]||y.isEditing())){const we=Y(G);b({url:we,key:_})}})}function ee(){y.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:y.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}function ae(E){n(r+1),window.addEventListener("message",v),eo(),to({...e.locale?{locale:e.locale}:{},...e.includeRefs?{includeRefs:e.includeRefs}:{},...e.enrich?{enrich:e.enrich}:{},...e.trustedHosts?{trustedHosts:e.trustedHosts}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(T=>{var B;const A=y.createRegisterComponentMessage(T);(B=window.parent)==null||B.postMessage(A,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",ee)}function $(E){const T=new URL(location.href).searchParams,A=T.get("builder.preview"),B=T.get(`builder.preview.${A}`),_=T.get("apiKey")||T.get("builder.space");A===e.model&&_===e.apiKey&&(!e.content||B===e.content.id)&&y.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion}).then(G=>{G&&a(G)})}return k.useEffect(()=>{var E;return(E=t.current)==null||E.addEventListener("initeditingbldr",ae),()=>{var T;return(T=t.current)==null?void 0:T.removeEventListener("initeditingbldr",ae)}},[]),k.useEffect(()=>{var E;return(E=t.current)==null||E.addEventListener("initpreviewingbldr",$),()=>{var T;return(T=t.current)==null?void 0:T.removeEventListener("initpreviewingbldr",$)}},[]),k.useEffect(()=>{var E,T;if(y.isBrowser()){if(y.isEditing()&&t.current&&t.current.dispatchEvent(new CustomEvent("initeditingbldr")),e.builderContextSignal.content&&y.getDefaultCanTrack(e.canTrack)){const B=(E=e.builderContextSignal.content)==null?void 0:E.testVariationId,_=(T=e.builderContextSignal.content)==null?void 0:T.id,G=e.apiKey;y._track({type:"impression",canTrack:!0,contentId:_,apiKey:G,variationId:B!==_?B:void 0})}y.isPreviewing()&&t.current&&t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"))}},[]),k.useEffect(()=>{e.apiKey||y.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),x(),K(),ee()},[]),k.useEffect(()=>{e.content&&a(e.content)},[e.content]),k.useEffect(()=>{},[s]),k.useEffect(()=>{x()},[(I=(te=e.builderContextSignal.content)==null?void 0:te.data)==null?void 0:I.jsCode,e.builderContextSignal.rootState]),k.useEffect(()=>{K()},[(V=(Ee=e.builderContextSignal.content)==null?void 0:Ee.data)==null?void 0:V.httpRequests]),k.useEffect(()=>{ee()},[e.builderContextSignal.rootState]),k.useEffect(()=>{e.data&&i(e.data)},[e.data]),k.useEffect(()=>{e.locale&&i({locale:e.locale})},[e.locale]),k.useEffect(()=>()=>{y.isBrowser()&&(window.removeEventListener("message",v),window.removeEventListener("builder:component:stateChangeListenerActivated",ee))},[]),u.jsx(Lt.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content?u.jsx(u.Fragment,{children:k.createElement(h,{key:r,ref:t,onClick:E=>L(E),"builder-content-id":(Se=e.builderContextSignal.content)==null?void 0:Se.id,"builder-model":e.model,...e.showContent?{}:{hidden:!0,"aria-hidden":!0},...e.contentWrapperProps,className:`variant-${((le=e.content)==null?void 0:le.testVariationId)||((H=e.content)==null?void 0:H.id)}`},e.children)}):null})}const ro=e=>{var a,s;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),r=t.split(",")[0],n=(s=e.fileUrl)!=null?s:(a=e==null?void 0:e.files)==null?void 0:a.regular;let i="";if(n&&t&&r&&(i+=`
180
178
  @font-face {
181
179
  font-family: "${t}";
182
180
  src: local("${r}"), url('${n}') format('woff2');
@@ -190,9 +188,13 @@ src: url('${m}') format('woff2');
190
188
  font-display: fallback;
191
189
  font-weight: ${d};
192
190
  }
193
- `.trim())}return i},to=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(r=>eo(r)))==null?void 0:t.join(" "))||""},no=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"";function ro(e){const[t,r]=k.useState(()=>`
194
- ${no({cssCode:e.cssCode,contentId:e.contentId})}
195
- ${to({customFonts:e.customFonts})}
191
+ `.trim())}return i},io=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(r=>ro(r)))==null?void 0:t.join(" "))||""},oo=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"";function ao(e){const[t,r]=k.useState(()=>`
192
+ ${oo({cssCode:e.cssCode,contentId:e.contentId})}
193
+ ${io({customFonts:e.customFonts})}
194
+
195
+ .builder-button {
196
+ all: unset;
197
+ }
196
198
 
197
199
  .builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
198
200
  margin: 0;
@@ -206,4 +208,4 @@ ${to({customFonts:e.customFonts})}
206
208
  text-align: inherit;
207
209
  font-family: inherit;
208
210
  }
209
- `.trim());return u.jsx(ht,{styles:t})}const io=({content:e,data:t,locale:r})=>{var a,s,d;const n={},i=((a=e==null?void 0:e.data)==null?void 0:a.state)||{};return(d=(s=e==null?void 0:e.data)==null?void 0:s.inputs)==null||d.forEach(h=>{h.name&&h.defaultValue!==void 0&&(n[h.name]=h.defaultValue)}),{...n,...i,...t,...r?{locale:r}:{}}},oo=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function Xn(e){var h,m,v,S,D,U,N;const[t,r]=k.useState(()=>{var F,L;return Gi({variationId:(F=e.content)==null?void 0:F.testVariationId,contentId:(L=e.content)==null?void 0:L.id})});function n(F){d(L=>({...L,rootState:F}))}const[i,a]=k.useState(()=>[...Hn(),...y.components,...e.customComponents||[]].reduce((F,{component:L,...Y})=>({...F,[Y.name]:{component:L,...y.serializeComponentInfo(Y)}}),{})),[s,d]=k.useState(()=>({content:oo({content:e.content,data:e.data}),localState:void 0,rootState:io({content:e.content,data:e.data,locale:e.locale}),rootSetState:n,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...Hn(),...y.components,...e.customComponents||[]].reduce((F,{component:L,...Y})=>({...F,[Y.name]:y.serializeComponentInfo(Y)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{}}));return u.jsx(Jn.Provider,{value:{registeredComponents:i},children:u.jsxs(Qi,{content:e.content,data:e.data,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,showContent:e.showContent,builderContextSignal:s,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,setBuilderContextSignal:d,children:[e.isSsrAbTest?u.jsx(u.Fragment,{children:u.jsx(Ht,{scriptStr:t})}):null,u.jsx(u.Fragment,{children:u.jsx(ro,{contentId:(h=s.content)==null?void 0:h.id,cssCode:(v=(m=s.content)==null?void 0:m.data)==null?void 0:v.cssCode,customFonts:(D=(S=s.content)==null?void 0:S.data)==null?void 0:D.customFonts})}),u.jsx(et,{blocks:(N=(U=s.content)==null?void 0:U.data)==null?void 0:N.blocks,context:s,registeredComponents:i})]})})}function rn(e){var s,d;const[t,r]=k.useState(()=>Li({canTrack:y.getDefaultCanTrack(e.canTrack),content:e.content}));function n(){var h;return Ki(lt(e.content).map(m=>({id:m.testVariationId,testRatio:m.testRatio})),((h=e.content)==null?void 0:h.id)||"")}function i(){return lt(e.content).map(h=>`.variant-${h.testVariationId} { display: none; } `).join("")}function a(){var h;return t?{...e.content,testVariationId:(h=e.content)==null?void 0:h.id}:y.handleABTestingSync({item:e.content,canTrack:y.getDefaultCanTrack(e.canTrack)})}return k.useEffect(()=>{},[]),u.jsxs(u.Fragment,{children:[!e.__isNestedRender&&y.TARGET!=="reactNative"?u.jsx(u.Fragment,{children:u.jsx(Ht,{scriptStr:Hi()})}):null,t?u.jsxs(u.Fragment,{children:[u.jsx(ht,{id:`variants-styles-${(s=e.content)==null?void 0:s.id}`,styles:i()}),u.jsx(Ht,{scriptStr:n()}),(d=lt(e.content))==null?void 0:d.map(h=>u.jsx(Xn,{content:h,showContent:!1,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps},h.testVariationId))]}):null,u.jsx(Xn,{content:a(),showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps})]})}const ao=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return y.fetchOneEntry({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(r=>{y.logger.error("Could not fetch symbol content: ",r)})};function gr(e){var a,s,d,h;function t(){var m,v;return[e.attributes.className,"builder-symbol",(m=e.symbol)!=null&&m.inline?"builder-inline-symbol":void 0,(v=e.symbol)!=null&&v.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")}const[r,n]=k.useState(()=>{var m;return(m=e.symbol)==null?void 0:m.content});function i(){r||ao({symbol:e.symbol,builderContextValue:e.builderContext}).then(m=>{m&&n(m)})}return k.useEffect(()=>{},[]),k.useEffect(()=>{i()},[e.symbol]),u.jsx("div",{...e.attributes,className:t(),children:u.jsx(rn,{__isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(a=e.builderBlock)==null?void 0:a.id},customComponents:Object.values(e.builderComponents),data:{...(s=e.symbol)==null?void 0:s.data,...e.builderContext.localState,...(d=r==null?void 0:r.data)==null?void 0:d.state},model:(h=e.symbol)==null?void 0:h.model,content:r})})}const so=et,lo=rn;exports._processContentResult=y._processContentResult;exports.createRegisterComponentMessage=y.createRegisterComponentMessage;exports.fetchBuilderProps=y.fetchBuilderProps;exports.fetchEntries=y.fetchEntries;exports.fetchOneEntry=y.fetchOneEntry;exports.getAllContent=y.getAllContent;exports.getBuilderSearchParams=y.getBuilderSearchParams;exports.getContent=y.getContent;exports.isEditing=y.isEditing;exports.isPreviewing=y.isPreviewing;exports.register=y.register;exports.setEditorSettings=y.setEditorSettings;exports.track=y.track;exports.Blocks=et;exports.Button=Yn;exports.Columns=sr;exports.Content=rn;exports.Fragment=lr;exports.Image=cr;exports.RenderBlocks=so;exports.RenderContent=lo;exports.Section=ur;exports.Symbol=gr;exports.Text=dr;exports.Video=fr;
211
+ `.trim());return u.jsx(ft,{styles:t})}const so=({content:e,data:t,locale:r})=>{var a,s,d;const n={},i=((a=e==null?void 0:e.data)==null?void 0:a.state)||{};return(d=(s=e==null?void 0:e.data)==null?void 0:s.inputs)==null||d.forEach(h=>{h.name&&h.defaultValue!==void 0&&(n[h.name]=h.defaultValue)}),{...n,...i,...t,...r?{locale:r}:{}}},lo=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function Kn(e){var h,m,v,x,D,M,P;const[t,r]=k.useState(()=>{var F,L;return Xi({variationId:(F=e.content)==null?void 0:F.testVariationId,contentId:(L=e.content)==null?void 0:L.id})});function n(F){d(L=>({...L,rootState:F}))}const[i,a]=k.useState(()=>[...Vn(),...y.components,...e.customComponents||[]].reduce((F,{component:L,...Y})=>({...F,[Y.name]:{component:L,...y.serializeComponentInfo(Y)}}),{})),[s,d]=k.useState(()=>({content:lo({content:e.content,data:e.data}),localState:void 0,rootState:so({content:e.content,data:e.data,locale:e.locale}),rootSetState:n,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...Vn(),...y.components,...e.customComponents||[]].reduce((F,{component:L,...Y})=>({...F,[Y.name]:y.serializeComponentInfo(Y)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{}}));return u.jsx(zn.Provider,{value:{registeredComponents:i},children:u.jsxs(no,{content:e.content,data:e.data,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,showContent:e.showContent,builderContextSignal:s,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts,setBuilderContextSignal:d,children:[e.isSsrAbTest?u.jsx(u.Fragment,{children:u.jsx(Vt,{scriptStr:t})}):null,u.jsx(u.Fragment,{children:u.jsx(ao,{contentId:(h=s.content)==null?void 0:h.id,cssCode:(v=(m=s.content)==null?void 0:m.data)==null?void 0:v.cssCode,customFonts:(D=(x=s.content)==null?void 0:x.data)==null?void 0:D.customFonts})}),u.jsx(et,{blocks:(P=(M=s.content)==null?void 0:M.data)==null?void 0:P.blocks,context:s,registeredComponents:i})]})})}function tn(e){var s,d;const[t,r]=k.useState(()=>Hi({canTrack:y.getDefaultCanTrack(e.canTrack),content:e.content}));function n(){var h;return zi(lt(e.content).map(m=>({id:m.testVariationId,testRatio:m.testRatio})),((h=e.content)==null?void 0:h.id)||"")}function i(){return lt(e.content).map(h=>`.variant-${h.testVariationId} { display: none; } `).join("")}function a(){var h;return t?{...e.content,testVariationId:(h=e.content)==null?void 0:h.id}:y.handleABTestingSync({item:e.content,canTrack:y.getDefaultCanTrack(e.canTrack)})}return k.useEffect(()=>{},[]),u.jsxs(u.Fragment,{children:[!e.__isNestedRender&&y.TARGET!=="reactNative"?u.jsx(u.Fragment,{children:u.jsx(Vt,{scriptStr:Gi()})}):null,t?u.jsxs(u.Fragment,{children:[u.jsx(ft,{id:`variants-styles-${(s=e.content)==null?void 0:s.id}`,styles:i()}),u.jsx(Vt,{scriptStr:n()}),(d=lt(e.content))==null?void 0:d.map(h=>u.jsx(Kn,{content:h,showContent:!1,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},h.testVariationId))]}):null,u.jsx(Kn,{content:a(),showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts})]})}const co=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return y.fetchOneEntry({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(r=>{y.logger.error("Could not fetch symbol content: ",r)})};function mr(e){var a,s,d,h;function t(){var m,v;return[e.attributes.className,"builder-symbol",(m=e.symbol)!=null&&m.inline?"builder-inline-symbol":void 0,(v=e.symbol)!=null&&v.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")}const[r,n]=k.useState(()=>{var m;return(m=e.symbol)==null?void 0:m.content});function i(){r||co({symbol:e.symbol,builderContextValue:e.builderContext}).then(m=>{m&&n(m)})}return k.useEffect(()=>{},[]),k.useEffect(()=>{i()},[e.symbol]),u.jsx("div",{...e.attributes,className:t(),children:u.jsx(tn,{__isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(a=e.builderBlock)==null?void 0:a.id},customComponents:Object.values(e.builderComponents),data:{...(s=e.symbol)==null?void 0:s.data,...e.builderContext.localState,...(d=r==null?void 0:r.data)==null?void 0:d.state},model:(h=e.symbol)==null?void 0:h.model,content:r})})}const uo=et,fo=tn;exports._processContentResult=y._processContentResult;exports.createRegisterComponentMessage=y.createRegisterComponentMessage;exports.fetchBuilderProps=y.fetchBuilderProps;exports.fetchEntries=y.fetchEntries;exports.fetchOneEntry=y.fetchOneEntry;exports.getAllContent=y.getAllContent;exports.getBuilderSearchParams=y.getBuilderSearchParams;exports.getContent=y.getContent;exports.isEditing=y.isEditing;exports.isPreviewing=y.isPreviewing;exports.register=y.register;exports.setEditorSettings=y.setEditorSettings;exports.track=y.track;exports.Blocks=et;exports.Button=Gn;exports.Columns=or;exports.Content=tn;exports.Fragment=ar;exports.Image=sr;exports.RenderBlocks=uo;exports.RenderContent=fo;exports.Section=lr;exports.Symbol=mr;exports.Text=cr;exports.Video=ur;