(()=>{var Ai=Object.defineProperty;var Ru=e=>Ai(e,"__esModule",{value:!0});var Iu=(e,t)=>{Ru(e);for(var n in t)Ai(e,n,{get:t[n],enumerable:!0})};function Au(){var e=!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent);if(!e||!indexedDB.databases)return Promise.resolve();var t;return new Promise(function(n){var r=function(){return indexedDB.databases().finally(n)};t=setInterval(r,100),r()}).finally(function(){return clearInterval(t)})}var Fi=Au;function Ts(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function Ds(e,t){let n=Fi().then(()=>{let r=indexedDB.open(e);return r.onupgradeneeded=()=>r.result.createObjectStore(t),Ts(r)});return(r,s)=>n.then(o=>s(o.transaction(t,r).objectStore(t)))}var Ss;function Mi(){return Ss||(Ss=Ds("keyval-store","keyval")),Ss}function $i(e,t=Mi()){return t("readonly",n=>Ts(n.get(e)))}function Ps(e,t,n=Mi()){return n("readwrite",r=>(r.put(t,e),Ts(r.transaction)))}var Fu="https://cms.harness.io/graphql";async function Li(e){try{let t=await fetch(Fu,{method:"POST",body:JSON.stringify({operationName:null,query:e,variables:{}}),headers:{"Content-Type":"application/json"}});if(t.ok){let n=await t.json();if(n.errors)throw n.errors;if(n.data)return n.data}}catch(t){throw t}}async function Bi(){return await Li("{ pricing { updated_at } }")}async function Vs(){let e=window.harnessPlans||["ci","cd","ff","ciSaas","cc","srm","sto","ce"],t=e.map(o=>`${o}Plans { ...Plan } ${o}FeatureCaption { ...FeatureCaption } ${o}FeatureGroup { ...FeatureGroup }`).join(`
`),r=(window.harnessFAQs||["ci","cd","ff","cc","srm","sto","ce"]).map(o=>`${o}Faq { ...Faq }`).join(`
`),s=await Li(`
fragment Plan on ComponentPricingPagePlansZone {
title
subTitle
desc
img {
url
alternativeText
}
price
yearlyPrice
priceLink
unit
link
buttonText
primaryButton
comingSoon
priceTips
priceTerm
priceTermTips
yearlyPriceTips
yearlyPriceTerm
yearlyPriceTermTips
support
featureListZone {
title
link
tooltip
}
featureTitle
unitTips
callOut {
title
desc
}
}
fragment FeatureCaption on ComponentPricingPageFeatureCaption {
title
primaryButton
btnText
btnLink
}
fragment FeatureGroup on ComponentPricingPageFeatureGroup {
title
detailedFeature {
title
link,
communityValue,
communityText,
freeValue,
freeText,
teamValue,
teamText,
enterpriseValue,
enterpriseText,
}
}
fragment Faq on ComponentPricingPageFaq {
faqTitle
faqAnswer
}
{
pricing {
updated_at
hero {
title,
subTitle
}
${t}
${r}
tooltips {
tooltip
keyword
}
}
}`);for(let o of e)if(s?.pricing[`${o}Plans`]){let i=s.pricing[`${o}Plans`].find(c=>(c.title||"").toLowerCase()=="community");i&&(s.pricing[`${o}Plans`]=s.pricing[`${o}Plans`].filter(c=>c.title.toLowerCase()!=="community"),s.pricing[`${o}PlansCommunity`]=i)}return s}var ks=Ds("harness-store","harness-db"),xs=window._cacheKey||"pricing_cache";async function Hi(e,t){if(console.log("Checking last updated time..."),(await Bi())?.pricing.updated_at!==e){console.log("Loading from remote...");let r=await Vs();t(r),await Ps(xs,r,ks)}else console.log("Data is valid!")}async function Rs(e){let t=await $i(xs,ks);if(t)console.log("Loaded from cache..."),e(t),typeof window.requestIdleCallback=="function"?requestIdleCallback(()=>Hi(t.pricing.updated_at,e)):setTimeout(()=>()=>Hi(t.pricing.updated_at,e),100);else{console.log("Loading from remote...");let n=await Vs();e(n),await Ps(xs,n,ks)}}var Mu={"":["",""],_:["",""],"*":["",""],"~":["",""],"\n":["
"]," ":["
"],"-":["
"+ji(Cn(i).replace(/^\n+|\n+$/g,""))+"
":(i=s[6])?(i.match(/\./)&&(s[5]=s[5].replace(/^\d+/gm,"")),o=Tn(ji(s[5].replace(/^\s*[>*+.-]/gm,""))),i==">"?i="blockquote":(i=i.match(/\./)?"ol":"ul",o=o.replace(/^(.*)(\n|$)/gm,""+Cn(s[16])+"
":(s[17]||s[1])&&(n=p(s[17]||"--"))),a+=r,a+=n;return(a+e.substring(u)+m()).replace(/^\n+|\n+$/g,"")}var Go={};Iu(Go,{BaseTransition:()=>Kr,Comment:()=>Oe,EffectScope:()=>rn,Fragment:()=>Ee,KeepAlive:()=>Qf,ReactiveEffect:()=>vt,Static:()=>Dt,Suspense:()=>jf,Teleport:()=>_p,Text:()=>dn,Transition:()=>Uo,TransitionGroup:()=>Pd,VueElement:()=>Qn,callWithAsyncErrorHandling:()=>De,callWithErrorHandling:()=>Xe,camelize:()=>pe,capitalize:()=>Ae,cloneVNode:()=>Pt,compatUtils:()=>rd,computed:()=>$l,createApp:()=>Jo,createBlock:()=>Do,createCommentVNode:()=>Vp,createElementBlock:()=>Cp,createElementVNode:()=>So,createHydrationRenderer:()=>No,createPropsRestProxy:()=>Yp,createRenderer:()=>_o,createSSRApp:()=>Kd,createSlots:()=>xp,createStaticVNode:()=>Pp,createTextVNode:()=>Po,createVNode:()=>oe,customRef:()=>kc,defineAsyncComponent:()=>Zf,defineComponent:()=>Wr,defineCustomElement:()=>Zl,defineEmits:()=>Kp,defineExpose:()=>Wp,defineProps:()=>Up,defineSSRCustomElement:()=>Nd,devtools:()=>un,effect:()=>lc,effectScope:()=>tc,getCurrentInstance:()=>ut,getCurrentScope:()=>rc,getTransitionRawChildren:()=>Wn,guardReactiveProps:()=>Sl,h:()=>Mo,handleError:()=>Ht,hydrate:()=>_a,initCustomFormatter:()=>Hl,initDirectivesForSSR:()=>Wd,inject:()=>jn,isMemoSame:()=>jl,isProxy:()=>kn,isReactive:()=>Ye,isReadonly:()=>Ze,isRef:()=>ae,isRuntimeOnly:()=>Il,isShallow:()=>Vn,isVNode:()=>St,markRaw:()=>xn,mergeDefaults:()=>Gp,mergeProps:()=>Pl,nextTick:()=>$r,normalizeClass:()=>Mt,normalizeProps:()=>zi,normalizeStyle:()=>Ft,onActivated:()=>Xc,onBeforeMount:()=>tl,onBeforeUnmount:()=>zr,onBeforeUpdate:()=>nl,onDeactivated:()=>Qc,onErrorCaptured:()=>il,onMounted:()=>pn,onRenderTracked:()=>ol,onRenderTriggered:()=>sl,onScopeDispose:()=>sc,onServerPrefetch:()=>rl,onUnmounted:()=>Yn,onUpdated:()=>Gn,openBlock:()=>Xr,popScopeId:()=>If,provide:()=>zc,proxyRefs:()=>In,pushScopeId:()=>Rf,queuePostFlushCb:()=>ro,reactive:()=>sn,readonly:()=>Ir,ref:()=>on,registerRuntimeCompiler:()=>Ao,render:()=>zo,renderList:()=>kp,renderSlot:()=>Rp,resolveComponent:()=>bp,resolveDirective:()=>wp,resolveDynamicComponent:()=>Op,resolveFilter:()=>nd,resolveTransitionHooks:()=>Ut,setBlockTracking:()=>To,setDevtoolsHook:()=>jc,setTransitionHooks:()=>Ct,shallowReactive:()=>Rr,shallowReadonly:()=>Cc,shallowRef:()=>Tc,ssrContextKey:()=>Bl,ssrUtils:()=>td,stop:()=>ac,toDisplayString:()=>Gi,toHandlerKey:()=>ct,toHandlers:()=>Ip,toRaw:()=>z,toRef:()=>Xs,toRefs:()=>xc,transformVNodeArgs:()=>Dp,triggerRef:()=>Pc,unref:()=>Zs,useAttrs:()=>Jp,useCssModule:()=>Od,useCssVars:()=>wd,useSSRContext:()=>Xp,useSlots:()=>zp,useTransitionState:()=>Ur,vModelCheckbox:()=>Wo,vModelDynamic:()=>Fd,vModelRadio:()=>qo,vModelSelect:()=>pa,vModelText:()=>os,vShow:()=>ma,version:()=>Ul,warn:()=>cn,watch:()=>Un,watchEffect:()=>zf,watchPostEffect:()=>ao,watchSyncEffect:()=>Jf,withAsyncContext:()=>Zp,withCtx:()=>io,withDefaults:()=>qp,withDirectives:()=>fp,withKeys:()=>jd,withMemo:()=>Qp,withModifiers:()=>Bd,withScopeId:()=>Af});function he(e,t){let n=Object.create(null),r=e.split(",");for(let s=0;s