@builder.io/sdk-react 0.11.2 → 0.11.4

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