@builder.io/sdk-react-nextjs 0.14.15 → 0.14.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/lib/{node/USE_CLIENT_BUNDLE-85565442.cjs → browser/USE_CLIENT_BUNDLE-f11159f6.cjs} +3 -3
  2. package/lib/browser/{USE_CLIENT_BUNDLE-619fca6f.js → USE_CLIENT_BUNDLE-f685a480.js} +15 -15
  3. package/lib/{edge/USE_SERVER_BUNDLE-b436e323.cjs → browser/USE_SERVER_BUNDLE-1ee4e92a.cjs} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-54c1fcea.js → browser/USE_SERVER_BUNDLE-fbe70d66.js} +1 -1
  5. package/lib/browser/{bundle-62dcf48b.js → bundle-974bbd75.js} +555 -540
  6. package/lib/browser/bundle-e5f3c905.cjs +169 -0
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +3 -3
  9. package/lib/{browser/USE_CLIENT_BUNDLE-d44f1d9a.cjs → edge/USE_CLIENT_BUNDLE-22f09854.cjs} +3 -3
  10. package/lib/{node/USE_CLIENT_BUNDLE-c0730eab.js → edge/USE_CLIENT_BUNDLE-bf35f13e.js} +15 -15
  11. package/lib/{node/USE_SERVER_BUNDLE-81427dab.cjs → edge/USE_SERVER_BUNDLE-4035cf43.cjs} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-558179bb.js → edge/USE_SERVER_BUNDLE-6b33cfd7.js} +1 -1
  13. package/lib/edge/{bundle-67ad9183.js → bundle-0e4ba4de.js} +1027 -1012
  14. package/lib/edge/{bundle-fbc6c22e.cjs → bundle-15a88622.cjs} +29 -29
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +3 -3
  17. package/lib/{edge/USE_CLIENT_BUNDLE-84dff6eb.js → node/USE_CLIENT_BUNDLE-8dadab11.js} +15 -15
  18. package/lib/{edge/USE_CLIENT_BUNDLE-97b90370.cjs → node/USE_CLIENT_BUNDLE-e62d9c72.cjs} +3 -3
  19. package/lib/{browser/USE_SERVER_BUNDLE-b4db53a9.js → node/USE_SERVER_BUNDLE-d7d118c1.js} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-72579b21.cjs → node/USE_SERVER_BUNDLE-d847a064.cjs} +1 -1
  21. package/lib/node/{bundle-3fe2b5da.cjs → bundle-39fe7680.cjs} +9 -9
  22. package/lib/node/{bundle-5f638f04.js → bundle-a8217ddb.js} +170 -155
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +3 -3
  25. package/package.json +1 -1
  26. package/types/cjs/components/block/animator.d.ts +1 -1
  27. package/types/cjs/constants/sdk-version.d.ts +1 -1
  28. package/types/cjs/functions/is-previewing.d.ts +1 -1
  29. package/types/esm/components/block/animator.d.ts +1 -1
  30. package/types/esm/constants/sdk-version.d.ts +1 -1
  31. package/types/esm/functions/is-previewing.d.ts +1 -1
  32. package/lib/browser/bundle-df3df109.cjs +0 -169
@@ -1,31 +1,31 @@
1
- "use strict";const g=require("react/jsx-runtime");require("react");const Z=require("./USE_CLIENT_BUNDLE-97b90370.cjs"),mo=require("lru-cache");require("next/navigation");const go=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),yo=e=>typeof e=="string"&&go.has(e.toLowerCase()),he="rsc",pt=()=>{switch(he){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":return"class"}};function vo(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const st="[Builder.io]: ",X={log:(...e)=>console.log(st,...e),error:(...e)=>console.error(st,...e),warn:(...e)=>console.warn(st,...e),debug:(...e)=>console.debug(st,...e)};function K(){return typeof window<"u"&&typeof document<"u"}const bo=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},ur=e=>e instanceof URLSearchParams?bo(e):e,fr=e=>typeof e=="string"?e:e instanceof URLSearchParams?e.toString():new URLSearchParams(e).toString();function xo(){return K()&&window.self!==window.top}function ht(e){return xo()&&fr(e||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},wo=()=>typeof navigator=="object"&&navigator.userAgent||"",dr=()=>{const e=wo(),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()||he==="reactNative"}},n=e.match(/Tablet|iPad/i),r=So();return{urlPath:r==null?void 0:r.pathname,host:(r==null?void 0:r.host)||(r==null?void 0:r.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},pr=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),ko=()=>({isEditing:ht(),isBrowser:K(),isServer:!K(),getUserAttributes:()=>dr()}),Co=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,Eo=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:i,rootState:s})=>{const u=pr({builder:t,context:n,event:r,state:hr({rootState:s,localState:o,rootSetState:i})});return new Function(...u.map(([p])=>p),e)(...u.map(([,p])=>p))};function hr({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(r,o)=>{if(t&&o in t)return t[o];const i=r[o];return typeof i=="object"&&i!==null?hr({rootState:i,localState:void 0,rootSetState:n?s=>{r[o]=s,n(r)}:void 0}):i},set:(r,o,i)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return r[o]=i,n==null||n(r),!0}})}const mr=(e,t,n)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((o,i,s)=>Object(o[i])===o[i]?o[i]:o[i]=Math.abs(Number(r[s+1]))>>0===+r[s+1]?[]:{},e)[r[r.length-1]]=n,e};var F,Io=function(e){function t(a){return 48>a?a===36:58>a?!0:65>a?!1:91>a?!0:97>a?a===95:123>a?!0:170<=a&&po.test(String.fromCharCode(a))}function n(a){return 65>a?a===36:91>a?!0:97>a?a===95:123>a?!0:170<=a&&Hn.test(String.fromCharCode(a))}function r(a,l){for(var c=y,d=1,j=0;;){at.lastIndex=j;var _=at.exec(c);if(_&&_.index<a)++d,j=_.index+_[0].length;else break}throw c={line:d,ab:a-j},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=a,l.X=c,l.o=f,l}function o(a){a=a.split(" ");for(var l=Object.create(null),c=0;c<a.length;c++)l[a[c]]=!0;return function(d){return l[d]||!1}}function i(){this.line=xe,this.ab=f-se}function s(a,l){ke=f,A.C&&(Ot=new i),I=a,p(),te=l,Ue=a.m}function u(){for(var a=f,l=A.va&&A.C&&new i,c=y.charCodeAt(f+=2);f<we&&c!==10&&c!==13&&c!==8232&&c!==8233;)++f,c=y.charCodeAt(f);A.va&&A.va(!1,y.slice(a+2,f),a,f,l,A.C&&new i)}function p(){for(;f<we;){var a=y.charCodeAt(f);if(a===32)++f;else if(a===13)++f,a=y.charCodeAt(f),a===10&&++f,A.C&&(++xe,se=f);else if(a===10||a===8232||a===8233)++f,A.C&&(++xe,se=f);else if(8<a&&14>a)++f;else if(a===47)if(a=y.charCodeAt(f+1),a===42){a=void 0;var l=A.va&&A.C&&new i,c=f,d=y.indexOf("*/",f+=2);if(d===-1&&r(f-2,"Unterminated comment"),f=d+2,A.C)for(at.lastIndex=c;(a=at.exec(y))&&a.index<f;)++xe,se=a.index+a[0].length;A.va&&A.va(!0,y.slice(c+2,d),c,f,l,A.C&&new i)}else if(a===47)u();else break;else if(a===160)++f;else if(5760<=a&&fo.test(String.fromCharCode(a)))++f;else break}}function x(a){switch(a){case 46:a=y.charCodeAt(f+1),48<=a&&57>=a?C(!0):(++f,s(Un));return;case 40:return++f,s(le);case 41:return++f,s(re);case 59:return++f,s(ce);case 44:return++f,s(ye);case 91:return++f,s(Dt);case 93:return++f,s(_t);case 123:return++f,s(Le);case 125:return++f,s(Ee);case 58:return++f,s(De);case 63:return++f,s(Mn);case 48:if(a=y.charCodeAt(f+1),a===120||a===88){f+=2,a=R(16),a===null&&r(L+2,"Expected hexadecimal number"),n(y.charCodeAt(f))&&r(f,"Identifier directly after number"),s(Ve,a);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return C(!1);case 34:case 39:f++;for(var l="";;){f>=we&&r(L,"Unterminated string constant");var c=y.charCodeAt(f);if(c===a){++f,s(nt,l);break}if(c===92){c=y.charCodeAt(++f);var d=/^[0-7]+/.exec(y.slice(f,f+3));for(d&&(d=d[0]);d&&255<parseInt(d,8);)d=d.slice(0,-1);if(d==="0"&&(d=null),++f,d)q&&r(f-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(d,8)),f+=d.length-1;else switch(c){case 110:l+=`
2
- `;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(w(2));break;case 117:l+=String.fromCharCode(w(4));break;case 85:l+=String.fromCharCode(w(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:y.charCodeAt(f)===10&&++f;case 10:A.C&&(se=f,++xe);break;default:l+=String.fromCharCode(c)}}else c!==13&&c!==10&&c!==8232&&c!==8233||r(L,"Unterminated string constant"),l+=String.fromCharCode(c),++f}return;case 47:a=y.charCodeAt(f+1),Ue?(++f,O()):a===61?m(Se,2):m(Vn,1);return;case 37:case 42:y.charCodeAt(f+1)===61?m(Se,2):m(lo,1);return;case 124:case 38:l=y.charCodeAt(f+1),l===a?m(a===124?_n:Wn,2):l===61?m(Se,2):m(a===124?to:ro,1);return;case 94:y.charCodeAt(f+1)===61?m(Se,2):m(no,1);return;case 43:case 45:l=y.charCodeAt(f+1),l===a?l===45&&y.charCodeAt(f+2)===62&&it.test(y.slice(ge,f))?(f+=3,u(),p(),k()):m(eo,2):l===61?m(Se,2):m(so,1);return;case 60:case 62:l=y.charCodeAt(f+1),c=1,l===a?(c=a===62&&y.charCodeAt(f+2)===62?3:2,y.charCodeAt(f+c)===61?m(Se,c+1):m(ao,c)):l===33&&a===60&&y.charCodeAt(f+2)===45&&y.charCodeAt(f+3)===45?(f+=4,u(),p(),k()):(l===61&&(c=y.charCodeAt(f+2)===61?3:2),m(io,c));return;case 61:case 33:y.charCodeAt(f+1)===61?m(oo,y.charCodeAt(f+2)===61?3:2):m(a===61?Ln:Dn,1);return;case 126:return m(Dn,1)}return!1}function k(a){if(a?f=L+1:L=f,A.C&&(At=new i),a)return O();if(f>=we)return s(Nt);if(a=y.charCodeAt(f),n(a)||a===92)return N();if(x(a)===!1){if(a=String.fromCharCode(a),a==="\\"||Hn.test(a))return N();r(f,"Unexpected character '"+a+"'")}}function m(a,l){var c=y.slice(f,f+l);f+=l,s(a,c)}function O(){for(var a,l,c=f;;){f>=we&&r(c,"Unterminated regexp");var d=y.charAt(f);if(it.test(d)&&r(c,"Unterminated regexp"),a)a=!1;else{if(d==="[")l=!0;else if(d==="]"&&l)l=!1;else if(d==="/"&&!l)break;a=d==="\\"}++f}a=y.slice(c,f),++f,(l=B())&&!/^[gmi]*$/.test(l)&&r(c,"Invalid regexp flag");try{var j=new RegExp(a,l)}catch(_){throw _ instanceof SyntaxError&&r(c,_.message),_}s(yn,j)}function R(a,l){for(var c=f,d=0,j=l===void 0?1/0:l,_=0;_<j;++_){var J=y.charCodeAt(f);if(J=97<=J?J-97+10:65<=J?J-65+10:48<=J&&57>=J?J-48:1/0,J>=a)break;++f,d=d*a+J}return f===c||l!==void 0&&f-c!==l?null:d}function C(a){var l=f,c=!1,d=y.charCodeAt(f)===48;a||R(10)!==null||r(l,"Invalid number"),y.charCodeAt(f)===46&&(++f,R(10),c=!0),a=y.charCodeAt(f),(a===69||a===101)&&(a=y.charCodeAt(++f),a!==43&&a!==45||++f,R(10)===null&&r(l,"Invalid number"),c=!0),n(y.charCodeAt(f))&&r(f,"Identifier directly after number"),a=y.slice(l,f);var j;c?j=parseFloat(a):d&&a.length!==1?/[89]/.test(a)||q?r(l,"Invalid number"):j=parseInt(a,8):j=parseInt(a,10),s(Ve,j)}function w(a){return a=R(16,a),a===null&&r(L,"Bad character escape sequence"),a}function B(){Ie=!1;for(var a,l=!0,c=f;;){var d=y.charCodeAt(f);if(t(d))Ie&&(a+=y.charAt(f)),++f;else if(d===92){Ie||(a=y.slice(c,f)),Ie=!0,y.charCodeAt(++f)!==117&&r(f,"Expecting Unicode escape sequence \\uXXXX"),++f,d=w(4);var j=String.fromCharCode(d);j||r(f-1,"Invalid Unicode escape"),(l?n(d):t(d))||r(f-4,"Invalid Unicode escape"),a+=j}else break;l=!1}return Ie?a:y.slice(c,f)}function N(){var a=B(),l=Ce;!Ie&&uo(a)&&(l=Qr[a]),s(l,a)}function E(){Rt=L,ge=ke,Pt=Ot,k()}function Q(a){if(q=a,f=L,A.C)for(;f<se;)se=y.lastIndexOf(`
3
- `,se-2)+1,--xe;p(),k()}function $(){this.type=null,this.start=L,this.end=null}function ee(){this.start=At,this.end=null,Tt&&(this.source=Tt)}function D(){var a=new $;return A.C&&(a.X=new ee),A.vb&&(a.sourceFile=A.vb),A.Xa&&(a.j=[L,0]),a}function me(a){var l=new $;return l.start=a.start,A.C&&(l.X=new ee,l.X.start=a.X.start),A.Xa&&(l.j=[a.j[0],0]),l}function T(a,l){return a.type=l,a.end=ge,A.C&&(a.X.end=Pt),A.Xa&&(a.j[1]=ge),a}function St(a){return a.type==="ExpressionStatement"&&a.la.type==="Literal"&&a.la.value==="use strict"}function U(a){return I===a?(E(),!0):!1}function Qe(){return!A.fc&&(I===Nt||I===Ee||it.test(y.slice(ge,L)))}function be(){U(ce)||Qe()||ie()}function M(a){I===a?E():ie()}function ie(){r(L,"Unexpected token")}function et(a){a.type!=="Identifier"&&a.type!=="MemberExpression"&&r(a.start,"Assigning to rvalue"),q&&a.type==="Identifier"&&ot(a.name)&&r(a.start,"Assigning to "+a.name+" in strict mode")}function ne(){(I===Vn||I===Se&&te==="/=")&&k(!0);var a=I,l=D();switch(a){case Ft:case bn:E();var c=a===Ft;U(ce)||Qe()?l.label=null:I!==Ce?ie():(l.label=ae(),be());for(var d=0;d<V.length;++d){var j=V[d];if((l.label===null||j.name===l.label.name)&&(j.kind!==null&&(c||j.kind==="loop")||l.label&&c))break}return d===V.length&&r(l.start,"Unsyntactic "+a.l),T(l,c?"BreakStatement":"ContinueStatement");case xn:return E(),be(),T(l,"DebuggerStatement");case wn:return E(),V.push(Wt),l.body=ne(),V.pop(),M(Lt),l.test=Ne(),be(),T(l,"DoWhileStatement");case En:return E(),V.push(Wt),M(le),I===ce?wt(l,null):I===Vt?(a=D(),E(),mn(a,!0),T(a,"VariableDeclaration"),a.fa.length===1&&U(rt)?hn(l,a):wt(l,a)):(a=G(!1,!0),U(rt)?(et(a),hn(l,a)):wt(l,a));case Ut:return E(),It(l,!0);case In:return E(),l.test=Ne(),l.da=ne(),l.alternate=U(kn)?ne():null,T(l,"IfStatement");case jn:return Me||A.Ib||r(L,"'return' outside of function"),E(),U(ce)||Qe()?l.K=null:(l.K=G(),be()),T(l,"ReturnStatement");case Mt:for(E(),l.Qb=Ne(),l.tb=[],M(Le),V.push(ho);I!==Ee;)I===Bt||I===Sn?(a=I===Bt,d&&T(d,"SwitchCase"),l.tb.push(d=D()),d.da=[],E(),a?d.test=G():(c&&r(Rt,"Multiple default clauses"),c=!0,d.test=null),M(De)):(d||ie(),d.da.push(ne()));return d&&T(d,"SwitchCase"),E(),V.pop(),T(l,"SwitchStatement");case Tn:return E(),it.test(y.slice(ge,L))&&r(ge,"Illegal newline after throw"),l.K=G(),be(),T(l,"ThrowStatement");case An:return E(),l.block=Fe(),l.Ea=null,I===vn&&(a=D(),E(),M(le),a.Ua=ae(),q&&ot(a.Ua.name)&&r(a.Ua.start,"Binding "+a.Ua.name+" in strict mode"),M(re),a.body=Fe(),l.Ea=T(a,"CatchClause")),l.fb=U(Cn)?Fe():null,l.Ea||l.fb||r(l.start,"Missing catch or finally clause"),T(l,"TryStatement");case Vt:return E(),mn(l),be(),T(l,"VariableDeclaration");case Lt:return E(),l.test=Ne(),V.push(Wt),l.body=ne(),V.pop(),T(l,"WhileStatement");case On:return q&&r(L,"'with' in strict mode"),E(),l.object=Ne(),l.body=ne(),T(l,"WithStatement");case Le:return Fe();case ce:return E(),T(l,"EmptyStatement");default:if(c=te,j=G(),a===Ce&&j.type==="Identifier"&&U(De)){for(d=0;d<V.length;++d)V[d].name===c&&r(j.start,"Label '"+c+"' is already declared");return V.push({name:c,kind:I.W?"loop":I===Mt?"switch":null}),l.body=ne(),V.pop(),l.label=j,T(l,"LabeledStatement")}return l.la=j,be(),T(l,"ExpressionStatement")}}function Ne(){M(le);var a=G();return M(re),a}function Fe(a){var l=D(),c=!0,d=!1;for(l.body=[],M(Le);!U(Ee);){var j=ne();if(l.body.push(j),c&&a&&St(j)){var _=d;Q(d=!0)}c=!1}return d&&!_&&Q(!1),T(l,"BlockStatement")}function wt(a,l){return a.ua=l,M(ce),a.test=I===ce?null:G(),M(ce),a.update=I===re?null:G(),M(re),a.body=ne(),V.pop(),T(a,"ForStatement")}function hn(a,l){return a.left=l,a.right=G(),M(re),a.body=ne(),V.pop(),T(a,"ForInStatement")}function mn(a,l){for(a.fa=[],a.kind="var";;){var c=D();if(c.id=ae(),q&&ot(c.id.name)&&r(c.id.start,"Binding "+c.id.name+" in strict mode"),c.ua=U(Ln)?G(!0,l):null,a.fa.push(T(c,"VariableDeclarator")),!U(ye))break}}function G(a,l){var c=kt(l);if(!a&&I===ye){for(a=me(c),a.xb=[c];U(ye);)a.xb.push(kt(l));return T(a,"SequenceExpression")}return c}function kt(a){var l=Ct(Et(),-1,a);if(U(Mn)){var c=me(l);c.test=l,c.da=G(!0),M(De),c.alternate=G(!0,a),l=T(c,"ConditionalExpression")}return I.Cb?(c=me(l),c.operator=te,c.left=l,E(),c.right=kt(a),et(l),T(c,"AssignmentExpression")):l}function Ct(a,l,c){var d=I.L;if(d!==null&&(!c||I!==rt)&&d>l){var j=me(a);return j.left=a,j.operator=te,a=I,E(),j.right=Ct(Et(),d,c),d=T(j,a===_n||a===Wn?"LogicalExpression":"BinaryExpression"),Ct(d,l,c)}return a}function Et(){if(I.prefix){var a=D(),l=I.$b;return a.operator=te,Ue=a.prefix=!0,E(),a.K=Et(),l?et(a.K):q&&a.operator==="delete"&&a.K.type==="Identifier"&&r(a.start,"Deleting local variable in strict mode"),T(a,l?"UpdateExpression":"UnaryExpression")}for(l=Be(tt());I.cc&&!Qe();)a=me(l),a.operator=te,a.prefix=!1,a.K=l,et(l),E(),l=T(a,"UpdateExpression");return l}function Be(a,l){if(U(Un)){var c=me(a);return c.object=a,c.Wa=ae(!0),c.bb=!1,Be(T(c,"MemberExpression"),l)}return U(Dt)?(c=me(a),c.object=a,c.Wa=G(),c.bb=!0,M(_t),Be(T(c,"MemberExpression"),l)):!l&&U(le)?(c=me(a),c.callee=a,c.arguments=jt(re,!1),Be(T(c,"CallExpression"),l)):a}function tt(){switch(I){case Pn:var a=D();return E(),T(a,"ThisExpression");case Ce:return ae();case Ve:case nt:case yn:return a=D(),a.value=te,a.raw=y.slice(L,ke),E(),T(a,"Literal");case Nn:case Fn:case Bn:return a=D(),a.value=I.$a,a.raw=I.l,E(),T(a,"Literal");case le:a=At;var l=L;E();var c=G();return c.start=l,c.end=ke,A.C&&(c.X.start=a,c.X.end=Ot),A.Xa&&(c.j=[l,ke]),M(re),c;case Dt:return a=D(),E(),a.elements=jt(_t,!0,!0),T(a,"ArrayExpression");case Le:for(a=D(),l=!0,c=!1,a.h=[],E();!U(Ee);){if(l)l=!1;else if(M(ye),A.sb&&U(Ee))break;var d={key:I===Ve||I===nt?tt():ae(!0)},j=!1;if(U(De)){d.value=G(!0);var _=d.kind="init"}else d.key.type!=="Identifier"||d.key.name!=="get"&&d.key.name!=="set"?ie():(j=c=!0,_=d.kind=d.key.name,d.key=I===Ve||I===nt?tt():ae(!0),I!==le&&ie(),d.value=It(D(),!1));if(d.key.type==="Identifier"&&(q||c))for(var J=0;J<a.h.length;++J){var je=a.h[J];if(je.key.name===d.key.name){var $t=_===je.kind||j&&je.kind==="init"||_==="init"&&(je.kind==="get"||je.kind==="set");$t&&!q&&_==="init"&&je.kind==="init"&&($t=!1),$t&&r(d.key.start,"Redefinition of property")}}a.h.push(d)}return T(a,"ObjectExpression");case Ut:return a=D(),E(),It(a,!1);case Rn:return a=D(),E(),a.callee=Be(tt(),!0),a.arguments=U(le)?jt(re,!1):Zr,T(a,"NewExpression")}ie()}function It(a,l){I===Ce?a.id=ae():l?ie():a.id=null,a.oa=[];var c=!0;for(M(le);!U(re);)c?c=!1:M(ye),a.oa.push(ae());c=Me;var d=V;if(Me=!0,V=[],a.body=Fe(!0),Me=c,V=d,q||a.body.body.length&&St(a.body.body[0])){for(c=a.id?-1:0;c<a.oa.length;++c)if(d=0>c?a.id:a.oa[c],($n(d.name)||ot(d.name))&&r(d.start,"Defining '"+d.name+"' in strict mode"),0<=c)for(var j=0;j<c;++j)d.name===a.oa[j].name&&r(d.start,"Argument name clash in strict mode")}return T(a,l?"FunctionDeclaration":"FunctionExpression")}function jt(a,l,c){for(var d=[],j=!0;!U(a);){if(j)j=!1;else if(M(ye),l&&A.sb&&U(a))break;d.push(c&&I===ye?null:G(!0))}return d}function ae(a){var l=D();return a&&A.yb==="everywhere"&&(a=!1),I===Ce?(!a&&(A.yb&&co(te)||q&&$n(te))&&y.slice(L,ke).indexOf("\\")===-1&&r(L,"The keyword '"+te+"' is reserved"),l.name=te):a&&I.l?l.name=I.l:ie(),Ue=!1,E(),T(l,"Identifier")}e.version="0.5.0";var A,y="",we,Tt;e.parse=function(a,l){y=String(a),we=y.length,A=l||{};for(var c in gn)Object.prototype.hasOwnProperty.call(A,c)||(A[c]=gn[c]);for(Tt=A.sourceFile,xe=1,f=se=0,Ue=!0,p(),c=A.dc,Rt=ge=f,A.C&&(Pt=new i),Me=q=!1,V=[],k(),a=c||D(),l=!0,c||(a.body=[]);I!==Nt;)c=ne(),a.body.push(c),l&&St(c)&&Q(!0),l=!1;return T(a,"Program")};var gn={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},f=0,L=0,ke=0,At,Ot,I,te,Ue,xe,se,Rt=0,ge=0,Pt,Me,V,q,Zr=[],Ve={type:"num"},yn={type:"regexp"},nt={type:"string"},Ce={type:"name"},Nt={type:"eof"},Ft={l:"break"},Bt={l:"case",m:!0},vn={l:"catch"},bn={l:"continue"},xn={l:"debugger"},Sn={l:"default"},wn={l:"do",W:!0},kn={l:"else",m:!0},Cn={l:"finally"},En={l:"for",W:!0},Ut={l:"function"},In={l:"if"},jn={l:"return",m:!0},Mt={l:"switch"},Tn={l:"throw",m:!0},An={l:"try"},Vt={l:"var"},Lt={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},Bn={l:"false",$a:!1},rt={l:"in",L:7,m:!0},Qr={break:Ft,case:Bt,catch:vn,continue:bn,debugger:xn,default:Sn,do:wn,else:kn,finally:Cn,for:En,function:Ut,if:In,return:jn,switch:Mt,throw:Tn,try:An,var:Vt,while:Lt,with:On,null:Nn,true:Fn,false:Bn,new:Rn,in:rt,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}},Dt={type:"[",m:!0},_t={type:"]"},Le={type:"{",m:!0},Ee={type:"}"},le={type:"(",m:!0},re={type:")"},ye={type:",",m:!0},ce={type:";",m:!0},De={type:":",m:!0},Un={type:"."},Mn={type:"?",m:!0},Vn={L:10,m:!0},Ln={Cb:!0,m:!0},Se={Cb:!0,m:!0},eo={cc:!0,prefix:!0,$b:!0},Dn={prefix:!0,m:!0},_n={L:1,m:!0},Wn={L:2,m:!0},to={L:3,m:!0},no={L:4,m:!0},ro={L:5,m:!0},oo={L:6,m:!0},io={L:7,m:!0},ao={L:8,m:!0},so={L:9,prefix:!0,m:!0},lo={L:10,m:!0},co=o("class enum extends super const export import"),$n=o("implements interface let package private protected public static yield"),ot=o("eval arguments"),uo=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"),fo=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Hn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),po=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),it=/[\n\r\u2028\u2029]/,at=/\r\n|[\n\r\u2028\u2029]/g,Ie,Wt={kind:"loop"},ho={kind:"switch"}},Gt=Gt=typeof globalThis>"u"?void 0:globalThis;Io(Gt.j||(Gt.j={}));function h(e,t){typeof e=="string"&&(e=Oe(e,"code"));var n=e.constructor;this.ya=function(){return new n({options:{}})};var r=this.ya(),o;for(o in e)r[o]=o==="body"?e[o].slice():e[o];this.ra=r,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var i,s;for(s in this)typeof this[s]=="function"&&(i=s.match(e))&&(this.rb[i[1]]=this[s].bind(this));this.N=Jt(this,this.ra,null),this.Na=this.N.object,this.ra=Oe(this.ba.join(`
4
- `),"polyfills"),this.ba=void 0,mt(this.ra),i=new b(this.ra,this.N),i.done=!1,this.o=[i],this.Eb(),this.value=void 0,this.ra=r,i=new b(this.ra,this.N),i.done=!1,this.o.length=0,this.o[0]=i}var Kn={C:!0,kc:5},qt={configurable:!0,enumerable:!0,writable:!1},v={configurable:!0,enumerable:!1,writable:!0},z={configurable:!0,enumerable:!1,writable:!1},_e={configurable:!1,enumerable:!1,writable:!1},Gn={configurable:!1,enumerable:!0,writable:!0},gr={STEP_ERROR:!0},Pe={SCOPE_REFERENCE:!0},Je={VALUE_IN_DESCRIPTOR:!0},Ae={REGEXP_TIMEOUT:!0},Xn=[],fe=null,Ge=null,ve=typeof globalThis>"u"?void 0:globalThis,jo=["onmessage = function(e) {","var result;","var data = e.data;","switch (data[0]) {","case 'split':","result = data[1].split(data[2], data[3]);","break;","case 'match':","result = data[1].match(data[2]);","break;","case 'search':","result = data[1].search(data[2]);","break;","case 'replace':","result = data[1].replace(data[2], data[3]);","break;","case 'exec':","var regexp = data[1];","regexp.lastIndex = data[2];","result = [regexp.exec(data[3]), data[1].lastIndex];","break;","default:","throw Error('Unknown RegExp operation: ' + data[0]);","}","postMessage(result);","close();","};"];function Zt(e){var t=e>>>0;return t===Number(e)?t:NaN}function Xe(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function mt(e,t,n){t?e.start=t:delete e.start,n?e.end=n:delete e.end;for(var r in e)if(r!=="loc"&&e.hasOwnProperty(r)){var o=e[r];o&&typeof o=="object"&&mt(o,t,n)}}h.prototype.REGEXP_MODE=2;h.prototype.REGEXP_THREAD_TIMEOUT=1e3;h.prototype.POLYFILL_TIMEOUT=1e3;F=h.prototype;F.P=!1;F.Ka=!1;F.Kb=0;F.ic=0;function Oe(e,t){var n={},r;for(r in Kn)n[r]=Kn[r];return n.sourceFile=t,ve.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=Oe(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");Ye(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};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&&br(this,n,n.interval);var r=new b(n.node,n.scope);n.zb&&(r.ia=2,r.B=this.Na,r.U=n.zb,r.Qa=!0,r.F=n.Lb),n=r}if(!n)break}r=n.node;var o=Ge;Ge=this;try{var i=this.rb[r.type](e,n,r)}catch(s){if(s!==gr)throw this.value!==s&&(this.value=void 0),s}finally{Ge=o}if(i&&e.push(i),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||r.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!r.end&&t>Date.now());return!0};F.Eb=function(){for(;!this.za&&this.lb(););return this.za};function To(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,qt),e.g(t,"this",t,_e),e.g(t,"self",t),e.M=new P(null),e.Z=new P(e.M),Ao(e,t),Oo(e,t),t.xa=e.M,e.g(t,"constructor",e.v,v),Ro(e,t),Po(e,t),No(e,t),Fo(e,t),Bo(e,t),Uo(e,t),Mo(e,t),Vo(e,t),Lo(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,v),e.g(t,"parseInt",e.i(parseInt,!1),v),e.g(t,"parseFloat",e.i(parseFloat,!1),v),e.g(t,"isNaN",e.i(isNaN,!1),v),e.g(t,"isFinite",e.i(isFinite,!1),v);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<r.length;o++)n=function(i){return function(s){try{return i(s)}catch(u){S(e,e.Gb,u.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),v);n=function(i){return Jn(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),v),n=function(i){return Jn(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),v),n=function(i){Yn(e,i)},e.g(t,"clearTimeout",e.i(n,!1),v),n=function(i){Yn(e,i)},e.g(t,"clearInterval",e.i(n,!1),v),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 Ao(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){var i=arguments.length?String(arguments[arguments.length-1]):"",s=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(s){s=s.split(/\s*,\s*/);for(var u=0;u<s.length;u++){var p=s[u];n.test(p)||S(e,e.T,"Invalid function argument: "+p)}s=s.join(", ")}try{var x=Oe("(function("+s+") {"+i+"})","function"+e.Wb++)}catch(k){S(e,e.T,"Invalid code: "+k.message)}return x.body.length!==1&&S(e,e.T,"Invalid code in function body"),tn(e,x.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,v),e.g(e.O,"prototype",e.Z,v),e.g(e.Z,"constructor",e.O,v),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,z),e.Z.H="Function",r=function(o,i){var s=e.o[e.o.length-1];s.U=this,s.B=o,s.F=[],i!=null&&(i instanceof P?s.F=yr(e,i):S(e,e.j,"CreateListFromArrayLike called on non-object")),s.eb=!1},W(e,e.O,"apply",r),r=function(o){var i=e.o[e.o.length-1];i.U=this,i.B=o,i.F=[];for(var s=1;s<arguments.length;s++)i.F.push(arguments[s]);i.eb=!1},W(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)},W(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),v),r=function(){return this.valueOf()},W(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),v)}function Oo(e,t){function n(o){o!=null||S(e,e.j,"Cannot convert '"+o+"' to object")}var r=function(o){if(o==null)return pe(e)?this:e.s(e.M);if(!(o instanceof P)){var i=e.s(de(e,o));return i.data=o,i}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,v),e.g(e.M,"constructor",e.v,v),e.g(t,"Object",e.v,v),r=function(o){return n(o),ue(e,Object.getOwnPropertyNames(o instanceof P?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),v),r=function(o){return n(o),o instanceof P&&(o=o.h),ue(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),v),r=function(o){return o===null?e.s(null):(o instanceof P||S(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),v),e.ba.push("(function() {","var create_ = Object.create;","Object.create = function create(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();",""),r=function(o,i,s){return i=String(i),o instanceof P||S(e,e.j,"Object.defineProperty called on non-object: "+o),s instanceof P||S(e,e.j,"Property description must be an object"),!o.preventExtensions||i in o.h||S(e,e.j,"Can't define property '"+i+"', object is not extensible"),e.g(o,i,Je,s.h),o},e.g(e.v,"defineProperty",e.i(r,!1),v),e.ba.push("(function() {","var defineProperty_ = Object.defineProperty;","Object.defineProperty = function defineProperty(obj, prop, d1) {","var d2 = {};","if ('configurable' in d1) d2.configurable = d1.configurable;","if ('enumerable' in d1) d2.enumerable = d1.enumerable;","if ('writable' in d1) d2.writable = d1.writable;","if ('value' in d1) d2.value = d1.value;","if ('get' in d1) d2.get = d1.get;","if ('set' in d1) d2.set = d1.set;","return defineProperty_(obj, prop, d2);","};","})();","Object.defineProperty(Object, 'defineProperties',","{configurable: true, writable: true, value:","function defineProperties(obj, props) {","var keys = Object.keys(props);","for (var i = 0; i < keys.length; i++) {","Object.defineProperty(obj, keys[i], props[keys[i]]);","}","return obj;","}","});",""),r=function(o,i){if(o instanceof P||S(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),i=String(i),i in o.h){var s=Object.getOwnPropertyDescriptor(o.h,i),u=o.V[i];return o=o.Y[i],i=e.s(e.M),u||o?(e.g(i,"get",u),e.g(i,"set",o)):(e.g(i,"value",s.value),e.g(i,"writable",s.writable)),e.g(i,"configurable",s.configurable),e.g(i,"enumerable",s.enumerable),i}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),v),r=function(o){return n(o),de(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),v),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),v),r=function(o){return o instanceof P&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),v),W(e,e.v,"toString",P.prototype.toString),W(e,e.v,"toLocaleString",P.prototype.toString),W(e,e.v,"valueOf",P.prototype.valueOf),r=function(o){return n(this),this instanceof P?String(o)in this.h:this.hasOwnProperty(o)},W(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof P?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},W(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=de(e,o),!o)return!1;if(o===this)return!0}},W(e,e.v,"isPrototypeOf",r)}function Ro(e,t){var n=function(r){var o=pe(e)?this:Re(e),i=arguments[0];if(arguments.length===1&&typeof i=="number")isNaN(Zt(i))&&S(e,e.ob,"Invalid array length: "+i),o.h.length=i;else{for(i=0;i<arguments.length;i++)o.h[i]=arguments[i];o.h.length=i}return o};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,v),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),v),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 Po(e,t){var n=function(r){return r=arguments.length?ve.String(r):"",pe(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,v),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),v),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)W(e,e.J,t[n],String.prototype[t[n]]);n=function(r,o,i){o=e.R(o),i=e.R(i);try{return String(this).localeCompare(r,o,i)}catch(s){S(e,e.D,"localeCompare: "+s.message)}},W(e,e.J,"localeCompare",n),n=function(r,o,i){var s=String(this);if(o=o?Number(o):void 0,H(e,r,e.I)&&(r=r.data,$e(e,r,i),e.REGEXP_MODE===2)){if(fe)r=We(e,"string.split(separator, limit)",{string:s,separator:r,limit:o},r,i),r!==Ae&&i(ue(e,r));else{var u=e.ha(),p=He(e,r,u,i);u.onmessage=function(x){clearTimeout(p),i(ue(e,x.data))},u.postMessage(["split",s,r,o])}return}r=s.split(r,o),i(ue(e,r))},Ke(e,e.J,"split",n),n=function(r,o){var i=String(this);if(r=H(e,r,e.I)?r.data:new RegExp(r),$e(e,r,o),e.REGEXP_MODE===2)if(fe)r=We(e,"string.match(regexp)",{string:i,regexp:r},r,o),r!==Ae&&o(r&&ue(e,r));else{var s=e.ha(),u=He(e,r,s,o);s.onmessage=function(p){clearTimeout(u),o(p.data&&ue(e,p.data))},s.postMessage(["match",i,r])}else r=i.match(r),o(r&&ue(e,r))},Ke(e,e.J,"match",n),n=function(r,o){var i=String(this);if(H(e,r,e.I)?r=r.data:r=new RegExp(r),$e(e,r,o),e.REGEXP_MODE===2)if(fe)r=We(e,"string.search(regexp)",{string:i,regexp:r},r,o),r!==Ae&&o(r);else{var s=e.ha(),u=He(e,r,s,o);s.onmessage=function(p){clearTimeout(u),o(p.data)},s.postMessage(["search",i,r])}else o(i.search(r))},Ke(e,e.J,"search",n),n=function(r,o,i){var s=String(this);if(o=String(o),H(e,r,e.I)&&(r=r.data,$e(e,r,i),e.REGEXP_MODE===2)){if(fe)r=We(e,"string.replace(substr, newSubstr)",{string:s,substr:r,newSubstr:o},r,i),r!==Ae&&i(r);else{var u=e.ha(),p=He(e,r,u,i);u.onmessage=function(x){clearTimeout(p),i(x.data)},u.postMessage(["replace",s,r,o])}return}i(s.replace(r,o))},Ke(e,e.J,"replace",n),e.ba.push("(function() {","var replace_ = String.prototype.replace;","String.prototype.replace = function replace(substr, newSubstr) {","if (typeof newSubstr !== 'function') {","return replace_.call(this, substr, newSubstr);","}","var str = this;","if (substr instanceof RegExp) {","var subs = [];","var m = substr.exec(str);","while (m) {","m.push(m.index, str);","var inject = newSubstr.apply(null, m);","subs.push([m.index, m[0].length, inject]);","m = substr.global ? substr.exec(str) : null;","}","for (var i = subs.length - 1; i >= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","")}function No(e,t){e.mb=e.i(function(n){return n=ve.Boolean(n),pe(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,v)}function Fo(e,t){var n=function(r){return r=arguments.length?ve.Number(r):0,pe(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,v),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){S(e,e.D,o.message)}},W(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){S(e,e.D,o.message)}},W(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){S(e,e.D,o.message)}},W(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){S(e,e.D,o.message)}},W(e,e.aa,"toString",n),n=function(r,o){r=r?e.R(r):void 0,o=o?e.R(o):void 0;try{return Number(this).toLocaleString(r,o)}catch(i){S(e,e.D,"toLocaleString: "+i.message)}},W(e,e.aa,"toLocaleString",n)}function Bo(e,t){var n=function(o,i){if(!pe(e))return ve.Date();var s=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(ve.Date,s)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,v),e.g(e.$,"now",e.i(Date.now,!1),v),e.g(e.$,"parse",e.i(Date.parse,!1),v),e.g(e.$,"UTC",e.i(Date.UTC,!1),v),t="getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");for(var r=0;r<t.length;r++)n=function(o){return function(i){var s=this.data;s instanceof Date||S(e,e.j,o+" not called on a Date");for(var u=[],p=0;p<arguments.length;p++)u[p]=e.R(arguments[p]);return s[o].apply(s,u)}}(t[r]),W(e,e.$,t[r],n)}function Uo(e,t){var n=function(r,o){if(pe(e))var i=this;else{if(o===void 0&&H(e,r,e.I))return r;i=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||S(e,e.T,"Invalid regexp flag: "+o);try{var s=new ve.RegExp(r,o)}catch(u){S(e,e.T,u.message)}return Qt(e,i,s),i};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,v),e.g(e.I.h.prototype,"global",void 0,z),e.g(e.I.h.prototype,"ignoreCase",void 0,z),e.g(e.I.h.prototype,"multiline",void 0,z),e.g(e.I.h.prototype,"source","(?:)",z),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),n=function(r,o){function i(k){if(k){var m=ue(e,k);return e.g(m,"index",k.index),e.g(m,"input",k.input),m}return null}var s=this.data;if(r=String(r),s.lastIndex=Number(e.G(this,"lastIndex")),$e(e,s,o),e.REGEXP_MODE===2)if(fe)r=We(e,"regexp.exec(string)",{string:r,regexp:s},s,o),r!==Ae&&(e.g(this,"lastIndex",s.lastIndex),o(i(r)));else{var u=e.ha(),p=He(e,s,u,o),x=this;u.onmessage=function(k){clearTimeout(p),e.g(x,"lastIndex",k.data[1]),o(i(k.data[0]))},u.postMessage(["exec",s,s.lastIndex,r])}else r=s.exec(r),e.g(this,"lastIndex",s.lastIndex),o(i(r))},Ke(e,e.I,"exec",n)}function Mo(e,t){function n(r){var o=e.i(function(i){var s=pe(e)?this:e.Aa(o);return Xt(e,s,i),s},!0);return e.g(o,"prototype",e.Aa(e.D),v),e.g(o.h.prototype,"name",r,v),e.g(t,r,o,v),o}e.D=e.i(function(r){var o=pe(e)?this:e.Aa(e.D);return Xt(e,o,r),o},!0),e.g(t,"Error",e.D,v),e.g(e.D.h.prototype,"message","",v),e.g(e.D.h.prototype,"name","Error",v),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function Vo(e,t){var n=e.s(e.M);e.g(t,"Math",n,v);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]],z);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),v)}function Lo(e,t){var n=e.s(e.M);e.g(t,"JSON",n,v),t=function(r){try{var o=JSON.parse(String(r))}catch(i){S(e,e.T,i.message)}return e.Ia(o)},e.g(n,"parse",e.i(t,!1)),t=function(r,o,i){o&&o.H==="Function"?S(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=yr(e,o),o=o.filter(function(u){return typeof u=="string"||typeof u=="number"})):o=null,typeof i!="string"&&typeof i!="number"&&(i=void 0),r=e.R(r);try{var s=JSON.stringify(r,o,i)}catch(u){S(e,e.j,u.message)}return s},e.g(n,"stringify",e.i(t,!1))}function H(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=de(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function Qt(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,v),e.g(t,"source",n.source,z),e.g(t,"global",n.global,z),e.g(t,"ignoreCase",n.ignoreCase,z),e.g(t,"multiline",n.multiline,z)}function Xt(e,t,n){n&&e.g(t,"message",String(n),v),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],i=o.node;i.type==="CallExpression"&&(o=o.U)&&n.length&&(n[n.length-1].Ob=e.G(o,"name")),!i.X||n.length&&i.type!=="CallExpression"||n.push({Nb:i.X})}for(r=String(e.G(t,"name")),i=String(e.G(t,"message")),i=r+": "+i+`
1
+ "use strict";const g=require("react/jsx-runtime");require("react");const Q=require("./USE_CLIENT_BUNDLE-22f09854.cjs"),go=require("lru-cache");require("next/navigation");const yo=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),vo=e=>typeof e=="string"&&yo.has(e.toLowerCase()),he="rsc",ht=()=>{switch(he){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":return"class"}};function bo(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const st="[Builder.io]: ",J={log:(...e)=>console.log(st,...e),error:(...e)=>console.error(st,...e),warn:(...e)=>console.warn(st,...e),debug:(...e)=>console.debug(st,...e)};function K(){return typeof window<"u"&&typeof document<"u"}const xo=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},ur=e=>e instanceof URLSearchParams?xo(e):e,fr=e=>typeof e=="string"?e:e instanceof URLSearchParams?e.toString():new URLSearchParams(e).toString();function So(){return K()&&window.self!==window.top}function zt(e){return So()&&fr(e||window.location.search).indexOf("builder.frameEditing=")!==-1}const wo=()=>{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},ko=()=>typeof navigator=="object"&&navigator.userAgent||"",dr=()=>{const e=ko(),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()||he==="reactNative"}},n=e.match(/Tablet|iPad/i),r=wo();return{urlPath:r==null?void 0:r.pathname,host:(r==null?void 0:r.host)||(r==null?void 0:r.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},pr=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),Co=()=>({isEditing:zt(),isBrowser:K(),isServer:!K(),getUserAttributes:()=>dr()}),Eo=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,Io=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:i,rootState:s})=>{const u=pr({builder:t,context:n,event:r,state:hr({rootState:s,localState:o,rootSetState:i})});return new Function(...u.map(([p])=>p),e)(...u.map(([,p])=>p))};function hr({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(r,o)=>{if(t&&o in t)return t[o];const i=r[o];return typeof i=="object"&&i!==null?hr({rootState:i,localState:void 0,rootSetState:n?s=>{r[o]=s,n(r)}:void 0}):i},set:(r,o,i)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return r[o]=i,n==null||n(r),!0}})}const mr=(e,t,n)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((o,i,s)=>Object(o[i])===o[i]?o[i]:o[i]=Math.abs(Number(r[s+1]))>>0===+r[s+1]?[]:{},e)[r[r.length-1]]=n,e};var F,jo=function(e){function t(a){return 48>a?a===36:58>a?!0:65>a?!1:91>a?!0:97>a?a===95:123>a?!0:170<=a&&ho.test(String.fromCharCode(a))}function n(a){return 65>a?a===36:91>a?!0:97>a?a===95:123>a?!0:170<=a&&Hn.test(String.fromCharCode(a))}function r(a,l){for(var c=y,d=1,j=0;;){at.lastIndex=j;var W=at.exec(c);if(W&&W.index<a)++d,j=W.index+W[0].length;else break}throw c={line:d,ab:a-j},l+=" ("+c.line+":"+c.ab+")",l=new SyntaxError(l),l.j=a,l.X=c,l.o=f,l}function o(a){a=a.split(" ");for(var l=Object.create(null),c=0;c<a.length;c++)l[a[c]]=!0;return function(d){return l[d]||!1}}function i(){this.line=xe,this.ab=f-se}function s(a,l){ke=f,A.C&&(Ot=new i),I=a,p(),te=l,Ue=a.m}function u(){for(var a=f,l=A.va&&A.C&&new i,c=y.charCodeAt(f+=2);f<we&&c!==10&&c!==13&&c!==8232&&c!==8233;)++f,c=y.charCodeAt(f);A.va&&A.va(!1,y.slice(a+2,f),a,f,l,A.C&&new i)}function p(){for(;f<we;){var a=y.charCodeAt(f);if(a===32)++f;else if(a===13)++f,a=y.charCodeAt(f),a===10&&++f,A.C&&(++xe,se=f);else if(a===10||a===8232||a===8233)++f,A.C&&(++xe,se=f);else if(8<a&&14>a)++f;else if(a===47)if(a=y.charCodeAt(f+1),a===42){a=void 0;var l=A.va&&A.C&&new i,c=f,d=y.indexOf("*/",f+=2);if(d===-1&&r(f-2,"Unterminated comment"),f=d+2,A.C)for(at.lastIndex=c;(a=at.exec(y))&&a.index<f;)++xe,se=a.index+a[0].length;A.va&&A.va(!0,y.slice(c+2,d),c,f,l,A.C&&new i)}else if(a===47)u();else break;else if(a===160)++f;else if(5760<=a&&po.test(String.fromCharCode(a)))++f;else break}}function S(a){switch(a){case 46:a=y.charCodeAt(f+1),48<=a&&57>=a?E(!0):(++f,s(Un));return;case 40:return++f,s(le);case 41:return++f,s(re);case 59:return++f,s(ce);case 44:return++f,s(ye);case 91:return++f,s(Lt);case 93:return++f,s(_t);case 123:return++f,s(De);case 125:return++f,s(Ee);case 58:return++f,s(Le);case 63:return++f,s(Mn);case 48:if(a=y.charCodeAt(f+1),a===120||a===88){f+=2,a=P(16),a===null&&r(L+2,"Expected hexadecimal number"),n(y.charCodeAt(f))&&r(f,"Identifier directly after number"),s(Ve,a);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return E(!1);case 34:case 39:f++;for(var l="";;){f>=we&&r(L,"Unterminated string constant");var c=y.charCodeAt(f);if(c===a){++f,s(nt,l);break}if(c===92){c=y.charCodeAt(++f);var d=/^[0-7]+/.exec(y.slice(f,f+3));for(d&&(d=d[0]);d&&255<parseInt(d,8);)d=d.slice(0,-1);if(d==="0"&&(d=null),++f,d)Z&&r(f-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(d,8)),f+=d.length-1;else switch(c){case 110:l+=`
2
+ `;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(b(2));break;case 117:l+=String.fromCharCode(b(4));break;case 85:l+=String.fromCharCode(b(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:y.charCodeAt(f)===10&&++f;case 10:A.C&&(se=f,++xe);break;default:l+=String.fromCharCode(c)}}else c!==13&&c!==10&&c!==8232&&c!==8233||r(L,"Unterminated string constant"),l+=String.fromCharCode(c),++f}return;case 47:a=y.charCodeAt(f+1),Ue?(++f,R()):a===61?m(Se,2):m(Vn,1);return;case 37:case 42:y.charCodeAt(f+1)===61?m(Se,2):m(co,1);return;case 124:case 38:l=y.charCodeAt(f+1),l===a?m(a===124?_n:Wn,2):l===61?m(Se,2):m(a===124?no:oo,1);return;case 94:y.charCodeAt(f+1)===61?m(Se,2):m(ro,1);return;case 43:case 45:l=y.charCodeAt(f+1),l===a?l===45&&y.charCodeAt(f+2)===62&&it.test(y.slice(ge,f))?(f+=3,u(),p(),C()):m(to,2):l===61?m(Se,2):m(lo,1);return;case 60:case 62:l=y.charCodeAt(f+1),c=1,l===a?(c=a===62&&y.charCodeAt(f+2)===62?3:2,y.charCodeAt(f+c)===61?m(Se,c+1):m(so,c)):l===33&&a===60&&y.charCodeAt(f+2)===45&&y.charCodeAt(f+3)===45?(f+=4,u(),p(),C()):(l===61&&(c=y.charCodeAt(f+2)===61?3:2),m(ao,c));return;case 61:case 33:y.charCodeAt(f+1)===61?m(io,y.charCodeAt(f+2)===61?3:2):m(a===61?Dn:Ln,1);return;case 126:return m(Ln,1)}return!1}function C(a){if(a?f=L+1:L=f,A.C&&(At=new i),a)return R();if(f>=we)return s(Nt);if(a=y.charCodeAt(f),n(a)||a===92)return O();if(S(a)===!1){if(a=String.fromCharCode(a),a==="\\"||Hn.test(a))return O();r(f,"Unexpected character '"+a+"'")}}function m(a,l){var c=y.slice(f,f+l);f+=l,s(a,c)}function R(){for(var a,l,c=f;;){f>=we&&r(c,"Unterminated regexp");var d=y.charAt(f);if(it.test(d)&&r(c,"Unterminated regexp"),a)a=!1;else{if(d==="[")l=!0;else if(d==="]"&&l)l=!1;else if(d==="/"&&!l)break;a=d==="\\"}++f}a=y.slice(c,f),++f,(l=B())&&!/^[gmi]*$/.test(l)&&r(c,"Invalid regexp flag");try{var j=new RegExp(a,l)}catch(W){throw W instanceof SyntaxError&&r(c,W.message),W}s(yn,j)}function P(a,l){for(var c=f,d=0,j=l===void 0?1/0:l,W=0;W<j;++W){var Y=y.charCodeAt(f);if(Y=97<=Y?Y-97+10:65<=Y?Y-65+10:48<=Y&&57>=Y?Y-48:1/0,Y>=a)break;++f,d=d*a+Y}return f===c||l!==void 0&&f-c!==l?null:d}function E(a){var l=f,c=!1,d=y.charCodeAt(f)===48;a||P(10)!==null||r(l,"Invalid number"),y.charCodeAt(f)===46&&(++f,P(10),c=!0),a=y.charCodeAt(f),(a===69||a===101)&&(a=y.charCodeAt(++f),a!==43&&a!==45||++f,P(10)===null&&r(l,"Invalid number"),c=!0),n(y.charCodeAt(f))&&r(f,"Identifier directly after number"),a=y.slice(l,f);var j;c?j=parseFloat(a):d&&a.length!==1?/[89]/.test(a)||Z?r(l,"Invalid number"):j=parseInt(a,8):j=parseInt(a,10),s(Ve,j)}function b(a){return a=P(16,a),a===null&&r(L,"Bad character escape sequence"),a}function B(){Ie=!1;for(var a,l=!0,c=f;;){var d=y.charCodeAt(f);if(t(d))Ie&&(a+=y.charAt(f)),++f;else if(d===92){Ie||(a=y.slice(c,f)),Ie=!0,y.charCodeAt(++f)!==117&&r(f,"Expecting Unicode escape sequence \\uXXXX"),++f,d=b(4);var j=String.fromCharCode(d);j||r(f-1,"Invalid Unicode escape"),(l?n(d):t(d))||r(f-4,"Invalid Unicode escape"),a+=j}else break;l=!1}return Ie?a:y.slice(c,f)}function O(){var a=B(),l=Ce;!Ie&&fo(a)&&(l=eo[a]),s(l,a)}function w(){Rt=L,ge=ke,Pt=Ot,C()}function X(a){if(Z=a,f=L,A.C)for(;f<se;)se=y.lastIndexOf(`
3
+ `,se-2)+1,--xe;p(),C()}function M(){this.type=null,this.start=L,this.end=null}function ee(){this.start=At,this.end=null,Tt&&(this.source=Tt)}function _(){var a=new M;return A.C&&(a.X=new ee),A.vb&&(a.sourceFile=A.vb),A.Xa&&(a.j=[L,0]),a}function me(a){var l=new M;return l.start=a.start,A.C&&(l.X=new ee,l.X.start=a.X.start),A.Xa&&(l.j=[a.j[0],0]),l}function T(a,l){return a.type=l,a.end=ge,A.C&&(a.X.end=Pt),A.Xa&&(a.j[1]=ge),a}function St(a){return a.type==="ExpressionStatement"&&a.la.type==="Literal"&&a.la.value==="use strict"}function U(a){return I===a?(w(),!0):!1}function Qe(){return!A.fc&&(I===Nt||I===Ee||it.test(y.slice(ge,L)))}function be(){U(ce)||Qe()||ie()}function V(a){I===a?w():ie()}function ie(){r(L,"Unexpected token")}function et(a){a.type!=="Identifier"&&a.type!=="MemberExpression"&&r(a.start,"Assigning to rvalue"),Z&&a.type==="Identifier"&&ot(a.name)&&r(a.start,"Assigning to "+a.name+" in strict mode")}function ne(){(I===Vn||I===Se&&te==="/=")&&C(!0);var a=I,l=_();switch(a){case Ft:case bn:w();var c=a===Ft;U(ce)||Qe()?l.label=null:I!==Ce?ie():(l.label=ae(),be());for(var d=0;d<D.length;++d){var j=D[d];if((l.label===null||j.name===l.label.name)&&(j.kind!==null&&(c||j.kind==="loop")||l.label&&c))break}return d===D.length&&r(l.start,"Unsyntactic "+a.l),T(l,c?"BreakStatement":"ContinueStatement");case xn:return w(),be(),T(l,"DebuggerStatement");case wn:return w(),D.push(Wt),l.body=ne(),D.pop(),V(Dt),l.test=Ne(),be(),T(l,"DoWhileStatement");case En:return w(),D.push(Wt),V(le),I===ce?wt(l,null):I===Vt?(a=_(),w(),mn(a,!0),T(a,"VariableDeclaration"),a.fa.length===1&&U(rt)?hn(l,a):wt(l,a)):(a=G(!1,!0),U(rt)?(et(a),hn(l,a)):wt(l,a));case Ut:return w(),It(l,!0);case In:return w(),l.test=Ne(),l.da=ne(),l.alternate=U(kn)?ne():null,T(l,"IfStatement");case jn:return Me||A.Ib||r(L,"'return' outside of function"),w(),U(ce)||Qe()?l.K=null:(l.K=G(),be()),T(l,"ReturnStatement");case Mt:for(w(),l.Qb=Ne(),l.tb=[],V(De),D.push(mo);I!==Ee;)I===Bt||I===Sn?(a=I===Bt,d&&T(d,"SwitchCase"),l.tb.push(d=_()),d.da=[],w(),a?d.test=G():(c&&r(Rt,"Multiple default clauses"),c=!0,d.test=null),V(Le)):(d||ie(),d.da.push(ne()));return d&&T(d,"SwitchCase"),w(),D.pop(),T(l,"SwitchStatement");case Tn:return w(),it.test(y.slice(ge,L))&&r(ge,"Illegal newline after throw"),l.K=G(),be(),T(l,"ThrowStatement");case An:return w(),l.block=Fe(),l.Ea=null,I===vn&&(a=_(),w(),V(le),a.Ua=ae(),Z&&ot(a.Ua.name)&&r(a.Ua.start,"Binding "+a.Ua.name+" in strict mode"),V(re),a.body=Fe(),l.Ea=T(a,"CatchClause")),l.fb=U(Cn)?Fe():null,l.Ea||l.fb||r(l.start,"Missing catch or finally clause"),T(l,"TryStatement");case Vt:return w(),mn(l),be(),T(l,"VariableDeclaration");case Dt:return w(),l.test=Ne(),D.push(Wt),l.body=ne(),D.pop(),T(l,"WhileStatement");case On:return Z&&r(L,"'with' in strict mode"),w(),l.object=Ne(),l.body=ne(),T(l,"WithStatement");case De:return Fe();case ce:return w(),T(l,"EmptyStatement");default:if(c=te,j=G(),a===Ce&&j.type==="Identifier"&&U(Le)){for(d=0;d<D.length;++d)D[d].name===c&&r(j.start,"Label '"+c+"' is already declared");return D.push({name:c,kind:I.W?"loop":I===Mt?"switch":null}),l.body=ne(),D.pop(),l.label=j,T(l,"LabeledStatement")}return l.la=j,be(),T(l,"ExpressionStatement")}}function Ne(){V(le);var a=G();return V(re),a}function Fe(a){var l=_(),c=!0,d=!1;for(l.body=[],V(De);!U(Ee);){var j=ne();if(l.body.push(j),c&&a&&St(j)){var W=d;X(d=!0)}c=!1}return d&&!W&&X(!1),T(l,"BlockStatement")}function wt(a,l){return a.ua=l,V(ce),a.test=I===ce?null:G(),V(ce),a.update=I===re?null:G(),V(re),a.body=ne(),D.pop(),T(a,"ForStatement")}function hn(a,l){return a.left=l,a.right=G(),V(re),a.body=ne(),D.pop(),T(a,"ForInStatement")}function mn(a,l){for(a.fa=[],a.kind="var";;){var c=_();if(c.id=ae(),Z&&ot(c.id.name)&&r(c.id.start,"Binding "+c.id.name+" in strict mode"),c.ua=U(Dn)?G(!0,l):null,a.fa.push(T(c,"VariableDeclarator")),!U(ye))break}}function G(a,l){var c=kt(l);if(!a&&I===ye){for(a=me(c),a.xb=[c];U(ye);)a.xb.push(kt(l));return T(a,"SequenceExpression")}return c}function kt(a){var l=Ct(Et(),-1,a);if(U(Mn)){var c=me(l);c.test=l,c.da=G(!0),V(Le),c.alternate=G(!0,a),l=T(c,"ConditionalExpression")}return I.Cb?(c=me(l),c.operator=te,c.left=l,w(),c.right=kt(a),et(l),T(c,"AssignmentExpression")):l}function Ct(a,l,c){var d=I.L;if(d!==null&&(!c||I!==rt)&&d>l){var j=me(a);return j.left=a,j.operator=te,a=I,w(),j.right=Ct(Et(),d,c),d=T(j,a===_n||a===Wn?"LogicalExpression":"BinaryExpression"),Ct(d,l,c)}return a}function Et(){if(I.prefix){var a=_(),l=I.$b;return a.operator=te,Ue=a.prefix=!0,w(),a.K=Et(),l?et(a.K):Z&&a.operator==="delete"&&a.K.type==="Identifier"&&r(a.start,"Deleting local variable in strict mode"),T(a,l?"UpdateExpression":"UnaryExpression")}for(l=Be(tt());I.cc&&!Qe();)a=me(l),a.operator=te,a.prefix=!1,a.K=l,et(l),w(),l=T(a,"UpdateExpression");return l}function Be(a,l){if(U(Un)){var c=me(a);return c.object=a,c.Wa=ae(!0),c.bb=!1,Be(T(c,"MemberExpression"),l)}return U(Lt)?(c=me(a),c.object=a,c.Wa=G(),c.bb=!0,V(_t),Be(T(c,"MemberExpression"),l)):!l&&U(le)?(c=me(a),c.callee=a,c.arguments=jt(re,!1),Be(T(c,"CallExpression"),l)):a}function tt(){switch(I){case Pn:var a=_();return w(),T(a,"ThisExpression");case Ce:return ae();case Ve:case nt:case yn:return a=_(),a.value=te,a.raw=y.slice(L,ke),w(),T(a,"Literal");case Nn:case Fn:case Bn:return a=_(),a.value=I.$a,a.raw=I.l,w(),T(a,"Literal");case le:a=At;var l=L;w();var c=G();return c.start=l,c.end=ke,A.C&&(c.X.start=a,c.X.end=Ot),A.Xa&&(c.j=[l,ke]),V(re),c;case Lt:return a=_(),w(),a.elements=jt(_t,!0,!0),T(a,"ArrayExpression");case De:for(a=_(),l=!0,c=!1,a.h=[],w();!U(Ee);){if(l)l=!1;else if(V(ye),A.sb&&U(Ee))break;var d={key:I===Ve||I===nt?tt():ae(!0)},j=!1;if(U(Le)){d.value=G(!0);var W=d.kind="init"}else d.key.type!=="Identifier"||d.key.name!=="get"&&d.key.name!=="set"?ie():(j=c=!0,W=d.kind=d.key.name,d.key=I===Ve||I===nt?tt():ae(!0),I!==le&&ie(),d.value=It(_(),!1));if(d.key.type==="Identifier"&&(Z||c))for(var Y=0;Y<a.h.length;++Y){var je=a.h[Y];if(je.key.name===d.key.name){var $t=W===je.kind||j&&je.kind==="init"||W==="init"&&(je.kind==="get"||je.kind==="set");$t&&!Z&&W==="init"&&je.kind==="init"&&($t=!1),$t&&r(d.key.start,"Redefinition of property")}}a.h.push(d)}return T(a,"ObjectExpression");case Ut:return a=_(),w(),It(a,!1);case Rn:return a=_(),w(),a.callee=Be(tt(),!0),a.arguments=U(le)?jt(re,!1):Qr,T(a,"NewExpression")}ie()}function It(a,l){I===Ce?a.id=ae():l?ie():a.id=null,a.oa=[];var c=!0;for(V(le);!U(re);)c?c=!1:V(ye),a.oa.push(ae());c=Me;var d=D;if(Me=!0,D=[],a.body=Fe(!0),Me=c,D=d,Z||a.body.body.length&&St(a.body.body[0])){for(c=a.id?-1:0;c<a.oa.length;++c)if(d=0>c?a.id:a.oa[c],($n(d.name)||ot(d.name))&&r(d.start,"Defining '"+d.name+"' in strict mode"),0<=c)for(var j=0;j<c;++j)d.name===a.oa[j].name&&r(d.start,"Argument name clash in strict mode")}return T(a,l?"FunctionDeclaration":"FunctionExpression")}function jt(a,l,c){for(var d=[],j=!0;!U(a);){if(j)j=!1;else if(V(ye),l&&A.sb&&U(a))break;d.push(c&&I===ye?null:G(!0))}return d}function ae(a){var l=_();return a&&A.yb==="everywhere"&&(a=!1),I===Ce?(!a&&(A.yb&&uo(te)||Z&&$n(te))&&y.slice(L,ke).indexOf("\\")===-1&&r(L,"The keyword '"+te+"' is reserved"),l.name=te):a&&I.l?l.name=I.l:ie(),Ue=!1,w(),T(l,"Identifier")}e.version="0.5.0";var A,y="",we,Tt;e.parse=function(a,l){y=String(a),we=y.length,A=l||{};for(var c in gn)Object.prototype.hasOwnProperty.call(A,c)||(A[c]=gn[c]);for(Tt=A.sourceFile,xe=1,f=se=0,Ue=!0,p(),c=A.dc,Rt=ge=f,A.C&&(Pt=new i),Me=Z=!1,D=[],C(),a=c||_(),l=!0,c||(a.body=[]);I!==Nt;)c=ne(),a.body.push(c),l&&St(c)&&X(!0),l=!1;return T(a,"Program")};var gn={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},f=0,L=0,ke=0,At,Ot,I,te,Ue,xe,se,Rt=0,ge=0,Pt,Me,D,Z,Qr=[],Ve={type:"num"},yn={type:"regexp"},nt={type:"string"},Ce={type:"name"},Nt={type:"eof"},Ft={l:"break"},Bt={l:"case",m:!0},vn={l:"catch"},bn={l:"continue"},xn={l:"debugger"},Sn={l:"default"},wn={l:"do",W:!0},kn={l:"else",m:!0},Cn={l:"finally"},En={l:"for",W:!0},Ut={l:"function"},In={l:"if"},jn={l:"return",m:!0},Mt={l:"switch"},Tn={l:"throw",m:!0},An={l:"try"},Vt={l:"var"},Dt={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},Bn={l:"false",$a:!1},rt={l:"in",L:7,m:!0},eo={break:Ft,case:Bt,catch:vn,continue:bn,debugger:xn,default:Sn,do:wn,else:kn,finally:Cn,for:En,function:Ut,if:In,return:jn,switch:Mt,throw:Tn,try:An,var:Vt,while:Dt,with:On,null:Nn,true:Fn,false:Bn,new:Rn,in:rt,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}},Lt={type:"[",m:!0},_t={type:"]"},De={type:"{",m:!0},Ee={type:"}"},le={type:"(",m:!0},re={type:")"},ye={type:",",m:!0},ce={type:";",m:!0},Le={type:":",m:!0},Un={type:"."},Mn={type:"?",m:!0},Vn={L:10,m:!0},Dn={Cb:!0,m:!0},Se={Cb:!0,m:!0},to={cc:!0,prefix:!0,$b:!0},Ln={prefix:!0,m:!0},_n={L:1,m:!0},Wn={L:2,m:!0},no={L:3,m:!0},ro={L:4,m:!0},oo={L:5,m:!0},io={L:6,m:!0},ao={L:7,m:!0},so={L:8,m:!0},lo={L:9,prefix:!0,m:!0},co={L:10,m:!0},uo=o("class enum extends super const export import"),$n=o("implements interface let package private protected public static yield"),ot=o("eval arguments"),fo=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"),po=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Hn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),ho=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),it=/[\n\r\u2028\u2029]/,at=/\r\n|[\n\r\u2028\u2029]/g,Ie,Wt={kind:"loop"},mo={kind:"switch"}},Kt=Kt=typeof globalThis>"u"?void 0:globalThis;jo(Kt.j||(Kt.j={}));function h(e,t){typeof e=="string"&&(e=Oe(e,"code"));var n=e.constructor;this.ya=function(){return new n({options:{}})};var r=this.ya(),o;for(o in e)r[o]=o==="body"?e[o].slice():e[o];this.ra=r,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var i,s;for(s in this)typeof this[s]=="function"&&(i=s.match(e))&&(this.rb[i[1]]=this[s].bind(this));this.N=Xt(this,this.ra,null),this.Na=this.N.object,this.ra=Oe(this.ba.join(`
4
+ `),"polyfills"),this.ba=void 0,mt(this.ra),i=new x(this.ra,this.N),i.done=!1,this.o=[i],this.Eb(),this.value=void 0,this.ra=r,i=new x(this.ra,this.N),i.done=!1,this.o.length=0,this.o[0]=i}var Kn={C:!0,kc:5},qt={configurable:!0,enumerable:!0,writable:!1},v={configurable:!0,enumerable:!1,writable:!0},q={configurable:!0,enumerable:!1,writable:!1},_e={configurable:!1,enumerable:!1,writable:!1},Gn={configurable:!1,enumerable:!0,writable:!0},gr={STEP_ERROR:!0},Pe={SCOPE_REFERENCE:!0},Je={VALUE_IN_DESCRIPTOR:!0},Ae={REGEXP_TIMEOUT:!0},Xn=[],fe=null,Ge=null,ve=typeof globalThis>"u"?void 0:globalThis,To=["onmessage = function(e) {","var result;","var data = e.data;","switch (data[0]) {","case 'split':","result = data[1].split(data[2], data[3]);","break;","case 'match':","result = data[1].match(data[2]);","break;","case 'search':","result = data[1].search(data[2]);","break;","case 'replace':","result = data[1].replace(data[2], data[3]);","break;","case 'exec':","var regexp = data[1];","regexp.lastIndex = data[2];","result = [regexp.exec(data[3]), data[1].lastIndex];","break;","default:","throw Error('Unknown RegExp operation: ' + data[0]);","}","postMessage(result);","close();","};"];function Zt(e){var t=e>>>0;return t===Number(e)?t:NaN}function Xe(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function mt(e,t,n){t?e.start=t:delete e.start,n?e.end=n:delete e.end;for(var r in e)if(r!=="loc"&&e.hasOwnProperty(r)){var o=e[r];o&&typeof o=="object"&&mt(o,t,n)}}h.prototype.REGEXP_MODE=2;h.prototype.REGEXP_THREAD_TIMEOUT=1e3;h.prototype.POLYFILL_TIMEOUT=1e3;F=h.prototype;F.P=!1;F.Ka=!1;F.Kb=0;F.ic=0;function Oe(e,t){var n={},r;for(r in Kn)n[r]=Kn[r];return n.sourceFile=t,ve.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=Oe(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");Ye(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};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&&br(this,n,n.interval);var r=new x(n.node,n.scope);n.zb&&(r.ia=2,r.B=this.Na,r.U=n.zb,r.Qa=!0,r.F=n.Lb),n=r}if(!n)break}r=n.node;var o=Ge;Ge=this;try{var i=this.rb[r.type](e,n,r)}catch(s){if(s!==gr)throw this.value!==s&&(this.value=void 0),s}finally{Ge=o}if(i&&e.push(i),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||r.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!r.end&&t>Date.now());return!0};F.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Ao(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,qt),e.g(t,"this",t,_e),e.g(t,"self",t),e.M=new N(null),e.Z=new N(e.M),Oo(e,t),Ro(e,t),t.xa=e.M,e.g(t,"constructor",e.v,v),Po(e,t),No(e,t),Fo(e,t),Bo(e,t),Uo(e,t),Mo(e,t),Vo(e,t),Do(e,t),Lo(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,v),e.g(t,"parseInt",e.i(parseInt,!1),v),e.g(t,"parseFloat",e.i(parseFloat,!1),v),e.g(t,"isNaN",e.i(isNaN,!1),v),e.g(t,"isFinite",e.i(isFinite,!1),v);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<r.length;o++)n=function(i){return function(s){try{return i(s)}catch(u){k(e,e.Gb,u.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),v);n=function(i){return Jn(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),v),n=function(i){return Jn(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),v),n=function(i){Yn(e,i)},e.g(t,"clearTimeout",e.i(n,!1),v),n=function(i){Yn(e,i)},e.g(t,"clearInterval",e.i(n,!1),v),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 Oo(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){var i=arguments.length?String(arguments[arguments.length-1]):"",s=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(s){s=s.split(/\s*,\s*/);for(var u=0;u<s.length;u++){var p=s[u];n.test(p)||k(e,e.T,"Invalid function argument: "+p)}s=s.join(", ")}try{var S=Oe("(function("+s+") {"+i+"})","function"+e.Wb++)}catch(C){k(e,e.T,"Invalid code: "+C.message)}return S.body.length!==1&&k(e,e.T,"Invalid code in function body"),tn(e,S.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,v),e.g(e.O,"prototype",e.Z,v),e.g(e.Z,"constructor",e.O,v),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,q),e.Z.H="Function",r=function(o,i){var s=e.o[e.o.length-1];s.U=this,s.B=o,s.F=[],i!=null&&(i instanceof N?s.F=yr(e,i):k(e,e.j,"CreateListFromArrayLike called on non-object")),s.eb=!1},$(e,e.O,"apply",r),r=function(o){var i=e.o[e.o.length-1];i.U=this,i.B=o,i.F=[];for(var s=1;s<arguments.length;s++)i.F.push(arguments[s]);i.eb=!1},$(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),v),r=function(){return this.valueOf()},$(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),v)}function Ro(e,t){function n(o){o!=null||k(e,e.j,"Cannot convert '"+o+"' to object")}var r=function(o){if(o==null)return pe(e)?this:e.s(e.M);if(!(o instanceof N)){var i=e.s(de(e,o));return i.data=o,i}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,v),e.g(e.M,"constructor",e.v,v),e.g(t,"Object",e.v,v),r=function(o){return n(o),ue(e,Object.getOwnPropertyNames(o instanceof N?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),v),r=function(o){return n(o),o instanceof N&&(o=o.h),ue(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),v),r=function(o){return o===null?e.s(null):(o instanceof N||k(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),v),e.ba.push("(function() {","var create_ = Object.create;","Object.create = function create(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();",""),r=function(o,i,s){return i=String(i),o instanceof N||k(e,e.j,"Object.defineProperty called on non-object: "+o),s instanceof N||k(e,e.j,"Property description must be an object"),!o.preventExtensions||i in o.h||k(e,e.j,"Can't define property '"+i+"', object is not extensible"),e.g(o,i,Je,s.h),o},e.g(e.v,"defineProperty",e.i(r,!1),v),e.ba.push("(function() {","var defineProperty_ = Object.defineProperty;","Object.defineProperty = function defineProperty(obj, prop, d1) {","var d2 = {};","if ('configurable' in d1) d2.configurable = d1.configurable;","if ('enumerable' in d1) d2.enumerable = d1.enumerable;","if ('writable' in d1) d2.writable = d1.writable;","if ('value' in d1) d2.value = d1.value;","if ('get' in d1) d2.get = d1.get;","if ('set' in d1) d2.set = d1.set;","return defineProperty_(obj, prop, d2);","};","})();","Object.defineProperty(Object, 'defineProperties',","{configurable: true, writable: true, value:","function defineProperties(obj, props) {","var keys = Object.keys(props);","for (var i = 0; i < keys.length; i++) {","Object.defineProperty(obj, keys[i], props[keys[i]]);","}","return obj;","}","});",""),r=function(o,i){if(o instanceof N||k(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),i=String(i),i in o.h){var s=Object.getOwnPropertyDescriptor(o.h,i),u=o.V[i];return o=o.Y[i],i=e.s(e.M),u||o?(e.g(i,"get",u),e.g(i,"set",o)):(e.g(i,"value",s.value),e.g(i,"writable",s.writable)),e.g(i,"configurable",s.configurable),e.g(i,"enumerable",s.enumerable),i}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),v),r=function(o){return n(o),de(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),v),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),v),r=function(o){return o instanceof N&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),v),$(e,e.v,"toString",N.prototype.toString),$(e,e.v,"toLocaleString",N.prototype.toString),$(e,e.v,"valueOf",N.prototype.valueOf),r=function(o){return n(this),this instanceof N?String(o)in this.h:this.hasOwnProperty(o)},$(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof N?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},$(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=de(e,o),!o)return!1;if(o===this)return!0}},$(e,e.v,"isPrototypeOf",r)}function Po(e,t){var n=function(r){var o=pe(e)?this:Re(e),i=arguments[0];if(arguments.length===1&&typeof i=="number")isNaN(Zt(i))&&k(e,e.ob,"Invalid array length: "+i),o.h.length=i;else{for(i=0;i<arguments.length;i++)o.h[i]=arguments[i];o.h.length=i}return o};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,v),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),v),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 No(e,t){var n=function(r){return r=arguments.length?ve.String(r):"",pe(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,v),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),v),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,i){o=e.R(o),i=e.R(i);try{return String(this).localeCompare(r,o,i)}catch(s){k(e,e.D,"localeCompare: "+s.message)}},$(e,e.J,"localeCompare",n),n=function(r,o,i){var s=String(this);if(o=o?Number(o):void 0,H(e,r,e.I)&&(r=r.data,$e(e,r,i),e.REGEXP_MODE===2)){if(fe)r=We(e,"string.split(separator, limit)",{string:s,separator:r,limit:o},r,i),r!==Ae&&i(ue(e,r));else{var u=e.ha(),p=He(e,r,u,i);u.onmessage=function(S){clearTimeout(p),i(ue(e,S.data))},u.postMessage(["split",s,r,o])}return}r=s.split(r,o),i(ue(e,r))},Ke(e,e.J,"split",n),n=function(r,o){var i=String(this);if(r=H(e,r,e.I)?r.data:new RegExp(r),$e(e,r,o),e.REGEXP_MODE===2)if(fe)r=We(e,"string.match(regexp)",{string:i,regexp:r},r,o),r!==Ae&&o(r&&ue(e,r));else{var s=e.ha(),u=He(e,r,s,o);s.onmessage=function(p){clearTimeout(u),o(p.data&&ue(e,p.data))},s.postMessage(["match",i,r])}else r=i.match(r),o(r&&ue(e,r))},Ke(e,e.J,"match",n),n=function(r,o){var i=String(this);if(H(e,r,e.I)?r=r.data:r=new RegExp(r),$e(e,r,o),e.REGEXP_MODE===2)if(fe)r=We(e,"string.search(regexp)",{string:i,regexp:r},r,o),r!==Ae&&o(r);else{var s=e.ha(),u=He(e,r,s,o);s.onmessage=function(p){clearTimeout(u),o(p.data)},s.postMessage(["search",i,r])}else o(i.search(r))},Ke(e,e.J,"search",n),n=function(r,o,i){var s=String(this);if(o=String(o),H(e,r,e.I)&&(r=r.data,$e(e,r,i),e.REGEXP_MODE===2)){if(fe)r=We(e,"string.replace(substr, newSubstr)",{string:s,substr:r,newSubstr:o},r,i),r!==Ae&&i(r);else{var u=e.ha(),p=He(e,r,u,i);u.onmessage=function(S){clearTimeout(p),i(S.data)},u.postMessage(["replace",s,r,o])}return}i(s.replace(r,o))},Ke(e,e.J,"replace",n),e.ba.push("(function() {","var replace_ = String.prototype.replace;","String.prototype.replace = function replace(substr, newSubstr) {","if (typeof newSubstr !== 'function') {","return replace_.call(this, substr, newSubstr);","}","var str = this;","if (substr instanceof RegExp) {","var subs = [];","var m = substr.exec(str);","while (m) {","m.push(m.index, str);","var inject = newSubstr.apply(null, m);","subs.push([m.index, m[0].length, inject]);","m = substr.global ? substr.exec(str) : null;","}","for (var i = subs.length - 1; i >= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","")}function Fo(e,t){e.mb=e.i(function(n){return n=ve.Boolean(n),pe(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,v)}function Bo(e,t){var n=function(r){return r=arguments.length?ve.Number(r):0,pe(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,v),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){k(e,e.D,o.message)}},$(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){k(e,e.D,o.message)}},$(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){k(e,e.D,o.message)}},$(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){k(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(i){k(e,e.D,"toLocaleString: "+i.message)}},$(e,e.aa,"toLocaleString",n)}function Uo(e,t){var n=function(o,i){if(!pe(e))return ve.Date();var s=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(ve.Date,s)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,v),e.g(e.$,"now",e.i(Date.now,!1),v),e.g(e.$,"parse",e.i(Date.parse,!1),v),e.g(e.$,"UTC",e.i(Date.UTC,!1),v),t="getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");for(var r=0;r<t.length;r++)n=function(o){return function(i){var s=this.data;s instanceof Date||k(e,e.j,o+" not called on a Date");for(var u=[],p=0;p<arguments.length;p++)u[p]=e.R(arguments[p]);return s[o].apply(s,u)}}(t[r]),$(e,e.$,t[r],n)}function Mo(e,t){var n=function(r,o){if(pe(e))var i=this;else{if(o===void 0&&H(e,r,e.I))return r;i=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||k(e,e.T,"Invalid regexp flag: "+o);try{var s=new ve.RegExp(r,o)}catch(u){k(e,e.T,u.message)}return Qt(e,i,s),i};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,v),e.g(e.I.h.prototype,"global",void 0,q),e.g(e.I.h.prototype,"ignoreCase",void 0,q),e.g(e.I.h.prototype,"multiline",void 0,q),e.g(e.I.h.prototype,"source","(?:)",q),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),n=function(r,o){function i(C){if(C){var m=ue(e,C);return e.g(m,"index",C.index),e.g(m,"input",C.input),m}return null}var s=this.data;if(r=String(r),s.lastIndex=Number(e.G(this,"lastIndex")),$e(e,s,o),e.REGEXP_MODE===2)if(fe)r=We(e,"regexp.exec(string)",{string:r,regexp:s},s,o),r!==Ae&&(e.g(this,"lastIndex",s.lastIndex),o(i(r)));else{var u=e.ha(),p=He(e,s,u,o),S=this;u.onmessage=function(C){clearTimeout(p),e.g(S,"lastIndex",C.data[1]),o(i(C.data[0]))},u.postMessage(["exec",s,s.lastIndex,r])}else r=s.exec(r),e.g(this,"lastIndex",s.lastIndex),o(i(r))},Ke(e,e.I,"exec",n)}function Vo(e,t){function n(r){var o=e.i(function(i){var s=pe(e)?this:e.Aa(o);return Gt(e,s,i),s},!0);return e.g(o,"prototype",e.Aa(e.D),v),e.g(o.h.prototype,"name",r,v),e.g(t,r,o,v),o}e.D=e.i(function(r){var o=pe(e)?this:e.Aa(e.D);return Gt(e,o,r),o},!0),e.g(t,"Error",e.D,v),e.g(e.D.h.prototype,"message","",v),e.g(e.D.h.prototype,"name","Error",v),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function Do(e,t){var n=e.s(e.M);e.g(t,"Math",n,v);var r="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<r.length;t++)e.g(n,r[t],Math[r[t]],q);for(r="abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "),t=0;t<r.length;t++)e.g(n,r[t],e.i(Math[r[t]],!1),v)}function Lo(e,t){var n=e.s(e.M);e.g(t,"JSON",n,v),t=function(r){try{var o=JSON.parse(String(r))}catch(i){k(e,e.T,i.message)}return e.Ia(o)},e.g(n,"parse",e.i(t,!1)),t=function(r,o,i){o&&o.H==="Function"?k(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=yr(e,o),o=o.filter(function(u){return typeof u=="string"||typeof u=="number"})):o=null,typeof i!="string"&&typeof i!="number"&&(i=void 0),r=e.R(r);try{var s=JSON.stringify(r,o,i)}catch(u){k(e,e.j,u.message)}return s},e.g(n,"stringify",e.i(t,!1))}function H(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=de(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function Qt(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,v),e.g(t,"source",n.source,q),e.g(t,"global",n.global,q),e.g(t,"ignoreCase",n.ignoreCase,q),e.g(t,"multiline",n.multiline,q)}function Gt(e,t,n){n&&e.g(t,"message",String(n),v),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],i=o.node;i.type==="CallExpression"&&(o=o.U)&&n.length&&(n[n.length-1].Ob=e.G(o,"name")),!i.X||n.length&&i.type!=="CallExpression"||n.push({Nb:i.X})}for(r=String(e.G(t,"name")),i=String(e.G(t,"message")),i=r+": "+i+`
5
5
  `,r=0;r<n.length;r++){var s=n[r].Nb;o=n[r].Ob,s=s.source+":"+s.start.line+":"+s.start.ab,i=o?i+(" at "+o+" ("+s+`)
6
6
  `):i+(" at "+s+`
7
- `)}e.g(t,"stack",i.trim(),v)}F.ha=function(){var e=this.ha.Mb;return e||(e=new Blob([jo.join(`
8
- `)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function We(e,t,n,r,o){var i={timeout:e.REGEXP_THREAD_TIMEOUT};try{return fe.runInNewContext(t,n,i)}catch{o(null),S(e,e.D,"RegExp Timeout: "+r)}return Ae}function $e(e,t,n){if(e.REGEXP_MODE===0)var r=!1;else if(e.REGEXP_MODE===1)r=!0;else if(fe)r=!0;else if(typeof Worker=="function"&&typeof URL=="function")r=!0;else if(typeof require=="function"){try{fe=require("vm")}catch{}r=!!fe}else r=!1;r||(n(null),S(e,e.D,"Regular expressions not supported: "+t))}function He(e,t,n,r){return setTimeout(function(){n.terminate(),r(null);try{S(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 P(e),H(this,e,this.D)&&(e.H="Error"),e};function Re(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function en(e,t,n){var r=e.s(e.Z);return n?(n=e.s(e.M),e.g(r,"prototype",n,v),e.g(n,"constructor",r,v)):r.Ab=!0,e.g(r,"length",t,z),r.H="Function",r}function tn(e,t,n,r){var o=en(e,t.oa.length,!0);return o.Va=n,o.node=t,e.g(o,"name",t.id?String(t.id.name):r||"",z),o}F.i=function(e,t){return t=en(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,z),t};F.ub=function(e){var t=en(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,z),t};F.Ia=function(e){if(e instanceof P)throw Error("Object is already pseudo");if(e==null||e===!0||e===!1||typeof e=="string"||typeof e=="number")return e;if(e instanceof RegExp){var t=this.s(this.Ma);return Qt(this,t,e),t}if(e instanceof Date)return t=this.s(this.nb),t.data=new Date(e.valueOf()),t;if(typeof e=="function"){var n=this;return t=Object.getOwnPropertyDescriptor(e,"prototype"),this.i(function(){var o=Array.prototype.slice.call(arguments).map(function(i){return n.R(i)});return o=e.apply(n,o),n.Ia(o)},!!t)}if(Array.isArray(e)){t=Re(this);for(var r=0;r<e.length;r++)r in e&&this.g(t,r,this.Ia(e[r]));return t}t=this.s(this.M);for(r in e)this.g(t,r,this.Ia(e[r]));return t};F.R=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof P))throw Error("Object is not pseudo");if(H(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(H(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),H(this,e,this.qa)){n=[],t.Sa.push(n);for(var r=this.G(e,"length"),o=0;o<r;o++)gt(this,e,o)&&(n[o]=this.R(this.G(e,o),t))}else for(r in n={},t.Sa.push(n),e.h)o=this.R(e.h[r],t),Object.defineProperty(n,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),n};function ue(e,t){for(var n=Re(e),r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++)e.g(n,r[o],t[r[o]]);return n}function yr(e,t){var n=[],r;for(r in t.h)n[r]=e.G(t,r);return n.length=Zt(e.G(t,"length"))||0,n}function de(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||S(this,this.j,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof P))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(H(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&H(this,e,this.J)){var n=Xe(t);if(!isNaN(n)&&n<String(e).length)return String(e)[n]}do if(e.h&&t in e.h)return(n=e.V[t])?(this.P=!0,n):e.h[t];while(e=de(this,e))};function gt(e,t,n){if(!(t instanceof P))throw TypeError("Primitive data type has no properties");if(n=String(n),n==="length"&&H(e,t,e.J))return!0;if(H(e,t,e.J)){var r=Xe(n);if(!isNaN(r)&&r<String(t).length)return!0}do if(t.h&&n in t.h)return!0;while(t=de(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||S(this,this.j,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof P))throw TypeError("Expecting native value or pseudo object");r&&("get"in r||"set"in r)&&("value"in r||"writable"in r)&&S(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var o=!this.o||nn(this).S;if(e instanceof P){if(H(this,e,this.J)){var i=Xe(t);if(t==="length"||!isNaN(i)&&i<String(e).length){o&&S(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(i=e.h.length,t==="length"){if(r){if(!("value"in r))return;n=r.value}if(n=Zt(n),isNaN(n)&&S(this,this.ob,"Invalid array length"),n<i)for(s in e.h){var s=Xe(s);!isNaN(s)&&n<=s&&delete e.h[s]}}else isNaN(s=Xe(t))||(e.h.length=Math.max(i,s+1));if(!e.preventExtensions||t in e.h)if(r){o={},"get"in r&&r.get&&(e.V[t]=r.get,o.get=this.g.ac),"set"in r&&r.set&&(e.Y[t]=r.set,o.set=this.g.bc),"configurable"in r&&(o.configurable=r.configurable),"enumerable"in r&&(o.enumerable=r.enumerable),"writable"in r&&(o.writable=r.writable,delete e.V[t],delete e.Y[t]),"value"in r?(o.value=r.value,delete e.V[t],delete e.Y[t]):n!==Je&&(o.value=n,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,o)}catch{S(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===Je)throw ReferenceError("Value not specified");for(r=e;!(t in r.h);)if(r=de(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&&S(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=n}catch{o&&S(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else o&&S(this,this.j,"Can't add property '"+t+"', object is not extensible")}else o&&S(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 W(e,t,n,r){e.g(t.h.prototype,n,e.i(r,!1),v)}function Ke(e,t,n,r){e.g(t.h.prototype,n,e.ub(r),v)}function nn(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function Jt(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 xr(n,r,o),n||To(e,r.object),Ye(e,t,r),r}function rn(e,t,n){if(!t)throw Error("parentScope required");return e=n||e.s(null),new xr(t,t.S,e)}function on(e,t){for(var n=nn(e);n&&n!==e.N;){if(t in n.object.h)return n.object.h[t];n=n.Va}if(n===e.N&&gt(e,n.object,t))return e.G(n.object,t);n=e.o[e.o.length-1].node,n.type==="UnaryExpression"&&n.operator==="typeof"||S(e,e.pb,t+" is not defined")}function vr(e,t,n){for(var r=nn(e),o=r.S;r&&r!==e.N;){if(t in r.object.h){try{r.object.h[t]=n}catch{o&&S(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}r=r.Va}if(r===e.N&&(!o||gt(e,r.object,t)))return e.g(r.object,t,n);S(e,e.pb,t+" is not defined")}function Ye(e,t,n){if(t.jb)var r=t.jb;else{switch(r=Object.create(null),t.type){case"VariableDeclaration":for(var o=0;o<t.fa.length;o++)r[t.fa[o].id.name]=!0;break;case"FunctionDeclaration":r[t.id.name]=t;break;case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"Program":case"SwitchCase":case"SwitchStatement":case"TryStatement":case"WithStatement":case"WhileStatement":var i=t.constructor,s;for(s in t)if(s!=="loc"){var u=t[s];if(u&&typeof u=="object"){if(Array.isArray(u)){for(o=0;o<u.length;o++)if(u[o]&&u[o].constructor===i){var p=Ye(e,u[o],n);for(s in p)r[s]=p[s]}}else if(u.constructor===i)for(s in p=Ye(e,u,n),p)r[s]=p[s]}}}t.jb=r}for(s in r)r[s]===!0?e.g(n.object,s,void 0,Gn):e.g(n.object,s,tn(e,r[s],n),Gn);return r}function pe(e){return e.o[e.o.length-1].isConstructor}function an(e,t){return t[0]===Pe?on(e,t[1]):e.G(t[0],t[1])}function sn(e,t,n){return t[0]===Pe?vr(e,t[1],n):e.g(t[0],t[1],n)}function S(e,t,n){throw e.N?(n!==void 0&&t instanceof P&&(t=e.Aa(t),Xt(e,t,n)),ze(e,4,t),gr):n===void 0?t:n}function ze(e,t,n,r){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var o=e.o;e:for(;0<o.length;o.pop()){var i=o[o.length-1];switch(i.node.type){case"TryStatement":i.ea={type:t,value:n,label:r};return;case"CallExpression":case"NewExpression":if(t===3){i.value=n;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":i.done=!0;break e}if(t===1){if(r?i.labels&&i.labels.indexOf(r)!==-1:i.W||i.Zb){o.pop();return}}else if(t===2&&(r?i.labels&&i.labels.indexOf(r)!==-1:i.W))return}throw H(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 Y(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return Y(e,t.left)+" "+t.operator+" "+Y(e,t.right);case"CallExpression":return Y(e,t.callee)+"(...)";case"ConditionalExpression":return Y(e,t.test)+" ? "+Y(e,t.da)+" : "+Y(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var n=Y(e,t.object);return e=Y(e,t.Wa),t.bb?n+"["+e+"]":n+"."+e;case"NewExpression":return"new "+Y(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+Y(e,t.K);case"UpdateExpression":return n=Y(e,t.K),t.prefix?t.operator+n:n+t.operator}return"???"}function Jn(e,t,n){var r=e.o[e.o.length-1],o=Array.from(n),i=o.shift();n=Math.max(Number(o.shift()||0),0);var s=e.ya();if(i instanceof P&&i.H==="Function"){var u=i;s.type="CallExpression",r=r.scope}else{try{var p=Oe(String(i),"taskCode"+e.ic++)}catch(x){S(e,e.T,"Invalid code: "+x.message)}s.type="EvalProgram_",s.body=p.body,r=r.node.arguments[0],mt(s,r?r.start:void 0,r?r.end:void 0),r=e.N,o.length=0}return t=new Do(u,o,r,s,t?n:-1),br(e,t,n),t.Db}function br(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 qe(e,t,n){if(!e.P)throw Error("Unexpected call to createGetter");e.P=!1,n=Array.isArray(n)?n[0]:n;var r=e.ya();return r.type="CallExpression",e=new b(r,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[],e}function ln(e,t,n,r){if(!e.Ka)throw Error("Unexpected call to createSetter");e.Ka=!1,n=Array.isArray(n)?n[0]:e.Na;var o=e.ya();return o.type="CallExpression",e=new b(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 Ht(e,t){return t==null?e.Na:t instanceof P?t:(e=e.s(de(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 b(e,t){this.node=e,this.scope=t}function xr(e,t,n){this.Va=e,this.S=t,this.object=n}function P(e){this.V=Object.create(null),this.Y=Object.create(null),this.h=Object.create(null),this.xa=e}F=P.prototype;F.xa=null;F.H="Object";F.data=null;F.toString=function(){if(!Ge)return"[object Interpreter.Object]";if(!(this instanceof P))return String(this);if(this.H==="Array"){var e=Xn;e.push(this);try{var t=[],n=this.h.length,r=!1;1024<n&&(n=1e3,r=!0);for(var o=0;o<n;o++){var i=this.h[o];t[o]=i instanceof P&&e.indexOf(i)!==-1?"...":i}r&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=Xn,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!Ge||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function Do(e,t,n,r,o){this.zb=e,this.Lb=t,this.scope=n,this.node=r,this.interval=o,this.Db=++_o,this.time=0}var _o=0;h.prototype.stepArrayExpression=function(e,t,n){n=n.elements;var r=t.A||0;for(t.Oa?(this.g(t.Oa,r,t.value),r++):(t.Oa=Re(this),t.Oa.h.length=n.length);r<n.length;){if(n[r])return t.A=r,new b(n[r],t.scope);r++}e.pop(),e[e.length-1].value=t.Oa};h.prototype.stepAssignmentExpression=function(e,t,n){if(!t.ja)return t.ja=!0,t=new b(n.left,t.scope),t.sa=!0,t;if(!t.Da)return t.Fa||(t.Fa=t.value),t.Ba&&(t.ma=t.value),!t.Ba&&n.operator!=="="&&(e=an(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,qe(this,e,t.Fa)):(t.Da=!0,n.operator==="="&&n.left.type==="Identifier"&&(t.Pa=n.left.name),new b(n.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var r=t.ma,o=t.value;switch(n.operator){case"=":r=o;break;case"+=":r+=o;break;case"-=":r-=o;break;case"*=":r*=o;break;case"/=":r/=o;break;case"%=":r%=o;break;case"<<=":r<<=o;break;case">>=":r>>=o;break;case">>>=":r>>>=o;break;case"&=":r&=o;break;case"^=":r^=o;break;case"|=":r|=o;break;default:throw SyntaxError("Unknown assignment expression: "+n.operator)}if(n=sn(this,t.Fa,r))return t.ta=!0,t.ib=r,ln(this,n,t.Fa,r);e.pop(),e[e.length-1].value=r}};h.prototype.stepBinaryExpression=function(e,t,n){if(!t.ja)return t.ja=!0,new b(n.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new b(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 P||S(this,this.j,"'in' expects an object, not '"+t+"'"),n=gt(this,t,r);break;case"instanceof":H(this,t,this.O)||S(this,this.j,"'instanceof' expects an object, not '"+t+"'"),n=r instanceof P?H(this,r,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+n.operator)}e[e.length-1].value=n};h.prototype.stepBlockStatement=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new b(n,t.scope);e.pop()};h.prototype.stepBreakStatement=function(e,t,n){ze(this,1,void 0,n.label&&n.label.name)};h.prototype.Hb=0;h.prototype.stepCallExpression=function(e,t,n){if(!t.ia){t.ia=1;var r=new b(n.callee,t.scope);return r.sa=!0,r}if(t.ia===1){t.ia=2;var o=t.value;if(Array.isArray(o)){if(t.U=an(this,o),o[0]===Pe?t.Pb=o[1]==="eval":t.B=o[0],o=t.U,this.P)return t.ia=1,qe(this,o,t.value)}else t.U=o;t.F=[],t.A=0}if(o=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),n.arguments[t.A])return new b(n.arguments[t.A++],t.scope);if(n.type==="NewExpression"){if(o instanceof P&&!o.Ab||S(this,this.j,Y(this,n.callee)+" is not a constructor"),o===this.qa)t.B=Re(this);else{var i=o.h.prototype;(typeof i!="object"||i===null)&&(i=this.M),t.B=this.s(i)}t.isConstructor=!0}t.Qa=!0}if(t.eb)e.pop(),e[e.length-1].value=t.isConstructor&&typeof t.value!="object"?t.B:t.value;else{if(t.eb=!0,o instanceof P||S(this,this.j,Y(this,n.callee)+" is not a function"),e=o.node){for(n=Jt(this,e.body,o.Va),r=Re(this),o=0;o<t.F.length;o++)this.g(r,o,t.F[o]);for(this.g(n.object,"arguments",r),o=0;o<e.oa.length;o++)this.g(n.object,e.oa[o].name,t.F.length>o?t.F[o]:void 0);return n.S||(t.B=Ht(this,t.B)),this.g(n.object,"this",t.B,qt),t.value=void 0,new b(e.body,n)}if(o.eval)if(o=t.F[0],typeof o!="string")t.value=o;else{try{r=Oe(String(o),"eval"+this.Hb++)}catch(u){S(this,this.T,"Invalid code: "+u.message)}return o=this.ya(),o.type="EvalProgram_",o.body=r.body,mt(o,n.start,n.end),n=t.Pb?t.scope:this.N,n.S?n=Jt(this,r,n):Ye(this,r,n),this.value=void 0,new b(o,n)}else if(o.Ta)t.scope.S||(t.B=Ht(this,t.B)),t.value=o.Ta.apply(t.B,t.F);else if(o.Za){var s=this;r=o.Za.length-1,r=t.F.concat(Array(r)).slice(0,r),r.push(function(u){t.value=u,s.za=!1}),this.za=!0,t.scope.S||(t.B=Ht(this,t.B)),o.Za.apply(t.B,r)}else S(this,this.j,Y(this,n.callee)+" is not callable")}};h.prototype.stepConditionalExpression=function(e,t,n){var r=t.na||0;if(r===0)return t.na=1,new b(n.test,t.scope);if(r===1){if(t.na=2,(r=!!t.value)&&n.da)return new b(n.da,t.scope);if(!r&&n.alternate)return new b(n.alternate,t.scope);this.value=void 0}e.pop(),n.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};h.prototype.stepContinueStatement=function(e,t,n){ze(this,2,void 0,n.label&&n.label.name)};h.prototype.stepDebuggerStatement=function(e){e.pop()};h.prototype.stepDoWhileStatement=function(e,t,n){if(n.type==="DoWhileStatement"&&t.ga===void 0&&(t.value=!0,t.ga=!0),!t.ga)return t.ga=!0,new b(n.test,t.scope);if(!t.value)e.pop();else if(n.body)return t.ga=!1,t.W=!0,new b(n.body,t.scope)};h.prototype.stepEmptyStatement=function(e){e.pop()};h.prototype.stepEvalProgram_=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new b(n,t.scope);e.pop(),e[e.length-1].value=this.value};h.prototype.stepExpressionStatement=function(e,t,n){if(!t.ka)return this.value=void 0,t.ka=!0,new b(n.la,t.scope);e.pop(),this.value=t.value};h.prototype.stepForInStatement=function(e,t,n){if(!t.Ub&&(t.Ub=!0,n.left.fa&&n.left.fa[0].ua))return t.scope.S&&S(this,this.T,"for-in loop variable declaration may not have an initializer"),new b(n.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new b(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 P)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=de(this,t.u),t.wa=null,t.u===null){e.pop();return}}if(!t.wb)if(t.wb=!0,e=n.left,e.type==="VariableDeclaration")t.pa=[Pe,e.fa[0].id.name];else return t.pa=null,t=new b(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,r=sn(this,t.pa,e)))return ln(this,r,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,n.body)return new b(n.body,t.scope)};h.prototype.stepForStatement=function(e,t,n){switch(t.na){default:if(t.na=1,n.ua)return new b(n.ua,t.scope);break;case 1:if(t.na=2,n.test)return new b(n.test,t.scope);break;case 2:if(t.na=3,n.test&&!t.value)e.pop();else return t.W=!0,new b(n.body,t.scope);break;case 3:if(t.na=1,n.update)return new b(n.update,t.scope)}};h.prototype.stepFunctionDeclaration=function(e){e.pop()};h.prototype.stepFunctionExpression=function(e,t,n){e.pop(),t=e[e.length-1],e=t.scope,n.id&&(e=rn(this,e)),t.value=tn(this,n,e,t.Pa),n.id&&this.g(e.object,n.id.name,t.value,qt)};h.prototype.stepIdentifier=function(e,t,n){if(e.pop(),t.sa)e[e.length-1].value=[Pe,n.name];else{if(t=on(this,n.name),this.P)return qe(this,t,this.Na);e[e.length-1].value=t}};h.prototype.stepIfStatement=h.prototype.stepConditionalExpression;h.prototype.stepLabeledStatement=function(e,t,n){return e.pop(),e=t.labels||[],e.push(n.label.name),t=new b(n.body,t.scope),t.labels=e,t};h.prototype.stepLiteral=function(e,t,n){e.pop(),t=n.value,t instanceof RegExp&&(n=this.s(this.Ma),Qt(this,n,t),t=n),e[e.length-1].value=t};h.prototype.stepLogicalExpression=function(e,t,n){if(n.operator!=="&&"&&n.operator!=="||")throw SyntaxError("Unknown logical operator: "+n.operator);if(!t.ja)return t.ja=!0,new b(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 b(n.right,t.scope)};h.prototype.stepMemberExpression=function(e,t,n){if(!t.Ca)return t.Ca=!0,new b(n.object,t.scope);if(n.bb)if(t.Vb)n=t.value;else return t.u=t.value,t.Vb=!0,new b(n.Wa,t.scope);else t.u=t.value,n=n.Wa.name;if(e.pop(),t.sa)e[e.length-1].value=[t.u,n];else{if(n=this.G(t.u,n),this.P)return qe(this,n,t.u);e[e.length-1].value=n}};h.prototype.stepNewExpression=h.prototype.stepCallExpression;h.prototype.stepObjectExpression=function(e,t,n){var r=t.A||0,o=n.h[r];if(t.u){var i=t.Pa;t.Ja[i]||(t.Ja[i]={}),t.Ja[i][o.kind]=t.value,t.A=++r,o=n.h[r]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(o){var s=o.key;if(s.type==="Identifier")i=s.name;else if(s.type==="Literal")i=s.value;else throw SyntaxError("Unknown object structure: "+s.type);return t.Pa=i,new b(o.value,t.scope)}for(s in t.Ja)n=t.Ja[s],"get"in n||"set"in n?this.g(t.u,s,Je,{configurable:!0,enumerable:!0,get:n.get,set:n.set}):this.g(t.u,s,n.init);e.pop(),e[e.length-1].value=t.u};h.prototype.stepProgram=function(e,t,n){if(e=n.body.shift())return t.done=!1,new b(e,t.scope);t.done=!0};h.prototype.stepReturnStatement=function(e,t,n){if(n.K&&!t.ka)return t.ka=!0,new b(n.K,t.scope);ze(this,3,t.value)};h.prototype.stepSequenceExpression=function(e,t,n){var r=t.A||0;if(n=n.xb[r])return t.A=r+1,new b(n,t.scope);e.pop(),e[e.length-1].value=t.value};h.prototype.stepSwitchStatement=function(e,t,n){if(!t.ga)return t.ga=1,new b(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 b(o.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var i=t.A||0;if(o.da[i])return t.Zb=!0,t.A=i+1,new b(o.da[i],t.scope)}t.Fb=!1,t.A=0,t.gb=r+1}else{e.pop();break}else t.Ha=!0,t.gb=t.cb;else t.cb=r,t.gb=r+1}};h.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=on(this,"this")};h.prototype.stepThrowStatement=function(e,t,n){if(t.ka)S(this,t.value);else return t.ka=!0,new b(n.K,t.scope)};h.prototype.stepTryStatement=function(e,t,n){if(!t.Rb)return t.Rb=!0,new b(n.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&n.Ea)return t.Tb=!0,e=rn(this,t.scope),this.g(e.object,n.Ea.Ua.name,t.ea.value),t.ea=void 0,new b(n.Ea.body,e);if(!t.Sb&&n.fb)return t.Sb=!0,new b(n.fb,t.scope);e.pop(),t.ea&&ze(this,t.ea.type,t.ea.value,t.ea.label)};h.prototype.stepUnaryExpression=function(e,t,n){if(!t.ka)return t.ka=!0,e=new b(n.K,t.scope),e.sa=n.operator==="delete",e;e.pop();var r=t.value;switch(n.operator){case"-":r=-r;break;case"+":r=+r;break;case"!":r=!r;break;case"~":r=~r;break;case"delete":if(n=!0,Array.isArray(r)){var o=r[0];o===Pe&&(o=t.scope),r=String(r[1]);try{delete o.h[r]}catch{t.scope.S?S(this,this.j,"Cannot delete property '"+r+"' of '"+o+"'"):n=!1}}r=n;break;case"typeof":r=r&&r.H==="Function"?"function":typeof r;break;case"void":r=void 0;break;default:throw SyntaxError("Unknown unary operator: "+n.operator)}e[e.length-1].value=r};h.prototype.stepUpdateExpression=function(e,t,n){if(!t.ja)return t.ja=!0,e=new b(n.K,t.scope),e.sa=!0,e;if(t.Ga||(t.Ga=t.value),t.Ba&&(t.ma=t.value),!t.Ba){var r=an(this,t.Ga);if(t.ma=r,this.P)return t.Ba=!0,qe(this,r,t.Ga)}if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{if(r=Number(t.ma),n.operator==="++")var o=r+1;else if(n.operator==="--")o=r-1;else throw SyntaxError("Unknown update expression: "+n.operator);if(n=n.prefix?o:r,r=sn(this,t.Ga,o))return t.ta=!0,t.ib=n,ln(this,r,t.Ga,o);e.pop(),e[e.length-1].value=n}};h.prototype.stepVariableDeclaration=function(e,t,n){n=n.fa;var r=t.A||0,o=n[r];for(t.Bb&&o&&(vr(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 b(o.ua,t.scope);o=n[++r]}e.pop()};h.prototype.stepWithStatement=function(e,t,n){return t.Ca?(e.pop(),e=rn(this,t.scope,t.value),new b(n.body,e)):(t.Ca=!0,new b(n.object,t.scope))};h.prototype.stepWhileStatement=h.prototype.stepDoWhileStatement;ve.Interpreter=h;h.prototype.step=h.prototype.lb;h.prototype.run=h.prototype.Eb;h.prototype.appendCode=h.prototype.Jb;h.prototype.createObject=h.prototype.Aa;h.prototype.createObjectProto=h.prototype.s;h.prototype.createAsyncFunction=h.prototype.ub;h.prototype.createNativeFunction=h.prototype.i;h.prototype.getProperty=h.prototype.G;h.prototype.setProperty=h.prototype.g;h.prototype.nativeToPseudo=h.prototype.Ia;h.prototype.pseudoToNative=h.prototype.R;h.prototype.getGlobalScope=h.prototype.Xb;h.prototype.getStateStack=h.prototype.Yb;h.prototype.setStateStack=h.prototype.ec;h.VALUE_IN_DESCRIPTOR=Je;const Wo=e=>e.split(`
7
+ `)}e.g(t,"stack",i.trim(),v)}F.ha=function(){var e=this.ha.Mb;return e||(e=new Blob([To.join(`
8
+ `)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function We(e,t,n,r,o){var i={timeout:e.REGEXP_THREAD_TIMEOUT};try{return fe.runInNewContext(t,n,i)}catch{o(null),k(e,e.D,"RegExp Timeout: "+r)}return Ae}function $e(e,t,n){if(e.REGEXP_MODE===0)var r=!1;else if(e.REGEXP_MODE===1)r=!0;else if(fe)r=!0;else if(typeof Worker=="function"&&typeof URL=="function")r=!0;else if(typeof require=="function"){try{fe=require("vm")}catch{}r=!!fe}else r=!1;r||(n(null),k(e,e.D,"Regular expressions not supported: "+t))}function He(e,t,n,r){return setTimeout(function(){n.terminate(),r(null);try{k(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 N(e),H(this,e,this.D)&&(e.H="Error"),e};function Re(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function en(e,t,n){var r=e.s(e.Z);return n?(n=e.s(e.M),e.g(r,"prototype",n,v),e.g(n,"constructor",r,v)):r.Ab=!0,e.g(r,"length",t,q),r.H="Function",r}function tn(e,t,n,r){var o=en(e,t.oa.length,!0);return o.Va=n,o.node=t,e.g(o,"name",t.id?String(t.id.name):r||"",q),o}F.i=function(e,t){return t=en(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,q),t};F.ub=function(e){var t=en(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,q),t};F.Ia=function(e){if(e instanceof N)throw Error("Object is already pseudo");if(e==null||e===!0||e===!1||typeof e=="string"||typeof e=="number")return e;if(e instanceof RegExp){var t=this.s(this.Ma);return Qt(this,t,e),t}if(e instanceof Date)return t=this.s(this.nb),t.data=new Date(e.valueOf()),t;if(typeof e=="function"){var n=this;return t=Object.getOwnPropertyDescriptor(e,"prototype"),this.i(function(){var o=Array.prototype.slice.call(arguments).map(function(i){return n.R(i)});return o=e.apply(n,o),n.Ia(o)},!!t)}if(Array.isArray(e)){t=Re(this);for(var r=0;r<e.length;r++)r in e&&this.g(t,r,this.Ia(e[r]));return t}t=this.s(this.M);for(r in e)this.g(t,r,this.Ia(e[r]));return t};F.R=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof N))throw Error("Object is not pseudo");if(H(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(H(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),H(this,e,this.qa)){n=[],t.Sa.push(n);for(var r=this.G(e,"length"),o=0;o<r;o++)gt(this,e,o)&&(n[o]=this.R(this.G(e,o),t))}else for(r in n={},t.Sa.push(n),e.h)o=this.R(e.h[r],t),Object.defineProperty(n,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),n};function ue(e,t){for(var n=Re(e),r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++)e.g(n,r[o],t[r[o]]);return n}function yr(e,t){var n=[],r;for(r in t.h)n[r]=e.G(t,r);return n.length=Zt(e.G(t,"length"))||0,n}function de(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||k(this,this.j,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof N))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(H(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&H(this,e,this.J)){var n=Xe(t);if(!isNaN(n)&&n<String(e).length)return String(e)[n]}do if(e.h&&t in e.h)return(n=e.V[t])?(this.P=!0,n):e.h[t];while(e=de(this,e))};function gt(e,t,n){if(!(t instanceof N))throw TypeError("Primitive data type has no properties");if(n=String(n),n==="length"&&H(e,t,e.J))return!0;if(H(e,t,e.J)){var r=Xe(n);if(!isNaN(r)&&r<String(t).length)return!0}do if(t.h&&n in t.h)return!0;while(t=de(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||k(this,this.j,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof N))throw TypeError("Expecting native value or pseudo object");r&&("get"in r||"set"in r)&&("value"in r||"writable"in r)&&k(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var o=!this.o||nn(this).S;if(e instanceof N){if(H(this,e,this.J)){var i=Xe(t);if(t==="length"||!isNaN(i)&&i<String(e).length){o&&k(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(i=e.h.length,t==="length"){if(r){if(!("value"in r))return;n=r.value}if(n=Zt(n),isNaN(n)&&k(this,this.ob,"Invalid array length"),n<i)for(s in e.h){var s=Xe(s);!isNaN(s)&&n<=s&&delete e.h[s]}}else isNaN(s=Xe(t))||(e.h.length=Math.max(i,s+1));if(!e.preventExtensions||t in e.h)if(r){o={},"get"in r&&r.get&&(e.V[t]=r.get,o.get=this.g.ac),"set"in r&&r.set&&(e.Y[t]=r.set,o.set=this.g.bc),"configurable"in r&&(o.configurable=r.configurable),"enumerable"in r&&(o.enumerable=r.enumerable),"writable"in r&&(o.writable=r.writable,delete e.V[t],delete e.Y[t]),"value"in r?(o.value=r.value,delete e.V[t],delete e.Y[t]):n!==Je&&(o.value=n,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,o)}catch{k(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===Je)throw ReferenceError("Value not specified");for(r=e;!(t in r.h);)if(r=de(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&&k(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=n}catch{o&&k(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else o&&k(this,this.j,"Can't add property '"+t+"', object is not extensible")}else o&&k(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),v)}function Ke(e,t,n,r){e.g(t.h.prototype,n,e.ub(r),v)}function nn(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function Xt(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 xr(n,r,o),n||Ao(e,r.object),Ye(e,t,r),r}function rn(e,t,n){if(!t)throw Error("parentScope required");return e=n||e.s(null),new xr(t,t.S,e)}function on(e,t){for(var n=nn(e);n&&n!==e.N;){if(t in n.object.h)return n.object.h[t];n=n.Va}if(n===e.N&&gt(e,n.object,t))return e.G(n.object,t);n=e.o[e.o.length-1].node,n.type==="UnaryExpression"&&n.operator==="typeof"||k(e,e.pb,t+" is not defined")}function vr(e,t,n){for(var r=nn(e),o=r.S;r&&r!==e.N;){if(t in r.object.h){try{r.object.h[t]=n}catch{o&&k(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}r=r.Va}if(r===e.N&&(!o||gt(e,r.object,t)))return e.g(r.object,t,n);k(e,e.pb,t+" is not defined")}function Ye(e,t,n){if(t.jb)var r=t.jb;else{switch(r=Object.create(null),t.type){case"VariableDeclaration":for(var o=0;o<t.fa.length;o++)r[t.fa[o].id.name]=!0;break;case"FunctionDeclaration":r[t.id.name]=t;break;case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"Program":case"SwitchCase":case"SwitchStatement":case"TryStatement":case"WithStatement":case"WhileStatement":var i=t.constructor,s;for(s in t)if(s!=="loc"){var u=t[s];if(u&&typeof u=="object"){if(Array.isArray(u)){for(o=0;o<u.length;o++)if(u[o]&&u[o].constructor===i){var p=Ye(e,u[o],n);for(s in p)r[s]=p[s]}}else if(u.constructor===i)for(s in p=Ye(e,u,n),p)r[s]=p[s]}}}t.jb=r}for(s in r)r[s]===!0?e.g(n.object,s,void 0,Gn):e.g(n.object,s,tn(e,r[s],n),Gn);return r}function pe(e){return e.o[e.o.length-1].isConstructor}function an(e,t){return t[0]===Pe?on(e,t[1]):e.G(t[0],t[1])}function sn(e,t,n){return t[0]===Pe?vr(e,t[1],n):e.g(t[0],t[1],n)}function k(e,t,n){throw e.N?(n!==void 0&&t instanceof N&&(t=e.Aa(t),Gt(e,t,n)),ze(e,4,t),gr):n===void 0?t:n}function ze(e,t,n,r){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var o=e.o;e:for(;0<o.length;o.pop()){var i=o[o.length-1];switch(i.node.type){case"TryStatement":i.ea={type:t,value:n,label:r};return;case"CallExpression":case"NewExpression":if(t===3){i.value=n;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":i.done=!0;break e}if(t===1){if(r?i.labels&&i.labels.indexOf(r)!==-1:i.W||i.Zb){o.pop();return}}else if(t===2&&(r?i.labels&&i.labels.indexOf(r)!==-1:i.W))return}throw H(e,n,e.D)?(t={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},r=String(e.G(n,"name")),o=e.G(n,"message").valueOf(),t=(t[r]||Error)(o),t.stack=String(e.G(n,"stack"))):t=String(n),e.value=t,t}function z(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return z(e,t.left)+" "+t.operator+" "+z(e,t.right);case"CallExpression":return z(e,t.callee)+"(...)";case"ConditionalExpression":return z(e,t.test)+" ? "+z(e,t.da)+" : "+z(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var n=z(e,t.object);return e=z(e,t.Wa),t.bb?n+"["+e+"]":n+"."+e;case"NewExpression":return"new "+z(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+z(e,t.K);case"UpdateExpression":return n=z(e,t.K),t.prefix?t.operator+n:n+t.operator}return"???"}function Jn(e,t,n){var r=e.o[e.o.length-1],o=Array.from(n),i=o.shift();n=Math.max(Number(o.shift()||0),0);var s=e.ya();if(i instanceof N&&i.H==="Function"){var u=i;s.type="CallExpression",r=r.scope}else{try{var p=Oe(String(i),"taskCode"+e.ic++)}catch(S){k(e,e.T,"Invalid code: "+S.message)}s.type="EvalProgram_",s.body=p.body,r=r.node.arguments[0],mt(s,r?r.start:void 0,r?r.end:void 0),r=e.N,o.length=0}return t=new _o(u,o,r,s,t?n:-1),br(e,t,n),t.Db}function br(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 qe(e,t,n){if(!e.P)throw Error("Unexpected call to createGetter");e.P=!1,n=Array.isArray(n)?n[0]:n;var r=e.ya();return r.type="CallExpression",e=new x(r,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[],e}function ln(e,t,n,r){if(!e.Ka)throw Error("Unexpected call to createSetter");e.Ka=!1,n=Array.isArray(n)?n[0]:e.Na;var o=e.ya();return o.type="CallExpression",e=new x(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 Ht(e,t){return t==null?e.Na:t instanceof N?t:(e=e.s(de(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 x(e,t){this.node=e,this.scope=t}function xr(e,t,n){this.Va=e,this.S=t,this.object=n}function N(e){this.V=Object.create(null),this.Y=Object.create(null),this.h=Object.create(null),this.xa=e}F=N.prototype;F.xa=null;F.H="Object";F.data=null;F.toString=function(){if(!Ge)return"[object Interpreter.Object]";if(!(this instanceof N))return String(this);if(this.H==="Array"){var e=Xn;e.push(this);try{var t=[],n=this.h.length,r=!1;1024<n&&(n=1e3,r=!0);for(var o=0;o<n;o++){var i=this.h[o];t[o]=i instanceof N&&e.indexOf(i)!==-1?"...":i}r&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=Xn,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!Ge||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function _o(e,t,n,r,o){this.zb=e,this.Lb=t,this.scope=n,this.node=r,this.interval=o,this.Db=++Wo,this.time=0}var Wo=0;h.prototype.stepArrayExpression=function(e,t,n){n=n.elements;var r=t.A||0;for(t.Oa?(this.g(t.Oa,r,t.value),r++):(t.Oa=Re(this),t.Oa.h.length=n.length);r<n.length;){if(n[r])return t.A=r,new x(n[r],t.scope);r++}e.pop(),e[e.length-1].value=t.Oa};h.prototype.stepAssignmentExpression=function(e,t,n){if(!t.ja)return t.ja=!0,t=new x(n.left,t.scope),t.sa=!0,t;if(!t.Da)return t.Fa||(t.Fa=t.value),t.Ba&&(t.ma=t.value),!t.Ba&&n.operator!=="="&&(e=an(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,qe(this,e,t.Fa)):(t.Da=!0,n.operator==="="&&n.left.type==="Identifier"&&(t.Pa=n.left.name),new x(n.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var r=t.ma,o=t.value;switch(n.operator){case"=":r=o;break;case"+=":r+=o;break;case"-=":r-=o;break;case"*=":r*=o;break;case"/=":r/=o;break;case"%=":r%=o;break;case"<<=":r<<=o;break;case">>=":r>>=o;break;case">>>=":r>>>=o;break;case"&=":r&=o;break;case"^=":r^=o;break;case"|=":r|=o;break;default:throw SyntaxError("Unknown assignment expression: "+n.operator)}if(n=sn(this,t.Fa,r))return t.ta=!0,t.ib=r,ln(this,n,t.Fa,r);e.pop(),e[e.length-1].value=r}};h.prototype.stepBinaryExpression=function(e,t,n){if(!t.ja)return t.ja=!0,new x(n.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new x(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 N||k(this,this.j,"'in' expects an object, not '"+t+"'"),n=gt(this,t,r);break;case"instanceof":H(this,t,this.O)||k(this,this.j,"'instanceof' expects an object, not '"+t+"'"),n=r instanceof N?H(this,r,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+n.operator)}e[e.length-1].value=n};h.prototype.stepBlockStatement=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new x(n,t.scope);e.pop()};h.prototype.stepBreakStatement=function(e,t,n){ze(this,1,void 0,n.label&&n.label.name)};h.prototype.Hb=0;h.prototype.stepCallExpression=function(e,t,n){if(!t.ia){t.ia=1;var r=new x(n.callee,t.scope);return r.sa=!0,r}if(t.ia===1){t.ia=2;var o=t.value;if(Array.isArray(o)){if(t.U=an(this,o),o[0]===Pe?t.Pb=o[1]==="eval":t.B=o[0],o=t.U,this.P)return t.ia=1,qe(this,o,t.value)}else t.U=o;t.F=[],t.A=0}if(o=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),n.arguments[t.A])return new x(n.arguments[t.A++],t.scope);if(n.type==="NewExpression"){if(o instanceof N&&!o.Ab||k(this,this.j,z(this,n.callee)+" is not a constructor"),o===this.qa)t.B=Re(this);else{var i=o.h.prototype;(typeof i!="object"||i===null)&&(i=this.M),t.B=this.s(i)}t.isConstructor=!0}t.Qa=!0}if(t.eb)e.pop(),e[e.length-1].value=t.isConstructor&&typeof t.value!="object"?t.B:t.value;else{if(t.eb=!0,o instanceof N||k(this,this.j,z(this,n.callee)+" is not a function"),e=o.node){for(n=Xt(this,e.body,o.Va),r=Re(this),o=0;o<t.F.length;o++)this.g(r,o,t.F[o]);for(this.g(n.object,"arguments",r),o=0;o<e.oa.length;o++)this.g(n.object,e.oa[o].name,t.F.length>o?t.F[o]:void 0);return n.S||(t.B=Ht(this,t.B)),this.g(n.object,"this",t.B,qt),t.value=void 0,new x(e.body,n)}if(o.eval)if(o=t.F[0],typeof o!="string")t.value=o;else{try{r=Oe(String(o),"eval"+this.Hb++)}catch(u){k(this,this.T,"Invalid code: "+u.message)}return o=this.ya(),o.type="EvalProgram_",o.body=r.body,mt(o,n.start,n.end),n=t.Pb?t.scope:this.N,n.S?n=Xt(this,r,n):Ye(this,r,n),this.value=void 0,new x(o,n)}else if(o.Ta)t.scope.S||(t.B=Ht(this,t.B)),t.value=o.Ta.apply(t.B,t.F);else if(o.Za){var s=this;r=o.Za.length-1,r=t.F.concat(Array(r)).slice(0,r),r.push(function(u){t.value=u,s.za=!1}),this.za=!0,t.scope.S||(t.B=Ht(this,t.B)),o.Za.apply(t.B,r)}else k(this,this.j,z(this,n.callee)+" is not callable")}};h.prototype.stepConditionalExpression=function(e,t,n){var r=t.na||0;if(r===0)return t.na=1,new x(n.test,t.scope);if(r===1){if(t.na=2,(r=!!t.value)&&n.da)return new x(n.da,t.scope);if(!r&&n.alternate)return new x(n.alternate,t.scope);this.value=void 0}e.pop(),n.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};h.prototype.stepContinueStatement=function(e,t,n){ze(this,2,void 0,n.label&&n.label.name)};h.prototype.stepDebuggerStatement=function(e){e.pop()};h.prototype.stepDoWhileStatement=function(e,t,n){if(n.type==="DoWhileStatement"&&t.ga===void 0&&(t.value=!0,t.ga=!0),!t.ga)return t.ga=!0,new x(n.test,t.scope);if(!t.value)e.pop();else if(n.body)return t.ga=!1,t.W=!0,new x(n.body,t.scope)};h.prototype.stepEmptyStatement=function(e){e.pop()};h.prototype.stepEvalProgram_=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new x(n,t.scope);e.pop(),e[e.length-1].value=this.value};h.prototype.stepExpressionStatement=function(e,t,n){if(!t.ka)return this.value=void 0,t.ka=!0,new x(n.la,t.scope);e.pop(),this.value=t.value};h.prototype.stepForInStatement=function(e,t,n){if(!t.Ub&&(t.Ub=!0,n.left.fa&&n.left.fa[0].ua))return t.scope.S&&k(this,this.T,"for-in loop variable declaration may not have an initializer"),new x(n.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new x(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 N)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=de(this,t.u),t.wa=null,t.u===null){e.pop();return}}if(!t.wb)if(t.wb=!0,e=n.left,e.type==="VariableDeclaration")t.pa=[Pe,e.fa[0].id.name];else return t.pa=null,t=new x(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,r=sn(this,t.pa,e)))return ln(this,r,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,n.body)return new x(n.body,t.scope)};h.prototype.stepForStatement=function(e,t,n){switch(t.na){default:if(t.na=1,n.ua)return new x(n.ua,t.scope);break;case 1:if(t.na=2,n.test)return new x(n.test,t.scope);break;case 2:if(t.na=3,n.test&&!t.value)e.pop();else return t.W=!0,new x(n.body,t.scope);break;case 3:if(t.na=1,n.update)return new x(n.update,t.scope)}};h.prototype.stepFunctionDeclaration=function(e){e.pop()};h.prototype.stepFunctionExpression=function(e,t,n){e.pop(),t=e[e.length-1],e=t.scope,n.id&&(e=rn(this,e)),t.value=tn(this,n,e,t.Pa),n.id&&this.g(e.object,n.id.name,t.value,qt)};h.prototype.stepIdentifier=function(e,t,n){if(e.pop(),t.sa)e[e.length-1].value=[Pe,n.name];else{if(t=on(this,n.name),this.P)return qe(this,t,this.Na);e[e.length-1].value=t}};h.prototype.stepIfStatement=h.prototype.stepConditionalExpression;h.prototype.stepLabeledStatement=function(e,t,n){return e.pop(),e=t.labels||[],e.push(n.label.name),t=new x(n.body,t.scope),t.labels=e,t};h.prototype.stepLiteral=function(e,t,n){e.pop(),t=n.value,t instanceof RegExp&&(n=this.s(this.Ma),Qt(this,n,t),t=n),e[e.length-1].value=t};h.prototype.stepLogicalExpression=function(e,t,n){if(n.operator!=="&&"&&n.operator!=="||")throw SyntaxError("Unknown logical operator: "+n.operator);if(!t.ja)return t.ja=!0,new x(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 x(n.right,t.scope)};h.prototype.stepMemberExpression=function(e,t,n){if(!t.Ca)return t.Ca=!0,new x(n.object,t.scope);if(n.bb)if(t.Vb)n=t.value;else return t.u=t.value,t.Vb=!0,new x(n.Wa,t.scope);else t.u=t.value,n=n.Wa.name;if(e.pop(),t.sa)e[e.length-1].value=[t.u,n];else{if(n=this.G(t.u,n),this.P)return qe(this,n,t.u);e[e.length-1].value=n}};h.prototype.stepNewExpression=h.prototype.stepCallExpression;h.prototype.stepObjectExpression=function(e,t,n){var r=t.A||0,o=n.h[r];if(t.u){var i=t.Pa;t.Ja[i]||(t.Ja[i]={}),t.Ja[i][o.kind]=t.value,t.A=++r,o=n.h[r]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(o){var s=o.key;if(s.type==="Identifier")i=s.name;else if(s.type==="Literal")i=s.value;else throw SyntaxError("Unknown object structure: "+s.type);return t.Pa=i,new x(o.value,t.scope)}for(s in t.Ja)n=t.Ja[s],"get"in n||"set"in n?this.g(t.u,s,Je,{configurable:!0,enumerable:!0,get:n.get,set:n.set}):this.g(t.u,s,n.init);e.pop(),e[e.length-1].value=t.u};h.prototype.stepProgram=function(e,t,n){if(e=n.body.shift())return t.done=!1,new x(e,t.scope);t.done=!0};h.prototype.stepReturnStatement=function(e,t,n){if(n.K&&!t.ka)return t.ka=!0,new x(n.K,t.scope);ze(this,3,t.value)};h.prototype.stepSequenceExpression=function(e,t,n){var r=t.A||0;if(n=n.xb[r])return t.A=r+1,new x(n,t.scope);e.pop(),e[e.length-1].value=t.value};h.prototype.stepSwitchStatement=function(e,t,n){if(!t.ga)return t.ga=1,new x(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 x(o.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var i=t.A||0;if(o.da[i])return t.Zb=!0,t.A=i+1,new x(o.da[i],t.scope)}t.Fb=!1,t.A=0,t.gb=r+1}else{e.pop();break}else t.Ha=!0,t.gb=t.cb;else t.cb=r,t.gb=r+1}};h.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=on(this,"this")};h.prototype.stepThrowStatement=function(e,t,n){if(t.ka)k(this,t.value);else return t.ka=!0,new x(n.K,t.scope)};h.prototype.stepTryStatement=function(e,t,n){if(!t.Rb)return t.Rb=!0,new x(n.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&n.Ea)return t.Tb=!0,e=rn(this,t.scope),this.g(e.object,n.Ea.Ua.name,t.ea.value),t.ea=void 0,new x(n.Ea.body,e);if(!t.Sb&&n.fb)return t.Sb=!0,new x(n.fb,t.scope);e.pop(),t.ea&&ze(this,t.ea.type,t.ea.value,t.ea.label)};h.prototype.stepUnaryExpression=function(e,t,n){if(!t.ka)return t.ka=!0,e=new x(n.K,t.scope),e.sa=n.operator==="delete",e;e.pop();var r=t.value;switch(n.operator){case"-":r=-r;break;case"+":r=+r;break;case"!":r=!r;break;case"~":r=~r;break;case"delete":if(n=!0,Array.isArray(r)){var o=r[0];o===Pe&&(o=t.scope),r=String(r[1]);try{delete o.h[r]}catch{t.scope.S?k(this,this.j,"Cannot delete property '"+r+"' of '"+o+"'"):n=!1}}r=n;break;case"typeof":r=r&&r.H==="Function"?"function":typeof r;break;case"void":r=void 0;break;default:throw SyntaxError("Unknown unary operator: "+n.operator)}e[e.length-1].value=r};h.prototype.stepUpdateExpression=function(e,t,n){if(!t.ja)return t.ja=!0,e=new x(n.K,t.scope),e.sa=!0,e;if(t.Ga||(t.Ga=t.value),t.Ba&&(t.ma=t.value),!t.Ba){var r=an(this,t.Ga);if(t.ma=r,this.P)return t.Ba=!0,qe(this,r,t.Ga)}if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{if(r=Number(t.ma),n.operator==="++")var o=r+1;else if(n.operator==="--")o=r-1;else throw SyntaxError("Unknown update expression: "+n.operator);if(n=n.prefix?o:r,r=sn(this,t.Ga,o))return t.ta=!0,t.ib=n,ln(this,r,t.Ga,o);e.pop(),e[e.length-1].value=n}};h.prototype.stepVariableDeclaration=function(e,t,n){n=n.fa;var r=t.A||0,o=n[r];for(t.Bb&&o&&(vr(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 x(o.ua,t.scope);o=n[++r]}e.pop()};h.prototype.stepWithStatement=function(e,t,n){return t.Ca?(e.pop(),e=rn(this,t.scope,t.value),new x(n.body,e)):(t.Ca=!0,new x(n.object,t.scope))};h.prototype.stepWhileStatement=h.prototype.stepDoWhileStatement;ve.Interpreter=h;h.prototype.step=h.prototype.lb;h.prototype.run=h.prototype.Eb;h.prototype.appendCode=h.prototype.Jb;h.prototype.createObject=h.prototype.Aa;h.prototype.createObjectProto=h.prototype.s;h.prototype.createAsyncFunction=h.prototype.ub;h.prototype.createNativeFunction=h.prototype.i;h.prototype.getProperty=h.prototype.G;h.prototype.setProperty=h.prototype.g;h.prototype.nativeToPseudo=h.prototype.Ia;h.prototype.pseudoToNative=h.prototype.R;h.prototype.getGlobalScope=h.prototype.Xb;h.prototype.getStateStack=h.prototype.Yb;h.prototype.setStateStack=h.prototype.ec;h.VALUE_IN_DESCRIPTOR=Je;const $o=e=>e.split(`
9
9
  `).map(t=>{const n=t.trim();if(t.includes("__awaiter"))return;if(!n.startsWith("state."))return t;const[o,i]=n.split("="),u=`setRootState('${o.replace("state.","").trim()}', ${i.trim()})`;return`
10
10
  ${t}
11
11
  ${u}
12
12
  `}).filter(Boolean).join(`
13
- `),zn=e=>e+"JSON",$o=({builder:e,context:t,event:n,rootState:r,localState:o,rootSetState:i,code:s})=>{const u={...r,...o},p=pr({builder:e,context:t,event:n,state:u}),x=p.map(([C])=>{const w=zn(C);return`var ${C} = ${w} === undefined ? undefined : JSON.parse(${w});`}).join(`
14
- `),k=Wo(s);if(k===""){X.warn("Skipping evaluation of empty code block.");return}const m=`
13
+ `),zn=e=>e+"JSON",Ho=({builder:e,context:t,event:n,rootState:r,localState:o,rootSetState:i,code:s})=>{const u={...r,...o},p=pr({builder:e,context:t,event:n,state:u}),S=p.map(([E])=>{const b=zn(E);return`var ${E} = ${b} === undefined ? undefined : JSON.parse(${b});`}).join(`
14
+ `),C=$o(s);if(C===""){J.warn("Skipping evaluation of empty code block.");return}const m=`
15
15
  function theFunction() {
16
- ${x}
16
+ ${S}
17
17
 
18
- ${k}
18
+ ${C}
19
19
  }
20
20
  theFunction();
21
- `,O=(C,w)=>{const B=mr(u,C,w);i==null||i(B)},R=function(C,w){p.forEach(([B,N])=>{const E=JSON.stringify(N);C.setProperty(w,zn(B),E)}),C.setProperty(w,"setRootState",C.createNativeFunction(O))};try{const C=new h(m,R);return C.run(),C.pseudoToNative(C.value)}catch(C){X.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.",{e:C});return}},oe=e=>e!=null;function Ho(){var e;return typeof process<"u"&&oe((e=process==null?void 0:process.versions)==null?void 0:e.node)}const Ko=()=>{var r;if(!Ho())return!1;const e=process.arch==="arm64",t=process.version.startsWith("v20"),n=(r=process.env.NODE_OPTIONS)==null?void 0:r.includes("--no-node-snapshot");return e&&t&&!n?(X.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "),!0):!1},Go=e=>K()||Ko()?Eo(e):$o(e),cn=class Te{static getCacheKey(t){return JSON.stringify({...t,event:t.event?Math.random():void 0})}static getCachedValue(t){return Te.cache.get(t)}static setCachedValue(t,n){Te.cache.size>20&&Te.cache.delete(Te.cache.keys().next().value),Te.cache.set(t,{value:n})}};cn.cacheLimit=20;cn.cache=new Map;let lt=cn;function yt({code:e,context:t,localState:n,rootState:r,rootSetState:o,event:i,isExpression:s=!0,enableCache:u}){if(e===""){X.warn("Skipping evaluation of empty code block.");return}const p={code:Co(e,{isExpression:s}),builder:ko(),context:t,event:i,rootSetState:o,rootState:r,localState:n};if(u){const x=lt.getCacheKey(p),k=lt.getCachedValue(x);if(k)return k.value}try{const x=Go(p);if(u){const k=lt.getCacheKey(p);lt.setCachedValue(k,x)}return x}catch(x){X.error("Failed code evaluation: "+x.message,{code:e});return}}const Ze=e=>JSON.parse(JSON.stringify(e));const Xo=({block:e,context:t,localState:n,rootState:r,rootSetState:o})=>{if(!e.bindings)return e;const i=Ze(e),s={...i,properties:{...i.properties},actions:{...i.actions}};for(const u in e.bindings){const p=e.bindings[u],x=yt({code:p,localState:n,rootState:r,rootSetState:o,context:t,enableCache:!0});mr(s,u,x)}return s};function ft({block:e,context:t,shouldEvaluateBindings:n,localState:r,rootState:o,rootSetState:i}){const s=e;return n?Xo({block:s,localState:r,rootState:o,rootSetState:i,context:t}):s}const Jo=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),Sr=e=>Object.entries(e).map(([n,r])=>{if(typeof r=="string")return`${Jo(n)}: ${r};`}).filter(oe),Yo=e=>Sr(e).join(`
22
- `),Kt=({mediaQuery:e,className:t,styles:n})=>{const r=`.${t} {
23
- ${Yo(n)}
21
+ `,R=(E,b)=>{const B=mr(u,E,b);i==null||i(B)},P=function(E,b){p.forEach(([B,O])=>{const w=JSON.stringify(O);E.setProperty(b,zn(B),w)}),E.setProperty(b,"setRootState",E.createNativeFunction(R))};try{const E=new h(m,P);return E.run(),E.pseudoToNative(E.value)}catch(E){J.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.",{e:E});return}},oe=e=>e!=null;function Ko(){var e;return typeof process<"u"&&oe((e=process==null?void 0:process.versions)==null?void 0:e.node)}const Go=()=>{var r;if(!Ko())return!1;const e=process.arch==="arm64",t=process.version.startsWith("v20"),n=(r=process.env.NODE_OPTIONS)==null?void 0:r.includes("--no-node-snapshot");return e&&t&&!n?(J.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "),!0):!1},Xo=e=>K()||Go()?Io(e):Ho(e),cn=class Te{static getCacheKey(t){return JSON.stringify({...t,event:t.event?Math.random():void 0})}static getCachedValue(t){return Te.cache.get(t)}static setCachedValue(t,n){Te.cache.size>20&&Te.cache.delete(Te.cache.keys().next().value),Te.cache.set(t,{value:n})}};cn.cacheLimit=20;cn.cache=new Map;let lt=cn;function yt({code:e,context:t,localState:n,rootState:r,rootSetState:o,event:i,isExpression:s=!0,enableCache:u}){if(e==="")return;const p={code:Eo(e,{isExpression:s}),builder:Co(),context:t,event:i,rootSetState:o,rootState:r,localState:n};if(u){const S=lt.getCacheKey(p),C=lt.getCachedValue(S);if(C)return C.value}try{const S=Xo(p);if(u){const C=lt.getCacheKey(p);lt.setCachedValue(C,S)}return S}catch(S){J.error("Failed code evaluation: "+S.message,{code:e});return}}const Ze=e=>JSON.parse(JSON.stringify(e));const Jo=({block:e,context:t,localState:n,rootState:r,rootSetState:o})=>{if(!e.bindings)return e;const i=Ze(e),s={...i,properties:{...i.properties},actions:{...i.actions}};for(const u in e.bindings){const p=e.bindings[u],S=yt({code:p,localState:n,rootState:r,rootSetState:o,context:t,enableCache:!0});mr(s,u,S)}return s};function dt({block:e,context:t,shouldEvaluateBindings:n,localState:r,rootState:o,rootSetState:i}){const s=e;return n?Jo({block:s,localState:r,rootState:o,rootSetState:i,context:t}):s}const Yo=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),Sr=e=>Object.entries(e).map(([n,r])=>{if(typeof r=="string")return`${Yo(n)}: ${r};`}).filter(oe),zo=e=>Sr(e).join(`
22
+ `),ct=({mediaQuery:e,className:t,styles:n})=>{const r=`.${t} {
23
+ ${zo(n)}
24
24
  }`;return e?`${e} {
25
25
  ${r}
26
- }`:r};function zo({style:e}){return e}const qo=({block:e,context:t})=>wr(zo({style:e.style||{},context:t,block:e}));function wr(e){switch(he){case"svelte":case"vue":case"solid":return Sr(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const Zo=({block:e,context:t,registeredComponents:n})=>{var i;const r=(i=ft({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:i.name;if(!r)return null;const o=n[r];if(o)return o;console.warn(`
26
+ }`:r};function qo({style:e}){return e}const Zo=({block:e,context:t})=>wr(qo({style:e.style||{},context:t,block:e}));function wr(e){switch(he){case"svelte":case"vue":case"solid":return Sr(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const Qo=({block:e,context:t,registeredComponents:n})=>{var i;const r=(i=dt({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:i.name;if(!r)return null;const o=n[r];if(o)return o;console.warn(`
27
27
  Could not find a registered component named "${r}".
28
- If you registered it, is the file that registered it imported by the file that needs to render it?`)},Qo=({block:e,context:t})=>{const{repeat:n,...r}=e;if(!(n!=null&&n.collection))return;const o=yt({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,enableCache:!0});if(!Array.isArray(o))return;const i=n.collection.split(".").pop(),s=n.itemName||(i?i+"Item":"item");return o.map((p,x)=>({context:{...t,localState:{...t.localState,$index:x,$item:p,[s]:p,[`$${s}Index`]:x}},block:r}))},kr={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},qn=(e,t=kr)=>`@media (max-width: ${t[e].max}px)`,Cr=({small:e,medium:t})=>{const n=Ze(kr);if(!e||!t)return n;const r=Math.floor(e/2);n.small={max:e,min:r,default:r+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const i=n.medium.max+1;return n.large={max:2e3,min:i,default:i+1},n};function vt(e){return g.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},"data-id":e.id})}function ei(e){const t=function(){const o=ft({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0});return oe(o.hide)?!o.hide:oe(o.show)?o.show:!0},n=function(){var w;const o=ft({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0}),i=o.responsiveStyles,s=e.context.content,u=Cr(((w=s==null?void 0:s.meta)==null?void 0:w.breakpoints)||{}),p=i==null?void 0:i.large,x=i==null?void 0:i.medium,k=i==null?void 0:i.small,m=o.id;if(!m)return"";const O=p?Kt({className:m,styles:p}):"",R=x?Kt({className:m,styles:x,mediaQuery:qn("medium",u)}):"",C=k?Kt({className:m,styles:k,mediaQuery:qn("small",u)}):"";return[O,R,C].join(" ")};return g.jsx(g.Fragment,{children:n()&&t()?g.jsx(g.Fragment,{children:g.jsx(vt,{id:"builderio-block",styles:n()})}):null})}function ti(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ni=e=>`on${ti(e)}`,ri=(e,t)=>n=>yt({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:n,isExpression:!1,enableCache:!0});function oi(e){const t={},n=e.block.actions??{};for(const r in n){if(!n.hasOwnProperty(r))continue;const o=n[r];let i=ni(r);if(e.stripPrefix)switch(he){case"vue":i=i.replace("v-on:","");break;case"svelte":i=i.replace("on:","");break}t[i]=ri(o,e)}return t}function ii({properties:e}){return e}const ai=e=>({href:e.href});function Er({block:e,context:t}){var r;const n={...ai(e),...e.properties,"builder-id":e.id,style:qo({block:e,context:t}),[pt()]:[e.id,"builder-block",e.class,(r=e.properties)==null?void 0:r.class].filter(Boolean).join(" ")};return ii({properties:n,context:t,block:e})}const si=({componentOptions:e,builderBlock:t,context:n,componentRef:r,includeBlockProps:o,isInteractive:i,contextValue:s})=>{const u={...e,...o?{attributes:Er({block:t,context:s})}:{}};return i?{Wrapper:r,block:t,context:n,wrapperProps:e,includeBlockProps:o}:u};function Zn(e){var n;const t=e.isInteractive?Z.InteractiveElement:e.componentRef;return g.jsx(g.Fragment,{children:e.componentRef?g.jsx(g.Fragment,{children:g.jsx(t,{...si({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:(n=e.blockChildren)==null?void 0:n.map(r=>g.jsx(bt,{block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},r.id))})}):null})}function li(e){const t=e.repeatContext;return g.jsx(bt,{block:e.block,context:t,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent})}function bt(e){var p,x,k;const t=function(){return Zo({block:e.block,context:e.context,registeredComponents:e.registeredComponents})},n=function(){return Qo({block:e.block,context:e.context})},r=function(){var O;return(O=e.block.repeat)!=null&&O.collection?e.block:ft({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0})},o=function(){var R;return e.block.tagName==="a"||((R=r().properties)==null?void 0:R.href)||r().href?e.linkComponent||"a":e.block.tagName||"div"},i=function(){var C,w;if((C=e.block.repeat)!=null&&C.collection)return!!((w=n())!=null&&w.length);const O="hide"in r()?r().hide:!1;return("show"in r()?r().show:!0)&&!O},s=function(){var R;return!((R=t())!=null&&R.component)&&!n()?r().children??[]:[]},u=function(){var O,R,C,w,B,N,E,Q,$,ee;return{blockChildren:r().children??[],componentRef:(O=t())==null?void 0:O.component,componentOptions:{...vo(r()),builderContext:e.context,...((R=t())==null?void 0:R.name)==="Core:Button"||((C=t())==null?void 0:C.name)==="Symbol"||((w=t())==null?void 0:w.name)==="Columns"||((B=t())==null?void 0:B.name)==="Form:Form"?{builderLinkComponent:e.linkComponent}:{},...((N=t())==null?void 0:N.name)==="Symbol"||((E=t())==null?void 0:E.name)==="Columns"||((Q=t())==null?void 0:Q.name)==="Form:Form"?{builderComponents:e.registeredComponents}:{}},context:e.context,linkComponent:e.linkComponent,registeredComponents:e.registeredComponents,builderBlock:r(),includeBlockProps:(($=t())==null?void 0:$.noWrap)===!0,isInteractive:!((ee=t())!=null&&ee.isRSC)}};return g.jsx(g.Fragment,{children:i()?g.jsxs(g.Fragment,{children:[g.jsx(ei,{block:e.block,context:e.context}),(p=t())!=null&&p.noWrap?g.jsx(g.Fragment,{children:g.jsx(Zn,{componentRef:u().componentRef,componentOptions:u().componentOptions,blockChildren:u().blockChildren,context:u().context,registeredComponents:u().registeredComponents,linkComponent:u().linkComponent,builderBlock:u().builderBlock,includeBlockProps:u().includeBlockProps,isInteractive:u().isInteractive})}):g.jsx(g.Fragment,{children:n()?g.jsx(g.Fragment,{children:(k=n())==null?void 0:k.map((m,O)=>g.jsx(li,{repeatContext:m.context,block:m.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},O))}):g.jsxs(Z.BlockWrapper,{Wrapper:o(),block:r(),context:e.context,linkComponent:e.linkComponent,children:[g.jsx(Zn,{componentRef:u().componentRef,componentOptions:u().componentOptions,blockChildren:u().blockChildren,context:u().context,registeredComponents:u().registeredComponents,linkComponent:u().linkComponent,builderBlock:u().builderBlock,includeBlockProps:u().includeBlockProps,isInteractive:u().isInteractive}),(x=s())==null?void 0:x.map(m=>g.jsx(bt,{block:m,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},m.id))]})})]}):null})}function xt(e){var t,n,r;return g.jsx(Z.BlocksWrapper,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:(t=e.context)==null?void 0:t.BlocksWrapper,BlocksWrapperProps:(n=e.context)==null?void 0:n.BlocksWrapperProps,children:e.blocks?g.jsx(g.Fragment,{children:(r=e.blocks)==null?void 0:r.map(o=>g.jsx(bt,{block:o,linkComponent:e.linkComponent,context:e.context,registeredComponents:e.registeredComponents},o.id))}):null})}function Ir(e){var R;const t=typeof e.space=="number"?e.space||0:20,n=e.columns||[],r=e.stackColumnsAt||"tablet",o=function(w){var B;return((B=n[w])==null?void 0:B.width)||100/n.length},i=function(w){const B=t*(n.length-1)/n.length;return`calc(${o(w)}% - ${B}px)`},s=function({stackedStyle:w,desktopStyle:B}){return r==="tablet"?w:B},u=function({stackedStyle:w,desktopStyle:B}){return r==="never"?B:w},p=e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column",x=function(){return{"--flex-dir":p,"--flex-dir-tablet":s({stackedStyle:p,desktopStyle:"row"})}},k=function(w){const B=w===0?0:t,N=i(w),E=`${B}px`,Q="100%",$=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:N,["marginLeft"]:E,"--column-width-mobile":u({stackedStyle:Q,desktopStyle:N}),"--column-margin-left-mobile":u({stackedStyle:$,desktopStyle:E}),"--column-width-tablet":s({stackedStyle:Q,desktopStyle:N}),"--column-margin-left-tablet":s({stackedStyle:$,desktopStyle:E})}},m=function(w){var N,E;return Cr(((E=(N=e.builderContext.content)==null?void 0:N.meta)==null?void 0:E.breakpoints)||{})[w].max},O=function(){return`
28
+ If you registered it, is the file that registered it imported by the file that needs to render it?`)},ei=({block:e,context:t})=>{const{repeat:n,...r}=e;if(!(n!=null&&n.collection))return;const o=yt({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,enableCache:!0});if(!Array.isArray(o))return;const i=n.collection.split(".").pop(),s=n.itemName||(i?i+"Item":"item");return o.map((p,S)=>({context:{...t,localState:{...t.localState,$index:S,$item:p,[s]:p,[`$${s}Index`]:S}},block:r}))},kr={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},qn=(e,t=kr)=>`@media (max-width: ${t[e].max}px)`,Cr=({small:e,medium:t})=>{const n=Ze(kr);if(!e||!t)return n;const r=Math.floor(e/2);n.small={max:e,min:r,default:r+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const i=n.medium.max+1;return n.large={max:2e3,min:i,default:i+1},n};function vt(e){return g.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},"data-id":e.id})}function Zn(e,...t){const n=Object(e);for(let r=1;r<arguments.length;r++){const o=arguments[r];if(o!=null)for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n}const Er=e=>e?e.replace(/([A-Z])/g,t=>`-${t[0].toLowerCase()}`):"";function ti(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function ni(e,t){const n=ri(e),r=getComputedStyle(t),o=e.steps[0].styles,i=e.steps[e.steps.length-1].styles,s=[o,i];for(const u of s)for(const p of n)p in u||(u[p]=r[p])}function ri(e){const t=[];for(const n of e.steps)for(const r in n.styles)t.indexOf(r)===-1&&t.push(r);return t}function oi(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){ti(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{ni(e,n),n.style.transition="none",n.style.transitionDelay="0",Zn(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${Er(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),Zn(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}function ii(e){const t=function(){const o=dt({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0});return oe(o.hide)?!o.hide:oe(o.show)?o.show:!0},n=function(){var O,w,X;const o=dt({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0}),i=o.responsiveStyles,s=e.context.content,u=Cr(((O=s==null?void 0:s.meta)==null?void 0:O.breakpoints)||{}),p=i==null?void 0:i.large,S=i==null?void 0:i.medium,C=i==null?void 0:i.small,m=o.id;if(!m)return"";const R=p?ct({className:m,styles:p}):"",P=S?ct({className:m,styles:S,mediaQuery:qn("medium",u)}):"",E=C?ct({className:m,styles:C,mediaQuery:qn("small",u)}):"",b=o.animations&&o.animations.find(M=>M.trigger==="hover");let B="";if(b){const M=((X=(w=b.steps)==null?void 0:w[1])==null?void 0:X.styles)||{};B=ct({className:`${m}:hover`,styles:{...M,transition:`all ${b.duration}s ${Er(b.easing)}`,transitionDelay:b.delay?`${b.delay}s`:"0s"}})||""}return[R,P,E,B].join(" ")};return g.jsx(g.Fragment,{children:n()&&t()?g.jsx(g.Fragment,{children:g.jsx(vt,{id:"builderio-block",styles:n()})}):null})}function ai(e){return e.charAt(0).toUpperCase()+e.slice(1)}const si=e=>`on${ai(e)}`,li=(e,t)=>n=>yt({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:n,isExpression:!1,enableCache:!0});function ci(e){const t={},n=e.block.actions??{};for(const r in n){if(!n.hasOwnProperty(r))continue;const o=n[r];let i=si(r);if(e.stripPrefix)switch(he){case"vue":i=i.replace("v-on:","");break;case"svelte":i=i.replace("on:","");break}t[i]=li(o,e)}return t}function ui({properties:e}){return e}const fi=e=>({href:e.href});function Ir({block:e,context:t}){var r;const n={...fi(e),...e.properties,"builder-id":e.id,style:Zo({block:e,context:t}),[ht()]:[e.id,"builder-block",e.class,(r=e.properties)==null?void 0:r.class].filter(Boolean).join(" ")};return ui({properties:n,context:t,block:e})}const di=({componentOptions:e,builderBlock:t,context:n,componentRef:r,includeBlockProps:o,isInteractive:i,contextValue:s})=>{const u={...e,...o?{attributes:Ir({block:t,context:s})}:{}};return i?{Wrapper:r,block:t,context:n,wrapperProps:e,includeBlockProps:o}:u};function Qn(e){var n;const t=e.isInteractive?Q.InteractiveElement:e.componentRef;return g.jsx(g.Fragment,{children:e.componentRef?g.jsx(g.Fragment,{children:g.jsx(t,{...di({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:(n=e.blockChildren)==null?void 0:n.map(r=>g.jsx(bt,{block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},r.id))})}):null})}function pi(e){const t=e.repeatContext;return g.jsx(bt,{block:e.block,context:t,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent})}function bt(e){var p,S,C;const t=function(){return Qo({block:e.block,context:e.context,registeredComponents:e.registeredComponents})},n=function(){return ei({block:e.block,context:e.context})},r=function(){var R;return(R=e.block.repeat)!=null&&R.collection?e.block:dt({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0})},o=function(){var P;return e.block.tagName==="a"||((P=r().properties)==null?void 0:P.href)||r().href?e.linkComponent||"a":e.block.tagName||"div"},i=function(){var E,b;if((E=e.block.repeat)!=null&&E.collection)return!!((b=n())!=null&&b.length);const R="hide"in r()?r().hide:!1;return("show"in r()?r().show:!0)&&!R},s=function(){var P;return!((P=t())!=null&&P.component)&&!n()?r().children??[]:[]},u=function(){var R,P,E,b,B,O,w,X,M,ee;return{blockChildren:r().children??[],componentRef:(R=t())==null?void 0:R.component,componentOptions:{...bo(r()),builderContext:e.context,...((P=t())==null?void 0:P.name)==="Core:Button"||((E=t())==null?void 0:E.name)==="Symbol"||((b=t())==null?void 0:b.name)==="Columns"||((B=t())==null?void 0:B.name)==="Form:Form"?{builderLinkComponent:e.linkComponent}:{},...((O=t())==null?void 0:O.name)==="Symbol"||((w=t())==null?void 0:w.name)==="Columns"||((X=t())==null?void 0:X.name)==="Form:Form"?{builderComponents:e.registeredComponents}:{}},context:e.context,linkComponent:e.linkComponent,registeredComponents:e.registeredComponents,builderBlock:r(),includeBlockProps:((M=t())==null?void 0:M.noWrap)===!0,isInteractive:!((ee=t())!=null&&ee.isRSC)}};return g.jsx(g.Fragment,{children:i()?g.jsxs(g.Fragment,{children:[g.jsx(ii,{block:e.block,context:e.context}),(p=t())!=null&&p.noWrap?g.jsx(g.Fragment,{children:g.jsx(Qn,{componentRef:u().componentRef,componentOptions:u().componentOptions,blockChildren:u().blockChildren,context:u().context,registeredComponents:u().registeredComponents,linkComponent:u().linkComponent,builderBlock:u().builderBlock,includeBlockProps:u().includeBlockProps,isInteractive:u().isInteractive})}):g.jsx(g.Fragment,{children:n()?g.jsx(g.Fragment,{children:(C=n())==null?void 0:C.map((m,R)=>g.jsx(pi,{repeatContext:m.context,block:m.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},R))}):g.jsxs(Q.BlockWrapper,{Wrapper:o(),block:r(),context:e.context,linkComponent:e.linkComponent,children:[g.jsx(Qn,{componentRef:u().componentRef,componentOptions:u().componentOptions,blockChildren:u().blockChildren,context:u().context,registeredComponents:u().registeredComponents,linkComponent:u().linkComponent,builderBlock:u().builderBlock,includeBlockProps:u().includeBlockProps,isInteractive:u().isInteractive}),(S=s())==null?void 0:S.map(m=>g.jsx(bt,{block:m,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},m.id))]})})]}):null})}function xt(e){var t,n,r;return g.jsx(Q.BlocksWrapper,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:(t=e.context)==null?void 0:t.BlocksWrapper,BlocksWrapperProps:(n=e.context)==null?void 0:n.BlocksWrapperProps,children:e.blocks?g.jsx(g.Fragment,{children:(r=e.blocks)==null?void 0:r.map(o=>g.jsx(bt,{block:o,linkComponent:e.linkComponent,context:e.context,registeredComponents:e.registeredComponents},o.id))}):null})}function jr(e){var P;const t=typeof e.space=="number"?e.space||0:20,n=e.columns||[],r=e.stackColumnsAt||"tablet",o=function(b){var B;return((B=n[b])==null?void 0:B.width)||100/n.length},i=function(b){const B=t*(n.length-1)/n.length;return`calc(${o(b)}% - ${B}px)`},s=function({stackedStyle:b,desktopStyle:B}){return r==="tablet"?b:B},u=function({stackedStyle:b,desktopStyle:B}){return r==="never"?B:b},p=e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column",S=function(){return{"--flex-dir":p,"--flex-dir-tablet":s({stackedStyle:p,desktopStyle:"row"})}},C=function(b){const B=b===0?0:t,O=i(b),w=`${B}px`,X="100%",M=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:O,["marginLeft"]:w,"--column-width-mobile":u({stackedStyle:X,desktopStyle:O}),"--column-margin-left-mobile":u({stackedStyle:M,desktopStyle:w}),"--column-width-tablet":s({stackedStyle:X,desktopStyle:O}),"--column-margin-left-tablet":s({stackedStyle:M,desktopStyle:w})}},m=function(b){var O,w;return Cr(((w=(O=e.builderContext.content)==null?void 0:O.meta)==null?void 0:w.breakpoints)||{})[b].max},R=function(){return`
29
29
  @media (max-width: ${m("medium")}px) {
30
30
  .${e.builderBlock.id}-breakpoints {
31
31
  flex-direction: var(--flex-dir-tablet);
@@ -49,10 +49,10 @@ theFunction();
49
49
  margin-left: var(--column-margin-left-mobile) !important;
50
50
  }
51
51
  },
52
- `};return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:`builder-columns ${e.builderBlock.id}-breakpoints div-664216e4`,style:x(),children:[g.jsx(vt,{id:"builderio-columns",styles:O()}),(R=e.columns)==null?void 0:R.map((C,w)=>g.jsx(Z.DynamicRenderer,{TagName:C.link?e.builderLinkComponent||"a":"div",actionAttributes:{},attributes:{...C.link?{href:C.link}:{},[pt()]:"builder-column",style:wr(k(w))},children:g.jsx(xt,{path:`component.options.columns.${w}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:C.blocks})},w))]}),g.jsx("style",{children:`.div-664216e4 {
52
+ `};return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:`builder-columns ${e.builderBlock.id}-breakpoints div-664216e4`,style:S(),children:[g.jsx(vt,{id:"builderio-columns",styles:R()}),(P=e.columns)==null?void 0:P.map((E,b)=>g.jsx(Q.DynamicRenderer,{TagName:E.link?e.builderLinkComponent||"a":"div",actionAttributes:{},attributes:{...E.link?{href:E.link}:{},[ht()]:"builder-column",style:wr(C(b))},children:g.jsx(xt,{path:`component.options.columns.${b}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:E.blocks})},b))]}),g.jsx("style",{children:`.div-664216e4 {
53
53
  display: flex;
54
54
  line-height: normal;
55
- }`})]})}function Qn(e){return e.replace(/http(s)?:/,"")}function ci(e="",t,n){const r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=e.indexOf("?")!==-1?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+o+t+"="+encodeURIComponent(n)}function ui(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return Qn(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const r=e.split(n[0]),o=n[3],i=t.match("x")?t:`${t}x`;return Qn(`${r[0]}_${i}${o}`)}return null}function fi(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const r=Number(e.split("?width=")[1]);return isNaN(r)||(n=`${n} ${r}w`),t.filter(o=>o!==r).map(o=>`${ci(e,"width",o)} ${o}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[ui(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,r])=>`${n} ${r}w`).concat([e]).join(", "):e}const di=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){X.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},Tr=async e=>jr(e),pi=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(oe).join("; "),hi=[["secure",""],["SameSite","None"]],mi=({name:e,value:t,expires:n})=>{const o=(K()?location.protocol==="https:":!0)?hi:[[]],i=n?[["expires",n.toUTCString()]]:[[]],s=[[e,t],...i,["path","/"],["domain",di(window.location.hostname)],...o];return pi(s)},Ar=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=mi({name:e,value:t,expires:n});document.cookie=o}catch(o){X.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}},gi="builder.tests",un=e=>`${gi}.${e}`,yi=({contentId:e})=>Tr({name:un(e),canTrack:!0}),vi=({contentId:e})=>jr({name:un(e),canTrack:!0}),bi=({contentId:e,value:t})=>Ar({name:un(e),value:t,canTrack:!0}),Or=e=>oe(e.id)&&oe(e.variations)&&Object.keys(e.variations).length>0,xi=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const i in t){const s=(o=t[i])==null?void 0:o.testRatio;if(n+=s,r<n)return i}return e},Rr=e=>{const t=xi(e);return bi({contentId:e.id,value:t}).catch(n=>{X.error("could not store A/B test variation: ",n)}),t},Pr=({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":"")}},Si=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!Or(e))return e;const n=vi({contentId:e.id})||Rr({variations:e.variations,id:e.id}),r=Pr({item:e,testGroupId:n});return{...e,...r}},wi=async({item:e,canTrack:t})=>{if(!t||!Or(e))return e;const r=await yi({contentId:e.id})||Rr({variations:e.variations,id:e.id}),o=Pr({item:e,testGroupId:r});return{...e,...o}},dt=e=>oe(e)?e:!0,ki={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},Ci={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(r=>{r.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(o=>o.get("width"))&&(n.find(i=>!i.get("width"))||n.reduce((u,p)=>u+p.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},Ei={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Ii={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(s,u=6e4){return new Promise((p,x)=>{const k=document.createElement("img");let m=!1;k.onload=()=>{m=!0,p(k)},k.addEventListener("error",O=>{console.warn("Image load failed",O.error),x(O.error)}),k.src=s,setTimeout(()=>{m||x(new Error("Image load timed out"))},u)})}function r(s){return Math.round(s*1e3)/1e3}const o=e.get("image"),i=e.get("aspectRatio");if(fetch(o).then(s=>s.blob()).then(s=>{s.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!i||i===.7041))return n(o).then(s=>{const u=e.get("aspectRatio");e.get("image")===o&&(!u||u===.7041)&&s.width&&s.height&&(e.set("aspectRatio",r(s.height/s.width)),e.set("height",s.height),e.set("width",s.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"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}]},ji={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>"}}}]},Ti={name:"Slot",isRSC:!0,description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}]};function Ai(e){var t,n,r;return g.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:g.jsx(xt,{parent:(n=e.builderContext.context)==null?void 0:n.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,blocks:(r=e.builderContext.rootState)==null?void 0:r[e.name]})})}const Oi={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"}]},Ri={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 Nr(e){var t;return g.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const Pi={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}]},Ni={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}]},Fi=["text/javascript","application/javascript","application/ecmascript"],Bi=e=>Fi.includes(e.type),Ui={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},Mi={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},Vi=()=>[{component:Z.CustomCode,...Pi},{component:Z.Embed,...Ni},{component:Z.ImgComponent,...Ui},{component:Z.Video,...Mi}],er=()=>[{component:Z.Button,...ki},{component:Ir,...Ci},{component:Z.FragmentComponent,...Ei},{component:Z.Image,...Ii},{component:Z.SectionComponent,...ji},{component:Ai,...Ti},{component:qr,...Oi},{component:Nr,...Ri},...Vi()],Li=e=>({type:"builder.registerComponent",data:Yt(e)}),Di=e=>{const t=e.toString().trim();return`return (${!t.startsWith("function")&&!t.startsWith("(")?"function ":""}${t}).apply(this, arguments)`},_i=e=>typeof e=="function"?Di(e):Ze(e),Yt=({inputs:e,...t})=>({...Ze(t),inputs:e==null?void 0:e.map(n=>Object.entries(n).reduce((r,[o,i])=>({...r,[o]:_i(i)}),{}))}),Wi=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
55
+ }`})]})}function er(e){return e.replace(/http(s)?:/,"")}function hi(e="",t,n){const r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=e.indexOf("?")!==-1?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+o+t+"="+encodeURIComponent(n)}function mi(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return er(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const r=e.split(n[0]),o=n[3],i=t.match("x")?t:`${t}x`;return er(`${r[0]}_${i}${o}`)}return null}function gi(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const r=Number(e.split("?width=")[1]);return isNaN(r)||(n=`${n} ${r}w`),t.filter(o=>o!==r).map(o=>`${hi(e,"width",o)} ${o}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[mi(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,r])=>`${n} ${r}w`).concat([e]).join(", "):e}const yi=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},Tr=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(r){J.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},Ar=async e=>Tr(e),vi=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(oe).join("; "),bi=[["secure",""],["SameSite","None"]],xi=({name:e,value:t,expires:n})=>{const o=(K()?location.protocol==="https:":!0)?bi:[[]],i=n?[["expires",n.toUTCString()]]:[[]],s=[[e,t],...i,["path","/"],["domain",yi(window.location.hostname)],...o];return vi(s)},Or=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=xi({name:e,value:t,expires:n});document.cookie=o}catch(o){J.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}},Si="builder.tests",un=e=>`${Si}.${e}`,wi=({contentId:e})=>Ar({name:un(e),canTrack:!0}),ki=({contentId:e})=>Tr({name:un(e),canTrack:!0}),Ci=({contentId:e,value:t})=>Or({name:un(e),value:t,canTrack:!0}),Rr=e=>oe(e.id)&&oe(e.variations)&&Object.keys(e.variations).length>0,Ei=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const i in t){const s=(o=t[i])==null?void 0:o.testRatio;if(n+=s,r<n)return i}return e},Pr=e=>{const t=Ei(e);return Ci({contentId:e.id,value:t}).catch(n=>{J.error("could not store A/B test variation: ",n)}),t},Nr=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},Ii=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!Rr(e))return e;const n=ki({contentId:e.id})||Pr({variations:e.variations,id:e.id}),r=Nr({item:e,testGroupId:n});return{...e,...r}},ji=async({item:e,canTrack:t})=>{if(!t||!Rr(e))return e;const r=await wi({contentId:e.id})||Pr({variations:e.variations,id:e.id}),o=Nr({item:e,testGroupId:r});return{...e,...o}},pt=e=>oe(e)?e:!0,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},Ai={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(r=>{r.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(o=>o.get("width"))&&(n.find(i=>!i.get("width"))||n.reduce((u,p)=>u+p.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},Oi={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Ri={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(s,u=6e4){return new Promise((p,S)=>{const C=document.createElement("img");let m=!1;C.onload=()=>{m=!0,p(C)},C.addEventListener("error",R=>{console.warn("Image load failed",R.error),S(R.error)}),C.src=s,setTimeout(()=>{m||S(new Error("Image load timed out"))},u)})}function r(s){return Math.round(s*1e3)/1e3}const o=e.get("image"),i=e.get("aspectRatio");if(fetch(o).then(s=>s.blob()).then(s=>{s.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!i||i===.7041))return n(o).then(s=>{const u=e.get("aspectRatio");e.get("image")===o&&(!u||u===.7041)&&s.width&&s.height&&(e.set("aspectRatio",r(s.height/s.width)),e.set("height",s.height),e.set("width",s.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},Pi={name:"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>"}}}]},Ni={name:"Slot",isRSC:!0,description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}]};function Fi(e){var t,n,r;return g.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:g.jsx(xt,{parent:(n=e.builderContext.context)==null?void 0:n.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,blocks:(r=e.builderContext.rootState)==null?void 0:r[e.name]})})}const Bi={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},Ui={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}};function Fr(e){var t;return g.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const Mi={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}]},Vi={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}]},Di=["text/javascript","application/javascript","application/ecmascript"],Li=e=>Di.includes(e.type),_i={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},Wi={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},$i=()=>[{component:Q.CustomCode,...Mi},{component:Q.Embed,...Vi},{component:Q.ImgComponent,..._i},{component:Q.Video,...Wi}],tr=()=>[{component:Q.Button,...Ti},{component:jr,...Ai},{component:Q.FragmentComponent,...Oi},{component:Q.Image,...Ri},{component:Q.SectionComponent,...Pi},{component:Fi,...Ni},{component:Zr,...Bi},{component:Fr,...Ui},...$i()],Hi=e=>({type:"builder.registerComponent",data:Jt(e)}),Ki=e=>{const t=e.toString().trim();return`return (${!t.startsWith("function")&&!t.startsWith("(")?"function ":""}${t}).apply(this, arguments)`},Gi=e=>typeof e=="function"?Ki(e):Ze(e),Jt=({inputs:e,...t})=>({...Ze(t),inputs:e==null?void 0:e.map(n=>Object.entries(n).reduce((r,[o,i])=>({...r,[o]:Gi(i)}),{}))}),Xi=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
56
56
  function getAndSetVariantId() {
57
57
  function setCookie(name, value, days) {
58
58
  let expires = '';
@@ -108,7 +108,7 @@ theFunction();
108
108
  }).join('');
109
109
  styleEl.innerHTML = newStyleStr;
110
110
  }
111
- }`,$i=`function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
111
+ }`,Ji=`function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
112
112
  if (!navigator.cookieEnabled) {
113
113
  return;
114
114
  }
@@ -142,16 +142,16 @@ theFunction();
142
142
  thisScriptEl?.remove();
143
143
  }
144
144
  return;
145
- }`,Fr="builderIoAbTest",Br="builderIoRenderContent",ct=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),Hi=({canTrack:e,content:t})=>!(!(ct(t).length>0)||!e||K()),Ki=e=>e==="react"||e==="reactNative",Ur=Ki(he),Gi=()=>`
146
- window.${Fr} = ${Wi}
147
- window.${Br} = ${$i}
148
- `,Xi=(e,t)=>`
149
- window.${Fr}(
150
- "${t}",${JSON.stringify(e)}, ${Ur}
151
- )`,Ji=({contentId:e,variationId:t})=>`window.${Br}(
152
- "${t}", "${e}", ${Ur}
153
- )`;function zt(e){return g.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},"data-id":e.id})}const Yi=e=>{const t=e.get("preview"),n=e.get("overrides."+t);return n||X.warn("No previewed ID found in search params."),n};function Mr(){globalThis._BUILDER_PREVIEW_LRU_CACHE||(globalThis._BUILDER_PREVIEW_LRU_CACHE=new mo.LRUCache({max:500,ttl:1e3*60*5}))}function zi(e){Mr();const t=Yi(e);return typeof t=="string"?globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t):void 0}function qi(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function Zi(){const e=qi().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
154
- For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const Vr=Zi();function ut(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const i=e[o],s=[t,o].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...r,...ut(i,s,n)}:{...r,[s]:i}},{})}const Qi="v3",tr="builder.",ea="options.",fn=e=>{if(!e)return{};const t=ur(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(tr)){const o=r.replace(tr,"").replace(ea,"");n[o]=t[r]}}),n},ta=()=>{if(!K())return{};const e=new URLSearchParams(window.location.search);return fn(e)},nr=e=>typeof e=="number"&&!isNaN(e)&&e>=0,dn=e=>{const{limit:t=30,userAttributes:n,query:r,model:o,apiKey:i,enrich:s,locale:u,apiVersion:p=Qi,fields:x,omit:k,offset:m,cacheSeconds:O,staleCacheSeconds:R,sort:C,includeUnpublished:w}=e;if(!i)throw new Error("Missing API key");if(!["v3"].includes(p))throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);const B=t!==1,N=new URL(`https://cdn.builder.io/api/${p}/content/${o}`);if(N.searchParams.set("apiKey",i),N.searchParams.set("limit",String(t)),N.searchParams.set("noTraverse",String(B)),N.searchParams.set("includeRefs",String(!0)),u&&N.searchParams.set("locale",u),s&&N.searchParams.set("enrich",String(s)),N.searchParams.set("omit",k||"meta.componentsUsed"),x&&N.searchParams.set("fields",x),Number.isFinite(m)&&m>-1&&N.searchParams.set("offset",String(Math.floor(m))),typeof w=="boolean"&&N.searchParams.set("includeUnpublished",String(w)),O&&nr(O)&&N.searchParams.set("cacheSeconds",String(O)),R&&nr(R)&&N.searchParams.set("staleCacheSeconds",String(R)),C){const $=ut({sort:C});for(const ee in $)N.searchParams.set(ee,JSON.stringify($[ee]))}const E={...ta(),...ur(e.options||{})},Q=ut(E);for(const $ in Q)N.searchParams.set($,String(Q[$]));if(n&&N.searchParams.set("userAttributes",JSON.stringify(n)),r){const $=ut({query:r});for(const ee in $)N.searchParams.set(ee,JSON.stringify($[ee]))}return N},na=e=>"results"in e;async function pn(e){const t=await Dr({...e,limit:1});return t&&t[0]||null}const ra=async e=>{const t=dn(e);return await(await(e.fetch??Vr)(t.href,e.fetchOptions)).json()},Lr=async(e,t,n=dn(e))=>{const r=dt(e.canTrack);if(n.search.includes("preview=")){const i=[];for(const s of t.results){const u=zi(n.searchParams);i.push(u||s)}t.results=i}if(!r||!(K()||he==="reactNative"))return t.results;try{const i=[];for(const s of t.results)i.push(await wi({item:s,canTrack:r}));t.results=i}catch(i){X.error("Could not process A/B tests. ",i)}return t.results};async function Dr(e){try{const t=dn(e),n=await ra(e);return na(n)?Lr(e,n):(X.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return X.error("Error fetching data. ",t),null}}function oa(e){if(!K())return!1;const t=fr(e||window.location.search);return ht(t)?!1:t.indexOf("builder.preview=")!==-1}function ia(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function _r(){return ia().replace(/-/g,"")}const Wr="builderSessionId",aa=async({canTrack:e})=>{if(!e)return;const t=await Tr({name:Wr,canTrack:e});if(oe(t))return t;{const n=sa();return la({id:n,canTrack:e}),n}},sa=()=>_r(),la=({id:e,canTrack:t})=>Ar({name:Wr,value:e,canTrack:t}),$r=()=>K()&&typeof localStorage<"u"?localStorage:void 0,ca=({key:e,canTrack:t})=>{var n;try{return t?(n=$r())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},ua=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=$r())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},Hr="builderVisitorId",fa=({canTrack:e})=>{if(!e)return;const t=ca({key:Hr,canTrack:e});if(oe(t))return t;{const n=da();return pa({id:n,canTrack:e}),n}},da=()=>_r(),pa=({id:e,canTrack:t})=>ua({key:Hr,value:e,canTrack:t}),ha=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await aa({canTrack:e}),n=fa({canTrack:e});return{sessionId:t,visitorId:n}},ma=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await ha({canTrack:t}),userAttributes:dr(),ownerId:n}});async function Kr(e){if(!e.apiKey){X.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!ht()&&(K()||he==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await ma(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const ga=e=>Kr({...e,canTrack:!0});function rr(e){return Math.round(e*1e3)/1e3}const ya=(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},va=e=>ya(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),or=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=rr(r/n.width),s=rr(o/n.height);return{x:i,y:s}},ba=e=>{const t=e.target,n=t&&va(t),r=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:r||void 0,metadata:{targetOffset:t?or({event:e,target:t}):void 0,builderTargetOffset:n?or({event:e,target:n}):void 0,builderElementIndex:n&&r?[].slice.call(document.getElementsByClassName(r)).indexOf(n):void 0}}},xa=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function Gr(e,t){const n=new URL(t.origin),r=n.hostname;return(e||xa).findIndex(o=>o.startsWith("*.")?r.endsWith(o.slice(1)):o===r)>-1}const Sa="0.14.15",ir={};function Xr(e,t){let n=ir[e];if(n||(n=ir[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 wa=()=>{Xr("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 ar=!1;const Jr=(e={})=>{var t,n;ar||(ar=!0,K()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:he,version:Sa,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",r=>{var i,s;if(!Gr(e.trustedHosts,r))return;const{data:o}=r;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const u=o.data.text,p=o.data.arguments||[],x=o.data.id,k=new Function(u);let m,O=null;try{m=k.apply(null,p)}catch(R){O=R}O?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:x,error:O.message}},"*"):m&&typeof m.then=="function"?m.then(R=>{var C;(C=window.parent)==null||C.postMessage({type:"builder.evaluateResult",data:{id:x,result:R}},"*")}).catch(console.error):(s=window.parent)==null||s.postMessage({type:"builder.evaluateResult",data:{result:m,id:x}},"*");break}}})))},Yr=({model:e,trustedHosts:t,callbacks:n})=>r=>{if(!Gr(t,r))return;const{data:o}=r;if(o)switch(o.type){case"builder.configureSdk":{n.configureSdk(o.data);break}case"builder.triggerAnimation":{n.animation(o.data);break}case"builder.contentUpdate":{const i=o.data,s=i.key||i.alias||i.entry||i.modelName,u=i.data;s===e&&n.contentUpdate(u);break}}},ka=(e,t,n)=>{if(!K)return X.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};Jr();const r=Yr({callbacks:{contentUpdate:t,animation:()=>{},configureSdk:()=>{}},model:e,trustedHosts:n==null?void 0:n.trustedHosts});return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}};function sr(e,...t){const n=Object(e);for(let r=1;r<arguments.length;r++){const o=arguments[r];if(o!=null)for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n}const Ca=e=>e?e.replace(/([A-Z])/g,t=>`-${t[0].toLowerCase()}`):"";function Ea(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function Ia(e,t){const n=ja(e),r=getComputedStyle(t),o=e.steps[0].styles,i=e.steps[e.steps.length-1].styles,s=[o,i];for(const u of s)for(const p of n)p in u||(u[p]=r[p])}function ja(e){const t=[];for(const n of e.steps)for(const r in n.styles)t.indexOf(r)===-1&&t.push(r);return t}function Ta(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){Ea(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{Ia(e,n),n.style.transition="none",n.style.transitionDelay="0",sr(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${Ca(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),sr(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}const Aa=e=>{var i;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],r=e.fileUrl??((i=e==null?void 0:e.files)==null?void 0:i.regular);let o="";if(r&&t&&n&&(o+=`
145
+ }`,Br="builderIoAbTest",Ur="builderIoRenderContent",ut=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),Yi=({canTrack:e,content:t})=>!(!(ut(t).length>0)||!e||K()),zi=e=>e==="react"||e==="reactNative",Mr=zi(he),qi=()=>`
146
+ window.${Br} = ${Xi}
147
+ window.${Ur} = ${Ji}
148
+ `,Zi=(e,t)=>`
149
+ window.${Br}(
150
+ "${t}",${JSON.stringify(e)}, ${Mr}
151
+ )`,Qi=({contentId:e,variationId:t})=>`window.${Ur}(
152
+ "${t}", "${e}", ${Mr}
153
+ )`;function Yt(e){return g.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},"data-id":e.id})}const ea=e=>{const t=e.get("preview"),n=e.get("overrides."+t);return n||J.warn("No previewed ID found in search params."),n};function Vr(){globalThis._BUILDER_PREVIEW_LRU_CACHE||(globalThis._BUILDER_PREVIEW_LRU_CACHE=new go.LRUCache({max:500,ttl:1e3*60*5}))}function ta(e){Vr();const t=ea(e);return typeof t=="string"?globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t):void 0}function na(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function ra(){const e=na().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
154
+ For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const Dr=ra();function ft(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const i=e[o],s=[t,o].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...r,...ft(i,s,n)}:{...r,[s]:i}},{})}const oa="v3",nr="builder.",ia="options.",fn=e=>{if(!e)return{};const t=ur(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(nr)){const o=r.replace(nr,"").replace(ia,"");n[o]=t[r]}}),n},aa=()=>{if(!K())return{};const e=new URLSearchParams(window.location.search);return fn(e)},rr=e=>typeof e=="number"&&!isNaN(e)&&e>=0,dn=e=>{const{limit:t=30,userAttributes:n,query:r,model:o,apiKey:i,enrich:s,locale:u,apiVersion:p=oa,fields:S,omit:C,offset:m,cacheSeconds:R,staleCacheSeconds:P,sort:E,includeUnpublished:b}=e;if(!i)throw new Error("Missing API key");if(!["v3"].includes(p))throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);const B=t!==1,O=new URL(`https://cdn.builder.io/api/${p}/content/${o}`);if(O.searchParams.set("apiKey",i),O.searchParams.set("limit",String(t)),O.searchParams.set("noTraverse",String(B)),O.searchParams.set("includeRefs",String(!0)),u&&O.searchParams.set("locale",u),s&&O.searchParams.set("enrich",String(s)),O.searchParams.set("omit",C||"meta.componentsUsed"),S&&O.searchParams.set("fields",S),Number.isFinite(m)&&m>-1&&O.searchParams.set("offset",String(Math.floor(m))),typeof b=="boolean"&&O.searchParams.set("includeUnpublished",String(b)),R&&rr(R)&&O.searchParams.set("cacheSeconds",String(R)),P&&rr(P)&&O.searchParams.set("staleCacheSeconds",String(P)),E){const M=ft({sort:E});for(const ee in M)O.searchParams.set(ee,JSON.stringify(M[ee]))}const w={...aa(),...ur(e.options||{})},X=ft(w);for(const M in X)O.searchParams.set(M,String(X[M]));if(n&&O.searchParams.set("userAttributes",JSON.stringify(n)),r){const M=ft({query:r});for(const ee in M)O.searchParams.set(ee,JSON.stringify(M[ee]))}return O},sa=e=>"results"in e;async function pn(e){const t=await _r({...e,limit:1});return t&&t[0]||null}const la=async e=>{const t=dn(e);return await(await(e.fetch??Dr)(t.href,e.fetchOptions)).json()},Lr=async(e,t,n=dn(e))=>{const r=pt(e.canTrack);if(n.search.includes("preview=")){const i=[];for(const s of t.results){const u=ta(n.searchParams);i.push(u||s)}t.results=i}if(!r||!(K()||he==="reactNative"))return t.results;try{const i=[];for(const s of t.results)i.push(await ji({item:s,canTrack:r}));t.results=i}catch(i){J.error("Could not process A/B tests. ",i)}return t.results};async function _r(e){try{const t=dn(e),n=await la(e);return sa(n)?Lr(e,n):(J.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return J.error("Error fetching data. ",t),null}}function ca(e){const t=e||(K()?window.location.search:void 0);return t?fr(t).indexOf("builder.preview=")!==-1:!1}function ua(){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 Wr(){return ua().replace(/-/g,"")}const $r="builderSessionId",fa=async({canTrack:e})=>{if(!e)return;const t=await Ar({name:$r,canTrack:e});if(oe(t))return t;{const n=da();return pa({id:n,canTrack:e}),n}},da=()=>Wr(),pa=({id:e,canTrack:t})=>Or({name:$r,value:e,canTrack:t}),Hr=()=>K()&&typeof localStorage<"u"?localStorage:void 0,ha=({key:e,canTrack:t})=>{var n;try{return t?(n=Hr())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},ma=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=Hr())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},Kr="builderVisitorId",ga=({canTrack:e})=>{if(!e)return;const t=ha({key:Kr,canTrack:e});if(oe(t))return t;{const n=ya();return va({id:n,canTrack:e}),n}},ya=()=>Wr(),va=({id:e,canTrack:t})=>ma({key:Kr,value:e,canTrack:t}),ba=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await fa({canTrack:e}),n=ga({canTrack:e});return{sessionId:t,visitorId:n}},xa=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await ba({canTrack:t}),userAttributes:dr(),ownerId:n}});async function Gr(e){if(!e.apiKey){J.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!zt()&&(K()||he==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await xa(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const Sa=e=>Gr({...e,canTrack:!0});function or(e){return Math.round(e*1e3)/1e3}const wa=(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},ka=e=>wa(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),ir=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=or(r/n.width),s=or(o/n.height);return{x:i,y:s}},Ca=e=>{const t=e.target,n=t&&ka(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}}},Ea=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function Xr(e,t){const n=new URL(t.origin),r=n.hostname;return(e||Ea).findIndex(o=>o.startsWith("*.")?r.endsWith(o.slice(1)):o===r)>-1}const Ia="0.14.17",ar={};function Jr(e,t){let n=ar[e];if(n||(n=ar[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 ja=()=>{Jr("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let sr=!1;const Yr=(e={})=>{var t,n;sr||(sr=!0,K()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:he,version:Ia,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",r=>{var i,s;if(!Xr(e.trustedHosts,r))return;const{data:o}=r;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const u=o.data.text,p=o.data.arguments||[],S=o.data.id,C=new Function(u);let m,R=null;try{m=C.apply(null,p)}catch(P){R=P}R?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:S,error:R.message}},"*"):m&&typeof m.then=="function"?m.then(P=>{var E;(E=window.parent)==null||E.postMessage({type:"builder.evaluateResult",data:{id:S,result:P}},"*")}).catch(console.error):(s=window.parent)==null||s.postMessage({type:"builder.evaluateResult",data:{result:m,id:S}},"*");break}}})))},zr=({model:e,trustedHosts:t,callbacks:n})=>r=>{if(!Xr(t,r))return;const{data:o}=r;if(o)switch(o.type){case"builder.configureSdk":{n.configureSdk(o.data);break}case"builder.triggerAnimation":{n.animation(o.data);break}case"builder.contentUpdate":{const i=o.data,s=i.key||i.alias||i.entry||i.modelName,u=i.data;s===e&&n.contentUpdate(u);break}}},Ta=(e,t,n)=>{if(!K)return J.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};Yr();const r=zr({callbacks:{contentUpdate:t,animation:()=>{},configureSdk:()=>{}},model:e,trustedHosts:n==null?void 0:n.trustedHosts});return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},Aa=e=>{var i;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],r=e.fileUrl??((i=e==null?void 0:e.files)==null?void 0:i.regular);let o="";if(r&&t&&n&&(o+=`
155
155
  @font-face {
156
156
  font-family: "${t}";
157
157
  src: local("${n}"), url('${r}') format('woff2');
@@ -186,4 +186,4 @@ font-weight: ${s};
186
186
  ${Ra({cssCode:e.cssCode,contentId:e.contentId})}
187
187
  ${Oa({customFonts:e.customFonts})}
188
188
  ${Na(e.isNestedRender)}
189
- `.trim();return g.jsx(vt,{id:"builderio-content",styles:t})}const Ba=({content:e,data:t,locale:n})=>{var i,s,u;const r={},o=((i=e==null?void 0:e.data)==null?void 0:i.state)||{};return(u=(s=e==null?void 0:e.data)==null?void 0:s.inputs)==null||u.forEach(p=>{p.name&&p.defaultValue!==void 0&&(r[p.name]=p.defaultValue)}),{...r,...o,...t,...n?{locale:n}:{}}},Ua=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function lr(e){var o,i,s,u,p,x,k,m,O;const t=Ji({variationId:(o=e.content)==null?void 0:o.testVariationId,contentId:(i=e.content)==null?void 0:i.id}),n=[...er(),...e.customComponents||[]].reduce((R,{component:C,...w})=>({...R,[w.name]:{component:C,...Yt(w)}}),{}),r={content:Ua({content:e.content,data:e.data}),localState:void 0,rootState:Ba({content:e.content,data:e.data,locale:e.locale}),rootSetState:void 0,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...er(),...e.customComponents||[]].reduce((R,{component:C,...w})=>({...R,[w.name]:Yt(w)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{}};return g.jsxs(Z.EnableEditor,{content:e.content,data:e.data,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,showContent:e.showContent,builderContextSignal:r,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,linkComponent:e.linkComponent,trustedHosts:e.trustedHosts,children:[e.isSsrAbTest?g.jsx(zt,{id:"builderio-variant-visibility",scriptStr:t}):null,g.jsx(Fa,{isNestedRender:e.isNestedRender,contentId:(s=r.content)==null?void 0:s.id,cssCode:(p=(u=r.content)==null?void 0:u.data)==null?void 0:p.cssCode,customFonts:(k=(x=r.content)==null?void 0:x.data)==null?void 0:k.customFonts}),g.jsx(xt,{blocks:(O=(m=r.content)==null?void 0:m.data)==null?void 0:O.blocks,context:r,registeredComponents:n,linkComponent:e.linkComponent})]})}function zr(e){var i;const t=Hi({canTrack:dt(e.canTrack),content:e.content}),n=function(){var u;return Xi(ct(e.content).map(p=>({id:p.testVariationId,testRatio:p.testRatio})),((u=e.content)==null?void 0:u.id)||"")},r=function(){return ct(e.content).map(u=>`.variant-${u.testVariationId} { display: none; } `).join("")},o=function(){var u;return t?{...e.content,testVariationId:(u=e.content)==null?void 0:u.id}:Si({item:e.content,canTrack:dt(e.canTrack)})};return g.jsxs(g.Fragment,{children:[!e.isNestedRender&&he!=="reactNative"?g.jsx(zt,{id:"builderio-init-variants-fns",scriptStr:Gi()}):null,t?g.jsxs(g.Fragment,{children:[g.jsx(vt,{id:"builderio-variants",styles:r()}),g.jsx(zt,{id:"builderio-variants-visibility",scriptStr:n()}),(i=ct(e.content))==null?void 0:i.map(s=>g.jsx(lr,{isNestedRender:e.isNestedRender,content:s,showContent:!1,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},s.testVariationId))]}):null,g.jsx(lr,{isNestedRender:e.isNestedRender,content:o(),showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts})]})}const Ma=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return pn({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{X.error("Could not fetch symbol content: ",n)})};async function qr(e){var r,o,i,s,u;const t=function(){var x,k;return[e.attributes[pt()],"builder-symbol",(x=e.symbol)!=null&&x.inline?"builder-inline-symbol":void 0,(k=e.symbol)!=null&&k.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},n=((r=e.symbol)==null?void 0:r.content)||await Ma({symbol:e.symbol,builderContextValue:e.builderContext});return g.jsx("div",{...e.attributes,className:t(),children:g.jsx(zr,{isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(o=e.builderBlock)==null?void 0:o.id},customComponents:Object.values(e.builderComponents),data:{...(i=e.symbol)==null?void 0:i.data,...e.builderContext.localState,...(s=n==null?void 0:n.data)==null?void 0:s.state},model:(u=e.symbol)==null?void 0:u.model,content:n,linkComponent:e.builderLinkComponent,blocksWrapper:"div",contentWrapper:"div"})})}const cr={};function Va(e){if(K()){Object.assign(cr,e);const t={type:"builder.settingsChange",data:cr};parent.postMessage(t,"*")}}const La=async e=>{var r,o,i;const t=e.path||((r=e.url)==null?void 0:r.pathname)||((o=e.userAttributes)==null?void 0:o.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:fn(e.searchParams||((i=e.url)==null?void 0:i.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await pn(n)}};exports.Blocks=xt;exports.Columns=Ir;exports.ContentVariants=zr;exports.Symbol=qr;exports.Text=Nr;exports._processContentResult=Lr;exports._track=Kr;exports.createEditorListener=Yr;exports.createRegisterComponentMessage=Li;exports.evaluate=yt;exports.fastClone=Ze;exports.fetch=Vr;exports.fetchBuilderProps=La;exports.fetchEntries=Dr;exports.fetchOneEntry=pn;exports.getBlockActions=oi;exports.getBlockProperties=Er;exports.getBuilderSearchParams=fn;exports.getClassPropName=pt;exports.getDefaultCanTrack=dt;exports.getInteractionPropertiesForEvent=ba;exports.getSrcSet=fi;exports.init=Mr;exports.isBrowser=K;exports.isEditing=ht;exports.isEmptyElement=yo;exports.isJsScript=Bi;exports.isPreviewing=oa;exports.logger=X;exports.register=Xr;exports.registerInsertMenu=wa;exports.setEditorSettings=Va;exports.setupBrowserForEditing=Jr;exports.subscribeToEditor=ka;exports.track=ga;exports.triggerAnimation=Ta;
189
+ `.trim();return g.jsx(vt,{id:"builderio-content",styles:t})}const Ba=({content:e,data:t,locale:n})=>{var i,s,u;const r={},o=((i=e==null?void 0:e.data)==null?void 0:i.state)||{};return(u=(s=e==null?void 0:e.data)==null?void 0:s.inputs)==null||u.forEach(p=>{p.name&&p.defaultValue!==void 0&&(r[p.name]=p.defaultValue)}),{...r,...o,...t,...n?{locale:n}:{}}},Ua=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function lr(e){var o,i,s,u,p,S,C,m,R;const t=Qi({variationId:(o=e.content)==null?void 0:o.testVariationId,contentId:(i=e.content)==null?void 0:i.id}),n=[...tr(),...e.customComponents||[]].reduce((P,{component:E,...b})=>({...P,[b.name]:{component:E,...Jt(b)}}),{}),r={content:Ua({content:e.content,data:e.data}),localState:void 0,rootState:Ba({content:e.content,data:e.data,locale:e.locale}),rootSetState:void 0,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...tr(),...e.customComponents||[]].reduce((P,{component:E,...b})=>({...P,[b.name]:Jt(b)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{}};return g.jsxs(Q.EnableEditor,{content:e.content,data:e.data,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,showContent:e.showContent,builderContextSignal:r,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,linkComponent:e.linkComponent,trustedHosts:e.trustedHosts,children:[e.isSsrAbTest?g.jsx(Yt,{id:"builderio-variant-visibility",scriptStr:t}):null,g.jsx(Fa,{isNestedRender:e.isNestedRender,contentId:(s=r.content)==null?void 0:s.id,cssCode:(p=(u=r.content)==null?void 0:u.data)==null?void 0:p.cssCode,customFonts:(C=(S=r.content)==null?void 0:S.data)==null?void 0:C.customFonts}),g.jsx(xt,{blocks:(R=(m=r.content)==null?void 0:m.data)==null?void 0:R.blocks,context:r,registeredComponents:n,linkComponent:e.linkComponent})]})}function qr(e){var i;const t=Yi({canTrack:pt(e.canTrack),content:e.content}),n=function(){var u;return Zi(ut(e.content).map(p=>({id:p.testVariationId,testRatio:p.testRatio})),((u=e.content)==null?void 0:u.id)||"")},r=function(){return ut(e.content).map(u=>`.variant-${u.testVariationId} { display: none; } `).join("")},o=function(){var u;return t?{...e.content,testVariationId:(u=e.content)==null?void 0:u.id}:Ii({item:e.content,canTrack:pt(e.canTrack)})};return g.jsxs(g.Fragment,{children:[!e.isNestedRender&&he!=="reactNative"?g.jsx(Yt,{id:"builderio-init-variants-fns",scriptStr:qi()}):null,t?g.jsxs(g.Fragment,{children:[g.jsx(vt,{id:"builderio-variants",styles:r()}),g.jsx(Yt,{id:"builderio-variants-visibility",scriptStr:n()}),(i=ut(e.content))==null?void 0:i.map(s=>g.jsx(lr,{isNestedRender:e.isNestedRender,content:s,showContent:!1,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},s.testVariationId))]}):null,g.jsx(lr,{isNestedRender:e.isNestedRender,content:o(),showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts})]})}const Ma=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return pn({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{J.error("Could not fetch symbol content: ",n)})};async function Zr(e){var r,o,i,s,u;const t=function(){var S,C;return[e.attributes[ht()],"builder-symbol",(S=e.symbol)!=null&&S.inline?"builder-inline-symbol":void 0,(C=e.symbol)!=null&&C.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},n=((r=e.symbol)==null?void 0:r.content)||await Ma({symbol:e.symbol,builderContextValue:e.builderContext});return g.jsx("div",{...e.attributes,className:t(),children:g.jsx(qr,{isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(o=e.builderBlock)==null?void 0:o.id},customComponents:Object.values(e.builderComponents),data:{...(i=e.symbol)==null?void 0:i.data,...e.builderContext.localState,...(s=n==null?void 0:n.data)==null?void 0:s.state},model:(u=e.symbol)==null?void 0:u.model,content:n,linkComponent:e.builderLinkComponent,blocksWrapper:"div",contentWrapper:"div"})})}const cr={};function Va(e){if(K()){Object.assign(cr,e);const t={type:"builder.settingsChange",data:cr};parent.postMessage(t,"*")}}const Da=async e=>{var r,o,i;const t=e.path||((r=e.url)==null?void 0:r.pathname)||((o=e.userAttributes)==null?void 0:o.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:fn(e.searchParams||((i=e.url)==null?void 0:i.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await pn(n)}};exports.Blocks=xt;exports.Columns=jr;exports.ContentVariants=qr;exports.Symbol=Zr;exports.Text=Fr;exports._processContentResult=Lr;exports._track=Gr;exports.createEditorListener=zr;exports.createRegisterComponentMessage=Hi;exports.evaluate=yt;exports.fastClone=Ze;exports.fetch=Dr;exports.fetchBuilderProps=Da;exports.fetchEntries=_r;exports.fetchOneEntry=pn;exports.getBlockActions=ci;exports.getBlockProperties=Ir;exports.getBuilderSearchParams=fn;exports.getClassPropName=ht;exports.getDefaultCanTrack=pt;exports.getInteractionPropertiesForEvent=Ca;exports.getSrcSet=gi;exports.init=Vr;exports.isBrowser=K;exports.isEditing=zt;exports.isEmptyElement=vo;exports.isJsScript=Li;exports.isPreviewing=ca;exports.logger=J;exports.register=Jr;exports.registerInsertMenu=ja;exports.setEditorSettings=Va;exports.setupBrowserForEditing=Yr;exports.subscribeToEditor=Ta;exports.track=Sa;exports.triggerAnimation=oi;