LWR.define("logger/v/1",["exports"],function(r){"use strict";function e(...b){console.log(...b)}function t(...b){console.error(...b)}r.log=e,r.logError=t,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("logger",["exports","logger/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("@salesforce/loader/v/1",["exports","lwr/loaderLegacy/v/0_13_0-alpha_5"],function(r,e){"use strict";Object.defineProperty(r,"load",{enumerable:!0,get:function(){return e.load}}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("@salesforce/loader",["exports","@salesforce/loader/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/analyticsEvents/v/1_66_657",["exports"],function(r){"use strict";class e{constructor(){this.hasTriggered=!1,this.hasAddedListener=!1,this.trigger=()=>this._trigger()}_trigger(){if(!this.hasTriggered){const b=document.documentElement.scrollTop||document.body.scrollTop,I=document.documentElement.scrollHeight||document.body.scrollHeight;b/(I-document.documentElement.clientHeight)*100>=90&&(document.dispatchEvent(new CustomEvent("experience_interaction",{bubbles:!0,composed:!0,detail:{name:"page-scroll-to-bottom"}})),this.hasTriggered=!0)}}addListener(){this.hasAddedListener||document.addEventListener("scroll",this.trigger),this.hasAddedListener=!0,this.hasTriggered=!1}removeListener(){document.removeEventListener("scroll",this.trigger),this.hasAddedListener=!1}}r.ScrollToBottomEvent=e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/analyticsEvents",["exports","webruntime/analyticsEvents/v/1_66_657"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/domRouterUtils/v/0_13_0-alpha_5",["exports","lwr/routerUtils/v/0_13_0-alpha_5"],function(r,e){"use strict";function t(D=""){if(D=D||"",D.indexOf("://")<0){const l=window.location.port?`:${window.location.port}`:"",m=`${window.location.protocol}//${window.location.hostname}${l}`,y=D.charAt(0)==="/"?"":"/";D=m+y+D}const R={},p=document.createElement("a");p.href=D;const h=p.search.substring(1);return h&&h.split("&").forEach(l=>{const[m,y=""]=l.split("=");R[e.decode(m)]=e.decode(y)}),{href:p.href,origin:`${p.protocol}//${p.hostname}${p.port?`:${p.port}`:""}`,pathname:p.pathname.replace(/(\/)?/,"/"),searchParams:R}}function b(D){const R=t(D),p=R.href.replace(/:\d+/,""),h=R.origin.replace(/:\d+/,"");return p.replace(h,"")}function I(D,R){const p=R||{};window.history.pushState(p,"",D)}function U(D,R){const p=R||{};window.history.replaceState(p,"",D)}r.getRelativeUrl=b,r.replace=U,r.set=I,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/domRouterUtils",["exports","lwr/domRouterUtils/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/metrics/v/0_13_0-alpha_5",["exports"],function(r){"use strict";const e="lwr.bootstrap.",t=`${e}end`,b=`${e}error`,I=`${b}.count`,U=`${e}duration`,D="lwr.bootstrap.init",R=`${D}.duration`,p="lwr.bootstrap.init.module",h=`${p}.duration`,l=`${p}.count`,m="lwr.loader.",y=`${m}module.define`,j=`${y}.count`,_=`${m}moduleRegistry.dynamicLoad`,A=`${_}.count`,k=`${m}module.fetch`,F=`${k}.count`,N=`${k}.duration`,M=`${m}module.error`,B=`${M}.count`,S=`${m}mappings.fetch`,H=`${S}.count`,q=`${S}.duration`,u=`${m}mappings.error`,o=`${u}.count`,g="lwr.router.",O=`${g}navigate`,G=`${O}.count`,fe=`${O}.duration`,_e=`${g}view`,z=`${_e}.duration`,X=`${g}error`,le=`${X}.count`;r.BOOTSTRAP_DURATION=U,r.BOOTSTRAP_END=t,r.BOOTSTRAP_ERROR=b,r.BOOTSTRAP_ERROR_COUNT=I,r.BOOTSTRAP_PREFIX=e,r.INIT=D,r.INIT_DURATION=R,r.INIT_MODULE=p,r.INIT_MODULE_COUNT=l,r.INIT_MODULE_DURATION=h,r.LOADER_PREFIX=m,r.MAPPINGS_ERROR=u,r.MAPPINGS_ERROR_COUNT=o,r.MAPPINGS_FETCH=S,r.MAPPINGS_FETCH_COUNT=H,r.MAPPINGS_FETCH_DURATION=q,r.MODULE_DEFINE=y,r.MODULE_DEFINE_COUNT=j,r.MODULE_DYNAMIC_LOAD=_,r.MODULE_DYNAMIC_LOAD_COUNT=A,r.MODULE_ERROR=M,r.MODULE_ERROR_COUNT=B,r.MODULE_FETCH=k,r.MODULE_FETCH_COUNT=F,r.MODULE_FETCH_DURATION=N,r.ROUTER_ERROR=X,r.ROUTER_ERROR_COUNT=le,r.ROUTER_NAV=O,r.ROUTER_NAV_COUNT=G,r.ROUTER_NAV_DURATION=fe,r.ROUTER_PREFIX=g,r.ROUTER_VIEW=_e,r.ROUTER_VIEW_DURATION=z,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/metrics",["exports","lwr/metrics/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/observable/v/0_13_0-alpha_5",["exports"],function(r){"use strict";function e(){let t,b,I=[];const U=m=>{I.push(m)},D=m=>{I=[...I.slice(0,m),...I.slice(m+1)]},R=m=>{I.filter(y=>y!==null).forEach(y=>y.next&&y.next(m)),t=m,b=void 0},p=m=>{I.filter(y=>y!==null).forEach(y=>y.error&&y.error(m)),t=void 0,b=m};return{next:R,error:p,complete:()=>{I.filter(m=>m!==null).forEach(m=>m.complete&&m.complete()),I=[],t=void 0,b=void 0},subscribe:(m,y=!0)=>{U(m),t&&y&&m.next(t),b&&p(b);const j=I.length-1;return{unsubscribe:()=>D(j)}}}}r.createObservable=e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/observable",["exports","lwr/observable/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/contextProvider/v/0_13_0-alpha_5",["exports","lwc/v/6_6_3","lwr/routerUtils/v/0_13_0-alpha_5","lwr/navigation/v/0_13_0-alpha_5"],function(r,e,t,b){"use strict";const I=e.createContextProvider(b.CurrentPageReference),U=t.hasDocument?e.createContextProvider(b.CurrentView):void 0,D=e.createContextProvider(b.NavigationContext);function R(p,h,l,m){l&&m&&(m.setContext(h,p),l(h,{consumerConnectedCallback:m.subscribeContext.bind(m,h),consumerDisconnectedCallback:m.unsubscribeContext.bind(m,h)}))}r.currentPageReferenceContextualizer=I,r.currentViewContextualizer=U,r.navigationContextContextualizer=D,r.provideContext=R,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/contextProvider",["exports","lwr/contextProvider/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/routerUtils/v/0_13_0-alpha_5",["exports","lwr/routerErrors/v/0_13_0-alpha_5"],function(r,e){"use strict";function t(){const d=[],C=()=>d.length===0,w=W=>{typeof W=="function"&&d.push(W)};return{add:(W=[])=>{Array.isArray(W)?W.forEach($=>w($)):w(W)},compile:W=>d.length===0?Promise.resolve(!0):d.reduce(($,te)=>$.then(Z=>Z===!1?Promise.reject():Promise.resolve(te(W))),Promise.resolve(!0)).then($=>$!==!1).catch($=>{if($ instanceof Error)throw $;return!1}),empty:C}}function b(d=""){return d=d||"",encodeURIComponent(d)}function I(d=""){return d=d||"",decodeURIComponent(d)}function U(d){d=d||"/",d.charAt(0)!=="/"&&(d="/"+d);const C=d.match(/^[^#?]+/);if(C!==null){const w=C[0];return w==="/"?"/":w.replace(/\/$/,"")}return"/"}function D(d){d=d||"";const C=d.indexOf("#");C>=0&&(d=d.substring(0,C));const w=d.indexOf("?"),x=w>=0?d.substr(w+1):null,Y={};return x&&x.split("&").forEach(W=>{if(W.indexOf("=")>=0){const[$,te=""]=W.split("=");Y[I($)]=I(te)}else Y[I(W)]=null}),Y}function R(d={}){const C=Object.keys(d);return C.length?`?${C.map(w=>{const x=d[w];return x===null?w:`${w}=${b(x)}`}).join("&")}`:""}function p(d){return d&&d.length>1?d.startsWith(":"):!1}function h(d){return d&&p(d)?d.substr(1):!1}function l(d){return Object.values(d).reduce((C,{routeParamName:w})=>{const x=h(w);return x&&C.push(x),C},[])}function m(d,C){if(!d)return null;const{type:w,attributes:x={},state:Y={}}=d;if(w){const[W]=C.filter($=>{const{original:{page:{type:te=null,attributes:Z={},state:K={}}={}}}=$,ie=te===w,he=Object.keys(Z).every(Ie=>Object.keys(x).indexOf(Ie)>=0),ye=Object.keys(Z).length===Object.keys(x).length,we=Object.keys(K).every(Ie=>Object.keys(Y).indexOf(Ie)>=0),Re=Object.keys(Z).filter(Ie=>{const v=Z[Ie];return!v||!p(v)}).every(Ie=>Z[Ie]===x[Ie]),Te=Object.keys(K).filter(Ie=>{const v=K[Ie];return v===null||!p(v)}).every(Ie=>K[Ie]===Y[Ie]);return ie&&he&&ye&&Re&&we&&Te});return W||null}return null}function y(d,C){const{regex:w,params:x}=C,Y=w.exec(d);if(Y){const[,...W]=Y,$={};return x.forEach((te,Z)=>{const{name:K}=te,ie=W[Z];$[K]=ie&&I(ie)}),$}return null}function j(d,C){if(d&&C){const{queryMatcher:w}=C,x=w(d);if(x){const Y={};return Object.keys(x).forEach(W=>{const $=x[W],{value:te,routeParamName:Z}=$,K=Z?Z.substr(1):W;Y[K]=te&&I(te)}),Y}}return null}function _(d,C){const{compiledQuery:w}=C,x=Object.keys(w).filter(W=>{const{literalValue:$}=w[W];return!$}),Y={};return Object.keys(d).forEach(W=>{const $=d[W];x.indexOf(W)<0&&(Y[W]=$)}),Y}function A(d,C){if(C){const{original:{page:{type:w="",attributes:x={},state:Y={}}={}}={}}=C,W=U(d),$=D(d),te=y(W,C),Z=j($,C);if(te&&Z){const K={...te,...Z},ie={};Object.keys(x).forEach(we=>{const Re=x[we];let Te;if(Re&&p(Re)){const Ie=Re.substr(1);Te=K[Ie]}else Te=Re;ie[we]=Te});const he={};Object.keys(Y).forEach(we=>{const Re=Y[we];let Te;if(Re&&p(Re)){const Ie=Re.substr(1);Te=K[Ie]}else Te=Re;he[we]=Te});const ye=_($,C);return{type:w,attributes:{...ie},state:{...ye,...he}}}}return null}const k={locale:"en-US",defaultLocale:"en-US"};function F(d,C,w){const{original:{patterns:x=null}={}}=w||{};if(x){const Y=y(d,w),W=j(C,w),$={...Y,...W};return Object.keys(x).every(te=>{const Z=x[te],K=new RegExp(Z),ie=$[te]||"";return K.test(ie)})}return!0}function N(d,C){const w=U(d),x=D(d),Y=C?C.filter($=>$.regex.test(w)):[],[W]=Y.filter($=>{const{queryMatcher:te}=$;return te(x)&&F(w,x,$)});return W||null}function M(d,C,w="",x=k,Y){if(w&&d?.indexOf(w)===0&&(d=d.replace(w,"")),Y?.locale||x?.locale){const te=`/${Y?.locale||x.locale}`;d?.indexOf(te)===0&&(d=d.replace(te,""))}const W=N(d,C);let $;if(W){const te=A(d,W);if(te)return $={route:{id:W.original.id,attributes:{...te.attributes},state:{...te.state},pageReference:{type:te.type,attributes:{...te.attributes},state:{...te.state}}},routeDefinition:W},$}else return null;return null}function B(d,C,w="",x=k,Y){const W=m(d,C);return W?H(d,W,w,x,Y):null}function S(d,C,w){const{attributeBindings:x,stateBindings:Y}=w,{attributes:W,state:$}=C,te={};return d.forEach(Z=>{const[K]=Object.keys(x).filter(ie=>h(x[ie])===Z);if(K)te[Z]=W[K];else{const[ie]=Object.keys(Y).filter(he=>h(Y[he])===Z);ie&&(te[Z]=$[ie])}}),te}function H(d,C,w="",x=k,Y){const{params:W,original:{page:$={}}={},toPath:te,compiledQuery:Z}=C,{attributes:K={},state:ie={}}=$,he=W.filter(({name:ce})=>typeof ce=="string").map(({name:ce})=>ce),ye=S(he,d,{attributeBindings:K,stateBindings:ie}),we=te(ye),Re=l(Z),Te=S(Re,d,{attributeBindings:K,stateBindings:ie}),Ie=q(d,Te,C),v=R(Ie),Q=Y?.locale||x&&x.locale,ue=Q!==x.defaultLocale?`/${Q}`:"";return`${w}${ue}${we}${v}`}function q(d,C,w){const{compiledQuery:x,original:{page:{state:Y={}}}}=w,{state:W={}}=d||{},$={};Object.keys(W).filter(Z=>{const K=Y[Z];return!p(K)}).forEach(Z=>$[Z]=W[Z]);const te={};return Object.keys(C).forEach(Z=>{const K=C[Z],[ie]=Object.keys(x).filter(he=>{const ye=x[he],{routeParamName:we}=ye;return h(we)===Z});if(ie){const he=ie;te[he]=K}}),{...$,...te}}function u(d,C,w="",x=k){const Y=M(d,C,w,x);return Y&&Y.route&&Y.route.pageReference?Y.route.pageReference:null}function o(d){return typeof d=="object"&&d!==null&&!Array.isArray(d)}function g(d){return typeof d=="string"}function O(d,C){return C in d}function G(d,C=2){if(o(d))try{Object.freeze(d),C>0&&Object.keys(d).forEach(w=>{if(O(d,w)){const x=d[w];x&&typeof x=="object"&&G(x,C-1)}})}catch(w){}return d}function fe(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function _e(d){const C=["id","attributes","state","pageReference"],{pageReference:w=null}=d||{};return o(d)&&le(d,C)&&z(w)}function z(d){const C=["type","state","attributes"],{type:w,state:x,attributes:Y}=d||{},W=o(d)&&g(w)&&o(x)&&X(x)&&o(Y)&&X(Y);return le(d,C)&&W}function X(d){return Object.keys(d).every(C=>{const w=d[C];return typeof C=="string"&&(typeof w=="string"||w===null)})}function le(d,C){if(o(d)){const w=C.every(W=>O(d,W)),Y=Object.keys(C).length===C.length;return w&&Y}return!1}function ge(d){const C=[];let w=0;for(;w=48&&$<=57||$>=65&&$<=90||$>=97&&$<=122||$===95){Y+=d[W++];continue}break}if(!Y)throw new TypeError(`Missing parameter name at ${w}`);C.push({type:"NAME",index:w,value:Y}),w=W;continue}if(x==="("){let Y=1,W="",$=w+1;if(d[$]==="?")throw new TypeError(`Pattern cannot start with "?" at ${$}`);for(;${if(te{const we=K(ye);if(we!==void 0)return we;const{type:Re,index:Te}=w[te];throw new TypeError(`Unexpected ${Re} at ${Te}, expected ${ye}`)},he=()=>{let ye="",we;for(;we=K("CHAR")||K("ESCAPED_CHAR");)ye+=we;return ye};for(;te$,validate:Y=!0}=C,W=d.map($=>{if(typeof $=="object")return new RegExp(`^(?:${$.pattern})$`,w)});return $=>{let te="";for(let Z=0;Zie}=w,te=`[${Pe(w.endsWith||"")}]|$`,Z=`[${Pe(w.delimiter||"/#?")}]`;let K=Y?"^":"";for(const ie of d)if(typeof ie=="string")K+=Pe($(ie));else{const he=Pe($(ie.prefix)),ye=Pe($(ie.suffix));if(ie.pattern)if(C&&C.push(ie),he||ye)if(ie.modifier==="+"||ie.modifier==="*"){const we=ie.modifier==="*"?"?":"";K+=`(?:${he}((?:${ie.pattern})(?:${ye}${he}(?:${ie.pattern}))*)${ye})${we}`}else K+=`(?:${he}(${ie.pattern})${ye})${ie.modifier}`;else K+=`(${ie.pattern})${ie.modifier}`;else K+=`(?:${he}${ye})${ie.modifier}`}if(W)x||(K+=`${Z}?`),K+=w.endsWith?`(?=${te})`:"$";else{const ie=d[d.length-1],he=typeof ie=="string"?Z.indexOf(ie[ie.length-1])>-1:ie===void 0;x||(K+=`(?:${Z}(?=${te}))?`),he||(K+=`(?=${Z}|${te})`)}return new RegExp(K,Se(w))}function Ee(d,C,w){return oe(Ue(d,w),C,w)}function ee(d,C,w){return d instanceof RegExp?We(d,C):Array.isArray(d)?Oe(d,C,w):Ee(d,C,w)}function Oe(d,C,w){const x=d.map(Y=>ee(Y,C,w).source);return new RegExp(`(?:${x.join("|")})`,Se(w))}const{INVALID_ROUTE_QUERY:Ne,MISSING_ROUTE_TEMPLATE:xe,MISSING_PAGE_BINDING:Ge,INVALID_PAGE_BINDING:Le,INVALID_URI_SYNTAX:Me}=e.messages;function it(d){const{routes:C,caseSensitive:w}=d;return C.map(x=>Je(x,w))}function Je(d,C=!1){const w=[],{uri:x,page:Y}=d;e.invariant(!!x,xe),e.invariant(Xe(x),Me),e.invariant(!!Y,Ge);const W=U(x),$=D(x),te=ee(W,w,{sensitive:C,end:d.exact!==!1}),Z=Ve(W,{encode:encodeURIComponent}),K=Ze($),ie=dt(K,C),he={original:d,regex:te,params:w,toPath:Z,compiledQuery:K,queryMatcher:ie};return e.invariant(ct(he),Le),he}function Xe(d=""){return!["*","(",")",";"].some(x=>d.indexOf(x)>=0)}function ct(d){const{original:{page:C}={},params:w,compiledQuery:x}=d,Y=C&&C.type,W=C&&C.attributes||{},$=C&&C.state||{};if(typeof Y!="string"||typeof W!="object"||typeof $!="object")return!1;const te=Object.values(w).map(({name:Re})=>Re),Z=l(x),K=[...te,...Z],ie=Object.values(W).filter(p).map(h),he=Object.values($).filter(p).map(h),ye=K.every(Re=>typeof Re!="string"?!1:ie.indexOf(Re)>=0||he.indexOf(Re)>=0),we=K.length===ie.length+he.length;return!!(C&&Y&&W&&$&&ye&&we)}function Ze(d){const C={};return Object.keys(d).forEach(w=>{const x=d[w];e.invariant(p(w)?x===null:!0,Ne),p(w)?C[w.substr(1)]={routeParamName:w}:x&&p(x)?C[w]={routeParamName:x}:C[w]={literalValue:x===null?null:x}}),C}function dt(d,C=!1){return x=>{const Y=Object.keys(x),W=Object.keys(d);return W.every(te=>Y.indexOf(te)>=0)?W.reduce((te,Z)=>{if(te===null)return null;const{literalValue:K,routeParamName:ie}=d[Z],he=x[Z];let ye=!0;return typeof K=="string"?ye=C?K===he:K.toUpperCase()===(he==null?he:he.toUpperCase()):K===null&&(ye=he===K),ye?te={...te,[Z]:{value:he,routeParamName:ie}}:te=null,te},{}):null}}const ae=typeof document!="undefined",se={pathToRegexp:ee,compile:Ve};r.DEFAULT_I18N_ROUTER_CONFIG=k,r.createFilterChain=t,r.decode=I,r.encode=b,r.freeze=G,r.getPageReferenceFromUriAndRouteDef=A,r.getPageReferenceFromUrl=u,r.getPathFromUrl=U,r.getQueryFromUrl=D,r.getQueryString=R,r.getUrlFromPageReference=B,r.getUrlFromPageReferenceAndRouteDef=H,r.guid=fe,r.hasDocument=ae,r.isObject=o,r.isValidRoute=_e,r.matchRouteByUrl=M,r.parseRoutes=it,r.pathToRegexp=se,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/routerUtils",["exports","lwr/routerUtils/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/navigationMixinHacks/v/0_13_0-alpha_5",["exports","lwr/routerUtils/v/0_13_0-alpha_5"],function(r,e){"use strict";const t=`universalcontainergetnavigationcontext${e.guid()}`;r.CONTEXT_ID_BACKDOOR=t,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/navigationMixinHacks",["exports","lwr/navigationMixinHacks/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/currentView/v/0_13_0-alpha_5",["exports","lwr/contextUtils/v/0_13_0-alpha_5","lwr/routerErrors/v/0_13_0-alpha_5"],function(r,e,t){"use strict";const b=new e.ContextInfo(void 0),I=class extends e.generateContextualWireAdapter(b){async update(D,R){if(R){const p=D&&D.viewName?D.viewName:"default",h=R.viewset[p],l=h,m=l&&l.module||h;let y;if(m)try{const j=await m(),_=j&&j.default;if(_&&_.constructor!==void 0)this._callback(_);else throw new Error("error occurred with view import")}catch(j){const _=j;l.specifier?y=t.generateMessageObject(t.messages.VIEW_IMPORT_FAILED_WITH_SPECIFIER,[l.specifier,p,_.message,_.stack||""]):y=t.generateMessageObject(t.messages.VIEW_IMPORT_FAILED,[p,_.message,_.stack||""])}else y=t.generateMessageObject(t.messages.VIEW_MISSING,[p]);R.onComplete&&R.onComplete(y)}}};r.CurrentView=I,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/currentView",["exports","lwr/currentView/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/currentPageReference/v/0_13_0-alpha_5",["exports","lwr/contextUtils/v/0_13_0-alpha_5"],function(r,e){"use strict";const t=new e.ContextInfo(void 0),b=e.generateContextualWireAdapter(t);r.CurrentPageReference=b,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/currentPageReference",["exports","lwr/currentPageReference/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/routerErrors/v/0_13_0-alpha_5",["exports"],function(r){"use strict";const e="LWR",t={Fatal:0,Error:1,Warning:2,Log:3};function b(p,h){return Array.isArray(h)?p.replace(/\{([0-9]+)\}/g,(l,m)=>h[m]):p}function I(p,h){return`${p.code}: ${b(p.message,h)}`}function U(p,h){const l={...p,message:b(p.message,h)};return p.address&&(l.address=b(p.address,h)),p.stack&&(l.stack=b(p.stack,h)),l}function D(p,h,l){if(!p)throw new Error(I(h,l))}const R={INVALID_MIXIN_CMP:{code:`${e}4001`,message:"{0} must be an Element type",level:t.Error},MISSING_CONTEXT:{code:`${e}4002`,message:"Could not find context to perform navigation action.",level:t.Error},INVALID_CONTEXT:{code:`${e}4003`,message:"Cannot register navigation context; it must have this shape: { navigate, generateUrl, subscribe }",level:t.Error},MULTIPLE_ROOTS:{code:`${e}4004`,message:"Router connection failed. There can only be one root router.",level:t.Error},MULTIPLE_CHILDREN:{code:`${e}4005`,message:"Could not add to the navigation hierarchy. There can only be one child per navigation node.",level:t.Error},MISSING_ROUTE:{code:`${e}4006`,message:'A route cannot be created to navigate to URL "{0}"',level:t.Error,address:"{0}"},MISSING_URL:{code:`${e}4007`,message:'A URL cannot be created to navigate to route "{0}"',level:t.Error,address:"{0}"},PRENAV_FAILED:{code:`${e}4008`,message:'A preNavigate hook listener blocked routing to "{0}"',level:t.Warning,address:"{0}"},MISSING_ROUTE_TEMPLATE:{code:`${e}4009`,message:'A route definition must contain a "uri" property.',level:t.Error},MISSING_ROUTE_CMP:{code:`${e}4016`,message:"Expected a route view component with a default export.",level:t.Error},MISSING_DATA_CONTEXT:{code:`${e}4018`,message:"Could not find context to retrieve navigation data.",level:t.Error},INVALID_ROUTE_QUERY:{code:`${e}4019`,message:"Invalid query param in route definition.",level:t.Error},MISSING_PAGE_BINDING:{code:`${e}4020`,message:"Route definition must provide page binding",level:t.Error},INVALID_PAGE_BINDING:{code:`${e}4021`,message:"Invalid page binding in route definition",level:t.Error},INVALID_URI_SYNTAX:{code:`${e}4022`,message:"Invalid uri syntax. URI cannot contain *, +, (, ), ",level:t.Error},VIEW_IMPORT_FAILED:{code:`${e}4023`,message:'Error importing view with name "{0}", failure was: {1}',level:t.Error,stack:"{2}"},VIEW_MISSING:{code:`${e}4024`,message:'Expected a view with name "{0}" in the viewset',level:t.Error},VIEW_IMPORT_FAILED_WITH_SPECIFIER:{code:`${e}4025`,message:'Error importing module "{0}" from view with name "{1}", failure was: {2}',level:t.Error,stack:"{3}"},NO_ROUTE_MATCH:{code:`${e}4026`,message:"A routing match cannot be found for: {0}",level:t.Error},INVALID_ROUTE_HANDLER:{code:`${e}4027`,message:'Route definition "{0}" does not have a valid route handler module',level:t.Error},DESTINATION_NOT_FOUND:{code:`${e}4028`,message:"Route handler returned 404: Not Found",level:t.Error},DESTINATION_ERROR:{code:`${e}4029`,message:"Route handler returned error status {0}: {1}",level:t.Error,stack:"{2}"},NO_INIT_URL:{code:`${e}4030`,message:'Cannot initialize a server router without a "url"',level:t.Error}};r.generateMessage=I,r.generateMessageObject=U,r.invariant=D,r.messages=R,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/routerErrors",["exports","lwr/routerErrors/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/contextUtils/v/0_13_0-alpha_5",["exports","lwr/routerErrors/v/0_13_0-alpha_5"],function(r,e){"use strict";function t(p){if(p==null)throw new TypeError("Provider must be defined.")}class b{constructor(h){this.infoMap=new WeakMap,this.defaultValue=h}getInfo(h){let l=this.infoMap.get(h);return l===void 0&&(l={consumers:new Set},this.infoMap.set(h,l)),l}setContext(h,l){t(h);const m=l,y=this.getInfo(h);y.contextValue=l,y.consumers.forEach(j=>j.provide(m)),y.consumers.size===0&&m?.onComplete&&m.onComplete()}getContext(h){t(h);const{contextValue:l}=this.getInfo(h);return l!==void 0?l:this.defaultValue}clearContext(h){t(h),this.infoMap.delete(h)}subscribeContext(h,l){t(h);const{consumers:m,contextValue:y}=this.getInfo(h);m.has(l)||(m.add(l),l.provide(y))}unsubscribeContext(h,l){t(h),this.getInfo(h).consumers.delete(l)}}const I=new WeakMap;function U(p){const h=I.get(p);if(!h||!h.value)throw new Error(e.generateMessage(e.messages.MISSING_CONTEXT));return h.value}function D(p,h){const l={id:p,value:h,update:m=>{l.value=m}};return I.set(l.id,l),l}function R(p){var h;return h=class{constructor(y){this._callback=y}connect(){}disconnect(){}update(y,j){j&&this._callback(j)}static setContext(y,j){p.setContext(y,j)}static getContext(y){return p.getContext(y)}static clearContext(y){p.clearContext(y)}static subscribeContext(y,j){p.subscribeContext(y,j)}static unsubscribeContext(y,j){p.unsubscribeContext(y,j)}},h.contextSchema={value:"required"},h}r.ContextInfo=b,r.generateContextualWireAdapter=R,r.getNavigationHelm=U,r.registerNavigationHelm=D,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/contextUtils",["exports","lwr/contextUtils/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/navigationContext/v/0_13_0-alpha_5",["exports","lwr/contextUtils/v/0_13_0-alpha_5"],function(r,e){"use strict";const t=new e.ContextInfo(void 0),b=e.generateContextualWireAdapter(t);r.NavigationContext=b,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/navigationContext",["exports","lwr/navigationContext/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/navigation/v/0_13_0-alpha_5",["exports","lwr/navigationContext/v/0_13_0-alpha_5","lwr/currentPageReference/v/0_13_0-alpha_5","lwr/currentView/v/0_13_0-alpha_5","lwr/contextUtils/v/0_13_0-alpha_5","lwr/routerErrors/v/0_13_0-alpha_5","lwr/navigationMixinHacks/v/0_13_0-alpha_5"],function(r,e,t,b,I,U,D){"use strict";function R(A,k,F,N){I.getNavigationHelm(A).navigate(k,F,N)}function p(A,k,F){return I.getNavigationHelm(A).generateUrl(k,F)}const h=typeof window=="undefined",l=Symbol("Navigate"),m=Symbol("GenerateUrl"),y=Symbol("NavContext"),j=Symbol("NavContext");function _(A){U.invariant(typeof A.prototype.dispatchEvent=="function",U.messages.INVALID_MIXIN_CMP,[A.toString()]);class k extends A{[j](){if(!this[y]&&(this.dispatchEvent(new CustomEvent(D.CONTEXT_ID_BACKDOOR,{bubbles:!0,composed:!0,detail:{callback:N=>{this[y]=N}}})),!this[y]))throw new Error(U.generateMessage(U.messages.MISSING_CONTEXT))}[l](N,M,B){h||(this[j](),R(this[y],N,M,B))}async[m](N,M){return h?null:(this[j](),p(this[y],N,M))}}return k}_.Navigate=l,_.GenerateUrl=m,_.NavContext=y,Object.defineProperty(r,"NavigationContext",{enumerable:!0,get:function(){return e.NavigationContext}}),Object.defineProperty(r,"CurrentPageReference",{enumerable:!0,get:function(){return t.CurrentPageReference}}),Object.defineProperty(r,"CurrentView",{enumerable:!0,get:function(){return b.CurrentView}}),Object.defineProperty(r,"ContextInfo",{enumerable:!0,get:function(){return I.ContextInfo}}),Object.defineProperty(r,"generateContextualWireAdapter",{enumerable:!0,get:function(){return I.generateContextualWireAdapter}}),Object.defineProperty(r,"getNavigationHelm",{enumerable:!0,get:function(){return I.getNavigationHelm}}),Object.defineProperty(r,"registerNavigationHelm",{enumerable:!0,get:function(){return I.registerNavigationHelm}}),r.NavigationMixin=_,r.generateUrl=p,r.navigate=R,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/navigation",["exports","lwr/navigation/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/domRouter/v/0_13_0-alpha_5",["exports","lwr/navigation/v/0_13_0-alpha_5","lwr/contextProvider/v/0_13_0-alpha_5","lwr/routerErrors/v/0_13_0-alpha_5","lwr/routerUtils/v/0_13_0-alpha_5","lwr/observable/v/0_13_0-alpha_5","lwr/metrics/v/0_13_0-alpha_5","lwr/profiler/v/0_13_0-alpha_5","lwr/navigationMixinHacks/v/0_13_0-alpha_5"],function(r,e,t,b,I,U,D,R,p){"use strict";const h=`universalcontainernavigationevent${I.guid()}`,l=`universalcontainerparentevent${I.guid()}`;class m{constructor(_,A,k){this.pendingRoute=null,this.committedRoute=null,this.contextId=Object.freeze(()=>{}),this.connected=!1,this.preNavFilters=I.createFilterChain(),this.errorNavFilters=I.createFilterChain(),this._handleNavigationEvent=F=>{const N=F;if(N.detail&&typeof N.detail=="object"){const{url:M,replace:B,address:S}=N.detail;this.config.handleNavigation(S,B)?this.root&&!M?this.root.processError(b.generateMessageObject(b.messages.MISSING_URL,[JSON.stringify(S)])):this.parent||this.process(M,B):N.stopPropagation()}},this._handleParentEvent=F=>{F.stopImmediatePropagation();const N=F;N&&N.detail&&typeof N.detail=="function"&&N.detail(this)},this.config={handleNavigation:_.handleNavigation||(()=>!0)},this.target=k||window,this.router=A,this.router.contextId=this.contextId,this.routeObservable=U.createObservable()}get root(){if(!this.parent)return this;let _=this.parent;for(;_;){if(!_.parent)return _;_=_.parent}throw new Error("No root router could be found")}updateWires(_,A,k){if(k)this.processError(k);else{if(this.committedRoute&&_.route===this.committedRoute.route)return;R.logOperationEnd({id:D.ROUTER_VIEW,specifier:this.eventId}),this.pendingRoute=this.pendingRoute||{..._,url:A},this.committedRoute={...this.pendingRoute,..._},e.CurrentPageReference.setContext(this.target,_.route.pageReference),this.routeObservable.next({...this.committedRoute,viewset:_.viewset}),R.logOperationEnd({id:D.ROUTER_NAV,specifier:this.eventId}),this.child&&this.child.process(this._stripUrlForChild(this.committedRoute.url))}}connect(){this._sendEvent(l,A=>{this.parent=A,A.addChild(this)});const _={navigate:(A,k)=>this.navigate(A,k),generateUrl:(A,k)=>this.generateUrl(A,k),subscribe:(A,k)=>this.subscribe(A,k)};e.registerNavigationHelm(this.contextId,_),t.provideContext(this.contextId,this.target,t.navigationContextContextualizer,e.NavigationContext),t.provideContext(void 0,this.target,t.currentPageReferenceContextualizer,e.CurrentPageReference),t.provideContext(void 0,this.target,t.currentViewContextualizer,e.CurrentView),this.router.subscribe(A=>{if(A.status===404){this.processError(b.generateMessageObject(b.messages.DESTINATION_NOT_FOUND));return}if(A.status&&A.status>=400){const N=A.error||new Error;this.processError(b.generateMessageObject(b.messages.DESTINATION_ERROR,[A.status.toString(),N.message,N.stack||""]));return}const k=A.route.pageReference||{},F=this.router.generateUrl(k)||"";if(R.logOperationStart({id:D.ROUTER_VIEW,specifier:this.eventId}),A.viewset){const N={viewset:A.viewset,onComplete:this.updateWires.bind(this,A,F)};e.CurrentView.setContext(this.target,N)}else A.route.pageReference&&this.updateWires(A,F)},!0),I.hasDocument&&(this.target.addEventListener(h,this._handleNavigationEvent),this.target.addEventListener(l,this._handleParentEvent),this.target.addEventListener(p.CONTEXT_ID_BACKDOOR,A=>{const k=A;k.detail.callback&&k.detail.callback(this.contextId)})),this.connected=!0}disconnect(){this.target.removeEventListener(h,this._handleNavigationEvent),this.target.removeEventListener(l,this._handleParentEvent),this.parent&&(this.parent.child=void 0),this.parent=void 0,this.child&&(this.child.parent=void 0),this.child=void 0,this.connected=!1}addPreNavigate(_){this.preNavFilters.add(_)}addErrorNavigate(_){this.errorNavFilters.add(_)}async addChild(_){if(await new Promise(A=>{setTimeout(()=>{b.invariant(!this.child,b.messages.MULTIPLE_CHILDREN),this.child=_,A()},0)}),this.child&&this.committedRoute){const A=this._stripUrlForChild(this.committedRoute.url);await this.child.preProcess(A)&&this.child.process(A)}}async process(_,A,k,F){this.eventId=new Date().getTime().toString(),R.logOperationStart({id:D.ROUTER_NAV,specifier:this.eventId});try{this.parent||await this.preProcess(_,k)}catch(M){if(M.code)return this.processError(M),!1;throw M}const N=this.router.parseUrl(_);return N&&this.router.navigate(N,k),!0}preProcess(_,A){const k=this.router.parseUrl(_),F=k&&this.router.matchRoute(k,A);return F?(this.pendingRoute={url:_,...F},(this.preNavFilters.empty()?Promise.resolve(!0):this.preNavFilters.compile({current:this.committedRoute||void 0,next:this.pendingRoute})).then(M=>M&&this.child?this.child.preProcess(this._stripUrlForChild(_)):M).then(M=>M||Promise.reject(b.generateMessageObject(b.messages.PRENAV_FAILED,[_])))):Promise.reject(b.generateMessageObject(b.messages.MISSING_ROUTE,[_]))}processError(_){R.logOperationStart({id:D.ROUTER_ERROR}),this.errorNavFilters.compile(_),this.child&&this.child.processError(_)}navigate(_,A,k){const F=this.filterNavigateOptions(k);let N=this.router.generateUrl(_,F);N&&(N=(this.parent&&this.parent.committedRoute&&this.parent.committedRoute.pathMatch||"").concat(N)),this._sendEvent(h,{url:N,replace:A,address:_})}generateUrl(_,A){const k=this.filterNavigateOptions(A),F=this.router.generateUrl(_,k);return F?`${this.parent&&this.parent.committedRoute&&this.parent.committedRoute.pathMatch||""}${F}`:null}subscribe(_,A){return this.routeObservable.subscribe({next:_,error:()=>{},complete:()=>{}},Boolean(A))}_sendEvent(_,A){I.hasDocument&&this.target.dispatchEvent(new CustomEvent(_,{bubbles:!0,composed:!0,detail:A}))}_stripUrlForChild(_){return this.pendingRoute&&_.indexOf(this.pendingRoute.pathMatch)===0?_.replace(this.pendingRoute.pathMatch,""):_}filterNavigateOptions(_){const A=!this.parent;return{..._,locale:A?_?.locale:void 0}}}function y(j,_,A){return new m(j,_,A)}r.DomRouterImpl=m,r.NAV_EVENT=h,r.PARENT_EVENT=l,r.createDomRouter=y,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/domRouter",["exports","lwr/domRouter/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/historyRouter/v/0_13_0-alpha_5",["exports","lwc/v/6_6_3","lwr/domRouter/v/0_13_0-alpha_5","lwr/domRouterUtils/v/0_13_0-alpha_5","lwr/routerUtils/v/0_13_0-alpha_5"],function(r,e,t,b,I){"use strict";class U extends t.DomRouterImpl{constructor(...p){super(...p);this.historyDisabled=!1}connect(){super.connect(),this.historyDisabled||(I.hasDocument&&window.addEventListener("popstate",this.onpopstate.bind(this)),this.onpopstate())}onpopstate(){!this.parent&&I.hasDocument&&this.catchBrowserUpdate(b.getRelativeUrl(window.location.href))}disconnect(){super.disconnect(),I.hasDocument&&window.removeEventListener("popstate",this.onpopstate)}async process(p,h,l,m=!0){const y=await super.process(p,h,l,m);return y&&!this.historyDisabled&&m&&this.connected&&!this.parent&&(h?b.replace(p):b.set(p)),y}catchBrowserUpdate(p){this.process(p,!1,{},!1)}}e.registerDecorators(U,{fields:["historyDisabled"]});function D(R,p,h){return new U(R,p,h)}r.HistoryRouter=U,r.createHistoryRouter=D,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/historyRouter",["exports","lwr/historyRouter/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/routerContainer/v/0_13_0-alpha_5",["exports","lwc/v/6_6_3","lwr/historyRouter/v/0_13_0-alpha_5","lwr/routerErrors/v/0_13_0-alpha_5","lwr/domRouter/v/0_13_0-alpha_5","lwr/routerUtils/v/0_13_0-alpha_5"],function(r,e,t,b,I,U){"use strict";function D(F,N,M){var B=F?"["+F+"]":"";return"span.router-title"+B+" {position: absolute;margin: -1px;border: 0;padding: 0;width: 1px;height: 1px;overflow: hidden;clip: rect(0 0 0 0);text-transform: none;white-space: nowrap;}"}var R=[D];const p=e.parseFragment``,h={key:0},l=[];function m(F,N,M,B){const{s:S,st:H}=F;return[S("",h,l,M),H(p,2)]}var y=e.registerTemplate(m);m.slots=[""],m.stylesheets=[],m.renderMode="light",R&&m.stylesheets.push.apply(m.stylesheets,R),m.stylesheetToken="lwc-7bis3qj4jjc",m.legacyStylesheetToken="lwr-routerContainer_routerContainer",e.freezeTemplate(m);let j=!1;function _(F,N={},M){const B=N.historyDisabled?new I.DomRouterImpl(N,M,F):new t.HistoryRouter(N,M,F),S={addPreNavigate:H=>(B.addPreNavigate(H),S),addPostNavigate:H=>(B.subscribe(H),S),addErrorNavigate:H=>(B.addErrorNavigate(H),S),connect:()=>{B.connect(),b.invariant(!j||!!B.parent,b.messages.MULTIPLE_ROOTS),j=j||!B.parent,S.id=B.contextId},disconnect:()=>{j=j&&!!B.parent,B.disconnect()}};return S}class A extends e.LightningElement{constructor(){super();this.router=void 0,this.historyDisabled=!1,this.currentTitle=U.hasDocument?document.title:""}connectedCallback(){const N={historyDisabled:this.historyDisabled,handleNavigation:this.handleNavigation.bind(this)};U.hasDocument&&this.router&&(this.routerApi=_(this,N,this.router),this.routerApi.addPreNavigate(this.preNavigate.bind(this)).addPostNavigate(this.postNavigate.bind(this)).addErrorNavigate(this.errorNavigate.bind(this)).connect())}preNavigate(N){const M=this._createEvent("prenavigate",N,!0);return this.dispatchEvent(M),!M.defaultPrevented}postNavigate(N){this.dispatchEvent(this._createEvent("postnavigate",N));const M=N.routeDefinition.metadata&&N.routeDefinition.metadata.title;M&&(this.currentTitle=M,document.title=M);const B=this.querySelector("span.router-title");B&&(B.innerHTML=this.currentTitle)}errorNavigate(N){return this.dispatchEvent(this._createEvent("errornavigate",N)),!0}handleNavigation(N,M){const B=this._createEvent("handlenavigation",{address:N,replace:M},!0);return this.dispatchEvent(B),!B.defaultPrevented}disconnectedCallback(){this.routerApi&&this.routerApi.disconnect()}_createEvent(N,M,B){return new CustomEvent(N,{detail:M,bubbles:!1,composed:!1,cancelable:B})}}A.renderMode="light",e.registerDecorators(A,{publicProps:{router:{config:0},historyDisabled:{config:0}}});var k=e.registerComponent(A,{tmpl:y,sel:"lwr-router-container",apiVersion:62});r.default=k,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/routerContainer",["exports","lwr/routerContainer/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/defaultView/v/1_66_657",["exports","lwc/v/6_6_3"],function(r,e){"use strict";const t=[];function b(D,R,p,h){return t}var I=e.registerTemplate(b);b.stylesheets=[],b.renderMode="light",b.stylesheetToken="lwc-15jgd3dq0rl",b.legacyStylesheetToken="webruntime-defaultView_defaultView",e.freezeTemplate(b);var U={html:I,attributes(){}};r.default=U,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/defaultView",["exports","webruntime/defaultView/v/1_66_657"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/designmodeInit/v/1_66_657",["exports","lwr/loaderLegacy/v/0_13_0-alpha_5","@app/isDesignMode/v/1"],function(r,e,t){"use strict";function b(D){return D&&typeof D=="object"&&"default"in D?D:{default:D}}var I=b(t);async function U(){if(!I.default)return;const{start:D}=await e.load("webruntimedesign/designmode/v/1");/interactive|complete/.test(document.readyState)?D():document.addEventListener("DOMContentLoaded",D,!1)}r.designmodeInit=U,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/designmodeInit",["exports","webruntime/designmodeInit/v/1_66_657"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/utils/v/1_66_657",["exports"],function(r){"use strict";function e(l,m){if(!l)throw new Error(m)}function t(l){return typeof l=="object"&&l!==null&&!Array.isArray(l)}function b(l){return typeof document!="undefined"&&document?.cookie.split(";").map(m=>m.trim().split("=")).filter(([m])=>m===l).map(([,m])=>m)[0]}function I(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,l=>(l^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>l/4).toString(16))}function U(l){return typeof l=="string"&&/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(l)}const D=new RegExp("^([a-z]+://|//)","i");function R(l){return l?D.test(l):!1}const p=new RegExp("/sfsites/c/.+","i");function h(l){return l?p.test(l):!1}r.assert=e,r.getCookie=b,r.isAbsoluteURL=R,r.isObject=t,r.isSfdcCoreURL=h,r.uuidValidate=U,r.uuidv4=I,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/utils",["exports","webruntime/utils/v/1_66_657"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/logger/v/1_66_657",["exports"],function(r){"use strict";function e(...b){console.log(...b)}function t(...b){console.error(...b)}r.log=e,r.logError=t,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/logger",["exports","webruntime/logger/v/1_66_657"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/errors/v/1_66_657",["exports","webruntime/logger/v/1_66_657","@communities-webruntime/common/v/1_66_657","webruntime/transport/v/1"],function(r,e,t,b){"use strict";function I(R){b.sendBeacon({path:t.ERRORS_PATH_PREFIX,payload:JSON.stringify(R),contentType:"text/plain;charset=UTF-8"})}function U(R,p){document.dispatchEvent(new CustomEvent("client-error",{detail:{error:R,type:p}}))}function D({subject:R,error:p,wcstack:h,type:l=t.CLIENT_ERROR_TYPES.UNKNOWN_ERROR}){h=h||p.wcstack;const{message:m,stack:y}=p,{hostname:j,pathname:_}=globalThis.location||{},k={subject:R,message:m,stack:y,wcstack:h,location:{hostname:j,pathname:_}};e.logError(y||k),typeof document!="undefined"&&(U(k,l),I(k))}r.reportError=D,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/errors",["exports","webruntime/errors/v/1_66_657"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/innerApp/v/1_66_657",["exports","lwc/v/6_6_3","@communities-webruntime/common/v/1_66_657","webruntime/overrides/v/1","webruntime/errors/v/1_66_657","webruntime/utils/v/1_66_657","webruntime/views/v/1","webruntime/routingService/v/1","@app/viewToThemeLayoutMap/v/1","webruntime/designmodeInit/v/1_66_657","webruntime/defaultView/v/1_66_657"],function(r,e,t,b,I,U,D,R,p,h,l){"use strict";function m(N){return N&&typeof N=="object"&&"default"in N?N:{default:N}}var y=m(D),j=m(p),_=m(l),A=void 0;class k extends e.LightningElement{constructor(...M){super(...M);this.view=void 0,this.routerContainerView=void 0,this._routeParams=void 0,this.generatedTemplateHtml=void 0,this.attributes={},this.previousRouteId=null,this.route={}}get routeParams(){return this._routeParams||{}}set routeParams(M){this._routeParams=M}async connectedCallback(){const M=this.view||_.default;this.generatedTemplateHtml=M.html,this.attributes=M.attributes(this,this.routeParams)||{},await h.designmodeInit(),this.subscription=R.subscribe(this.loadThemeLayout.bind(this))}render(){return this.generatedTemplateHtml}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}updateTemplate(M){this.generatedTemplateHtml=M.html}updateRoute(M,B){R.handleExtraRouteParams(B);const{state:S,attributes:H}=B;this.previousRouteId=this.route?.id||null,this._routeParams={...S,...H},this.attributes=M.attributes(this,this.routeParams)||{},this.route=B}restoreDefaultTemplate(){this.generatedTemplateHtml=_.default.html}async loadThemeLayout(M){let B=!1;const S=M.routeDefinition.view,H=j.default[S];setTimeout(async()=>{!B&&this.themeLayout!==H&&this.restoreDefaultTemplate()},10);let q;try{q=await y.default(H)}catch(u){await this.handleFetchViewFailed(u,M.routeDefinition.metadata?.isPublic)}if(!!q)try{B=!0,window?.scrollTo(0,0),this.themeLayout!==H&&(this.themeLayout=H,this.updateTemplate(q.default)),this.updateRoute(q.default,M.route)}catch(u){I.reportError({subject:"InnerApp.loadThemeLayout error",type:t.CLIENT_ERROR_TYPES.FAILED_TO_LOAD_RESOURCE,error:u})}}async handleFetchViewFailed(M,B){await b.PageNavigationFailureOverrides.run({error:M,isPublic:B})&&I.reportError({subject:"InnerApp.loadThemeLayout#getViewModule error",type:t.CLIENT_ERROR_TYPES.FAILED_TO_LOAD_RESOURCE,error:M})}}k.renderMode="light",e.registerDecorators(k,{publicProps:{view:{config:0},routerContainerView:{config:0},routeParams:{config:3}},publicMethods:["updateTemplate","updateRoute","restoreDefaultTemplate"],fields:["_routeParams","generatedTemplateHtml","attributes","previousRouteId","route"]});var F=e.registerComponent(k,{tmpl:A,sel:"webruntime-inner-app",apiVersion:62});r.default=F,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/innerApp",["exports","webruntime/innerApp/v/1_66_657"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lightning/purifyLib/v/1_21_9-alpha",["exports","lwc/v/6_6_3"],function(r,e){"use strict";var t=void 0;function b(ae){if(Array.isArray(ae)){for(var se=0,d=Array(ae.length);se1?d-1:0),w=1;w/gm),ee=l(/^data-[\-\w.\u00B7-\uFFFF]/),Oe=l(/^aria-[\-\w]+$/),Ne=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xe=l(/^(?:\w+script|data):/i),Ge=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ae){return typeof ae}:function(ae){return ae&&typeof Symbol=="function"&&ae.constructor===Symbol&&ae!==Symbol.prototype?"symbol":typeof ae};function Me(ae){if(Array.isArray(ae)){for(var se=0,d=Array(ae.length);se0&&arguments[0]!==void 0?arguments[0]:it(),se=function(T){return Xe(T)};if(se.version="2.2.6",se.removed=[],!ae||!ae.document||ae.document.nodeType!==9)return se.isSupported=!1,se;var d=ae.document,C=ae.document,w=ae.DocumentFragment,x=ae.HTMLTemplateElement,Y=ae.Node,W=ae.Element,$=ae.NodeFilter,te=ae.NamedNodeMap,Z=te===void 0?ae.NamedNodeMap||ae.MozNamedAttrMap:te,K=ae.Text,ie=ae.Comment,he=ae.DOMParser,ye=ae.trustedTypes,we=W.prototype,Re=fe(we,"cloneNode"),Te=fe(we,"nextSibling"),Ie=fe(we,"childNodes"),v=fe(we,"parentNode");if(typeof x=="function"){var Q=C.createElement("template");Q.content&&Q.content.ownerDocument&&(C=Q.content.ownerDocument)}var ue=Je(ye,d),ce=ue&&Fe?ue.createHTML(""):"",De=C,Ye=De.implementation,at=De.createNodeIterator,ot=De.getElementsByTagName,tt=De.createDocumentFragment,st=d.importNode,ht={};try{ht=G(C).documentMode?C.documentMode:{}}catch(ve){}var qe={};se.isSupported=Ye&&typeof Ye.createHTMLDocument!="undefined"&&ht!==9;var Qe=oe,et=Ee,gt=ee,rt=Oe,nt=xe,me=Ge,n=Ne,i=null,a=O({},[].concat(Me(_e),Me(z),Me(X),Me(ge),Me(Se))),c=null,f=O({},[].concat(Me(Ue),Me($e),Me(Ve),Me(We))),P=null,J=null,be=!0,s=!0,E=!1,L=!1,V=!1,re=!1,de=!1,Ce=!1,je=!1,Be=!0,Fe=!1,pt=!0,yt=!0,lt=!1,ke={},Ft=O({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),It=null,Nt=O({},["audio","video","img","source","image","track"]),Rt=null,At=O({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),bt=null,Ht=C.createElement("form"),Ct=function(T){bt&&bt===T||((!T||(typeof T=="undefined"?"undefined":Le(T))!=="object")&&(T={}),T=G(T),i="ALLOWED_TAGS"in T?O({},T.ALLOWED_TAGS):a,c="ALLOWED_ATTR"in T?O({},T.ALLOWED_ATTR):f,Rt="ADD_URI_SAFE_ATTR"in T?O(G(At),T.ADD_URI_SAFE_ATTR):At,It="ADD_DATA_URI_TAGS"in T?O(G(Nt),T.ADD_DATA_URI_TAGS):Nt,P="FORBID_TAGS"in T?O({},T.FORBID_TAGS):{},J="FORBID_ATTR"in T?O({},T.FORBID_ATTR):{},ke="USE_PROFILES"in T?T.USE_PROFILES:!1,be=T.ALLOW_ARIA_ATTR!==!1,s=T.ALLOW_DATA_ATTR!==!1,E=T.ALLOW_UNKNOWN_PROTOCOLS||!1,L=T.SAFE_FOR_TEMPLATES||!1,V=T.WHOLE_DOCUMENT||!1,Ce=T.RETURN_DOM||!1,je=T.RETURN_DOM_FRAGMENT||!1,Be=T.RETURN_DOM_IMPORT!==!1,Fe=T.RETURN_TRUSTED_TYPE||!1,de=T.FORCE_BODY||!1,pt=T.SANITIZE_DOM!==!1,yt=T.KEEP_CONTENT!==!1,lt=T.IN_PLACE||!1,n=T.ALLOWED_URI_REGEXP||n,L&&(s=!1),je&&(Ce=!0),ke&&(i=O({},[].concat(Me(Se))),c=[],ke.html===!0&&(O(i,_e),O(c,Ue)),ke.svg===!0&&(O(i,z),O(c,$e),O(c,We)),ke.svgFilters===!0&&(O(i,X),O(c,$e),O(c,We)),ke.mathMl===!0&&(O(i,ge),O(c,Ve),O(c,We))),T.ADD_TAGS&&(i===a&&(i=G(i)),O(i,T.ADD_TAGS)),T.ADD_ATTR&&(c===f&&(c=G(c)),O(c,T.ADD_ATTR)),T.ADD_URI_SAFE_ATTR&&O(Rt,T.ADD_URI_SAFE_ATTR),yt&&(i["#text"]=!0),V&&O(i,["html","head","body"]),i.table&&(O(i,["tbody"]),delete P.tbody),h&&h(T),bt=T)},St=O({},["mi","mo","mn","ms","mtext"]),Lt=O({},["foreignobject","desc","title","annotation-xml"]),Pt=O({},z);O(Pt,X),O(Pt,le);var wt=O({},ge);O(wt,Pe);var Ot="http://www.w3.org/1998/Math/MathML",Tt="http://www.w3.org/2000/svg",Et="http://www.w3.org/1999/xhtml",Vt=function(T){var ne=v(T);(!ne||!ne.tagName)&&(ne={namespaceURI:Et,tagName:"template"});var pe=N(T.tagName),Ae=N(ne.tagName);if(T.namespaceURI===Tt)return ne.namespaceURI===Et?pe==="svg":ne.namespaceURI===Ot?pe==="svg"&&(Ae==="annotation-xml"||St[Ae]):Boolean(Pt[pe]);if(T.namespaceURI===Ot)return ne.namespaceURI===Et?pe==="math":ne.namespaceURI===Tt?pe==="math"&&Lt[Ae]:Boolean(wt[pe]);if(T.namespaceURI===Et){if(ne.namespaceURI===Tt&&!Lt[Ae]||ne.namespaceURI===Ot&&!St[Ae])return!1;var ze=O({},["title","style","font","a","script"]);return!wt[pe]&&(ze[pe]||!Pt[pe])}return!1},mt=function(T){F(se.removed,{element:T});try{T.parentNode.removeChild(T)}catch(ne){try{T.outerHTML=ce}catch(pe){T.remove()}}},Mt=function(T,ne){try{F(se.removed,{attribute:ne.getAttributeNode(T),from:ne})}catch(pe){F(se.removed,{attribute:null,from:ne})}ne.removeAttribute(T)},Dt=function(T){var ne=void 0,pe=void 0;if(de)T=""+T;else{var Ae=M(T,/^[\r\n\t ]+/);pe=Ae&&Ae[0]}var ze=ue?ue.createHTML(T):T;try{ne=new he().parseFromString(ze,"text/html")}catch(ut){}if(!ne||!ne.documentElement){ne=Ye.createHTMLDocument("");var Ke=ne,He=Ke.body;He.parentNode.removeChild(He.parentNode.firstElementChild),He.outerHTML=ze}return T&&pe&&ne.body.insertBefore(C.createTextNode(pe),ne.body.childNodes[0]||null),ot.call(ne,V?"html":"body")[0]},jt=function(T){return at.call(T.ownerDocument||T,T,$.SHOW_ELEMENT|$.SHOW_COMMENT|$.SHOW_TEXT,function(){return $.FILTER_ACCEPT},!1)},Gt=function(T){return T instanceof K||T instanceof ie?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||!(T.attributes instanceof Z)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"},vt=function(T){return(typeof Y=="undefined"?"undefined":Le(Y))==="object"?T instanceof Y:T&&(typeof T=="undefined"?"undefined":Le(T))==="object"&&typeof T.nodeType=="number"&&typeof T.nodeName=="string"},ft=function(T,ne,pe){!qe[T]||A(qe[T],function(Ae){Ae.call(se,ne,pe,bt)})},kt=function(T){var ne=void 0;if(ft("beforeSanitizeElements",T,null),Gt(T)||M(T.nodeName,/[\u0080-\uFFFF]/))return mt(T),!0;var pe=N(T.nodeName);if(ft("uponSanitizeElement",T,{tagName:pe,allowedTags:i}),!vt(T.firstElementChild)&&(!vt(T.content)||!vt(T.content.firstElementChild))&&q(/<[/\w]/g,T.innerHTML)&&q(/<[/\w]/g,T.textContent))return mt(T),!0;if(!i[pe]||P[pe]){if(yt&&!Ft[pe])for(var Ae=v(T),ze=Ie(T),Ke=ze.length,He=Ke-1;He>=0;--He)Ae.insertBefore(Re(ze[He],!0),Te(T));return mt(T),!0}return T instanceof W&&!Vt(T)||(pe==="noscript"||pe==="noembed")&&q(/<\/no(script|embed)/i,T.innerHTML)?(mt(T),!0):(L&&T.nodeType===3&&(ne=T.textContent,ne=B(ne,Qe," "),ne=B(ne,et," "),T.textContent!==ne&&(F(se.removed,{element:T.cloneNode()}),T.textContent=ne)),ft("afterSanitizeElements",T,null),!1)},Ut=function(T,ne,pe){if(pt&&(ne==="id"||ne==="name")&&(pe in C||pe in Ht))return!1;if(!(s&&q(gt,ne))){if(!(be&&q(rt,ne))){if(!c[ne]||J[ne])return!1;if(!Rt[ne]){if(!q(n,B(pe,me,""))){if(!((ne==="src"||ne==="xlink:href"||ne==="href")&&T!=="script"&&S(pe,"data:")===0&&It[T])){if(!(E&&!q(nt,B(pe,me,"")))){if(pe)return!1}}}}}}return!0},xt=function(T){var ne=void 0,pe=void 0,Ae=void 0,ze=void 0;ft("beforeSanitizeAttributes",T,null);var Ke=T.attributes;if(!!Ke){var He={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:c};for(ze=Ke.length;ze--;){ne=Ke[ze];var ut=ne,_t=ut.name,$t=ut.namespaceURI;if(pe=H(ne.value),Ae=N(_t),He.attrName=Ae,He.attrValue=pe,He.keepAttr=!0,He.forceKeepAttr=void 0,ft("uponSanitizeAttribute",T,He),pe=He.attrValue,!He.forceKeepAttr&&(Mt(_t,T),!!He.keepAttr)){if(q(/\/>/i,pe)){Mt(_t,T);continue}L&&(pe=B(pe,Qe," "),pe=B(pe,et," "));var Wt=T.nodeName.toLowerCase();if(!!Ut(Wt,Ae,pe))try{$t?T.setAttributeNS($t,_t,pe):T.setAttribute(_t,pe),k(se.removed)}catch(qt){}}}ft("afterSanitizeAttributes",T,null)}},Bt=function ve(T){var ne=void 0,pe=jt(T);for(ft("beforeSanitizeShadowDOM",T,null);ne=pe.nextNode();)ft("uponSanitizeShadowNode",ne,null),!kt(ne)&&(ne.content instanceof w&&ve(ne.content),xt(ne));ft("afterSanitizeShadowDOM",T,null)};return se.sanitize=function(ve,T){var ne=void 0,pe=void 0,Ae=void 0,ze=void 0,Ke=void 0;if(ve||(ve=""),typeof ve!="string"&&!vt(ve)){if(typeof ve.toString!="function")throw u("toString is not a function");if(ve=ve.toString(),typeof ve!="string")throw u("dirty is not a string, aborting")}if(!se.isSupported){if(Le(ae.toStaticHTML)==="object"||typeof ae.toStaticHTML=="function"){if(typeof ve=="string")return ae.toStaticHTML(ve);if(vt(ve))return ae.toStaticHTML(ve.outerHTML)}return ve}if(re||Ct(T),se.removed=[],typeof ve=="string"&&(lt=!1),!lt)if(ve instanceof Y)ne=Dt(""),pe=ne.ownerDocument.importNode(ve,!0),pe.nodeType===1&&pe.nodeName==="BODY"||pe.nodeName==="HTML"?ne=pe:ne.appendChild(pe);else{if(!Ce&&!L&&!V&&ve.indexOf("<")===-1)return ue&&Fe?ue.createHTML(ve):ve;if(ne=Dt(ve),!ne)return Ce?null:ce}ne&&de&&mt(ne.firstChild);for(var He=jt(lt?ve:ne);Ae=He.nextNode();)Ae.nodeType===3&&Ae===ze||kt(Ae)||(Ae.content instanceof w&&Bt(Ae.content),xt(Ae),ze=Ae);if(ze=null,lt)return ve;if(Ce){if(je)for(Ke=tt.call(ne.ownerDocument);ne.firstChild;)Ke.appendChild(ne.firstChild);else Ke=ne;return Be&&(Ke=st.call(d,Ke,!0)),Ke}var ut=V?ne.outerHTML:ne.innerHTML;return L&&(ut=B(ut,Qe," "),ut=B(ut,et," ")),ue&&Fe?ue.createHTML(ut):ut},se.setConfig=function(ve){Ct(ve),re=!0},se.clearConfig=function(){bt=null,re=!1},se.isValidAttribute=function(ve,T,ne){bt||Ct({});var pe=N(ve),Ae=N(T);return Ut(pe,Ae,ne)},se.addHook=function(ve,T){typeof T=="function"&&(qe[ve]=qe[ve]||[],F(qe[ve],T))},se.removeHook=function(ve){qe[ve]&&k(qe[ve])},se.removeHooks=function(ve){qe[ve]&&(qe[ve]=[])},se.removeAllHooks=function(){qe={}},se}var ct=Xe(),Ze=e.registerComponent(ct,{tmpl:t,sel:"lightning-purify-lib",apiVersion:62});function dt(ae,se){return Ze.sanitize(ae,se)}r.default=dt,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/purifyLib",["exports","lightning/purifyLib/v/1_21_9-alpha"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("experience/dataLayerObject/v/250_25_0",["exports","lwc/v/6_6_3","lightning/purifyLib/v/1_21_9-alpha"],function(r,e,t){"use strict";function b(A){return A&&typeof A=="object"&&"default"in A?A:{default:A}}var I=b(t);const U={hidden:""},D={lwc:{dom:"manual"}};function R(A,k,F,N){const{shc:M,h:B}=A;return[B("div",{attrs:U,props:{innerHTML:N._rawHtml$0!==(N._rawHtml$0=k.scriptElement)?N._sanitizedHtml$0=M(k.scriptElement):N._sanitizedHtml$0},context:D,key:0})]}var p=e.registerTemplate(R);R.stylesheets=[],R.renderMode="light",R.stylesheetToken="lwc-64pqse1e4gn",R.legacyStylesheetToken="experience-dataLayerObject_dataLayerObject",e.freezeTemplate(R);const m=Object.freeze({ALLOWED_TAGS:[],ALLOWED_ATTR:[]});function y(A){return typeof window=="undefined"?A:I.default(A,m)}class j extends e.LightningElement{constructor(...k){super(...k);this._scriptDataAttributes={},this._catalogObjectId=void 0,this._catalogObjectType=void 0,this._catalogObjectAttributes=void 0,this._relatedCatalogObjects=void 0,this._customObject=void 0}set scriptDataAttributes(k){this._scriptDataAttributes=k}get scriptDataAttributes(){return this._scriptDataAttributes}set catalogObjectId(k){this._catalogObjectId=k}get catalogObjectId(){return this._catalogObjectId}set catalogObjectType(k){this._catalogObjectType=k}get catalogObjectType(){return this._catalogObjectType}set catalogObjectAttributes(k){this._catalogObjectAttributes=k}get catalogObjectAttributes(){return this._catalogObjectAttributes}set relatedCatalogObjects(k){this._relatedCatalogObjects=k}get relatedCatalogObjects(){return this._relatedCatalogObjects}set customObject(k){this._customObject=k}get customObject(){return this._customObject}get scriptElement(){return this.scriptDataAttributes?.providerType&&(this.isCustomObject()||this.isCatalogObject())?``:""}scriptElementContent(){const k=this.isCustomObject()?this.customObject:this.buildCatalogObject();return JSON.stringify(k)}isCustomObject(){return!!this.customObject}isCatalogObject(){return!!(this.catalogObjectId&&this.catalogObjectType)}buildCatalogObject(){return{id:this.catalogObjectId,type:this.catalogObjectType,attributes:this.catalogObjectAttributes,relatedCatalogObjects:this.relatedCatalogObjects}}}j.renderMode="light",e.registerDecorators(j,{publicProps:{scriptDataAttributes:{config:3},catalogObjectId:{config:3},catalogObjectType:{config:3},catalogObjectAttributes:{config:3},relatedCatalogObjects:{config:3},customObject:{config:3},scriptElement:{config:1}},fields:["_scriptDataAttributes","_catalogObjectId","_catalogObjectType","_catalogObjectAttributes","_relatedCatalogObjects","_customObject"]});var _=e.registerComponent(j,{tmpl:p,sel:"experience-data-layer-object",apiVersion:62});r.default=_,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("experience/dataLayerObject",["exports","experience/dataLayerObject/v/250_25_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/app/v/1",["exports","lwc/v/6_6_3","experience/dataLayerObject/v/250_25_0","webruntime/innerApp/v/1_66_657","lwr/routerContainer/v/0_13_0-alpha_5","@salesforce/site/Id/v/1","webruntime/routingService/v/1","webruntime/errors/v/1_66_657","webruntime/analyticsEvents/v/1_66_657"],function(r,e,t,b,I,U,D,R,p){"use strict";function h(N){return N&&typeof N=="object"&&"default"in N?N:{default:N}}var l=h(t),m=h(b),y=h(I),j=h(U);function _(N,M,B,S){const{c:H,b:q}=N,{_m0:u}=S;return[H("lwr-router-container",y.default,{props:{router:M.router},key:0},[H("experience-data-layer-object",l.default,{props:{scriptDataAttributes:M.siteDataForDataLayer.scriptDataAttributes,customObject:M.siteDataForDataLayer.customObject},key:1}),H("experience-data-layer-object",l.default,{props:{scriptDataAttributes:M.pageDataForDataLayer.scriptDataAttributes,customObject:M.pageDataForDataLayer.customObject},key:2}),H("webruntime-inner-app",m.default,{props:{view:M.view,routerContainerView:M.routerContainerView,routeParams:M.routeParams},key:3,on:{viewchange:u||(S._m0=q(M.handleViewChanged))}})])]}var A=e.registerTemplate(_);_.stylesheets=[],_.renderMode="light",_.stylesheetToken="lwc-ag6063mqi2",_.legacyStylesheetToken="webruntime-app_app",e.freezeTemplate(_);class k extends e.LightningElement{constructor(M,B){super();this.routeParams=void 0,this.themeLayout=void 0,this.isInitialized=void 0,this.router=D.router,this.pageDataForDataLayer={scriptDataAttributes:{providerType:"page"}},this.scrollToBottomEvent=new p.ScrollToBottomEvent,this.view=M,this.routerContainerView=B,this.siteDataForDataLayer={scriptDataAttributes:{providerType:"site"},customObject:{siteId:j.default}}}renderedCallback(){if(this.pageDataForDataLayer?.customObject&&this.dispatchEvent(new CustomEvent("experience_interaction",{bubbles:!0,composed:!0,detail:{name:"page-view"}})),this.isInitialized)return;const M=this.querySelector("lwr-router-container");D.initializeRouterContainer(M),this.isInitialized=!0}errorCallback(M,B){if(R.reportError({subject:"app level error",error:M,wcstack:B}),process.env.SSR)throw M}disconnectedCallback(){this.scrollToBottomEvent.removeListener(),this.isInitialized=!1}render(){return A}handleViewChanged(M){const B=M.detail?.route?.attributes?.recordId,S=M.detail?.route?.attributes?.contentTypeName,H={type:M.detail?.route?.pageReference?.type,url:window.location.href,urlReferrer:this.pageDataForDataLayer?.customObject?.url||document.referrer,...B?{recordId:B}:{},...S?{contentTypeName:S}:{}};this.pageDataForDataLayer={...this.pageDataForDataLayer,customObject:H},this.scrollToBottomEvent.addListener()}}k.renderMode="light",e.registerDecorators(k,{publicProps:{routeParams:{config:0}},fields:["themeLayout","isInitialized","router","pageDataForDataLayer","scrollToBottomEvent"]});var F=e.registerComponent(k,{tmpl:A,sel:"webruntime-app",apiVersion:62});r.default=F,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/app",["exports","webruntime/app/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/assert/v/1_66_657",["exports","webruntime/utils/v/1_66_657"],function(r,e){"use strict";Object.defineProperty(r,"default",{enumerable:!0,get:function(){return e.assert}}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/assert",["exports","webruntime/assert/v/1_66_657"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("aura-instrumentation/v/1",["exports","webruntime/logger/v/1_66_657","@communities-webruntime/common/v/1_66_657","webruntime/assert/v/1_66_657"],function(r,e,t,b){"use strict";function I(z){return z&&typeof z=="object"&&"default"in z?z:{default:z}}var U=I(b);function D(z,X){return`${t.WEBRUNTIME_PREFIX}-${[z,X].filter(Boolean).join(":")}`}const{performance:R}=globalThis;function p(z){const X=JSON.stringify(z);return X&&JSON.parse(X)}function h(z,X,le){const ge=D(z,X);R.mark(ge,{detail:{ctx:p(le)}})}function l(z,X,le){h(z,X,le)}function m(z,X,le){h(z,X,le)}function y(z,X,le){const ge=D(z,X);try{R.measure(ge,{detail:{ctx:p(le)},start:ge})}catch(Pe){e.logError(`[instrumentation] no startMark named ${ge} found`,Pe.stack)}}function j(){return Date.now()}function _(z,X,le){}function A(z,X,le){}function k(z,X,le,ge,Pe){}function F(z){}function N(z,X){}function M(z){return{logHits(X){},logMisses(X){},unRegister(){}}}function B(z,X,le){}function S(z){}function H(z){}function q(z){}function u(z,X,le){}function o(z){return{increment(X){},decrement(X){},getValue(){return 0},reset(){}}}function g(z){return{setValue(X){},getValue(){return 0},reset(){}}}function O(z){return{update(X){},getValue(){return[]},reset(){}}}function G(z){return{addDuration(){},time(){},getValue(){return[]},reset(){},get(){}}}class fe{constructor(){this._registry={eptMarked:[],navToPage:[],navFromPage:[],windowUnload:[]}}get knownEvents(){return Object.keys(this._registry)}_checkEventName(X){if(!this._registry[X])throw new Error(`eventName ${X} isn't valid`)}register(X,le,ge){return U.default(X&&typeof X=="string","eventName must be a valid string"),this._checkEventName(X),U.default(le&&typeof le=="string","listenerName must be a valid string"),U.default(typeof ge=="function","callback must be provided"),this._registry[X].push({name:le,func:ge})}unregister(X,le){this._checkEventName(X);const ge=le-1;U.default(this._registry[X][ge],`No listener found for ${X} with registration ID ${le}`),delete this._registry[X][ge]}notify(X,le){this._checkEventName(X),this._registry[X].forEach(ge=>ge.func(le))}}const _e=new fe;r.counter=o,r.disablePlugin=q,r.enablePlugin=H,r.error=B,r.gauge=g,r.interaction=k,r.mark=l,r.markEnd=y,r.markStart=m,r.notifications=_e,r.percentileHistogram=O,r.perfEnd=A,r.perfStart=_,r.registerCacheStats=M,r.registerPeriodicLogger=N,r.registerPlugin=F,r.removePeriodicLogger=S,r.time=j,r.timer=G,r.trackScenario=u,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("aura-instrumentation",["exports","aura-instrumentation/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("aura-storage/v/1",["exports"],function(r){"use strict";var e={};r.default=e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("aura-storage",["exports","aura-storage/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/auraMethodToResourceReferenceMapping/v/1_66_657",["exports"],function(r){"use strict";const e="/services/data/v61.0",t={"CommerceCatalogController.getProductCategoryPath":{urlPath:e+"/commerce/webstores/${webstoreId}/product-category-path/product-categories/${productCategoryId}",urlPathParamNames:["productCategoryId","webstoreId"],method:"GET"},"CommerceCatalogController.getProducts":{urlPath:e+"/commerce/webstores/${webstoreId}/products",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceCatalogController.getProduct":{urlPath:e+"/commerce/webstores/${webstoreId}/products/${productId}",urlPathParamNames:["productId","webstoreId"],method:"GET"},"CommerceCatalogManagementController.compositeCommerceProductCreate":{urlPath:e+"/commerce/management/webstore/${webstoreId}/composite-products",urlPathParamNames:["webstoreId"],inputRepresentation:"compositeCommerceProductInputRepresentation",method:"POST"},"CommerceCatalogManagementController.compositeCommerceProductUpdate":{urlPath:e+"/commerce/management/webstore/${webstoreId}/composite-products/${productId}",urlPathParamNames:["productId","webstoreId"],inputRepresentation:"compositeCommerceProductInputRepresentation",method:"PUT"},"HSRCommerceCatalogController.getProductCategoryPathHSR":{urlPath:e+"/commerce/webstores/${webstoreId}/versions/${versionId}/product-categories/${productCategoryId}/product-category-path",urlPathParamNames:["productCategoryId","versionId","webstoreId"],method:"GET"},"HSRCommerceCatalogController.getProductHSR":{urlPath:e+"/commerce/webstores/${webstoreId}/versions/${versionId}/products/${productId}",urlPathParamNames:["productId","versionId","webstoreId"],method:"GET"},"CommerceStorePricingController.getProductPrices":{urlPath:e+"/commerce/webstores/${webstoreId}/pricing/products",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceStorePricingController.getProductPrice":{urlPath:e+"/commerce/webstores/${webstoreId}/pricing/products/${productId}",urlPathParamNames:["productId","webstoreId"],method:"GET"},"CommunitiesController.getPagePreviewUrl":{urlPath:e+"/connect/communities/${communityId}/preview-url/pages/${pageApiName}",urlPathParamNames:["communityId","pageApiName"],method:"GET"},"CommunitiesController.getCommunity":{urlPath:e+"/connect/communities/${communityId}",urlPathParamNames:["communityId"],method:"GET"},"CommunitiesController.ingestRecord":{urlPath:e+"/connect/communities/${communityId}/microbatching",urlPathParamNames:["communityId"],inputRepresentation:"requestIngestionInput",method:"POST"},"MissionsController.purgeUserMissionsActivities":{urlPath:e+"/connect/communities/${communityId}/missions/activities/purge-job",urlPathParamNames:["communityId"],method:"POST"},"CommerceCartController.upsertInventoryReservation":{urlPath:e+"/commerce/webstores/${webstoreId}/carts/${activeCartOrId}/inventory-reservations",urlPathParamNames:["activeCartOrId","webstoreId"],inputRepresentation:"cartInventoryReservationInput",method:"PUT"},"CommerceSearchController.searchProducts":{urlPath:e+"/commerce/webstores/${webstoreId}/search/product-search",urlPathParamNames:["webstoreId"],inputRepresentation:"productSearchInput",method:"POST"},"CommerceShippingController.getShippingProfilesForWebStore":{urlPath:e+"/commerce/webstores/${webstoreId}/shippingProfiles",urlPathParamNames:["webstoreId"],method:"GET"},"NavigationMenuController.getCommunityNavigationMenu":{urlPath:e+"/connect/communities/${communityId}/navigation-menu/navigation-menu-items",urlPathParamNames:["communityId"],method:"GET"},"MarketingIntegrationController.getForm":{urlPath:e+"/sites/${siteId}/marketing-integration/forms/${formId}",urlPathParamNames:["formId","siteId"],method:"GET"},"MarketingIntegrationController.saveForm":{urlPath:e+"/sites/${siteId}/marketing-integration/forms",urlPathParamNames:["siteId"],inputRepresentation:"formInput",method:"POST"},"MarketingIntegrationController.submitForm":{urlPath:e+"/sites/${siteId}/marketing-integration/forms/${formId}/data",urlPathParamNames:["formId","siteId"],inputRepresentation:"formSubmissionInput",method:"POST"},"SeoPropertiesController.getRecordSeoProperties":{urlPath:e+"/connect/communities/${communityId}/seo/properties/${recordId}",urlPathParamNames:["communityId","recordId"],method:"GET"},"FlowBuilderController.getRules":{urlPath:e+"/connect/interaction/builder/rules",urlPathParamNames:[],method:"GET"},"OrchestrationController.getOrchestrationInstanceCollection":{urlPath:e+"/connect/interaction/orchestration/instances",urlPathParamNames:[],method:"GET"},"FlowRuntimeConnectController.navigateFlow":{urlPath:e+"/connect/interaction/runtime/navigateFlow",urlPathParamNames:[],inputRepresentation:"request",method:"POST"},"FlowRuntimeConnectController.resumeFlow":{urlPath:e+"/connect/interaction/runtime/resumeFlow",urlPathParamNames:[],method:"POST"},"FlowRuntimeConnectController.startFlow":{urlPath:e+"/connect/interaction/runtime/startFlow",urlPathParamNames:[],method:"POST"},"DataCategoryController.getCategoryGroups":{urlPath:e+"/connect/data-category/category-group",urlPathParamNames:[],method:"GET"},"KnowledgeController.updateViewStat":{urlPath:e+"/connect/knowledge/article/view-stat",urlPathParamNames:[],method:"PATCH"},"NetworkDataCategoryController.getChildCategories":{urlPath:e+"/connect/communities/${communityId}/network-data-category/${networkDataCategoryId}/child-category",urlPathParamNames:["communityId","networkDataCategoryId"],method:"GET"},"NetworkDataCategoryController.getArticlesForCategory":{urlPath:e+"/connect/communities/${communityId}/network-data-category/${networkDataCategoryId}/knowledge-article",urlPathParamNames:["communityId","networkDataCategoryId"],method:"GET"},"NetworkDataCategoryController.updateNetworkDataCategory":{urlPath:e+"/connect/communities/${communityId}/network-data-category/${networkDataCategoryId}",urlPathParamNames:["communityId","networkDataCategoryId"],method:"PATCH"},"NetworkDataCategoryController.getNetworkDataCategories":{urlPath:e+"/connect/communities/${communityId}/data-category/network-data-category",urlPathParamNames:["communityId"],method:"GET"},"NetworkDataCategoryController.updateNetworkDataCategories":{urlPath:e+"/connect/communities/${communityId}/data-category/network-data-category",urlPathParamNames:["communityId"],inputRepresentation:"networkDataCategoryTree",method:"PUT"},"NetworkDataCategoryController.getParentNetworkDataCategoryPath":{urlPath:e+"/connect/communities/${communityId}/network-data-category/${networkDataCategoryId}/parent-path",urlPathParamNames:["communityId","networkDataCategoryId"],method:"GET"},"NetworkDataCategoryController.getServiceCatalogItems":{urlPath:e+"/connect/network-data-category/${networkDataCategoryId}/catalog-item",urlPathParamNames:["networkDataCategoryId"],method:"GET"},"NetworkDataCategoryController.getServiceCatalogItemsForCommunity":{urlPath:e+"/connect/communities/${communityId}/network-data-category/${networkDataCategoryId}/catalog-item",urlPathParamNames:["communityId","networkDataCategoryId"],method:"GET"},"ExperienceModelTypeSystemController.getBlockTypes":{urlPath:e+"/connect/experience-model/block-types",urlPathParamNames:[],method:"GET"},"ExperienceModelTypeSystemController.getBlockType":{urlPath:e+"/connect/experience-model/block-types/${fullyQualifiedName}",urlPathParamNames:["fullyQualifiedName"],method:"GET"},"ExperienceModelTypeSystemController.getContentTypes":{urlPath:e+"/connect/experience-model/content-types",urlPathParamNames:[],method:"GET"},"ExperienceModelTypeSystemController.getContentTypesByContextRecordId":{urlPath:e+"/connect/experience-model/content-types",urlPathParamNames:[],method:"GET"},"ExperienceModelTypeSystemController.getContentType":{urlPath:e+"/connect/experience-model/content-types/${fullyQualifiedName}",urlPathParamNames:["fullyQualifiedName"],method:"GET"},"ExperienceModelTypeSystemController.getPropertyTypes":{urlPath:e+"/connect/experience-model/property-types",urlPathParamNames:[],method:"GET"},"ExperienceModelTypeSystemController.getPropertyType":{urlPath:e+"/connect/experience-model/property-types/${fullyQualifiedName}",urlPathParamNames:["fullyQualifiedName"],method:"GET"},"ManagedContentController.getMCSFolderShares":{urlPath:e+"/connect/cms/folders/${folderId}/shares",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.patchMCSFolderShares":{urlPath:e+"/connect/cms/folders/${folderId}/shares",urlPathParamNames:["folderId"],inputRepresentation:"mCSFolderShareCollectionUpdateInput",method:"PATCH"},"ManagedContentController.getMCSFolderShareTargets":{urlPath:e+"/connect/cms/folders/${folderId}/share-targets",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.cancelOrchestrationInstance":{urlPath:e+"/connect/cms/contents/orchestration-instances/${mContentOrchInstanceId}",urlPathParamNames:["mContentOrchInstanceId"],method:"DELETE"},"ManagedContentController.getAllManagedContentChannels":{urlPath:e+"/connect/cms/management/channels",urlPathParamNames:[],method:"GET"},"ManagedContentController.postManagedContentChannel":{urlPath:e+"/connect/cms/management/channels",urlPathParamNames:[],inputRepresentation:"ManagedContentChannelInput",method:"POST"},"ManagedContentController.getManagedContentChannelRecordByChannelId":{urlPath:e+"/connect/cms/management/channels/${channelId}",urlPathParamNames:["channelId"],method:"GET"},"ManagedContentController.patchManagedContentChannelRecord":{urlPath:e+"/connect/cms/management/channels/${channelId}",urlPathParamNames:["channelId"],inputRepresentation:"ManagedContentChannelInput",method:"PATCH"},"ManagedContentController.cloneManagedContents":{urlPath:e+"/connect/cms/contents/clone",urlPathParamNames:[],inputRepresentation:"ManagedContentCloneInputParam",method:"POST"},"ManagedContentController.getCollectionItems":{urlPath:e+"/connect/cms/collections/${collectionKeyOrId}",urlPathParamNames:["collectionKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentByTopicsAndContentKeys":{urlPath:e+"/connect/communities/${communityId}/managed-content/delivery",urlPathParamNames:["communityId"],method:"GET"},"ManagedContentController.getPublishedManagedContentListByContentKey":{urlPath:e+"/connect/communities/${communityId}/managed-content/delivery/contents",urlPathParamNames:["communityId"],method:"GET"},"ManagedContentController.getDeployments":{urlPath:e+"/cms/deployments",urlPathParamNames:[],method:"GET"},"ManagedContentController.createDeployment":{urlPath:e+"/cms/deployments",urlPathParamNames:[],inputRepresentation:"DeploymentInput",method:"POST"},"ManagedContentController.createManagedContent":{urlPath:e+"/connect/cms/contents",urlPathParamNames:[],inputRepresentation:"ManagedContentInputParam",method:"POST"},"ManagedContentController.createManagedContentWithMedia":{urlPath:e+"/connect/cms/contents",urlPathParamNames:[],inputRepresentation:"ManagedContentInputParam",method:"POST"},"ManagedContentController.getManagedContent":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentForSite":{urlPath:e+"/connect/sites/${siteId}/cms/contents/${contentKeyOrId}",urlPathParamNames:["contentKeyOrId","siteId"],method:"GET"},"ManagedContentController.createManagedContentExportV2Job":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/contents/export",urlPathParamNames:["contentSpaceId"],inputRepresentation:"managedContentV2JobRequest",method:"POST"},"ManagedContentController.getManagedContentFileUploadConfig":{urlPath:e+"/connect/cms/contents/file/upload",urlPathParamNames:[],method:"GET"},"ManagedContentController.createManagedContentImportV2Job":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/contents/import",urlPathParamNames:["contentSpaceId"],inputRepresentation:"managedContentV2JobRequest",method:"POST"},"ManagedContentController.getCMSJobForSpace":{urlPath:e+"/cms/spaces/${contentSpaceId}/jobs/${jobId}",urlPathParamNames:["contentSpaceId","jobId"],method:"GET"},"ManagedContentController.getAllCMSJobsForSpace":{urlPath:e+"/cms/spaces/${contentSpaceId}/jobs",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.getManagedContentOrchestrationDefinitions":{urlPath:e+"/connect/cms/contents/orchestration-definitions",urlPathParamNames:[],method:"GET"},"ManagedContentController.getManagedContentOrchestrationInstances":{urlPath:e+"/connect/cms/contents/orchestration-instances",urlPathParamNames:[],method:"GET"},"ManagedContentController.createManagedContentOrchestrationInstance":{urlPath:e+"/connect/cms/contents/orchestration-instances",urlPathParamNames:[],inputRepresentation:"mContentOrchInstanceInput",method:"POST"},"ManagedContentController.getManagedContentPreviews":{urlPath:e+"/cms/spaces/${contentSpaceId}/preview-endpoints",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.publishDiagnostic":{urlPath:e+"/connect/cms/contents/publish/diagnostic",urlPathParamNames:[],inputRepresentation:"publishDiagnosticInput",method:"POST"},"ManagedContentController.publish":{urlPath:e+"/connect/cms/contents/publish",urlPathParamNames:[],inputRepresentation:"publishInput",method:"POST"},"ManagedContentController.getManagedContentReferencedBy":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/referenced-by",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentVariantRendition":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/renditions/${renditionType}",urlPathParamNames:["contentKeyOrId","renditionType"],method:"GET"},"ManagedContentController.getManagedContentRunningOrchestrationHistoryEvents":{urlPath:e+"/connect/cms/contents/orchestration-history-events",urlPathParamNames:[],method:"GET"},"ManagedContentController.updateDeployment":{urlPath:e+"/connect/cms/schedules/${deploymentId}",urlPathParamNames:["deploymentId"],method:"PATCH"},"ManagedContentController.createSchedule":{urlPath:e+"/connect/cms/schedules",urlPathParamNames:[],inputRepresentation:"ScheduleInput",method:"POST"},"ManagedContentController.searchManagedContentForItems":{urlPath:e+"/connect/cms/items/search",urlPathParamNames:[],method:"GET"},"ManagedContentController.getManagedContentSpaces":{urlPath:e+"/connect/cms/spaces",urlPathParamNames:[],method:"GET"},"ManagedContentController.postManagedContentSpaceFolder":{urlPath:e+"/connect/cms/folders",urlPathParamNames:[],inputRepresentation:"managedContentSpaceFolderInput",method:"POST"},"ManagedContentController.getManagedContentSpaceFolderItems":{urlPath:e+"/connect/cms/folders/${folderId}/items",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.getManagedContentSpaceFolderItemsV1":{urlPath:e+"/cms/folders/${folderId}/items",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.getManagedContentSpaceFolder":{urlPath:e+"/connect/cms/folders/${folderId}",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.getManagedContentSpaceOrchestratorConfig":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/orchestrator-config",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.putManagedContentSpaceOrchestratorConfig":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/orchestrator-config",urlPathParamNames:["contentSpaceId"],inputRepresentation:"mContentOrchConfigInput",method:"PUT"},"ManagedContentController.deleteManagedContentSpace":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}",urlPathParamNames:["contentSpaceId"],method:"DELETE"},"ManagedContentController.getManagedContentSpace":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.patchManagedContentSpace":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}",urlPathParamNames:["contentSpaceId"],inputRepresentation:"ManagedContentSpaceInput",method:"PATCH"},"ManagedContentController.getTaxonomyTerms":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/taxonomy-terms",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.updateTaxonomyTerms":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/taxonomy-terms",urlPathParamNames:["contentKeyOrId"],inputRepresentation:"taxonomyTerms",method:"PATCH"},"ManagedContentController.createTranslationJob":{urlPath:e+"/connect/managed-content/translation",urlPathParamNames:[],inputRepresentation:"translationRequest",method:"POST"},"ManagedContentController.createTranslationV2Job":{urlPath:e+"/connect/cms/content/spaces/${contentSpaceId}/translation",urlPathParamNames:["contentSpaceId"],inputRepresentation:"translationV2Request",method:"POST"},"ManagedContentController.getManagedContentTypesForMixin":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/content-types",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.unpublish":{urlPath:e+"/connect/cms/contents/unpublish",urlPathParamNames:[],inputRepresentation:"unpublishInput",method:"POST"},"ManagedContentController.createManagedContentVariant":{urlPath:e+"/connect/cms/contents/variants",urlPathParamNames:[],inputRepresentation:"ManagedContentVariantInputParam",method:"POST"},"ManagedContentController.getVariantReferences":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/variants/references",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.deleteManagedContentVariant":{urlPath:e+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],method:"DELETE"},"ManagedContentController.getManagedContentVariant":{urlPath:e+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],method:"GET"},"ManagedContentController.replaceManagedContentVariant":{urlPath:e+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],inputRepresentation:"ManagedContentVariantInputParam",method:"PUT"},"ManagedContentController.replaceManagedContentVariantWithMedia":{urlPath:e+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],inputRepresentation:"ManagedContentVariantInputParam",method:"PUT"},"ManagedContentController.getManagedContentVariantVersions":{urlPath:e+"/connect/cms/contents/variants/${variantId}/versions",urlPathParamNames:["variantId"],method:"GET"},"ManagedContentController.getWebUrls":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/web-urls",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.updateManagedContentWebUrl":{urlPath:e+"/connect/cms/contents/web-urls/${managedContentWebUrlId}",urlPathParamNames:["managedContentWebUrlId"],inputRepresentation:"managedContentWebUrlInput",method:"PATCH"},"ManagedContentDeliveryController.getCollectionItemsForChannel":{urlPath:e+"/connect/cms/delivery/channels/${channelId}/collections/${collectionKeyOrId}",urlPathParamNames:["channelId","collectionKeyOrId"],method:"GET"},"ManagedContentDeliveryController.getCollectionItemsForSite":{urlPath:e+"/connect/sites/${siteId}/cms/delivery/collections/${collectionKeyOrId}",urlPathParamNames:["collectionKeyOrId","siteId"],method:"GET"},"ManagedContentDeliveryController.getCollectionMetadata":{urlPath:e+"/connect/cms/collections/${collectionKeyOrId}/metadata",urlPathParamNames:["collectionKeyOrId"],method:"GET"},"ManagedContentDeliveryController.getCollectionMetadataForChannel":{urlPath:e+"/connect/cms/delivery/channels/${channelId}/collections/${collectionKeyOrId}/metadata",urlPathParamNames:["channelId","collectionKeyOrId"],method:"GET"},"ManagedContentDeliveryController.getCollectionMetadataForSite":{urlPath:e+"/connect/sites/${siteId}/cms/delivery/collections/${collectionKeyOrId}/metadata",urlPathParamNames:["collectionKeyOrId","siteId"],method:"GET"},"ManagedContentTypeController.getContentTypeSchema":{urlPath:e+"/connect/cms/content-types/${contentTypeFQN}",urlPathParamNames:["contentTypeFQN"],method:"GET"},"SitesController.searchSite":{urlPath:e+"/connect/sites/${siteId}/search",urlPathParamNames:["siteId"],method:"GET"},"ActionsController.getFlexipageFormulaOverrides":{urlPath:e+"/ui-api/actions/formula-activation/${actionFeature}",urlPathParamNames:["actionFeature"],method:"GET"},"ActionsController.getGlobalActions":{urlPath:e+"/ui-api/actions/global",urlPathParamNames:[],method:"GET"},"ActionsController.getActionLayout":{urlPath:e+"/ui-api/actions/layout/${actionApiName}",urlPathParamNames:["actionApiName"],method:"GET"},"ActionsController.getListViewActions":{urlPath:e+"/ui-api/actions/list-view/${listViewIds}",urlPathParamNames:["listViewIds"],method:"GET"},"ActionsController.getLookupActions":{urlPath:e+"/ui-api/actions/lookup/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"ActionsController.getMRUListActions":{urlPath:e+"/ui-api/actions/mru-list/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"ActionsController.getObjectCreateActions":{urlPath:e+"/ui-api/actions/object/${objectApiName}/record-create",urlPathParamNames:["objectApiName"],method:"GET"},"ActionsController.getActionOverrides":{urlPath:e+"/ui-api/actions/overrides/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ActionsController.performUpdateRecordQuickAction":{urlPath:e+"/ui-api/actions/perform-quick-action/${actionApiName}",urlPathParamNames:["actionApiName"],inputRepresentation:"performQuickActionInput",method:"PATCH"},"ActionsController.performQuickAction":{urlPath:e+"/ui-api/actions/perform-quick-action/${actionApiName}",urlPathParamNames:["actionApiName"],inputRepresentation:"performQuickActionInput",method:"POST"},"ActionsController.getQuickActionDefaults":{urlPath:e+"/ui-api/actions/record-defaults/${actionApiName}",urlPathParamNames:["actionApiName"],method:"GET"},"ActionsController.getRecordEditActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/record-edit",urlPathParamNames:["recordIds"],method:"GET"},"ActionsController.getRecordActions":{urlPath:e+"/ui-api/actions/record/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"ActionsController.getRelatedListsActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/related-list/batch/${relatedListIds}",urlPathParamNames:["recordIds","relatedListIds"],method:"GET"},"ActionsController.postRelatedListsActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/related-list/batch",urlPathParamNames:["recordIds"],inputRepresentation:"listRecordActionsQuery",method:"POST"},"ActionsController.getRelatedListRecordActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/related-list-record/${relatedListRecordIds}",urlPathParamNames:["recordIds","relatedListRecordIds"],method:"GET"},"ActionsController.getRelatedListActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/related-list/${relatedListId}",urlPathParamNames:["recordIds","relatedListId"],method:"GET"},"ActionsController.postRelatedListActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/related-list/${relatedListId}",urlPathParamNames:["recordIds","relatedListId"],inputRepresentation:"listRecordActionsQuery",method:"POST"},"AppsController.getAppByID":{urlPath:e+"/ui-api/apps/${appId}",urlPathParamNames:["appId"],method:"GET"},"AppsController.getAccessibleApps":{urlPath:e+"/ui-api/apps",urlPathParamNames:[],method:"GET"},"AppsController.getNavItems":{urlPath:e+"/ui-api/nav-items",urlPathParamNames:[],method:"GET"},"ListUiController.getListsByObjectName":{urlPath:e+"/ui-api/list-ui/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ListUiController.getListInfosById":{urlPath:e+"/ui-api/list-info/batch",urlPathParamNames:[],method:"GET"},"ListUiController.getListInfosByName":{urlPath:e+"/ui-api/list-info/batch",urlPathParamNames:[],method:"GET"},"ListUiController.getListInfosByObjectName":{urlPath:e+"/ui-api/list-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ListUiController.createListInfo":{urlPath:e+"/ui-api/list-info/${objectApiName}",urlPathParamNames:["objectApiName"],inputRepresentation:"listInfoInput",method:"POST"},"ListUiController.deleteListInfo":{urlPath:e+"/ui-api/list-info/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"DELETE"},"ListUiController.getListInfoById":{urlPath:e+"/ui-api/list-info/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListInfoByName":{urlPath:e+"/ui-api/list-info/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.updateListInfoByApiName":{urlPath:e+"/ui-api/list-info/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],inputRepresentation:"listInfoInput",method:"PATCH"},"ListUiController.getListObjectInfo":{urlPath:e+"/ui-api/list-object-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ListUiController.getListPreferences":{urlPath:e+"/ui-api/list-preferences/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.updateListPreferences":{urlPath:e+"/ui-api/list-preferences/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],inputRepresentation:"listPreferencesInput",method:"PATCH"},"ListUiController.getListRecordsById":{urlPath:e+"/ui-api/list-records/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListRecordsByName":{urlPath:e+"/ui-api/list-records/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.postListRecordsByName":{urlPath:e+"/ui-api/list-records/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],inputRepresentation:"listRecordsQuery",method:"POST"},"ListUiController.getListUiById":{urlPath:e+"/ui-api/list-ui/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListUiByName":{urlPath:e+"/ui-api/list-ui/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"MruListUiController.getMruListInfo":{urlPath:e+"/ui-api/mru-list-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"MruListUiController.getMruListRecords":{urlPath:e+"/ui-api/mru-list-records/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"MruListUiController.getMruListUi":{urlPath:e+"/ui-api/mru-list-ui/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getAggregateUi":{urlPath:e+"/ui-api/aggregate-ui",urlPathParamNames:[],method:"GET"},"RecordUiController.executeAggregateUi":{urlPath:e+"/ui-api/aggregate-ui",urlPathParamNames:[],inputRepresentation:"input",method:"POST"},"RecordUiController.getRecordsWithFields":{urlPath:e+"/ui-api/records/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getRecordsWithLayouts":{urlPath:e+"/ui-api/records/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.executeBatchRecordOperations":{urlPath:e+"/ui-api/records/batch",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.getDedupeConfig":{urlPath:e+"/ui-api/duplicates/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getDuplicateConfig":{urlPath:e+"/ui-api/duplicates/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getFormByName":{urlPath:e+"/ui-api/forms/${apiName}",urlPathParamNames:["apiName"],method:"GET"},"RecordUiController.executeBatchGraphQL":{urlPath:e+"/graphql/batch",urlPathParamNames:[],inputRepresentation:"batchQueryInput",method:"POST"},"RecordUiController.executeGraphQL":{urlPath:e+"/graphql",urlPathParamNames:[],inputRepresentation:"queryInput",method:"POST"},"RecordUiController.getLayout":{urlPath:e+"/ui-api/layout/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getLayoutUserState":{urlPath:e+"/ui-api/layout/${objectApiName}/user-state",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.updateLayoutUserState":{urlPath:e+"/ui-api/layout/${objectApiName}/user-state",urlPathParamNames:["objectApiName"],inputRepresentation:"userState",method:"PATCH"},"RecordUiController.getObjectInfos":{urlPath:e+"/ui-api/object-info/batch/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"RecordUiController.getObjectInfo":{urlPath:e+"/ui-api/object-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getPathLayout":{urlPath:e+"/ui-api/path/layout/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getPicklistValuesByRecordType":{urlPath:e+"/ui-api/object-info/${objectApiName}/picklist-values/${recordTypeId}",urlPathParamNames:["objectApiName","recordTypeId"],method:"GET"},"RecordUiController.getPicklistValues":{urlPath:e+"/ui-api/object-info/${objectApiName}/picklist-values/${recordTypeId}/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName","recordTypeId"],method:"GET"},"RecordUiController.findDuplicates":{urlPath:e+"/ui-api/predupe",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.postRecordAvatarAssociation":{urlPath:e+"/ui-api/record-avatars/${recordId}/association",urlPathParamNames:["recordId"],inputRepresentation:"input",method:"POST"},"RecordUiController.getRecordAvatars":{urlPath:e+"/ui-api/record-avatars/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getRecordCloneDefaults":{urlPath:e+"/ui-api/record-defaults/clone/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordCreateDefaults":{urlPath:e+"/ui-api/record-defaults/create/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.createRecord":{urlPath:e+"/ui-api/records",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.deleteRecord":{urlPath:e+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"DELETE"},"RecordUiController.getRecordWithFields":{urlPath:e+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordWithLayouts":{urlPath:e+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.updateRecord":{urlPath:e+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],inputRepresentation:"recordInput",method:"PATCH"},"RecordUiController.getRecordDefaultsTemplateClone":{urlPath:e+"/ui-api/record-defaults/template/clone/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordDefaultsTemplateForCreate":{urlPath:e+"/ui-api/record-defaults/template/create/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getRecordUis":{urlPath:e+"/ui-api/record-ui/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getValidationRulesInfo":{urlPath:e+"/ui-api/object-info/${objectApiName}/validation-rules-info",urlPathParamNames:["objectApiName"],method:"GET"},"RelatedListUiController.getRelatedListInfoBatch":{urlPath:e+"/ui-api/related-list-info/batch/${parentObjectApiName}/${relatedListNames}",urlPathParamNames:["parentObjectApiName","relatedListNames"],method:"GET"},"RelatedListUiController.getRelatedListInfoCollection":{urlPath:e+"/ui-api/related-list-info/${parentObjectApiName}",urlPathParamNames:["parentObjectApiName"],method:"GET"},"RelatedListUiController.getRelatedListInfo":{urlPath:e+"/ui-api/related-list-info/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.getRelatedListInfoByApiName":{urlPath:e+"/ui-api/related-list-info/${parentObjectApiName}/${relatedListId}",urlPathParamNames:["parentObjectApiName","relatedListId"],method:"GET"},"RelatedListUiController.updateRelatedListInfoByApiName":{urlPath:e+"/ui-api/related-list-info/${parentObjectApiName}/${relatedListId}",urlPathParamNames:["parentObjectApiName","relatedListId"],inputRepresentation:"relatedListInfoInput",method:"PATCH"},"RelatedListUiController.getRelatedListPreferencesBatch":{urlPath:e+"/ui-api/related-list-preferences/batch/${preferencesIds}",urlPathParamNames:["preferencesIds"],method:"GET"},"RelatedListUiController.getRelatedListPreferences":{urlPath:e+"/ui-api/related-list-preferences/${preferencesId}",urlPathParamNames:["preferencesId"],method:"GET"},"RelatedListUiController.updateRelatedListPreferences":{urlPath:e+"/ui-api/related-list-preferences/${preferencesId}",urlPathParamNames:["preferencesId"],inputRepresentation:"relatedListUserPreferencesInput",method:"PATCH"},"RelatedListUiController.getRelatedListsRecordCount":{urlPath:e+"/ui-api/related-list-count/batch/${parentRecordId}/${relatedListNames}",urlPathParamNames:["parentRecordId","relatedListNames"],method:"GET"},"RelatedListUiController.getRelatedListRecordCount":{urlPath:e+"/ui-api/related-list-count/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.getRelatedListRecordsBatch":{urlPath:e+"/ui-api/related-list-records/batch/${parentRecordId}/${relatedListIds}",urlPathParamNames:["parentRecordId","relatedListIds"],method:"GET"},"RelatedListUiController.postRelatedListRecordsBatch":{urlPath:e+"/ui-api/related-list-records/batch/${parentRecordId}",urlPathParamNames:["parentRecordId"],inputRepresentation:"listRecordsQuery",method:"POST"},"RelatedListUiController.getRelatedListRecords":{urlPath:e+"/ui-api/related-list-records/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.postRelatedListRecords":{urlPath:e+"/ui-api/related-list-records/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],inputRepresentation:"listRecordsQuery",method:"POST"},"SearchUiController.searchResultsKeyword":{urlPath:e+"/ui-api/search/results/keyword",urlPathParamNames:[],inputRepresentation:"options",method:"POST"},"SearchUiController.getSearchFilterMetadata":{urlPath:e+"/ui-api/search-info/${objectApiName}/filters",urlPathParamNames:["objectApiName"],method:"GET"},"SearchUiController.getFilterOptions":{urlPath:e+"/ui-api/search-info/${objectApiName}/filters/${filterApiName}/options",urlPathParamNames:["filterApiName","objectApiName"],method:"GET"},"SearchUiController.searchResults":{urlPath:e+"/ui-api/search/results",urlPathParamNames:[],inputRepresentation:"options",method:"POST"},"LookupController.getLookupMetadata":{urlPath:e+"/ui-api/search-info/${objectApiName}/lookup/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName"],method:"GET"},"LookupController.getLookupRecords":{urlPath:e+"/ui-api/lookups/${objectApiName}/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName"],method:"GET"},"LookupController.lookup":{urlPath:e+"/ui-api/lookups/${objectApiName}/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName"],inputRepresentation:"body",method:"POST"}};function b(I){return t[I]}r.getResourceReferenceFromAuraMethod=b,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/auraMethodToResourceReferenceMapping",["exports","webruntime/auraMethodToResourceReferenceMapping/v/1_66_657"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/apiCall/v/1_66_657",["exports","webruntime/auraMethodToResourceReferenceMapping/v/1_66_657","webruntime/transport/v/1","webruntime/errors/v/1_66_657","@app/apexApiBasePath/v/1","webruntime/overrides/v/1","@communities-webruntime/common/v/1_66_657"],function(r,e,t,b,I,U,D){"use strict";function R(F){return F&&typeof F=="object"&&"default"in F?F:{default:F}}var p=R(I);async function h(F,N){const[M,B]=F.split(".");if(M==="ApexActionController")return m(B,N);const S=e.getResourceReferenceFromAuraMethod(F);if(S)return l(S,N);throw new Error(`Unsupported controller action: ${M}.${B}`)}async function l({urlPath:F,urlPathParamNames:N,method:M,inputRepresentation:B},S){const H=S&&{...S}||{};let q=N.reduce((O,G)=>{const fe=H[G];return delete H[G],O.replace(`\${${G}}`,encodeURIComponent(fe))},F),u;(M==="POST"||M==="PATCH"||M==="PUT")&&H[B]&&(u=JSON.stringify(H[B]),delete H[B]),Object.keys(H).length&&(q+=`?${Object.entries(H).filter(([,O])=>O!=null&&(!Array.isArray(O)||O.length)).map(([O,G])=>`${encodeURIComponent(O)}=${encodeURIComponent(G)}`).join("&")}`);const o=await t.fetch(q,{method:M,body:u});let g;if(o.status===401&&_(),o.status!==204&&(g=await o.json()),g instanceof Array&&(g=g[0]),!o.ok){const O={status:o.status,data:{...g,statusCode:o.status}};throw k([O])}return A(g)}async function m(F,N){if(F==="execute"){const{url:M,httpRequestOptions:B}=y(F,N);return t.fetch(M,B).then(S=>(S.status===401&&_(),S.status!==204?S.json():void 0)).then(S=>{if(S&&S.error&&S.error.length>0)throw k(S.error);return A(S)})}throw new Error(`Unsupported Apex action: ${F}`)}function y(F,N){if((!N||typeof N!="object"||Object.keys(N).length===0)&&b.reportError({subject:"Apex API action error - invalid params",type:D.CLIENT_ERROR_TYPES.APEX_ACTION_ERROR,error:new Error(`Apex ${F} action called with invalid params: '${JSON.stringify(N)}'.`)}),N&&N.cacheable===!0){const M=`/apex/${F}?${j(N)}`;if(M.length<=D.MAX_URL_LENGTH)return{url:M,httpRequestOptions:{method:"GET",basePath:p.default}}}return{url:`/apex/${F}`,httpRequestOptions:{method:"POST",body:JSON.stringify(N),basePath:p.default}}}function j(F){const N={...F},M=N.params;if(M&&typeof M=="object"){const B=Object.keys(M).sort().reduce((S,H)=>(S[H]=M[H],S),{});N.params=JSON.stringify(B)}return Object.keys(N).filter(B=>N[B]!==void 0&&N[B]!=null).sort().map(B=>`${B}=${encodeURIComponent(N[B])}`).join("&")}function _(){U.SessionTimeoutOverrides.runSync()}function A(F){return{getReturnValue:()=>F}}function k(F){return{getError:()=>F}}r.apiCallRawResponse=h,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/apiCall",["exports","webruntime/apiCall/v/1_66_657"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("aura/v/1",["exports","webruntime/apiCall/v/1_66_657","webruntime/logger/v/1_66_657"],function(r,e,t){"use strict";function b(p){if(p&&p.__esModule)return p;var h=Object.create(null);return p&&Object.keys(p).forEach(function(l){if(l!=="default"){var m=Object.getOwnPropertyDescriptor(p,l);Object.defineProperty(h,l,m.get?m:{enumerable:!0,get:function(){return p[l]}})}}),h.default=p,Object.freeze(h)}var I=b(t);const U=null,D=null,R=null;Object.defineProperty(r,"executeGlobalControllerRawResponse",{enumerable:!0,get:function(){return e.apiCallRawResponse}}),r.logger=I,r.createComponent=U,r.getDefinition=R,r.renderComponent=D,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("aura",["exports","aura/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("instrumentation/service/v/1",["exports","aura-instrumentation/v/1"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("instrumentation/service",["exports","instrumentation/service/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("instrumentation/utility/v/1",["exports","aura-instrumentation/v/1"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("instrumentation/utility",["exports","instrumentation/utility/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lightning/configProvider/v/1",["exports","@app/basePath/v/1","lwc/v/6_6_3"],function(r,e,t){"use strict";function b(v){return v&&typeof v=="object"&&"default"in v?v:{default:v}}var I=b(e);const U=/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z){1})?)?)?$/i,D=/^\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i,R="HH:mm:ss.SSS",p="YYYY-MM-DD",h="T",l=/(Z|([+-])(\d{2}):(\d{2}))$/;function m(v){return _(v)&&k(v)}function y(v){if(!A(v))return!1;const Q=j(v);return k(`2018-09-09T${Q}Z`)}function j(v){return typeof v=="string"?v.split(l)[0]:v}function _(v){return typeof v!="string"?!1:U.test(v)}function A(v){return typeof v!="string"?!1:D.test(v)}function k(v){const Q=Date.parse(v);return isFinite(Q)}var F=void 0;const N="in a few seconds",M="a few seconds ago",B="in {0} {1}",S="{0} {1} ago",H="s",q={SECONDS:{name:"second",threshold:45},MINUTES:{name:"minute",threshold:45},HOURS:{name:"hour",threshold:22},DAYS:{name:"day",threshold:26},MONTHS:{name:"month",threshold:11},YEARS:{name:"year"}},u=1e3,o=6e4,g=36e5,O=864e5;class G{constructor(Q){if(this.milliseconds=0,typeof Q!="number"){this.isValid=!1,console.warn(`The value of milliseconds passed into Duration must be of type number, but we are getting the ${typeof Q} value "${Q}" instead. `);return}this.isValid=!0,this.milliseconds=Q}humanize(Q){if(!this.isValid)return"";const ue=z(this);return ue===q.SECONDS?this.milliseconds>0?N:M:X(Q,this.asIn(ue),ue.name)}asIn(Q){switch(Q){case q.SECONDS:return Math.round(this.milliseconds/u);case q.MINUTES:return Math.round(this.milliseconds/o);case q.HOURS:return Math.round(this.milliseconds/g);case q.DAYS:return Math.round(this.milliseconds/O);case q.MONTHS:return Math.round(_e(this.milliseconds/O));case q.YEARS:default:return Math.round(_e(this.milliseconds/O)/12)}}}var fe=t.registerComponent(G,{tmpl:F,sel:"lightning-config-provider",apiVersion:62});function _e(v){const Q=4800/146097;return v*Q}function z(v){const Q=Object.keys(q).find(ue=>{const ce=q[ue];return ce===q.YEARS||Math.abs(v.asIn(ce))0?B:S;return ge(De,ue,ce)}function ge(v,...Q){return v.replace(/{(\d+)}/g,(ue,ce)=>Q[ce])}const Pe=["January","February","March","April","May","June","July","August","September","October","November","December"],Se={short:"M/d/yyyy",medium:"MMM d, yyyy",long:"MMMM d, yyyy"},Ue={short:"h:mm a",medium:"h:mm:ss a",long:"h:mm:ss a"},$e={short:"h:m a",medium:"h:m:s a",long:"h:m:s a"};function Ve(v,Q){let ue=!1,ce=v;return typeof v=="string"&&(ce=v.split(h)[0],ue=!0),C(ce,Q,ue)}function We(v,Q){return C(v,Q,!0)}function oe(v,Q){if(!x(v))return new Date("");const ue=(v.getHours()+11)%12+1,ce=v.getHours()>=12?"PM":"AM";switch(Q){case R:return`${Z(v.getHours())}:${Z(v.getMinutes())}:${Z(v.getSeconds())}.${K(v.getMilliseconds())}`;case Ue.short:return`${ue}:${Z(v.getMinutes())} ${ce}`;case Ue.medium:case Ue.long:default:return`${ue}:${Z(v.getMinutes())}:${Z(v.getSeconds())} ${ce}`}}function Ee(v){if(!x(v))return new Date("");const Q=new Date(v.getTime());return`${We(Q)}, ${oe(W(Q))}`}function ee(v){let Q=null,ue=!0;if(y(v)?Q=`2014-03-20T${Y(v)}`:m(v)&&(v.indexOf(h)>0?(Q=Y(v),ue=!1):Q=`${v}T00:00:00.000Z`),Q){const ce=new Date(Q);return ue&&W(ce),ce}return null}function Oe(v,Q){return Q===p&&m(v)?ee(v):Object.values(Se).includes(Q)?d(v,Q):Object.values($e).includes(Q)?se(v):null}function Ne(v){return ee(Y(v))}function xe(v,Q,ue){const ce=te(v),De=te(Q);return!ce||!De?!1:w(ce,ue).getTime()w(De,ue).getTime()}function Le(v,Q,ue){const ce=new Date(v.getTime());ue($(ce))}function Me(v,Q,ue){const ce=new Date(v.getTime());ue(W(ce))}function it(v){return v}function Je(v){return v}function Xe(v){return v}function ct(v){return v}function Ze(){return{format:v=>(console.warn(`The current environment does not support large numbers and the original value of ${v} will be returned.`),v)}}function dt(v){return new fe(v*60*1e3)}function ae(v){return v.humanize("en")}function se(v){const Q=v.trim().split(/[:.\s*]/),ue=Q.length;if(!Q||ue<2||ue>5)return null;const ce=Q[ue-1],De=ce.toLowerCase()==="am",Ye=ce.toLowerCase()==="pm";Q.splice(-1,1);const at=Q.every(et=>!isNaN(et));if(!Ye&&!De||!at)return null;const ot=Q[0],tt=Z(Ye?ot%12+12:ot%12),st=ue>=3&&Q[1]||"0",ht=ue>=4&&Q[2]||"0",qe=ue===5&&Q[3]||"0",Qe=new Date("2014-03-20");return Qe.setHours(tt,st,ht,qe),x(Qe)?Qe:null}function d(v,Q){let ue=/^([a-zA-Z]{3})\s*(\d{1,2}),\s*(\d{4})$/;switch(Q){case Se.short:ue=/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/;break;case Se.long:ue=/^([a-zA-Z]+)\s*(\d{1,2}),\s*(\d{4})$/;break}const ce=ue.exec(v.trim());if(!ce)return null;let De=ce[1];const Ye=ce[2],at=ce[3];Q!==Se.short&&(De=Pe.findIndex(st=>st.toLowerCase().includes(De.toLowerCase())),De+=1);const ot=`${at}-${Z(De)}-${Z(Ye)}`,tt=new Date(`${ot}T00:00:00.000Z`);return x(tt)?W(tt):null}function C(v,Q,ue){const ce=te(v);if(!ce)return new Date("");switch(ue&&x(v)&&W(ce),Q){case p:return`${ce.getFullYear()}-${Z(ce.getMonth()+1)}-${Z(ce.getDate())}`;case Se.short:return`${ce.getMonth()+1}/${ce.getDate()}/${ce.getFullYear()}`;case Se.long:return`${Pe[ce.getMonth()]} ${ce.getDate()}, ${ce.getFullYear()}`;case Se.medium:default:return`${Pe[ce.getMonth()].substring(0,3)} ${ce.getDate()}, ${ce.getFullYear()}`}}function w(v,Q){switch(Q){case"day":v.setHours(0),v.setMinutes(0);case"minute":v.setSeconds(0),v.setMilliseconds(0);break}return v}function x(v){return Object.prototype.toString.call(v)==="[object Date]"&&!isNaN(v.getTime())}function Y(v){return`${j(v)}Z`}function W(v){return v.setMinutes(v.getMinutes()+v.getTimezoneOffset()),v}function $(v){return v.setMinutes(v.getMinutes()-v.getTimezoneOffset()),v}function te(v){return v?x(v)?new Date(v.getTime()):isFinite(v)&&(typeof v=="number"||typeof v=="string")?new Date(parseInt(v,10)):typeof v=="string"?ee(v):null:null}function Z(v){return Number(v)<10?`0${v}`:v}function K(v){return Number(v)<10?`00${v}`:Number(v)<100?`0${v}`:v}var ie={formatDate:Ve,formatDateUTC:We,formatTime:oe,formatDateTimeUTC:Ee,parseDateTimeISO8601:ee,parseDateTime:Oe,parseDateTimeUTC:Ne,isBefore:xe,isAfter:Ge,UTCToWallTime:Le,WallTimeToUTC:Me,translateToOtherCalendar:it,translateFromOtherCalendar:Je,translateToLocalizedDigits:Xe,translateFromLocalizedDigits:ct,getNumberFormat:Ze,duration:dt,displayDuration:ae};function he(){return ie}function ye(){return I.default}function we(){return null}function Re(){return null}function Te(){return{densitySetting:""}}var Ie={getOneConfig:Te,getIconSvgTemplates:Re,getToken:we,getPathPrefix:ye,getLocalizationService:he};r.default=Ie,r.getIconSvgTemplates=Re,r.getLocalizationService=he,r.getOneConfig=Te,r.getPathPrefix=ye,r.getToken=we,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/configProvider",["exports","lightning/configProvider/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lightning/navigation/v/1",["exports","lwr/navigationContext/v/0_13_0-alpha_5","lwr/currentPageReference/v/0_13_0-alpha_5","lwr/currentView/v/0_13_0-alpha_5","lwr/contextUtils/v/0_13_0-alpha_5","lwr/routerErrors/v/0_13_0-alpha_5","lwr/navigationMixinHacks/v/0_13_0-alpha_5"],function(r,e,t,b,I,U,D){"use strict";function R(A,k,F,N){I.getNavigationHelm(A).navigate(k,F,N)}function p(A,k,F){return I.getNavigationHelm(A).generateUrl(k,F)}const h=typeof window=="undefined",l=Symbol("Navigate"),m=Symbol("GenerateUrl"),y=Symbol("NavContext"),j=Symbol("NavContext");function _(A){U.invariant(typeof A.prototype.dispatchEvent=="function",U.messages.INVALID_MIXIN_CMP,[A.toString()]);class k extends A{[j](){if(!this[y]&&(this.dispatchEvent(new CustomEvent(D.CONTEXT_ID_BACKDOOR,{bubbles:!0,composed:!0,detail:{callback:N=>{this[y]=N}}})),!this[y]))throw new Error(U.generateMessage(U.messages.MISSING_CONTEXT))}[l](N,M,B){h||(this[j](),R(this[y],N,M,B))}async[m](N,M){return h?null:(this[j](),p(this[y],N,M))}}return k}_.Navigate=l,_.GenerateUrl=m,_.NavContext=y,Object.defineProperty(r,"NavigationContext",{enumerable:!0,get:function(){return e.NavigationContext}}),Object.defineProperty(r,"CurrentPageReference",{enumerable:!0,get:function(){return t.CurrentPageReference}}),Object.defineProperty(r,"CurrentView",{enumerable:!0,get:function(){return b.CurrentView}}),Object.defineProperty(r,"ContextInfo",{enumerable:!0,get:function(){return I.ContextInfo}}),Object.defineProperty(r,"generateContextualWireAdapter",{enumerable:!0,get:function(){return I.generateContextualWireAdapter}}),Object.defineProperty(r,"getNavigationHelm",{enumerable:!0,get:function(){return I.getNavigationHelm}}),Object.defineProperty(r,"registerNavigationHelm",{enumerable:!0,get:function(){return I.registerNavigationHelm}}),r.NavigationMixin=_,r.generateUrl=p,r.navigate=R,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/navigation",["exports","lightning/navigation/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/f6Controller/v/1_66_657",["exports"],function(r){"use strict";const e=300,{document:t}=globalThis,b={navKey:"F6",f6RegionAttribute:"data-f6-region",f6RegionHighlightClass:"f6-highlight"},I=h=>h&&(h.shadowRoot?h.shadowRoot.activeElement?I(h.shadowRoot.activeElement):h:h.activeElement?I(h.activeElement):h);class U{constructor(l={}){this.regions=[],this.config=b,this.handleClick=()=>{this.clearRegionHighlights()},this.handleKeyDown=m=>{this.clearRegionHighlights();const{key:y,ctrlKey:j,metaKey:_}=m;y===this.config.navKey&&(j||_)&&(this.populateRegions(),this.handleNavigation(m))},this.elementFilter=m=>m.parentElement&&m.parentElement.matches(`*[${this.config.f6RegionAttribute}]`)?NodeFilter.FILTER_REJECT:m.matches(`*[${this.config.f6RegionAttribute}]`)&&this.isVisible(m)&&!this.isEmpty(m)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,this._debounceKeyDownHandler=this.debounce(this.handleKeyDown.bind(this),e),this.initialize(l)}debounce(l,m,y){const j=y||{};let _=j.leading,A;return function(){const F=Array.prototype.slice.apply(arguments);_&&(l.apply(this,F),_=!1),clearTimeout(A),A=setTimeout(function(){l.apply(this,F),_=j.leading},m)}}appendStyleElement(){this._styleElement=t.createElement("style");const l=`[${this.config.f6RegionAttribute}].${this.config.f6RegionHighlightClass}`;this._styleElement.innerText=`${l} { position: relative; } ${l}::after { width: 100%; height: 100%; content: ''; outline: rgb(94, 158, 214) 3px solid; outline-offset: -3px; position: absolute; top: 0; left: 0; z-index: 9999; }`,this._styleElement.setAttribute("type","text/css"),t.head.appendChild(this._styleElement)}clearRegionHighlights(){!this.regions||!this.regions.length||this.regions.forEach(l=>{l.classList.remove(this.config.f6RegionHighlightClass)})}addRegionHighlight(l){l.classList.add(this.config.f6RegionHighlightClass)}focusIn(l){const m=l.querySelector('a[href],button:not([disabled]),input:not([type="hidden"]):not([disabled]),select:not([type="hidden"]):not([disabled]),textarea:not([type="hidden"]):not([disabled])');m?m.focus():(l.tabIndex="-1",l.focus())}handleNavigation(l){if(l.preventDefault(),!this.regions.length)return;const m=l.shiftKey,y=this.getElementRegionIndex(I(l.target)),j=this.getNextRegionIndex(y,m);if(j===-1)return;const _=this.regions[j];this.focusIn(_),this.addRegionHighlight(_)}shadowContains(l,m){return l===m||l.contains(m)||l.shadowRoot&&this.isElementInContainerElements(l.shadowRoot.children,m)||l.tagName==="SLOT"&&this.isElementInContainerElements(l.assignedElements(),m)?!0:this.isElementInContainerElements(l.children,m)}isElementInContainerElements(l,m){if(!l||!l.length)return!1;const y=l.length;for(let j=0;jthis.shadowContains(m,l))}getNextRegionIndex(l,m){const y=this.regions.length-1;return y<0?-1:m?l<=0?y:l-1:l===y?0:l+1}isVisible(l){if(l===t.body||!(l instanceof Element))return!0;try{const m=window.getComputedStyle(l)||l.style;if(!m)return!1;const{display:y,visibility:j}=m;return y&&y.toLowerCase()==="none"||j&&j.toLowerCase()==="hidden"?!1:this.isVisible(l.parentNode)}catch(m){return!1}}isEmpty(l){if(l.tagName==="SLOT"&&!this.isEmptyChildren(l.assignedElements()))return!1;let m=l.children;return(!m||!m.length)&&l.shadowRoot&&(m=l.shadowRoot.children),this.isEmptyChildren(m)}isEmptyChildren(l){if(!l||!l.length)return!0;const m=l.length;for(let y=0;y(D||(D=new U(h)),D),p=()=>{if(D){const h=D.getConfig();if(h)return h.f6RegionAttribute}};r.DEFAULT_CONFIG=b,r.F6Controller=U,r.createF6Controller=R,r.getActiveElem=I,r.getCurrentRegionAttributeName=p,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/f6Controller",["exports","webruntime/f6Controller/v/1_66_657"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lightning/f6Controller/v/1",["exports","webruntime/f6Controller/v/1_66_657"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/f6Controller",["exports","lightning/f6Controller/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/environment/v/1",["exports"],function(r){"use strict";const e=globalThis?.LWR?.env||{},t=e&&(e.SSR==="true"||e.SSR===!0),b=e&&e.basePath,I=e&&e.locale,U=e&&e.assetBasePath,D=e&&e.uiBasePath;r.assetBasePath=U,r.basePath=b,r.isServer=t,r.locale=I,r.uiBasePath=D,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/environment",["exports","lwr/environment/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("transport/v/1",["exports","webruntime/transport/v/1"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("transport",["exports","transport/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/transport/v/1",["exports","lwr/loaderLegacy/v/0_13_0-alpha_5","@app/basePath/v/1","@app/apiBasePath/v/1","@salesforce/i18n/lang/v/1","webruntime/utils/v/1_66_657","@communities-webruntime/common/v/1_66_657","lwc/v/6_6_3"],function(r,e,t,b,I,U,D,R){"use strict";function p(z){return z&&typeof z=="object"&&"default"in z?z:{default:z}}var h=p(t),l=p(b),m=p(I),y=void 0;class j{constructor(X){const[le,ge]=X.split("?");this.path=le,this.searchParams=new URLSearchParams(ge)}setParamDefaultValue(X,le){return this.searchParams.has(X)||this.searchParams.append(X,le),this}build(){const X=this.searchParams.toString();return this.path+(X?`?${X}`:"")}}var _=R.registerComponent(j,{tmpl:y,sel:"webruntime-transport",apiVersion:62});const A=["POST","PATCH","PUT","DELETE"],k="X-SFDC-Request-Id",F="X-Salesforce-Too-Many-Requests",N="asGuest",M="language",B="htmlEncode",{location:S,navigator:H}=globalThis;async function q(z,X={}){U.assert(typeof z=="string","Valid path not provided for fetch request");const le={...X,headers:{...X.headers},credentials:X.credentials||"same-origin"};X.credentials===null&&delete le.credentials;const ge=le.isNonApiRequest===!0,Pe=le.asGuest===!0||(await _e()).isGuest,Se=le.basePath!==void 0?le.basePath:l.default,Ue=new _(S?new URL(Se+z,S).toString():Se+z);ge||Ue.setParamDefaultValue(M,m.default).setParamDefaultValue(N,Pe).setParamDefaultValue(B,!1);const $e=le.headers["Content-Type"];$e===null?delete le.headers["Content-Type"]:$e?le.headers["Content-Type"]=$e:X.body&&(le.headers["Content-Type"]="application/json; charset=utf-8"),le.headers[k]=G(),await g(le);const Ve=await globalThis.fetch(Ue.build(),le);return o(Ve)&&u(),Ve}function u(){document.dispatchEvent(new CustomEvent("client-error",{detail:{type:D.CLIENT_ERROR_TYPES.TOO_MANY_REQUESTS}}))}function o(z){return!!((z.status===503||z.status===429)&&z.headers.get(F))}async function g(z){if(!A.includes(z.method))return;const{csrfToken:X}=await _e();X&&(z.headers["CSRF-Token"]=X)}async function O({path:z,payload:X,contentType:le}){const ge=h.default+z;H&&H.sendBeacon&&H.sendBeacon(ge,X)||await globalThis.fetch(z,{headers:{"Content-Type":le},basePath:h.default,body:X,method:"POST",isNonApiRequest:!0})}function G(){return(Date.now()+fe()+Math.round(Math.random()*1e8)).substring(0,18)}function fe(){function z(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return z()+z()}async function _e(){if(typeof window=="undefined")return{isGuest:!0,id:null,csrfToken:null};const{default:z}=await e.load("@app/user/v/1");return z}r.fetch=q,r.sendBeacon=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/transport",["exports","webruntime/transport/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("assert/v/1",["exports","webruntime/utils/v/1_66_657"],function(r,e){"use strict";Object.defineProperty(r,"default",{enumerable:!0,get:function(){return e.assert}}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("assert",["exports","assert/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("o11y/shared/v/1",["exports"],function(r){"use strict";class e{constructor(u){if(this._lazyMap=new Map,u!==void 0){if(typeof u=="number"&&u>0){this._maxSize=Math.ceil(u);return}throw new Error("maxSize must be a positive number")}}get maxSize(){return this._maxSize}get size(){return this._lazyMap.size}push(u,o){let g=this._lazyMap.get(u);if(!g){if(this.maxSize!==void 0&&this.size===this.maxSize)return!1;g=new Array,this._lazyMap.set(u,g)}return g.push(o),!0}getMessages(u,o){const g=this._lazyMap.get(u);return o&&this._lazyMap.has(u)&&this._lazyMap.set(u,[]),g||[]}getAllMessages(u){const o=new Map;for(const[g,O]of this._lazyMap.entries())O.length&&o.set(g,this.getMessages(g,u));return o}extractMessages(u){return this.getMessages(u,!0)}extractAllMessages(){return this.getAllMessages(!0)}get totalItemCount(){let u=0;for(const o of this._lazyMap.values())u+=o.length;return u}}class t{constructor(){this.notImplemented="Method not implemented.";const u=typeof performance!="undefined";u?performance.timeOrigin?this._timeOrigin=performance.timeOrigin:this._timeOrigin=Date.now():this._timeOrigin=Date.now();const o=this._timeOrigin;u&&typeof performance.now=="function"?(this.perfNow=performance.now.bind(performance),this.time=()=>{const g=this.perfNow();return{tsNow:o+g,perfNow:g,timeOrigin:o}}):(this.perfNow=()=>Date.now()-o,this.time=()=>{const g=this.perfNow();return{tsNow:Date.now(),perfNow:g,timeOrigin:o}})}get isProduction(){return t._isProduction}markProduction(){t._isProduction=!0}_checkArgument(u,o){if(typeof o=="string")return typeof u===o;if(typeof o=="function")return u instanceof o;if(Array.isArray(o))return o.some(g=>this._checkArgument(u,g));throw new Error(`Invalid argKind ${o}`)}requireArgument(u,o,g){let O=u==null||u==="";const G=g!==void 0;if(!O&&G&&(O=!this._checkArgument(u,g)),O)throw new Error(`${o} argument is required${G?" and must be of a supported type.":"."}`)}requireArgumentIfDefined(u,o,g){if(u===void 0)return!1;if(u===null||u===""||!this._checkArgument(u,g))throw new Error(`${o} argument, if defined, must be of a supported type.`);return!0}checkForDenyListedValues(u,o,g){if(g.some(O=>u===O))throw new Error(`The value ${u} isn't allowed for ${o} argument.`)}checkForReservedCharacters(u,o,g){if(u&&g.some(O=>u.indexOf(O)>=0))throw new Error(`The argument ${o} isn't allowed to contain characters from ['${g.join(", ")}']. Received: ${u}.`)}generateUniqueId(u=16){const o=[],g="0123456789abcdef";if(!(u===void 0||u>0))throw new Error('If specified, the argument "length" must be a positive integer');for(let O=0;O1||o(G)?`${G.localName.toLowerCase()}[${g(G)}]`:G.localName.toLowerCase();return[...O(G.parentNode),fe]}return O(u).join("/")}getAge(u){return u-this._timeOrigin}getConnectionType(){var u;let o;if(typeof navigator!="undefined"){const g=navigator;o=(u=g==null?void 0:g.connection)===null||u===void 0?void 0:u.effectiveType}return o}clone(u){return JSON.parse(JSON.stringify(u))}definedValueOrDefault(u,o){return u!==void 0?u:o}getGlobal(){if(typeof globalThis=="object")return globalThis;if(typeof self=="object")return self;throw new Error("Unable to locate globalThis or self")}getIsBeaconSupported(){var u;const o=this.getGlobal();return typeof((u=o.navigator)===null||u===void 0?void 0:u.sendBeacon)=="function"&&typeof o.Blob=="function"}estimateObjectSize(u){const o=new Set,g=[u];let O=0;for(;g.length;){const G=g.pop();if(typeof G=="boolean")O+=4;else if(typeof G=="string")O+=G.length*2;else if(typeof G=="number")O+=8;else if(G instanceof Uint8Array||G instanceof Uint8ClampedArray||G instanceof Uint16Array||G instanceof Uint32Array||G instanceof Int8Array||G instanceof Int16Array||G instanceof Int32Array||G instanceof Float32Array||G instanceof Float64Array)O+=G.byteLength;else if(typeof G=="object"){const fe=G;if(!o.has(fe)){o.add(fe);for(const _e in fe)g.push(fe[_e])}}}return O}noProdThrow(u){if(!b.isProduction)throw u}isAllowedOrigin(u,o){return Array.isArray(o)&&o.some(g=>g==="*"||u===g||g instanceof RegExp&&g.test(u))}roundNumber(u,o){const g=Math.pow(10,o);return Math.round(u*g)/g}roundNumbersInObject(u,o){u&&Object.entries(u).forEach(([g,O])=>{typeof O=="number"&&(u[g]=this.roundNumber(O,o))})}tryGetAbsoluteUrl(u){return(u==null?void 0:u.startsWith("/"))&&typeof window=="object"?window.location.origin+u:u}}t._isProduction=!1;const b=Object.freeze(new t);class I{getSchemaId(u){return`${u.namespace}.${u.name}`}isInternal(u){return(u==null?void 0:u.namespace)==="sf.instrumentation"}makePayload(u,o,g=!0){if(!g||u!==void 0&&o!==void 0)return{schema:u,payload:o}}checkSchema(u){return b.requireArgument(u,"schema","object"),b.requireArgument(u.namespace,"schema.namespace","string"),b.requireArgument(u.name,"schema.name","string"),b.requireArgument(u.pbjsSchema,"schema.pbjsSchema","object"),this._getTokens(u)}_getTokens(u){const o=u.namespace.split(".");if(o.length!==2)throw new Error(`Schema "${this.getSchemaId(u)}" must have a namespace of the form "domain.feature".`);return{domain:o[0],feature:o[1],message:u.name}}_getAnyNestedObject(u,o){return o.reduce((g,O)=>{const G=g.nested;if(G){const fe=G[O];if(fe)return fe}throw new Error(`Cannot locate ${o.join(".")} in schema with ID ${this.getSchemaId(u)}`)},u.pbjsSchema)}getTypes(u){const o=this.checkSchema(u),O=this._getAnyNestedObject(u,[o.domain,o.feature]).nested;if(!O)throw new Error(`Cannot parse schema with ID ${this.getSchemaId(u)}`);return O}getType(u,o){b.requireArgument(o,"messageName","string");const O=this.getTypes(u)[o];if(!O)throw new Error(`Cannot locate message ${o} in schema with ID ${this.getSchemaId(u)}`);return O}getOptions(u,o,g){g&&b.requireArgument(o,"messageName","string");const O=this.checkSchema(u);if(!o)return this._getAnyNestedObject(u,[O.domain,O.feature]).options;const G=this.getType(u,o);if(!g)return G.options;const fe=G.fields[g];if(!fe){const _e=this.getSchemaId(u);throw new Error(`Cannot locate field ${g} in message ${o} in schema with ID ${_e}`)}return fe.options}getExtraFields(u,o){const{message:g}=this._getTokens(u),G=this.getTypes(u)[g].fields,fe=new Set(Object.keys(G));return o!=null?Object.keys(o).filter(z=>!fe.has(z)):[]}}const U=new I,D=1e4,R=1e4,p=0,h=2147483647,l=-2147483648,m=4294967295,y=9223372036854776e3,j=-9223372036854776e3,_=18446744073709552e3;class A{constructor(u,o,g,O){this.errorCode=u,this.fields=o,this.expected=g,this.received=O}asMessage(u){const o=this.fields[0]+this.fields.slice(1).reduce((O,G)=>Number(G)>=0?`${O}[${G}]`:`${O}.${G}`,"");let g;switch(this.errorCode){case 1:g="Repeated field must be an array";break;case 2:g=`Expected type ${this.expected} but received type ${this.received}`;break;case 3:g="Value must be finite";break;case 4:g="Value is out of range for its type";break;case 5:g="Bytes array is malformed";break;case 6:g="Exceeded app limit for maximum string length";break;case 7:g="Exceeded app limit for item count";break;case 12:g="Value must be an integer";break;case 13:g="Values like null or undefined are not allowed for items in repeated fields";break;default:g=`Unknown error code: ${this.errorCode}`;break}return`Schema ${u} on field "${o}": ${g}`}}class k{validate(u,o,g=!1){const O=U.checkSchema(u);b.requireArgument(o,"data","object");const G=U.getSchemaId(u),fe=new Array,_e=U.getTypes(u);if(this._validateFields(fe,[],o,_e[O.message],_e,G),fe.length&&!g)throw new Error(fe[0].asMessage(G));return fe}_validateFields(u,o,g,O,G,fe){const _e=O.oneofs||{},z=O.fields||{};for(const X in g){const le=g[X];if(le!=null){const ge=(Pe,Se,Ue)=>this._matchFieldTypes(u,[...o,X],le,Pe,G,fe,X,Se,Ue);_e[X]?ge(z[_e[X].oneof[0]].type):z[X]&&ge(z[X].type,z[X].rule==="repeated")}}}_matchFieldTypes(u,o,g,O,G,fe,_e,z,X){let le;if(z)Array.isArray(g)?(g.length>R&&(le=7),g.forEach((ge,Pe)=>{this._matchFieldTypes(u,[...o,Pe.toString()],ge,O,G,fe,_e,void 0,!0)})):le=1;else if(g==null||g===void 0)X&&(le=13);else{let ge,Pe;switch(O){case"string":Pe="string",g.length>D&&(le=6);break;case"bytes":Pe="object",g instanceof Uint8Array||(le=5);break;case"bool":Pe="boolean";break;case"uint32":Pe="number",ge={min:p,max:m,isInt:!0,isItem:X};break;case"int32":case"sint32":case"fixed32":case"sfixed32":Pe="number",ge={min:l,max:h,isInt:!0,isItem:X};break;case"uint64":Pe="number",ge={min:p,max:_,isInt:!0,isItem:X};break;case"fixed64":case"sfixed64":case"int64":case"sint64":Pe="number",ge={min:j,max:y,isInt:!0,isItem:X};break;case"double":case"float":Pe="number",ge={min:Number.NEGATIVE_INFINITY,max:Number.POSITIVE_INFINITY,isInt:!1,isItem:X};break;default:new Set(Object.keys(G)).has(O)&&(this._validateFields(u,o,g,G[O],G,fe),Pe="object");break}typeof g!==Pe?u.push(new A(2,o,O,typeof g)):ge&&(ge.isInt&&!Number.isFinite(g)?le=3:ge.isInt&&!Number.isInteger(g)?le=12:!(!ge.isInt&&Number.isNaN(g))&&!(g>=ge.min&&g<=ge.max)&&(le=4))}le&&u.push(new A(le,o))}}const F=new k;class N{_getMetricTags(u){const o=u.getTags();if(o)return Object.entries(o).map(g=>({name:g[0],value:g[1].toString()}))}getUpCounters(u,o=!0){return u.map(g=>{const O={name:g.getName(),createdTimestamp:g.getCreatedOn(),lastUpdatedTimestamp:g.getLastUpdatedOn(),value:g.getData(),ownerName:g.getOwnerName(),ownerAppName:g.getOwnerAppName(),tags:this._getMetricTags(g)};return o&&g.reset(),O})}getValueRecorders(u,o=!0){return u.map(g=>{const O={name:g.getName(),createdTimestamp:g.getCreatedOn(),lastUpdatedTimestamp:g.getLastUpdatedOn(),values:g.getData(),ownerName:g.getOwnerName(),ownerAppName:g.getOwnerAppName(),tags:this._getMetricTags(g)};return o&&g.reset(),O})}getBucketHistograms(u,o=!0){return u.map(g=>{const O={name:g.getName(),createdTimestamp:g.getCreatedOn(),lastUpdatedTimestamp:g.getLastUpdatedOn(),values:g.getData(),buckets:g.getBuckets(),ownerName:g.getOwnerName(),ownerAppName:g.getOwnerAppName(),tags:this._getMetricTags(g)};return o&&g.reset(),O})}getMetricsTags(u){const o={};return u.forEach(g=>{o[g.name]=g.value}),o}}const M=Object.freeze(new N);class B{checkInputs(u,o){U.checkSchema(u),b.requireArgument(o,"data","object");let g,O;o.userPayload!==void 0&&U.isInternal(u)&&(O=o.userPayload,g=F.validate(O.schema,O.payload,!0),this._processValidationResults(U.getSchemaId(O.schema),O.payload,g),o.userPayload=void 0),g=F.validate(u,o,!0),this._processValidationResults(U.getSchemaId(u),o,g),O!==void 0&&(o.userPayload=O)}getExtraFields(u,o){b.requireArgument(o,"data","object");const g=[],O=o.userPayload;return O!==void 0&&U.isInternal(u)&&g.push(...U.getExtraFields(O.schema,O.payload)),g.push(...U.getExtraFields(u,o)),g}getPayloadFromProvider(u,o){const g=(u==null?void 0:u.getPayload(o))||void 0;return g&&this.checkInputs(g.schema,g.payload),g}_processValidationResults(u,o,g){for(let O=0;O0:void 0}constructor(n,i,a,c){this.name=n,this._doneCallback=a,this._overDoneCallback=c,this._busyCount=0,this._isOk=!0,this._busyCount=i}add(){this._isOk&&(this._busyCount+=1)}done(){this._isOk&&(this._busyCount>0?(this._busyCount-=1,this._busyCount||this._doneCallback()):(this._isOk=!1,this._overDoneCallback()))}}const I=300;class U{constructor(n){this._taskers=new Map,this._listeners=new Set,this._busyCheckers=new Map,this._logThreshold=I,this._endedTasks=new Array,this._pollableReport=new Array,t.utility.requireArgumentIfDefined(n==null?void 0:n.logThreshold,"options.logThreshold","number")&&(this._logThreshold=n.logThreshold),t.utility.requireArgumentIfDefined(n==null?void 0:n.reportListener,"options.reportListener","function")&&(this._reportListener=n.reportListener),t.utility.requireArgumentIfDefined(n==null?void 0:n.errorListener,"options.errorListener","function")&&(this._errorListener=n.errorListener)}requestIdleDetectedCallback(n){t.utility.requireArgument(n,"callback","function"),this._listeners.size===0&&(this._firstCallbackTime=t.utility.time().perfNow),this._listeners.add(n),this._checkIfLoaded()}_reportTaskEnded(n){if(this._listeners.size){const i=Object.assign({},this._taskers.get(n));this._endedTasks.push(i)}}declareNotifierTaskSingle(n){t.utility.requireArgument(n,"name","string");const i=this._addTasker(n,1);return{get isBusy(){return i.isBusy},done:()=>{i.done(),this._taskers.delete(i)}}}declareNotifierTaskMulti(n,i=0){if(t.utility.requireArgument(n,"name","string"),i!==void 0&&(t.utility.requireArgument(i,"existingBusyCount","number"),!Number.isInteger(i)||i<0))throw new Error("existingBusyCount accepts only non-negative integers");const a=this._addTasker(n,i);return{get isBusy(){return a.isBusy},add:()=>{if(!a.isBusy){const f=this._taskers.get(a);f.start=t.utility.time().perfNow,f.end=void 0}a.add()},done:a.done.bind(a)}}declarePollableTaskMulti(n,i){t.utility.requireArgument(n,"name","string"),t.utility.requireArgument(i,"isBusyChecker","function"),this._busyCheckers.set(i,n)}_addTasker(n,i){const a=new b(n,i,()=>{this._taskers.get(a).end=t.utility.time().perfNow,this._reportTaskEnded(a),this._checkIfLoaded()},()=>{var c;(c=this._errorListener)===null||c===void 0||c.call(this,`Overdone: ${a.name}`),t.utility.noProdThrow(`Tasker '${a.name}' is done too many times.`)});return this._taskers.set(a,{name:n,start:i>0?t.utility.time().perfNow:void 0,end:void 0}),a}_areAllNotifiersIdle(){return!Array.from(this._taskers.keys()).some(n=>n.isBusy)}_getFirstBusyPollable(){const n=Array.from(this._busyCheckers).find(i=>{var a;const c=i[0],f=i[1];try{return c()}catch(P){return(a=this._errorListener)===null||a===void 0||a.call(this,P,`BusyChecker ${f}`),t.utility.noProdThrow(P),!1}});return n?n[1]:void 0}_checkIfLoaded(){!this._listeners.size||(this._timerCheckQueued&&clearTimeout(this._timerCheckQueued),this._areAllNotifiersIdle()&&(this._timerCheckQueued=setTimeout(()=>{this._timerCheckQueued=setTimeout(()=>{this._doubleCheck()},40)},0)))}_doubleCheck(){if(this._timerCheckQueued=void 0,this._areAllNotifiersIdle()){const n=this._getFirstBusyPollable();if(n!==void 0)this._addToPollableReport(n),this._timerCheckQueued=setTimeout(()=>{this._doubleCheck()},15);else{const i=t.utility.time().perfNow-this._firstCallbackTime,a=Array.from(this._listeners.values());this._listeners.clear(),this._firstCallbackTime=void 0;const c=this._endedTasks.splice(0),f=this._pollableReport.splice(0);this._notify(a,i,c,f)}}}_addToPollableReport(n){const i=this._pollableReport.length?this._pollableReport[this._pollableReport.length-1]:void 0;(i==null?void 0:i.name)===n?i.count+=1:this._pollableReport.push({name:n,count:1})}_notify(n,i,a,c){var f;if(i>=this._logThreshold&&this._reportListener){const J=this._getReport(i,n.length,a,c);this._reportListener(J)}n.reverse();const P=t.utility.time().tsNow;for(const[J,be]of n.entries())try{be(P)}catch(s){(f=this._errorListener)===null||f===void 0||f.call(this,s,`Listener #${n.length-1-J}`),t.utility.noProdThrow(s)}}getReport(){const n=t.utility.time().perfNow,i=this._firstCallbackTime>0?n-this._firstCallbackTime:void 0,a=Array.from(this._taskers.entries()).filter(c=>c[0].isBusy).map(c=>({name:c[1].name,start:c[1].start,end:n}));return this._getReport(i,this._listeners.size,this._endedTasks.concat(a),this._pollableReport)}_getReport(n,i,a,c){const f=a.map(P=>({name:P.name,duration:P.end-P.start})).sort((P,J)=>J.duration-P.duration);return{logThreshold:this._logThreshold,maxDuration:n,listenerCount:i,pollableCount:this._busyCheckers.size,busyTasks:f.map(P=>P.name),busyDurations:f.map(P=>P.duration),pollables:c.map(P=>P.name),pollCounts:c.map(P=>P.count)}}}const D={namespace:"sfcore.performance",name:"NavigationTiming",pbjsSchema:{nested:{sfcore:{nested:{performance:{nested:{NavigationTiming:{oneofs:{_xhrDelay:{oneof:["xhrDelay"]},_renderBlockingStatus:{oneof:["renderBlockingStatus"]},_firstInterimResponseStart:{oneof:["firstInterimResponseStart"]},_srvDuration:{oneof:["srvDuration"]},_isCdnCached:{oneof:["isCdnCached"]},_dbDuration:{oneof:["dbDuration"]},_reqBatchCount:{oneof:["reqBatchCount"]}},fields:{redirectCount:{id:37,type:"uint32"},encodedBodySize:{id:21,type:"uint32"},reqActionNames:{rule:"repeated",id:28,type:"string"},unloadEventEnd:{id:40,type:"double"},responseEnd:{id:19,type:"double"},domainLookupEnd:{id:12,type:"double"},unloadEventStart:{id:39,type:"double"},domContentLoadedEventStart:{id:32,type:"double"},type:{id:38,type:"string"},firstInterimResponseStart:{options:{proto3_optional:!0},id:18,type:"double"},duration:{id:3,type:"double"},decodedBodySize:{id:22,type:"uint32"},redirectStart:{id:8,type:"double"},connectEnd:{id:15,type:"double"},isCdnCached:{options:{proto3_optional:!0},id:24,type:"bool"},requestStart:{id:16,type:"double"},startTime:{id:2,type:"double"},fetchStart:{id:10,type:"double"},domContentLoadedEventEnd:{id:33,type:"double"},srvReqId:{id:29,type:"string"},reqBatchCount:{options:{proto3_optional:!0},id:27,type:"uint32"},renderBlockingStatus:{options:{proto3_optional:!0},id:6,type:"string"},workerStart:{id:7,type:"double"},responseStart:{id:17,type:"double"},xhrDelay:{options:{proto3_optional:!0},id:30,type:"double"},domInteractive:{id:34,type:"double"},domComplete:{id:31,type:"double"},domainLookupStart:{id:11,type:"double"},responseStatus:{id:23,type:"uint32"},redirectEnd:{id:9,type:"double"},transferSize:{id:20,type:"uint32"},srvDuration:{options:{proto3_optional:!0},id:26,type:"double"},dbDuration:{options:{proto3_optional:!0},id:25,type:"double"},connectStart:{id:13,type:"double"},loadEventStart:{id:35,type:"double"},secureConnectionStart:{id:14,type:"double"},name:{id:1,type:"string"},nextHopProtocol:{id:5,type:"string"},initiatorType:{id:4,type:"string"},loadEventEnd:{id:36,type:"double"}}}}}}}}}},R={namespace:"sfcore.performance",name:"ResourceTiming",pbjsSchema:{nested:{sfcore:{nested:{performance:{nested:{ResourceTiming:{oneofs:{_xhrDelay:{oneof:["xhrDelay"]},_renderBlockingStatus:{oneof:["renderBlockingStatus"]},_firstInterimResponseStart:{oneof:["firstInterimResponseStart"]},_srvDuration:{oneof:["srvDuration"]},_isCdnCached:{oneof:["isCdnCached"]},_dbDuration:{oneof:["dbDuration"]},_reqBatchCount:{oneof:["reqBatchCount"]}},fields:{encodedBodySize:{id:21,type:"uint32"},reqActionNames:{rule:"repeated",id:28,type:"string"},responseEnd:{id:19,type:"double"},domainLookupEnd:{id:12,type:"double"},firstInterimResponseStart:{options:{proto3_optional:!0},id:18,type:"double"},duration:{id:3,type:"double"},decodedBodySize:{id:22,type:"uint32"},redirectStart:{id:8,type:"double"},connectEnd:{id:15,type:"double"},isCdnCached:{options:{proto3_optional:!0},id:24,type:"bool"},requestStart:{id:16,type:"double"},startTime:{id:2,type:"double"},fetchStart:{id:10,type:"double"},srvReqId:{id:29,type:"string"},reqBatchCount:{options:{proto3_optional:!0},id:27,type:"uint32"},renderBlockingStatus:{options:{proto3_optional:!0},id:6,type:"string"},workerStart:{id:7,type:"double"},responseStart:{id:17,type:"double"},xhrDelay:{options:{proto3_optional:!0},id:30,type:"double"},domainLookupStart:{id:11,type:"double"},responseStatus:{id:23,type:"uint32"},redirectEnd:{id:9,type:"double"},transferSize:{id:20,type:"uint32"},srvDuration:{options:{proto3_optional:!0},id:26,type:"double"},dbDuration:{options:{proto3_optional:!0},id:25,type:"double"},connectStart:{id:13,type:"double"},secureConnectionStart:{id:14,type:"double"},name:{id:1,type:"string"},nextHopProtocol:{id:5,type:"string"},initiatorType:{id:4,type:"string"}}}}}}}}}};class p{constructor(n){this._fuzzyKeyRange=n,this._map=new Map,t.utility.requireArgument(n,"_fuzzyKeyRange","number")}add(n,i,a){const c=this._map.get(n);c?c.push({fuzzyKey:i,value:a}):this._map.set(n,[{fuzzyKey:i,value:a}])}pop(n,i){const a=this._map.get(n);if((a==null?void 0:a.length)>=1){let c=Number.POSITIVE_INFINITY,f=-1;for(let P=0;P=0){const{value:P}=a.splice(f,1)[0];return a.length===0&&this._map.delete(n),P}}}clear(){this._map.clear()}}const h=["fetch","xmlhttprequest"];class l{constructor(n,i,a,c,f){if(this._instr=n,this._skipUrls=a,this._logPerformanceActivityName=c,this._isStarted=!1,t.utility.requireArgument(n,"_instr","object"),t.utility.requireArgument(i,"fuzzyMapRange","number"),t.utility.requireArgumentIfDefined(a,"_skipUrls",Array),t.utility.requireArgumentIfDefined(c,"_logPerformanceActivityName","string"),t.utility.requireArgumentIfDefined(f,"logLevel","string"),this._hasPerf=typeof performance!="undefined"&&typeof PerformanceObserver=="function",this._boundObserverCallback=this._logPerformanceEntries.bind(this),!f||f.toLowerCase()==="full")this._logLevel=1;else if((f==null?void 0:f.toLowerCase())==="basic")this._logLevel=0;else throw new Error(`Invalid log level: ${f}`);this._fuzzyMapper=new p(i)}get isStarted(){return this._isStarted}get logLevel(){return this._logLevel}start(){!this._hasPerf||this._isStarted||(this._isStarted=!0,this._navigationObserver=new PerformanceObserver(this._boundObserverCallback),this._navigationObserver.observe({type:"navigation",buffered:!0}),this._resourceObserver=new PerformanceObserver(this._boundObserverCallback),this._resourceObserver.observe({type:"resource",buffered:!0}))}stop(){this._resourceObserver&&(this._resourceObserver.disconnect(),this._resourceObserver=void 0),this._navigationObserver&&(this._navigationObserver.disconnect(),this._navigationObserver=void 0),this._fuzzyMapper.clear(),this._isStarted=!1}addEntry(n,i,a){this._fuzzyMapper.add(n,i,a)}_resourceEntryToResourceTiming(n){var i,a;const c={name:n.name,startTime:n.startTime,duration:n.duration,initiatorType:n.initiatorType,nextHopProtocol:n.nextHopProtocol,renderBlockingStatus:n.renderBlockingStatus,workerStart:n.workerStart,redirectStart:n.redirectStart,redirectEnd:n.redirectEnd,fetchStart:n.fetchStart,domainLookupStart:n.domainLookupStart,domainLookupEnd:n.domainLookupEnd,connectStart:n.connectStart,secureConnectionStart:n.secureConnectionStart,connectEnd:n.connectEnd,requestStart:n.requestStart,responseStart:n.responseStart,firstInterimResponseStart:n.firstInterimResponseStart,responseEnd:n.responseEnd,transferSize:n.transferSize,encodedBodySize:n.encodedBodySize,decodedBodySize:n.decodedBodySize,responseStatus:n.responseStatus},f=n.serverTiming;return Array.isArray(f)&&(c.dbDuration=(i=f.find(P=>P.name==="db"))===null||i===void 0?void 0:i.duration,c.srvDuration=(a=f.find(P=>P.name==="Total"))===null||a===void 0?void 0:a.duration),c}_shouldInclude(n){var i;return((i=this._skipUrls)===null||i===void 0?void 0:i.some(c=>c instanceof RegExp?c.test(n.name):n.name===c))?!1:this._logLevel===1?!0:h.indexOf(n.initiatorType)>=0||n.entryType==="navigation"}_logActivity(n,i){const a={perfStartOverride:i.startTime,perfStopOverride:i.startTime+i.duration};this._instr.startActivity(this._logPerformanceActivityName).stop(n,i,a)}_logPerformanceEntries(n){for(const i of n.getEntriesByType("navigation")){const a=i;if(this._shouldInclude(a)){if(a!==this._navTiming){this._navTiming=a;const c=this._resourceEntryToResourceTiming(a),f={domComplete:a.domComplete,domContentLoadedEventStart:a.domContentLoadedEventStart,domContentLoadedEventEnd:a.domContentLoadedEventEnd,domInteractive:a.domInteractive,loadEventStart:a.loadEventStart,loadEventEnd:a.loadEventEnd,redirectCount:a.redirectCount,type:a.type,unloadEventStart:a.unloadEventStart,unloadEventEnd:a.unloadEventEnd};this._logActivity(D,Object.assign(c,f))}break}}for(const i of n.getEntriesByType("resource")){const a=i,c=this._fuzzyMapper.pop(a.name,a.startTime);if(this._shouldInclude(a)){const f=this._resourceEntryToResourceTiming(a);Object.assign(f,{srvReqId:c==null?void 0:c.requestId,xhrDelay:c?c.activityDuration-a.duration:void 0}),this._logActivity(R,f)}}}}const m=32,y=16,j=16,_="traceparent",A="b3",k="X-B3-TraceId",F="X-B3-SpanId",N="X-B3-Sampled",M="X-B3-ParentSpanId",B="X-SFDC-Request-Id",S="fetch",H="xhr_send",q="perf-timing",u=50;class o{constructor(n,i){this._instr=n,this._idleDetector=i,t.utility.requireArgument(n,"_instr","object"),t.utility.requireArgument(i,"_idleDetector","object")}static _getB3CompactFormat(n,i,a,c){let f=`${n}-${i}`;return(a!==void 0||c!==void 0)&&(f+=a?"-1":"-0",c!==void 0&&(f+=`-${c}`)),f}static _getW3CompactFormat(n,i,a){return`00-${n}-${i}-${a?"01":"00"}`}static _conformTextAsId(n,i){n=n.toLowerCase();const a=n.length;for(let c=0;c="a"&&f<="f")&&!(f>="0"&&f<="9"))throw new Error(`The text '${n}' has an invalid character at index #${c}`)}return a>i?n.substr(a-i):af[0]===n);return c==null?void 0:c[1]}if(typeof(a==null?void 0:a.headers)=="object")return a.headers[n];if(i instanceof Request)return i.headers.get(n)}_overrideFetch(n,i,a,c,f,P){o._originalFetch=o._global.fetch;const J=async(be,s,...E)=>{var L;let V,re,de,Ce,je;try{P==null||P.add(),Ce=s==null?void 0:s.method;const Be=s==null?void 0:s.o11y;if(!(Be==null?void 0:Be.skipInstr))V=n.startActivity(a||S);else{o._reqIndex+=1;try{if(be instanceof URL)be.searchParams.append("o11y",o._reqIndex.toString());else if(typeof be=="string"){const Fe=new URL(be),pt=`o11y=${o._reqIndex}`;Fe.search+=Fe.search.startsWith("?")?`&${pt}`:pt,be=Fe.toString()}}catch(Fe){}}if(s==null||delete s.o11y,re=be==null?void 0:be.toString(),de=t.utility.tryGetAbsoluteUrl(re),c){be instanceof Request&&(Ce||(Ce=be.method),re=be.url,de=t.utility.tryGetAbsoluteUrl(re));const Fe=o._getTraceHeaders(V,f,Ce,de);!this._applyTraceHeaders(be,s,Fe)&&s===void 0&&(s={headers:Fe})}return je=t.utility.perfNow(),await o._originalFetch.call(o._global,be,s,...E)}catch(Be){throw i&&(V?V.error(Be):n.error(Be)),Be}finally{try{const Be=o._endActivity(V,re,Ce);if((L=o._performanceObservability)===null||L===void 0?void 0:L.isStarted){const Fe=o._extractHeader(B,be,s);o._performanceObservability.addEntry(de,je,{requestId:Fe,activityDuration:Be})}}finally{P==null||P.done()}}};o._global.fetch=J}static _endActivity(n,i,a){var c;if(n)return((c=o._performanceObservability)===null||c===void 0?void 0:c.isStarted)&&n.getErrorCount()==0?n.discard():n.stop(e.networkSchema,{mtd:a,url:i}),n.getStopPerfTime()-n.getStartPerfTime()}_overrideXhr(n,i,a,c,f,P){o._originalXhr=o._global.XMLHttpRequest,o._originalXhrOpen=o._originalXhr.prototype.open,o._originalXhrSetRequestHeader=o._originalXhr.prototype.setRequestHeader,o._originalXhrSend=o._originalXhr.prototype.send;function J(s,E){var L;if(s._o11y){const V=o._endActivity(s._o11y.activity,s._o11y.url,s._o11y.method);!E&&((L=o._performanceObservability)===null||L===void 0?void 0:L.isStarted)&&o._performanceObservability.addEntry(s._o11y.absoluteUrl,s._o11y.sendTime,{requestId:s._o11y.requestId,activityDuration:V})}}o._originalXhr.prototype.open=function(s,E,L,V,re){this._o11y={method:s,url:E==null?void 0:E.toString()},this._o11y.absoluteUrl=t.utility.tryGetAbsoluteUrl(this._o11y.url),o._originalXhrOpen.call(this,s,E,L,V,re)},o._originalXhr.prototype.setRequestHeader=function(s,E){var L;((L=s==null?void 0:s.toLowerCase)===null||L===void 0?void 0:L.call(s))===B.toLowerCase()&&(this._o11y.requestId=E),o._originalXhrSetRequestHeader.call(this,s,E)},o._originalXhr.prototype.send=function(...s){let E;const L=this;try{if(P==null||P.add(),L._o11y=L._o11y||{},L._o11y.activity=E=n.startActivity(a||H),c){const V=o._getTraceHeaders(E,f,L._o11y.method,L._o11y.absoluteUrl);Object.entries(V).forEach(re=>{L.setRequestHeader(re[0],re[1])})}L._o11y.sendTime=t.utility.perfNow(),o._originalXhrSend.call(this,...s)}catch(V){throw i&&(E?E.error(V):n.error(V)),J(L,!0),P==null||P.done(),V}};const be=new Proxy(o._originalXhr,{construct(s){const E=new s;return E.addEventListener("load",()=>{J(E),P==null||P.done()}),E.addEventListener("error",L=>{var V;try{const re=new Error("XHR Network-Level Error");if(i){const de=(V=E._o11y)===null||V===void 0?void 0:V.activity;de?de.error(re):n.error(re)}J(E)}finally{P==null||P.done()}}),E.addEventListener("abort",()=>{var L,V;(V=(L=E._o11y)===null||L===void 0?void 0:L.activity)===null||V===void 0||V.discard(),P==null||P.done()}),E}});o._global.XMLHttpRequest=be}networkInstrumentation(n){var i;if(t.utility.requireArgument(n,"options",["boolean","object"]),this._disableNetworkInstrumentation(),n){const a=typeof n=="object"?n:{};let c;t.utility.definedValueOrDefault(a.useTasker,!0)&&(c=(i=this._idleDetector)===null||i===void 0?void 0:i.declareNotifierTaskMulti("o11y network")),this._enableNetworkInstrumentation(t.utility.definedValueOrDefault(a.instrumentation,this._instr),t.utility.definedValueOrDefault(a.logErrors,!0),a.activityName,t.utility.definedValueOrDefault(a.useTracing,!0),a.tracingHeadersOptions,c,t.utility.definedValueOrDefault(a.logPerformance,!0),t.utility.definedValueOrDefault(a.logPerformanceActivityName,q),t.utility.definedValueOrDefault(a.skipUrls,[]),t.utility.definedValueOrDefault(a.fuzzyMapRange,u))}}resetRequestCounter(){o._reqIndex=0}_applyTraceHeaders(n,i,a){if((i==null?void 0:i.headers)!==void 0){if(i.headers instanceof Headers&&typeof i.headers.set=="function")return Object.entries(a).forEach(([c,f])=>{i.headers.set(c,f)}),!0;if(Array.isArray(i.headers))return Object.entries(a).forEach(c=>{i.headers.push(c)}),!0;if(typeof i.headers=="object")return i.headers=Object.assign(i.headers,a),!0}else{if(n instanceof Request&&n.headers instanceof Headers)return Object.entries(a).forEach(([c,f])=>{n.headers.set(c,f)}),!0;if(i)return i.headers=Object.assign({},a),!0}return!1}}o._global=t.utility.getGlobal(),o._isNetworkInstrumentationEnabled=!1,o._reqIndex=0;var g;(function(me){me[me.none=0]="none",me[me.start=1]="start",me[me.stop=2]="stop",me[me.both=3]="both"})(g||(g={}));const O="timedout",G="terminated",fe="discarded",_e={timedout:O,terminated:G,discarded:fe};class z{constructor(n,i,a,c,f,P,J,be,s){this._name=n,this._rootId=i,this._onStopped=a,this._onError=c,this._isSampled=J,this._noRerooting=s,this._errorCount=0,this._timerOverridden=g.none;const{tsNow:E,perfNow:L}=t.utility.time();if(z._count+=1,this._id=P||t.utility.generateUniqueId(),this._usePerf=typeof performance!="undefined"&&typeof performance.mark=="function"&&typeof performance.measure=="function",this._usePerf){this._perfName=`${this._name}__${z._count}`,this._perfId=`${this._name}__${this.id}`;try{performance.mark(this._perfId)}catch(V){this._usePerf=!1}}this._startTimestamp=E,this._startPerfTime=L,this._overrideTimer(be),f>0&&(this._timer=setTimeout(()=>{this._stopReason=this._stopReason||_e.timedout,this.stop()},f)),this._safety=new t.PublicSafety}get id(){return this._id}getId(){return this.id}getRootId(){return this._rootId}get stopReason(){return this._stopReason}error(n,i,a){this._safety.tryCatch(()=>{this._errorCount+=1,typeof n=="string"&&(n=new Error(n)),this._onError(n,this._getDetail(i,a))})}stop(n,i,a){this._safety.tryCatch(()=>{if(t.utility.requireArgumentIfDefined(n,"userSchemaOrText",["object","string"]),t.utility.requireArgumentIfDefined(i,"userData","object"),a){const c=a.perfStartOverride,f=t.utility.requireArgumentIfDefined(c,"options.perfStartOverride","number"),P=a.perfStopOverride,J=t.utility.requireArgumentIfDefined(P,"options.perfStopOverride","number");if(f&&c<0)throw new Error("perfStartOverride, if defined, must be >= 0");if(J&&(P<0||P<(f?c:this._startPerfTime)||P>t.utility.time().perfNow+100))throw new Error("perfStopOverride, if defined, must be >= 0 and >= startTime and <= now")}this._stopInternal(n,i,a)})}_overrideTimer(n,i){n!==void 0&&(this._startTimestamp=Math.round(this._startTimestamp-(this._startPerfTime-n)),this._startPerfTime=n,this._setTimerOverride(g.start)),i!==void 0&&(this._stopPerfTime=i,this._setTimerOverride(g.stop))}_setTimerOverride(n){this._timerOverridden===g.both||this._timerOverridden===n||n===g.none||(this._timerOverridden=this._timerOverridden===g.none?n:g.both)}_stopInternal(n,i,a){const c=t.utility.perfNow();if(this._usePerf)try{this._stopReason!==_e.discarded&&performance.measure(this._perfName,this._perfId),performance.clearMarks(this._perfId),performance.clearMeasures(this._perfName)}catch(P){}if(this._timer&&(clearTimeout(this._timer),this._timer=void 0),this.isStopped)return;a&&this._overrideTimer(a.perfStartOverride,a.perfStopOverride),this._stopPerfTime=this._timerOverridden===g.none||this._timerOverridden===g.start?c:this._stopPerfTime;const f=this._getDetail(n,i);this._onStopped(f)}get isStopped(){return this._stopPerfTime!==void 0}discard(){this._safety.tryCatch(()=>{this._stopReason=this._stopReason||_e.discarded,this.stop()})}terminate(n,i,a){this._safety.tryCatch(()=>{this._stopReason=this._stopReason||_e.terminated,this.stop(n,i,a)})}getIsSampled(){return this._isSampled||!1}_getDetail(n,i){return{id:this._id,rootId:this._rootId,name:this._name,userSchemaOrText:n,userData:i,stopReason:this._stopReason,startTimestamp:this._startTimestamp,startPerfTime:this._startPerfTime,stopPerfTime:this._stopPerfTime,errorCount:this._errorCount,isSampled:this.getIsSampled(),timerOverridden:this._timerOverridden,noRerooting:this._noRerooting}}getTraceHeaders(n){const i=this.id,a=this._rootId||i;return o.getHeaders(a,i,this.getIsSampled(),n)}getStartTimestamp(){return this._startTimestamp}getStartPerfTime(){return this._startPerfTime}getStopPerfTime(){return this._stopPerfTime}getErrorCount(){return this._errorCount}}z._count=0;const X=new Array(16).fill(0).join("");class le{getId(){return X}getRootId(){}error(){}stop(){}discard(){}terminate(){}getIsSampled(){return!1}getTraceHeaders(n){return{}}getStartTimestamp(){}getStartPerfTime(){}getStopPerfTime(){}getErrorCount(){return 0}}const ge=Object.freeze(new le);class Pe{getInstrumentedEventData(n,i,a,c){var f;const P={ownerComponent:a.tagName,parentComponent:((f=a.parentElement)===null||f===void 0?void 0:f.tagName)||void 0,simplePath:t.utility.getXpath(a)};switch(n){case 0:P.baseEvent=i;break;case 1:P.mouseEvent=i;break}return c&&(P.userPayload=t.schemaUtil.makePayload(c.schema,c.payload,!0)),P}getEventData(n){return{type:n.type}}getMouseEventData(n){return{altKey:n.altKey,bubbles:n.bubbles,button:n.button,buttons:n.buttons,cancelable:n.cancelable,clientX:n.clientX,clientY:n.clientY,composed:n.composed,defaultPrevented:n.defaultPrevented,detail:n.detail,eventPhase:n.eventPhase,isTrusted:n.isTrusted,timeStamp:n.timeStamp,type:n.type,ctrlKey:n.ctrlKey,metaKey:n.metaKey,movementX:n.movementX,movementY:n.movementY,offsetX:n.offsetX,offsetY:n.offsetY,pageX:n.pageX,pageY:n.pageY,screenX:n.screenX,screenY:n.screenY,shiftKey:n.shiftKey}}}const Ue=new Pe;class $e{constructor(n,i,a,c,f,P,J,be){this._name=n,this._ownerName=i,this._ownerAppName=a,this._tags=c,this._buckets=f,this._values=new Array,this._createdOn=P===void 0?t.utility.time().tsNow:P,J!==void 0&&(this._lastUpdatedOn=J),be!==void 0&&(this._values=be)}getName(){return this._name}getCreatedOn(){return this._createdOn}getLastUpdatedOn(){return this._lastUpdatedOn}getData(){return this.values}getBuckets(){return this.buckets}get buckets(){return this._buckets.slice(0,this._buckets.length)}get values(){return this._values.slice(0,this._values.length)}record(n){if(typeof n=="number"){this._values.push(n),this._lastUpdatedOn=t.utility.time().tsNow;return}throw new Error("BucketHistogram can only record numbers.")}reset(){this._lastUpdatedOn=void 0,this._values=[]}getOwnerName(){return this._ownerName}getOwnerAppName(){return this._ownerAppName}getTags(){return this._tags}}class Ve{constructor(n,i,a,c,f,P,J){this._name=n,this._ownerName=i,this._ownerAppName=a,this._tags=c,this._value=0,this._createdOn=f===void 0?t.utility.time().tsNow:f,P!==void 0&&(this._lastUpdatedOn=P),J!==void 0&&(this._value=J)}getName(){return this._name}getCreatedOn(){return this._createdOn}getLastUpdatedOn(){return this._lastUpdatedOn}getData(){return this._value}increment(n=1){if(typeof n=="number"&&n>0){this._value+=Math.round(n),this._lastUpdatedOn=t.utility.time().tsNow;return}throw new Error("UpCounter can only increment positive numbers.")}reset(){this._lastUpdatedOn=void 0,this._value=0}getOwnerName(){return this._ownerName}getOwnerAppName(){return this._ownerAppName}getTags(){return this._tags}}class We{constructor(n,i,a,c,f,P,J){this._name=n,this._ownerName=i,this._ownerAppName=a,this._tags=c,this._values=new Array,this._createdOn=f===void 0?t.utility.time().tsNow:f,P!==void 0&&(this._lastUpdatedOn=P),J!==void 0&&(this._values=J)}getName(){return this._name}getCreatedOn(){return this._createdOn}getLastUpdatedOn(){return this._lastUpdatedOn}getData(){return this.values}get values(){return this._values.slice(0,this._values.length)}record(n){if(typeof n=="number"){this._values.push(n),this._lastUpdatedOn=t.utility.time().tsNow;return}throw new Error("ValueRecorder can only record numbers.")}reset(){this._lastUpdatedOn=void 0,this._values=[]}getOwnerName(){return this._ownerName}getOwnerAppName(){return this._ownerAppName}getTags(){return this._tags}}class oe{constructor(n){if(this._map=new Map,typeof n=="number"&&n>0){this._maxSize=Math.ceil(n);return}throw new Error("maxSize must be a positive number")}get maxSize(){return this._maxSize}get(n){return this._map.get(n)}has(n){return this._map.has(n)}set(n,i){return this.has(n)||this._map.size(P[J]=i[J],P),{});return{key:`${Ne[a]}:${n}${JSON.stringify(c)}`,sortedTags:c}}}class Ge{constructor(){this.isMock=!0}}const Le=void 0,Me=["`"],it={internalError:"o11y-error"},Je=Object.freeze(Array.from(Object.values(it)));class Xe{constructor(n,i){this._nextGen=n,this._name=i,this._onActivityStoppedCallback=this._handleActivityStop.bind(this),this._onActivityErrorCallback=this._handleActivityError.bind(this);for(const c of Me)if(this._name.indexOf(c)>=0)throw new Error(`Name cannot include the reserved character "${c}"`);this._safety=new t.PublicSafety({increment:c=>this._incrementError(c)}),this._metrics=this._initMetrics();const a=t.schemaUtil.getOptions(e.simpleSchema,"Simple","text");this._simpleTextMaxLength=a?a["(meta.max_length)"]:t.maxStringLengthAppLimit}_initMetrics(){return new xe(this.name,()=>this._nextGen.appName||Xe.defaultAppName)}_incrementError(n=1){this._metrics.incrementCounter(it.internalError,n,!0)}get name(){return this._name}_wrapUserPayload(n,i,a=!1){let c;return typeof n=="string"?(c=e.simpleSchema,n?i={text:n.substring(0,this._simpleTextMaxLength)}:i=void 0):c=n,t.schemaUtil.makePayload(c,i,a)}_getEffectiveRootId(n){var i,a;return(a=(i=n==null?void 0:n.instrumentationContext)===null||i===void 0?void 0:i.rootId)!==null&&a!==void 0?a:this._nextGen.getDefaultInstrumentationContext().rootId}log(n,i,a){this._safety.tryCatch(()=>{const c=t.utility.time().tsNow;t.utility.requireArgument(n,"userSchemaOrText",["object","string"]),t.utility.requireArgumentIfDefined(i,"userData","object"),t.utility.requireArgumentIfDefined(a,"options","object");const f=this._wrapUserPayload(n,i);(f==null?void 0:f.payload)&&this._logInternal(this.name,f.schema,f.payload,c,this._getEffectiveRootId(a))})}_logInternal(n,i,a,c,f){const P=this._nextGen.addLog(n,i,a,c,f);if(!t.utility.isProduction){const J=t.payloadUtility.getExtraFields(i,a);!t.utility.isProduction&&J.length>0&&this.error("Extra fields",e.payloadDiagsSchema,{extras:J})}return P}error(n,i,a,c){return this._safety.tryCatch(()=>{t.utility.requireArgumentIfDefined(i,"userSchemaOrText",["object","string"]),t.utility.requireArgumentIfDefined(a,"userData","object"),t.utility.requireArgumentIfDefined(c,"options","object");const f=this._getEffectiveRootId(c);this._errorInternal(n,i,a,void 0,f)})}_errorInternal(n,i,a,c,f){const P=t.utility.time().tsNow;let J;if(n instanceof Error)J=n;else{let E;n==null||typeof n.toString!="function"?E="UNKNOWN":E=n.toString(),J=new Error(E)}const be=this._wrapUserPayload(i,a,!0),s={name:J.name,message:J.message,stack:J.stack,userPayload:be,activityId:c};return this._logInternal(this.name,e.errorSchema,s,P,f)}startActivity(n,i){return this._safety.tryCatchReturn(()=>{var a;t.utility.requireArgument(n,"name"),t.utility.requireArgumentIfDefined(i,"options","object");let c,f=(i==null?void 0:i.perfStartOverride)!==void 0;const P=(a=i==null?void 0:i.instrumentationContext)===null||a===void 0?void 0:a.rootId;return P?(f=!0,c={rootId:P,isRootActivitySampled:i.instrumentationContext.isRootActivitySampled}):c=this._nextGen.getDefaultInstrumentationContext(),new z(n,c.rootId,this._onActivityStoppedCallback,this._onActivityErrorCallback,Le,void 0,c.isRootActivitySampled,i==null?void 0:i.perfStartOverride,f)},ge)}_getActivityData(n){const i=this._wrapUserPayload(n.userSchemaOrText,n.userData,!0);return{id:n.id,name:n.name,duration:n.stopPerfTime-n.startPerfTime,stopReason:n.stopReason,userPayload:i,errorCount:n.errorCount,isSampled:n.isSampled,timerOverridden:n.timerOverridden,isRerooted:n.isRerooted}}_handleActivityStop(n){if(n.stopReason===fe)return;if(!n.isRoot&&!n.noRerooting){const a=this._nextGen.getRootActivityHistoryEntryByTime(n.startPerfTime);(!a&&n.rootId!==void 0||a&&n.rootId!==a.id)&&(n.rootId=a==null?void 0:a.id,n.isSampled=(a==null?void 0:a.isSampled)||!1,n.isRerooted=!0)}const i=this._getActivityData(n);this._logActivity(i,n.startTimestamp,n.rootId)}_logActivity(n,i,a){this._logInternal(this.name,e.activitySchema,n,i,a)}_handleActivityError(n,i){this._errorInternal(n,i.userSchemaOrText,i.userData,i.id,i.rootId)}domEvent(n,i,a,c,f){this._safety.tryCatch(()=>{var P;const J=t.utility.time().tsNow;t.utility.requireArgument(n,"event",[Event,Ge]),t.utility.requireArgument(i,"handledBy",[HTMLElement,"object"]);let be;i instanceof HTMLElement?be=i:(i=i,((P=i.template)===null||P===void 0?void 0:P.host)instanceof HTMLElement?be=i.template.host:t.utility.requireArgument(void 0,"handledBy"));const s=this._wrapUserPayload(a,c,!0),E=this._getEffectiveRootId(f);switch(n.type){case"click":{const L=n,V=this._nextGen.getClickTracker();V&&V.markEventHandled(L);const re=f==null?void 0:f.captureMouseData,de=Ue.getInstrumentedEventData(re?1:0,re?Ue.getMouseEventData(L):Ue.getEventData(L),be,s);de.auto=f==null?void 0:f._auto,this._logInternal(this.name,e.instrumentedEventSchema,de,J,E);break}default:throw new Error(t.utility.notImplemented)}})}incrementCounter(n,i=1,a=!1,c={}){this._safety.tryCatch(()=>{t.utility.requireArgument(n,"operation","string"),t.utility.checkForDenyListedValues(n,"operation",Je),t.utility.checkForReservedCharacters(n,"operation",Me),t.utility.requireArgument(i,"increment","number"),t.utility.requireArgument(a,"hasError","boolean"),t.utility.requireArgument(c,"tags","object"),Object.entries(c).forEach(f=>{t.utility.requireArgument(f[1],`Tag value for '${f[0]}'`,["string","number","boolean"])}),this._metrics.incrementCounter(n,i,a,c)})}trackValue(n,i,a=!1,c={}){this._safety.tryCatch(()=>{t.utility.requireArgument(n,"operation","string"),t.utility.checkForDenyListedValues(n,"operation",Je),t.utility.checkForReservedCharacters(n,"operation",Me),t.utility.requireArgument(i,"value","number"),t.utility.requireArgument(a,"hasError","boolean"),t.utility.requireArgument(c,"tags","object"),Object.entries(c).forEach(f=>{t.utility.requireArgument(f[1],`Tag value for '${f[0]}'`,["string","number","boolean"])}),this._metrics.trackValue(n,i,a,c)})}bucketValue(n,i,a=[],c=!1,f={}){this._safety.tryCatch(()=>{t.utility.requireArgument(n,"operation","string"),t.utility.checkForDenyListedValues(n,"operation",Je),t.utility.checkForReservedCharacters(n,"operation",Me),t.utility.requireArgument(i,"value","number"),t.utility.requireArgument(a,"buckets",Array),Object.entries(a).forEach(P=>{t.utility.requireArgument(P[1],`Bucket value for '${P[0]}'`,"number")}),t.utility.requireArgument(c,"hasError","boolean"),t.utility.requireArgument(f,"tags","object"),Object.entries(f).forEach(P=>{t.utility.requireArgument(P[1],`Tag value for '${P[0]}'`,["string","number","boolean"])}),this._metrics.bucketValue(n,i,a,c,f)})}getUpCounters(){return this._metrics.getUpCounters().filter(n=>n.getLastUpdatedOn())}getValueRecorders(){return this._metrics.getValueRecorders().filter(n=>n.getLastUpdatedOn())}getBucketHistograms(){return this._metrics.getBucketHistograms().filter(n=>n.getLastUpdatedOn())}registerForLogPrompt(n){t.utility.requireArgument(n,"listener","function"),this._nextGen.registerForLogPrompt(n)}_getAsaOptions(n){return n?Object.assign({instrumentationContext:n==null?void 0:n.instrumentationContext},n.startOptions):void 0}activity(n,i,a){var c,f,P,J;const be=this._getAsaOptions(a),s=this.startActivity(n,be);try{return i(s)}catch(E){throw s.error(E,(c=a==null?void 0:a.errorPayload)===null||c===void 0?void 0:c.schema,(f=a==null?void 0:a.errorPayload)===null||f===void 0?void 0:f.payload),E}finally{s.stop((P=a==null?void 0:a.stopPayload)===null||P===void 0?void 0:P.schema,(J=a==null?void 0:a.stopPayload)===null||J===void 0?void 0:J.payload,a==null?void 0:a.stopOptions)}}async activityAsync(n,i,a){var c,f,P,J;const be=this._getAsaOptions(a),s=this.startActivity(n,be);try{return await i(s)}catch(E){throw s.error(E,(c=a==null?void 0:a.errorPayload)===null||c===void 0?void 0:c.schema,(f=a==null?void 0:a.errorPayload)===null||f===void 0?void 0:f.payload),E}finally{s.stop((P=a==null?void 0:a.stopPayload)===null||P===void 0?void 0:P.schema,(J=a==null?void 0:a.stopPayload)===null||J===void 0?void 0:J.payload,a==null?void 0:a.stopOptions)}}}Xe.defaultAppName="APP_NOT_REGISTERED";const ct=.1,Ze=20;class dt{constructor(n){if(this._historyMap=new Map,this._historyList=new Array,t.utility.requireArgumentIfDefined(n,"limit","number")){if(n=Math.ceil(n),n<=0)throw new Error("Limit must be a positive number")}else n=Ze;this._graceCount=Math.max(1,Math.floor(n*ct)),this._realLimit=1+n+this._graceCount}add(n){if(this._historyMap.has(n.id))throw new Error(`RootActivityHistoryImpl.add: entry already exists for rootId: ${n.id}`);this._historyMap.set(n.id,n),this._historyList.push(n),this._historyList.length===this._realLimit&&this._historyList.splice(1,this._graceCount).forEach(a=>this._historyMap.delete(a.id))}get count(){return this._historyList.length}findById(n){return this._historyMap.get(n)}findByTime(n){let i,a=Number.MAX_VALUE;for(const c of this._historyList){const f=n-c.startPerfTime;f>=0&&(c.stopPerfTime===void 0||n{t.utility.requireArgument(n,"name");const f=new ae(n,this._onRootActivityStoppedCallback,this._onActivityErrorCallback,i,a,c==null?void 0:c.perfStartOverride);if(!this._allowMulti){const P={id:f.getId(),name:n,startPerfTime:f.getStartPerfTime(),isSampled:f.getIsSampled()};if(this._rootActivityHistory.add(P),this._singleRootActivity&&!this._singleRootActivity.isStopped){const J=this._singleRootActivity.getId();this._singleRootActivity.terminate(),f.preRootId=J}this._singleRootActivity=f}return f},C)}_handleRootActivityStop(n){const i=this._rootActivityHistory.findById(n.id);if(i&&(i.stopPerfTime=n.stopPerfTime,i.startPerfTime=n.startPerfTime),n.stopReason===fe)return;const a=this._getActivityData(n);this._logActivity(a,n.startTimestamp),this._singleRootActivity=void 0}_getActivityData(n){const i=super._getActivityData(n);return i.isRoot=n.isRoot,i.preRootId=n.preRootId,i}getSingleRootActivityId(){var n;return(n=this._singleRootActivity)===null||n===void 0?void 0:n.getId()}isSingleRootActivitySampled(){var n;return(n=this._singleRootActivity)===null||n===void 0?void 0:n.getIsSampled()}_initMetrics(){return new xe(this.name,()=>this.name)}getRootActivityHistoryEntry(n){return this._rootActivityHistory.findByTime(n)}}const x=5;class Y{constructor(n,i){this._instr=n,this._doc=i,this._isActive=!1,this._boundClickListener=this._clickListener.bind(this),t.utility.requireArgument(n,"_instr"),t.utility.requireArgument(i,"_doc")}activate(){this._isActive||(this._doc.addEventListener("click",this._boundClickListener,!0),this._isActive=!0)}deactivate(){this._isActive&&(this._doc.removeEventListener("click",this._boundClickListener,!0),this._isActive=!1)}markEventHandled(n){this._ignoredEvent=n}_clickListener(n){var i;let a=(i=n.composedPath)===null||i===void 0?void 0:i.call(n);(!a||!a.length)&&(a=n.path);const c=this._getClickableElement(a);c&&setTimeout(()=>{n!==this._ignoredEvent&&this._instr.domEvent(n,c,void 0,void 0,{_auto:!0})})}_getClickableElement(n){var i,a;const c=n?Math.min(n.length,x):0;for(let f=0;fthis.sendLog(n)),this._metricsBuffer.forEach(n=>this.sendMetrics(n)),this._logBuffer=void 0,this._metricsBuffer=void 0}}class ye{constructor(){this._upCounters=[],this._valueRecorders=[],this._bucketHistograms=[]}add(n){var i,a,c;((i=n.upCounters)===null||i===void 0?void 0:i.length)&&this._upCounters.push(...n.upCounters.map(f=>new Ve(f.name,f.ownerName,f.ownerAppName,t.metricsUtility.getMetricsTags(f.tags),f.createdTimestamp,f.lastUpdatedTimestamp,f.value))),((a=n.valueRecorders)===null||a===void 0?void 0:a.length)&&this._valueRecorders.push(...n.valueRecorders.map(f=>new We(f.name,f.ownerName,f.ownerAppName,t.metricsUtility.getMetricsTags(f.tags),f.createdTimestamp,f.lastUpdatedTimestamp,f.values))),((c=n.bucketHistograms)===null||c===void 0?void 0:c.length)&&this._bucketHistograms.push(...n.bucketHistograms.map(f=>new $e(f.name,f.ownerName,f.ownerAppName,t.metricsUtility.getMetricsTags(f.tags),f.buckets,f.createdTimestamp,f.lastUpdatedTimestamp,f.values)))}getUpCounters(){return this._upCounters=this._upCounters.filter(n=>n.getLastUpdatedOn()!==void 0),this._upCounters}getValueRecorders(){return this._valueRecorders=this._valueRecorders.filter(n=>n.getLastUpdatedOn()!==void 0),this._valueRecorders}getBucketHistograms(){return this._bucketHistograms=this._bucketHistograms.filter(n=>n.getLastUpdatedOn()!==void 0),this._bucketHistograms}}const we=1e3;class Re{constructor(n,i){this._connector=n,this._pollInterval=we,t.utility.requireArgument(n,"_connector","object"),t.utility.requireArgumentIfDefined(i,"_pollInterval","number")&&i>0&&(this._pollInterval=i)}collect(n,i,a){const c={schema:n,data:i,logMeta:a};this._connector.sendLog(c)}receiveMetricsExtractors(n){this._metricsExtractors=n,this._collectAndSendMetrics(),setInterval(this._collectAndSendMetrics.bind(this),this._pollInterval)}_collectAndSendMetrics(){const n={upCounters:t.metricsUtility.getUpCounters(this._metricsExtractors.getAllUpCounters()),valueRecorders:t.metricsUtility.getValueRecorders(this._metricsExtractors.getAllValueRecorders()),bucketHistograms:t.metricsUtility.getBucketHistograms(this._metricsExtractors.getAllBucketHistograms())};(n.upCounters.length||n.valueRecorders.length||n.bucketHistograms.length)&&this._connector.sendMetrics(n)}}const Te=80,Ie="_CUT",v=Te-Ie.length;function Q(){}class ue{get pagePayloadProvider(){return this._pagePayloadProvider}set pagePayloadProvider(n){this._pagePayloadProvider=n}get appPayloadProvider(){return this._appPayloadProvider}set appPayloadProvider(n){this._appPayloadProvider=n}constructor(n){this._idleDetector=n,this._logCollectors=new Set,this._instruments=new Map,this._seqBySchema=new Map,this._sequence=0,this._forceDisabledLogCollectors=new Set,this._logCollectorFailures=new Map,this._isBufferingEnabled=!1,this._buffer=[],this._logCollectionListeners=new Set,this._opMode="default",this._isSender=!1,this._isReceiver=!1,this._decimalPoints=2}registerApp(n,i){var a;if(t.utility.requireArgument(n,"name","string"),this._appInstr)throw new Error("An app has already been registered with instrumentation.");if(this._instruments.get(n))throw new Error(`The instrumentation name ${n} is already taken`);if(this._initOpMode(i==null?void 0:i.operationMode),this._isSender=this._opMode==="sender",this._isReceiver=this._opMode==="receiver",(i==null?void 0:i.decimalPoints)!==void 0&&(this._decimalPoints=i.decimalPoints),this._clientSessionId=((a=i==null?void 0:i.clientSessionId)===null||a===void 0?void 0:a.toString())||t.utility.generateUniqueId(),this._appInstr=new w(this,n,i==null?void 0:i.allowMultipleRootActivities),this._instruments.set(n,this._appInstr),this._isSender){const P=new Re(new he(window,i==null?void 0:i.allowedReceiverOrigins),i==null?void 0:i.senderMetricsPollingInterval);this.registerLogCollector(P),this.registerMetricsCollector(P)}else this._isReceiver&&(this._metricsStore=new ye,this._receiverConnector=new te(P=>{P.logMeta.receiverClientSessionId=this._clientSessionId,P.logMeta.receiverRootId=this._appInstr.getSingleRootActivityId(),this._multiplex(P.schema,P.data,P.logMeta)},P=>{this._metricsStore.add(P)},()=>{this._appInstr.incrementCounter("o11y-error-receiver",1,!0)}));this._isBufferingEnabled=!this._isSender&&(i==null?void 0:i.enableBuffering);const f=new o(this.getInstrumentation("Network"),this._idleDetector);return{log:this._appInstr.log.bind(this._appInstr),error:this._appInstr.error.bind(this._appInstr),startActivity:this._appInstr.startActivity.bind(this._appInstr),domEvent:this._appInstr.domEvent.bind(this._appInstr),incrementCounter:this._appInstr.incrementCounter.bind(this._appInstr),trackValue:this._appInstr.trackValue.bind(this._appInstr),bucketValue:this._appInstr.bucketValue.bind(this._appInstr),networkInstrumentation:f.networkInstrumentation.bind(f),registerForLogPrompt:this._appInstr.registerForLogPrompt.bind(this._appInstr),activity:this._appInstr.activity.bind(this._appInstr),activityAsync:this._appInstr.activityAsync.bind(this._appInstr),startRootActivity:this._appInstr.startRootActivity.bind(this._appInstr),registerLogCollector:this._isSender?Q:this.registerLogCollector.bind(this),registerMetricsCollector:this._isSender?Q:this.registerMetricsCollector.bind(this),activateClickTracker:this.activateClickTracker.bind(this),deactivateClickTracker:this.deactivateClickTracker.bind(this),disableBuffering:this.disableBuffering.bind(this),promptLogCollection:this.promptLogCollection.bind(this),getClientSessionId:this.getClientSessionId.bind(this),getOperationMode:this.getOperationMode.bind(this),startReceiving:this._isReceiver?this._receiverConnector.openComms.bind(this._receiverConnector):Q,stopReceiving:this._isReceiver?this._receiverConnector.closeComms.bind(this._receiverConnector):Q}}getInstrumentation(n){t.utility.requireArgument(n,"name","string"),n.length>Te&&(n=n.substring(0,v)+Ie);let i=this._instruments.get(n);if(!i)i=new Xe(this,n),this._instruments.set(n,i);else if(i===this._appInstr)throw new Error(`The instrumentation name ${n} is being used by the app.`);return i}get appName(){var n;return(n=this._appInstr)===null||n===void 0?void 0:n.name}getRootActivityHistoryEntryByTime(n){var i;return(i=this._appInstr)===null||i===void 0?void 0:i.getRootActivityHistoryEntry(n)}addLog(n,i,a,c,f){var P,J,be;t.payloadUtility.checkInputs(i,a),this._sequence+=1;const s=t.schemaUtil.isInternal(i),E=s&&(a==null?void 0:a.userPayload)?a.userPayload.schema:i,L=t.schemaUtil.getSchemaId(E);let V=this._seqBySchema.get(L)||0;V+=1,this._seqBySchema.set(L,V);const re={timestamp:c,rootId:f,sequence:this._sequence,schemaSequence:V,loggerName:n,pagePayload:void 0,appPayload:void 0,loggerAppName:this.appName,connectionType:t.utility.getConnectionType(),clientSessionId:this._clientSessionId,age:t.utility.getAge(c)},de={schema:i,data:a,logMeta:re};return re.pagePayload=t.payloadUtility.getPayloadFromProvider(this.pagePayloadProvider,de),re.appPayload=t.payloadUtility.getPayloadFromProvider(this.appPayloadProvider,de),this._isSender||(a=t.utility.clone(a)),typeof this._decimalPoints=="number"&&(t.utility.roundNumbersInObject(a,this._decimalPoints),s&&t.utility.roundNumbersInObject((P=a.userPayload)===null||P===void 0?void 0:P.payload,this._decimalPoints),t.utility.roundNumbersInObject((J=re.pagePayload)===null||J===void 0?void 0:J.payload,this._decimalPoints),t.utility.roundNumbersInObject((be=re.appPayload)===null||be===void 0?void 0:be.payload,this._decimalPoints)),this._isBufferingEnabled&&this._buffer.push(de),this._multiplex(i,a,re),this._sequence}_multiplex(n,i,a){const c=Array.from(this._logCollectors).filter(f=>{var P;return!this._forceDisabledLogCollectors.has(f)&&!((P=f.getIsCollectDisabled)===null||P===void 0?void 0:P.call(f))});if(c.length>0)for(const f of c){let P=this._logCollectorFailures.get(f)||0;try{f.collect(n,i,a),P>0&&this._logCollectorFailures.set(f,P-1)}catch(J){P+=1,P>=ue._collectorFailureLimit?(this._forceDisabledLogCollectors.add(f),this._appInstr&&(typeof J=="string"||J instanceof Error)&&this._appInstr.error(J)):this._logCollectorFailures.set(f,P)}}}getBuffer(){return this._buffer}disableBuffering(){this._isBufferingEnabled=!1,this._buffer=[]}getClickTracker(){return this._autoClickTracker}getDefaultInstrumentationContext(){var n,i;return{rootId:(n=this._appInstr)===null||n===void 0?void 0:n.getSingleRootActivityId(),isRootActivitySampled:(i=this._appInstr)===null||i===void 0?void 0:i.isSingleRootActivitySampled()}}activateClickTracker(){typeof document!="undefined"&&(this._autoClickTracker||(this._autoClickTracker=new Y(this._appInstr,document)),this._autoClickTracker.activate())}deactivateClickTracker(){this._autoClickTracker&&(this._autoClickTracker.deactivate(),this._autoClickTracker=void 0)}registerLogCollector(n,i){if(t.utility.requireArgument(n,"collector"),!this._logCollectors.has(n)&&(this._logCollectors.add(n),this._logCollectorFailures.set(n,0),(!n.getIsCollectDisabled||!n.getIsCollectDisabled())&&(i==null?void 0:i.retroactive)))for(const a of this._buffer)n.collect(a.schema,a.data,a.logMeta)}registerMetricsCollector(n){if(t.utility.requireArgument(n,"collector"),this._metricsCollector)throw new Error("A metrics Collector is already registered.");this._metricsCollector=n,this._metricsCollector.receiveMetricsExtractors({getAllUpCounters:this._getAllUpCounters.bind(this),getAllValueRecorders:this._getAllValueRecorders.bind(this),getAllBucketHistograms:this._getAllBucketHistograms.bind(this)})}_getAllUpCounters(){var n;return Array.from(this._instruments.values()).map(a=>a.getUpCounters()).reduce((a,c)=>a.concat(c),((n=this._metricsStore)===null||n===void 0?void 0:n.getUpCounters())||[])}_getAllValueRecorders(){var n;return Array.from(this._instruments.values()).map(a=>a.getValueRecorders()).reduce((a,c)=>a.concat(c),((n=this._metricsStore)===null||n===void 0?void 0:n.getValueRecorders())||[])}_getAllBucketHistograms(){var n;return Array.from(this._instruments.values()).map(a=>a.getBucketHistograms()).reduce((a,c)=>a.concat(c),((n=this._metricsStore)===null||n===void 0?void 0:n.getBucketHistograms())||[])}registerForLogPrompt(n){this._logCollectionListeners.add(n)}promptLogCollection(n){for(const i of this._logCollectionListeners.keys())try{i(n)}catch(a){if(!t.utility.isProduction)throw a}}getClientSessionId(){return this._clientSessionId}_initOpMode(n){if(typeof n=="function"&&(n=n()),(n===void 0||typeof window!="object")&&(n="default"),["default","receiver","sender"].indexOf(n)>=0)this._opMode=n;else throw new Error(`Invalid operation mode: ${n}`)}getOperationMode(){return this._opMode}}ue._collectorFailureLimit=5;class ce{get _lazyNextGen(){return this._nextgen||(this._nextgen=new ue(this._idleDetector)),this._nextgen}constructor(n){this._idleDetector=n,t.utility.requireArgument(n,"_idleDetector")}registerInstrumentedApp(n,i){(!i||i.isProduction!==!1)&&t.utility.markProduction();const a=this._lazyNextGen.registerApp(n,i);return i&&(this._nextgen.appPayloadProvider=i.appPayloadProvider,this._nextgen.pagePayloadProvider=i.pagePayloadProvider),a}getInstrumentation(n){return this._lazyNextGen.getInstrumentation(n)}}const De=t.utility.time.bind(t.utility),Ye="sfcore.customCmp.CustomComponentLog",at={Error:"Crimson",Activity:"CadetBlue",InstrumentedEvent:"DarkOliveGreen",O11ySample:"BlueViolet"},ot={Error:"white",Activity:"white",InstrumentedEvent:"white",O11ySample:"white"},tt="black",st="Gainsboro";class ht{constructor(n){this._simpleFilters=new Set,this._regexFilters=[],n&&this._log("ConsoleCollector",n)}collect(n,i,a){const c=t.schemaUtil.getSchemaId(n);if(!this._shouldLog(c))return;if(c===Ye){this._logCustom(i);return}let f,P,J;t.schemaUtil.isInternal(n)?(f=n.name,P=ot[n.name]||tt,J=at[n.name]||st):f=c,this._log(f,i,a,P,J)}_shouldLog(n){return this._simpleFilters.size==0&&this._regexFilters.length==0?!0:this._simpleFilters.has(n)||this._regexFilters.some(i=>i.test(n))}addFilter(n){n instanceof RegExp?this._regexFilters.push(n):this._simpleFilters.add(n)}removeFilter(n){if(n instanceof RegExp){const i=this._regexFilters.findIndex(a=>a.source===n.source);i>=0&&this._regexFilters.splice(i,1)}else this._simpleFilters.delete(n)}clearFilters(){this._simpleFilters.clear(),this._regexFilters.splice(0,this._regexFilters.length)}getFilters(){return Array.from(this._simpleFilters).concat(this._regexFilters).sort()}_log(n,i,a,c=tt,f=st){const P=`color:${c};background-color:${f}`;console.log(`%cO11Y%c ${n}`,"color:white;background-color:#FF6600;font-weight:bold",P,i||"",a||"")}_logCustom(n){console.log("%clightning/logger","color:white;background-color:#00a1e0;font-weight:bold",n||"")}}const qe="250.8.0",Qe=new U({logThreshold:300,reportListener:me=>{nt==null||nt.log(e.idleDetectorReportSchema,me)},errorListener:(me,n)=>{nt==null||nt.error(me,n)}}),et=new ce(Qe),gt=et.registerInstrumentedApp.bind(et),rt=et.getInstrumentation.bind(et),nt=rt("IdleDetector");r.ConsoleCollector=ht,r._version=qe,r.getInstrumentation=rt,r.idleDetector=Qe,r.registerInstrumentedApp=gt,r.time=De,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("o11y/client",["exports","o11y/client/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/o11y/v/1",["exports"],function(r){"use strict";const e={};r._o11y=e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/o11y",["exports","webruntime/o11y/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/expressions/v/1",["exports"],function(r){"use strict";let e;const t="1970-01-01T",b="T00:00:00",I="provider",U="providers";function D(S){return S!==null&&typeof S=="object"}function R(S){try{const H=S?.indexOf(":")>-1,q=S?.indexOf("-")>-1;return S===""||!H&&!q?null:(typeof S=="string"&&(q||(S=t+S),H||(S=S+b),S=S.trim().replace(" ","T"),S.endsWith("Z")||(S+="Z")),new Date(S))}catch(H){return null}}function p(S){try{const H=S(),q=Reflect.get(this,U);for(const u of q)if(!u?.hasData?.())throw new Error;return H??null}catch(H){return}}function h(S){return D(this)&&(Reflect.set(this,I,S),Reflect.get(this,U).push(S)),S?.getData?.()}function l(S={},H){if(!!S&&Object.prototype.hasOwnProperty.call(S,H))return S[H]}function m(S,H){Array.isArray(S)||(S=[S]);const q=S.filter(H);if(!!q.length)return q.length===1?q[0]:q}function y(S,H){if(D(this)&&Reflect.has(this,I)){const q=Reflect.get(this,I);if(Reflect.deleteProperty(this,I),!q?.hasData?.(H))throw new Error;const u=Reflect.get(this,U);u.indexOf(q)>=0&&u.splice(u.indexOf(q),1)}return typeof H=="string"&&Array.isArray(S)?(S=S.map(q=>q[H]).filter(q=>q!==void 0),S.length===0?void 0:S.length===1?S[0]:S):S?.[H]}function j(){}const _={toDate(S){if(S!=null){const H=R(S)?.setUTCHours(0,0,0,0);if(H!==void 0&&!isNaN(H))return new Date(H)}return null},toTime(S){if(S!=null){const H=R(S)?.setUTCFullYear(1970,0,1);if(H!==void 0&&!isNaN(H))return new Date(H)}return null},toDatetime(S){return S!=null?R(S):null},isBlank(S){return!S&&typeof S!="number"},contains(S,H){return S!=null?S.includes(H):!1},begins(S,H){return H==null?!0:S!=null?S.toString().startsWith(H.toString()):!1}},A=(...S)=>(e={[U]:[],[I]:null},p.apply(e,S)),k=(...S)=>h.apply(e,S),F=(...S)=>y.apply(e,S),N=(...S)=>l.apply(e,S),M=(...S)=>m.apply(e,S),B=(...S)=>j.apply(e,S);r.EXPR_CLOSURE=A,r.EXPR_FILTER=M,r.EXPR_FUNCTION=B,r.EXPR_GLOBAL=N,r.EXPR_MEMBER=F,r.EXPR_PROVIDER=k,r.EXPR_RUNTIME=_,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/expressions",["exports","webruntime/expressions/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/routerContainer/v/1",["exports","lwc/v/6_6_3","webruntime/errors/v/1_66_657","lwr/navigation/v/0_13_0-alpha_5","webruntime/routingService/v/1","webruntime/defaultView/v/1_66_657"],function(r,e,t,b,I,U){"use strict";function D(m){return m&&typeof m=="object"&&"default"in m?m:{default:m}}var R=D(U),p=void 0;class h extends e.LightningElement{constructor(...y){super(...y);this.view=void 0,this._routeParams=void 0,this.generatedTemplateHtml=void 0,this.previousTemplateHtml=void 0,this.attributes={},this.route={}}get routeParams(){return this._routeParams||{}}set routeParams(y){this._routeParams=y}render(){return this.generatedTemplateHtml}connectedCallback(){const y=this.view||R.default;this.generatedTemplateHtml=y.html,this.attributes=y.attributes(this,this.routeParams),this.subscription=I.subscribe(this.routeChange.bind(this))}viewChange(y){I.handleExtraRouteParams(this.route),this.generatedTemplateHtml=y.html;const{state:j,attributes:_}=this.route;this._routeParams={...j,..._},this.attributes=y.attributes(this,this.routeParams)}routeChange(y){this.route=y.route||null}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}errorCallback(y,j){t.reportError({subject:"router level error",error:y,wcstack:j})}renderedCallback(){this.previousTemplateHtml!==this.generatedTemplateHtml&&this.generatedTemplateHtml!==R.default.html&&(this.previousTemplateHtml=this.generatedTemplateHtml,this.dispatchEvent(new CustomEvent("viewchange",{bubbles:!0,composed:!0,detail:{route:this.route}})))}}h.renderMode="light",e.registerDecorators(h,{publicProps:{view:{config:0},routeParams:{config:3}},wire:{viewChange:{adapter:b.CurrentView,method:1,config:function(m){return{}}}},fields:["_routeParams","generatedTemplateHtml","previousTemplateHtml","attributes","route"]});var l=e.registerComponent(h,{tmpl:p,sel:"webruntime-router-container",apiVersion:62});r.default=l,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/routerContainer",["exports","webruntime/routerContainer/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/componentContainer/v/1",["exports","lwc/v/6_6_3"],function(r,e){"use strict";function t(l,m,y){var j=l?"."+l+"-host":"";return(m?":host {":j+" {")+"display: flow-root;}"}t.$scoped$=!0;var b=[t];const I={key:0},U=[];function D(l,m,y,j){const{s:_}=l;return[_("",I,U,y)]}var R=e.registerTemplate(D);D.slots=[""],D.stylesheets=[],D.renderMode="light",b&&D.stylesheets.push.apply(D.stylesheets,b),D.stylesheetToken="lwc-4k1qbp7cls1",D.legacyStylesheetToken="webruntime-componentContainer_componentContainer",e.freezeTemplate(D);class p extends e.LightningElement{}p.renderMode="light";var h=e.registerComponent(p,{tmpl:R,sel:"webruntime-component-container",apiVersion:62});r.default=h,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/componentContainer",["exports","webruntime/componentContainer/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/slotContainer/v/1",["exports","lwc/v/6_6_3"],function(r,e){"use strict";const t=[];function b(R,p,h,l){const{s:m}=R;return[p.isVisible?m("",{key:0,slotData:p.variations},t,h):null]}var I=e.registerTemplate(b);b.slots=[""],b.stylesheets=[],b.renderMode="light",b.stylesheetToken="lwc-769n4j124ma",b.legacyStylesheetToken="webruntime-slotContainer_slotContainer",e.freezeTemplate(b);class U extends e.LightningElement{constructor(...p){super(...p);this.visibilityExpression=void 0,this.hidden=void 0,this.variationExpressions=void 0}get isVisible(){return this.hidden?!this.visibilityExpression:this.visibilityExpression}get variations(){const p={},h=!!this.variationExpressions?.find(y=>y===!0),l=this.variationExpressions?.findIndex(y=>y===!0),m=this.variationExpressions?.findIndex(y=>typeof y=="undefined")!==-1;return this.variationExpressions?.forEach(function(y,j){const _=`variation${j+1}`;m||h&&l!==j?p[_]=!1:y===!0?p[_]=!0:(typeof y=="undefined",p[_]=!1)}),p.variation0=!h&&!m,p}}U.renderMode="light",e.registerDecorators(U,{publicProps:{visibilityExpression:{config:0},hidden:{config:0},variationExpressions:{config:0}}});var D=e.registerComponent(U,{tmpl:I,sel:"webruntime-slot-container",apiVersion:62});r.default=D,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/slotContainer",["exports","webruntime/slotContainer/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/visibilityContainer/v/1",["exports","lwr/loaderLegacy/v/0_13_0-alpha_5","lwc/v/6_6_3","@app/isDesignMode/v/1"],function(r,e,t,b){"use strict";function I(_){return _&&typeof _=="object"&&"default"in _?_:{default:_}}var U=I(b);function D(_,A,k){var F=_?"."+_+"-host":"";return"@media only screen and (max-width: 47.9375em) {"+(A?":host.webruntime-visibility-container.dxp-sm-hide {":F+".webruntime-visibility-container.dxp-sm-hide {")+"display: none;}}@media only screen and (min-width: 48em) and (max-width: 64em) {"+(A?":host.webruntime-visibility-container.dxp-md-hide {":F+".webruntime-visibility-container.dxp-md-hide {")+"display: none;}}@media only screen and (min-width: 64.0625em) {"+(A?":host.webruntime-visibility-container.dxp-lg-hide {":F+".webruntime-visibility-container.dxp-lg-hide {")+"display: none;}}"}D.$scoped$=!0;var R=[D];const p={key:0},h=[];function l(_,A,k,F){const{s:N}=_;return[A.hidden?null:N("",p,h,k)]}var m=t.registerTemplate(l);l.slots=[""],l.stylesheets=[],l.renderMode="light",R&&l.stylesheets.push.apply(l.stylesheets,R),l.stylesheetToken="lwc-7ethp7o0ig8",l.legacyStylesheetToken="webruntime-visibilityContainer_visibilityContainer",t.freezeTemplate(l);class y extends t.LightningElement{constructor(...A){super(...A);this.hiddenInDesktop=!1,this.hiddenInTablet=!1,this.hiddenInMobile=!1,this.hidden=!0}connectedCallback(){const A={Small:{isHidden:this.hiddenInMobile,mediaQuery:"only screen and (max-width: 47.9375em)",class:"dxp-sm-hide"},Medium:{isHidden:this.hiddenInTablet,mediaQuery:"only screen and (min-width: 48em) and (max-width: 64em)",class:"dxp-md-hide"},Large:{isHidden:this.hiddenInDesktop,mediaQuery:"only screen and (min-width: 64.0625em)",class:"dxp-lg-hide"}};let k="";Object.values(A).forEach(F=>{F.isHidden?this.classList.add(F.class):k+=k?`, ${F.mediaQuery}`:F.mediaQuery}),U.default?this.classList.add("interactions-element","webruntime-design-visibility-container"):this.classList.add("webruntime-visibility-container"),e.load("webruntime/formFactor/v/1").then(({getFormFactor:F})=>{if(typeof window!="undefined"&&!U.default&&A[F()].isHidden){if(k){const N=window.matchMedia(k),M=B=>{B.matches&&(this.hidden=!1,N.removeEventListener("change",M))};N.addEventListener("change",M)}}else this.hidden=!1})}}y.renderMode="light",y.validationOptOut=["class"],t.registerDecorators(y,{publicProps:{hiddenInDesktop:{config:0},hiddenInTablet:{config:0},hiddenInMobile:{config:0}},track:{hidden:1}});var j=t.registerComponent(y,{tmpl:m,sel:"webruntime-visibility-container",apiVersion:62});r.default=j,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/visibilityContainer",["exports","webruntime/visibilityContainer/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/serverRouter/v/0_13_0-alpha_5",["exports","lwr/contextProvider/v/0_13_0-alpha_5","lwr/metrics/v/0_13_0-alpha_5","lwr/navigation/v/0_13_0-alpha_5","lwr/navigationMixinHacks/v/0_13_0-alpha_5","lwr/profiler/v/0_13_0-alpha_5","lwr/router/v/0_13_0-alpha_5","lwr/routerErrors/v/0_13_0-alpha_5","lwr/routerUtils/v/0_13_0-alpha_5"],function(r,e,t,b,I,U,D,R,p){"use strict";class h{constructor(y,j,_){this.contextId=Object.freeze(()=>{}),this.router=j,this.target=_,this.handleNavHook=y.handleNavigation,this.preNavHook=y.preNavigate,this.errorNavHook=y.errorNavigate,this.initWires(y.url)}async navigate(y,j,_){if(p.hasDocument){if(this.handleNavHook&&!this.handleNavHook(y))return;const A=await this.getValidatedUrl(y,_);A&&(document.location.href=A)}}generateUrl(y,j){return this.router.generateUrl(y,j)}initWires(y){if(!y&&p.hasDocument&&(y=document.location.href),!y){this.processError(R.generateMessageObject(R.messages.NO_INIT_URL));return}y=this.getRelativeUrl(y);const j=this.router.matchRoute(y,{});if(!j){this.processError(R.generateMessageObject(R.messages.MISSING_ROUTE,[y]));return}this.currentRoute=j,b.registerNavigationHelm(this.contextId,{navigate:(_,A,k)=>this.navigate(_,A,k),generateUrl:(_,A)=>this.generateUrl(_,A),subscribe:()=>{throw new Error("The server router does not support the subscribe API")}}),e.provideContext(this.contextId,this.target,e.navigationContextContextualizer,b.NavigationContext),e.provideContext(this.currentRoute?.route.pageReference,this.target,e.currentPageReferenceContextualizer,b.CurrentPageReference),p.hasDocument&&this.target.addEventListener(I.CONTEXT_ID_BACKDOOR,_=>{const A=_;A.detail.callback&&A.detail.callback(this.contextId)})}getRelativeUrl(y){if(y.startsWith("http")){const j=new URL(y);return`${j.pathname}${j.search}`}return y}async getValidatedUrl(y,j){const _=this.router.matchRoute(y,{});if(!_){this.processError(R.generateMessageObject(R.messages.NO_ROUTE_MATCH,[JSON.stringify(y)]));return}if(!(this.preNavHook&&await this.preNavHook({current:this.currentRoute,next:_}))){this.processError(R.generateMessageObject(R.messages.PRENAV_FAILED,[JSON.stringify(y)]));return}return this.router.generateUrl(y,j)}processError(y){U.logOperationStart({id:t.ROUTER_ERROR}),this.errorNavHook&&this.errorNavHook(y)}}function l(m,y){new h(m,D.createRouter(m),y)}r.ServerRouter=h,r.createServerRouter=l,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/serverRouter",["exports","lwr/serverRouter/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/router/v/0_13_0-alpha_5",["exports","lwr/routerUtils/v/0_13_0-alpha_5","lwr/routerErrors/v/0_13_0-alpha_5","lwr/observable/v/0_13_0-alpha_5"],function(r,e,t,b){"use strict";class I{constructor(R){this.deprecatedConfig={},this.routeHandlerId=0,this.compiledRoutes=[],this.routeObservable=b.createObservable(),this.config={basePath:R.basePath||"",i18n:R.i18n||e.DEFAULT_I18N_ROUTER_CONFIG,caseSensitive:Boolean(R.caseSensitive),routes:R.routes||[],generateUrl:(l,m)=>e.getUrlFromPageReference(l,this.compiledRoutes,this.config.basePath,this.config.i18n,m),parseUrl:l=>e.getPageReferenceFromUrl(l,this.compiledRoutes,this.config.basePath,this.config.i18n)};const{DEPRECATED_getRouteFromUrl:p,DEPRECATED_getUrlFromRoute:h}=R;p&&(this.deprecatedConfig.DEPRECATED_getRouteFromUrl=p),h&&(this.deprecatedConfig.DEPRECATED_getUrlFromRoute=h),this.compiledRoutes=e.parseRoutes(this.config)}generateUrl(R,p){const{DEPRECATED_getUrlFromRoute:h}=this.deprecatedConfig;return h?h(R,this.config.generateUrl,p):this.config.generateUrl(R,p)}parseUrl(R){const{DEPRECATED_getRouteFromUrl:p}=this.deprecatedConfig;return p?p(R,this.config.parseUrl):this.config.parseUrl(R)}matchRoute(R,p){const h=typeof R=="string"?R:this.generateUrl(R,p);if(h===null)return null;const l=e.matchRouteByUrl(h,this.compiledRoutes,this.config.basePath,this.config.i18n,p),m=l&&e.getUrlFromPageReferenceAndRouteDef(l.route.pageReference,l.routeDefinition,this.config.basePath,this.config.i18n,p);return!l||!m?null:{pathMatch:m,route:l.route,routeDefinition:l.routeDefinition.original}}async resolveView(R,p){return new Promise((h,l)=>{const m=this.matchRoute(R,p);return m?m.routeDefinition.handler?.().then(y=>{const j=y.default;if(!j)return l(t.generateMessage(t.messages.INVALID_ROUTE_HANDLER,[m.routeDefinition.id]));const _=new j(h);_&&_.update(m.route)}):l(t.generateMessage(t.messages.NO_ROUTE_MATCH,[JSON.stringify(R)]))})}navigate(R,p){const h=this.matchRoute(R,p);if(!h)throw new Error(t.generateMessage(t.messages.MISSING_ROUTE,[JSON.stringify(R)]));this.pendingRoute={...h},this._mapView(this.pendingRoute)}subscribe(R,p){return this.routeObservable.subscribe({next:R,error:()=>{},complete:()=>{}},Boolean(p))}async _mapView(R){const p=Math.random();this.routeHandlerId=p;const l=(await R.routeDefinition.handler?.())?.default;if(!l)throw new Error(t.generateMessage(t.messages.INVALID_ROUTE_HANDLER,[R.routeDefinition.id]));return this.routeHandler=new l(m=>{this._updateView(p,m)}),this.routeHandler&&this.routeHandler.update(R.route),!0}_updateView(R,p){if(!p||R!==this.routeHandlerId)return;if(!this.pendingRoute)throw new Error("Trying to commit route state without a route");const h=e.freeze(p.viewset);this.routeObservable.next({...this.pendingRoute,...p,viewset:h})}}function U(D={}){return new I(D)}r.createRouter=U,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/router",["exports","lwr/router/v/0_13_0-alpha_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/a11yService/v/1_66_657",["exports"],function(r){"use strict";const e="sf-aria-live",t="tabindex",{document:b}=globalThis;let I;function U(p){if(b&&p?.routeDefinition){let h=b.body.querySelector(`#${e}`);h||(h=b.createElement("span"),h.id=e,h.setAttribute("aria-live","polite"),h.setAttribute("aria-atomic","true"),h.setAttribute("style","position: absolute; margin: -1px; border: 0; padding: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); text-transform: none; white-space: nowrap;"),b.body.appendChild(h)),h.innerText=p.routeDefinition.label}}function D(p){if(!b)return;const h=p?.routeDefinition?.label,l=!I||b.title===I;h!=null&&l&&(b.title=p.routeDefinition.label),I=h}function R(p){if(!b)return;const h=b.createTreeWalker(b.body,NodeFilter.SHOW_ELEMENT,{acceptNode:m=>m.matches("webruntime-router-container")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),l=p?b.body:h.nextNode();l&&(l.setAttribute(t,"-1"),l.focus({preventScroll:!0}),l.removeAttribute(t))}r.ARIA_LIVE_ID=e,r.TAB_INDEX_ATTR_NAME=t,r.ariaLiveNavigate=U,r.updateFocus=R,r.updateTitle=D,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/a11yService",["exports","webruntime/a11yService/v/1_66_657"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/routingService/v/1",["exports","lwr/loaderLegacy/v/0_13_0-alpha_5","@communities-webruntime/common/v/1_66_657","webruntime/views/v/1","webruntime/a11yService/v/1_66_657","lwr/router/v/0_13_0-alpha_5","webruntime/overrides/v/1","lwr/navigation/v/0_13_0-alpha_5","@app/deployTarget/v/1","@app/uiBasePath/v/1","@app/routes/v/1","@app/viewToThemeLayoutMap/v/1","webruntime/logger/v/1_66_657","webruntime/utils/v/1_66_657","lwr/routerErrors/v/0_13_0-alpha_5","webruntime/o11y/v/1","lwr/serverRouter/v/0_13_0-alpha_5","webruntime/transport/v/1","@app/extraRouteParams/v/1"],function(r,e,t,b,I,U,D,R,p,h,l,m,y,j,_,A,k,F,N){"use strict";function M(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var B=M(b),S=M(p),H=M(h),q=M(l),u=M(m),o=M(N);function g(s){const E=[],L=[];s.forEach(re=>{re.uri.includes("?")?L.push(re):E.push(re)});const V=[];return L.forEach(re=>{const de=[],Ce=re.uri.split("/");let je,Be,Fe="";Ce.forEach(ke=>{ke.endsWith("?")?(je=ke.substring(0,ke.length-1),de.push({value:je,isOptional:!0}),Be=je.substring(1),Fe=re.page.attributes?.[Be]?"attributes":"state"):de.push({value:ke,isOptional:!1})});const pt={...re,uri:de.map(ke=>ke.value).join("/")};V.push(pt);const yt={};Object.keys(re.page[Fe]).forEach(ke=>{ke!==Be&&(yt[ke]=re.page[Fe][ke])});const lt={...re,uri:de.filter(ke=>!ke.isOptional).map(ke=>ke.value).join("/"),page:{...re.page,[Fe]:yt}};lt.patterns&&(lt.patterns=Object.fromEntries(Object.entries(lt.patterns).filter(([ke])=>ke!==Be))),V.push(lt)}),[...E,...V]}function O(s){const E=[],L=[];return s.forEach(V=>{const{type:re,attributes:de={},state:Ce={}}=V.page||{};if(re==="standard__objectPage")if(G(de.actionName))E.push(V);else{let je;de.actionName==="list"?(je={...V,page:{...V.page,attributes:{...de},state:{...Ce}}},je.page.attributes.actionName="home"):de.actionName==="home"?(je={...V,page:{...V.page,attributes:{...de},state:{...Ce}}},je.page.attributes.actionName="list"):de.actionName||(V.page.attributes.actionName="home",je={...V,page:{...V.page,attributes:{...de},state:{...Ce}}},je.page.attributes.actionName="list"),E.push(V,je)}else L.push(V)}),[...E,...L]}function G(s){return s&&s.length>1?s.startsWith(":"):!1}const fe={};let _e=null;function z(s){const{pathname:E,search:L,hash:V}=new URL(s,window.location.origin);return{pathname:E,search:L,hash:V}}async function X(s){const{pathname:E,search:L,hash:V}=z(s);if(fe[E])return fe[E]+L+V;if(Object.values(fe).includes(E))return s;try{const{redirected:re,url:de}=await F.fetch(s,{basePath:"",method:"HEAD",isNonApiRequest:!0});if(re){const Ce=z(de).pathname;return fe[E]=Ce,Ce+L+V}}catch(re){y.logError(`Unable to fetch canonical URL for ${s}`,`error: `,re)}return null}async function le(s,E){const{route:L,routeDefinition:V}=E;if(_e=L,V?.metadata?.hasVanityURL){const re=s.generateUrl(L.pageReference),de=await X(re);if(de&&de!==re&&_e===L){const je={type:"standard__webPage",attributes:{url:de}};return R.navigate(s.contextId,je,!0),!0}}return!1}let ge=!0;const Pe={};function Se(s){const E=s?.attributes?.urlName||s?.attributes?.urlPath;if(E){const L=s?.attributes?.objectApiName||"";return`${E}:${L}`}return null}function Ue(s){s.extraRouteParams&&($e(s,s.extraRouteParams),delete s.extraRouteParams)}function $e(s,E){const L=Se(s);!E||!L||(Pe[L]=E)}function Ve(s){const E=Se(s);if(E&&E in Pe){const L=Pe[E];return!(L&&Object.keys(L).length>0)}return!!E}function We(s={}){const{current:E,next:{url:L,route:{pageReference:V}={}}}=s;return E&&Ve(V)?(window.location.assign(L),!0):!1}function oe(s){if(ge)Ee(s,o.default),$e(s.pageReference,o.default),ge=!1;else{const E=Se(s?.pageReference),L=Pe[E];Ee(s,L)}}function Ee(s,E){ee(E)&&(ee(s?.attributes)&&(s.attributes={...s.attributes,...E}),ee(s?.pageReference?.attributes)&&(s.pageReference.attributes={...s.pageReference.attributes,...E}))}function ee(s){return s&&typeof s=="object"}const Oe="redirectPageContext";function Ne(s){return s?.state?.[Oe]||null}function xe(s){return s?.includes(`?${Oe}=`)}function Ge(s,E,L={}){const{current:V,next:{route:re,url:de}={}}=L,Ce=xe(de)?de:Ne(re)?Le(re):null;return Ce?(V?window.location.assign(Ce):R.navigate(s,E.page,!0),!0):!1}function Le(s){if(!s)return null;const E=Ne(s)||window.btoa(window.encodeURIComponent(JSON.stringify(s)));return`${H.default}/?${Oe}=${E}`}const Me="KnowledgeArticleVersion",it=[{type:"standard__objectPage",params:[{name:"filterName",type:"state",value:"Default"}]},{type:"standard__search",params:[{name:"term",type:"state",value:" "}]},{type:"standard__recordPage",params:[{name:"recordName",type:"state",value:"detail"},{name:"categoryPath",type:"state",value:"detail"}],match:(s,{name:E})=>{const{attributes:L={}}=s;return L.urlName||L.urlPath?!1:L.objectApiName==="ProductCategory"?E==="categoryPath":L.objectApiName==="OrderSummary"?!1:E==="recordName"}}],Je="standard__managedContentPage";function Xe(s){return it.find(E=>s.type===E.type)}function ct(s,E=[]){if(s?.type===Je){let L=s.attributes?.contentTypeName;!E.find(re=>re.page.type===Je&&re.page?.attributes?.contentTypeName===L)&&["news","cms_image","cms_document"].indexOf(L)!==-1&&(L=L.startsWith("cms_")?L.substring(4):L,s.attributes.contentTypeName=`sfdc_cms__${L}`),s.attributes&&s.attributes.contentKey&&(s.attributes.urlAlias=s.attributes.contentKey,delete s.attributes.contentKey)}return s}let Ze;function dt(s,E){s.attributes?.objectApiName===Me&&(Ze===void 0&&(Ze=E.find(V=>V.page.attributes?.objectApiName?.endsWith("__kav"))?.page?.attributes?.objectApiName||null),Ze&&(s.attributes.objectApiName=Ze))}function ae(s){return!s.attributes?.urlName&&!s.attributes?.urlPath||(s.type==="standard__recordPage"&&(se(s),delete s.attributes.recordId,delete s.state?.recordName,delete s.state?.categoryPath),s.type==="standard__recordRelationshipPage"&&(se(s),delete s.attributes.recordId)),s}function se(s){s.attributes.recordId&&(s.extraRouteParams={recordId:s.attributes.recordId})}function d(s,E){return s.type==="standard__knowledgeArticlePage"&&(s.type="standard__recordPage",s.attributes.actionName="view",s.attributes.objectApiName=Me,delete s.attributes.articleType),dt(s,E),s}function C(s,E){const{params:L,match:V}=E;L.forEach(re=>{const{type:de,name:Ce,value:je}=re;V&&!V(s,re)||s?.[de]?.[Ce]||(s[de]||(s[de]={}),s[de][Ce]=je)})}function w(s={}){const E=Xe(s);E&&C(s,E)}function x(s,E){if(s.state?.categoryPath?.includes("/")||s.attributes?.urlPath?.includes("/")){let[L,V]=E.split("?");return L=L.replace(/%2F/g,"/"),V=V?`?${V}`:"",L+V}return E}function Y(s){return Object.entries(s?.attributes||{}).filter(([,E])=>E===null).forEach(([E])=>delete s.attributes[E]),s}class W{constructor(E){this.callback=E}dispose(){}update(E){const L=he.find(V=>V.id===E.id)?.view;this.callback({viewset:{default:()=>B.default(L)}})}}const{window:$,performance:te}=globalThis,Z=`${t.WEBRUNTIME_PREFIX}-framework-router`;let K=S.default==="MRT",ie;r.router=void 0;let he=[],ye,we;function Re(s,E){te?.mark?.(Z),he=O(g(t.parseRoutes(s))),he.forEach(L=>{L.handler=()=>new Promise(V=>{V({default:W})})}),ye=he.find(L=>L.metadata.isDefault),E?.isMRT!=null&&(K=E.isMRT),we=!K&&he.every(L=>L.metadata.isPublic!==!1),ie={basePath:H.default,caseSensitive:!0,routes:he,DEPRECATED_getRouteFromUrl:ue,DEPRECATED_getUrlFromRoute:ce},r.router=U.createRouter(ie),te?.measure?.(Z,Z)}Re(q.default);const Te=J();Te&&I.updateTitle(Te);let Ie,v;function Q(){return v?.contextId||r.router.contextId}function ue(s,E){const L=E(s);return L?(w(L),L):ye?.page?ye.page:null}function ce(s={type:"",attributes:{},state:{}},E){const{type:L,attributes:V={},state:re={}}=s;let de;const Ce=JSON.parse(JSON.stringify(s));if(L==="standard__webPage")return de=V.url,de==null?"":rt(de);if(L==="comm__loginPage"){if(V.actionName==="login"){const je=re.startUrl!=null?`?startURL=${encodeURIComponent(re.startUrl)}`:"";return rt(`${t.WEBRUNTIME_LOGIN_PATH}${je}`)}if(V.actionName==="logout")return rt(t.WEBRUNTIME_LOGOUT_PATH)}return L==="standard__managedContentPage"&&ct(Ce,he),d(Ce,he),ae(Ce),w(Ce),Y(Ce),de=E(Ce),L==="standard__recordPage"&&(de=x(Ce,de)),!de&&we&&(de=Le(Ce)),Ue(Ce),de}async function De(s){const{route:E,routeDefinition:L}=s.next;return Ye(L,E.pageReference)}async function Ye(s,E){if(s?.metadata?.isPublic!==!1)return!1;const{default:L}=await e.load("@app/user/v/1");if(L.isGuest){const V=typeof E=="string"?E:me(E);if(V&&$)if(K){const{default:re}=await e.load("@app/loginPath/v/1");at(re,V)}else $.location.href=V;return!0}return!1}function at(s,E){const L=new URL(s,$.location.href);E&&L.searchParams.set("startURL",E),$.location.assign(L.href)}function ot(s){const E=new URL(s,$.location.href);$.location.assign(E.href)}function tt(s){return Ge(Q(),ye,s)}function st(s){const{current:E,next:L}=s;if(E&&L&&E.routeDefinition.ssr!==L.routeDefinition.ssr){const V=me(L.route.pageReference);if(V)return $.location.assign(V),!0}return!1}function ht(s){const{current:E,next:{pathMatch:L,route:V={}}}=s,{pageReference:{type:re,attributes:de={}}}=V;if(!E)return!1;if(re==="standard__managedContentPage"){const{contentTypeName:Ce}=de;if(Ce==="sfdc_cms__landingPage")return $.location.assign(L),!0}return!1}async function qe(s){Qe(s.detail)}async function Qe(s){try{if(!$?.location)return;const{address:E,message:L,code:V}=s;if(y.logError(`Routing error: ${L}`),V===_.messages.PRENAV_FAILED.code)return;if(V===_.messages.MISSING_ROUTE.code&&!ye&&xe(E)){$.location.assign(E);return}if(ye?.metadata?.isPublic===!1){const{default:de}=await e.load("@app/user/v/1");if(de.isGuest)return}const re=H.default?$.location.pathname.replace(H.default,""):$.location.pathname;ye&&re!==ye.uri&&nt(ye.page)}finally{Ie?.errorNavigate(s)}}function et(s){gt(s.detail.address)||s.preventDefault()}function gt(s){if(!D.NavigationOverrides.runSync(s))return!1;const{type:E,attributes:L={},state:V={}}=s;if(E==="standard__webPage"){const{url:re}=L;if(re==null)return!0;if(j.isAbsoluteURL(re)||j.isSfdcCoreURL(re))return $?.open(re),!1;const de=r.router.parseUrl(re),Ce=!de||de===ye?.page;if(we&&Ce)return $?.location.assign(rt(re)),!1}else if(E==="comm__loginPage"){const{actionName:re}=L;if(re==="login")return at(rt(t.WEBRUNTIME_LOGIN_PATH),V.startUrl||""),!1;if(re==="logout")return ot(rt(t.WEBRUNTIME_LOGOUT_PATH)),!1}return!0}function rt(s){return j.isAbsoluteURL(s)?s:H.default&&s!==H.default&&s.indexOf(`${H.default}/`)!==0?`${H.default}${s}`:s}function nt(s){R.navigate(Q(),s)}function me(s){return v?v.generateUrl(s):r.router.generateUrl(s)}function n(s,E=!0){return typeof $!="undefined"?r.router.subscribe(s,E):null}async function i(s,E){return Ie?.preNavigate(s),D.PreNavigateOverrides.run(s),v&&await De(s)?!1:(v||De(s),ht(s)||tt(s)||We(s)||st(s)?(E?.preventDefault(),!1):!0)}let a;async function c(s){const E=s.detail,L=E.current?.routeDefinition.view;L?a=u.default[L]:a=null,await i(E,s)}async function f(s){const E=s.detail,L=E.routeDefinition?.view,V=a!==u.default[L];try{I.ariaLiveNavigate(E),I.updateTitle(E),I.updateFocus(V),await le(r.router,E)}finally{Ie?.postNavigate(E)}}function P(s){Ie=A._o11y.routingSupport,s.addEventListener("prenavigate",c),s.addEventListener("handlenavigation",et),s.addEventListener("postnavigate",f),s.addEventListener("errornavigate",qe)}function J(){if(!$?.location)return{};const s=$.location.href.substring($.location.origin.length);return{routeDefinition:r.router.matchRoute(s)?.routeDefinition||ye,url:s}}function be(s,E){if(!K||v&&typeof $!="undefined")return;const{routeDefinition:L,url:V}=Te;if(L&&!L.ssr)return;L&&V&&Ye(L,V);const re={...ie,url:E,handleNavigation:gt,preNavigate:i,errorNavigate:Qe};v=new k.ServerRouter(re,r.router,s)}r.generateUrl=me,r.handleExtraRouteParams=oe,r.initializeRouter=Re,r.initializeRouterContainer=P,r.initializeServerRouter=be,r.navigate=nt,r.subscribe=n,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/routingService",["exports","webruntime/routingService/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/overrides/v/1",["exports"],function(r){"use strict";class e{constructor(){this.overrides=[]}add(R){this.overrides.push(R)}run(...R){return this.overrides.length===0?Promise.resolve(!0):this.overrides.reduce((p,h)=>p.then(l=>l===!1?Promise.resolve(!1):Promise.resolve(h(...R))),Promise.resolve(!0)).then(p=>Promise.resolve(p))}runSync(...R){return this.overrides.length===0?!0:this.overrides.reduce((p,h)=>p===!0?h(...R):!1,!0)}}const t=new e,b=new e,I=new e,U=new e;r.NavigationOverrides=b,r.Overrides=e,r.PageNavigationFailureOverrides=U,r.PreNavigateOverrides=t,r.SessionTimeoutOverrides=I,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/overrides",["exports","webruntime/overrides/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/views/v/1",["exports","lwr/loaderLegacy/v/0_13_0-alpha_5","@communities-webruntime/common/v/1_66_657"],function(r,e,t){"use strict";function b(I){return e.load(t.getViewModuleSpecifier(I),"webruntime/views/v/1")}r.default=b,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/views",["exports","webruntime/views/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/formFactor/v/1",["exports"],function(r){"use strict";function e(){return typeof window!="undefined"&&window.matchMedia("only screen and (min-width: 48em) and (max-width: 64em)").matches}function t(){return typeof window!="undefined"&&window.matchMedia("only screen and (max-width: 47.9375em)").matches}function b(){return e()?"Medium":t()?"Small":"Large"}const I=b();r.default=I,r.getFormFactor=b,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/formFactor",["exports","webruntime/formFactor/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("wire-service/v/1",["exports"],function(r){"use strict";function e(H){return H===void 0}const t="ValueChangedEvent";class b{constructor(q){this.type=t,this.value=q}}const{freeze:I,defineProperty:U,isExtensible:D}=Object,R="$$DeprecatedWiredElementHostKey$$",p="$$DeprecatedWiredParamsMetaKey$$";function h(H,q){if(H==null||!D(H))throw new TypeError("adapter id must be extensible");if(typeof q!="function")throw new TypeError("adapter factory must be a callable");if("adapter"in H)throw new TypeError("adapter id is already associated to an adapter factory");const u=class extends S{constructor(o){super(o);q(this.eventTarget)}};I(u),I(u.prototype),U(H,"adapter",{writable:!1,configurable:!1,value:u})}function l(){}const{forEach:m,splice:y,indexOf:j}=Array.prototype,_="connect",A="disconnect",k="config";function F(H,q){const u=j.call(H,q);u>-1&&y.call(H,u,1)}function N(H){return Object.keys(H).length===0}function M(H,q){return q.length===0||q.some(u=>!e(H[u]))}function B(H,q,u){return u.some(o=>H[o]!==q[o])}class S{constructor(q){this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=q,this.wiredElementHost=q[R],this.dynamicParamsNames=q[p],this.eventTarget={addEventListener:(u,o)=>{switch(u){case _:{this.connecting.push(o);break}case A:{this.disconnecting.push(o);break}case k:{this.configuring.push(o),this.currentConfig!==void 0&&o.call(void 0,this.currentConfig);break}default:throw new Error(`Invalid event type ${u}.`)}},removeEventListener:(u,o)=>{switch(u){case _:{F(this.connecting,o);break}case A:{F(this.disconnecting,o);break}case k:{F(this.configuring,o);break}default:throw new Error(`Invalid event type ${u}.`)}},dispatchEvent:u=>{if(u instanceof b){const o=u.value;this.callback(o)}else{if(u.type==="wirecontextevent")return this.wiredElementHost.dispatchEvent(u);throw new Error(`Invalid event type ${u.type}.`)}return!1}}}update(q){this.isFirstUpdate&&(this.isFirstUpdate=!1,!N(q)&&!M(q,this.dynamicParamsNames))||(e(this.currentConfig)||B(q,this.currentConfig,this.dynamicParamsNames))&&(this.currentConfig=q,m.call(this.configuring,u=>{u.call(void 0,q)}))}connect(){m.call(this.connecting,q=>q.call(void 0))}disconnect(){m.call(this.disconnecting,q=>q.call(void 0))}}r.ValueChangedEvent=b,r.register=h,r.registerWireService=l,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("wire-service",["exports","wire-service/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("@salesforce/client/formFactor/v/1",["exports"],function(r){"use strict";function e(){return typeof window!="undefined"&&window.matchMedia("only screen and (min-width: 48em) and (max-width: 64em)").matches}function t(){return typeof window!="undefined"&&window.matchMedia("only screen and (max-width: 47.9375em)").matches}function b(){return e()?"Medium":t()?"Small":"Large"}const I=b();r.default=I,r.getFormFactor=b,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("@salesforce/client/formFactor",["exports","@salesforce/client/formFactor/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("@communities-webruntime/common/v/1_66_657",["exports"],function(r){"use strict";var e=!0,t="src/labels",b=["lwr","assert","logger","webruntime","webruntime/*","mobileruntime/hybridAppManager","@view","@view/*","@app","@app/*","@design","@design/*","@lwrjs","webruntimedesign","webruntimedesign/*","@luvio","@luvio/*","aura-instrumentation","aura","instrumentation/service","instrumentation/utility","aura-storage","transport","wire-service","force/ldsAdaptersAnalyticsDataService","force/ldsAdaptersAnalyticsSmartDataDiscovery","force/ldsAdaptersAnalyticsWave","force/ldsAdaptersAnalyticsWavePrivate","force/ldsAdaptersApex","force/ldsAdaptersCmsAuthoring","force/ldsAdaptersCmsDelivery","force/ldsAdaptersCmsType","force/ldsAdaptersCommerceCatalog","force/ldsAdaptersCommerceSearch","force/ldsAdaptersCommerceStorePricing","force/ldsAdaptersCommunityMicrobatching","force/ldsAdaptersCommunityNavigationMenu","force/ldsAdaptersCommunitySeo","force/ldsAdaptersCommunitySitesSearch","force/ldsAdaptersExperienceMarketingIntegration","force/ldsAdaptersGraphql","force/ldsAdaptersIndustriesCib","force/ldsAdaptersIndustriesClm","force/ldsAdaptersIndustriesDecisionMatrixDesigner","force/ldsAdaptersIndustriesEinsteinAiaccelerator","force/ldsAdaptersIndustriesExplainability","force/ldsAdaptersIndustriesHealthcloudHpi","force/ldsAdaptersIndustriesIdentityverification","force/ldsAdaptersIndustriesInteresttagging","force/ldsAdaptersIndustriesLoyaltyEngine","force/ldsAdaptersIndustriesPublicSector","force/ldsAdaptersIndustriesRcgTenantmanagement","force/ldsAdaptersIndustriesRuleBuilder","force/ldsAdaptersIndustriesSustainabilityBei","force/ldsAdaptersIndustriesSustainabilityDgf","force/ldsAdaptersIndustriesSustainabilityRecalculate","force/ldsAdaptersIndustriesSustainabilityRecordLockunlock","force/ldsAdaptersIndustriesSustainabilityReferenceData","force/ldsAdaptersIndustriesTimeline","force/ldsAdaptersIndustriesVideovisits","force/ldsAdaptersMarketingAssetcreation","force/ldsAdaptersPlatformAdminSuccessGuidance","force/ldsAdaptersPlatformFlow","force/ldsAdaptersPlatformFlowBuilder","force/ldsAdaptersPlatformInteractionOrchestrator","force/ldsAdaptersPlatformLearningContent","force/ldsAdaptersPlatformScaleCenter","force/ldsAdaptersRevenueBillingBatch","force/ldsAdaptersUiapi","force/ldsBindings","force/ldsEngine","force/luvioEngine","force/ldsEngineCreator","force/ldsEngineWebruntime","force/ldsEnvironmentSettings","force/ldsInstrumentation","force/ldsNetwork","force/ldsRecordData","force/ldsStorage","force/mobileCapabilities","force/ldsAdaptersAnalyticsTableauEmbedding","runtime_hybrid_capabilities/nativeCapabilities","o11y","o11y/*","@o11y","@o11y/*","@salesforce","@udd","@perm","@branding","@salesforce/*","@udd/*","@perm/*","@branding/*","trustedDesign/shadowDomUtils","community_builder/seoAssistant","community_case/supportQuickActionLayout","community_runtime/utils","community_user/userSettings","embeddedMessaging/container","experience_messaging/embeddedMessaging","community_login/checkEmail","community_login/forgotPassword","community_login/loginForm","community_login/loginUtils","community_login/selfRegister","community_login/socialLogin","b2c_lite_commerce/cartApi","b2c_lite_commerce/checkout","b2c_lite_commerce/checkoutApi","b2c_lite_commerce/checkoutApiDataSource","b2c_lite_commerce/checkoutRequestRetry","b2c_lite_commerce/context","b2c_lite_commerce/data","b2c_lite_commerce/einsteinActivitiesApi","b2c_lite_commerce/einsteinApi","b2c_lite_commerce/einsteinProductAndPriceApi","b2c_lite_commerce/heroBannerUi","b2c_lite_commerce/myAccountMenu","b2c_lite_commerce/orderSummary","b2c_lite_commerce/store","lightning","lightning/*","interop/button","interop/buttonIcon","dxp_page_layout/placeHolderDesign","community_builder/richTextEditor","dxp_form/baseForm","dxp_form/contactForm","dxp_form/dynamicForm","dxp_form/layoutUtils","dxp_form/leadForm","dxp_base/languageSelector","dxp_search/siteResults","dxp_flowruntime","dxp_flowruntime/*","flowruntime","flowruntime/*","experience/store","experience/data","experience/util","experience/cmsDeliveryApi","experience/luvioRuntime","experience/personalizationApi","experience/personalizationApiInternal","experience/seoPropertiesApi","experience/seoPropertiesApiInternal","experience/userApi","experience/userApiInternal","wave","wave/*","tableau/tableauViz"],I="webruntime";function U(oe){return`/${I}${oe}`}var D=U("/api"),R=U("/log/metrics"),p=U("/log/errors"),h={APEX_ACTION_ERROR:"APEX_ACTION_ERROR",FAILED_TO_LOAD_RESOURCE:"FAILED_TO_LOAD_RESOURCE",TOO_MANY_REQUESTS:"TOO_MANY_REQUESTS",UNKNOWN_ERROR:"UNKNOWN_ERROR"},l={PUBLISHER:"CommunityHybridContainer/",PLAYGROUND:"playgroundcommunity"},m=8e3,y="/webruntime/login",j="/webruntime/logout",_="@design";function A(oe){return`${_}/${oe}`}function k(oe){return oe.replace(/(?!^)([A-Z])/g,"-$1").toLowerCase()}var F=new RegExp(/^[a-z-A-Z_\d]+[/:]{1}[a-zA-Z_\d]+$/),N=new RegExp(/^([a-z][a-z\d]*)(-[a-z\d]+)*$/);function M(oe,Ee){if(!oe)throw new Error(Ee)}function B(oe){if(N.test(oe))return oe;M(F.test(oe),`${oe} is an invalid module specifier.`);const Ee=oe.split(/[/:]/),[ee,Oe]=Ee;return M(!ee.includes("-"),`${oe}'s namespace cannot contain hyphens.`),[ee.toLowerCase(),k(Oe)].join("-")}var S="webruntime",H="js",q="latest",u={FRAMEWORK:"framework",DESIGN:"design",COMPONENT:"component",VIEW:"view",DESIGNCOMPONENT:"designcomponent"};function o(oe,Ee){if(!oe)throw new Error(Ee)}function g(oe){const[Ee,ee=""]=oe.split("://"),[Oe,Ne]=ee.indexOf("@")>0?ee.split("@"):[ee];return{type:Ee,name:Oe,locale:Ne}}function O(oe={type:"",name:""},Ee,ee,Oe=!0){const{name:Ne}=typeof oe=="string"?g(oe):oe;o(Ne,"Name not specified");const xe=G(oe,Ee,ee),Ge=Oe?`.${H}`:"";return`${xe}${Ne}${Ge}`}function G(oe={type:"",name:""},Ee,ee){const{type:Oe,locale:Ne}=typeof oe=="string"?g(oe):oe,xe=Oe===u.COMPONENT;return o(Oe,"Type not specified"),o(Ee,"Mode not specified"),o(Ne||!xe,"Component locale not specified"),`/${S}/${Oe}/${ee||q}/${Ee}${Ne?`/${Ne}`:""}/`}var fe="@view";function _e(oe){return`${fe}/${oe}`}var z=["hasVanityURL","isDefault","isPublic","isRoot"],X=[{type:"standard__search",params:[{name:"term",type:"state"}]},{type:"standard__objectPage",params:[{name:"filterName",type:"state"}]},{type:"standard__recordPage",params:[{name:"recordName",type:"state"},{name:"categoryPath",type:"state"}],match:({attributes:oe},{name:Ee})=>oe?.objectApiName==="ProductCategory"?Ee==="categoryPath":Ee!=="categoryPath"}];function le(oe,Ee){const{match:ee,params:Oe}=Ee;Oe.forEach(Ne=>{if(ee&&!ee(oe.page,Ne))return;const{type:xe,name:Ge}=Ne,Le=xe,Me=Le==="state"?"attributes":"state";!oe.page?.[Me]?.[Ge]||(oe.page[Le]||(oe.page[Le]={}),oe.page[Le][Ge]=oe.page[Me][Ge],delete oe.page[Me][Ge])})}function ge(oe){let Ee=oe;return["categoryPath","urlPath"].forEach(ee=>{Ee=Ee.replace(new RegExp(`:${ee}\\+?`),`:${ee}+`)}),Ee}function Pe(oe){return oe.startsWith(":")?oe.substring(1).replace(/[?+]/g,""):null}var Se=/\(.*\)/;function Ue(oe){return oe.split("/").map(Ee=>Ee.replace(Se,"")).join("/")}function $e(oe,Ee){return oe.split("/").map(ee=>{const Oe=Pe(ee);return Oe&&Ee[Oe]?ee.replace(Oe,`${Oe}(${Ee[Oe]})`):ee}).join("/")}function Ve(oe){!oe.uri.includes(":")||!oe.page?.type||(oe.page.attributes=oe.page.attributes||{},oe.uri.split("/").forEach(Ee=>{const ee=Pe(Ee);if(ee){const Oe=`:${ee}`;oe.page.attributes[ee]||(oe.page.attributes[ee]=Oe)}}))}function We(oe,Ee=!1){return oe.map(ee=>{ee.uri||(ee.uri=ee.path),ee.metadata||(ee.metadata={}),z.forEach(Le=>{Le in ee&&(ee.metadata[Le]=ee[Le],delete ee[Le])}),ee.uri&&(ee.uri=Ue(ee.uri),Ve(ee)),ee.patternMap&&(ee.patterns=ee.patternMap,delete ee.patternMap);const Oe=ee.page?.attributes?.objectApiName;Oe&&!Oe.startsWith(":")&&(ee.uri=ee.uri.replace(":objectApiName",Oe),ee.patterns?.objectApiName&&delete ee.patterns.objectApiName);const Ne=X.find(Le=>ee.page?.type===Le.type);Ne&&le(ee,Ne);const xe=ee.page?.type;return!Ee&&xe==="standard__recordPage"&&["ProductCategory","NetworkDataCategory"].includes(ee.page.attributes?.objectApiName)&&(ee.uri=ge(ee.uri)),["standard__recordPage","standard__recordRelationshipPage"].includes(xe)&&!ee.page?.attributes?.actionName&&(ee.page.attributes.actionName="view"),Ee&&ee.patterns&&(ee.uri=$e(ee.uri,ee.patterns)),ee})}r.API_PATH_PREFIX=D,r.CLIENT_ERROR_TYPES=h,r.ERRORS_PATH_PREFIX=p,r.LABELS_DEFAULT_DIR=t,r.LOCKER_DEFAULT_ENABLED=e,r.MAX_URL_LENGTH=m,r.METRICS_PATH_PREFIX=R,r.MOBILE_APP_USER_AGENTS=l,r.RESOURCE_TYPES=u,r.TRUSTED_COMPONENTS=b,r.WEBRUNTIME_LOGIN_PATH=y,r.WEBRUNTIME_LOGOUT_PATH=j,r.WEBRUNTIME_PREFIX=I,r.convertToKebabCase=k,r.getDesignComponentModuleSpecifier=A,r.getResourceUrl=O,r.getViewModuleSpecifier=_e,r.moduleSpecifierToElementName=B,r.parseResourceDescriptor=g,r.parseRoutes=We,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("@communities-webruntime/common",["exports","@communities-webruntime/common/v/1_66_657"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})});