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