@builder.io/sdk-vue 5.2.10 → 5.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{awaiter-LIAqEcfX.cjs → awaiter-MAyQwJUp.cjs} +1 -1
- package/lib/browser/{awaiter-NXhCBvJj.js → awaiter-quz2SFrg.js} +1 -1
- package/lib/browser/{block-wrapper-sJgW-hxB.js → block-wrapper-SCckT0M5.js} +3 -3
- package/lib/browser/{block-wrapper-Gx5cmGCs.cjs → block-wrapper-vBu_Ygm8.cjs} +1 -1
- package/lib/browser/{component-ref-glX9-8fW.cjs → component-ref-HWBSC66Y.cjs} +1 -1
- package/lib/browser/{component-ref-3CB2cdJW.js → component-ref-owc3e0h8.js} +4 -4
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +3 -0
- package/lib/browser/components/content/content.vue.d.ts +3 -0
- package/lib/browser/components/content-variants/content-variants.types.d.ts +8 -0
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/get-content/types.d.ts +27 -0
- package/lib/browser/{get-block-properties-Ejar3KRa.js → get-block-properties-Hny6jqGG.js} +1 -1
- package/lib/browser/{get-block-properties-hkrxv2Yw.cjs → get-block-properties-odFddSWh.cjs} +1 -1
- package/lib/browser/{index-bjZ2qhB0.js → index-7bXAC1Q8.js} +442 -432
- package/lib/browser/index-uDRmkrr4.cjs +350 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-Sfr-FIGs.cjs → live-edit-AUagAEej.cjs} +1 -1
- package/lib/browser/{live-edit-BGWSQRf6.js → live-edit-x4eHrcJh.js} +1 -1
- package/lib/browser/{repeated-block-y2NflOf1.cjs → repeated-block-ZGXPYgA8.cjs} +1 -1
- package/lib/browser/{repeated-block-ECd9zh7f.js → repeated-block-uVi8A50N.js} +2 -2
- package/lib/browser/scripts/init-editing.d.ts +2 -0
- package/lib/browser/{style-wrapper-PR2ys7tw.cjs → style-wrapper-C_c9B5_Y.cjs} +1 -1
- package/lib/browser/{style-wrapper-9OtEbIRY.js → style-wrapper-usFESjt5.js} +1 -1
- package/lib/edge/{awaiter-Rk0bT_z6.js → awaiter-RSfMls5f.js} +1 -1
- package/lib/edge/{awaiter-NONmvwQ6.cjs → awaiter-zow2zgzw.cjs} +1 -1
- package/lib/{node/block-wrapper-ZBxys5Pi.cjs → edge/block-wrapper-4qKpWsP8.cjs} +1 -1
- package/lib/edge/{block-wrapper-bLEVePe1.js → block-wrapper-GT2d4luN.js} +3 -3
- package/lib/edge/{component-ref-wRsXuO0w.js → component-ref-1iPK0xOE.js} +4 -4
- package/lib/edge/{component-ref-hvv1-QnL.cjs → component-ref-WdOIbmOU.cjs} +1 -1
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +3 -0
- package/lib/edge/components/content/content.vue.d.ts +3 -0
- package/lib/edge/components/content-variants/content-variants.types.d.ts +8 -0
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/get-content/types.d.ts +27 -0
- package/lib/edge/{get-block-properties-Z_smIxVv.cjs → get-block-properties-2E03ld67.cjs} +1 -1
- package/lib/edge/{get-block-properties-kcXTpefp.js → get-block-properties-bMVCvUX0.js} +1 -1
- package/lib/edge/{index-jT889Kr4.js → index-Bgm0yCrN.js} +1001 -991
- package/lib/edge/index-LWGIJNVx.cjs +368 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-T7SWvgRt.cjs → edge/live-edit-oLYhcuYs.cjs} +1 -1
- package/lib/{node/live-edit-7Qru52il.js → edge/live-edit-tegdYGJO.js} +1 -1
- package/lib/edge/{repeated-block-ocRd-7Ri.cjs → repeated-block--MhEsXmR.cjs} +1 -1
- package/lib/edge/{repeated-block-XfL9MY4H.js → repeated-block-yZJM5I60.js} +2 -2
- package/lib/edge/scripts/init-editing.d.ts +2 -0
- package/lib/edge/{style-wrapper-TUi2oGU5.cjs → style-wrapper-8JiLG-FF.cjs} +1 -1
- package/lib/edge/{style-wrapper-cgk8YrFm.js → style-wrapper-i8R7NpdY.js} +1 -1
- package/lib/node/{awaiter-d876EVrj.cjs → awaiter-Vwjft2v-.cjs} +1 -1
- package/lib/node/{awaiter-ooRB0LL_.js → awaiter-o3ynOQKr.js} +1 -1
- package/lib/{edge/block-wrapper-uQolhWhZ.cjs → node/block-wrapper-KX1-Y2Oq.cjs} +1 -1
- package/lib/node/{block-wrapper-heMQ0bQW.js → block-wrapper-PUFgSKq_.js} +3 -3
- package/lib/node/{component-ref-w7KWdZU9.js → component-ref-HmJKie9z.js} +5 -5
- package/lib/node/{component-ref-HjW6Dn5U.cjs → component-ref-o3vjSyAQ.cjs} +1 -1
- package/lib/node/components/content/components/enable-editor.vue.d.ts +3 -0
- package/lib/node/components/content/content.vue.d.ts +3 -0
- package/lib/node/components/content-variants/content-variants.types.d.ts +8 -0
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/get-content/types.d.ts +27 -0
- package/lib/node/{get-block-properties-G6DNp62v.cjs → get-block-properties-2yGkQVh7.cjs} +1 -1
- package/lib/node/{get-block-properties-kLYkiFmS.js → get-block-properties-DGfMhs4M.js} +2 -2
- package/lib/node/index-7xT7wMXt.cjs +350 -0
- package/lib/node/{index-quPzSfMY.js → index-JQgNoVXs.js} +392 -382
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-UREQGwDx.js → node/live-edit-hxNZMHld.js} +1 -1
- package/lib/{edge/live-edit-euz6qyjO.cjs → node/live-edit-xPik2aUh.cjs} +1 -1
- package/lib/node/{repeated-block-iHvrQwik.cjs → repeated-block-LHiXlO3e.cjs} +1 -1
- package/lib/node/{repeated-block-h_P0vHI5.js → repeated-block-PvGSbsHD.js} +2 -2
- package/lib/node/scripts/init-editing.d.ts +2 -0
- package/lib/node/{should-force-browser-runtime-in-node-ovD5c_br.cjs → should-force-browser-runtime-in-node-aeKfQiEQ.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-cuIgr-IV.js → should-force-browser-runtime-in-node-ooRgTwqs.js} +1 -1
- package/lib/node/{style-wrapper-arJdhPdR.cjs → style-wrapper-3l8xaVr4.cjs} +1 -1
- package/lib/node/{style-wrapper-MI0wKmtS.js → style-wrapper-U-7exIwN.js} +2 -2
- package/package.json +1 -1
- package/lib/browser/index-SRaav2aL.cjs +0 -350
- package/lib/edge/index-TqjgraOe.cjs +0 -368
- package/lib/node/index-a8iqYi5t.cjs +0 -350
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
"use strict";const s=require("vue"),_o=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),Jo=e=>typeof e=="string"&&_o.has(e.toLowerCase());function ne(e={},t,n){const r={};for(const o in e){if(!e[o]||n&&!o.startsWith(t))continue;const i=n?o.replace(t,""):o;r[i]=e[o]}return r}const Xo=s.defineComponent({name:"dynamic-renderer",props:["TagName","attributes","actionAttributes"],data(){return{isEmptyElement:Jo}}}),O=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};function Yo(e,t,n,r,o,i){return e.isEmptyElement(e.TagName)?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.TagName),s.mergeProps({key:1},e.attributes,s.toHandlers(e.actionAttributes)),null,16)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[typeof e.TagName=="string"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.TagName),s.mergeProps({key:0},e.attributes,s.toHandlers(e.actionAttributes)),{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default")]),_:3},16)):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.TagName),s.mergeProps({key:1},e.attributes,s.toHandlers(e.actionAttributes)),{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default")]),_:3},16))],64))}const hn=O(Xo,[["render",Yo]]),Qo=Object.freeze(Object.defineProperty({__proto__:null,default:hn},Symbol.toStringTag,{value:"Module"})),W="vue",ye=()=>{switch(W){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}},Zo=s.defineComponent({name:"builder-button",components:{DynamicRenderer:hn},props:["attributes","link","openLinkInNewTab","builderLinkComponent","text"],data(){return{filterAttrs:ne}},methods:{attrs(){return{...ne(this.attributes,"v-on:",!1),[ye()]:`${this.link?"":"builder-button"} ${this.attributes[ye()]||""}`,...this.link?{href:this.link,target:this.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}}});function ei(e,t,n,r,o,i){const a=s.resolveComponent("DynamicRenderer");return s.openBlock(),s.createBlock(a,{attributes:e.attrs(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:e.filterAttrs(e.attributes,"v-on:",!0)},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(e.text),1)]),_:1},8,["attributes","TagName","actionAttributes"])}const Or=O(Zo,[["render",ei]]),ti=Symbol(),bt={Builder:{content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{},nonce:"",model:""},key:ti},ni=Symbol(),Nr={Components:{registeredComponents:{}},key:ni},ht="[Builder.io]: ",ee={log:(...e)=>console.log(ht,...e),error:(...e)=>console.error(ht,...e),warn:(...e)=>console.warn(ht,...e),debug:(...e)=>console.debug(ht,...e)},Vr=(e,t,n)=>{const r=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((o,i)=>o!=null?o[i]:o,e);return r===void 0||r===e?n:r};function U(){return typeof window<"u"&&typeof document<"u"}const ri=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},jr=e=>e instanceof URLSearchParams?ri(e):e,Dr=e=>typeof e=="string"?e:e instanceof URLSearchParams?e.toString():new URLSearchParams(e).toString();function oi(){return U()&&window.self!==window.top}function G(e){return oi()&&Dr(e||window.location.search).indexOf("builder.frameEditing=")!==-1}const ii=()=>{if(U()){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},si=()=>typeof navigator=="object"&&navigator.userAgent||"",Ur=()=>{const e=si(),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()||W==="reactNative"}},n=e.match(/Tablet|iPad/i),r=ii();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"}},Fr="5.2.11",Wr=()=>({"X-Builder-SDK":W,"X-Builder-SDK-GEN":"2","X-Builder-SDK-Version":Fr}),ve=e=>e!=null,ai=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},Et=({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){ee.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},Lr=async e=>Et(e),li=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(ve).join("; "),ci=[["secure",""],["SameSite","None"]],ui=({name:e,value:t,expires:n})=>{const o=(U()?location.protocol==="https:":!0)?ci:[[]],i=n?[["expires",n.toUTCString()]]:[[]],a=[[e,t],...i,["path","/"],["domain",ai(window.location.hostname)],...o];return li(a)},gn=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=ui({name:e,value:t,expires:n});document.cookie=o}catch(o){ee.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}};function pi(){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 Mr(){return pi().replace(/-/g,"")}const Hr="builderSessionId",di=async({canTrack:e})=>{if(!e)return;const t=await Lr({name:Hr,canTrack:e});if(ve(t))return t;{const n=mi();return fi({id:n,canTrack:e}),n}},mi=()=>Mr(),fi=({id:e,canTrack:t})=>gn({name:Hr,value:e,canTrack:t}),zr=()=>U()&&typeof localStorage<"u"?localStorage:void 0,hi=({key:e,canTrack:t})=>{var n;try{return t?(n=zr())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},gi=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=zr())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},Kr="builderVisitorId",yi=({canTrack:e})=>{if(!e)return;const t=hi({key:Kr,canTrack:e});if(ve(t))return t;{const n=vi();return bi({id:n,canTrack:e}),n}},vi=()=>Mr(),bi=({id:e,canTrack:t})=>gi({key:Kr,value:e,canTrack:t});function yn(e){var t;typeof process<"u"&&((t=process.env)!=null&&t.DEBUG)&&String(process.env.DEBUG)=="true"&&ee.log(e)}const ki=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await di({canTrack:e}),n=yi({canTrack:e});return{sessionId:t,visitorId:n}},Si=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await ki({canTrack:t}),userAttributes:Ur(),ownerId:n}});async function kt({apiHost:e,...t}){if(!t.apiKey){ee.error("Missing API key for track call. Please provide your API key.");return}if(!t.canTrack||G()||!(U()||W==="reactNative"))return;const r=`${e||"https://cdn.builder.io"}/api/v1/track`;return yn(r),fetch(r,{method:"POST",body:JSON.stringify({events:[await Si(t)]}),headers:{"content-type":"application/json",...Wr()},mode:"cors"}).catch(o=>{console.error("Failed to track: ",o)})}const Ci=e=>kt({...e,canTrack:!0}),qr=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),wi=e=>({isEditing:G(),isBrowser:U(),isServer:!U(),getUserAttributes:()=>Ur(),trackConversion:(t,n)=>{!(e!=null&&e.apiKey)||(e==null?void 0:e.canTrack)===!1||kt({type:"conversion",apiKey:e.apiKey,canTrack:e.canTrack??!0,contentId:e.contentId,variationId:e.variationId!==e.contentId?e.variationId:void 0,metadata:{...n||{},...t!==void 0?{amount:t}:{}}})}}),Ei=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e;function vn({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?vn({rootState:i,localState:void 0,rootSetState:n?a=>{r[o]=a,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 Ti=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:i,rootState:a})=>{const u=qr({builder:t,context:n,event:r,state:vn({rootState:a,localState:o,rootSetState:i})});return new Function(...u.map(([p])=>p),e)(...u.map(([,p])=>p))};var V,Ii=function(e){function t(l){return 48>l?l===36:58>l?!0:65>l?!1:91>l?!0:97>l?l===95:123>l?!0:170<=l&&qo.test(String.fromCharCode(l))}function n(l){return 65>l?l===36:91>l?!0:97>l?l===95:123>l?!0:170<=l&&fr.test(String.fromCharCode(l))}function r(l,c){for(var d=S,f=1,P=0;;){ft.lastIndex=P;var z=ft.exec(d);if(z&&z.index<l)++f,P=z.index+z[0].length;else break}throw d={line:f,ab:l-P},c+=" ("+d.line+":"+d.ab+")",c=new SyntaxError(c),c.j=l,c.X=d,c.o=m,c}function o(l){l=l.split(" ");for(var c=Object.create(null),d=0;d<l.length;d++)c[l[d]]=!0;return function(f){return c[f]||!1}}function i(){this.line=Te,this.ab=m-pe}function a(l,c){Re=m,$.C&&(Ut=new i),A=l,p(),ie=c,Me=l.m}function u(){for(var l=m,c=$.va&&$.C&&new i,d=S.charCodeAt(m+=2);m<Be&&d!==10&&d!==13&&d!==8232&&d!==8233;)++m,d=S.charCodeAt(m);$.va&&$.va(!1,S.slice(l+2,m),l,m,c,$.C&&new i)}function p(){for(;m<Be;){var l=S.charCodeAt(m);if(l===32)++m;else if(l===13)++m,l=S.charCodeAt(m),l===10&&++m,$.C&&(++Te,pe=m);else if(l===10||l===8232||l===8233)++m,$.C&&(++Te,pe=m);else if(8<l&&14>l)++m;else if(l===47)if(l=S.charCodeAt(m+1),l===42){l=void 0;var c=$.va&&$.C&&new i,d=m,f=S.indexOf("*/",m+=2);if(f===-1&&r(m-2,"Unterminated comment"),m=f+2,$.C)for(ft.lastIndex=d;(l=ft.exec(S))&&l.index<m;)++Te,pe=l.index+l[0].length;$.va&&$.va(!0,S.slice(d+2,f),d,m,c,$.C&&new i)}else if(l===47)u();else break;else if(l===160)++m;else if(5760<=l&&Ko.test(String.fromCharCode(l)))++m;else break}}function g(l){switch(l){case 46:l=S.charCodeAt(m+1),48<=l&&57>=l?B(!0):(++m,a(sr));return;case 40:return++m,a(de);case 41:return++m,a(le);case 59:return++m,a(me);case 44:return++m,a(Se);case 91:return++m,a(_t);case 93:return++m,a(Jt);case 123:return++m,a(Ke);case 125:return++m,a(Pe);case 58:return++m,a(qe);case 63:return++m,a(ar);case 48:if(l=S.charCodeAt(m+1),l===120||l===88){m+=2,l=k(16),l===null&&r(H+2,"Expected hexadecimal number"),n(S.charCodeAt(m))&&r(m,"Identifier directly after number"),a(ze,l);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return B(!1);case 34:case 39:m++;for(var c="";;){m>=Be&&r(H,"Unterminated string constant");var d=S.charCodeAt(m);if(d===l){++m,a(ut,c);break}if(d===92){d=S.charCodeAt(++m);var f=/^[0-7]+/.exec(S.slice(m,m+3));for(f&&(f=f[0]);f&&255<parseInt(f,8);)f=f.slice(0,-1);if(f==="0"&&(f=null),++m,f)te&&r(m-2,"Octal literal in strict mode"),c+=String.fromCharCode(parseInt(f,8)),m+=f.length-1;else switch(d){case 110:c+=`
|
|
2
|
+
`;break;case 114:c+="\r";break;case 120:c+=String.fromCharCode(R(2));break;case 117:c+=String.fromCharCode(R(4));break;case 85:c+=String.fromCharCode(R(8));break;case 116:c+=" ";break;case 98:c+="\b";break;case 118:c+="\v";break;case 102:c+="\f";break;case 48:c+="\0";break;case 13:S.charCodeAt(m)===10&&++m;case 10:$.C&&(pe=m,++Te);break;default:c+=String.fromCharCode(d)}}else d!==13&&d!==10&&d!==8232&&d!==8233||r(H,"Unterminated string constant"),c+=String.fromCharCode(d),++m}return;case 47:l=S.charCodeAt(m+1),Me?(++m,h()):l===61?b(Ie,2):b(lr,1);return;case 37:case 42:S.charCodeAt(m+1)===61?b(Ie,2):b(Mo,1);return;case 124:case 38:c=S.charCodeAt(m+1),c===l?b(l===124?pr:dr,2):c===61?b(Ie,2):b(l===124?Vo:Do,1);return;case 94:S.charCodeAt(m+1)===61?b(Ie,2):b(jo,1);return;case 43:case 45:c=S.charCodeAt(m+1),c===l?c===45&&S.charCodeAt(m+2)===62&&mt.test(S.slice(ke,m))?(m+=3,u(),p(),y()):b(No,2):c===61?b(Ie,2):b(Lo,1);return;case 60:case 62:c=S.charCodeAt(m+1),d=1,c===l?(d=l===62&&S.charCodeAt(m+2)===62?3:2,S.charCodeAt(m+d)===61?b(Ie,d+1):b(Wo,d)):c===33&&l===60&&S.charCodeAt(m+2)===45&&S.charCodeAt(m+3)===45?(m+=4,u(),p(),y()):(c===61&&(d=S.charCodeAt(m+2)===61?3:2),b(Fo,d));return;case 61:case 33:S.charCodeAt(m+1)===61?b(Uo,S.charCodeAt(m+2)===61?3:2):b(l===61?cr:ur,1);return;case 126:return b(ur,1)}return!1}function y(l){if(l?m=H+1:H=m,$.C&&(Dt=new i),l)return h();if(m>=Be)return a(Lt);if(l=S.charCodeAt(m),n(l)||l===92)return q();if(g(l)===!1){if(l=String.fromCharCode(l),l==="\\"||fr.test(l))return q();r(m,"Unexpected character '"+l+"'")}}function b(l,c){var d=S.slice(m,m+c);m+=c,a(l,d)}function h(){for(var l,c,d=m;;){m>=Be&&r(d,"Unterminated regexp");var f=S.charAt(m);if(mt.test(f)&&r(d,"Unterminated regexp"),l)l=!1;else{if(f==="[")c=!0;else if(f==="]"&&c)c=!1;else if(f==="/"&&!c)break;l=f==="\\"}++m}l=S.slice(d,m),++m,(c=D())&&!/^[gmi]*$/.test(c)&&r(d,"Invalid regexp flag");try{var P=new RegExp(l,c)}catch(z){throw z instanceof SyntaxError&&r(d,z.message),z}a(Ln,P)}function k(l,c){for(var d=m,f=0,P=c===void 0?1/0:c,z=0;z<P;++z){var Y=S.charCodeAt(m);if(Y=97<=Y?Y-97+10:65<=Y?Y-65+10:48<=Y&&57>=Y?Y-48:1/0,Y>=l)break;++m,f=f*l+Y}return m===d||c!==void 0&&m-d!==c?null:f}function B(l){var c=m,d=!1,f=S.charCodeAt(m)===48;l||k(10)!==null||r(c,"Invalid number"),S.charCodeAt(m)===46&&(++m,k(10),d=!0),l=S.charCodeAt(m),(l===69||l===101)&&(l=S.charCodeAt(++m),l!==43&&l!==45||++m,k(10)===null&&r(c,"Invalid number"),d=!0),n(S.charCodeAt(m))&&r(m,"Identifier directly after number"),l=S.slice(c,m);var P;d?P=parseFloat(l):f&&l.length!==1?/[89]/.test(l)||te?r(c,"Invalid number"):P=parseInt(l,8):P=parseInt(l,10),a(ze,P)}function R(l){return l=k(16,l),l===null&&r(H,"Bad character escape sequence"),l}function D(){$e=!1;for(var l,c=!0,d=m;;){var f=S.charCodeAt(m);if(t(f))$e&&(l+=S.charAt(m)),++m;else if(f===92){$e||(l=S.slice(d,m)),$e=!0,S.charCodeAt(++m)!==117&&r(m,"Expecting Unicode escape sequence \\uXXXX"),++m,f=R(4);var P=String.fromCharCode(f);P||r(m-1,"Invalid Unicode escape"),(c?n(f):t(f))||r(m-4,"Invalid Unicode escape"),l+=P}else break;c=!1}return $e?l:S.slice(d,m)}function q(){var l=D(),c=Ae;!$e&&zo(l)&&(c=Oo[l]),a(c,l)}function T(){Ft=H,ke=Re,Wt=Ut,y()}function re(l){if(te=l,m=H,$.C)for(;m<pe;)pe=S.lastIndexOf(`
|
|
3
|
+
`,pe-2)+1,--Te;p(),y()}function N(){this.type=null,this.start=H,this.end=null}function ae(){this.start=Dt,this.end=null,jt&&(this.source=jt)}function F(){var l=new N;return $.C&&(l.X=new ae),$.vb&&(l.sourceFile=$.vb),$.Xa&&(l.j=[H,0]),l}function X(l){var c=new N;return c.start=l.start,$.C&&(c.X=new ae,c.X.start=l.X.start),$.Xa&&(c.j=[l.j[0],0]),c}function w(l,c){return l.type=c,l.end=ke,$.C&&(l.X.end=Wt),$.Xa&&(l.j[1]=ke),l}function oe(l){return l.type==="ExpressionStatement"&&l.la.type==="Literal"&&l.la.value==="use strict"}function j(l){return A===l?(T(),!0):!1}function at(){return!$.fc&&(A===Lt||A===Pe||mt.test(S.slice(ke,H)))}function Ee(){j(me)||at()||ce()}function L(l){A===l?T():ce()}function ce(){r(H,"Unexpected token")}function lt(l){l.type!=="Identifier"&&l.type!=="MemberExpression"&&r(l.start,"Assigning to rvalue"),te&&l.type==="Identifier"&&dt(l.name)&&r(l.start,"Assigning to "+l.name+" in strict mode")}function se(){(A===lr||A===Ie&&ie==="/=")&&y(!0);var l=A,c=F();switch(l){case Mt:case Hn:T();var d=l===Mt;j(me)||at()?c.label=null:A!==Ae?ce():(c.label=ue(),Ee());for(var f=0;f<M.length;++f){var P=M[f];if((c.label===null||P.name===c.label.name)&&(P.kind!==null&&(d||P.kind==="loop")||c.label&&d))break}return f===M.length&&r(c.start,"Unsyntactic "+l.l),w(c,d?"BreakStatement":"ContinueStatement");case zn:return T(),Ee(),w(c,"DebuggerStatement");case qn:return T(),M.push(Xt),c.body=se(),M.pop(),L(Gt),c.test=Fe(),Ee(),w(c,"DoWhileStatement");case Jn:return T(),M.push(Xt),L(de),A===me?Pt(c,null):A===qt?(l=F(),T(),Fn(l,!0),w(l,"VariableDeclaration"),l.fa.length===1&&j(pt)?Un(c,l):Pt(c,l)):(l=J(!1,!0),j(pt)?(lt(l),Un(c,l)):Pt(c,l));case zt:return T(),Nt(c,!0);case Xn:return T(),c.test=Fe(),c.da=se(),c.alternate=j(Gn)?se():null,w(c,"IfStatement");case Yn:return He||$.Ib||r(H,"'return' outside of function"),T(),j(me)||at()?c.K=null:(c.K=J(),Ee()),w(c,"ReturnStatement");case Kt:for(T(),c.Qb=Fe(),c.tb=[],L(Ke),M.push(Go);A!==Pe;)A===Ht||A===Kn?(l=A===Ht,f&&w(f,"SwitchCase"),c.tb.push(f=F()),f.da=[],T(),l?f.test=J():(d&&r(Ft,"Multiple default clauses"),d=!0,f.test=null),L(qe)):(f||ce(),f.da.push(se()));return f&&w(f,"SwitchCase"),T(),M.pop(),w(c,"SwitchStatement");case Qn:return T(),mt.test(S.slice(ke,H))&&r(ke,"Illegal newline after throw"),c.K=J(),Ee(),w(c,"ThrowStatement");case Zn:return T(),c.block=We(),c.Ea=null,A===Mn&&(l=F(),T(),L(de),l.Ua=ue(),te&&dt(l.Ua.name)&&r(l.Ua.start,"Binding "+l.Ua.name+" in strict mode"),L(le),l.body=We(),c.Ea=w(l,"CatchClause")),c.fb=j(_n)?We():null,c.Ea||c.fb||r(c.start,"Missing catch or finally clause"),w(c,"TryStatement");case qt:return T(),Fn(c),Ee(),w(c,"VariableDeclaration");case Gt:return T(),c.test=Fe(),M.push(Xt),c.body=se(),M.pop(),w(c,"WhileStatement");case er:return te&&r(H,"'with' in strict mode"),T(),c.object=Fe(),c.body=se(),w(c,"WithStatement");case Ke:return We();case me:return T(),w(c,"EmptyStatement");default:if(d=ie,P=J(),l===Ae&&P.type==="Identifier"&&j(qe)){for(f=0;f<M.length;++f)M[f].name===d&&r(P.start,"Label '"+d+"' is already declared");return M.push({name:d,kind:A.W?"loop":A===Kt?"switch":null}),c.body=se(),M.pop(),c.label=P,w(c,"LabeledStatement")}return c.la=P,Ee(),w(c,"ExpressionStatement")}}function Fe(){L(de);var l=J();return L(le),l}function We(l){var c=F(),d=!0,f=!1;for(c.body=[],L(Ke);!j(Pe);){var P=se();if(c.body.push(P),d&&l&&oe(P)){var z=f;re(f=!0)}d=!1}return f&&!z&&re(!1),w(c,"BlockStatement")}function Pt(l,c){return l.ua=c,L(me),l.test=A===me?null:J(),L(me),l.update=A===le?null:J(),L(le),l.body=se(),M.pop(),w(l,"ForStatement")}function Un(l,c){return l.left=c,l.right=J(),L(le),l.body=se(),M.pop(),w(l,"ForInStatement")}function Fn(l,c){for(l.fa=[],l.kind="var";;){var d=F();if(d.id=ue(),te&&dt(d.id.name)&&r(d.id.start,"Binding "+d.id.name+" in strict mode"),d.ua=j(cr)?J(!0,c):null,l.fa.push(w(d,"VariableDeclarator")),!j(Se))break}}function J(l,c){var d=$t(c);if(!l&&A===Se){for(l=X(d),l.xb=[d];j(Se);)l.xb.push($t(c));return w(l,"SequenceExpression")}return d}function $t(l){var c=xt(Ot(),-1,l);if(j(ar)){var d=X(c);d.test=c,d.da=J(!0),L(qe),d.alternate=J(!0,l),c=w(d,"ConditionalExpression")}return A.Cb?(d=X(c),d.operator=ie,d.left=c,T(),d.right=$t(l),lt(c),w(d,"AssignmentExpression")):c}function xt(l,c,d){var f=A.L;if(f!==null&&(!d||A!==pt)&&f>c){var P=X(l);return P.left=l,P.operator=ie,l=A,T(),P.right=xt(Ot(),f,d),f=w(P,l===pr||l===dr?"LogicalExpression":"BinaryExpression"),xt(f,c,d)}return l}function Ot(){if(A.prefix){var l=F(),c=A.$b;return l.operator=ie,Me=l.prefix=!0,T(),l.K=Ot(),c?lt(l.K):te&&l.operator==="delete"&&l.K.type==="Identifier"&&r(l.start,"Deleting local variable in strict mode"),w(l,c?"UpdateExpression":"UnaryExpression")}for(c=Le(ct());A.cc&&!at();)l=X(c),l.operator=ie,l.prefix=!1,l.K=c,lt(c),T(),c=w(l,"UpdateExpression");return c}function Le(l,c){if(j(sr)){var d=X(l);return d.object=l,d.Wa=ue(!0),d.bb=!1,Le(w(d,"MemberExpression"),c)}return j(_t)?(d=X(l),d.object=l,d.Wa=J(),d.bb=!0,L(Jt),Le(w(d,"MemberExpression"),c)):!c&&j(de)?(d=X(l),d.callee=l,d.arguments=Vt(le,!1),Le(w(d,"CallExpression"),c)):l}function ct(){switch(A){case nr:var l=F();return T(),w(l,"ThisExpression");case Ae:return ue();case ze:case ut:case Ln:return l=F(),l.value=ie,l.raw=S.slice(H,Re),T(),w(l,"Literal");case rr:case or:case ir:return l=F(),l.value=A.$a,l.raw=A.l,T(),w(l,"Literal");case de:l=Dt;var c=H;T();var d=J();return d.start=c,d.end=Re,$.C&&(d.X.start=l,d.X.end=Ut),$.Xa&&(d.j=[c,Re]),L(le),d;case _t:return l=F(),T(),l.elements=Vt(Jt,!0,!0),w(l,"ArrayExpression");case Ke:for(l=F(),c=!0,d=!1,l.h=[],T();!j(Pe);){if(c)c=!1;else if(L(Se),$.sb&&j(Pe))break;var f={key:A===ze||A===ut?ct():ue(!0)},P=!1;if(j(qe)){f.value=J(!0);var z=f.kind="init"}else f.key.type!=="Identifier"||f.key.name!=="get"&&f.key.name!=="set"?ce():(P=d=!0,z=f.kind=f.key.name,f.key=A===ze||A===ut?ct():ue(!0),A!==de&&ce(),f.value=Nt(F(),!1));if(f.key.type==="Identifier"&&(te||d))for(var Y=0;Y<l.h.length;++Y){var xe=l.h[Y];if(xe.key.name===f.key.name){var Yt=z===xe.kind||P&&xe.kind==="init"||z==="init"&&(xe.kind==="get"||xe.kind==="set");Yt&&!te&&z==="init"&&xe.kind==="init"&&(Yt=!1),Yt&&r(f.key.start,"Redefinition of property")}}l.h.push(f)}return w(l,"ObjectExpression");case zt:return l=F(),T(),Nt(l,!1);case tr:return l=F(),T(),l.callee=Le(ct(),!0),l.arguments=j(de)?Vt(le,!1):xo,w(l,"NewExpression")}ce()}function Nt(l,c){A===Ae?l.id=ue():c?ce():l.id=null,l.oa=[];var d=!0;for(L(de);!j(le);)d?d=!1:L(Se),l.oa.push(ue());d=He;var f=M;if(He=!0,M=[],l.body=We(!0),He=d,M=f,te||l.body.body.length&&oe(l.body.body[0])){for(d=l.id?-1:0;d<l.oa.length;++d)if(f=0>d?l.id:l.oa[d],(mr(f.name)||dt(f.name))&&r(f.start,"Defining '"+f.name+"' in strict mode"),0<=d)for(var P=0;P<d;++P)f.name===l.oa[P].name&&r(f.start,"Argument name clash in strict mode")}return w(l,c?"FunctionDeclaration":"FunctionExpression")}function Vt(l,c,d){for(var f=[],P=!0;!j(l);){if(P)P=!1;else if(L(Se),c&&$.sb&&j(l))break;f.push(d&&A===Se?null:J(!0))}return f}function ue(l){var c=F();return l&&$.yb==="everywhere"&&(l=!1),A===Ae?(!l&&($.yb&&Ho(ie)||te&&mr(ie))&&S.slice(H,Re).indexOf("\\")===-1&&r(H,"The keyword '"+ie+"' is reserved"),c.name=ie):l&&A.l?c.name=A.l:ce(),Me=!1,T(),w(c,"Identifier")}e.version="0.5.0";var $,S="",Be,jt;e.parse=function(l,c){S=String(l),Be=S.length,$=c||{};for(var d in Wn)Object.prototype.hasOwnProperty.call($,d)||($[d]=Wn[d]);for(jt=$.sourceFile,Te=1,m=pe=0,Me=!0,p(),d=$.dc,Ft=ke=m,$.C&&(Wt=new i),He=te=!1,M=[],y(),l=d||F(),c=!0,d||(l.body=[]);A!==Lt;)d=se(),l.body.push(d),c&&oe(d)&&re(!0),c=!1;return w(l,"Program")};var Wn={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},m=0,H=0,Re=0,Dt,Ut,A,ie,Me,Te,pe,Ft=0,ke=0,Wt,He,M,te,xo=[],ze={type:"num"},Ln={type:"regexp"},ut={type:"string"},Ae={type:"name"},Lt={type:"eof"},Mt={l:"break"},Ht={l:"case",m:!0},Mn={l:"catch"},Hn={l:"continue"},zn={l:"debugger"},Kn={l:"default"},qn={l:"do",W:!0},Gn={l:"else",m:!0},_n={l:"finally"},Jn={l:"for",W:!0},zt={l:"function"},Xn={l:"if"},Yn={l:"return",m:!0},Kt={l:"switch"},Qn={l:"throw",m:!0},Zn={l:"try"},qt={l:"var"},Gt={l:"while",W:!0},er={l:"with"},tr={l:"new",m:!0},nr={l:"this"},rr={l:"null",$a:null},or={l:"true",$a:!0},ir={l:"false",$a:!1},pt={l:"in",L:7,m:!0},Oo={break:Mt,case:Ht,catch:Mn,continue:Hn,debugger:zn,default:Kn,do:qn,else:Gn,finally:_n,for:Jn,function:zt,if:Xn,return:Yn,switch:Kt,throw:Qn,try:Zn,var:qt,while:Gt,with:er,null:rr,true:or,false:ir,new:tr,in:pt,instanceof:{l:"instanceof",L:7,m:!0},this:nr,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},_t={type:"[",m:!0},Jt={type:"]"},Ke={type:"{",m:!0},Pe={type:"}"},de={type:"(",m:!0},le={type:")"},Se={type:",",m:!0},me={type:";",m:!0},qe={type:":",m:!0},sr={type:"."},ar={type:"?",m:!0},lr={L:10,m:!0},cr={Cb:!0,m:!0},Ie={Cb:!0,m:!0},No={cc:!0,prefix:!0,$b:!0},ur={prefix:!0,m:!0},pr={L:1,m:!0},dr={L:2,m:!0},Vo={L:3,m:!0},jo={L:4,m:!0},Do={L:5,m:!0},Uo={L:6,m:!0},Fo={L:7,m:!0},Wo={L:8,m:!0},Lo={L:9,prefix:!0,m:!0},Mo={L:10,m:!0},Ho=o("class enum extends super const export import"),mr=o("implements interface let package private protected public static yield"),dt=o("eval arguments"),zo=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"),Ko=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,fr=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),qo=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),mt=/[\n\r\u2028\u2029]/,ft=/\r\n|[\n\r\u2028\u2029]/g,$e,Xt={kind:"loop"},Go={kind:"switch"}},rn=rn=typeof globalThis>"u"?void 0:globalThis;Ii(rn.j||(rn.j={}));function v(e,t){typeof e=="string"&&(e=Ne(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,a;for(a in this)typeof this[a]=="function"&&(i=a.match(e))&&(this.rb[i[1]]=this[a].bind(this));this.N=sn(this,this.ra,null),this.Na=this.N.object,this.ra=Ne(this.ba.join(`
|
|
4
|
+
`),"polyfills"),this.ba=void 0,Tt(this.ra),i=new E(this.ra,this.N),i.done=!1,this.o=[i],this.Eb(),this.value=void 0,this.ra=r,i=new E(this.ra,this.N),i.done=!1,this.o.length=0,this.o[0]=i}var hr={C:!0,kc:5},bn={configurable:!0,enumerable:!0,writable:!1},C={configurable:!0,enumerable:!1,writable:!0},Z={configurable:!0,enumerable:!1,writable:!1},Ge={configurable:!1,enumerable:!1,writable:!1},gr={configurable:!1,enumerable:!0,writable:!0},Gr={STEP_ERROR:!0},De={SCOPE_REFERENCE:!0},tt={VALUE_IN_DESCRIPTOR:!0},Oe={REGEXP_TIMEOUT:!0},yr=[],he=null,Qe=null,Ce=typeof globalThis>"u"?void 0:globalThis,Bi=["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 kn(e){var t=e>>>0;return t===Number(e)?t:NaN}function Ze(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function Tt(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"&&Tt(o,t,n)}}v.prototype.REGEXP_MODE=2;v.prototype.REGEXP_THREAD_TIMEOUT=1e3;v.prototype.POLYFILL_TIMEOUT=1e3;V=v.prototype;V.P=!1;V.Ka=!1;V.Kb=0;V.ic=0;function Ne(e,t){var n={},r;for(r in hr)n[r]=hr[r];return n.sourceFile=t,Ce.j.parse(e,n)}V.Jb=function(e){var t=this.o[0];if(!t||t.node.type!=="Program")throw Error("Expecting original AST to start with a Program node");if(typeof e=="string"&&(e=Ne(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");nt(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};V.lb=function(){var e=this.o,t;do{var n=e[e.length-1];if(this.za)break;if(!n||n.node.type==="Program"&&n.done){if(!this.ca.length)return!1;if(n=this.ca[0],!n||n.time>Date.now())n=null;else{this.ca.shift(),0<=n.interval&&Xr(this,n,n.interval);var r=new E(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=Qe;Qe=this;try{var i=this.rb[r.type](e,n,r)}catch(a){if(a!==Gr)throw this.value!==a&&(this.value=void 0),a}finally{Qe=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};V.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Ri(e,t){e.g(t,"NaN",NaN,Ge),e.g(t,"Infinity",1/0,Ge),e.g(t,"undefined",void 0,Ge),e.g(t,"window",t,bn),e.g(t,"this",t,Ge),e.g(t,"self",t),e.M=new x(null),e.Z=new x(e.M),Ai(e,t),Pi(e,t),t.xa=e.M,e.g(t,"constructor",e.v,C),$i(e,t),xi(e,t),Oi(e,t),Ni(e,t),Vi(e,t),ji(e,t),Di(e,t),Ui(e,t),Fi(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,C),e.g(t,"parseInt",e.i(parseInt,!1),C),e.g(t,"parseFloat",e.i(parseFloat,!1),C),e.g(t,"isNaN",e.i(isNaN,!1),C),e.g(t,"isFinite",e.i(isFinite,!1),C);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(a){try{return i(a)}catch(u){I(e,e.Gb,u.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),C);n=function(i){return vr(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),C),n=function(i){return vr(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),C),n=function(i){br(e,i)},e.g(t,"clearTimeout",e.i(n,!1),C),n=function(i){br(e,i)},e.g(t,"clearInterval",e.i(n,!1),C),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)}V.Wb=0;function Ai(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){var i=arguments.length?String(arguments[arguments.length-1]):"",a=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(a){a=a.split(/\s*,\s*/);for(var u=0;u<a.length;u++){var p=a[u];n.test(p)||I(e,e.T,"Invalid function argument: "+p)}a=a.join(", ")}try{var g=Ne("(function("+a+") {"+i+"})","function"+e.Wb++)}catch(y){I(e,e.T,"Invalid code: "+y.message)}return g.body.length!==1&&I(e,e.T,"Invalid code in function body"),wn(e,g.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,C),e.g(e.O,"prototype",e.Z,C),e.g(e.Z,"constructor",e.O,C),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 a=e.o[e.o.length-1];a.U=this,a.B=o,a.F=[],i!=null&&(i instanceof x?a.F=_r(e,i):I(e,e.j,"CreateListFromArrayLike called on non-object")),a.eb=!1},K(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 a=1;a<arguments.length;a++)i.F.push(arguments[a]);i.eb=!1},K(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)},K(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),C),r=function(){return this.valueOf()},K(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),C)}function Pi(e,t){function n(o){o!=null||I(e,e.j,"Cannot convert '"+o+"' to object")}var r=function(o){if(o==null)return be(e)?this:e.s(e.M);if(!(o instanceof x)){var i=e.s(ge(e,o));return i.data=o,i}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,C),e.g(e.M,"constructor",e.v,C),e.g(t,"Object",e.v,C),r=function(o){return n(o),fe(e,Object.getOwnPropertyNames(o instanceof x?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),C),r=function(o){return n(o),o instanceof x&&(o=o.h),fe(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),C),r=function(o){return o===null?e.s(null):(o instanceof x||I(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),C),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,a){return i=String(i),o instanceof x||I(e,e.j,"Object.defineProperty called on non-object: "+o),a instanceof x||I(e,e.j,"Property description must be an object"),!o.preventExtensions||i in o.h||I(e,e.j,"Can't define property '"+i+"', object is not extensible"),e.g(o,i,tt,a.h),o},e.g(e.v,"defineProperty",e.i(r,!1),C),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 x||I(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),i=String(i),i in o.h){var a=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",a.value),e.g(i,"writable",a.writable)),e.g(i,"configurable",a.configurable),e.g(i,"enumerable",a.enumerable),i}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),C),r=function(o){return n(o),ge(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),C),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),C),r=function(o){return o instanceof x&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),C),K(e,e.v,"toString",x.prototype.toString),K(e,e.v,"toLocaleString",x.prototype.toString),K(e,e.v,"valueOf",x.prototype.valueOf),r=function(o){return n(this),this instanceof x?String(o)in this.h:this.hasOwnProperty(o)},K(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof x?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},K(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=ge(e,o),!o)return!1;if(o===this)return!0}},K(e,e.v,"isPrototypeOf",r)}function $i(e,t){var n=function(r){var o=be(e)?this:Ve(e),i=arguments[0];if(arguments.length===1&&typeof i=="number")isNaN(kn(i))&&I(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,C),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),C),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 xi(e,t){var n=function(r){return r=arguments.length?Ce.String(r):"",be(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,C),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),C),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)K(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(a){I(e,e.D,"localeCompare: "+a.message)}},K(e,e.J,"localeCompare",n),n=function(r,o,i){var a=String(this);if(o=o?Number(o):void 0,_(e,r,e.I)&&(r=r.data,Je(e,r,i),e.REGEXP_MODE===2)){if(he)r=_e(e,"string.split(separator, limit)",{string:a,separator:r,limit:o},r,i),r!==Oe&&i(fe(e,r));else{var u=e.ha(),p=Xe(e,r,u,i);u.onmessage=function(g){clearTimeout(p),i(fe(e,g.data))},u.postMessage(["split",a,r,o])}return}r=a.split(r,o),i(fe(e,r))},Ye(e,e.J,"split",n),n=function(r,o){var i=String(this);if(r=_(e,r,e.I)?r.data:new RegExp(r),Je(e,r,o),e.REGEXP_MODE===2)if(he)r=_e(e,"string.match(regexp)",{string:i,regexp:r},r,o),r!==Oe&&o(r&&fe(e,r));else{var a=e.ha(),u=Xe(e,r,a,o);a.onmessage=function(p){clearTimeout(u),o(p.data&&fe(e,p.data))},a.postMessage(["match",i,r])}else r=i.match(r),o(r&&fe(e,r))},Ye(e,e.J,"match",n),n=function(r,o){var i=String(this);if(_(e,r,e.I)?r=r.data:r=new RegExp(r),Je(e,r,o),e.REGEXP_MODE===2)if(he)r=_e(e,"string.search(regexp)",{string:i,regexp:r},r,o),r!==Oe&&o(r);else{var a=e.ha(),u=Xe(e,r,a,o);a.onmessage=function(p){clearTimeout(u),o(p.data)},a.postMessage(["search",i,r])}else o(i.search(r))},Ye(e,e.J,"search",n),n=function(r,o,i){var a=String(this);if(o=String(o),_(e,r,e.I)&&(r=r.data,Je(e,r,i),e.REGEXP_MODE===2)){if(he)r=_e(e,"string.replace(substr, newSubstr)",{string:a,substr:r,newSubstr:o},r,i),r!==Oe&&i(r);else{var u=e.ha(),p=Xe(e,r,u,i);u.onmessage=function(g){clearTimeout(p),i(g.data)},u.postMessage(["replace",a,r,o])}return}i(a.replace(r,o))},Ye(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 Oi(e,t){e.mb=e.i(function(n){return n=Ce.Boolean(n),be(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,C)}function Ni(e,t){var n=function(r){return r=arguments.length?Ce.Number(r):0,be(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,C),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]],Ge);n=function(r){try{return Number(this).toExponential(r)}catch(o){I(e,e.D,o.message)}},K(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){I(e,e.D,o.message)}},K(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){I(e,e.D,o.message)}},K(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){I(e,e.D,o.message)}},K(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){I(e,e.D,"toLocaleString: "+i.message)}},K(e,e.aa,"toLocaleString",n)}function Vi(e,t){var n=function(o,i){if(!be(e))return Ce.Date();var a=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(Ce.Date,a)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,C),e.g(e.$,"now",e.i(Date.now,!1),C),e.g(e.$,"parse",e.i(Date.parse,!1),C),e.g(e.$,"UTC",e.i(Date.UTC,!1),C),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 a=this.data;a instanceof Date||I(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 a[o].apply(a,u)}}(t[r]),K(e,e.$,t[r],n)}function ji(e,t){var n=function(r,o){if(be(e))var i=this;else{if(o===void 0&&_(e,r,e.I))return r;i=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||I(e,e.T,"Invalid regexp flag: "+o);try{var a=new Ce.RegExp(r,o)}catch(u){I(e,e.T,u.message)}return Sn(e,i,a),i};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,C),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(y){if(y){var b=fe(e,y);return e.g(b,"index",y.index),e.g(b,"input",y.input),b}return null}var a=this.data;if(r=String(r),a.lastIndex=Number(e.G(this,"lastIndex")),Je(e,a,o),e.REGEXP_MODE===2)if(he)r=_e(e,"regexp.exec(string)",{string:r,regexp:a},a,o),r!==Oe&&(e.g(this,"lastIndex",a.lastIndex),o(i(r)));else{var u=e.ha(),p=Xe(e,a,u,o),g=this;u.onmessage=function(y){clearTimeout(p),e.g(g,"lastIndex",y.data[1]),o(i(y.data[0]))},u.postMessage(["exec",a,a.lastIndex,r])}else r=a.exec(r),e.g(this,"lastIndex",a.lastIndex),o(i(r))},Ye(e,e.I,"exec",n)}function Di(e,t){function n(r){var o=e.i(function(i){var a=be(e)?this:e.Aa(o);return on(e,a,i),a},!0);return e.g(o,"prototype",e.Aa(e.D),C),e.g(o.h.prototype,"name",r,C),e.g(t,r,o,C),o}e.D=e.i(function(r){var o=be(e)?this:e.Aa(e.D);return on(e,o,r),o},!0),e.g(t,"Error",e.D,C),e.g(e.D.h.prototype,"message","",C),e.g(e.D.h.prototype,"name","Error",C),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function Ui(e,t){var n=e.s(e.M);e.g(t,"Math",n,C);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),C)}function Fi(e,t){var n=e.s(e.M);e.g(t,"JSON",n,C),t=function(r){try{var o=JSON.parse(String(r))}catch(i){I(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"?I(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=_r(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 a=JSON.stringify(r,o,i)}catch(u){I(e,e.j,u.message)}return a},e.g(n,"stringify",e.i(t,!1))}function _(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=ge(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function Sn(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,C),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 on(e,t,n){n&&e.g(t,"message",String(n),C),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],i=o.node;i.type==="CallExpression"&&(o=o.U)&&n.length&&(n[n.length-1].Ob=e.G(o,"name")),!i.X||n.length&&i.type!=="CallExpression"||n.push({Nb:i.X})}for(r=String(e.G(t,"name")),i=String(e.G(t,"message")),i=r+": "+i+`
|
|
5
|
+
`,r=0;r<n.length;r++){var a=n[r].Nb;o=n[r].Ob,a=a.source+":"+a.start.line+":"+a.start.ab,i=o?i+(" at "+o+" ("+a+`)
|
|
6
|
+
`):i+(" at "+a+`
|
|
7
|
+
`)}e.g(t,"stack",i.trim(),C)}V.ha=function(){var e=this.ha.Mb;return e||(e=new Blob([Bi.join(`
|
|
8
|
+
`)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function _e(e,t,n,r,o){var i={timeout:e.REGEXP_THREAD_TIMEOUT};try{return he.runInNewContext(t,n,i)}catch{o(null),I(e,e.D,"RegExp Timeout: "+r)}return Oe}function Je(e,t,n){if(e.REGEXP_MODE===0)var r=!1;else if(e.REGEXP_MODE===1)r=!0;else if(he)r=!0;else if(typeof Worker=="function"&&typeof URL=="function")r=!0;else if(typeof require=="function"){try{he=require("vm")}catch{}r=!!he}else r=!1;r||(n(null),I(e,e.D,"Regular expressions not supported: "+t))}function Xe(e,t,n,r){return setTimeout(function(){n.terminate(),r(null);try{I(e,e.D,"RegExp Timeout: "+t)}catch{}},e.REGEXP_THREAD_TIMEOUT)}V.Aa=function(e){return this.s(e&&e.h.prototype)};V.s=function(e){if(typeof e!="object")throw Error("Non object prototype");return e=new x(e),_(this,e,this.D)&&(e.H="Error"),e};function Ve(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function Cn(e,t,n){var r=e.s(e.Z);return n?(n=e.s(e.M),e.g(r,"prototype",n,C),e.g(n,"constructor",r,C)):r.Ab=!0,e.g(r,"length",t,Z),r.H="Function",r}function wn(e,t,n,r){var o=Cn(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}V.i=function(e,t){return t=Cn(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,Z),t};V.ub=function(e){var t=Cn(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,Z),t};V.Ia=function(e){if(e instanceof x)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 Sn(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=Ve(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};V.R=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof x))throw Error("Object is not pseudo");if(_(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(_(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),_(this,e,this.qa)){n=[],t.Sa.push(n);for(var r=this.G(e,"length"),o=0;o<r;o++)It(this,e,o)&&(n[o]=this.R(this.G(e,o),t))}else for(r in n={},t.Sa.push(n),e.h)o=this.R(e.h[r],t),Object.defineProperty(n,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),n};function fe(e,t){for(var n=Ve(e),r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++)e.g(n,r[o],t[r[o]]);return n}function _r(e,t){var n=[],r;for(r in t.h)n[r]=e.G(t,r);return n.length=kn(e.G(t,"length"))||0,n}function ge(e,t){switch(typeof t){case"number":return e.aa.h.prototype;case"boolean":return e.mb.h.prototype;case"string":return e.J.h.prototype}return t?t.xa:null}V.G=function(e,t){if(this.P)throw Error("Getter not supported in that context");if(t=String(t),e!=null||I(this,this.j,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof x))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(_(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&_(this,e,this.J)){var n=Ze(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=ge(this,e))};function It(e,t,n){if(!(t instanceof x))throw TypeError("Primitive data type has no properties");if(n=String(n),n==="length"&&_(e,t,e.J))return!0;if(_(e,t,e.J)){var r=Ze(n);if(!isNaN(r)&&r<String(t).length)return!0}do if(t.h&&n in t.h)return!0;while(t=ge(e,t));return!1}V.g=function(e,t,n,r){if(this.Ka)throw Error("Setter not supported in that context");if(t=String(t),e!=null||I(this,this.j,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof x))throw TypeError("Expecting native value or pseudo object");r&&("get"in r||"set"in r)&&("value"in r||"writable"in r)&&I(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var o=!this.o||En(this).S;if(e instanceof x){if(_(this,e,this.J)){var i=Ze(t);if(t==="length"||!isNaN(i)&&i<String(e).length){o&&I(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=kn(n),isNaN(n)&&I(this,this.ob,"Invalid array length"),n<i)for(a in e.h){var a=Ze(a);!isNaN(a)&&n<=a&&delete e.h[a]}}else isNaN(a=Ze(t))||(e.h.length=Math.max(i,a+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!==tt&&(o.value=n,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,o)}catch{I(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===tt)throw ReferenceError("Value not specified");for(r=e;!(t in r.h);)if(r=ge(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&&I(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=n}catch{o&&I(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else o&&I(this,this.j,"Can't add property '"+t+"', object is not extensible")}else o&&I(this,this.j,"Can't create property '"+t+"' on '"+e+"'")};V.g.ac=function(){throw Error("Placeholder getter")};V.g.bc=function(){throw Error("Placeholder setter")};function K(e,t,n,r){e.g(t.h.prototype,n,e.i(r,!1),C)}function Ye(e,t,n,r){e.g(t.h.prototype,n,e.ub(r),C)}function En(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function sn(e,t,n){var r=!1;if(n&&n.S)r=!0;else{var o=t.body&&t.body[0];o&&o.la&&o.la.type==="Literal"&&o.la.value==="use strict"&&(r=!0)}return o=e.s(null),r=new Yr(n,r,o),n||Ri(e,r.object),nt(e,t,r),r}function Tn(e,t,n){if(!t)throw Error("parentScope required");return e=n||e.s(null),new Yr(t,t.S,e)}function In(e,t){for(var n=En(e);n&&n!==e.N;){if(t in n.object.h)return n.object.h[t];n=n.Va}if(n===e.N&&It(e,n.object,t))return e.G(n.object,t);n=e.o[e.o.length-1].node,n.type==="UnaryExpression"&&n.operator==="typeof"||I(e,e.pb,t+" is not defined")}function Jr(e,t,n){for(var r=En(e),o=r.S;r&&r!==e.N;){if(t in r.object.h){try{r.object.h[t]=n}catch{o&&I(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}r=r.Va}if(r===e.N&&(!o||It(e,r.object,t)))return e.g(r.object,t,n);I(e,e.pb,t+" is not defined")}function nt(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,a;for(a in t)if(a!=="loc"){var u=t[a];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=nt(e,u[o],n);for(a in p)r[a]=p[a]}}else if(u.constructor===i)for(a in p=nt(e,u,n),p)r[a]=p[a]}}}t.jb=r}for(a in r)r[a]===!0?e.g(n.object,a,void 0,gr):e.g(n.object,a,wn(e,r[a],n),gr);return r}function be(e){return e.o[e.o.length-1].isConstructor}function Bn(e,t){return t[0]===De?In(e,t[1]):e.G(t[0],t[1])}function Rn(e,t,n){return t[0]===De?Jr(e,t[1],n):e.g(t[0],t[1],n)}function I(e,t,n){throw e.N?(n!==void 0&&t instanceof x&&(t=e.Aa(t),on(e,t,n)),rt(e,4,t),Gr):n===void 0?t:n}function rt(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 _(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 Q(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return Q(e,t.left)+" "+t.operator+" "+Q(e,t.right);case"CallExpression":return Q(e,t.callee)+"(...)";case"ConditionalExpression":return Q(e,t.test)+" ? "+Q(e,t.da)+" : "+Q(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var n=Q(e,t.object);return e=Q(e,t.Wa),t.bb?n+"["+e+"]":n+"."+e;case"NewExpression":return"new "+Q(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+Q(e,t.K);case"UpdateExpression":return n=Q(e,t.K),t.prefix?t.operator+n:n+t.operator}return"???"}function vr(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 a=e.ya();if(i instanceof x&&i.H==="Function"){var u=i;a.type="CallExpression",r=r.scope}else{try{var p=Ne(String(i),"taskCode"+e.ic++)}catch(g){I(e,e.T,"Invalid code: "+g.message)}a.type="EvalProgram_",a.body=p.body,r=r.node.arguments[0],Tt(a,r?r.start:void 0,r?r.end:void 0),r=e.N,o.length=0}return t=new Wi(u,o,r,a,t?n:-1),Xr(e,t,n),t.Db}function Xr(e,t,n){t.time=Date.now()+n,e.ca.push(t),e.ca.sort(function(r,o){return r.time-o.time})}function br(e,t){for(var n=0;n<e.ca.length;n++)if(e.ca[n].Db==t){e.ca.splice(n,1);break}}function ot(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 E(r,e.o[e.o.length-1].scope),e.ia=2,e.B=n,e.U=t,e.Qa=!0,e.F=[],e}function An(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 E(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 Qt(e,t){return t==null?e.Na:t instanceof x?t:(e=e.s(ge(e,t)),e.data=t,e)}V.Xb=function(){return this.N};V.Yb=function(){return this.o};V.ec=function(e){this.o=e};function E(e,t){this.node=e,this.scope=t}function Yr(e,t,n){this.Va=e,this.S=t,this.object=n}function x(e){this.V=Object.create(null),this.Y=Object.create(null),this.h=Object.create(null),this.xa=e}V=x.prototype;V.xa=null;V.H="Object";V.data=null;V.toString=function(){if(!Qe)return"[object Interpreter.Object]";if(!(this instanceof x))return String(this);if(this.H==="Array"){var e=yr;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 x&&e.indexOf(i)!==-1?"...":i}r&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=yr,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+"]"};V.valueOf=function(){return!Qe||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function Wi(e,t,n,r,o){this.zb=e,this.Lb=t,this.scope=n,this.node=r,this.interval=o,this.Db=++Li,this.time=0}var Li=0;v.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=Ve(this),t.Oa.h.length=n.length);r<n.length;){if(n[r])return t.A=r,new E(n[r],t.scope);r++}e.pop(),e[e.length-1].value=t.Oa};v.prototype.stepAssignmentExpression=function(e,t,n){if(!t.ja)return t.ja=!0,t=new E(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=Bn(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,ot(this,e,t.Fa)):(t.Da=!0,n.operator==="="&&n.left.type==="Identifier"&&(t.Pa=n.left.name),new E(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=Rn(this,t.Fa,r))return t.ta=!0,t.ib=r,An(this,n,t.Fa,r);e.pop(),e[e.length-1].value=r}};v.prototype.stepBinaryExpression=function(e,t,n){if(!t.ja)return t.ja=!0,new E(n.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new E(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 x||I(this,this.j,"'in' expects an object, not '"+t+"'"),n=It(this,t,r);break;case"instanceof":_(this,t,this.O)||I(this,this.j,"'instanceof' expects an object, not '"+t+"'"),n=r instanceof x?_(this,r,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+n.operator)}e[e.length-1].value=n};v.prototype.stepBlockStatement=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new E(n,t.scope);e.pop()};v.prototype.stepBreakStatement=function(e,t,n){rt(this,1,void 0,n.label&&n.label.name)};v.prototype.Hb=0;v.prototype.stepCallExpression=function(e,t,n){if(!t.ia){t.ia=1;var r=new E(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=Bn(this,o),o[0]===De?t.Pb=o[1]==="eval":t.B=o[0],o=t.U,this.P)return t.ia=1,ot(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 E(n.arguments[t.A++],t.scope);if(n.type==="NewExpression"){if(o instanceof x&&!o.Ab||I(this,this.j,Q(this,n.callee)+" is not a constructor"),o===this.qa)t.B=Ve(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 x||I(this,this.j,Q(this,n.callee)+" is not a function"),e=o.node){for(n=sn(this,e.body,o.Va),r=Ve(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=Qt(this,t.B)),this.g(n.object,"this",t.B,bn),t.value=void 0,new E(e.body,n)}if(o.eval)if(o=t.F[0],typeof o!="string")t.value=o;else{try{r=Ne(String(o),"eval"+this.Hb++)}catch(u){I(this,this.T,"Invalid code: "+u.message)}return o=this.ya(),o.type="EvalProgram_",o.body=r.body,Tt(o,n.start,n.end),n=t.Pb?t.scope:this.N,n.S?n=sn(this,r,n):nt(this,r,n),this.value=void 0,new E(o,n)}else if(o.Ta)t.scope.S||(t.B=Qt(this,t.B)),t.value=o.Ta.apply(t.B,t.F);else if(o.Za){var a=this;r=o.Za.length-1,r=t.F.concat(Array(r)).slice(0,r),r.push(function(u){t.value=u,a.za=!1}),this.za=!0,t.scope.S||(t.B=Qt(this,t.B)),o.Za.apply(t.B,r)}else I(this,this.j,Q(this,n.callee)+" is not callable")}};v.prototype.stepConditionalExpression=function(e,t,n){var r=t.na||0;if(r===0)return t.na=1,new E(n.test,t.scope);if(r===1){if(t.na=2,(r=!!t.value)&&n.da)return new E(n.da,t.scope);if(!r&&n.alternate)return new E(n.alternate,t.scope);this.value=void 0}e.pop(),n.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};v.prototype.stepContinueStatement=function(e,t,n){rt(this,2,void 0,n.label&&n.label.name)};v.prototype.stepDebuggerStatement=function(e){e.pop()};v.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 E(n.test,t.scope);if(!t.value)e.pop();else if(n.body)return t.ga=!1,t.W=!0,new E(n.body,t.scope)};v.prototype.stepEmptyStatement=function(e){e.pop()};v.prototype.stepEvalProgram_=function(e,t,n){var r=t.A||0;if(n=n.body[r])return t.A=r+1,new E(n,t.scope);e.pop(),e[e.length-1].value=this.value};v.prototype.stepExpressionStatement=function(e,t,n){if(!t.ka)return this.value=void 0,t.ka=!0,new E(n.la,t.scope);e.pop(),this.value=t.value};v.prototype.stepForInStatement=function(e,t,n){if(!t.Ub&&(t.Ub=!0,n.left.fa&&n.left.fa[0].ua))return t.scope.S&&I(this,this.T,"for-in loop variable declaration may not have an initializer"),new E(n.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new E(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 x)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=ge(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=[De,e.fa[0].id.name];else return t.pa=null,t=new E(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,r=Rn(this,t.pa,e)))return An(this,r,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,n.body)return new E(n.body,t.scope)};v.prototype.stepForStatement=function(e,t,n){switch(t.na){default:if(t.na=1,n.ua)return new E(n.ua,t.scope);break;case 1:if(t.na=2,n.test)return new E(n.test,t.scope);break;case 2:if(t.na=3,n.test&&!t.value)e.pop();else return t.W=!0,new E(n.body,t.scope);break;case 3:if(t.na=1,n.update)return new E(n.update,t.scope)}};v.prototype.stepFunctionDeclaration=function(e){e.pop()};v.prototype.stepFunctionExpression=function(e,t,n){e.pop(),t=e[e.length-1],e=t.scope,n.id&&(e=Tn(this,e)),t.value=wn(this,n,e,t.Pa),n.id&&this.g(e.object,n.id.name,t.value,bn)};v.prototype.stepIdentifier=function(e,t,n){if(e.pop(),t.sa)e[e.length-1].value=[De,n.name];else{if(t=In(this,n.name),this.P)return ot(this,t,this.Na);e[e.length-1].value=t}};v.prototype.stepIfStatement=v.prototype.stepConditionalExpression;v.prototype.stepLabeledStatement=function(e,t,n){return e.pop(),e=t.labels||[],e.push(n.label.name),t=new E(n.body,t.scope),t.labels=e,t};v.prototype.stepLiteral=function(e,t,n){e.pop(),t=n.value,t instanceof RegExp&&(n=this.s(this.Ma),Sn(this,n,t),t=n),e[e.length-1].value=t};v.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 E(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 E(n.right,t.scope)};v.prototype.stepMemberExpression=function(e,t,n){if(!t.Ca)return t.Ca=!0,new E(n.object,t.scope);if(n.bb)if(t.Vb)n=t.value;else return t.u=t.value,t.Vb=!0,new E(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 ot(this,n,t.u);e[e.length-1].value=n}};v.prototype.stepNewExpression=v.prototype.stepCallExpression;v.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 a=o.key;if(a.type==="Identifier")i=a.name;else if(a.type==="Literal")i=a.value;else throw SyntaxError("Unknown object structure: "+a.type);return t.Pa=i,new E(o.value,t.scope)}for(a in t.Ja)n=t.Ja[a],"get"in n||"set"in n?this.g(t.u,a,tt,{configurable:!0,enumerable:!0,get:n.get,set:n.set}):this.g(t.u,a,n.init);e.pop(),e[e.length-1].value=t.u};v.prototype.stepProgram=function(e,t,n){if(e=n.body.shift())return t.done=!1,new E(e,t.scope);t.done=!0};v.prototype.stepReturnStatement=function(e,t,n){if(n.K&&!t.ka)return t.ka=!0,new E(n.K,t.scope);rt(this,3,t.value)};v.prototype.stepSequenceExpression=function(e,t,n){var r=t.A||0;if(n=n.xb[r])return t.A=r+1,new E(n,t.scope);e.pop(),e[e.length-1].value=t.value};v.prototype.stepSwitchStatement=function(e,t,n){if(!t.ga)return t.ga=1,new E(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 E(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 E(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}};v.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=In(this,"this")};v.prototype.stepThrowStatement=function(e,t,n){if(t.ka)I(this,t.value);else return t.ka=!0,new E(n.K,t.scope)};v.prototype.stepTryStatement=function(e,t,n){if(!t.Rb)return t.Rb=!0,new E(n.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&n.Ea)return t.Tb=!0,e=Tn(this,t.scope),this.g(e.object,n.Ea.Ua.name,t.ea.value),t.ea=void 0,new E(n.Ea.body,e);if(!t.Sb&&n.fb)return t.Sb=!0,new E(n.fb,t.scope);e.pop(),t.ea&&rt(this,t.ea.type,t.ea.value,t.ea.label)};v.prototype.stepUnaryExpression=function(e,t,n){if(!t.ka)return t.ka=!0,e=new E(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===De&&(o=t.scope),r=String(r[1]);try{delete o.h[r]}catch{t.scope.S?I(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};v.prototype.stepUpdateExpression=function(e,t,n){if(!t.ja)return t.ja=!0,e=new E(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=Bn(this,t.Ga);if(t.ma=r,this.P)return t.Ba=!0,ot(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=Rn(this,t.Ga,o))return t.ta=!0,t.ib=n,An(this,r,t.Ga,o);e.pop(),e[e.length-1].value=n}};v.prototype.stepVariableDeclaration=function(e,t,n){n=n.fa;var r=t.A||0,o=n[r];for(t.Bb&&o&&(Jr(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 E(o.ua,t.scope);o=n[++r]}e.pop()};v.prototype.stepWithStatement=function(e,t,n){return t.Ca?(e.pop(),e=Tn(this,t.scope,t.value),new E(n.body,e)):(t.Ca=!0,new E(n.object,t.scope))};v.prototype.stepWhileStatement=v.prototype.stepDoWhileStatement;Ce.Interpreter=v;v.prototype.step=v.prototype.lb;v.prototype.run=v.prototype.Eb;v.prototype.appendCode=v.prototype.Jb;v.prototype.createObject=v.prototype.Aa;v.prototype.createObjectProto=v.prototype.s;v.prototype.createAsyncFunction=v.prototype.ub;v.prototype.createNativeFunction=v.prototype.i;v.prototype.getProperty=v.prototype.G;v.prototype.setProperty=v.prototype.g;v.prototype.nativeToPseudo=v.prototype.Ia;v.prototype.pseudoToNative=v.prototype.R;v.prototype.getGlobalScope=v.prototype.Xb;v.prototype.getStateStack=v.prototype.Yb;v.prototype.setStateStack=v.prototype.ec;v.VALUE_IN_DESCRIPTOR=tt;function Mi(){const e=v.prototype.getProperty,t=v.prototype.setProperty;function n(a,u){if(a==null||!a._connected)return e.call(this,a,u);const p=a._connected[u];return Array.isArray(p)?this.nativeToPseudo(p):typeof p=="object"?this.createConnectedObject(p):p}function r(a,u,p,g){if(a==null||!a._connected)return t.call(this,a,u,p,g);a._connected[u]=this.pseudoToNative(p)}const o=[],i=[];for(const a of Object.keys(v.prototype))v.prototype[a]===e&&o.push(a),v.prototype[a]===t&&i.push(a);for(const a of o)v.prototype[a]=n;for(const a of i)v.prototype[a]=r;v.prototype.createConnectedObject=function(a){const u=this.createObject(this.OBJECT);return u._connected=a,u}}Mi();const Hi=e=>e.replace(/^.*?function main\(\)/,`
|
|
9
|
+
var __awaiter = function (e, t, n, r) {return r()},
|
|
10
|
+
__generator = function (e, t) { return t() };
|
|
11
|
+
function main()`).replace(/\?\./g,"."),kr=e=>e+"JSON",zi=({builder:e,context:t,event:n,rootState:r,localState:o,rootSetState:i,code:a})=>{const u=vn({rootState:r,localState:o,rootSetState:i}),p=qr({builder:e,context:t,event:n,state:u}),g=p.map(([R])=>{const D=kr(R);return R==="state"?"":`var ${R} = ${D} === undefined ? undefined : JSON.parse(${D});`}).join(`
|
|
12
|
+
`),y=Hi(a);if(y==="")return;const b=`
|
|
13
|
+
function theFunction() {
|
|
14
|
+
${g}
|
|
15
|
+
|
|
16
|
+
${y}
|
|
17
|
+
}
|
|
18
|
+
theFunction();
|
|
19
|
+
`,h=function(R,D){p.forEach(([q,T])=>{if(q==="state")R.setProperty(D,q,R.createConnectedObject(T),R.READONLY_DESCRIPTOR);else{const re=JSON.stringify(T);R.setProperty(D,kr(q),re)}})},k=new v(b,h);return k.run(),k.pseudoToNative(k.value)};function Ki(){var e;return typeof process<"u"&&ve((e=process==null?void 0:process.versions)==null?void 0:e.node)}const qi=({shouldLogWarning:e})=>{var o;if(!Ki())return!1;const t=process.arch==="arm64",n=process.version.startsWith("v20"),r=(o=process.env.NODE_OPTIONS)==null?void 0:o.includes("--no-node-snapshot");return t&&n&&!r?(e&&ee.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},Gi=e=>U()||qi({shouldLogWarning:!0})?Ti(e):zi(e),_i=/^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/,Ji=/(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/,Xi=e=>{var t,n,r,o,i,a;return((r=(n=(t=_i.exec(e.trim()))==null?void 0:t.groups)==null?void 0:n.getPath)==null?void 0:r.slice(1))||((a=(i=(o=Ji.exec(e.trim()))==null?void 0:o.groups)==null?void 0:i.getPath)==null?void 0:a.slice(1))};function Ue({code:e,context:t,localState:n,rootState:r,rootSetState:o,event:i,isExpression:a=!0,trackingContext:u}){if(e.trim()==="")return;const p=Xi(e.trim());if(p)return Vr({...r,...n},p);const g={code:Ei(e,{isExpression:a}),builder:wi(u),context:t,event:i,rootSetState:o,rootState:r,localState:n};try{return Gi(g)}catch(y){ee.error("Failed code evaluation: "+y.message,{code:e});return}}function Yi(e,t){var n;return{...(n=e.component)==null?void 0:n.options,...e.options,...Qi(e,t)}}const Qi=(e,t)=>{var n,r;if(((n=e.component)==null?void 0:n.name)==="Text"&&((r=e.component.options)!=null&&r.text)&&typeof e.component.options.text=="string")return{...e.component.options,text:e.component.options.text.replace(/{{([^}]+)}}/g,(o,i)=>Ue({code:i,context:t,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState}))}};function Zi(e,...t){const n=Object.assign({},e);for(const r of t)delete n[r];return n}function St(e,t,n=null,r=null,o=new WeakSet){if(e==null||typeof e!="object"){t(e,i=>{n!==null&&r!==null&&(n[r]=i)});return}o.has(e)||(o.add(e),Array.isArray(e)?e.forEach((i,a)=>{t(i,p=>{e[a]=p}),St(i,t,e,a,o)}):Object.entries(e).forEach(([i,a])=>{t(a,p=>{e[i]=p}),St(a,t,e,i,o)}))}function Qr(e){return e&&typeof e=="object"&&e["@type"]==="@builder.io/core:LocalizedValue"}function es(e){if(!e||!Object.getOwnPropertyNames(e).length)return!1;let t=!1;return St(e,n=>{if(Qr(n)){t=!0;return}}),t}function ts(e,t){return!e||!Object.getOwnPropertyNames(e).length?{}:(St(e,(n,r)=>{Qr(n)&&r(n[t]??void 0)}),e)}function ns(e,t){var n,r;return(n=e.component)!=null&&n.options&&es((r=e.component)==null?void 0:r.options)&&(t||console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"),e.component.options=ts(e.component.options,t??"Default")),e}const Pn=e=>JSON.parse(JSON.stringify(e)),Zr=(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,a)=>Object(o[i])===o[i]?o[i]:o[i]=Math.abs(Number(r[a+1]))>>0===+r[a+1]?[]:{},e)[r[r.length-1]]=n,e};function an(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>an(n));if(e["@type"]==="@builder.io/sdk:Element")return e;const t={};for(const n in e)n!=="meta"&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=an(e[n]));return t}const rs=["svelte","vue","angular","qwik","solid"].includes(W),os=e=>{if(rs){const t=Pn(e);return{...t,properties:{...t.properties},actions:{...t.actions}}}else{const t=an(Zi(e,"children","meta"));return{...t,properties:{...t.properties},actions:{...t.actions},children:e.children,meta:e.meta}}},is=({block:e,context:t,localState:n,rootState:r,rootSetState:o})=>{if(!e.bindings)return e;const i=os(e);for(const a in e.bindings){const u=e.bindings[a],p=Ue({code:u,localState:n,rootState:r,rootSetState:o,context:t});Zr(i,a,p)}return i};function eo({block:e,context:t,localState:n,rootState:r,rootSetState:o}){let i=e;return i=is({block:i,localState:n,rootState:r,rootSetState:o,context:t}),i=ns(i,r.locale),i}function Bt(e){const t=e||(U()?window.location.search:void 0);return t?Dr(t).indexOf("builder.preview=")!==-1:!1}const to=e=>({type:"builder.registerComponent",data:Ct(e)}),ss=e=>{const t=e.toString().trim(),n=/^[a-zA-Z0-9_]+\s*=>/i.test(t);return`return (${!t.startsWith("function")&&!t.startsWith("async")&&!t.startsWith("(")&&!n?"function ":""}${t}).apply(this, arguments)`};function Ct(e){return JSON.parse(JSON.stringify(e,(t,n)=>typeof n=="function"?ss(n):n))}const Sr={};function as(e,t){e==="plugin"&&(t=Ct(t));let n=Sr[e];if(n||(n=Sr[e]=[]),n.push(t),U()){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)}}}function ls(e){var t;if(U()){const n=JSON.parse(JSON.stringify(e));e.action&&(n.action=e.action.toString()),(t=window.parent)==null||t.postMessage({type:"builder.registerAction",data:n},"*")}}const Cr={};function cs(e){if(U()){Object.assign(Cr,e);const t={type:"builder.settingsChange",data:Cr};parent.postMessage(t,"*")}}const wr="builder.",us="options.",$n=e=>{if(!e)return{};const t=jr(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(wr)){const o=r.replace(wr,"").replace(us,"");n[o]=t[r]}}),n},ps=()=>{if(!U())return{};const e=new URLSearchParams(window.location.search);return $n(e)},ds=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function no(e,t){let n;try{n=new URL(t.origin)}catch{return!1}return n.protocol!=="http:"&&n.protocol!=="https:"?!1:(e||ds).findIndex(r=>r.startsWith("*.")?n.hostname.endsWith(r.slice(1)):r===n.hostname)>-1}let Er=!1;const ro=e=>{var t,n;Er||(Er=!0,U()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:W,version:Fr,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0,modelName:e.modelName,apiKey:e.apiKey,supportsXSmallBreakpoint:!0,blockLevelPersonalization:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",r=>{var i,a;if(!no(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||[],g=o.data.id,y=new Function(u);let b,h=null;try{b=y.apply(null,p)}catch(k){h=k}h?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:g,error:h.message}},"*"):b&&typeof b.then=="function"?b.then(k=>{var B;(B=window.parent)==null||B.postMessage({type:"builder.evaluateResult",data:{id:g,result:k}},"*")}).catch(console.error):(a=window.parent)==null||a.postMessage({type:"builder.evaluateResult",data:{result:b,id:g}},"*");break}}})))},oo=({model:e,trustedHosts:t,callbacks:n})=>r=>{if(!no(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.resetState":{const i=o.data,a=i.model,u=i==null?void 0:i.state,p=i.editType;a===e&&u&&n.stateUpdate(u,p);break}case"builder.contentUpdate":{const i=o.data,a=i.key||i.alias||i.entry||i.modelName,u=i.data,p=i.editType;a===e&&n.contentUpdate(u,p);break}}},ms=({model:e,apiKey:t,callback:n,trustedHosts:r})=>{if(!U)return ee.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};ro({modelName:e,apiKey:t});const o=oo({callbacks:{contentUpdate:n,animation:()=>{},configureSdk:()=>{},stateUpdate:()=>{}},model:e,trustedHosts:r});return window.addEventListener("message",o),()=>{window.removeEventListener("message",o)}},fs="builder.tests",xn=e=>`${fs}.${e}`,hs=({contentId:e})=>Lr({name:xn(e),canTrack:!0}),gs=({contentId:e})=>Et({name:xn(e),canTrack:!0}),ys=({contentId:e,value:t})=>gn({name:xn(e),value:t,canTrack:!0}),io=e=>ve(e.id)&&ve(e.variations)&&Object.keys(e.variations).length>0,vs=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const i in t){const a=(o=t[i])==null?void 0:o.testRatio;if(n+=a,r<n)return i}return e},so=e=>{const t=vs(e);return ys({contentId:e.id,value:t}).catch(n=>{ee.error("could not store A/B test variation: ",n)}),t},ao=({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":"")}},bs=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!io(e))return e;const n=gs({contentId:e.id})||so({variations:e.variations,id:e.id}),r=ao({item:e,testGroupId:n});return{...e,...r}},ks=async({item:e,canTrack:t})=>{if(!t||!io(e))return e;const r=await hs({contentId:e.id})||so({variations:e.variations,id:e.id}),o=ao({item:e,testGroupId:r});return{...e,...o}};const Tr="builder.userAttributes";function Ir(){let e=!0;const t=new Set;return{setUserAttributes(n){if(!U())return;const r={...this.getUserAttributes(),...n};gn({name:Tr,value:JSON.stringify(r),canTrack:e}),t.forEach(o=>o(r))},getUserAttributes(){return U()?JSON.parse(Et({name:Tr,canTrack:e})||"{}"):{}},subscribeOnUserAttributesChange(n,{fireImmediately:r}={}){return t.add(n),r&&n(this.getUserAttributes()),function(){t.delete(n)}},setCanTrack(n){e=n}}}let ln;U()&&W==="qwik"?(window.__BUILDER_USER_ATTRIBUTES_SERVICE__||(window.__BUILDER_USER_ATTRIBUTES_SERVICE__=Ir()),ln=window.__BUILDER_USER_ATTRIBUTES_SERVICE__):ln=Ir();const wt=ln,Ss=e=>{wt.setUserAttributes(e)},je=e=>{const t=ve(e)?e:!0;return wt.setCanTrack(t),t};function Cs(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function ws(){const e=Cs().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.
|
|
20
|
+
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 Es=ws();function cn(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const i=e[o],a=[t,o].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...r,...cn(i,a,n)}:{...r,[a]:i}},{})}function lo(e,t,n={}){for(const r in e){const o=e[r],i=t?t+"."+r:r;o&&typeof o=="object"&&!Array.isArray(o)&&!Object.keys(o).find(a=>a.startsWith("$"))?lo(o,i,n):n[i]=o}return n}function Ts(e){const t={};for(const n in e){const r=n.split(".");let o=t;for(let i=0;i<r.length;i++){const a=r[i];i===r.length-1?o[a]=e[n]:(o[a]=o[a]||{},o=o[a])}}return t}const Is="v3",Br=e=>typeof e=="number"&&!isNaN(e)&&e>=0,On=e=>{const{limit:t=30,userAttributes:n,query:r,model:o,apiKey:i,enrich:a,enrichOptions:u,locale:p,apiVersion:g=Is,fields:y,omit:b,offset:h,cacheSeconds:k,staleCacheSeconds:B,sort:R,includeUnpublished:D,apiHost:q}=e;if(!i)throw new Error("Missing API key");if(!["v3"].includes(g))throw new Error(`Invalid apiVersion: expected 'v3', received '${g}'`);const T=t!==1,re=q||"https://cdn.builder.io",N=new URL(`${re}/api/${g}/content/${o}`);N.searchParams.set("apiKey",i),N.searchParams.set("limit",String(t)),N.searchParams.set("noTraverse",String(T)),N.searchParams.set("includeRefs",String(!0)),p&&N.searchParams.set("locale",p);let ae=n||{};if(a&&N.searchParams.set("enrich",String(a)),a&&u&&N.searchParams.set("enrichOptions",JSON.stringify(u)),N.searchParams.set("omit",b??"meta.componentsUsed"),y&&N.searchParams.set("fields",y),Number.isFinite(h)&&h>-1&&N.searchParams.set("offset",String(Math.floor(h))),typeof D=="boolean"&&N.searchParams.set("includeUnpublished",String(D)),k&&Br(k)&&N.searchParams.set("cacheSeconds",String(k)),B&&Br(B)&&N.searchParams.set("staleCacheSeconds",String(B)),R){const w=cn({sort:R});for(const oe in w)N.searchParams.set(oe,JSON.stringify(w[oe]))}const F={...ps(),...jr(e.options||{})};ae={...ae,...As(F)};const X=cn(F);for(const w in X)N.searchParams.set(w,String(X[w]));if(Object.keys(ae).length>0&&N.searchParams.set("userAttributes",JSON.stringify(ae)),r){const w=lo({query:r});for(const oe in w)N.searchParams.set(oe,JSON.stringify(w[oe]))}return N},Bs=e=>e==="true"?!0:e==="false"?!1:e,Rs=e=>{const t={};for(const n in e)n.startsWith("userAttributes.")&&(t[n]=Bs(e[n]),delete e[n]);return t},As=e=>{if(U()&&e.preview==="BUILDER_STUDIO"){e["userAttributes.urlPath"]=window.location.pathname,e["userAttributes.host"]=window.location.host;const t=Rs(e),{userAttributes:n}=Ts(t);return n}return{}},Ps=e=>"results"in e;async function Rt(e){var r;const t=e.locale||((r=e.userAttributes)==null?void 0:r.locale);t&&(e.locale=t,e.userAttributes={locale:t,...e.userAttributes});const n=await uo({...e,limit:1});return n&&n[0]||null}const $s=async e=>{var a;const t=On(e),n=e.fetch??Es,r={...e.fetchOptions,headers:{...(a=e.fetchOptions)==null?void 0:a.headers,...Wr()}};return await(await n(t.href,r)).json()},co=async(e,t,n=On(e))=>{const r=je(e.canTrack);if(n.search.includes("preview="),!r||!(U()||W==="reactNative"))return t.results;try{const o=[];for(const i of t.results)o.push(await ks({item:i,canTrack:r}));t.results=o}catch(o){ee.error("Could not process A/B tests. ",o)}return t.results};async function uo(e){const t=On(e),n=await $s(e);if(!Ps(n))throw ee.error("Error fetching data. ",{url:t,content:n,options:e}),n;return co(e,n)}const xs=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:$n(e.searchParams||((i=e.url)==null?void 0:i.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await Rt(n)}},At=e=>e?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():"";function Os(e,t,n={}){let r,o,i,a=null,u=0;const p=function(){u=n.leading===!1?0:Date.now(),a=null,i=e.apply(r,o),a||(r=o=null)};return function(){const g=Date.now();!u&&n.leading===!1&&(u=g);const y=t-(g-u);return r=this,o=arguments,y<=0||y>t?(a&&(clearTimeout(a),a=null),u=g,i=e.apply(r,o),a||(r=o=null)):!a&&n.trailing!==!1&&(a=setTimeout(p,y)),i}}function et(e,...t){const n=Object(e);for(let r=1;r<arguments.length;r++){const o=arguments[r];if(o!=null)for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n}function Ns(e){for(const t of e)switch(t.trigger){case"pageLoad":fo(t);break;case"scrollInView":js(t);break}}function po(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function mo(e,t){const n=Vs(e),r=getComputedStyle(t),o=e.steps[0].styles,i=e.steps[e.steps.length-1].styles,a=[o,i];for(const u of a)for(const p of n)p in u||(u[p]=r[p])}function Vs(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 fo(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){po(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{mo(e,n),n.style.transition="none",n.style.transitionDelay="0",et(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${At(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),et(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}function js(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){po(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{mo(e,n);let r=!1,o=!1;function i(){!r&&u(n)?(r=!0,o=!0,setTimeout(()=>{et(n.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",a),setTimeout(()=>{o=!1,e.repeat||(n.style.transition="",n.style.transitionDelay="")},(e.duration+(e.delay||0))*1e3+100)})):e.repeat&&r&&!o&&!u(n)&&(r=!1,et(n.style,e.steps[0].styles))}const a=Os(i,200,{leading:!1});function u(y){const b=y.getBoundingClientRect(),h=window.innerHeight,B=(e.thresholdPercent||0)/100*h;return b.bottom>B&&b.top<h-B}const p=e.steps[0].styles;function g(){et(n.style,p)}g(),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${At(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s")}),document.addEventListener("scroll",a,{capture:!0,passive:!0}),i()})}const ho=e=>Object.entries(e).map(([n,r])=>{if(typeof r=="string")return`${At(n)}: ${r};`}).filter(ve),Ds=e=>ho(e).join(`
|
|
21
|
+
`),Us=({mediaQuery:e,className:t,styles:n})=>{const r=`.${t} {
|
|
22
|
+
${Ds(n)}
|
|
23
|
+
}`;return e?`${e} {
|
|
24
|
+
${r}
|
|
25
|
+
}`:r};function Fs({style:e}){return e}const Ws=({block:e,context:t})=>go(Fs({style:e.style||{},context:t,block:e}));function go(e){switch(W){case"svelte":case"vue":case"solid":case"angular":return ho(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const yo=(e,t)=>e?t?e.models&&e.models.length>0&&!e.models.includes(t):!1:!0,Ls=({block:e,registeredComponents:t,model:n})=>{var i;const r=(i=e.component)==null?void 0:i.name;if(!r)return null;const o=t[r];if(!o||yo(o,n)){console.warn(`
|
|
26
|
+
Could not find a registered component named "${r}".
|
|
27
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`);return}else return o},Ms=({block:e,context:t})=>{const{repeat:n,...r}=e;if(!(n!=null&&n.collection))return;const o=Ue({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(o))return;const i=n.collection.split(".").pop(),a=n.itemName||(i?i+"Item":"item");return o.map((p,g)=>({context:{...t,localState:{...t.localState,$index:g,$item:p,[a]:p,[`$${a}Index`]:g}},block:r}))},Hs=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderLinkComponent?{builderLinkComponent:t}:{}},zs=(e,t,n)=>{var r;return(r=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&r.builderComponents?{builderComponents:Object.fromEntries(Object.entries(t).filter(([i,a])=>!yo(a,n)))}:{}},Ks=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderBlock?{builderBlock:t}:{}},qs=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderContext?{builderContext:t}:{}},Gs=e=>e.toString(),_s=()=>Promise.resolve().then(()=>ca).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",e),e}),Js=()=>Promise.resolve().then(()=>require("./block-wrapper-4qKpWsP8.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",e),e}),Xs=()=>Promise.resolve().then(()=>require("./component-ref-WdOIbmOU.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",e),e}),Ys=()=>Promise.resolve().then(()=>require("./repeated-block--MhEsXmR.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",e),e}),Qs=()=>Promise.resolve().then(()=>require("./style-wrapper-8JiLG-FF.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",e),e}),Zs=s.defineComponent({name:"block",components:{StyleWrapper:s.defineAsyncComponent(Qs),RepeatedBlock:s.defineAsyncComponent(Ys),ComponentRef:s.defineAsyncComponent(Xs),BlockWrapper:s.defineAsyncComponent(Js),DynamicDiv:s.defineAsyncComponent(_s)},props:["block","context","registeredComponents","linkComponent"],data(){return{_processedBlock:{value:null,update:!1},generateKey:Gs}},mounted(){const e=this.processedBlock.id,t=this.processedBlock.animations;t&&e&&Ns(t.map(n=>({...n,elementId:e})))},updated(){},computed:{repeatItem(){return Ms({block:this.block,context:this.context})},processedBlock(){var t;return(t=this.block.repeat)!=null&&t.collection?this.block:eo({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context})},blockComponent(){return Ls({block:this.processedBlock,registeredComponents:this.registeredComponents,model:this.context.model})},Tag(){var t;return this.block.tagName==="a"||((t=this.processedBlock.properties)==null?void 0:t.href)||this.processedBlock.href?this.linkComponent||"a":this.block.tagName||"div"},canShowBlock(){var n,r;if((n=this.block.repeat)!=null&&n.collection)return!!((r=this.repeatItem)!=null&&r.length);const e="hide"in this.processedBlock?this.processedBlock.hide:!1;return("show"in this.processedBlock?this.processedBlock.show:!0)&&!e},childrenWithoutParentComponent(){var t;return!((t=this.blockComponent)!=null&&t.component)&&!this.repeatItem?this.processedBlock.children??[]:[]},componentRefProps(){var e,t,n;return{blockChildren:this.processedBlock.children??[],componentRef:(e=this.blockComponent)==null?void 0:e.component,componentOptions:{...Yi(this.processedBlock,this.context),...Ks(this.blockComponent,this.processedBlock),...qs(this.blockComponent,this.context),...Hs(this.blockComponent,this.linkComponent),...zs(this.blockComponent,this.registeredComponents,this.context.model)},context:this.context,linkComponent:this.linkComponent,registeredComponents:this.registeredComponents,builderBlock:this.processedBlock,includeBlockProps:((t=this.blockComponent)==null?void 0:t.noWrap)===!0,isInteractive:!((n=this.blockComponent)!=null&&n.isRSC&&W==="rsc")}}}});function ea(e,t,n,r,o,i){var b;const a=s.resolveComponent("StyleWrapper"),u=s.resolveComponent("ComponentRef"),p=s.resolveComponent("Block",!0),g=s.resolveComponent("BlockWrapper"),y=s.resolveComponent("RepeatedBlock");return e.canShowBlock?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(a,{block:e.processedBlock,context:e.context,id:e.block.id},null,8,["block","context","id"]),(b=e.blockComponent)!=null&&b.noWrap?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.repeatItem?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(e.repeatItem,(h,k)=>(s.openBlock(),s.createBlock(y,{key:e.generateKey(k),repeatContext:h.context,block:h.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["repeatContext","block","registeredComponents","linkComponent"]))),128)):(s.openBlock(),s.createBlock(u,{key:0,componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,linkComponent:e.componentRefProps.linkComponent,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive},null,8,["componentRef","componentOptions","blockChildren","context","registeredComponents","linkComponent","builderBlock","includeBlockProps","isInteractive"]))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[e.repeatItem?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(e.repeatItem,(h,k)=>(s.openBlock(),s.createBlock(y,{key:e.generateKey(k),repeatContext:h.context,block:h.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["repeatContext","block","registeredComponents","linkComponent"]))),128)):(s.openBlock(),s.createBlock(g,{key:0,Wrapper:e.Tag,block:e.processedBlock,context:e.context},{default:s.withCtx(()=>[s.createVNode(u,{componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,linkComponent:e.componentRefProps.linkComponent,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive},null,8,["componentRef","componentOptions","blockChildren","context","registeredComponents","linkComponent","builderBlock","includeBlockProps","isInteractive"]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.childrenWithoutParentComponent,(h,k)=>(s.openBlock(),s.createBlock(p,{key:h.id,block:h,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},null,8,["block","registeredComponents","linkComponent","context"]))),128))]),_:1},8,["Wrapper","block","context"]))],64))],64)):s.createCommentVNode("",!0)}const Nn=O(Zs,[["render",ea]]),ta=Object.freeze(Object.defineProperty({__proto__:null,default:Nn},Symbol.toStringTag,{value:"Module"})),na=s.defineComponent({name:"builder-blocks-wrapper",props:["blocks","classNameProp","path","parent","styleProp","BlocksWrapperProps","BlocksWrapper"],data(){return{shouldUpdate:!1}},mounted(){},watch:{onUpdateHook0:{handler(){},immediate:!0}},computed:{className(){var e;return["builder-blocks",(e=this.blocks)!=null&&e.length?"":"no-blocks",this.classNameProp].filter(Boolean).join(" ")},dataPath(){if(!this.path)return;const e="this.",t="component.options.";return this.path.startsWith(e)?this.path.replace(e,""):this.path.startsWith(t)?this.path:`${t}${this.path||""}`},onUpdateHook0(){return{0:this.blocks}}},methods:{onClick(){var e,t;G()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.dataPath}},"*"))},onMouseEnter(){var e,t;G()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.dataPath}},"*"))}}});function ra(e,t,n,r,o,i){return s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.BlocksWrapper),s.mergeProps({ref:"blocksWrapperRef",class:e.className+" component-5vz8uirn7sc","builder-path":e.dataPath,"builder-parent-id":e.parent,style:e.styleProp,onClick:a=>e.onClick(),onMouseEnter:a=>e.onMouseEnter(),onKeyPress:a=>e.onClick()},{...e.BlocksWrapperProps}),{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},16,["class","builder-path","builder-parent-id","style","onClick","onMouseEnter","onKeyPress"])}const oa=O(na,[["render",ra],["__scopeId","data-v-82fc93d6"]]),ia=s.defineComponent({name:"builder-blocks",components:{BlocksWrapper:oa,Block:Nn},props:["blocks","parent","path","styleProp","BlocksWrapperProps","context","className","linkComponent","registeredComponents"],inject:{builderContext:bt.key,componentsContext:Nr.key}});function sa(e,t,n,r,o,i){var p,g,y,b;const a=s.resolveComponent("Block"),u=s.resolveComponent("BlocksWrapper");return s.openBlock(),s.createBlock(u,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapperProps:e.BlocksWrapperProps||((p=e.context)==null?void 0:p.BlocksWrapperProps)||((g=e.builderContext)==null?void 0:g.BlocksWrapperProps),classNameProp:e.className,BlocksWrapper:((y=e.context)==null?void 0:y.BlocksWrapper)||((b=e.builderContext)==null?void 0:b.BlocksWrapper)},{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default"),e.blocks?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.blocks,(h,k)=>{var B;return s.openBlock(),s.createBlock(a,{key:h.id,block:h,linkComponent:e.linkComponent,context:e.context||e.builderContext,registeredComponents:e.registeredComponents||((B=e.componentsContext)==null?void 0:B.registeredComponents)},null,8,["block","linkComponent","context","registeredComponents"])}),128)):s.createCommentVNode("",!0)]),_:3},8,["blocks","parent","path","styleProp","BlocksWrapperProps","classNameProp","BlocksWrapper"])}const we=O(ia,[["render",sa]]),aa=s.defineComponent({name:"dynamic-div",props:[]});function la(e,t,n,r,o,i){return s.openBlock(),s.createElementBlock("div",null,[s.renderSlot(e.$slots,"default")])}const it=O(aa,[["render",la]]),ca=Object.freeze(Object.defineProperty({__proto__:null,default:it},Symbol.toStringTag,{value:"Module"})),st=s.defineComponent({render(){return s.h("style",{innerHTML:this.styles,"data-id":this.id,nonce:this.nonce})},name:"inlined-styles",props:["styles","id","nonce"]}),vo={xsmall:{min:0,default:160,max:320},small:{min:321,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},ua=(e,t=vo)=>`@media (max-width: ${t[e].max}px)`,bo=e=>{const t=Pn(vo);if(!e)return t;const{xsmall:n,small:r,medium:o}=e;if(n){const p=Math.floor(n/2);t.xsmall={max:n,min:p,default:p+1}}if(!r||!o)return t;const i=n?t.xsmall.max+1:Math.floor(r/2);t.small={max:r,min:i,default:i+1};const a=t.small.max+1;t.medium={max:o,min:a,default:a+1};const u=t.medium.max+1;return t.large={max:2e3,min:u,default:u+1},t},pa=e=>`builder-columns ${e}-breakpoints`,da=s.defineComponent({name:"builder-columns",components:{InlinedStyles:st,DynamicRenderer:hn,Blocks:we,DynamicDiv:it},props:["space","columns","stackColumnsAt","builderLinkComponent","reverseColumnsWhenStacked","builderContext","builderBlock","builderComponents"],data(){return{TARGET:W,getColumnsClass:pa}},computed:{gutterSize(){return typeof this.space=="number"?this.space||0:20},cols(){return this.columns||[]},stackAt(){return this.stackColumnsAt||"tablet"},flexDir(){return this.stackColumnsAt==="never"?"row":this.reverseColumnsWhenStacked?"column-reverse":"column"}},methods:{getTagName(e){return e.link?this.builderLinkComponent||"a":"div"},getWidth(e){var t;return((t=this.cols[e])==null?void 0:t.width)||100/this.cols.length},getColumnCssWidth(e){const t=this.getWidth(e),n=this.gutterSize*(this.cols.length-1)*(t/100);return`calc(${t}% - ${n}px)`},getTabletStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="tablet"?e:t},getMobileStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="never"?t:e},columnsCssVars(){return{"--flex-dir":this.flexDir,"--flex-dir-tablet":this.getTabletStyle({stackedStyle:this.flexDir,desktopStyle:"row"})}},columnCssVars(e){const t=e===0?0:this.gutterSize,n=this.getColumnCssWidth(e),r=`${t}px`,o="100%",i=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:n,["margin-left"]:r,"--column-width-mobile":this.getMobileStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-mobile":this.getMobileStyle({stackedStyle:i,desktopStyle:r}),"--column-width-tablet":this.getTabletStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-tablet":this.getTabletStyle({stackedStyle:i,desktopStyle:r})}},getWidthForBreakpointSize(e){var n,r;return bo(((r=(n=this.builderContext.content)==null?void 0:n.meta)==null?void 0:r.breakpoints)||{})[e].max},columnsStyles(){const e=`.${this.builderBlock.id}-breakpoints > .builder-column`;return`
|
|
28
|
+
@media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
|
|
29
|
+
.${this.builderBlock.id}-breakpoints {
|
|
30
|
+
flex-direction: var(--flex-dir-tablet);
|
|
31
|
+
align-items: stretch;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
${e} {
|
|
35
|
+
width: var(--column-width-tablet) !important;
|
|
36
|
+
margin-left: var(--column-margin-left-tablet) !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (max-width: ${this.getWidthForBreakpointSize("small")}px) {
|
|
41
|
+
.${this.builderBlock.id}-breakpoints {
|
|
42
|
+
flex-direction: var(--flex-dir);
|
|
43
|
+
align-items: stretch;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
${e} {
|
|
47
|
+
width: var(--column-width-mobile) !important;
|
|
48
|
+
margin-left: var(--column-margin-left-mobile) !important;
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
`},getAttributes(e,t){return{...e.link?{href:e.link}:{},[ye()]:"builder-column",style:go(this.columnCssVars(t))}}}});function ma(e,t,n,r,o,i){var g;const a=s.resolveComponent("InlinedStyles"),u=s.resolveComponent("Blocks"),p=s.resolveComponent("DynamicRenderer");return s.openBlock(),s.createElementBlock("div",s.mergeProps({class:e.getColumnsClass((g=e.builderBlock)==null?void 0:g.id)+" div-1be3j8m9ewb",style:e.columnsCssVars()},{}),[e.TARGET!=="reactNative"?(s.openBlock(),s.createBlock(a,{key:0,id:"builderio-columns",styles:e.columnsStyles(),nonce:e.builderContext.nonce},null,8,["styles","nonce"])):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.columns,(y,b)=>(s.openBlock(),s.createBlock(p,{key:b,TagName:e.getTagName(y),actionAttributes:{},attributes:e.getAttributes(y,b)},{default:s.withCtx(()=>[s.createVNode(u,{path:`columns.${b}.blocks`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:y.blocks,styleProp:{flexGrow:"1"}},null,8,["path","parent","context","registeredComponents","linkComponent","blocks"])]),_:2},1032,["TagName","attributes"]))),128))],16)}const ko=O(da,[["render",ma],["__scopeId","data-v-ab15749a"]]),fa=s.defineComponent({name:"builder-fragment-component",props:[]});function ha(e,t,n,r,o,i){return s.openBlock(),s.createElementBlock("span",null,[s.renderSlot(e.$slots,"default")])}const So=O(fa,[["render",ha]]);function Rr(e){return e.replace(/http(s)?:/,"")}function ga(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 ya(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return Rr(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 Rr(`${r[0]}_${i}${o}`)}return null}function gt(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=>`${ga(e,"width",o)} ${o}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[ya(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,r])=>`${n} ${r}w`).concat([e]).join(", "):e}const va=s.defineComponent({name:"builder-image",props:["lazy","image","src","srcset","noWebp","sizes","highPriority","aspectRatio","altText","title","backgroundPosition","backgroundSize","className","builderBlock","fitContent"],computed:{srcSetToUse(){var n;const t=this.image||this.src;if(!t||!(typeof t=="string"&&(t.match(/builder\.io/)||t.match(/cdn\.shopify\.com/))))return this.srcset;if(!this.noWebp){if(this.srcset&&((n=this.image)!=null&&n.includes("builder.io/api/v1/image"))){if(!this.srcset.includes(this.image.split("?")[0]))return console.debug("Removed given srcset"),gt(t)}else if(this.image&&!this.srcset)return gt(t);return gt(t)}},webpSrcSet(){var e;return(e=this.srcSetToUse)!=null&&e.match(/builder\.io/)&&!this.noWebp?this.srcSetToUse.replace(/\?/g,"?format=webp&"):""},sizesToUse(){return this.sizes||(this.highPriority?void 0:"auto")},aspectRatioCss(){const e={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return this.aspectRatio?e:void 0}}}),ba=["srcset","sizes"],ka=["loading","fetchpriority","alt","title","role","src","srcset","sizes"],Sa={key:2,class:"div-t43jfuqn6g-2"};function Ca(e,t,n,r,o,i){var a,u,p,g,y,b;return s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("picture",null,[e.webpSrcSet?(s.openBlock(),s.createElementBlock("source",{key:0,type:"image/webp",srcset:e.webpSrcSet,sizes:e.sizesToUse},null,8,ba)):s.createCommentVNode("",!0),s.createElementVNode("img",{loading:e.highPriority?"eager":"lazy",fetchpriority:e.highPriority?"high":"auto",alt:e.altText||"",title:e.title,role:e.altText?void 0:"presentation",style:s.normalizeStyle({objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...e.aspectRatioCss}),class:s.normalizeClass("builder-image"+(e.className?" "+e.className:"")+" img-t43jfuqn6g"),src:e.image,srcset:e.srcSetToUse,sizes:e.sizesToUse},null,14,ka)]),e.aspectRatio&&!((u=(a=e.builderBlock)==null?void 0:a.children)!=null&&u.length&&e.fitContent)?(s.openBlock(),s.createElementBlock("div",{key:0,class:"builder-image-sizer div-t43jfuqn6g",style:s.normalizeStyle({paddingTop:e.aspectRatio*100+"%"})},null,4)):s.createCommentVNode("",!0),(g=(p=e.builderBlock)==null?void 0:p.children)!=null&&g.length&&e.fitContent?s.renderSlot(e.$slots,"default",{key:1},void 0,!0):s.createCommentVNode("",!0),!e.fitContent&&((b=(y=e.builderBlock)==null?void 0:y.children)!=null&&b.length)?(s.openBlock(),s.createElementBlock("div",Sa,[s.renderSlot(e.$slots,"default",{},void 0,!0)])):s.createCommentVNode("",!0)],64)}const Co=O(va,[["render",Ca],["__scopeId","data-v-bb2384ad"]]),wa=s.defineComponent({name:"builder-section-component",props:["attributes","maxWidth"],data(){return{filterAttrs:ne}}});function Ea(e,t,n,r,o,i){return s.openBlock(),s.createElementBlock("section",s.mergeProps({style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"}},e.filterAttrs(e.attributes,"v-on:",!1),s.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),[s.renderSlot(e.$slots,"default")],16)}const wo=O(wa,[["render",Ea]]);function Ta(e,t,n,r){function o(g){return typeof g=="string"}function i(g){return typeof g=="number"}function a(g,y){return(()=>{const h=y.property,k=y.operator;let B=y.value;if(y&&y.property==="urlPath"&&y.value&&typeof y.value=="string"&&y.value!=="/"&&y.value.endsWith("/")&&(B=y.value.slice(0,-1)),!(h&&k))return!0;if(Array.isArray(B))return k==="isNot"?B.every(D=>a(g,{property:h,operator:k,value:D})):!!B.find(D=>a(g,{property:h,operator:k,value:D}));const R=g[h];if(Array.isArray(R))return R.includes(B);switch(k){case"is":return R===B;case"isNot":return R!==B;case"contains":return(o(R)||Array.isArray(R))&&R.includes(String(B));case"startsWith":return o(R)&&R.startsWith(String(B));case"endsWith":return o(R)&&R.endsWith(String(B));case"greaterThan":return i(R)&&i(B)&&R>B;case"lessThan":return i(R)&&i(B)&&R<B;case"greaterThanOrEqualTo":return i(R)&&i(B)&&R>=B;case"lessThanOrEqualTo":return i(R)&&i(B)&&R<=B;default:return!1}})()}const u={query:t,startDate:n,endDate:r},p=e.date&&new Date(e.date)||new Date;return u.startDate&&new Date(u.startDate)>p||u.endDate&&new Date(u.endDate)<p?!1:!u.query||!u.query.length?!0:u.query.every(g=>a(e,g))}const Ia=`function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
52
|
+
if (!navigator.cookieEnabled) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
function getCookie(name) {
|
|
56
|
+
const nameEQ = name + '=';
|
|
57
|
+
const ca = document.cookie.split(';');
|
|
58
|
+
for (let i = 0; i < ca.length; i++) {
|
|
59
|
+
let c = ca[i];
|
|
60
|
+
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
|
|
61
|
+
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
|
|
62
|
+
}
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
|
|
66
|
+
if (locale) {
|
|
67
|
+
attributes.locale = locale;
|
|
68
|
+
}
|
|
69
|
+
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
70
|
+
return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
71
|
+
});
|
|
72
|
+
const parentDiv = document.currentScript?.parentElement;
|
|
73
|
+
const variantId = parentDiv?.getAttribute('data-variant-id');
|
|
74
|
+
const isDefaultVariant = variantId === \`\${blockId}-default\`;
|
|
75
|
+
const isWinningVariant = winningVariantIndex !== -1 && variantId === \`\${blockId}-\${winningVariantIndex}\` || winningVariantIndex === -1 && isDefaultVariant;
|
|
76
|
+
if (isWinningVariant && !isDefaultVariant) {
|
|
77
|
+
parentDiv?.removeAttribute('hidden');
|
|
78
|
+
parentDiv?.removeAttribute('aria-hidden');
|
|
79
|
+
} else if (!isWinningVariant && isDefaultVariant) {
|
|
80
|
+
parentDiv?.setAttribute('hidden', 'true');
|
|
81
|
+
parentDiv?.setAttribute('aria-hidden', 'true');
|
|
82
|
+
}
|
|
83
|
+
if (isHydrationTarget) {
|
|
84
|
+
if (!isWinningVariant) {
|
|
85
|
+
const itsStyleEl = parentDiv?.previousElementSibling;
|
|
86
|
+
if (itsStyleEl) {
|
|
87
|
+
itsStyleEl.remove();
|
|
88
|
+
}
|
|
89
|
+
parentDiv?.remove();
|
|
90
|
+
}
|
|
91
|
+
const thisScript = document.currentScript;
|
|
92
|
+
if (thisScript) {
|
|
93
|
+
thisScript.remove();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}`,Ba=`function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
97
|
+
function isString(val) {
|
|
98
|
+
return typeof val === 'string';
|
|
99
|
+
}
|
|
100
|
+
function isNumber(val) {
|
|
101
|
+
return typeof val === 'number';
|
|
102
|
+
}
|
|
103
|
+
function objectMatchesQuery(userattr, query) {
|
|
104
|
+
const result = (() => {
|
|
105
|
+
const property = query.property;
|
|
106
|
+
const operator = query.operator;
|
|
107
|
+
let testValue = query.value;
|
|
108
|
+
if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {
|
|
109
|
+
testValue = query.value.slice(0, -1);
|
|
110
|
+
}
|
|
111
|
+
if (!(property && operator)) {
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
if (Array.isArray(testValue)) {
|
|
115
|
+
if (operator === 'isNot') {
|
|
116
|
+
return testValue.every(val => objectMatchesQuery(userattr, {
|
|
117
|
+
property,
|
|
118
|
+
operator,
|
|
119
|
+
value: val
|
|
120
|
+
}));
|
|
121
|
+
}
|
|
122
|
+
return !!testValue.find(val => objectMatchesQuery(userattr, {
|
|
123
|
+
property,
|
|
124
|
+
operator,
|
|
125
|
+
value: val
|
|
126
|
+
}));
|
|
127
|
+
}
|
|
128
|
+
const value = userattr[property];
|
|
129
|
+
if (Array.isArray(value)) {
|
|
130
|
+
return value.includes(testValue);
|
|
131
|
+
}
|
|
132
|
+
switch (operator) {
|
|
133
|
+
case 'is':
|
|
134
|
+
return value === testValue;
|
|
135
|
+
case 'isNot':
|
|
136
|
+
return value !== testValue;
|
|
137
|
+
case 'contains':
|
|
138
|
+
return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
|
|
139
|
+
case 'startsWith':
|
|
140
|
+
return isString(value) && value.startsWith(String(testValue));
|
|
141
|
+
case 'endsWith':
|
|
142
|
+
return isString(value) && value.endsWith(String(testValue));
|
|
143
|
+
case 'greaterThan':
|
|
144
|
+
return isNumber(value) && isNumber(testValue) && value > testValue;
|
|
145
|
+
case 'lessThan':
|
|
146
|
+
return isNumber(value) && isNumber(testValue) && value < testValue;
|
|
147
|
+
case 'greaterThanOrEqualTo':
|
|
148
|
+
return isNumber(value) && isNumber(testValue) && value >= testValue;
|
|
149
|
+
case 'lessThanOrEqualTo':
|
|
150
|
+
return isNumber(value) && isNumber(testValue) && value <= testValue;
|
|
151
|
+
default:
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
})();
|
|
155
|
+
return result;
|
|
156
|
+
}
|
|
157
|
+
const item = {
|
|
158
|
+
query,
|
|
159
|
+
startDate,
|
|
160
|
+
endDate
|
|
161
|
+
};
|
|
162
|
+
const now = userAttributes.date && new Date(userAttributes.date) || new Date();
|
|
163
|
+
if (item.startDate && new Date(item.startDate) > now) {
|
|
164
|
+
return false;
|
|
165
|
+
} else if (item.endDate && new Date(item.endDate) < now) {
|
|
166
|
+
return false;
|
|
167
|
+
}
|
|
168
|
+
if (!item.query || !item.query.length) {
|
|
169
|
+
return true;
|
|
170
|
+
}
|
|
171
|
+
return item.query.every(filter => {
|
|
172
|
+
return objectMatchesQuery(userAttributes, filter);
|
|
173
|
+
});
|
|
174
|
+
}`,Ra=`function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
175
|
+
function getCookie(name) {
|
|
176
|
+
const nameEQ = name + '=';
|
|
177
|
+
const ca = document.cookie.split(';');
|
|
178
|
+
for (let i = 0; i < ca.length; i++) {
|
|
179
|
+
let c = ca[i];
|
|
180
|
+
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
|
|
181
|
+
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
|
|
182
|
+
}
|
|
183
|
+
return null;
|
|
184
|
+
}
|
|
185
|
+
const visibilityStylesEl = document.currentScript?.previousElementSibling;
|
|
186
|
+
if (!visibilityStylesEl) {
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
if (isHydrationTarget) {
|
|
190
|
+
visibilityStylesEl.remove();
|
|
191
|
+
const currentScript = document.currentScript;
|
|
192
|
+
if (currentScript) {
|
|
193
|
+
currentScript.remove();
|
|
194
|
+
}
|
|
195
|
+
} else {
|
|
196
|
+
const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
|
|
197
|
+
if (locale) {
|
|
198
|
+
attributes.locale = locale;
|
|
199
|
+
}
|
|
200
|
+
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
201
|
+
return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
202
|
+
});
|
|
203
|
+
if (winningVariantIndex !== -1) {
|
|
204
|
+
let newStyleStr = variants?.map((_, index) => {
|
|
205
|
+
if (index === winningVariantIndex) return '';
|
|
206
|
+
return \`div[data-variant-id="\${blockId}-\${index}"] { display: none !important; } \`;
|
|
207
|
+
}).join('') || '';
|
|
208
|
+
newStyleStr += \`div[data-variant-id="\${blockId}-default"] { display: none !important; } \`;
|
|
209
|
+
visibilityStylesEl.innerHTML = newStyleStr;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}`,yt="default",Ar="filterWithCustomTargeting",un="builderIoPersonalization",pn="updateVisibilityStylesScript",Aa="PersonalizationContainer",Eo=["react","vue","svelte","qwik"],To=["vue","svelte","qwik"];function Pa(e,t){return!(e&&e.length>0)||!t?!1:To.includes(W)?!0:!U()}function $a({variants:e,previewingIndex:t,isHydrated:n,filteredVariants:r,fallbackBlocks:o}){const i={blocks:o??[],path:"this.children",index:yt};if(n&&G()){if(typeof t=="number"&&t<((e==null?void 0:e.length)??0)){const a=e==null?void 0:e[t];if(a)return{blocks:a.blocks,path:`variants.${t}.blocks`,index:t}}return i}if(U()){const a=r==null?void 0:r[0];if(a&&e){const u=e.indexOf(a);if(u!==-1)return{blocks:a.blocks,path:`variants.${u}.blocks`,index:u}}}return i}const dn=e=>{var t;return Array.isArray(e)?e.some(dn):!e||typeof e!="object"?!1:((t=e.component)==null?void 0:t.name)===Aa?!0:Object.values(e).some(dn)},xa=e=>dn(e),Oa=()=>`
|
|
213
|
+
(function() {
|
|
214
|
+
if (!window.${Ar}) {
|
|
215
|
+
window.${Ar} = ${Ba};
|
|
216
|
+
}
|
|
217
|
+
if (!window.${un}) {
|
|
218
|
+
window.${un} = ${Ia};
|
|
219
|
+
}
|
|
220
|
+
if (!window.${pn}) {
|
|
221
|
+
window.${pn} = ${Ra};
|
|
222
|
+
}
|
|
223
|
+
})();
|
|
224
|
+
`,Io=W==="react",Na=(e,t,n)=>`window.${un}(${JSON.stringify(e)}, "${t}", ${Io}${n?`, "${n}"`:""})`,Va=(e,t,n)=>`window.${pn}(${JSON.stringify(e)}, "${t}", ${Io}${n?`, "${n}"`:""})`,Zt={"@type":"@builder.io/sdk:Element",layerName:"Accordion item title",responsiveStyles:{large:{marginTop:"10px",position:"relative",display:"flex",alignItems:"stretch",flexDirection:"column",paddingBottom:"10px"}},children:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"left",display:"flex",flexDirection:"column"}},component:{name:"Text",options:{text:"I am an accordion title. Click me!"}}}]},en={"@type":"@builder.io/sdk:Element",layerName:"Accordion item detail",responsiveStyles:{large:{position:"relative",display:"flex",alignItems:"stretch",flexDirection:"column",marginTop:"10px",paddingBottom:"10px"}},children:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{paddingTop:"50px",textAlign:"left",display:"flex",flexDirection:"column",paddingBottom:"50px"}},component:{name:"Text",options:{text:"I am an accordion detail, hello!"}}}]},ja={name:"Builder:Accordion",canHaveChildren:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",defaultStyles:{display:"flex",flexDirection:"column",alignItems:"stretch"},inputs:[{name:"items",type:"list",broadcast:!0,subFields:[{name:"title",type:"uiBlocks",hideFromUI:!0,defaultValue:[Zt]},{name:"detail",type:"uiBlocks",hideFromUI:!0,defaultValue:[en]}],defaultValue:[{title:[Zt],detail:[en]},{title:[Zt],detail:[en]}],showIf:e=>!e.get("useChildrenForItems")},{name:"oneAtATime",helperText:"Only allow opening one at a time (collapse all others when new item openned)",type:"boolean",defaultValue:!1},{name:"grid",helperText:"Display as a grid",type:"boolean",defaultValue:!1},{name:"gridRowWidth",helperText:"Display as a grid",type:"string",showIf:e=>e.get("grid"),defaultValue:"25%"},{name:"useChildrenForItems",type:"boolean",helperText:"Use child elements for each slide, instead of the array. Useful for dynamically repeating items",advanced:!0,defaultValue:!1,onChange:e=>{e.get("useChildrenForItems")===!0&&e.set("items",[])}}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},Da=e=>e.toString(),Ua=s.defineComponent({name:"builder-accordion",components:{Blocks:we},props:["grid","oneAtATime","items","gridRowWidth","builderBlock","builderContext","builderComponents","builderLinkComponent"],data(){return{open:[],convertOrderNumberToString:Da}},computed:{onlyOneAtATime(){return!!(this.grid||this.oneAtATime)},accordionStyles(){return{display:"flex",alignItems:"stretch",flexDirection:"column",...this.grid&&{flexDirection:"row",alignItems:"flex-start",flexWrap:"wrap"}}},accordionTitleStyles(){const t={...{display:"flex",flexDirection:"column"},alignItems:"stretch",cursor:"pointer"};return Object.fromEntries(Object.entries(t).filter(([n,r])=>r!==void 0))},openGridItemOrder(){let e=null;if(this.grid&&this.open.length&&document){const n=this.open[0];let o=document.querySelector(`.builder-accordion-title[data-index="${n}"]`);if(e=n,o){let i=o.getBoundingClientRect();for(;o=o&&o.nextElementSibling;)if(o){if(o.classList.contains("builder-accordion-detail"))continue;const a=o.getBoundingClientRect();if(a.left>i.left){const u=parseInt(o.getAttribute("data-index")||"",10);isNaN(u)||(i=a,e=u)}else break}}}return typeof e=="number"&&(e=e+1),e},accordionDetailStyles(){const e={order:typeof this.openGridItemOrder=="number"?this.openGridItemOrder:void 0,...this.grid&&{width:"100%"}};return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0))}},methods:{getAccordionTitleClassName(e){return`builder-accordion-title builder-accordion-title-${this.open.includes(e)?"open":"closed"}`},getAccordionDetailClassName(e){return`builder-accordion-detail builder-accordion-detail-${this.open.includes(e)?"open":"closed"}`},onClick(e){this.open.includes(e)?this.open=this.onlyOneAtATime?[]:this.open.filter(t=>t!==e):this.open=this.onlyOneAtATime?[e]:this.open.concat(e)}}}),Fa=["data-index","onClick"];function Wa(e,t,n,r,o,i){const a=s.resolveComponent("Blocks");return s.openBlock(),s.createElementBlock("div",{class:"builder-accordion",style:s.normalizeStyle(e.accordionStyles)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(u,p)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:p},[s.createElementVNode("div",{class:s.normalizeClass(e.getAccordionTitleClassName(p)),style:s.normalizeStyle({...e.accordionTitleStyles,...e.grid&&{width:e.gridRowWidth,order:e.openGridItemOrder!==null?e.convertOrderNumberToString(p):e.convertOrderNumberToString(p+1)}}),"data-index":p,onClick:async g=>e.onClick(p)},[s.createVNode(a,{blocks:u.title,path:`items.${p}.title`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent},null,8,["blocks","path","parent","context","registeredComponents","linkComponent"])],14,Fa),e.open.includes(p)?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(e.getAccordionDetailClassName(p)),style:s.normalizeStyle(e.accordionDetailStyles)},[s.createVNode(a,{blocks:u.detail,path:`items.${p}.detail`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent},null,8,["blocks","path","parent","context","registeredComponents","linkComponent"])],6)):s.createCommentVNode("",!0)],64))),128))],4)}const La=O(Ua,[["render",Wa]]),Ma={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,shouldReceiveBuilderProps:{builderLinkComponent:!0}},Ha={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}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},za={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Vn=["jpeg","jpg","png","svg","webp","gif","jfif","pjpeg","pjp","apng","avif","tif","tiff","heif","bmp","eps","raw","cr2","nef","orf","sr2","psd","heic","dib","ai"],Ka=["mp4","webm","mkv","flv","vob","ogv","ogg","drc","gif","gifv","mng","avi","mov","qt","mts","m2ts","ts","wmv","yuv","rm","rmvb","viv","asf","amv","m4p","mpeg","mpe","m2v","m4v","svi","3gp","3g2","mxf","roq","nsv","f4v","f4p","f4a","f4b"],qa={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:Vn,required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(a,u=6e4){return new Promise((p,g)=>{const y=document.createElement("img");let b=!1;y.onload=()=>{b=!0,p(y)},y.addEventListener("error",h=>{console.warn("Image load failed",h.error),g(h.error)}),y.src=a,setTimeout(()=>{b||g(new Error("Image load timed out"))},u)})}function r(a){return Math.round(a*1e3)/1e3}const o=e.get("image"),i=e.get("aspectRatio");if(fetch(o).then(a=>a.blob()).then(a=>{a.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!i||i===.7041))return n(o).then(a=>{const u=e.get("aspectRatio");e.get("image")===o&&(!u||u===.7041)&&a.width&&a.height&&(e.set("aspectRatio",r(a.height/a.width)),e.set("height",a.height),e.set("width",a.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:"title",type:"string",helperText:"Text to display when hovering over the asset"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",advanced:!0,helperText:'The sizes attribute for responsive images, e.g. "(max-width: 600px) 100vw, 50vw"'},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"highPriority",type:"boolean",advanced:!0,helperText:"Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}],shouldReceiveBuilderProps:{builderBlock:!0}},Ga={name:"PersonalizationContainer",shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0},noWrap:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",canHaveChildren:!0,inputs:[{name:"variants",defaultValue:[],behavior:"personalizationVariantList",type:"list",subFields:[{name:"name",type:"text"},{name:"query",friendlyName:"Targeting rules",type:"BuilderQuery",defaultValue:[]},{name:"startDate",type:"date"},{name:"endDate",type:"date"},{name:"blocks",type:"uiBlocks",hideFromUI:!0,defaultValue:[]}]}]},jn=s.defineComponent({render(){return s.h("script",{innerHTML:this.scriptStr,"data-id":this.id,nonce:this.nonce})},name:"inlined-script",props:["scriptStr","id","nonce"]}),_a=s.defineComponent({name:"builder-personalization-container",components:{Blocks:we,InlinedStyles:st,InlinedScript:jn},props:["builderContext","variants","builderBlock","attributes","previewingIndex","builderComponents"],data(){var e,t,n,r,o,i,a;return{userAttributes:wt.getUserAttributes(),scriptStr:Na(this.variants,((e=this.builderBlock)==null?void 0:e.id)||"none",(n=(t=this.builderContext)==null?void 0:t.rootState)==null?void 0:n.locale),updateVisibilityStylesScript:Va(this.variants,((r=this.builderBlock)==null?void 0:r.id)||"none",(i=(o=this.builderContext)==null?void 0:o.rootState)==null?void 0:i.locale),unsubscribers:[],shouldRenderVariants:Pa(this.variants,je((a=this.builderContext)==null?void 0:a.canTrack)),shouldResetVariants:!1,TARGET:W,DEFAULT_INDEX:yt,SDKS_REQUIRING_RESET_APPROACH:To}},mounted(){var t;this.shouldResetVariants=!0;const e=wt.subscribeOnUserAttributesChange(n=>{this.userAttributes=n},{fireImmediately:W==="qwik"});if(!(G()||Bt())){const n=this.filteredVariants[0];this.$refs.rootRef&&(this.$refs.rootRef.dispatchEvent(new CustomEvent("builder.variantLoaded",{detail:{variant:n||yt,content:(t=this.builderContext)==null?void 0:t.content},bubbles:!0})),new IntersectionObserver(o=>{o.forEach(i=>{var a;i.isIntersecting&&this.$refs.rootRef&&this.$refs.rootRef.dispatchEvent(new CustomEvent("builder.variantDisplayed",{detail:{variant:n||yt,content:(a=this.builderContext)==null?void 0:a.content},bubbles:!0}))})}).observe(this.$refs.rootRef))}this.unsubscribers.push(e)},unmounted(){this.unsubscribers.forEach(e=>e())},computed:{attrs(){return{...ne(this.attributes,"v-on:",!1),...ne(this.attributes,"v-on:",!0),[ye()]:`builder-personalization-container ${this.attributes[ye()]||""}`}},filteredVariants(){return(this.variants||[]).filter(e=>{var t,n,r,o;return Ta({...(n=(t=this.builderContext)==null?void 0:t.rootState)!=null&&n.locale?{locale:(o=(r=this.builderContext)==null?void 0:r.rootState)==null?void 0:o.locale}:{},...this.userAttributes},e.query,e.startDate,e.endDate)})},blocksToRender(){var e;return $a({variants:this.variants,fallbackBlocks:(e=this.builderBlock)==null?void 0:e.children,isHydrated:this.shouldResetVariants,filteredVariants:this.filteredVariants,previewingIndex:this.previewingIndex})},hideVariantsStyleString(){return(this.variants||[]).map((e,t)=>{var n;return`div[data-variant-id="${(n=this.builderBlock)==null?void 0:n.id}-${t}"] { display: none !important; } `}).join("")}}});function Ja(e,t,n,r,o,i){var g,y,b,h,k,B,R,D,q,T;const a=s.resolveComponent("Blocks"),u=s.resolveComponent("InlinedStyles"),p=s.resolveComponent("InlinedScript");return s.openBlock(),s.createElementBlock("div",s.mergeProps({ref:"rootRef"},e.attrs),[e.shouldResetVariants&&e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET)?(s.openBlock(),s.createBlock(a,{key:0,blocks:e.blocksToRender.blocks,parent:(g=e.builderBlock)==null?void 0:g.id,path:e.blocksToRender.path,context:e.builderContext,registeredComponents:e.builderComponents,BlocksWrapperProps:{...(y=e.builderContext)==null?void 0:y.BlocksWrapperProps,"data-variant-id":`${(b=e.builderBlock)==null?void 0:b.id}-${e.blocksToRender.index}`}},null,8,["blocks","parent","path","context","registeredComponents","BlocksWrapperProps"])):s.createCommentVNode("",!0),!e.shouldResetVariants&&e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET)||!e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.shouldRenderVariants?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(u,{nonce:((h=e.builderContext)==null?void 0:h.nonce)||"",styles:e.hideVariantsStyleString,id:`variants-styles-${(k=e.builderBlock)==null?void 0:k.id}`},null,8,["nonce","styles","id"]),s.createVNode(p,{nonce:((B=e.builderContext)==null?void 0:B.nonce)||"",scriptStr:e.updateVisibilityStylesScript,id:`variants-visibility-script-${(R=e.builderBlock)==null?void 0:R.id}`},null,8,["nonce","scriptStr","id"]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.variants,(re,N)=>{var ae,F,X,w;return s.openBlock(),s.createBlock(a,{key:`${(ae=e.builderBlock)==null?void 0:ae.id}-${N}`,BlocksWrapperProps:{...(F=e.builderContext)==null?void 0:F.BlocksWrapperProps,"aria-hidden":!0,hidden:!0,"data-variant-id":`${(X=e.builderBlock)==null?void 0:X.id}-${N}`},blocks:re.blocks,parent:(w=e.builderBlock)==null?void 0:w.id,path:`component.options.variants.${N}.blocks`,context:e.builderContext,registeredComponents:e.builderComponents},{default:s.withCtx(()=>{var oe,j;return[s.createVNode(p,{nonce:((oe=e.builderContext)==null?void 0:oe.nonce)||"",scriptStr:e.scriptStr,id:`variants-script-${(j=e.builderBlock)==null?void 0:j.id}-${N}`},null,8,["nonce","scriptStr","id"])]}),_:2},1032,["BlocksWrapperProps","blocks","parent","path","context","registeredComponents"])}),128))],64)):s.createCommentVNode("",!0),s.createVNode(a,{blocks:e.blocksToRender.blocks,parent:(D=e.builderBlock)==null?void 0:D.id,path:e.blocksToRender.path,context:e.builderContext,registeredComponents:e.builderComponents,BlocksWrapperProps:{...(q=e.builderContext)==null?void 0:q.BlocksWrapperProps,"data-variant-id":`${(T=e.builderBlock)==null?void 0:T.id}-${e.blocksToRender.index}`}},{default:s.withCtx(()=>{var re,N;return[e.shouldRenderVariants?(s.openBlock(),s.createBlock(p,{key:0,nonce:((re=e.builderContext)==null?void 0:re.nonce)||"",scriptStr:e.scriptStr,id:`variants-script-${(N=e.builderBlock)==null?void 0:N.id}-${e.DEFAULT_INDEX}`},null,8,["nonce","scriptStr","id"])):s.createCommentVNode("",!0)]}),_:1},8,["blocks","parent","path","context","registeredComponents","BlocksWrapperProps"])],64)):s.createCommentVNode("",!0)],16)}const Xa=O(_a,[["render",Ja]]),Ya={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>"}}}]},Qa={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"}],shouldReceiveBuilderProps:{builderContext:!0,builderComponents:!0}},Za=s.defineComponent({name:"builder-slot",components:{Blocks:we},props:["builderContext","name","builderComponents"]});function el(e,t,n,r,o,i){var u,p,g;const a=s.resolveComponent("Blocks");return s.openBlock(),s.createElementBlock("div",s.mergeProps({style:{pointerEvents:"auto"}},!((u=e.builderContext.context)!=null&&u.symbolId)&&{"builder-slot":e.name}),[s.createVNode(a,{parent:(p=e.builderContext.context)==null?void 0:p.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,registeredComponents:e.builderComponents,blocks:(g=e.builderContext.rootState)==null?void 0:g[e.name]},null,8,["parent","path","context","registeredComponents","blocks"])],16)}const tl=O(Za,[["render",el]]),nl={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"}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},tn={"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"10px",paddingBottom:"10px",minWidth:"100px",textAlign:"center",display:"flex",flexDirection:"column",cursor:"pointer",userSelect:"none"}},component:{name:"Text",options:{text:"New tab"}}},nn={"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{height:"200px",display:"flex",marginTop:"20px",flexDirection:"column"}},component:{name:"Text",options:{text:"New tab content "}}},rl={name:"Builder: Tabs",inputs:[{name:"tabs",type:"list",broadcast:!0,subFields:[{name:"label",type:"uiBlocks",hideFromUI:!0,defaultValue:[tn]},{name:"content",type:"uiBlocks",hideFromUI:!0,defaultValue:[nn]}],defaultValue:[{label:[{...tn,component:{name:"Text",options:{text:"Tab 1"}}}],content:[{...nn,component:{name:"Text",options:{text:"Tab 1 content"}}}]},{label:[{...tn,component:{name:"Text",options:{text:"Tab 2"}}}],content:[{...nn,component:{name:"Text",options:{text:"Tab 2 content"}}}]}]},{name:"activeTabStyle",type:"uiStyle",helperText:"CSS styles for the active tab",defaultValue:{backgroundColor:"rgba(0, 0, 0, 0.1)"}},{name:"defaultActiveTab",type:"number",helperText:'Default tab to open to. Set to "1" for the first tab, "2" for the second, or choose "0" for none',defaultValue:1,advanced:!0},{name:"collapsible",type:"boolean",helperText:"If on, clicking an open tab closes it so no tabs are active",defaultValue:!1,advanced:!0},{name:"tabHeaderLayout",type:"enum",helperText:"Change the layout of the tab headers (uses justify-content)",defaultValue:"flex-start",enum:[{label:"Center",value:"center"},{label:"Space between",value:"space-between"},{label:"Space around",value:"space-around"},{label:"Left",value:"flex-start"},{label:"Right",value:"flex-end"}]}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},ol=s.defineComponent({name:"builder-tabs",components:{Blocks:we},props:["defaultActiveTab","tabs","activeTabStyle","collapsible","tabHeaderLayout","builderBlock","builderContext","builderComponents","builderLinkComponent"],data(){return{activeTab:this.defaultActiveTab?this.defaultActiveTab-1:0}},methods:{activeTabContent(e){return this.tabs&&this.tabs[e].content},getTabStyle(e){return e===this.activeTab?this.activeTabStyle:{}},onClick(e){e===this.activeTab&&this.collapsible?this.activeTab=-1:this.activeTab=e}}}),il=["onClick"],sl={key:0};function al(e,t,n,r,o,i){const a=s.resolveComponent("Blocks");return s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",{class:"builder-tabs-wrap",style:s.normalizeStyle({display:"flex",flexDirection:"row",justifyContent:e.tabHeaderLayout||"flex-start",overflow:"auto"})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.tabs,(u,p)=>(s.openBlock(),s.createElementBlock("span",{key:p,class:s.normalizeClass(`builder-tab-wrap ${e.activeTab===p?"builder-tab-active":""}`),style:s.normalizeStyle(e.getTabStyle(p)),onClick:async g=>e.onClick(p)},[s.createVNode(a,{parent:e.builderBlock.id,path:`tabs.${p}.label`,blocks:u.label,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent},null,8,["parent","path","blocks","context","registeredComponents","linkComponent"])],14,il))),128))],4),e.activeTabContent(e.activeTab)?(s.openBlock(),s.createElementBlock("div",sl,[s.createVNode(a,{parent:e.builderBlock.id,path:`tabs.${e.activeTab}.content`,blocks:e.activeTabContent(e.activeTab),context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent},null,8,["parent","path","blocks","context","registeredComponents","linkComponent"])])):s.createCommentVNode("",!0)])}const ll=O(ol,[["render",al]]),cl={shouldReceiveBuilderProps:{},name:"Text",static:!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"}},ul=s.defineComponent({name:"builder-text",props:["text"]}),pl=["innerHTML"];function dl(e,t,n,r,o,i){var a;return s.openBlock(),s.createElementBlock("div",{class:"builder-text",innerHTML:((a=e.text)==null?void 0:a.toString())||"",style:{outline:"none"}},null,8,pl)}const Bo=O(ul,[["render",dl]]),ml={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}]},fl=s.defineComponent({name:"builder-custom-code",props:["code","replaceNodes"],data(){return{scriptsInserted:[],scriptsRun:[]}},mounted(){this.runScripts()},watch:{onUpdateHook0:{handler(){G()&&setTimeout(()=>{this.runScripts()},0)},immediate:!0}},computed:{onUpdateHook0(){return{0:this.code}}},methods:{runScripts(){var t;if(!this.$refs.elementRef||!((t=this.$refs.elementRef)!=null&&t.getElementsByTagName)||typeof window>"u")return;const e=this.$refs.elementRef.getElementsByTagName("script");for(let n=0;n<e.length;n++){const r=e[n];if(r.src){if(this.scriptsInserted.includes(r.src))continue;this.scriptsInserted.push(r.src);const o=document.createElement("script");o.async=!0,o.src=r.src,document.head.appendChild(o)}else if(!r.type||["text/javascript","application/javascript","application/ecmascript"].includes(r.type)){if(this.scriptsRun.includes(r.innerText))continue;try{this.scriptsRun.push(r.innerText),new Function(r.innerText)()}catch(o){ee.warn("[BUILDER.IO] `CustomCode`: Error running script:",o)}}}}}}),hl=["innerHTML"];function gl(e,t,n,r,o,i){return s.openBlock(),s.createElementBlock("div",{ref:"elementRef",class:s.normalizeClass("builder-custom-code"+(e.replaceNodes?" replace-nodes":"")),innerHTML:e.code},null,10,hl)}const yl=O(fl,[["render",gl]]),vl={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc"},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},bl=["text/javascript","application/javascript","application/ecmascript"],kl=e=>bl.includes(e.type),Sl=s.defineComponent({name:"builder-embed",props:["content"],data(){return{scriptsInserted:[],scriptsRun:[],ranInitFn:!1}},watch:{onUpdateHook0:{handler(){this.$refs.elem&&!this.ranInitFn&&(this.ranInitFn=!0,this.findAndRunScripts())},immediate:!0}},computed:{onUpdateHook0(){return{0:this.$refs.elem,1:this.ranInitFn}}},methods:{findAndRunScripts(){if(!this.$refs.elem||!this.$refs.elem.getElementsByTagName)return;const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src&&!this.scriptsInserted.includes(n.src)){this.scriptsInserted.push(n.src);const r=document.createElement("script");r.async=!0,r.src=n.src,document.head.appendChild(r)}else if(kl(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(r){ee.warn("[BUILDER.IO] `Embed`: Error running script:",r)}}}}}),Cl=["innerHTML"];function wl(e,t,n,r,o,i){return s.openBlock(),s.createElementBlock("div",{class:"builder-embed",ref:"elem",innerHTML:e.content},null,8,Cl)}const El=O(Sl,[["render",wl]]),Tl={name:"Form:Form",defaults:{responsiveStyles:{large:{marginTop:"15px",paddingBottom:"15px"}}},image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fef36d2a846134910b64b88e6d18c5ca5",inputs:[{name:"sendSubmissionsTo",type:"string",enum:[{label:"Send to email",value:"email",helperText:"Send form submissions to the email address of your choosing"},{label:"Custom",value:"custom",helperText:"Handle where the form requests go manually with a little code, e.g. to your own custom backend"}],defaultValue:"email"},{name:"sendSubmissionsToEmail",type:"string",required:!0,defaultValue:"your@email.com",showIf:'options.get("sendSubmissionsTo") === "email"'},{name:"sendWithJs",type:"boolean",helperText:"Set to false to use basic html form action",defaultValue:!0,showIf:'options.get("sendSubmissionsTo") === "custom"'},{name:"name",type:"string",defaultValue:"My form"},{name:"action",type:"string",helperText:"URL to send the form data to",showIf:'options.get("sendSubmissionsTo") === "custom"'},{name:"contentType",type:"string",defaultValue:"application/json",advanced:!0,enum:["application/json","multipart/form-data","application/x-www-form-urlencoded"],showIf:'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'},{name:"method",type:"string",showIf:'options.get("sendSubmissionsTo") === "custom"',defaultValue:"POST",advanced:!0},{name:"previewState",type:"string",enum:["unsubmitted","sending","success","error"],defaultValue:"unsubmitted",helperText:'Choose a state to edit, e.g. choose "success" to show what users see on success and edit the message',showIf:'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'},{name:"successUrl",type:"url",helperText:"Optional URL to redirect the user to on form submission success",showIf:'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'},{name:"resetFormOnSubmit",type:"boolean",showIf:"options.get('sendSubmissionsTo') === 'custom' && options.get('sendWithJs') === true",advanced:!0},{name:"successMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Thanks!</span>"}}}]},{name:"validate",type:"boolean",defaultValue:!0,advanced:!0},{name:"errorMessagePath",type:"text",advanced:!0,helperText:'Path to where to get the error message from in a JSON response to display to the user, e.g. "error.message" for a response like { "error": { "message": "this username is taken" }}'},{name:"errorMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},bindings:{"component.options.text":"state.formErrorMessage || block.component.options.text"},component:{name:"Text",options:{text:"<span>Form submission error :( Please check your answers and try again</span>"}}}]},{name:"sendingMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Sending...</span>"}}}]},{name:"customHeaders",type:"map",valueType:{type:"string"},advanced:!0,showIf:'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'}],noWrap:!0,canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Enter your name</span>"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:Input",options:{name:"name",placeholder:"Jane Doe"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Enter your email</span>"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:Input",options:{name:"email",placeholder:"jane@doe.com"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:SubmitButton",options:{text:"Submit"}}}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},Il=["production","qa","test","development","dev","cdn-qa","cloud","fast","cdn2","cdn-prod"],Bl=()=>{const e=process.env.NODE_ENV||"production";return Il.includes(e)?e:"production"},Rl=s.defineComponent({name:"builder-form-component",components:{Blocks:we},props:["builderContext","previewState","sendWithJs","sendSubmissionsTo","action","customHeaders","contentType","sendSubmissionsToEmail","name","method","errorMessagePath","resetFormOnSubmit","successUrl","validate","attributes","errorMessage","sendingMessage","successMessage"],data(){return{formState:"unsubmitted",responseData:null,formErrorMessage:"",filterAttrs:ne}},methods:{mergeNewRootState(e){var n,r;const t={...this.builderContext.rootState,...e};this.builderContext.rootSetState?(r=(n=this.builderContext).rootSetState)==null||r.call(n,t):this.builderContext.rootState=t},submissionState(){return G()&&this.previewState||this.formState},errorResponse(e){return JSON.stringify(e,null,2)},onSubmit(e){var n;const t=this.sendWithJs||this.sendSubmissionsTo==="email";if(this.sendSubmissionsTo==="zapier")e.preventDefault();else if(t){if(!(this.action||this.sendSubmissionsTo==="email")){e.preventDefault();return}e.preventDefault();const r=e.currentTarget||e.target,o=this.customHeaders||{};let i;const a=new FormData(r),u=Array.from(r.querySelectorAll("input,select,textarea")).filter(h=>!!h.name).filter(h=>!!h.name&&(h.type!=="radio"||h.checked)).map(h=>{let k;const B=h.name;if(h instanceof HTMLInputElement)if(h.type==="radio"){if(h.checked)return k=h.value,{key:B,value:k}}else if(h.type==="checkbox")k=h.checked;else if(h.type==="number"||h.type==="range"){const R=h.valueAsNumber;isNaN(R)||(k=R)}else h.type==="file"?k=h.files:k=h.value;else k=h.value;return{key:B,value:k}});let p=this.contentType;if(this.sendSubmissionsTo==="email"&&(p="multipart/form-data"),Array.from(u).forEach(({value:h})=>{(h instanceof File||Array.isArray(h)&&h[0]instanceof File||h instanceof FileList)&&(p="multipart/form-data")}),p!=="application/json")i=a;else{const h={};Array.from(u).forEach(({value:k,key:B})=>{Zr(h,B,k)}),i=JSON.stringify(h)}p&&p!=="multipart/form-data"&&(t&&((n=this.action)!=null&&n.includes("zapier.com"))||(o["content-type"]=p));const g=new CustomEvent("presubmit",{detail:{body:i}});if(this.$refs.formRef&&(this.$refs.formRef.dispatchEvent(g),g.defaultPrevented))return;if(this.formState="sending",this.sendSubmissionsTo==="email"&&(this.sendSubmissionsToEmail==="your@email.com"||!this.sendSubmissionsToEmail)){const h="SubmissionsToEmail is required when sendSubmissionsTo is set to email";console.error(h),this.formState="error",this.mergeNewRootState({formErrorMessage:h});return}const y=`${Bl()==="dev"?"http://localhost:5000":"https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(this.sendSubmissionsToEmail||"")}&name=${encodeURIComponent(this.name||"")}`,b=this.sendSubmissionsTo==="email"?y:this.action;yn(b),fetch(b,{body:i,headers:o,method:this.method||"post"}).then(async h=>{var R,D;let k;const B=h.headers.get("content-type");if(B&&B.indexOf("application/json")!==-1?k=await h.json():k=await h.text(),!h.ok){const q=new CustomEvent("submit:error",{detail:{error:k,status:h.status}});if((R=this.$refs.formRef)!=null&&R.nativeElement&&((D=this.$refs.formRef)==null||D.nativeElement.dispatchEvent(q),q.defaultPrevented))return;this.responseData=k,this.formState="error";let T=this.errorMessagePath?Vr(k,this.errorMessagePath):k.message||k.error||k;typeof T!="string"&&(T=JSON.stringify(T)),this.formErrorMessage=T,this.mergeNewRootState({formErrorMessage:T});return}if(this.responseData=k,this.formState=h.ok?"success":"error",h.ok){const q=new CustomEvent("submit:success",{detail:{res:h,body:k}});if(this.$refs.formRef){if(this.$refs.formRef.dispatchEvent(q),q.defaultPrevented)return;this.resetFormOnSubmit!==!1&&this.$refs.formRef.reset()}if(this.successUrl)if(this.$refs.formRef){const T=new CustomEvent("route",{detail:{url:this.successUrl}});this.$refs.formRef.dispatchEvent(T),T.defaultPrevented||(location.href=this.successUrl)}else location.href=this.successUrl}},h=>{const k=new CustomEvent("submit:error",{detail:{error:h}});this.$refs.formRef&&(this.$refs.formRef.dispatchEvent(k),k.defaultPrevented)||(this.responseData=h,this.formState="error")})}}}}),Al=["validate","action","method","name"],Pl={key:2,class:"builder-form-error-text pre-2oa2wtipkzk"};function $l(e,t,n,r,o,i){const a=s.resolveComponent("Blocks");return s.openBlock(),s.createElementBlock("form",s.mergeProps({validate:e.validate,ref:"formRef",action:!e.sendWithJs&&e.action,method:e.method,name:e.name,onSubmit:t[0]||(t[0]=async u=>e.onSubmit(u))},{...e.filterAttrs(e.attributes,"v-on:",!1)},s.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),[s.renderSlot(e.$slots,"default",{},void 0,!0),e.submissionState()==="error"?(s.openBlock(),s.createBlock(a,{key:0,path:"errorMessage",blocks:e.errorMessage,context:e.builderContext},null,8,["blocks","context"])):s.createCommentVNode("",!0),e.submissionState()==="sending"?(s.openBlock(),s.createBlock(a,{key:1,path:"sendingMessage",blocks:e.sendingMessage,context:e.builderContext},null,8,["blocks","context"])):s.createCommentVNode("",!0),e.submissionState()==="error"&&e.responseData?(s.openBlock(),s.createElementBlock("pre",Pl,s.toDisplayString(e.errorResponse(e.responseData)),1)):s.createCommentVNode("",!0),e.submissionState()==="success"?(s.openBlock(),s.createBlock(a,{key:3,path:"successMessage",blocks:e.successMessage,context:e.builderContext},null,8,["blocks","context"])):s.createCommentVNode("",!0)],16,Al)}const xl=O(Rl,[["render",$l],["__scopeId","data-v-77c7888c"]]),Ol={name:"Form:Input",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",inputs:[{name:"type",type:"text",enum:["text","number","email","url","checkbox","radio","range","date","datetime-local","search","tel","time","file","month","week","password","color","hidden"],defaultValue:"text"},{name:"name",type:"string",required:!0,helperText:'Every input in a form needs a unique name describing what it takes, e.g. "email"'},{name:"placeholder",type:"string",defaultValue:"Hello there",helperText:"Text to display when there is no value"},{name:"defaultValue",type:"string"},{name:"value",type:"string",advanced:!0},{name:"required",type:"boolean",helperText:"Is this input required to be filled out to submit a form",defaultValue:!1}],noWrap:!0,static:!0,defaultStyles:{paddingTop:"10px",paddingBottom:"10px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"3px",borderWidth:"1px",borderStyle:"solid",borderColor:"#ccc"}},Nl=s.defineComponent({name:"builder-form-input-component",props:["attributes","defaultValue","placeholder","type","name","value","required"],data(){return{isEditing:G,filterAttrs:ne}}}),Vl=["placeholder","type","name","value","defaultValue","required"];function jl(e,t,n,r,o,i){return s.openBlock(),s.createElementBlock("input",s.mergeProps({key:e.isEditing()&&e.defaultValue?e.defaultValue:"default-key",placeholder:e.placeholder,type:e.type,name:e.name,value:e.value,defaultValue:e.defaultValue,required:e.required},e.filterAttrs(e.attributes,"v-on:",!1),s.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),null,16,Vl)}const Dl=O(Nl,[["render",jl]]),Ul={name:"Form:Select",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",defaultStyles:{alignSelf:"flex-start"},inputs:[{name:"options",type:"list",required:!0,subFields:[{name:"value",type:"text",required:!0},{name:"name",type:"text"}],defaultValue:[{value:"option 1"},{value:"option 2"}]},{name:"name",type:"string",required:!0,helperText:'Every select in a form needs a unique name describing what it gets, e.g. "email"'},{name:"defaultValue",type:"string"},{name:"value",type:"string",advanced:!0},{name:"required",type:"boolean",defaultValue:!1}],static:!0,noWrap:!0},Fl=s.defineComponent({name:"builder-select-component",props:["attributes","value","defaultValue","name","required","options"],data(){return{isEditing:G,filterAttrs:ne}}}),Wl=["value","defaultValue","name","required"],Ll=["value"];function Ml(e,t,n,r,o,i){return s.openBlock(),s.createElementBlock("select",s.mergeProps({value:e.value,key:e.isEditing()&&e.defaultValue?e.defaultValue:"default-key",defaultValue:e.defaultValue,name:e.name,required:e.required},e.filterAttrs(e.attributes,"v-on:",!1),s.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.options,(a,u)=>(s.openBlock(),s.createElementBlock("option",{key:`${a.name}-${u}`,value:a.value},s.toDisplayString(a.name||a.value),9,Ll))),128))],16,Wl)}const Hl=O(Fl,[["render",Ml]]),zl={name:"Form:SubmitButton",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#3898EC",color:"white",borderRadius:"4px",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me"}],static:!0,noWrap:!0},Kl=s.defineComponent({name:"builder-submit-button",props:["attributes","text"],data(){return{filterAttrs:ne}}});function ql(e,t,n,r,o,i){return s.openBlock(),s.createElementBlock("button",s.mergeProps({type:"submit"},e.filterAttrs(e.attributes,"v-on:",!1),s.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),s.toDisplayString(e.text),17)}const Gl=O(Kl,[["render",ql]]),_l={name:"Form:TextArea",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",inputs:[{advanced:!0,name:"value",type:"string"},{name:"name",type:"string",required:!0,helperText:'Every input in a form needs a unique name describing what it gets, e.g. "email"'},{name:"defaultValue",type:"string"},{name:"placeholder",type:"string",defaultValue:"Hello there"},{name:"required",type:"boolean",defaultValue:!1}],defaultStyles:{paddingTop:"10px",paddingBottom:"10px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"3px",borderWidth:"1px",borderStyle:"solid",borderColor:"#ccc"},static:!0,noWrap:!0},Jl=s.defineComponent({name:"builder-textarea",props:["attributes","placeholder","name","value","defaultValue","required"],data(){return{filterAttrs:ne}}}),Xl=["placeholder","name","value","defaultValue","required"];function Yl(e,t,n,r,o,i){return s.openBlock(),s.createElementBlock("textarea",s.mergeProps({placeholder:e.placeholder,name:e.name,value:e.value,defaultValue:e.defaultValue,required:e.required},e.filterAttrs(e.attributes,"v-on:",!1),s.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),null,16,Xl)}const Ql=O(Jl,[["render",Yl]]),Zl={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:Vn,required:!0},{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:"title",type:"string",helperText:"Text to display when hovering over the asset"},{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}],noWrap:!0},ec=s.defineComponent({name:"builder-img-component",props:["imgSrc","image","attributes","altText","title","backgroundSize","backgroundPosition","aspectRatio"],data(){return{isEditing:G}},computed:{srcSetToUse(){const e=this.imgSrc||this.image;if(!(!e||typeof e!="string")&&e.match(/builder\.io/))return gt(e)},imgAttrs(){const e={...ne(this.attributes,"v-on:",!1),...ne(this.attributes,"v-on:",!0),[ye()]:`builder-raw-img ${this.attributes[ye()]||""}`};return delete e.style,e}}}),tc=["alt","title","src"];function nc(e,t,n,r,o,i){var a;return s.openBlock(),s.createElementBlock("img",s.mergeProps({loading:"lazy",key:e.isEditing()&&e.imgSrc||"default-key",alt:e.altText,title:e.title,src:e.imgSrc||e.image,style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center",aspectRatio:e.aspectRatio||void 0,...((a=e.attributes)==null?void 0:a.style)||{}}},e.imgAttrs),null,16,tc)}const rc=O(ec,[["render",nc]]),oc={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:Ka,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:Vn,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}],shouldReceiveBuilderProps:{builderBlock:!0}},ic=s.defineComponent({name:"builder-video",props:["lazyLoad","autoPlay","muted","controls","loop","playsInline","preload","attributes","fit","position","aspectRatio","posterImage","video","fitContent","builderBlock"],data(){return{lazyVideoObserver:void 0}},mounted(){if(this.lazyLoad){const e=new IntersectionObserver(function(t){t.forEach(function(n){if(!n.isIntersecting)return;const r=n.target;try{Array.from(r.children).filter(o=>o instanceof HTMLElement&&o.tagName==="SOURCE").forEach(o=>{const i=o.dataset.src;i&&(o.src=i)}),r.load(),e.unobserve(r)}catch(o){console.error("Error loading lazy video:",o)}})});this.$refs.videoRef&&e.observe(this.$refs.videoRef),this.lazyVideoObserver=e}},unmounted(){this.lazyVideoObserver&&this.lazyVideoObserver.disconnect()},computed:{videoProps(){return{...this.autoPlay===!0?{autoPlay:!0}:{},...this.muted===!0?{muted:!0}:{},...this.controls===!0?{controls:!0}:{},...this.loop===!0?{loop:!0}:{},...this.playsInline===!0?{playsInline:!0}:{}}},spreadProps(){return{...this.videoProps}}}}),sc={style:{position:"relative"}},ac=["preload","poster"],lc={key:1,style:{display:"flex",flexDirection:"column",alignItems:"stretch"}},cc={key:2,style:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}};function uc(e,t,n,r,o,i){var a,u,p,g,y,b,h;return s.openBlock(),s.createElementBlock("div",sc,[s.createElementVNode("video",s.mergeProps({class:"builder-video",ref:"videoRef",preload:e.lazyLoad?"none":e.preload||"metadata",style:{width:"100%",height:"100%",...(a=e.attributes)==null?void 0:a.style,objectFit:e.fit,objectPosition:e.position,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},poster:e.posterImage},e.spreadProps),[s.createElementVNode("source",s.mergeProps({type:"video/mp4"},e.lazyLoad?{"data-src":e.video}:{src:e.video}),null,16)],16,ac),e.aspectRatio&&!(e.fitContent&&((p=(u=e.builderBlock)==null?void 0:u.children)!=null&&p.length))?(s.openBlock(),s.createElementBlock("div",{key:0,style:s.normalizeStyle({width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"})},null,4)):s.createCommentVNode("",!0),(y=(g=e.builderBlock)==null?void 0:g.children)!=null&&y.length&&e.fitContent?(s.openBlock(),s.createElementBlock("div",lc,[s.renderSlot(e.$slots,"default")])):s.createCommentVNode("",!0),(h=(b=e.builderBlock)==null?void 0:b.children)!=null&&h.length&&!e.fitContent?(s.openBlock(),s.createElementBlock("div",cc,[s.renderSlot(e.$slots,"default")])):s.createCommentVNode("",!0)])}const Ro=O(ic,[["render",uc]]),pc=()=>[{component:yl,...ml},{component:El,...vl},{component:xl,...Tl},{component:Dl,...Ol},{component:Gl,...zl},{component:Hl,...Ul},{component:Ql,..._l},{component:rc,...Zl},{component:Ro,...oc}],Pr=()=>[{component:Or,...Ma},{component:ko,...Ha},{component:So,...za},{component:Co,...qa},{component:wo,...Ya},{component:tl,...Qa},{component:$o,...nl},{component:Bo,...cl},...Eo.includes(W)?[{component:Xa,...Ga}]:[],{component:ll,...rl},{component:La,...ja},...pc()],dc=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
225
|
+
function getAndSetVariantId() {
|
|
226
|
+
function setCookie(name, value, days) {
|
|
227
|
+
let expires = '';
|
|
228
|
+
if (days) {
|
|
229
|
+
const date = new Date();
|
|
230
|
+
date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
|
|
231
|
+
expires = '; expires=' + date.toUTCString();
|
|
232
|
+
}
|
|
233
|
+
document.cookie = name + '=' + (value || '') + expires + '; path=/' + '; Secure; SameSite=None';
|
|
234
|
+
}
|
|
235
|
+
function getCookie(name) {
|
|
236
|
+
const nameEQ = name + '=';
|
|
237
|
+
const ca = document.cookie.split(';');
|
|
238
|
+
for (let i = 0; i < ca.length; i++) {
|
|
239
|
+
let c = ca[i];
|
|
240
|
+
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
|
|
241
|
+
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
|
|
242
|
+
}
|
|
243
|
+
return null;
|
|
244
|
+
}
|
|
245
|
+
const cookieName = \`builder.tests.\${contentId}\`;
|
|
246
|
+
const variantInCookie = getCookie(cookieName);
|
|
247
|
+
const availableIDs = variants.map(vr => vr.id).concat(contentId);
|
|
248
|
+
if (variantInCookie && availableIDs.includes(variantInCookie)) {
|
|
249
|
+
return variantInCookie;
|
|
250
|
+
}
|
|
251
|
+
let n = 0;
|
|
252
|
+
const random = Math.random();
|
|
253
|
+
for (let i = 0; i < variants.length; i++) {
|
|
254
|
+
const variant = variants[i];
|
|
255
|
+
const testRatio = variant.testRatio;
|
|
256
|
+
n += testRatio;
|
|
257
|
+
if (random < n) {
|
|
258
|
+
setCookie(cookieName, variant.id);
|
|
259
|
+
return variant.id;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
setCookie(cookieName, contentId);
|
|
263
|
+
return contentId;
|
|
264
|
+
}
|
|
265
|
+
const winningVariantId = getAndSetVariantId();
|
|
266
|
+
let styleEl = document.currentScript?.previousElementSibling;
|
|
267
|
+
if (isAngularSDK) {
|
|
268
|
+
styleEl = document.currentScript?.parentElement?.previousElementSibling?.querySelector('style');
|
|
269
|
+
}
|
|
270
|
+
if (isHydrationTarget) {
|
|
271
|
+
styleEl.remove();
|
|
272
|
+
const thisScriptEl = document.currentScript;
|
|
273
|
+
thisScriptEl?.remove();
|
|
274
|
+
} else {
|
|
275
|
+
const newStyleStr = variants.concat({
|
|
276
|
+
id: contentId
|
|
277
|
+
}).filter(variant => variant.id !== winningVariantId).map(value => {
|
|
278
|
+
return \`.variant-\${value.id} { display: none; }
|
|
279
|
+
\`;
|
|
280
|
+
}).join('');
|
|
281
|
+
styleEl.innerHTML = newStyleStr;
|
|
282
|
+
}
|
|
283
|
+
}`,mc=`function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
284
|
+
if (!navigator.cookieEnabled) {
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
function getCookie(name) {
|
|
288
|
+
const nameEQ = name + '=';
|
|
289
|
+
const ca = document.cookie.split(';');
|
|
290
|
+
for (let i = 0; i < ca.length; i++) {
|
|
291
|
+
let c = ca[i];
|
|
292
|
+
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
|
|
293
|
+
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
|
|
294
|
+
}
|
|
295
|
+
return null;
|
|
296
|
+
}
|
|
297
|
+
const cookieName = \`builder.tests.\${defaultContentId}\`;
|
|
298
|
+
const winningVariant = getCookie(cookieName);
|
|
299
|
+
const parentDiv = document.currentScript?.parentElement;
|
|
300
|
+
const isDefaultContent = variantContentId === defaultContentId;
|
|
301
|
+
const isWinningVariant = winningVariant === variantContentId;
|
|
302
|
+
if (isWinningVariant && !isDefaultContent) {
|
|
303
|
+
parentDiv?.removeAttribute('hidden');
|
|
304
|
+
parentDiv?.removeAttribute('aria-hidden');
|
|
305
|
+
} else if (!isWinningVariant && isDefaultContent) {
|
|
306
|
+
parentDiv?.setAttribute('hidden', 'true');
|
|
307
|
+
parentDiv?.setAttribute('aria-hidden', 'true');
|
|
308
|
+
}
|
|
309
|
+
if (isHydrationTarget) {
|
|
310
|
+
if (!isWinningVariant) {
|
|
311
|
+
parentDiv?.remove();
|
|
312
|
+
}
|
|
313
|
+
const thisScriptEl = document.currentScript;
|
|
314
|
+
thisScriptEl?.remove();
|
|
315
|
+
}
|
|
316
|
+
return;
|
|
317
|
+
}`,mn="builderIoAbTest",fn="builderIoRenderContent",vt=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),fc=({canTrack:e,content:t})=>!(!(vt(t).length>0)||!e),hc=e=>e==="react"||e==="reactNative",gc=W==="angular",Dn=hc(W),yc=()=>`
|
|
318
|
+
(function() {
|
|
319
|
+
if (!window.${mn}) {
|
|
320
|
+
window.${mn} = ${dc};
|
|
321
|
+
}
|
|
322
|
+
if (!window.${fn}) {
|
|
323
|
+
window.${fn} = ${mc};
|
|
324
|
+
}${Dn?`
|
|
325
|
+
var thisScriptEl = document.currentScript;
|
|
326
|
+
if (thisScriptEl) { thisScriptEl.remove(); }`:""}
|
|
327
|
+
})();
|
|
328
|
+
`,vc=(e,t)=>`
|
|
329
|
+
window.${mn}(
|
|
330
|
+
"${t}",${JSON.stringify(e)}, ${Dn}, ${gc}
|
|
331
|
+
)`,bc=({contentId:e,variationId:t})=>`window.${fn}(
|
|
332
|
+
"${t}", "${e}", ${Dn}
|
|
333
|
+
)`;function $r(e){return Math.round(e*1e3)/1e3}const kc=(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},Sc=e=>kc(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),xr=({event:e,target:t})=>{const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=$r(r/n.width),a=$r(o/n.height);return{x:i,y:a}},Cc=e=>{const t=e.target,n=t&&Sc(t),r=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:r||void 0,metadata:{targetOffset:t?xr({event:e,target:t}):void 0,builderTargetOffset:n?xr({event:e,target:n}):void 0,builderElementIndex:n&&r?[].slice.call(document.getElementsByClassName(r)).indexOf(n):void 0}}},wc=["svelte","qwik","vue"],Ec=()=>wc.includes(W)&&(G()||Bt()),Tc=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+=`
|
|
334
|
+
@font-face {
|
|
335
|
+
font-family: "${t}";
|
|
336
|
+
src: local("${n}"), url('${r}') format('woff2');
|
|
337
|
+
font-display: fallback;
|
|
338
|
+
font-weight: 400;
|
|
339
|
+
}
|
|
340
|
+
`.trim()),e.files)for(const a in e.files){if(!(String(Number(a))===a))continue;const p=e.files[a];p&&p!==r&&(o+=`
|
|
341
|
+
@font-face {
|
|
342
|
+
font-family: "${t}";
|
|
343
|
+
src: url('${p}') format('woff2');
|
|
344
|
+
font-display: fallback;
|
|
345
|
+
font-weight: ${a};
|
|
346
|
+
}
|
|
347
|
+
`.trim())}return o},Ic=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(n=>Tc(n)))==null?void 0:t.join(" "))||""},Bc=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"",Rc=`
|
|
348
|
+
.builder-button {
|
|
349
|
+
all: unset;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
353
|
+
margin: 0;
|
|
354
|
+
}
|
|
355
|
+
.builder-text > p, .builder-text > .builder-paragraph {
|
|
356
|
+
color: inherit;
|
|
357
|
+
line-height: inherit;
|
|
358
|
+
letter-spacing: inherit;
|
|
359
|
+
font-weight: inherit;
|
|
360
|
+
font-size: inherit;
|
|
361
|
+
text-align: inherit;
|
|
362
|
+
font-family: inherit;
|
|
363
|
+
}
|
|
364
|
+
`,Ac=e=>e?"":Rc,Pc=e=>`variant-${e}`,$c=s.defineComponent({name:"enable-editor",components:{DynamicDiv:it},props:["isNestedRender","builderContextSignal","canTrack","apiKey","apiHost","locale","enrich","enrichOptions","trustedHosts","model","content","context","data","showContent","contentWrapper","contentWrapperProps"],data(){return{hasExecuted:!1,contextValue:this.builderContextSignal,prevData:null,prevLocale:"",prevContent:null,ContentWrapper:this.contentWrapper||"div",httpReqsData:{},httpReqsPending:{},clicked:!1,builderContext:bt,needsElementRefDivForEditing:Ec,getWrapperClassName:Pc}},provide(){const e=this;return{[bt.key]:e.builderContextSignal}},created(){this.runHttpRequests(),this.emitStateUpdate()},mounted(){var e,t,n;if(U()){G()&&!this.isNestedRender&&this.$refs.elementRef&&this.$refs.elementRef.dispatchEvent(new CustomEvent("initeditingbldr"));const r=this.builderContextSignal.content&&je(this.canTrack),o=Et({name:`builder.tests.${(e=this.builderContextSignal.content)==null?void 0:e.id}`,canTrack:!0}),i=(t=this.builderContextSignal.content)==null?void 0:t.testVariationId;if(r&&i===o){const a=(n=this.builderContextSignal.content)==null?void 0:n.id,u=this.apiKey;kt({apiHost:this.apiHost,type:"impression",canTrack:!0,contentId:a,apiKey:u,variationId:o!==a?o:void 0})}Bt()&&!G()&&this.$refs.elementRef&&this.$refs.elementRef.dispatchEvent(new CustomEvent("initpreviewingbldr"))}},watch:{onUpdateHook0:{handler(){this.content&&this.mergeNewContent(this.content)},immediate:!0},onUpdateHook1:{handler(){this.emitStateUpdate()},immediate:!0},onUpdateHook2:{handler(){if(this.data){if(this.prevData===this.data)return;this.mergeNewRootState(this.data),this.prevData=this.data}},immediate:!0},onUpdateHook3:{handler(){if(this.locale){if(this.prevLocale===this.locale)return;this.mergeNewRootState({locale:this.locale}),this.prevLocale=this.locale}},immediate:!0}},unmounted(){U()&&(window.removeEventListener("message",this.processMessage),window.removeEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate))},computed:{showContentProps(){return this.showContent?{}:{hidden:!0,"aria-hidden":!0}},onUpdateHook0(){return{0:this.content}},onUpdateHook1(){return{0:this.builderContextSignal.rootState}},onUpdateHook2(){return{0:this.data}},onUpdateHook3(){return{0:this.locale}}},methods:{mergeNewRootState(e,t){var r,o;const n={...this.builderContextSignal.rootState,...e};this.builderContextSignal.rootSetState?(o=(r=this.builderContextSignal).rootSetState)==null||o.call(r,n):this.builderContextSignal.rootState=n,this.builderContextSignal.rootSetState?this.builderContextSignal.rootSetState(n):this.builderContextSignal.rootState=n},mergeNewContent(e,t){var r,o,i,a,u;const n={...this.builderContextSignal.content,...e,data:{...(r=this.builderContextSignal.content)==null?void 0:r.data,...e==null?void 0:e.data},meta:{...(o=this.builderContextSignal.content)==null?void 0:o.meta,...e==null?void 0:e.meta,breakpoints:((i=e==null?void 0:e.meta)==null?void 0:i.breakpoints)||((u=(a=this.builderContextSignal.content)==null?void 0:a.meta)==null?void 0:u.breakpoints)}};this.builderContextSignal.content=n},processMessage(e){return oo({model:this.model,trustedHosts:this.trustedHosts,callbacks:{configureSdk:t=>{var o;const{breakpoints:n,contentId:r}=t;!r||r!==((o=this.builderContextSignal.content)==null?void 0:o.id)||n&&this.mergeNewContent({meta:{breakpoints:n}})},animation:t=>{fo(t)},contentUpdate:(t,n)=>{this.mergeNewContent(t,n)},stateUpdate:(t,n)=>{this.mergeNewRootState(t,n)}}})(e)},onClick(e){var t,n;if(this.builderContextSignal.content){const r=(t=this.builderContextSignal.content)==null?void 0:t.testVariationId,o=(n=this.builderContextSignal.content)==null?void 0:n.id;kt({apiHost:this.apiHost,type:"click",canTrack:je(this.canTrack),contentId:o,apiKey:this.apiKey,variationId:r!==o?r:void 0,...Cc(e),unique:!this.clicked})}this.clicked||(this.clicked=!0)},runHttpRequests(){var t,n;const e=((n=(t=this.builderContextSignal.content)==null?void 0:t.data)==null?void 0:n.httpRequests)??{};Object.entries(e).forEach(([r,o])=>{if(!o)return;const i=typeof o=="object"&&o["@type"]==="@builder.io/core:Request";if(this.httpReqsPending[r]||this.httpReqsData[r]&&!G())return;const a=i?o.request.url:o;this.httpReqsPending[r]=!0;const u=a.replace(/{{([^}]+)}}/g,(y,b)=>String(Ue({code:b,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState}))),p=i?{url:u,method:o.request.method,headers:o.request.headers,body:o.request.body}:{url:u,method:"GET"};yn(JSON.stringify(p));const g={method:p.method,headers:p.headers,body:p.body};p.method==="GET"&&delete g.body,fetch(p.url,g).then(y=>y.json()).then(y=>{this.mergeNewRootState({[r]:y}),this.httpReqsData[r]=!0}).catch(y=>{console.error("error fetching dynamic data",JSON.stringify(o),y)}).finally(()=>{this.httpReqsPending[r]=!1})})},emitStateUpdate(){G()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:Pn(this.builderContextSignal.rootState),ref:{name:this.model}}}))},elementRef_onIniteditingbldr(e){window.addEventListener("message",this.processMessage),ro({...this.locale?{locale:this.locale}:{},...this.enrich?{enrich:this.enrich}:{},...this.enrichOptions?{enrichOptions:this.enrichOptions}:{},...this.trustedHosts?{trustedHosts:this.trustedHosts}:{},modelName:this.model??"",apiKey:this.apiKey}),Object.values(this.builderContextSignal.componentInfos).forEach(t=>{var n,r;if(!((n=t.models)!=null&&n.length)||t.models.includes(this.model)){const o=to(t);(r=window.parent)==null||r.postMessage(o,"*")}}),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)},elementRef_onInitpreviewingbldr(e){var i;const t=new URL(location.href).searchParams,n=t.get("builder.preview"),r=t.get(`builder.overrides.${n}`),o=t.get("apiKey")||t.get("builder.space");(n==="BUILDER_STUDIO"||n===this.model&&o===this.apiKey&&(!this.content||r===this.content.id))&&Rt({model:this.model,apiKey:this.apiKey,apiVersion:this.builderContextSignal.apiVersion,...n==="BUILDER_STUDIO"&&((i=this.context)!=null&&i.symbolId)?{query:{id:this.context.symbolId}}:{}}).then(a=>{a&&this.mergeNewContent(a)})}}});function xc(e,t,n,r,o,i){var a,u,p;return e.builderContextSignal.content||e.needsElementRefDivForEditing()?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.ContentWrapper),s.mergeProps({key:0,ref:"elementRef",onClick:g=>e.onClick(g),"builder-content-id":(a=e.builderContextSignal.content)==null?void 0:a.id,"builder-model":e.model,className:e.getWrapperClassName(((u=e.content)==null?void 0:u.testVariationId)||((p=e.content)==null?void 0:p.id)),style:{display:!e.builderContextSignal.content&&e.needsElementRefDivForEditing()?"none":void 0},onIniteditingbldr:g=>e.elementRef_onIniteditingbldr(g),onInitpreviewingbldr:g=>e.elementRef_onInitpreviewingbldr(g)},{...e.showContentProps,...e.contentWrapperProps}),{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default")]),_:3},16,["onClick","builder-content-id","builder-model","className","style","onIniteditingbldr","onInitpreviewingbldr"])):s.createCommentVNode("",!0)}const Oc=O($c,[["render",xc]]),Nc=s.defineComponent({name:"content-styles",components:{InlinedStyles:st},props:["cssCode","contentId","customFonts","isNestedRender","nonce"],data(){return{injectedStyles:`
|
|
365
|
+
${Bc({cssCode:this.cssCode,contentId:this.contentId})}
|
|
366
|
+
${Ic({customFonts:this.customFonts})}
|
|
367
|
+
${Ac(this.isNestedRender)}
|
|
368
|
+
`.trim()}}});function Vc(e,t,n,r,o,i){const a=s.resolveComponent("InlinedStyles");return s.openBlock(),s.createBlock(a,{id:"builderio-content",styles:e.injectedStyles,nonce:e.nonce},null,8,["styles","nonce"])}const jc=O(Nc,[["render",Vc]]),Dc=({content:e,data:t,locale:n})=>{var i,a,u;const r={},o=((i=e==null?void 0:e.data)==null?void 0:i.state)||{};return(u=(a=e==null?void 0:e.data)==null?void 0:a.inputs)==null||u.forEach(p=>{p.name&&p.defaultValue!==void 0&&(r[p.name]=p.defaultValue)}),{...r,...o,...t,...n?{locale:n}:{}}},Uc=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0,Ao=s.markRaw,Fc=s.defineComponent({name:"content-component",components:{EnableEditor:Oc,InlinedScript:jn,ContentStyles:jc,Blocks:we,DynamicDiv:it},props:["content","data","locale","apiKey","context","customComponents","canTrack","apiVersion","blocksWrapper","blocksWrapperProps","nonce","model","apiHost","enrich","enrichOptions","showContent","contentWrapper","contentWrapperProps","trustedHosts","isNestedRender","isSsrAbTest","linkComponent"],data(){var e,t;return{scriptStr:bc({variationId:(e=this.content)==null?void 0:e.testVariationId,contentId:(t=this.content)==null?void 0:t.id}),registeredComponents:[...Pr(),...this.customComponents||[]].reduce((n,{component:r,...o})=>({...n,[o.name]:{component:Ao(r),...Ct(o)}}),{}),builderContextSignal:{content:Uc({content:this.content,data:this.data}),localState:void 0,rootState:Dc({content:this.content,data:this.data,locale:this.locale}),rootSetState:this.contentSetState,context:this.context||{},canTrack:this.canTrack,apiKey:this.apiKey,apiVersion:this.apiVersion,componentInfos:[...Pr(),...this.customComponents||[]].reduce((n,{component:r,...o})=>({...n,[o.name]:Ct(o)}),{}),inheritedStyles:{},BlocksWrapper:this.blocksWrapper||"div",BlocksWrapperProps:this.blocksWrapperProps||{},nonce:this.nonce||"",model:this.model},TARGET:W}},provide(){const e=this;return{[Nr.key]:{registeredComponents:e.registeredComponents}}},created(){var t,n;this.apiKey||ee.error("No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop.");const e=(n=(t=this.builderContextSignal.content)==null?void 0:t.data)==null?void 0:n.jsCode;e&&Ue({code:e,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:r=>{this.builderContextSignal.rootState=r},isExpression:!1})},watch:{onUpdateHook0:{handler(){},immediate:!0}},computed:{onUpdateHook0(){return{0:this.content,1:this.data,2:this.locale}}},methods:{contentSetState(e){this.builderContextSignal.rootState=e}}});function Wc(e,t,n,r,o,i){const a=s.resolveComponent("InlinedScript"),u=s.resolveComponent("ContentStyles"),p=s.resolveComponent("Blocks"),g=s.resolveComponent("EnableEditor");return s.openBlock(),s.createBlock(g,s.mergeProps({apiHost:e.apiHost,nonce:e.nonce,content:e.content,data:e.data,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,enrichOptions:e.enrichOptions,showContent:e.showContent,builderContextSignal:e.builderContextSignal,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts,isNestedRender:e.isNestedRender},{}),{default:s.withCtx(()=>{var y,b,h,k,B,R,D;return[e.isSsrAbTest?(s.openBlock(),s.createBlock(a,{key:0,id:"builderio-variant-visibility",scriptStr:e.scriptStr,nonce:e.nonce||""},null,8,["scriptStr","nonce"])):s.createCommentVNode("",!0),e.TARGET!=="reactNative"?(s.openBlock(),s.createBlock(u,{key:1,nonce:e.nonce||"",isNestedRender:e.isNestedRender,contentId:(y=e.builderContextSignal.content)==null?void 0:y.id,cssCode:(h=(b=e.builderContextSignal.content)==null?void 0:b.data)==null?void 0:h.cssCode,customFonts:(B=(k=e.builderContextSignal.content)==null?void 0:k.data)==null?void 0:B.customFonts},null,8,["nonce","isNestedRender","contentId","cssCode","customFonts"])):s.createCommentVNode("",!0),s.createVNode(p,{blocks:(D=(R=e.builderContextSignal.content)==null?void 0:R.data)==null?void 0:D.blocks,context:e.builderContextSignal,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["blocks","context","registeredComponents","linkComponent"])]}),_:1},16,["apiHost","nonce","content","data","model","context","apiKey","canTrack","locale","enrich","enrichOptions","showContent","builderContextSignal","contentWrapper","contentWrapperProps","trustedHosts","isNestedRender"])}const Lc=O(Fc,[["render",Wc]]),Mc=s.defineComponent({name:"content-variants",components:{InlinedScript:jn,InlinedStyles:st,ContentComponent:Lc},props:["canTrack","content","nonce","apiHost","isNestedRender","model","data","context","apiKey","apiVersion","customComponents","linkComponent","locale","enrich","enrichOptions","blocksWrapper","blocksWrapperProps","contentWrapper","contentWrapperProps","trustedHosts"],data(){return{shouldRenderVariants:fc({canTrack:je(this.canTrack),content:this.content}),shouldEmitPersonalizationFns:xa(this.content),SDKS_SUPPORTING_PERSONALIZATION:Eo,getInitPersonalizationVariantsFnsScriptString:Oa,TARGET:W,getInitVariantsFnsScriptString:yc,getVariants:vt}},mounted(){},computed:{updateCookieAndStylesScriptStr(){var e;return vc(vt(this.content).map(t=>({id:t.testVariationId,testRatio:t.testRatio})),((e=this.content)==null?void 0:e.id)||"")},hideVariantsStyleString(){return vt(this.content).map(e=>`.variant-${e.testVariationId} { display: none; } `).join("")},defaultContent(){var e;return this.shouldRenderVariants?{...this.content,testVariationId:(e=this.content)==null?void 0:e.id}:bs({item:this.content,canTrack:je(this.canTrack)})}}});function Hc(e,t,n,r,o,i){const a=s.resolveComponent("InlinedScript"),u=s.resolveComponent("InlinedStyles"),p=s.resolveComponent("ContentComponent");return s.openBlock(),s.createElementBlock(s.Fragment,null,[e.shouldEmitPersonalizationFns?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET)?(s.openBlock(),s.createBlock(a,{key:0,id:"builderio-init-personalization-variants-fns",nonce:e.nonce||"",scriptStr:e.getInitPersonalizationVariantsFnsScriptString()},null,8,["nonce","scriptStr"])):s.createCommentVNode("",!0)],64)):s.createCommentVNode("",!0),e.shouldRenderVariants?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(a,{id:"builderio-init-variants-fns",scriptStr:e.getInitVariantsFnsScriptString(),nonce:e.nonce||""},null,8,["scriptStr","nonce"]),s.createVNode(u,{id:"builderio-variants",styles:e.hideVariantsStyleString,nonce:e.nonce||""},null,8,["styles","nonce"]),s.createVNode(a,{id:"builderio-variants-visibility",scriptStr:e.updateCookieAndStylesScriptStr,nonce:e.nonce||""},null,8,["scriptStr","nonce"]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.getVariants(e.content),(g,y)=>(s.openBlock(),s.createBlock(p,s.mergeProps({key:g.testVariationId,apiHost:e.apiHost,isNestedRender:e.isNestedRender,nonce:e.nonce,content:g,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,enrichOptions:e.enrichOptions,isSsrAbTest:e.shouldRenderVariants,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},{}),null,16,["apiHost","isNestedRender","nonce","content","model","data","context","apiKey","apiVersion","customComponents","linkComponent","canTrack","locale","enrich","enrichOptions","isSsrAbTest","blocksWrapper","blocksWrapperProps","contentWrapper","contentWrapperProps","trustedHosts"]))),128))],64)):s.createCommentVNode("",!0),s.createVNode(p,s.mergeProps({apiHost:e.apiHost,nonce:e.nonce,isNestedRender:e.isNestedRender,content:e.defaultContent,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,enrichOptions:e.enrichOptions,isSsrAbTest:e.shouldRenderVariants,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},{key:e.shouldRenderVariants.toString()}),null,16,["apiHost","nonce","isNestedRender","content","model","data","context","apiKey","apiVersion","customComponents","linkComponent","canTrack","locale","enrich","enrichOptions","isSsrAbTest","blocksWrapper","blocksWrapperProps","contentWrapper","contentWrapperProps","trustedHosts"])],64)}const Po=O(Mc,[["render",Hc]]),zc=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return Rt({model:t.model,apiKey:t.global&&t.ownerId?t.ownerId:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{ee.error("Could not fetch symbol content: ",n)})},Kc=s.defineComponent({name:"builder-symbol",components:{ContentVariants:Po,DynamicDiv:it},props:["symbol","builderComponents","attributes","dynamic","builderContext","builderBlock","builderLinkComponent"],data(){var e,t;return{contentToUse:(e=this.symbol)==null?void 0:e.content,symbolEntry:(t=this.symbol)==null?void 0:t.entry,filterAttrs:ne}},mounted(){this.setContent()},watch:{onUpdateHook0:{handler(){this.setContent()},immediate:!0}},computed:{blocksWrapper(){return"div"},contentWrapper(){return"div"},customComponents(){return Object.values(this.builderComponents)},className(){var e,t;return[this.attributes[ye()],"builder-symbol",(e=this.symbol)!=null&&e.inline?"builder-inline-symbol":void 0,(t=this.symbol)!=null&&t.dynamic||this.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},onUpdateHook0(){return{0:this.symbol}}},methods:{setContent(){var e;this.contentToUse&&this.symbolEntry===((e=this.symbol)==null?void 0:e.entry)||zc({symbol:this.symbol,builderContextValue:this.builderContext}).then(t=>{var n;t&&(this.contentToUse=t,this.symbolEntry=(n=this.symbol)==null?void 0:n.entry)})}}});function qc(e,t,n,r,o,i){var u,p,g,y,b,h,k;const a=s.resolveComponent("ContentVariants");return s.openBlock(),s.createElementBlock("div",s.mergeProps({class:e.className},{...e.filterAttrs(e.attributes,"v-on:",!1)},s.toHandlers(e.filterAttrs(e.attributes,"v-on:",!0),!0)),[s.createVNode(a,{nonce:e.builderContext.nonce,isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:(u=e.symbol)!=null&&u.global&&((p=e.symbol)!=null&&p.ownerId)?e.symbol.ownerId:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(g=e.builderBlock)==null?void 0:g.id},customComponents:e.customComponents,data:{...(y=e.symbol)==null?void 0:y.data,...e.builderContext.localState,...(h=(b=e.contentToUse)==null?void 0:b.data)==null?void 0:h.state},canTrack:e.builderContext.canTrack,model:((k=e.symbol)==null?void 0:k.model)??"",content:e.contentToUse,linkComponent:e.builderLinkComponent,blocksWrapper:e.blocksWrapper,contentWrapper:e.contentWrapper},null,8,["nonce","apiVersion","apiKey","context","customComponents","data","canTrack","model","content","linkComponent","blocksWrapper","contentWrapper"])],16)}const $o=O(Kc,[["render",qc]]);exports.Block=Nn;exports.Blocks=we;exports.BuilderContext=bt;exports.Button=Or;exports.Columns=ko;exports.ContentVariants=Po;exports.Fragment=So;exports.Image=Co;exports.Section=wo;exports.Symbol=$o;exports.TARGET=W;exports.Text=Bo;exports.Video=Ro;exports._export_sfc=O;exports._processContentResult=co;exports._sfc_main=st;exports.block=ta;exports.camelToKebabCase=At;exports.checkIsDefined=ve;exports.createCssClass=Us;exports.createRegisterComponentMessage=to;exports.dynamicRenderer=Qo;exports.evaluate=Ue;exports.fetchBuilderProps=xs;exports.fetchEntries=uo;exports.fetchOneEntry=Rt;exports.getBuilderSearchParams=$n;exports.getClassPropName=ye;exports.getMaxWidthQueryForSize=ua;exports.getProcessedBlock=eo;exports.getSizesForBreakpoints=bo;exports.getStyle=Ws;exports.isEditing=G;exports.isPreviewing=Bt;exports.register=as;exports.registerAction=ls;exports.setClientUserAttributes=Ss;exports.setEditorSettings=cs;exports.subscribeToEditor=ms;exports.track=Ci;exports.wrapComponentRef=Ao;
|