LWR.define("lwr/domRouterUtils/v/0_17_9",["exports","lwr/routerUtils/v/0_17_9"],function(r,e){"use strict";function t(O=""){if(O=O||"",O.indexOf("://")<0){const l=window.location.port?`:${window.location.port}`:"",u=`${window.location.protocol}//${window.location.hostname}${l}`,p=O.charAt(0)==="/"?"":"/";O=u+p+O}const _={},c=document.createElement("a");c.href=O;const h=c.search.substring(1);return h&&h.split("&").forEach(l=>{const[u,p=""]=l.split("=");_[e.decode(u)]=e.decode(p)}),{href:c.href,origin:`${c.protocol}//${c.hostname}${c.port?`:${c.port}`:""}`,pathname:c.pathname.replace(/(\/)?/,"/"),searchParams:_}}function E(O){const _=t(O),c=_.href.replace(/:\d+/,""),h=_.origin.replace(/:\d+/,"");return c.replace(h,"")}function R(O,_){const c=_||{};window.history.pushState(c,"",O)}function F(O,_){const c=_||{};window.history.replaceState(c,"",O)}r.getRelativeUrl=E,r.replace=F,r.set=R,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/domRouterUtils",["exports","lwr/domRouterUtils/v/0_17_9"],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_17_9",["exports"],function(r){"use strict";const e="lwr.bootstrap.",t=`${e}end`,E=`${e}error`,R=`${E}.count`,F=`${e}duration`,O="lwr.bootstrap.init",_=`${O}.duration`,c="lwr.bootstrap.init.module",h=`${c}.duration`,l=`${c}.count`,u="lwr.loader.",p=`${u}module.define`,S=`${p}.count`,v=`${u}module.dynamicLoad`,I=`${v}.count`,w=`${u}module.fetch`,D=`${w}.count`,L=`${w}.duration`,M=`${u}module.error`,X=`${M}.count`,N=`${u}mappings.fetch`,j=`${N}.count`,H=`${N}.duration`,ce=`${u}mappings.error`,re=`${ce}.count`,G="lwr.router.",Z=`${G}navigate`,Ie=`${Z}.count`,Ce=`${Z}.duration`,ie=`${G}view`,a=`${ie}.duration`,d=`${G}error`,f=`${d}.count`;r.BOOTSTRAP_DURATION=F,r.BOOTSTRAP_END=t,r.BOOTSTRAP_ERROR=E,r.BOOTSTRAP_ERROR_COUNT=R,r.BOOTSTRAP_PREFIX=e,r.INIT=O,r.INIT_DURATION=_,r.INIT_MODULE=c,r.INIT_MODULE_COUNT=l,r.INIT_MODULE_DURATION=h,r.LOADER_PREFIX=u,r.MAPPINGS_ERROR=ce,r.MAPPINGS_ERROR_COUNT=re,r.MAPPINGS_FETCH=N,r.MAPPINGS_FETCH_COUNT=j,r.MAPPINGS_FETCH_DURATION=H,r.MODULE_DEFINE=p,r.MODULE_DEFINE_COUNT=S,r.MODULE_DYNAMIC_LOAD=v,r.MODULE_DYNAMIC_LOAD_COUNT=I,r.MODULE_ERROR=M,r.MODULE_ERROR_COUNT=X,r.MODULE_FETCH=w,r.MODULE_FETCH_COUNT=D,r.MODULE_FETCH_DURATION=L,r.ROUTER_ERROR=d,r.ROUTER_ERROR_COUNT=f,r.ROUTER_NAV=Z,r.ROUTER_NAV_COUNT=Ie,r.ROUTER_NAV_DURATION=Ce,r.ROUTER_PREFIX=G,r.ROUTER_VIEW=ie,r.ROUTER_VIEW_DURATION=a,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/metrics",["exports","lwr/metrics/v/0_17_9"],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_17_9",["exports"],function(r){"use strict";function e(){let t,E,R=[];const F=u=>{R.push(u)},O=u=>{R=[...R.slice(0,u),...R.slice(u+1)]},_=u=>{R.filter(p=>p!==null).forEach(p=>p.next&&p.next(u)),t=u,E=void 0},c=u=>{R.filter(p=>p!==null).forEach(p=>p.error&&p.error(u)),t=void 0,E=u};return{next:_,error:c,complete:()=>{R.filter(u=>u!==null).forEach(u=>u.complete&&u.complete()),R=[],t=void 0,E=void 0},subscribe:(u,p=!0)=>{F(u),t&&p&&u.next(t),E&&c(E);const S=R.length-1;return{unsubscribe:()=>O(S)}}}}r.createObservable=e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/observable",["exports","lwr/observable/v/0_17_9"],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_17_9",["exports","lwc/v/8_16_5","lwr/routerUtils/v/0_17_9","lwr/navigation/v/0_17_9"],function(r,e,t,E){"use strict";const R=e.createContextProvider(E.CurrentPageReference),F=t.hasDocument?e.createContextProvider(E.CurrentView):void 0,O=e.createContextProvider(E.NavigationContext);function _(c,h,l,u){l&&u&&(u.setContext(h,c),l(h,{consumerConnectedCallback:u.subscribeContext.bind(u,h),consumerDisconnectedCallback:u.unsubscribeContext.bind(u,h)}))}r.currentPageReferenceContextualizer=R,r.currentViewContextualizer=F,r.navigationContextContextualizer=O,r.provideContext=_,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/contextProvider",["exports","lwr/contextProvider/v/0_17_9"],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_17_9",["exports","lwr/routerErrors/v/0_17_9"],function(r,e){"use strict";function t(){const b=[],x=()=>b.length===0,C=$=>{typeof $=="function"&&b.push($)};return{add:($=[])=>{Array.isArray($)?$.forEach(B=>C(B)):C($)},compile:$=>b.length===0?Promise.resolve(!0):b.reduce((B,ee)=>B.then(te=>te===!1?Promise.reject():Promise.resolve(ee($))),Promise.resolve(!0)).then(B=>B!==!1).catch(B=>{if(B instanceof Error)throw B;return!1}),empty:x}}function E(b=""){return b=b||"",encodeURIComponent(b)}function R(b=""){return b=b||"",decodeURIComponent(b)}function F(b){b=b||"/",b.charAt(0)!=="/"&&(b="/"+b);const x=b.match(/^[^#?]+/);if(x!==null){const C=x[0];return C==="/"?"/":C.replace(/\/$/,"")}return"/"}function O(b){b=b||"";const x=b.indexOf("#");x>=0&&(b=b.substring(0,x));const C=b.indexOf("?"),T=C>=0?b.substr(C+1):null,W={};return T&&T.split("&").forEach($=>{if($.indexOf("=")>=0){const[B,ee=""]=$.split("=");W[R(B)]=R(ee)}else W[R($)]=null}),W}function _(b={}){const x=Object.keys(b);return x.length?`?${x.map(C=>{const T=b[C];return T===null?C:`${C}=${E(T)}`}).join("&")}`:""}function c(b){return b&&b.length>1?b.startsWith(":"):!1}function h(b){return b&&c(b)?b.substr(1):!1}function l(b){return Object.values(b).reduce((x,{routeParamName:C})=>{const T=h(C);return T&&x.push(T),x},[])}function u(b,x){if(!b)return null;const{type:C,attributes:T={},state:W={}}=b;if(C){const[$]=x.filter(B=>{const{original:{page:{type:ee=null,attributes:te={},state:Q={}}={}}}=B,le=ee===C,ye=Object.keys(te).every(Ge=>Object.keys(T).indexOf(Ge)>=0),Te=Object.keys(te).length===Object.keys(T).length,Fe=Object.keys(Q).every(Ge=>Object.keys(W).indexOf(Ge)>=0),Ae=Object.keys(te).filter(Ge=>{const A=te[Ge];return!A||!c(A)}).every(Ge=>te[Ge]===T[Ge]),Ve=Object.keys(Q).filter(Ge=>{const A=Q[Ge];return A===null||!c(A)}).every(Ge=>Q[Ge]===W[Ge]);return le&&ye&&Te&&Ae&&Fe&&Ve});return $||null}return null}function p(b,x){const{regex:C,params:T}=x,W=C.exec(b);if(W){const[,...$]=W,B={};return T.forEach((ee,te)=>{const{name:Q}=ee,le=$[te];B[Q]=le&&R(le)}),B}return null}function S(b,x){if(b&&x){const{queryMatcher:C}=x,T=C(b);if(T){const W={};return Object.keys(T).forEach($=>{const B=T[$],{value:ee,routeParamName:te}=B,Q=te?te.substr(1):$;W[Q]=ee&&R(ee)}),W}}return null}function v(b,x){const{compiledQuery:C}=x,T=Object.keys(C).filter($=>{const{literalValue:B}=C[$];return!B}),W={};return Object.keys(b).forEach($=>{const B=b[$];T.indexOf($)<0&&(W[$]=B)}),W}function I(b,x){if(x){const{original:{page:{type:C="",attributes:T={},state:W={}}={}}={}}=x,$=F(b),B=O(b),ee=p($,x),te=S(B,x);if(ee&&te){const Q={...ee,...te},le={};Object.keys(T).forEach(Fe=>{const Ae=T[Fe];let Ve;if(Ae&&c(Ae)){const Ge=Ae.substr(1);Ve=Q[Ge]}else Ve=Ae;le[Fe]=Ve});const ye={};Object.keys(W).forEach(Fe=>{const Ae=W[Fe];let Ve;if(Ae&&c(Ae)){const Ge=Ae.substr(1);Ve=Q[Ge]}else Ve=Ae;ye[Fe]=Ve});const Te=v(B,x);return{type:C,attributes:{...le},state:{...Te,...ye}}}}return null}const w={locale:"en-US",defaultLocale:"en-US"};function D(b,x,C){const{original:{patterns:T=null}={}}=C||{};if(T){const W=p(b,C),$=S(x,C),B={...W,...$};return Object.keys(T).every(ee=>{const te=T[ee],Q=new RegExp(te),le=B[ee]||"";return Q.test(le)})}return!0}function L(b,x){const C=F(b),T=O(b),W=x?x.filter(B=>B.regex.test(C)):[],[$]=W.filter(B=>{const{queryMatcher:ee}=B;return ee(T)&&D(C,T,B)});return $||null}function M(b,x,C="",T=w,W){if(C&&(b===C||b?.search(new RegExp(`^${C}[/?#]`))===0)&&(b=b.replace(C,"")),W?.locale||T?.locale){const ee=`/${W?.locale||T.locale}`;(b===ee||b?.search(new RegExp(`^${ee}[/?#]`))===0)&&(b=b.replace(ee,""))}const $=L(b,x);let B;if($){const ee=I(b,$);if(ee)return B={route:{id:$.original.id,attributes:{...ee.attributes},state:{...ee.state},pageReference:{type:ee.type,attributes:{...ee.attributes},state:{...ee.state}}},routeDefinition:$},B}else return null;return null}function X(b,x,C="",T=w,W){const $=u(b,x);return $?j(b,$,C,T,W):null}function N(b,x,C){const{attributeBindings:T,stateBindings:W}=C,{attributes:$,state:B}=x,ee={};return b.forEach(te=>{const[Q]=Object.keys(T).filter(le=>h(T[le])===te);if(Q)ee[te]=$[Q];else{const[le]=Object.keys(W).filter(ye=>h(W[ye])===te);le&&(ee[te]=B[le])}}),ee}function j(b,x,C="",T=w,W){const{params:$,original:{page:B={}}={},toPath:ee,compiledQuery:te}=x,{attributes:Q={},state:le={}}=B,ye=$.filter(({name:ue})=>typeof ue=="string").map(({name:ue})=>ue),Te=N(ye,b,{attributeBindings:Q,stateBindings:le}),Fe=ee(Te),Ae=l(te),Ve=N(Ae,b,{attributeBindings:Q,stateBindings:le}),Ge=H(b,Ve,x),A=_(Ge),oe=W?.locale||T&&T.locale,me=oe!==T.defaultLocale?`/${oe}`:"";return`${C}${me}${Fe}${A}`}function H(b,x,C){const{compiledQuery:T,original:{page:{state:W={}}}}=C,{state:$={}}=b||{},B={};Object.keys($).filter(te=>{const Q=W[te];return!c(Q)}).forEach(te=>B[te]=$[te]);const ee={};return Object.keys(x).forEach(te=>{const Q=x[te],[le]=Object.keys(T).filter(ye=>{const Te=T[ye],{routeParamName:Fe}=Te;return h(Fe)===te});if(le){const ye=le;ee[ye]=Q}}),{...B,...ee}}function ce(b,x,C="",T=w){const W=M(b,x,C,T);return W&&W.route&&W.route.pageReference?W.route.pageReference:null}function re(b){return typeof b=="object"&&b!==null&&!Array.isArray(b)}function G(b){return typeof b=="string"}function Z(b,x){return x in b}function Ie(b,x=2){if(re(b))try{Object.freeze(b),x>0&&Object.keys(b).forEach(C=>{if(Z(b,C)){const T=b[C];T&&typeof T=="object"&&Ie(T,x-1)}})}catch(C){}return b}function Ce(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function ie(b){const x=["id","attributes","state","pageReference"],{pageReference:C=null}=b||{};return re(b)&&f(b,x)&&a(C)}function a(b){const x=["type","state","attributes"],{type:C,state:T,attributes:W}=b||{},$=re(b)&&G(C)&&re(T)&&d(T)&&re(W)&&d(W);return f(b,x)&&$}function d(b){return Object.keys(b).every(x=>{const C=b[x];return typeof x=="string"&&(typeof C=="string"||C===null)})}function f(b,x){if(re(b)){const C=x.every($=>Z(b,$)),W=Object.keys(x).length===x.length;return C&&W}return!1}function k(b){const x=[];let C=0;for(;C<b.length;){const T=b[C];if(T==="*"||T==="+"||T==="?"){x.push({type:"MODIFIER",index:C,value:b[C++]});continue}if(T==="\\"){x.push({type:"ESCAPED_CHAR",index:C++,value:b[C++]});continue}if(T==="{"){x.push({type:"OPEN",index:C,value:b[C++]});continue}if(T==="}"){x.push({type:"CLOSE",index:C,value:b[C++]});continue}if(T===":"){let W="",$=C+1;for(;$<b.length;){const B=b.charCodeAt($);if(B>=48&&B<=57||B>=65&&B<=90||B>=97&&B<=122||B===95){W+=b[$++];continue}break}if(!W)throw new TypeError(`Missing parameter name at ${C}`);x.push({type:"NAME",index:C,value:W}),C=$;continue}if(T==="("){let W=1,$="",B=C+1;if(b[B]==="?")throw new TypeError(`Pattern cannot start with "?" at ${B}`);for(;B<b.length;){if(b[B]==="\\"){$+=b[B++]+b[B++];continue}if(b[B]===")"){if(W--,W===0){B++;break}}else if(b[B]==="("&&(W++,b[B+1]!=="?"))throw new TypeError(`Capturing groups are not allowed at ${B}`);$+=b[B++]}if(W)throw new TypeError(`Unbalanced pattern at ${C}`);if(!$)throw new TypeError(`Missing pattern at ${C}`);x.push({type:"PATTERN",index:C,value:$}),C=B;continue}x.push({type:"CHAR",index:C,value:b[C++]})}return x.push({type:"END",index:C,value:""}),x}function V(b){return b.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function ne(b){return b&&b.sensitive?"":"i"}function Ee(b,x={}){const C=k(b),{prefixes:T="./"}=x,W=`[^${V(x.delimiter||"/#?")}]+?`,$=[];let B=0,ee=0,te="";const Q=Te=>{if(ee<C.length&&C[ee].type===Te)return C[ee++].value},le=Te=>{const Fe=Q(Te);if(Fe!==void 0)return Fe;const{type:Ae,index:Ve}=C[ee];throw new TypeError(`Unexpected ${Ae} at ${Ve}, expected ${Te}`)},ye=()=>{let Te="",Fe;for(;Fe=Q("CHAR")||Q("ESCAPED_CHAR");)Te+=Fe;return Te};for(;ee<C.length;){const Te=Q("CHAR"),Fe=Q("NAME"),Ae=Q("PATTERN");if(Fe||Ae){let A=Te||"";T.indexOf(A)===-1&&(te+=A,A=""),te&&($.push(te),te=""),$.push({name:Fe||B++,prefix:A,suffix:"",pattern:Ae||W,modifier:Q("MODIFIER")||""});continue}const Ve=Te||Q("ESCAPED_CHAR");if(Ve){te+=Ve;continue}if(te&&($.push(te),te=""),Q("OPEN")){const A=ye(),oe=Q("NAME")||"",me=Q("PATTERN")||"",ue=ye();le("CLOSE"),$.push({name:oe||(me?B++:""),pattern:oe&&!me?W:me,prefix:A,suffix:ue,modifier:Q("MODIFIER")||""});continue}le("END")}return $}function De(b,x={}){const C=ne(x),{encode:T=B=>B,validate:W=!0}=x,$=b.map(B=>{if(typeof B=="object")return new RegExp(`^(?:${B.pattern})$`,C)});return B=>{let ee="";for(let te=0;te<b.length;te++){const Q=b[te];if(typeof Q=="string"){ee+=Q;continue}const le=B?B[Q.name]:void 0,ye=Q.modifier==="?"||Q.modifier==="*",Te=Q.modifier==="*"||Q.modifier==="+";if(Array.isArray(le)){if(!Te)throw new TypeError(`Expected "${Q.name}" to not repeat, but got an array`);if(le.length===0){if(ye)continue;throw new TypeError(`Expected "${Q.name}" to not be empty`)}for(let Ae=0;Ae<le.length;Ae++){const Ve=T(le[Ae],Q);if(W&&!$[te].test(Ve))throw new TypeError(`Expected all "${Q.name}" to match "${Q.pattern}", but got "${Ve}"`);ee+=Q.prefix+Ve+Q.suffix}continue}if(typeof le=="string"||typeof le=="number"){const Ae=T(String(le),Q);if(W&&!$[te].test(Ae))throw new TypeError(`Expected "${Q.name}" to match "${Q.pattern}", but got "${Ae}"`);ee+=Q.prefix+Ae+Q.suffix;continue}if(ye)continue;const Fe=Te?"an array":"a string";throw new TypeError(`Expected "${Q.name}" to be ${Fe}`)}return ee}}function we(b,x){return De(Ee(b,x),x)}function xe(b,x){if(!x)return b;const C=b.source.match(/\((?!\?)/g);if(C)for(let T=0;T<C.length;T++)x.push({name:T,prefix:"",suffix:"",modifier:"",pattern:""});return b}function $e(b,x,C={}){const{strict:T=!1,start:W=!0,end:$=!0,encode:B=le=>le}=C,ee=`[${V(C.endsWith||"")}]|$`,te=`[${V(C.delimiter||"/#?")}]`;let Q=W?"^":"";for(const le of b)if(typeof le=="string")Q+=V(B(le));else{const ye=V(B(le.prefix)),Te=V(B(le.suffix));if(le.pattern)if(x&&x.push(le),ye||Te)if(le.modifier==="+"||le.modifier==="*"){const Fe=le.modifier==="*"?"?":"";Q+=`(?:${ye}((?:${le.pattern})(?:${Te}${ye}(?:${le.pattern}))*)${Te})${Fe}`}else Q+=`(?:${ye}(${le.pattern})${Te})${le.modifier}`;else Q+=`(${le.pattern})${le.modifier}`;else Q+=`(?:${ye}${Te})${le.modifier}`}if($)T||(Q+=`${te}?`),Q+=C.endsWith?`(?=${ee})`:"$";else{const le=b[b.length-1],ye=typeof le=="string"?te.indexOf(le[le.length-1])>-1:le===void 0;T||(Q+=`(?:${te}(?=${ee}))?`),ye||(Q+=`(?=${te}|${ee})`)}return new RegExp(Q,ne(C))}function We(b,x,C){return $e(Ee(b,C),x,C)}function pe(b,x,C){return b instanceof RegExp?xe(b,x):Array.isArray(b)?K(b,x,C):We(b,x,C)}function K(b,x,C){const T=b.map(W=>pe(W,x,C).source);return new RegExp(`(?:${T.join("|")})`,ne(C))}const{INVALID_ROUTE_QUERY:se,MISSING_ROUTE_TEMPLATE:Y,MISSING_PAGE_BINDING:_e,INVALID_PAGE_BINDING:Ne,INVALID_URI_SYNTAX:ze}=e.messages;function je(b){const{routes:x,caseSensitive:C}=b;return x.map(T=>Re(T,C))}function Re(b,x=!1){const C=[],{id:T,uri:W,page:$}=b;e.invariant(!!W,e.generateMessageObject(Y,[T])),e.invariant(Xe(W),e.generateMessageObject(ze,[T])),e.invariant(!!$,e.generateMessageObject(_e,[T]));const B=F(W),ee=O(W),te=pe(B,C,{sensitive:x,end:b.exact!==!1}),Q=we(B,{encode:encodeURIComponent}),le=pt(ee),ye=dt(le,x),Te={original:b,regex:te,params:C,toPath:Q,compiledQuery:le,queryMatcher:ye};return e.invariant(rt(Te),e.generateMessageObject(Ne,[T])),Te}function Xe(b=""){return!["*","(",")",";"].some(T=>b.indexOf(T)>=0)}function rt(b){const{original:{page:x}={},params:C,compiledQuery:T}=b,W=x&&x.type,$=x&&x.attributes||{},B=x&&x.state||{};if(typeof W!="string"||typeof $!="object"||typeof B!="object")return!1;const ee=Object.values(C).map(({name:Ae})=>Ae),te=l(T),Q=[...ee,...te],le=Object.values($).filter(c).map(h),ye=Object.values(B).filter(c).map(h),Te=Q.every(Ae=>typeof Ae!="string"?!1:le.indexOf(Ae)>=0||ye.indexOf(Ae)>=0),Fe=Q.length===le.length+ye.length;return!!(x&&W&&$&&B&&Te&&Fe)}function pt(b){const x={};return Object.keys(b).forEach(C=>{const T=b[C];e.invariant(c(C)?T===null:!0,se),c(C)?x[C.substr(1)]={routeParamName:C}:T&&c(T)?x[C]={routeParamName:T}:x[C]={literalValue:T===null?null:T}}),x}function dt(b,x=!1){return T=>{const W=Object.keys(T),$=Object.keys(b);return $.every(ee=>W.indexOf(ee)>=0)?$.reduce((ee,te)=>{if(ee===null)return null;const{literalValue:Q,routeParamName:le}=b[te],ye=T[te];let Te=!0;return typeof Q=="string"?Te=x?Q===ye:Q.toUpperCase()===(ye==null?ye:ye.toUpperCase()):Q===null&&(Te=ye===Q),Te?ee={...ee,[te]:{value:ye,routeParamName:le}}:ee=null,ee},{}):null}}const ke=typeof document!="undefined",ft={pathToRegexp:pe,compile:we};r.DEFAULT_I18N_ROUTER_CONFIG=w,r.createFilterChain=t,r.decode=R,r.encode=E,r.freeze=Ie,r.getPageReferenceFromUriAndRouteDef=I,r.getPageReferenceFromUrl=ce,r.getPathFromUrl=F,r.getQueryFromUrl=O,r.getQueryString=_,r.getUrlFromPageReference=X,r.getUrlFromPageReferenceAndRouteDef=j,r.guid=Ce,r.hasDocument=ke,r.isObject=re,r.isValidRoute=ie,r.matchRouteByUrl=M,r.parseRoutes=je,r.pathToRegexp=ft,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/routerUtils",["exports","lwr/routerUtils/v/0_17_9"],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_17_9",["exports","lwr/routerUtils/v/0_17_9"],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_17_9"],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_17_9",["exports","lwr/contextUtils/v/0_17_9","lwr/routerErrors/v/0_17_9"],function(r,e,t){"use strict";const E=new e.ContextInfo(void 0),R=class extends e.generateContextualWireAdapter(E){async update(O,_){if(_){const c=O&&O.viewName?O.viewName:"default",h=_.viewset[c],l=h,u=l&&l.module||h;let p;if(u)try{const S=await u(),v=S&&S.default;if(v&&v.constructor!==void 0)this._callback(v);else throw new Error("error occurred with view import")}catch(S){const v=S;l.specifier?p=t.generateMessageObject(t.messages.VIEW_IMPORT_FAILED_WITH_SPECIFIER,[l.specifier,c,v.message,v.stack||""]):p=t.generateMessageObject(t.messages.VIEW_IMPORT_FAILED,[c,v.message,v.stack||""])}else p=t.generateMessageObject(t.messages.VIEW_MISSING,[c]);_.onComplete&&_.onComplete(p)}}};r.CurrentView=R,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/currentView",["exports","lwr/currentView/v/0_17_9"],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_17_9",["exports","lwr/contextUtils/v/0_17_9"],function(r,e){"use strict";const t=new e.ContextInfo(void 0),E=e.generateContextualWireAdapter(t);r.CurrentPageReference=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/currentPageReference",["exports","lwr/currentPageReference/v/0_17_9"],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_17_9",["exports"],function(r){"use strict";const e="LWR",t={Fatal:0,Error:1,Warning:2,Log:3};function E(c,h){return Array.isArray(h)?c.replace(/\{([0-9]+)\}/g,(l,u)=>h[u]):c}function R(c,h){return`${c.code}: ${E(c.message,h)}`}function F(c,h){const l={...c,message:E(c.message,h)};return c.address&&(l.address=E(c.address,h)),c.stack&&(l.stack=E(c.stack,h)),l}function O(c,h,l){if(!c)throw new Error(R(h,l))}const _={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:'Route definition with id "{0}" is missing a "uri" property.',level:t.Error,address:"{0}"},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 with id "{0}" is missing a "page" binding.',level:t.Error,address:"{0}"},INVALID_PAGE_BINDING:{code:`${e}4021`,message:'Route definition with id "{0}" has an invalid "page" binding.',level:t.Error,address:"{0}"},INVALID_URI_SYNTAX:{code:`${e}4022`,message:'Route definition with id "{0}" has invalid "uri" syntax. URI cannot contain *, +, (, ), ',level:t.Error,address:"{0}"},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=R,r.generateMessageObject=F,r.invariant=O,r.messages=_,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/routerErrors",["exports","lwr/routerErrors/v/0_17_9"],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_17_9",["exports","lwr/routerErrors/v/0_17_9"],function(r,e){"use strict";function t(c){if(c==null)throw new TypeError("Provider must be defined.")}class E{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 u=l,p=this.getInfo(h);p.contextValue=l,p.consumers.forEach(S=>S.provide(u)),p.consumers.size===0&&u?.onComplete&&u.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:u,contextValue:p}=this.getInfo(h);u.has(l)||(u.add(l),l.provide(p))}unsubscribeContext(h,l){t(h),this.getInfo(h).consumers.delete(l)}}const R=new WeakMap;function F(c){const h=R.get(c);if(!h||!h.value)throw new Error(e.generateMessage(e.messages.MISSING_CONTEXT));return h.value}function O(c,h){const l={id:c,value:h,update:u=>{l.value=u}};return R.set(l.id,l),l}function _(c){var h;return h=class{constructor(p){this._callback=p}connect(){}disconnect(){}update(p,S){S&&this._callback(S)}static setContext(p,S){c.setContext(p,S)}static getContext(p){return c.getContext(p)}static clearContext(p){c.clearContext(p)}static subscribeContext(p,S){c.subscribeContext(p,S)}static unsubscribeContext(p,S){c.unsubscribeContext(p,S)}},h.contextSchema={value:"required"},h}r.ContextInfo=E,r.generateContextualWireAdapter=_,r.getNavigationHelm=F,r.registerNavigationHelm=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/contextUtils",["exports","lwr/contextUtils/v/0_17_9"],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_17_9",["exports","lwr/contextUtils/v/0_17_9"],function(r,e){"use strict";const t=new e.ContextInfo(void 0),E=e.generateContextualWireAdapter(t);r.NavigationContext=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/navigationContext",["exports","lwr/navigationContext/v/0_17_9"],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_17_9",["exports","lwr/navigationContext/v/0_17_9","lwr/currentPageReference/v/0_17_9","lwr/currentView/v/0_17_9","lwr/contextUtils/v/0_17_9","lwr/routerErrors/v/0_17_9","lwr/navigationMixinHacks/v/0_17_9"],function(r,e,t,E,R,F,O){"use strict";function _(I,w,D,L){R.getNavigationHelm(I).navigate(w,D,L)}function c(I,w,D){return R.getNavigationHelm(I).generateUrl(w,D)}const h=Symbol("Navigate"),l=Symbol("GenerateUrl"),u=Symbol("NavContext"),p=Symbol("NavContext"),S=typeof window=="undefined";function v(I){F.invariant(typeof I.prototype.dispatchEvent=="function",F.messages.INVALID_MIXIN_CMP,[I.toString()]);class w extends I{[p](){if(!this[u]&&(this.dispatchEvent(new CustomEvent(O.CONTEXT_ID_BACKDOOR,{bubbles:!0,composed:!0,detail:{callback:L=>{this[u]=L}}})),!this[u]))throw new Error(F.generateMessage(F.messages.MISSING_CONTEXT))}[h](L,M,X){S||(this[p](),_(this[u],L,M,X))}async[l](L,M){return S?null:(this[p](),c(this[u],L,M))}}return w}v.Navigate=h,v.GenerateUrl=l,v.NavContext=u,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 E.CurrentView}}),Object.defineProperty(r,"ContextInfo",{enumerable:!0,get:function(){return R.ContextInfo}}),Object.defineProperty(r,"generateContextualWireAdapter",{enumerable:!0,get:function(){return R.generateContextualWireAdapter}}),Object.defineProperty(r,"getNavigationHelm",{enumerable:!0,get:function(){return R.getNavigationHelm}}),Object.defineProperty(r,"registerNavigationHelm",{enumerable:!0,get:function(){return R.registerNavigationHelm}}),r.NavigationMixin=v,r.generateUrl=c,r.navigate=_,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/navigation",["exports","lwr/navigation/v/0_17_9"],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_17_9",["exports","lwr/navigation/v/0_17_9","lwr/contextProvider/v/0_17_9","lwr/routerErrors/v/0_17_9","lwr/routerUtils/v/0_17_9","lwr/observable/v/0_17_9","lwr/metrics/v/0_17_9","lwr/profiler/v/0_17_9","lwr/navigationMixinHacks/v/0_17_9"],function(r,e,t,E,R,F,O,_,c){"use strict";const h=`universalcontainernavigationevent${R.guid()}`,l=`universalcontainerparentevent${R.guid()}`;class u{constructor(v,I,w){this.pendingRoute=null,this.committedRoute=null,this.contextId=Object.freeze(()=>{}),this.connected=!1,this.preNavFilters=R.createFilterChain(),this.errorNavFilters=R.createFilterChain(),this._handleNavigationEvent=D=>{const L=D;if(L.detail&&typeof L.detail=="object"){const{url:M,replace:X,address:N}=L.detail;this.config.handleNavigation(N,X)?this.root&&!M?this.root.processError(E.generateMessageObject(E.messages.MISSING_URL,[JSON.stringify(N)])):this.parent||this.process(M,X):L.stopPropagation()}},this._handleParentEvent=D=>{D.stopImmediatePropagation();const L=D;L&&L.detail&&typeof L.detail=="function"&&L.detail(this)},this.config={handleNavigation:v.handleNavigation||(()=>!0)},this.target=w||window,this.router=I,this.router.contextId=this.contextId,this.routeObservable=F.createObservable()}get root(){if(!this.parent)return this;let v=this.parent;for(;v;){if(!v.parent)return v;v=v.parent}throw new Error("No root router could be found")}updateWires(v,I,w){if(w)this.processError(w);else{if(this.committedRoute&&v.route===this.committedRoute.route)return;_.logOperationEnd({id:O.ROUTER_VIEW,specifier:this.eventId}),this.pendingRoute=this.pendingRoute||{...v,url:I},this.committedRoute={...this.pendingRoute,...v},e.CurrentPageReference.setContext(this.target,v.route.pageReference),this.routeObservable.next({...this.committedRoute,viewset:v.viewset}),_.logOperationEnd({id:O.ROUTER_NAV,specifier:this.eventId}),this.child&&this.child.process(this._stripUrlForChild(this.committedRoute.url))}}connect(){this._sendEvent(l,I=>{this.parent=I,I.addChild(this)});const v={navigate:(I,w)=>this.navigate(I,w),generateUrl:(I,w)=>this.generateUrl(I,w),subscribe:(I,w)=>this.subscribe(I,w)};e.registerNavigationHelm(this.contextId,v),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(I=>{if(I.status===404){this.processError(E.generateMessageObject(E.messages.DESTINATION_NOT_FOUND));return}if(I.status&&I.status>=400){const L=I.error||new Error;this.processError(E.generateMessageObject(E.messages.DESTINATION_ERROR,[I.status.toString(),L.message,L.stack||""]));return}const w=I.route.pageReference||{},D=this.router.generateUrl(w)||"";if(_.logOperationStart({id:O.ROUTER_VIEW,specifier:this.eventId}),I.viewset){const L={viewset:I.viewset,onComplete:this.updateWires.bind(this,I,D)};e.CurrentView.setContext(this.target,L)}else I.route.pageReference&&this.updateWires(I,D)},!0),R.hasDocument&&(this.target.addEventListener(h,this._handleNavigationEvent),this.target.addEventListener(l,this._handleParentEvent),this.target.addEventListener(c.CONTEXT_ID_BACKDOOR,I=>{const w=I;w.detail.callback&&w.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(v){this.preNavFilters.add(v)}addErrorNavigate(v){this.errorNavFilters.add(v)}async addChild(v){if(await new Promise(I=>{setTimeout(()=>{E.invariant(!this.child,E.messages.MULTIPLE_CHILDREN),this.child=v,I()},0)}),this.child&&this.committedRoute){const I=this._stripUrlForChild(this.committedRoute.url);await this.child.preProcess(I)&&this.child.process(I)}}async process(v,I,w,D){this.eventId=new Date().getTime().toString(),_.logOperationStart({id:O.ROUTER_NAV,specifier:this.eventId});try{this.parent||await this.preProcess(v,w)}catch(M){if(M.code)return this.processError(M),!1;throw M}const L=this.router.parseUrl(v);return L&&this.router.navigate(L,w),!0}preProcess(v,I){const w=this.router.parseUrl(v),D=w&&this.router.matchRoute(w,I);return D?(this.pendingRoute={url:v,...D},(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(v)):M).then(M=>M||Promise.reject(E.generateMessageObject(E.messages.PRENAV_FAILED,[v])))):Promise.reject(E.generateMessageObject(E.messages.MISSING_ROUTE,[v]))}processError(v){_.logOperationStart({id:O.ROUTER_ERROR}),this.errorNavFilters.compile(v),this.child&&this.child.processError(v)}navigate(v,I,w){const D=this.filterNavigateOptions(w);let L=this.router.generateUrl(v,D);L&&(L=(this.parent&&this.parent.committedRoute&&this.parent.committedRoute.pathMatch||"").concat(L)),this._sendEvent(h,{url:L,replace:I,address:v})}generateUrl(v,I){const w=this.filterNavigateOptions(I),D=this.router.generateUrl(v,w);return D?`${this.parent&&this.parent.committedRoute&&this.parent.committedRoute.pathMatch||""}${D}`:null}subscribe(v,I){return this.routeObservable.subscribe({next:v,error:()=>{},complete:()=>{}},Boolean(I))}_sendEvent(v,I){R.hasDocument&&this.target.dispatchEvent(new CustomEvent(v,{bubbles:!0,composed:!0,detail:I}))}_stripUrlForChild(v){return this.pendingRoute&&v.indexOf(this.pendingRoute.pathMatch)===0?v.replace(this.pendingRoute.pathMatch,""):v}filterNavigateOptions(v){const I=!this.parent;return{...v,locale:I?v?.locale:void 0}}}function p(S,v,I){return new u(S,v,I)}r.DomRouterImpl=u,r.NAV_EVENT=h,r.PARENT_EVENT=l,r.createDomRouter=p,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/domRouter",["exports","lwr/domRouter/v/0_17_9"],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_17_9",["exports","lwc/v/8_16_5","lwr/domRouter/v/0_17_9","lwr/domRouterUtils/v/0_17_9","lwr/routerUtils/v/0_17_9"],function(r,e,t,E,R){"use strict";class F extends t.DomRouterImpl{constructor(...c){super(...c);this.historyDisabled=!1}connect(){super.connect(),this.historyDisabled||(R.hasDocument&&window.addEventListener("popstate",this.onpopstate.bind(this)),this.onpopstate())}onpopstate(){!this.parent&&R.hasDocument&&this.catchBrowserUpdate(E.getRelativeUrl(window.location.href))}disconnect(){super.disconnect(),R.hasDocument&&window.removeEventListener("popstate",this.onpopstate)}async process(c,h,l,u=!0){const p=await super.process(c,h,l,u);return p&&!this.historyDisabled&&u&&this.connected&&!this.parent&&(h?E.replace(c):E.set(c)),p}catchBrowserUpdate(c){this.process(c,!1,{},!1)}}e.registerDecorators(F,{fields:["historyDisabled"]});function O(_,c,h){return new F(_,c,h)}r.HistoryRouter=F,r.createHistoryRouter=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/historyRouter",["exports","lwr/historyRouter/v/0_17_9"],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_17_9",["exports","lwc/v/8_16_5","lwr/historyRouter/v/0_17_9","lwr/routerErrors/v/0_17_9","lwr/domRouter/v/0_17_9","lwr/routerUtils/v/0_17_9"],function(r,e,t,E,R,F){"use strict";function O(L,M,X){var N=L?"."+L:"";return"span.router-title"+N+" {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;}"}O.$scoped$=!0;var _=[O];const c=e.parseFragment`<span class="router-title${0}" aria-live="polite" aria-atomic="true"${2}></span>`,h={key:0},l=[],u={ref:"title"};function p(L,M,X,N){const{s:j,sp:H,st:ce}=L;return[j("",h,l,X),ce(c,2,[H(0,u,null)])]}var S=e.registerTemplate(p);p.slots=[""],p.renderMode="light",p.hasRefs=!0,p.stylesheets=[],p.stylesheetToken="lwc-7bis3qj4jjc",p.legacyStylesheetToken="lwr-routerContainer_routerContainer",_&&p.stylesheets.push.apply(p.stylesheets,_),e.freezeTemplate(p);let v=!1;function I(L,M={},X){const N=M.historyDisabled?new R.DomRouterImpl(M,X,L):new t.HistoryRouter(M,X,L),j={addPreNavigate:H=>(N.addPreNavigate(H),j),addPostNavigate:H=>(N.subscribe(H),j),addErrorNavigate:H=>(N.addErrorNavigate(H),j),connect:()=>{N.connect(),E.invariant(!v||!!N.parent,E.messages.MULTIPLE_ROOTS),v=v||!N.parent,j.id=N.contextId},disconnect:()=>{v=v&&!!N.parent,N.disconnect()}};return j}class w extends e.LightningElement{constructor(){super();this.router=void 0,this.historyDisabled=!1,this.currentTitle=F.hasDocument?document.title:""}connectedCallback(){const M={historyDisabled:this.historyDisabled,handleNavigation:this.handleNavigation.bind(this)};F.hasDocument&&this.router&&(this.routerApi=I(this,M,this.router),this.routerApi.addPreNavigate(this.preNavigate.bind(this)).addPostNavigate(this.postNavigate.bind(this)).addErrorNavigate(this.errorNavigate.bind(this)).connect())}preNavigate(M){const X=this._createEvent("prenavigate",M,!0);return this.dispatchEvent(X),!X.defaultPrevented}postNavigate(M){this.dispatchEvent(this._createEvent("postnavigate",M));const X=M.routeDefinition.metadata&&M.routeDefinition.metadata.title;X&&(this.currentTitle=X,document.title=X);const N=this.refs?.title;N&&(N.innerHTML=this.currentTitle)}errorNavigate(M){return this.dispatchEvent(this._createEvent("errornavigate",M)),!0}handleNavigation(M,X){const N=this._createEvent("handlenavigation",{address:M,replace:X},!0);return this.dispatchEvent(N),!N.defaultPrevented}disconnectedCallback(){this.routerApi&&this.routerApi.disconnect()}_createEvent(M,X,N){return new CustomEvent(M,{detail:X,bubbles:!1,composed:!1,cancelable:N})}}w.renderMode="light",e.registerDecorators(w,{publicProps:{router:{config:0},historyDisabled:{config:0}}});const D=e.registerComponent(w,{tmpl:S,sel:"lwr-router-container",apiVersion:63});r.default=D,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/routerContainer",["exports","lwr/routerContainer/v/0_17_9"],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_1007-256_0",["exports","lwc/v/8_16_5"],function(r,e){"use strict";const t=[];function E(O,_,c,h){return t}var R=e.registerTemplate(E);E.renderMode="light",E.stylesheets=[],E.stylesheetToken="lwc-15jgd3dq0rl",E.legacyStylesheetToken="webruntime-defaultView_defaultView",e.freezeTemplate(E);var F={html:R,attributes(){}};r.default=F,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/defaultView",["exports","webruntime/defaultView/v/1_66_1007-256_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/designmodeInit/v/1_66_1007-256_0",["exports","lwr/loaderLegacy/v/0_17_9","@app/isDesignMode/v/1","@app/isPreviewMode/v/1"],function(r,e,t,E){"use strict";function R(h){return h&&typeof h=="object"&&"default"in h?h:{default:h}}var F=R(t),O=R(E);const{info:_}=console;async function c(){if(F.default||O.default){const{start:h,startPreview:l}=await e.load("webruntimedesign/designmode/v/1");F.default&&(/interactive|complete/.test(document.readyState)?h():document.addEventListener("DOMContentLoaded",h,!1)),O.default&&(l?l():_("startPreview() does not exist in this environment!"))}}r.designmodeInit=c,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/designmodeInit",["exports","webruntime/designmodeInit/v/1_66_1007-256_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/utils/v/1_66_1007-256_0",["exports"],function(r){"use strict";function e(S,v){if(!S)throw new Error(v)}function t(S){return typeof S=="object"&&S!==null&&!Array.isArray(S)}function E(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(S){const v=Math.random()*16|0;return(S==="x"?v:v&3|8).toString(16)})}function R(S){return typeof S=="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(S)}const F=new RegExp("^([a-z]+://|//)","i");function O(S){return S?F.test(S):!1}const _=new RegExp("/sfsites/c/.+","i");function c(S){return S?_.test(S):!1}function h(S,v){const I=JSON.stringify(v);if(!(window&&window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(S,I))){const D=new XMLHttpRequest;D.open("POST",S,!0),D.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),D.send(I)}}function l(S){return document?.querySelector(`meta[name="${S}"]`)?.getAttribute("content")||""}function u(){return l("basePath")}function p(){return l("deployTarget")||"CORE"}r.assert=e,r.getBasePathFromMetaTag=u,r.getDeployTargetFromMetaTag=p,r.isAbsoluteURL=O,r.isObject=t,r.isSfdcCoreURL=c,r.sendPayloadToServer=h,r.uuidValidate=R,r.uuidv4=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/utils",["exports","webruntime/utils/v/1_66_1007-256_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/logger/v/1_66_1007-256_0",["exports"],function(r){"use strict";function e(...E){console.log(...E)}function t(...E){console.error(...E)}r.log=e,r.logError=t,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/logger",["exports","webruntime/logger/v/1_66_1007-256_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/errors/v/1_66_1007-256_0",["exports","webruntime/logger/v/1_66_1007-256_0","@communities-webruntime/common/v/1_66_1007-256_0","webruntime/transport/v/1_66_1007-256_0"],function(r,e,t,E){"use strict";function R(_){E.sendBeacon({path:t.ERRORS_PATH_PREFIX,payload:JSON.stringify(_),contentType:"text/plain;charset=UTF-8"})}function F(_,c){document.dispatchEvent(new CustomEvent("client-error",{detail:{error:_,type:c}}))}function O({subject:_,error:c,wcstack:h,type:l=t.CLIENT_ERROR_TYPES.UNKNOWN_ERROR}){h=h||c.wcstack;const{message:u,stack:p}=c,{hostname:S,pathname:v}=globalThis.location||{},w={subject:_,message:u,stack:p,wcstack:h,location:{hostname:S,pathname:v}};e.logError(p||w),typeof document!="undefined"&&(F(w,l),R(w))}r.reportError=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/errors",["exports","webruntime/errors/v/1_66_1007-256_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/innerApp/v/1_66_1007-256_0",["exports","lwc/v/8_16_5","@communities-webruntime/common/v/1_66_1007-256_0","webruntime/overrides/v/1_66_1007-256_0","webruntime/errors/v/1_66_1007-256_0","webruntime/utils/v/1_66_1007-256_0","webruntime/views/v/1_66_1007-256_0","webruntime/routingService/v/1_66_1007-256_0","@app/viewToThemeLayoutMap/v/1","webruntime/designmodeInit/v/1_66_1007-256_0","webruntime/defaultView/v/1_66_1007-256_0"],function(r,e,t,E,R,F,O,_,c,h,l){"use strict";function u(L){return L&&typeof L=="object"&&"default"in L?L:{default:L}}var p=u(O),S=u(c),v=u(l),I=void 0;class w 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||v.default;this.generatedTemplateHtml=M.html,this.attributes=M.attributes(this,this.routeParams)||{},await h.designmodeInit(),this.subscription=_.subscribe(this.loadThemeLayout.bind(this))}render(){return this.generatedTemplateHtml}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}updateTemplate(M){this.generatedTemplateHtml=M.html}updateRoute(M,X){_.handleExtraRouteParams(X);const{state:N,attributes:j}=X;this.previousRouteId=this.route?.id||null,this._routeParams={...N,...j},this.attributes=M.attributes(this,this.routeParams)||{},this.route=X}restoreDefaultTemplate(){this.generatedTemplateHtml=v.default.html}async loadThemeLayout(M){let X=!1;const N=M.routeDefinition.view,j=S.default[N];setTimeout(async()=>{!X&&this.themeLayout!==j&&this.restoreDefaultTemplate()},10);let H;try{H=await p.default(j)}catch(ce){await this.handleFetchViewFailed(ce,M.routeDefinition.metadata?.isPublic)}if(!!H)try{X=!0,window?.scrollTo(0,0),this.themeLayout!==j&&(this.themeLayout=j,this.updateTemplate(H.default)),this.updateRoute(H.default,M.route)}catch(ce){R.reportError({subject:"InnerApp.loadThemeLayout error",type:t.CLIENT_ERROR_TYPES.FAILED_TO_LOAD_RESOURCE,error:ce})}}async handleFetchViewFailed(M,X){await E.PageNavigationFailureOverrides.run({error:M,isPublic:X})&&R.reportError({subject:"InnerApp.loadThemeLayout#getViewModule error",type:t.CLIENT_ERROR_TYPES.FAILED_TO_LOAD_RESOURCE,error:M})}}w.renderMode="light",e.registerDecorators(w,{publicProps:{view:{config:0},routerContainerView:{config:0},routeParams:{config:3}},publicMethods:["updateTemplate","updateRoute","restoreDefaultTemplate"],fields:["_routeParams","generatedTemplateHtml","attributes","previousRouteId","route"]});const D=e.registerComponent(w,{tmpl:I,sel:"webruntime-inner-app",apiVersion:63});r.default=D,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/innerApp",["exports","webruntime/innerApp/v/1_66_1007-256_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("lightning/purifyLib/v/1_27_1-alpha",["exports"],function(r){"use strict";/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:e,setPrototypeOf:t,isFrozen:E,getPrototypeOf:R,getOwnPropertyDescriptor:F}=Object;let{freeze:O,seal:_,create:c}=Object,{apply:h,construct:l}=typeof Reflect!="undefined"&&Reflect;O||(O=function(T){return T}),_||(_=function(T){return T}),h||(h=function(T,W,$){return T.apply(W,$)}),l||(l=function(T,W){return new T(...W)});const u=re(Array.prototype.forEach),p=re(Array.prototype.lastIndexOf),S=re(Array.prototype.pop),v=re(Array.prototype.push),I=re(Array.prototype.splice),w=re(String.prototype.toLowerCase),D=re(String.prototype.toString),L=re(String.prototype.match),M=re(String.prototype.replace),X=re(String.prototype.indexOf),N=re(String.prototype.trim),j=re(Object.prototype.hasOwnProperty),H=re(RegExp.prototype.test),ce=G(TypeError);function re(C){return function(T){for(var W=arguments.length,$=new Array(W>1?W-1:0),B=1;B<W;B++)$[B-1]=arguments[B];return h(C,T,$)}}function G(C){return function(){for(var T=arguments.length,W=new Array(T),$=0;$<T;$++)W[$]=arguments[$];return l(C,W)}}function Z(C,T){let W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:w;t&&t(C,null);let $=T.length;for(;$--;){let B=T[$];if(typeof B=="string"){const ee=W(B);ee!==B&&(E(T)||(T[$]=ee),B=ee)}C[B]=!0}return C}function Ie(C){for(let T=0;T<C.length;T++)j(C,T)||(C[T]=null);return C}function Ce(C){const T=c(null);for(const[W,$]of e(C))j(C,W)&&(Array.isArray($)?T[W]=Ie($):$&&typeof $=="object"&&$.constructor===Object?T[W]=Ce($):T[W]=$);return T}function ie(C,T){for(;C!==null;){const $=F(C,T);if($){if($.get)return re($.get);if(typeof $.value=="function")return re($.value)}C=R(C)}function W(){return null}return W}const a=O(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),d=O(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),f=O(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),k=O(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),V=O(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ne=O(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ee=O(["#text"]),De=O(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),we=O(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),xe=O(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$e=O(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),We=_(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pe=_(/<%[\w\W]*|[\w\W]*%>/gm),K=_(/\$\{[\w\W]*/gm),se=_(/^data-[\-\w.\u00B7-\uFFFF]+$/),Y=_(/^aria-[\-\w]+$/),_e=_(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ne=_(/^(?:\w+script|data):/i),ze=_(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),je=_(/^html$/i),Re=_(/^[a-z][.\w]*(-[.\w]+)+$/i);var Xe=Object.freeze({__proto__:null,ARIA_ATTR:Y,ATTR_WHITESPACE:ze,CUSTOM_ELEMENT:Re,DATA_ATTR:se,DOCTYPE_NAME:je,ERB_EXPR:pe,IS_ALLOWED_URI:_e,IS_SCRIPT_OR_DATA:Ne,MUSTACHE_EXPR:We,TMPLIT_EXPR:K});const rt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},pt=function(){return typeof window=="undefined"?null:window},dt=function(T,W){if(typeof T!="object"||typeof T.createPolicy!="function")return null;let $=null;const B="data-tt-policy-suffix";W&&W.hasAttribute(B)&&($=W.getAttribute(B));const ee="dompurify"+($?"#"+$:"");try{return T.createPolicy(ee,{createHTML(te){return te},createScriptURL(te){return te}})}catch(te){return console.warn("TrustedTypes policy "+ee+" could not be created."),null}},ke=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ft(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pt();const T=ge=>ft(ge);if(T.version="3.2.4",T.removed=[],!C||!C.document||C.document.nodeType!==rt.document||!C.Element)return T.isSupported=!1,T;let{document:W}=C;const $=W,B=$.currentScript,{DocumentFragment:ee,HTMLTemplateElement:te,Node:Q,Element:le,NodeFilter:ye,NamedNodeMap:Te=C.NamedNodeMap||C.MozNamedAttrMap,HTMLFormElement:Fe,DOMParser:Ae,trustedTypes:Ve}=C,Ge=le.prototype,A=ie(Ge,"cloneNode"),oe=ie(Ge,"remove"),me=ie(Ge,"nextSibling"),ue=ie(Ge,"childNodes"),Se=ie(Ge,"parentNode");if(typeof te=="function"){const ge=W.createElement("template");ge.content&&ge.content.ownerDocument&&(W=ge.content.ownerDocument)}let Ke,lt="";const{implementation:Ze,createNodeIterator:yt,createDocumentFragment:nt,getElementsByTagName:Je}=W,{importNode:Rt}=$;let Ye=ke();T.isSupported=typeof e=="function"&&typeof Se=="function"&&Ze&&Ze.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ht,ERB_EXPR:at,TMPLIT_EXPR:It,DATA_ATTR:At,ARIA_ATTR:Pt,IS_SCRIPT_OR_DATA:ve,ATTR_WHITESPACE:n,CUSTOM_ELEMENT:i}=Xe;let{IS_ALLOWED_URI:o}=Xe,s=null;const g=Z({},[...a,...d,...f,...V,...Ee]);let P=null;const z=Z({},[...De,...we,...xe,...$e]);let de=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Pe=null,be=null,Le=!0,Ue=!0,fe=!1,He=!0,Be=!1,gt=!0,bt=!1,Et=!1,vt=!1,et=!1,_t=!1,ct=!1,Nt=!0,jt=!1;const m="user-content-";let U=!0,q=!1,ae={},Oe=null;const Me=Z({},["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"]);let qe=null;const it=Z({},["audio","video","img","source","image","track"]);let Ht=null;const qt=Z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kt="http://www.w3.org/1998/Math/MathML",Ut="http://www.w3.org/2000/svg",Tt="http://www.w3.org/1999/xhtml";let St=Tt,Vt=!1,Gt=null;const or=Z({},[kt,Ut,Tt],D);let xt=Z({},["mi","mo","mn","ms","mtext"]),$t=Z({},["annotation-xml"]);const ar=Z({},["title","style","font","a","script"]);let Mt=null;const sr=["application/xhtml+xml","text/html"],lr="text/html";let tt=null,Lt=null;const cr=W.createElement("form"),zt=function(y){return y instanceof RegExp||y instanceof Function},Wt=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Lt&&Lt===y)){if((!y||typeof y!="object")&&(y={}),y=Ce(y),Mt=sr.indexOf(y.PARSER_MEDIA_TYPE)===-1?lr:y.PARSER_MEDIA_TYPE,tt=Mt==="application/xhtml+xml"?D:w,s=j(y,"ALLOWED_TAGS")?Z({},y.ALLOWED_TAGS,tt):g,P=j(y,"ALLOWED_ATTR")?Z({},y.ALLOWED_ATTR,tt):z,Gt=j(y,"ALLOWED_NAMESPACES")?Z({},y.ALLOWED_NAMESPACES,D):or,Ht=j(y,"ADD_URI_SAFE_ATTR")?Z(Ce(qt),y.ADD_URI_SAFE_ATTR,tt):qt,qe=j(y,"ADD_DATA_URI_TAGS")?Z(Ce(it),y.ADD_DATA_URI_TAGS,tt):it,Oe=j(y,"FORBID_CONTENTS")?Z({},y.FORBID_CONTENTS,tt):Me,Pe=j(y,"FORBID_TAGS")?Z({},y.FORBID_TAGS,tt):{},be=j(y,"FORBID_ATTR")?Z({},y.FORBID_ATTR,tt):{},ae=j(y,"USE_PROFILES")?y.USE_PROFILES:!1,Le=y.ALLOW_ARIA_ATTR!==!1,Ue=y.ALLOW_DATA_ATTR!==!1,fe=y.ALLOW_UNKNOWN_PROTOCOLS||!1,He=y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Be=y.SAFE_FOR_TEMPLATES||!1,gt=y.SAFE_FOR_XML!==!1,bt=y.WHOLE_DOCUMENT||!1,et=y.RETURN_DOM||!1,_t=y.RETURN_DOM_FRAGMENT||!1,ct=y.RETURN_TRUSTED_TYPE||!1,vt=y.FORCE_BODY||!1,Nt=y.SANITIZE_DOM!==!1,jt=y.SANITIZE_NAMED_PROPS||!1,U=y.KEEP_CONTENT!==!1,q=y.IN_PLACE||!1,o=y.ALLOWED_URI_REGEXP||_e,St=y.NAMESPACE||Tt,xt=y.MATHML_TEXT_INTEGRATION_POINTS||xt,$t=y.HTML_INTEGRATION_POINTS||$t,de=y.CUSTOM_ELEMENT_HANDLING||{},y.CUSTOM_ELEMENT_HANDLING&&zt(y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(de.tagNameCheck=y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),y.CUSTOM_ELEMENT_HANDLING&&zt(y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(de.attributeNameCheck=y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),y.CUSTOM_ELEMENT_HANDLING&&typeof y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(de.allowCustomizedBuiltInElements=y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Be&&(Ue=!1),_t&&(et=!0),ae&&(s=Z({},Ee),P=[],ae.html===!0&&(Z(s,a),Z(P,De)),ae.svg===!0&&(Z(s,d),Z(P,we),Z(P,$e)),ae.svgFilters===!0&&(Z(s,f),Z(P,we),Z(P,$e)),ae.mathMl===!0&&(Z(s,V),Z(P,xe),Z(P,$e))),y.ADD_TAGS&&(s===g&&(s=Ce(s)),Z(s,y.ADD_TAGS,tt)),y.ADD_ATTR&&(P===z&&(P=Ce(P)),Z(P,y.ADD_ATTR,tt)),y.ADD_URI_SAFE_ATTR&&Z(Ht,y.ADD_URI_SAFE_ATTR,tt),y.FORBID_CONTENTS&&(Oe===Me&&(Oe=Ce(Oe)),Z(Oe,y.FORBID_CONTENTS,tt)),U&&(s["#text"]=!0),bt&&Z(s,["html","head","body"]),s.table&&(Z(s,["tbody"]),delete Pe.tbody),y.TRUSTED_TYPES_POLICY){if(typeof y.TRUSTED_TYPES_POLICY.createHTML!="function")throw ce('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ce('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Ke=y.TRUSTED_TYPES_POLICY,lt=Ke.createHTML("")}else Ke===void 0&&(Ke=dt(Ve,B)),Ke!==null&&typeof lt=="string"&&(lt=Ke.createHTML(""));O&&O(y),Lt=y}},Xt=Z({},[...d,...f,...k]),Kt=Z({},[...V,...ne]),ur=function(y){let J=Se(y);(!J||!J.tagName)&&(J={namespaceURI:St,tagName:"template"});const he=w(y.tagName),Qe=w(J.tagName);return Gt[y.namespaceURI]?y.namespaceURI===Ut?J.namespaceURI===Tt?he==="svg":J.namespaceURI===kt?he==="svg"&&(Qe==="annotation-xml"||xt[Qe]):Boolean(Xt[he]):y.namespaceURI===kt?J.namespaceURI===Tt?he==="math":J.namespaceURI===Ut?he==="math"&&$t[Qe]:Boolean(Kt[he]):y.namespaceURI===Tt?J.namespaceURI===Ut&&!$t[Qe]||J.namespaceURI===kt&&!xt[Qe]?!1:!Kt[he]&&(ar[he]||!Xt[he]):!!(Mt==="application/xhtml+xml"&&Gt[y.namespaceURI]):!1},Ct=function(y){v(T.removed,{element:y});try{Se(y).removeChild(y)}catch(J){oe(y)}},Ft=function(y,J){try{v(T.removed,{attribute:J.getAttributeNode(y),from:J})}catch(he){v(T.removed,{attribute:null,from:J})}if(J.removeAttribute(y),y==="is")if(et||_t)try{Ct(J)}catch(he){}else try{J.setAttribute(y,"")}catch(he){}},Yt=function(y){let J=null,he=null;if(vt)y="<remove></remove>"+y;else{const ot=L(y,/^[\r\n\t ]+/);he=ot&&ot[0]}Mt==="application/xhtml+xml"&&St===Tt&&(y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+y+"</body></html>");const Qe=Ke?Ke.createHTML(y):y;if(St===Tt)try{J=new Ae().parseFromString(Qe,Mt)}catch(ot){}if(!J||!J.documentElement){J=Ze.createDocument(St,"template",null);try{J.documentElement.innerHTML=Vt?lt:Qe}catch(ot){}}const st=J.body||J.documentElement;return y&&he&&st.insertBefore(W.createTextNode(he),st.childNodes[0]||null),St===Tt?Je.call(J,bt?"html":"body")[0]:bt?J.documentElement:st},Qt=function(y){return yt.call(y.ownerDocument||y,y,ye.SHOW_ELEMENT|ye.SHOW_COMMENT|ye.SHOW_TEXT|ye.SHOW_PROCESSING_INSTRUCTION|ye.SHOW_CDATA_SECTION,null)},Bt=function(y){return y instanceof Fe&&(typeof y.nodeName!="string"||typeof y.textContent!="string"||typeof y.removeChild!="function"||!(y.attributes instanceof Te)||typeof y.removeAttribute!="function"||typeof y.setAttribute!="function"||typeof y.namespaceURI!="string"||typeof y.insertBefore!="function"||typeof y.hasChildNodes!="function")},Jt=function(y){return typeof Q=="function"&&y instanceof Q};function Ot(ge,y,J){u(ge,he=>{he.call(T,y,J,Lt)})}const Zt=function(y){let J=null;if(Ot(Ye.beforeSanitizeElements,y,null),Bt(y))return Ct(y),!0;const he=tt(y.nodeName);if(Ot(Ye.uponSanitizeElement,y,{tagName:he,allowedTags:s}),y.hasChildNodes()&&!Jt(y.firstElementChild)&&H(/<[/\w]/g,y.innerHTML)&&H(/<[/\w]/g,y.textContent)||y.nodeType===rt.progressingInstruction||gt&&y.nodeType===rt.comment&&H(/<[/\w]/g,y.data))return Ct(y),!0;if(!s[he]||Pe[he]){if(!Pe[he]&&tr(he)&&(de.tagNameCheck instanceof RegExp&&H(de.tagNameCheck,he)||de.tagNameCheck instanceof Function&&de.tagNameCheck(he)))return!1;if(U&&!Oe[he]){const Qe=Se(y)||y.parentNode,st=ue(y)||y.childNodes;if(st&&Qe){const ot=st.length;for(let mt=ot-1;mt>=0;--mt){const wt=A(st[mt],!0);wt.__removalCount=(y.__removalCount||0)+1,Qe.insertBefore(wt,me(y))}}}return Ct(y),!0}return y instanceof le&&!ur(y)||(he==="noscript"||he==="noembed"||he==="noframes")&&H(/<\/no(script|embed|frames)/i,y.innerHTML)?(Ct(y),!0):(Be&&y.nodeType===rt.text&&(J=y.textContent,u([ht,at,It],Qe=>{J=M(J,Qe," ")}),y.textContent!==J&&(v(T.removed,{element:y.cloneNode()}),y.textContent=J)),Ot(Ye.afterSanitizeElements,y,null),!1)},er=function(y,J,he){if(Nt&&(J==="id"||J==="name")&&(he in W||he in cr))return!1;if(!(Ue&&!be[J]&&H(At,J))){if(!(Le&&H(Pt,J))){if(!P[J]||be[J]){if(!(tr(y)&&(de.tagNameCheck instanceof RegExp&&H(de.tagNameCheck,y)||de.tagNameCheck instanceof Function&&de.tagNameCheck(y))&&(de.attributeNameCheck instanceof RegExp&&H(de.attributeNameCheck,J)||de.attributeNameCheck instanceof Function&&de.attributeNameCheck(J))||J==="is"&&de.allowCustomizedBuiltInElements&&(de.tagNameCheck instanceof RegExp&&H(de.tagNameCheck,he)||de.tagNameCheck instanceof Function&&de.tagNameCheck(he))))return!1}else if(!Ht[J]){if(!H(o,M(he,n,""))){if(!((J==="src"||J==="xlink:href"||J==="href")&&y!=="script"&&X(he,"data:")===0&&qe[y])){if(!(fe&&!H(ve,M(he,n,"")))){if(he)return!1}}}}}}return!0},tr=function(y){return y!=="annotation-xml"&&L(y,i)},rr=function(y){Ot(Ye.beforeSanitizeAttributes,y,null);const{attributes:J}=y;if(!J||Bt(y))return;const he={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:P,forceKeepAttr:void 0};let Qe=J.length;for(;Qe--;){const st=J[Qe],{name:ot,namespaceURI:mt,value:wt}=st,Dt=tt(ot);let ut=ot==="value"?wt:N(wt);if(he.attrName=Dt,he.attrValue=ut,he.keepAttr=!0,he.forceKeepAttr=void 0,Ot(Ye.uponSanitizeAttribute,y,he),ut=he.attrValue,jt&&(Dt==="id"||Dt==="name")&&(Ft(ot,y),ut=m+ut),gt&&H(/((--!?|])>)|<\/(style|title)/i,ut)){Ft(ot,y);continue}if(he.forceKeepAttr||(Ft(ot,y),!he.keepAttr))continue;if(!He&&H(/\/>/i,ut)){Ft(ot,y);continue}Be&&u([ht,at,It],ir=>{ut=M(ut,ir," ")});const nr=tt(y.nodeName);if(!!er(nr,Dt,ut)){if(Ke&&typeof Ve=="object"&&typeof Ve.getAttributeType=="function"&&!mt)switch(Ve.getAttributeType(nr,Dt)){case"TrustedHTML":{ut=Ke.createHTML(ut);break}case"TrustedScriptURL":{ut=Ke.createScriptURL(ut);break}}try{mt?y.setAttributeNS(mt,ot,ut):y.setAttribute(ot,ut),Bt(y)?Ct(y):S(T.removed)}catch(ir){}}}Ot(Ye.afterSanitizeAttributes,y,null)},dr=function ge(y){let J=null;const he=Qt(y);for(Ot(Ye.beforeSanitizeShadowDOM,y,null);J=he.nextNode();)Ot(Ye.uponSanitizeShadowNode,J,null),Zt(J),rr(J),J.content instanceof ee&&ge(J.content);Ot(Ye.afterSanitizeShadowDOM,y,null)};return T.sanitize=function(ge){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=null,he=null,Qe=null,st=null;if(Vt=!ge,Vt&&(ge="<!-->"),typeof ge!="string"&&!Jt(ge))if(typeof ge.toString=="function"){if(ge=ge.toString(),typeof ge!="string")throw ce("dirty is not a string, aborting")}else throw ce("toString is not a function");if(!T.isSupported)return ge;if(Et||Wt(y),T.removed=[],typeof ge=="string"&&(q=!1),q){if(ge.nodeName){const wt=tt(ge.nodeName);if(!s[wt]||Pe[wt])throw ce("root node is forbidden and cannot be sanitized in-place")}}else if(ge instanceof Q)J=Yt("<!---->"),he=J.ownerDocument.importNode(ge,!0),he.nodeType===rt.element&&he.nodeName==="BODY"||he.nodeName==="HTML"?J=he:J.appendChild(he);else{if(!et&&!Be&&!bt&&ge.indexOf("<")===-1)return Ke&&ct?Ke.createHTML(ge):ge;if(J=Yt(ge),!J)return et?null:ct?lt:""}J&&vt&&Ct(J.firstChild);const ot=Qt(q?ge:J);for(;Qe=ot.nextNode();)Zt(Qe),rr(Qe),Qe.content instanceof ee&&dr(Qe.content);if(q)return ge;if(et){if(_t)for(st=nt.call(J.ownerDocument);J.firstChild;)st.appendChild(J.firstChild);else st=J;return(P.shadowroot||P.shadowrootmode)&&(st=Rt.call($,st,!0)),st}let mt=bt?J.outerHTML:J.innerHTML;return bt&&s["!doctype"]&&J.ownerDocument&&J.ownerDocument.doctype&&J.ownerDocument.doctype.name&&H(je,J.ownerDocument.doctype.name)&&(mt="<!DOCTYPE "+J.ownerDocument.doctype.name+`>
`+mt),Be&&u([ht,at,It],wt=>{mt=M(mt,wt," ")}),Ke&&ct?Ke.createHTML(mt):mt},T.setConfig=function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Wt(ge),Et=!0},T.clearConfig=function(){Lt=null,Et=!1},T.isValidAttribute=function(ge,y,J){Lt||Wt({});const he=tt(ge),Qe=tt(y);return er(he,Qe,J)},T.addHook=function(ge,y){typeof y=="function"&&v(Ye[ge],y)},T.removeHook=function(ge,y){if(y!==void 0){const J=p(Ye[ge],y);return J===-1?void 0:I(Ye[ge],J,1)[0]}return S(Ye[ge])},T.removeHooks=function(ge){Ye[ge]=[]},T.removeAllHooks=function(){Ye=ke()},T}var b=ft();function x(C,T){return b.sanitize(C,T)}r.default=x,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/purifyLib",["exports","lightning/purifyLib/v/1_27_1-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/256_8_0",["exports","lwc/v/8_16_5","lightning/purifyLib/v/1_27_1-alpha"],function(r,e,t){"use strict";function E(I){return I&&typeof I=="object"&&"default"in I?I:{default:I}}var R=E(t);const F={hidden:""},O={lwc:{dom:"manual"}};function _(I,w,D,L){const{shc:M,h:X}=I;return[X("div",{attrs:F,props:{innerHTML:L._rawHtml$0!==(L._rawHtml$0=w.scriptElement)?L._sanitizedHtml$0=M(w.scriptElement):L._sanitizedHtml$0},context:O,key:0})]}var c=e.registerTemplate(_);_.renderMode="light",_.stylesheets=[],_.stylesheetToken="lwc-64pqse1e4gn",_.legacyStylesheetToken="experience-dataLayerObject_dataLayerObject",e.freezeTemplate(_);const u=Object.freeze({ALLOWED_TAGS:[],ALLOWED_ATTR:[]});function p(I){return typeof window=="undefined"?I:R.default(I,u)}class S extends e.LightningElement{constructor(...w){super(...w);this._scriptDataAttributes={},this._catalogObjectId=void 0,this._catalogObjectType=void 0,this._catalogObjectAttributes=void 0,this._relatedCatalogObjects=void 0,this._customObject=void 0}set scriptDataAttributes(w){this._scriptDataAttributes=w}get scriptDataAttributes(){return this._scriptDataAttributes}set catalogObjectId(w){this._catalogObjectId=w}get catalogObjectId(){return this._catalogObjectId}set catalogObjectType(w){this._catalogObjectType=w}get catalogObjectType(){return this._catalogObjectType}set catalogObjectAttributes(w){this._catalogObjectAttributes=w}get catalogObjectAttributes(){return this._catalogObjectAttributes}set relatedCatalogObjects(w){this._relatedCatalogObjects=w}get relatedCatalogObjects(){return this._relatedCatalogObjects}set customObject(w){this._customObject=w}get customObject(){return this._customObject}get scriptElement(){return this.scriptDataAttributes?.providerType&&(this.isCustomObject()||this.isCatalogObject())?`<script type="application/json" data-provider-type="${this.scriptDataAttributes?.providerType}">${p(this.scriptElementContent())}</script>`:""}scriptElementContent(){const w=this.isCustomObject()?this.customObject:this.buildCatalogObject();return JSON.stringify(w)}isCustomObject(){return!!this.customObject}isCatalogObject(){return!!(this.catalogObjectId&&this.catalogObjectType)}buildCatalogObject(){return{id:this.catalogObjectId,type:this.catalogObjectType,attributes:this.catalogObjectAttributes,relatedCatalogObjects:this.relatedCatalogObjects}}}S.renderMode="light",e.registerDecorators(S,{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"]});const v=e.registerComponent(S,{tmpl:c,sel:"experience-data-layer-object",apiVersion:63});r.default=v,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("experience/dataLayerObject",["exports","experience/dataLayerObject/v/256_8_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_66_1007-256_0",["exports","lwc/v/8_16_5","experience/dataLayerObject/v/256_8_0","webruntime/innerApp/v/1_66_1007-256_0","lwr/routerContainer/v/0_17_9","@salesforce/site/Id/v/1","@salesforce/webstore/Id/v/1","@app/templateDevName/v/1","webruntime/routingService/v/1_66_1007-256_0","webruntime/errors/v/1_66_1007-256_0"],function(r,e,t,E,R,F,O,_,c,h){"use strict";function l(N){return N&&typeof N=="object"&&"default"in N?N:{default:N}}var u=l(t),p=l(E),S=l(R),v=l(F),I=l(O),w=l(_);function D(N,j,H,ce){const{c:re}=N;return[re("lwr-router-container",S.default,{props:{router:j.router},key:0},[re("experience-data-layer-object",u.default,{props:{scriptDataAttributes:j.siteDataForDataLayer.scriptDataAttributes,customObject:j.siteDataForDataLayer.customObject},key:1}),re("webruntime-inner-app",p.default,{props:{view:j.view,routerContainerView:j.routerContainerView,routeParams:j.routeParams},key:2})])]}var L=e.registerTemplate(D);D.renderMode="light",D.stylesheets=[],D.stylesheetToken="lwc-ag6063mqi2",D.legacyStylesheetToken="webruntime-app_app",e.freezeTemplate(D);class M extends e.LightningElement{constructor(j,H){super();this.routeParams=void 0,this.themeLayout=void 0,this.isInitialized=void 0,this.router=c.router,this.view=j,this.routerContainerView=H,this.siteDataForDataLayer={scriptDataAttributes:{providerType:"site"},customObject:{siteId:v.default,templateDevName:w.default,...I.default?{webstore:{id:I.default}}:{}}}}renderedCallback(){if(this.isInitialized)return;const j=this.querySelector("lwr-router-container");c.initializeRouterContainer(j),this.isInitialized=!0}errorCallback(j,H){if(h.reportError({subject:"app level error",error:j,wcstack:H}),process.env.SSR)throw j}disconnectedCallback(){this.isInitialized=!1}render(){return L}}M.renderMode="light",e.registerDecorators(M,{publicProps:{routeParams:{config:0}},fields:["themeLayout","isInitialized","router"]});const X=e.registerComponent(M,{tmpl:L,sel:"webruntime-app",apiVersion:63});r.default=X,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/app",["exports","webruntime/app/v/1_66_1007-256_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("@salesforce/loader/v/1_66_1007-256_0",["exports","lwr/loaderLegacy/v/0_17_9"],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_66_1007-256_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/assert/v/1_66_1007-256_0",["exports","webruntime/utils/v/1_66_1007-256_0"],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_1007-256_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("aura-instrumentation/v/1_66_1007-256_0",["exports","webruntime/logger/v/1_66_1007-256_0","@communities-webruntime/common/v/1_66_1007-256_0","webruntime/assert/v/1_66_1007-256_0"],function(r,e,t,E){"use strict";function R(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var F=R(E);function O(a,d){return`${t.WEBRUNTIME_PREFIX}-${[a,d].filter(Boolean).join(":")}`}const{performance:_}=globalThis;function c(a){const d=JSON.stringify(a);return d&&JSON.parse(d)}function h(a,d,f){const k=O(a,d);_.mark(k,{detail:{ctx:c(f)}})}function l(a,d,f){h(a,d,f)}function u(a,d,f){h(a,d,f)}function p(a,d,f){const k=O(a,d);try{_.measure(k,{detail:{ctx:c(f)},start:k})}catch(V){e.logError(`[instrumentation] no startMark named ${k} found`,V.stack)}}function S(){return Date.now()}function v(a,d,f){}function I(a,d,f){}function w(a,d,f,k,V){}function D(a){}function L(a,d){}function M(a){return{logHits(d){},logMisses(d){},unRegister(){}}}function X(a,d,f){}function N(a){}function j(a){}function H(a){}function ce(a,d,f){}function re(a){return{increment(d){},decrement(d){},getValue(){return 0},reset(){}}}function G(a){return{setValue(d){},getValue(){return 0},reset(){}}}function Z(a){return{update(d){},getValue(){return[]},reset(){}}}function Ie(a){return{addDuration(){},time(){},getValue(){return[]},reset(){},get(){}}}class Ce{constructor(){this._registry={eptMarked:[],navToPage:[],navFromPage:[],windowUnload:[]}}get knownEvents(){return Object.keys(this._registry)}_checkEventName(d){if(!this._registry[d])throw new Error(`eventName ${d} isn't valid`)}register(d,f,k){return F.default(d&&typeof d=="string","eventName must be a valid string"),this._checkEventName(d),F.default(f&&typeof f=="string","listenerName must be a valid string"),F.default(typeof k=="function","callback must be provided"),this._registry[d].push({name:f,func:k})}unregister(d,f){this._checkEventName(d);const k=f-1;F.default(this._registry[d][k],`No listener found for ${d} with registration ID ${f}`),delete this._registry[d][k]}notify(d,f){this._checkEventName(d),this._registry[d].forEach(k=>k.func(f))}}const ie=new Ce;r.counter=re,r.disablePlugin=H,r.enablePlugin=j,r.error=X,r.gauge=G,r.interaction=w,r.mark=l,r.markEnd=p,r.markStart=u,r.notifications=ie,r.percentileHistogram=Z,r.perfEnd=I,r.perfStart=v,r.registerCacheStats=M,r.registerPeriodicLogger=L,r.registerPlugin=D,r.removePeriodicLogger=N,r.time=S,r.timer=Ie,r.trackScenario=ce,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("aura-instrumentation",["exports","aura-instrumentation/v/1_66_1007-256_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("aura-storage/v/1_66_1007-256_0",["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_66_1007-256_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/auraMethodToResourceReferenceMapping/v/1_66_1007-256_0",["exports"],function(r){"use strict";const e="/services/data/v64.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"},"CommerceCatalogManagementController.compositeCommerceVariationCreate":{urlPath:e+"/commerce/management/webstore/${webstoreId}/composite-variations",urlPathParamNames:["webstoreId"],inputRepresentation:"compositeCommerceVariationInputRepresentation",method:"POST"},"CommerceCatalogManagementController.ProductAttributeSearch":{urlPath:e+"/commerce/management/search/product-variation-attributes",urlPathParamNames:[],method:"GET"},"CommerceCatalogSettingsController.getDisplayableAttributes":{urlPath:e+"/commerce/management/webstores/${webstoreId}/catalog/attribute-settings/displayable-fields",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceCatalogSettingsController.replaceDisplayableAttributes":{urlPath:e+"/commerce/management/webstores/${webstoreId}/catalog/attribute-settings/displayable-fields",urlPathParamNames:["webstoreId"],inputRepresentation:"displayableAttributeSettings",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"},"FilesController.getFileUploadConfig":{urlPath:e+"/connect/file/upload/config",urlPathParamNames:[],method:"GET"},"FilesController.createContentDocFromContentBody":{urlPath:e+"/connect/files/users/${userId}",urlPathParamNames:["userId"],inputRepresentation:"file",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.getSearchBoostBuryRules":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/boost-bury-rules",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceSearchController.createSearchBoostBuryRule":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/boost-bury-rules",urlPathParamNames:["webstoreId"],inputRepresentation:"boostBuryRuleInput",method:"POST"},"CommerceSearchController.deleteSearchBoostBuryRule":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/boost-bury-rules/${ruleId}",urlPathParamNames:["ruleId","webstoreId"],method:"DELETE"},"CommerceSearchController.getSearchBoostBuryRule":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/boost-bury-rules/${ruleId}",urlPathParamNames:["ruleId","webstoreId"],method:"GET"},"CommerceSearchController.getSearchIndexErrors":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/index/${indexId}/errors",urlPathParamNames:["indexId","webstoreId"],method:"GET"},"CommerceSearchController.getManagementSortRules":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/sort-rules",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceSearchController.putSortRules":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/sort-rules",urlPathParamNames:["webstoreId"],inputRepresentation:"sortRules",method:"PUT"},"CommerceSearchController.searchProducts":{urlPath:e+"/commerce/webstores/${webstoreId}/search/product-search",urlPathParamNames:["webstoreId"],inputRepresentation:"productSearchInput",method:"POST"},"CommerceSearchSettingsController.getCommerceSearchIndexes":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/indexes",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceSearchSettingsController.createCommerceSearchIndex":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/indexes",urlPathParamNames:["webstoreId"],method:"POST"},"CommerceSearchSettingsController.getCommerceSearchIndexLogs":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/index-logs",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceSearchSettingsController.getFacetableAttributeSettings":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/attribute-settings/facetable-fields",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceSearchSettingsController.replaceFacetableAttributeSettings":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/attribute-settings/facetable-fields",urlPathParamNames:["webstoreId"],inputRepresentation:"facetableAttributeSettings",method:"PUT"},"CommerceSearchSettingsController.getSearchableAttributes":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/attribute-settings/searchable-fields",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceSearchSettingsController.modifySearchableAttributes":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/attribute-settings/searchable-fields",urlPathParamNames:["webstoreId"],inputRepresentation:"searchableAttributeSettings",method:"PATCH"},"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.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.cloneManagedContentDocument":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/clone",urlPathParamNames:["contentKeyOrId"],inputRepresentation:"ManagedContentCloneInputParam",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.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.createManagedContentTranslationVariants":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/translate",urlPathParamNames:["contentKeyOrId"],inputRepresentation:"languages",method:"POST"},"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.getManagedContentProviders":{urlPath:e+"/connect/cms/content/providers",urlPathParamNames:[],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.getManagedContentSingleItem":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/single-item-content/${contentTypeFQN}",urlPathParamNames:["contentSpaceId","contentTypeFQN"],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"},"ManagedContentChannelController.getManagedContentChannels":{urlPath:e+"/connect/cms/channels",urlPathParamNames:[],method:"GET"},"ManagedContentChannelController.postManagedContentChannel":{urlPath:e+"/connect/cms/channels",urlPathParamNames:[],inputRepresentation:"ManagedContentChannelInput",method:"POST"},"ManagedContentChannelController.deleteManagedContentChannel":{urlPath:e+"/connect/cms/channels/${channelId}",urlPathParamNames:["channelId"],method:"DELETE"},"ManagedContentChannelController.getManagedContentChannel":{urlPath:e+"/connect/cms/channels/${channelId}",urlPathParamNames:["channelId"],method:"GET"},"ManagedContentChannelController.patchManagedContentChannel":{urlPath:e+"/connect/cms/channels/${channelId}",urlPathParamNames:["channelId"],inputRepresentation:"ManagedContentChannelInput",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"},"ManagedContentSpaceController.getManagedContentSpaceChannels":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/channels",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentSpaceController.patchManagedContentSpaceChannels":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/channels",urlPathParamNames:["contentSpaceId"],inputRepresentation:"spaceChannels",method:"PATCH"},"ManagedContentSpaceController.deleteDummySpace":{urlPath:e+"/connect/cms/spaces/dummy/",urlPathParamNames:[],method:"DELETE"},"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.getQuickActionInfo":{urlPath:e+"/ui-api/actions/quick-action-info/${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"},"ServicePlanController.executeServicePlan":{urlPath:e+"/service-plan/execute/${generatedPlanId}",urlPathParamNames:["generatedPlanId"],inputRepresentation:"servicePlanInputRepresentation",method:"PUT"},"ServicePlanController.generateSync":{urlPath:e+"/service-plan/generateSync/${recordId}",urlPathParamNames:["recordId"],inputRepresentation:"ServicePlanPostInput",method:"POST"},"TableauEmbeddingController.postJWT":{urlPath:e+"/tableau/jwt",urlPathParamNames:[],method:"POST",inputRepresentation:"tableauJwtArgs"},"TableauEmbeddingController.getJWT":{urlPath:e+"/tableau/jwt",urlPathParamNames:[],method:"GET"},"TableauEmbeddingController.getEAS":{urlPath:e+"/tableau/eas",urlPathParamNames:[],method:"GET"},"MilestonesController.getBusinessHours":{urlPath:e+"/connect/milestones/business-hours",urlPathParamNames:[],method:"GET"},"MilestonesController.markMilestoneCompleted":{urlPath:e+"/connect/milestones/business-hours/milestone-completed",urlPathParamNames:[],method:"PUT"},"MilestonesController.getMilestonesDataManager":{urlPath:e+"/connect/milestones/milestones-data-manager/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"ICpqConnectFeatureController.productDetails":{urlPath:e+"/connect/cpq/products/${productId}",urlPathParamNames:["productId"],method:"POST",inputRepresentation:"requestBody"},"ICpqConnectFeatureController.configure":{urlPath:e+"/connect/cpq/configurator/actions/configure",urlPathParamNames:[],method:"POST",inputRepresentation:"configuratorInput"},"ICpqConnectFeatureController.searchProductList":{urlPath:e+"/connect/cpq/products/search",urlPathParamNames:[],method:"POST",inputRepresentation:"requestBody"},"IArcResourceFamilyController.amend":{urlPath:e+"/connect/revenue-management/assets/actions/amend",urlPathParamNames:[],method:"POST",inputRepresentation:"amendRequest"},"IArcResourceFamilyController.renew":{urlPath:e+"/connect/revenue-management/assets/actions/renew",urlPathParamNames:[],method:"POST",inputRepresentation:"amendRequest"},"IArcResourceFamilyController.cancel":{urlPath:e+"/connect/revenue-management/assets/actions/cancel",urlPathParamNames:[],method:"POST",inputRepresentation:"amendRequest"},"InstantPricingConnectFeatureController.getInstantPricing":{urlPath:e+"/industries/cpq/quotes/actions/get-instant-price",urlPathParamNames:[],method:"POST",inputRepresentation:"getInstantPricingRequestPayload"},"SalesTransactionContextController.placeSalesTransaction":{urlPath:e+"/connect/rev/sales-transaction/actions/place",urlPathParamNames:[],method:"POST",inputRepresentation:"PlaceSalesTransactionInput"},"PlaceQuoteController.placeQuote":{urlPath:e+"/commerce/quotes/actions/place",urlPathParamNames:[],method:"POST",inputRepresentation:"PlaceQuoteInput"},"CommerceOrderController.placeOrder":{urlPath:e+"/commerce/sales-orders/actions/place",urlPathParamNames:[],method:"POST",inputRepresentation:"inputRequest"},"SalesAgreementProductController.updateSalesAgreement":{urlPath:e+"/connect/sales-agreements/${salesAgreementId}/product",urlPathParamNames:["salesAgreementId"],method:"PUT",inputRepresentation:"salesAgreementDetailInput"},"ConfiguratorResourceFamilyController.getProductFlowByProductId":{urlPath:e+"/connect/pcm/products/${productId}/flow",urlPathParamNames:["productId"],method:"GET"},"ICpqConnectFeatureController.bulkProductDetails":{urlPath:e+"/connect/cpq/products/bulk",urlPathParamNames:[],method:"POST",inputRepresentation:"requestBody"},"ICpqConnectFeatureController.productList":{urlPath:e+"/connect/cpq/products",urlPathParamNames:[],method:"POST",inputRepresentation:"requestBody"},"ICpqConnectFeatureController.guidedSelectionProductList":{urlPath:e+"/connect/cpq/products/guided-selection",urlPathParamNames:[],method:"POST",inputRepresentation:"requestBody"},"ICpqConnectFeatureController.categoryList":{urlPath:e+"/connect/cpq/categories",urlPathParamNames:[],method:"POST",inputRepresentation:"requestBody"}};function E(R){return t[R]}r.getResourceReferenceFromAuraMethod=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/auraMethodToResourceReferenceMapping",["exports","webruntime/auraMethodToResourceReferenceMapping/v/1_66_1007-256_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/apiCall/v/1_66_1007-256_0",["exports","webruntime/auraMethodToResourceReferenceMapping/v/1_66_1007-256_0","webruntime/transport/v/1_66_1007-256_0","webruntime/errors/v/1_66_1007-256_0","@app/apexApiBasePath/v/1","webruntime/overrides/v/1_66_1007-256_0","@communities-webruntime/common/v/1_66_1007-256_0"],function(r,e,t,E,R,F,O){"use strict";function _(L){return L&&typeof L=="object"&&"default"in L?L:{default:L}}var c=_(R);async function h(L,M){const[X,N]=L.split(".");if(X==="ApexActionController")return u(N,M);const j=e.getResourceReferenceFromAuraMethod(L);if(j)return l(j,M);throw new Error(`Unsupported controller action: ${X}.${N}`)}async function l({urlPath:L,urlPathParamNames:M,method:X,inputRepresentation:N},j){const H=j&&{...j}||{};let ce=M.reduce((Ie,Ce)=>{const ie=H[Ce];return delete H[Ce],Ie.replace(`\${${Ce}}`,encodeURIComponent(ie))},L),re;(X==="POST"||X==="PATCH"||X==="PUT")&&H[N]&&(re=JSON.stringify(H[N]),delete H[N]),Object.keys(H).length&&(ce+=`?${Object.entries(H).filter(([,Ie])=>Ie!=null&&(!Array.isArray(Ie)||Ie.length)).map(([Ie,Ce])=>`${encodeURIComponent(Ie)}=${encodeURIComponent(Ce)}`).join("&")}`);const G=await t.fetch(ce,{method:X,body:re});let Z;if(G.status===401&&v(),G.status!==204&&(Z=await G.json()),Z instanceof Array&&(Z=Z[0]),!G.ok){const Ie={status:G.status,data:{...Z,statusCode:G.status}};throw w([Ie])}return I(Z)}async function u(L,M){if(L==="execute"){const{url:X,httpRequestOptions:N}=p(L,M);return t.fetch(X,N).then(j=>(j.status===401&&v(),j.status!==204?j.json():void 0)).then(j=>{if(j&&j.error&&j.error.length>0)throw w(j.error);return I(j)})}throw new Error(`Unsupported Apex action: ${L}`)}function p(L,M){if((!M||typeof M!="object"||Object.keys(M).length===0)&&E.reportError({subject:"Apex API action error - invalid params",type:O.CLIENT_ERROR_TYPES.APEX_ACTION_ERROR,error:new Error(`Apex ${L} action called with invalid params: '${JSON.stringify(M)}'.`)}),M&&M.cacheable===!0){const X=`/apex/${L}?${S(M)}`;if(X.length<=O.MAX_URL_LENGTH)return{url:X,httpRequestOptions:{method:"GET",basePath:c.default}}}return{url:`/apex/${L}`,httpRequestOptions:{method:"POST",body:JSON.stringify(M),basePath:c.default}}}function S(L){const M={...L},X=M.params;if(X&&typeof X=="object"){const N=Object.keys(X).sort().reduce((j,H)=>(j[H]=X[H],j),{});M.params=JSON.stringify(N)}return Object.keys(M).filter(N=>M[N]!==void 0&&M[N]!=null).sort().map(N=>`${N}=${encodeURIComponent(M[N])}`).join("&")}function v(){F.SessionTimeoutOverrides.runSync()}function I(L){return{getReturnValue:()=>L}}function w(L){return{getError:()=>L}}async function D(L){try{const M=await t.fetch(L);if(M.ok){const X=await M.json();if(X)return X}}catch(M){return null}return null}r.apiCallRawResponse=h,r.fetchEndpoint=D,r.formatApexRequest=p,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/apiCall",["exports","webruntime/apiCall/v/1_66_1007-256_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("aura/v/1_66_1007-256_0",["exports","webruntime/apiCall/v/1_66_1007-256_0","webruntime/logger/v/1_66_1007-256_0"],function(r,e,t){"use strict";function E(c){if(c&&c.__esModule)return c;var h=Object.create(null);return c&&Object.keys(c).forEach(function(l){if(l!=="default"){var u=Object.getOwnPropertyDescriptor(c,l);Object.defineProperty(h,l,u.get?u:{enumerable:!0,get:function(){return c[l]}})}}),h.default=c,Object.freeze(h)}var R=E(t);const F=null,O=null,_=null;Object.defineProperty(r,"executeGlobalControllerRawResponse",{enumerable:!0,get:function(){return e.apiCallRawResponse}}),r.logger=R,r.createComponent=F,r.getDefinition=_,r.renderComponent=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("aura",["exports","aura/v/1_66_1007-256_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("instrumentation/service/v/1_66_1007-256_0",["exports","aura-instrumentation/v/1_66_1007-256_0"],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_66_1007-256_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("instrumentation/utility/v/1_66_1007-256_0",["exports","aura-instrumentation/v/1_66_1007-256_0"],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_66_1007-256_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("lightning/configProvider/v/1_66_1007-256_0",["exports","@app/basePath/v/1","lwc/v/8_16_5"],function(r,e,t){"use strict";function E(A){return A&&typeof A=="object"&&"default"in A?A:{default:A}}var R=E(e);const F=/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z){1})?)?)?$/i,O=/^\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i,_="HH:mm:ss.SSS",c="YYYY-MM-DD",h="T",l=/(Z|([+-])(\d{2}):(\d{2}))$/;function u(A){return v(A)&&w(A)}function p(A){if(!I(A))return!1;const oe=S(A);return w(`2018-09-09T${oe}Z`)}function S(A){return typeof A=="string"?A.split(l)[0]:A}function v(A){return typeof A!="string"?!1:F.test(A)}function I(A){return typeof A!="string"?!1:O.test(A)}function w(A){const oe=Date.parse(A);return isFinite(oe)}var D=void 0;const L="in a few seconds",M="a few seconds ago",X="in {0} {1}",N="{0} {1} ago",j="s",H={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"}},ce=1e3,re=6e4,G=36e5,Z=864e5;class Ie{constructor(oe){if(this.milliseconds=0,typeof oe!="number"){this.isValid=!1,console.warn(`The value of milliseconds passed into Duration must be of type number, 
                but we are getting the ${typeof oe} value "${oe}" instead.
                `);return}this.isValid=!0,this.milliseconds=oe}humanize(oe){if(!this.isValid)return"";const me=a(this);return me===H.SECONDS?this.milliseconds>0?L:M:d(oe,this.asIn(me),me.name)}asIn(oe){switch(oe){case H.SECONDS:return Math.round(this.milliseconds/ce);case H.MINUTES:return Math.round(this.milliseconds/re);case H.HOURS:return Math.round(this.milliseconds/G);case H.DAYS:return Math.round(this.milliseconds/Z);case H.MONTHS:return Math.round(ie(this.milliseconds/Z));case H.YEARS:default:return Math.round(ie(this.milliseconds/Z)/12)}}}const Ce=t.registerComponent(Ie,{tmpl:D,sel:"lightning-config-provider",apiVersion:63});function ie(A){const oe=4800/146097;return A*oe}function a(A){const oe=Object.keys(H).find(me=>{const ue=H[me];return ue===H.YEARS||Math.abs(A.asIn(ue))<ue.threshold});return H[oe]}function d(A,oe,me){return"Intl"in window&&Intl.RelativeTimeFormat?new Intl.RelativeTimeFormat(A,{style:"long",numeric:"always"}).format(oe,me):f(oe,me)}function f(A,oe){console.warn("The current environment does not support formatters for relative time.");const me=Math.abs(A),ue=me!==1?oe+j:oe,Se=A>0?X:N;return k(Se,me,ue)}function k(A,...oe){return A.replace(/{(\d+)}/g,(me,ue)=>oe[ue])}const V=["January","February","March","April","May","June","July","August","September","October","November","December"],ne={short:"M/d/yyyy",medium:"MMM d, yyyy",long:"MMMM d, yyyy"},Ee={short:"h:mm a",medium:"h:mm:ss a",long:"h:mm:ss a"},De={short:"h:m a",medium:"h:m:s a",long:"h:m:s a"};function we(A,oe){let me=!1,ue=A;return typeof A=="string"&&(ue=A.split(h)[0],me=!0),x(ue,oe,me)}function xe(A,oe){return x(A,oe,!0)}function $e(A,oe){if(!T(A))return new Date("");const me=(A.getHours()+11)%12+1,ue=A.getHours()>=12?"PM":"AM";switch(oe){case _:return`${te(A.getHours())}:${te(A.getMinutes())}:${te(A.getSeconds())}.${Q(A.getMilliseconds())}`;case Ee.short:return`${me}:${te(A.getMinutes())} ${ue}`;case Ee.medium:case Ee.long:default:return`${me}:${te(A.getMinutes())}:${te(A.getSeconds())} ${ue}`}}function We(A){if(!T(A))return new Date("");const oe=new Date(A.getTime());return`${xe(oe)}, ${$e($(oe))}`}function pe(A){let oe=null,me=!0;if(p(A)?oe=`2014-03-20T${W(A)}`:u(A)&&(A.indexOf(h)>0?(oe=W(A),me=!1):oe=`${A}T00:00:00.000Z`),oe){const ue=new Date(oe);return me&&$(ue),ue}return null}function K(A,oe){return oe===c&&u(A)?pe(A):Object.values(ne).includes(oe)?b(A,oe):Object.values(De).includes(oe)?ft(A):null}function se(A){return pe(W(A))}function Y(A,oe,me){const ue=ee(A),Se=ee(oe);return!ue||!Se?!1:C(ue,me).getTime()<C(Se,me).getTime()}function _e(A,oe,me){const ue=ee(A),Se=ee(oe);return!ue||!Se?!1:C(ue,me).getTime()>C(Se,me).getTime()}function Ne(A,oe,me){const ue=new Date(A.getTime());me(B(ue))}function ze(A,oe,me){const ue=new Date(A.getTime());me($(ue))}function je(A){return A}function Re(A){return A}function Xe(A){return A}function rt(A){return A}function pt(){return{format:A=>(console.warn(`The current environment does not support large numbers and the original value of ${A} will be returned.`),A)}}function dt(A){return new Ce(A*60*1e3)}function ke(A){return A.humanize("en")}function ft(A){const oe=A.trim().split(/[:.\s*]/),me=oe.length;if(!oe||me<2||me>5)return null;const ue=oe[me-1],Se=ue.toLowerCase()==="am",Ke=ue.toLowerCase()==="pm";oe.splice(-1,1);const lt=oe.every(ht=>!isNaN(ht));if(!Ke&&!Se||!lt)return null;const Ze=oe[0],yt=te(Ke?Ze%12+12:Ze%12),nt=me>=3&&oe[1]||"0",Je=me>=4&&oe[2]||"0",Rt=me===5&&oe[3]||"0",Ye=new Date("2014-03-20");return Ye.setHours(yt,nt,Je,Rt),T(Ye)?Ye:null}function b(A,oe){let me=/^([a-zA-Z]{3})\s*(\d{1,2}),\s*(\d{4})$/;switch(oe){case ne.short:me=/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/;break;case ne.long:me=/^([a-zA-Z]+)\s*(\d{1,2}),\s*(\d{4})$/;break}const ue=me.exec(A.trim());if(!ue)return null;let Se=ue[1];const Ke=ue[2],lt=ue[3];oe!==ne.short&&(Se=V.findIndex(nt=>nt.toLowerCase().includes(Se.toLowerCase())),Se+=1);const Ze=`${lt}-${te(Se)}-${te(Ke)}`,yt=new Date(`${Ze}T00:00:00.000Z`);return T(yt)?$(yt):null}function x(A,oe,me){const ue=ee(A);if(!ue)return new Date("");switch(me&&T(A)&&$(ue),oe){case c:return`${ue.getFullYear()}-${te(ue.getMonth()+1)}-${te(ue.getDate())}`;case ne.short:return`${ue.getMonth()+1}/${ue.getDate()}/${ue.getFullYear()}`;case ne.long:return`${V[ue.getMonth()]} ${ue.getDate()}, ${ue.getFullYear()}`;case ne.medium:default:return`${V[ue.getMonth()].substring(0,3)} ${ue.getDate()}, ${ue.getFullYear()}`}}function C(A,oe){switch(oe){case"day":A.setHours(0),A.setMinutes(0);case"minute":A.setSeconds(0),A.setMilliseconds(0);break}return A}function T(A){return Object.prototype.toString.call(A)==="[object Date]"&&!isNaN(A.getTime())}function W(A){return`${S(A)}Z`}function $(A){return A.setMinutes(A.getMinutes()+A.getTimezoneOffset()),A}function B(A){return A.setMinutes(A.getMinutes()-A.getTimezoneOffset()),A}function ee(A){return A?T(A)?new Date(A.getTime()):isFinite(A)&&(typeof A=="number"||typeof A=="string")?new Date(parseInt(A,10)):typeof A=="string"?pe(A):null:null}function te(A){return Number(A)<10?`0${A}`:A}function Q(A){return Number(A)<10?`00${A}`:Number(A)<100?`0${A}`:A}var le={formatDate:we,formatDateUTC:xe,formatTime:$e,formatDateTimeUTC:We,parseDateTimeISO8601:pe,parseDateTime:K,parseDateTimeUTC:se,isBefore:Y,isAfter:_e,UTCToWallTime:Ne,WallTimeToUTC:ze,translateToOtherCalendar:je,translateFromOtherCalendar:Re,translateToLocalizedDigits:Xe,translateFromLocalizedDigits:rt,getNumberFormat:pt,duration:dt,displayDuration:ke};function ye(){return le}function Te(){return R.default}function Fe(){return null}function Ae(){return null}function Ve(){return{densitySetting:""}}var Ge={getOneConfig:Ve,getIconSvgTemplates:Ae,getToken:Fe,getPathPrefix:Te,getLocalizationService:ye};r.default=Ge,r.getIconSvgTemplates=Ae,r.getLocalizationService=ye,r.getOneConfig=Ve,r.getPathPrefix=Te,r.getToken=Fe,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/configProvider",["exports","lightning/configProvider/v/1_66_1007-256_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("lightning/navigation/v/0_17_9",["exports","lwr/navigationContext/v/0_17_9","lwr/currentPageReference/v/0_17_9","lwr/currentView/v/0_17_9","lwr/contextUtils/v/0_17_9","lwr/routerErrors/v/0_17_9","lwr/navigationMixinHacks/v/0_17_9"],function(r,e,t,E,R,F,O){"use strict";function _(I,w,D,L){R.getNavigationHelm(I).navigate(w,D,L)}function c(I,w,D){return R.getNavigationHelm(I).generateUrl(w,D)}const h=Symbol("Navigate"),l=Symbol("GenerateUrl"),u=Symbol("NavContext"),p=Symbol("NavContext"),S=typeof window=="undefined";function v(I){F.invariant(typeof I.prototype.dispatchEvent=="function",F.messages.INVALID_MIXIN_CMP,[I.toString()]);class w extends I{[p](){if(!this[u]&&(this.dispatchEvent(new CustomEvent(O.CONTEXT_ID_BACKDOOR,{bubbles:!0,composed:!0,detail:{callback:L=>{this[u]=L}}})),!this[u]))throw new Error(F.generateMessage(F.messages.MISSING_CONTEXT))}[h](L,M,X){S||(this[p](),_(this[u],L,M,X))}async[l](L,M){return S?null:(this[p](),c(this[u],L,M))}}return w}v.Navigate=h,v.GenerateUrl=l,v.NavContext=u,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 E.CurrentView}}),Object.defineProperty(r,"ContextInfo",{enumerable:!0,get:function(){return R.ContextInfo}}),Object.defineProperty(r,"generateContextualWireAdapter",{enumerable:!0,get:function(){return R.generateContextualWireAdapter}}),Object.defineProperty(r,"getNavigationHelm",{enumerable:!0,get:function(){return R.getNavigationHelm}}),Object.defineProperty(r,"registerNavigationHelm",{enumerable:!0,get:function(){return R.registerNavigationHelm}}),r.NavigationMixin=v,r.generateUrl=c,r.navigate=_,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/navigation",["exports","lightning/navigation/v/0_17_9"],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_1007-256_0",["exports"],function(r){"use strict";const e=300,{document:t}=globalThis,E={navKey:"F6",f6RegionAttribute:"data-f6-region",f6RegionHighlightClass:"f6-highlight"},R=h=>h&&(h.shadowRoot?h.shadowRoot.activeElement?R(h.shadowRoot.activeElement):h:h.activeElement?R(h.activeElement):h);class F{constructor(l={}){this.regions=[],this.config=E,this._debounceKeyDownHandler=void 0,this._styleElement=void 0,this.handleClick=()=>{this.clearRegionHighlights()},this.handleKeyDown=u=>{this.clearRegionHighlights();const{key:p,ctrlKey:S,metaKey:v}=u;p===this.config.navKey&&(S||v)&&(this.populateRegions(),this.handleNavigation(u))},this.elementFilter=u=>u.parentElement&&u.parentElement.matches(`*[${this.config.f6RegionAttribute}]`)?NodeFilter.FILTER_REJECT:u.matches(`*[${this.config.f6RegionAttribute}]`)&&this.isVisible(u)&&!this.isEmpty(u)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,this._debounceKeyDownHandler=this.debounce(this.handleKeyDown.bind(this),e),this.initialize(l)}debounce(l,u,p){const S=p||{};let v=S.leading,I;return function(){const D=Array.prototype.slice.apply(arguments);v&&(l.apply(this,D),v=!1),clearTimeout(I),I=setTimeout(function(){l.apply(this,D),v=S.leading},u)}}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 u=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])');u?u.focus():(l.tabIndex="-1",l.focus())}handleNavigation(l){if(l.preventDefault(),!this.regions.length)return;const u=l.shiftKey,p=this.getElementRegionIndex(R(l.target)),S=this.getNextRegionIndex(p,u);if(S===-1)return;const v=this.regions[S];this.focusIn(v),this.addRegionHighlight(v)}shadowContains(l,u){return l===u||l.contains(u)||l.shadowRoot&&this.isElementInContainerElements(l.shadowRoot.children,u)||l.tagName==="SLOT"&&this.isElementInContainerElements(l.assignedElements(),u)?!0:this.isElementInContainerElements(l.children,u)}isElementInContainerElements(l,u){if(!l||!l.length)return!1;const p=l.length;for(let S=0;S<p;S++)if(this.shadowContains(l[S],u))return!0;return!1}getElementRegionIndex(l){return!this.regions||!this.regions.length?-1:this.regions.findIndex(u=>this.shadowContains(u,l))}getNextRegionIndex(l,u){const p=this.regions.length-1;return p<0?-1:u?l<=0?p:l-1:l===p?0:l+1}isVisible(l){if(l===t.body||!(l instanceof Element))return!0;try{const u=window.getComputedStyle(l)||l.style;if(!u)return!1;const{display:p,visibility:S}=u;return p&&p.toLowerCase()==="none"||S&&S.toLowerCase()==="hidden"?!1:this.isVisible(l.parentNode)}catch(u){return!1}}isEmpty(l){if(l.tagName==="SLOT"&&!this.isEmptyChildren(l.assignedElements()))return!1;let u=l.children;return(!u||!u.length)&&l.shadowRoot&&(u=l.shadowRoot.children),this.isEmptyChildren(u)}isEmptyChildren(l){if(!l||!l.length)return!0;const u=l.length;for(let p=0;p<u;p++){const S=l[p];if(S.tagName!=="SLOT"||!this.isEmpty(S))return!1}return!0}populateRegions(){if(!t)return;this.regions=[];const l=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT,this.elementFilter,!1);for(;l.nextNode();)this.regions.push(l.currentNode)}initialize(l={}){!t||(t.addEventListener("keydown",this._debounceKeyDownHandler),this.regions=[],this.config={...this.config,...l},this.appendStyleElement())}cleanUp(){!t||(t.removeEventListener("keydown",this._debounceKeyDownHandler),this._regions=[],this._config=E,this._debounceKeyDownHandler=null,this._styleElement&&(t.head.removeChild(this._styleElement),this._styleElement=null))}getConfig(){return Object.freeze(this.config)}}let O;const _=h=>(O||(O=new F(h)),O),c=()=>{if(O){const h=O.getConfig();if(h)return h.f6RegionAttribute}};r.DEFAULT_CONFIG=E,r.F6Controller=F,r.createF6Controller=_,r.getActiveElem=R,r.getCurrentRegionAttributeName=c,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/f6Controller",["exports","webruntime/f6Controller/v/1_66_1007-256_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("lightning/f6Controller/v/1_66_1007-256_0",["exports","webruntime/f6Controller/v/1_66_1007-256_0"],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_66_1007-256_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("lwr/environment/v/0_17_9",["exports"],function(r){"use strict";const e=globalThis?.LWR?.env||{},t=e&&(e.SSR==="true"||e.SSR===!0),E=e&&e.basePath,R=e&&e.locale,F=e&&e.assetBasePath,O=e&&e.uiBasePath;r.assetBasePath=F,r.basePath=E,r.isServer=t,r.locale=R,r.uiBasePath=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/environment",["exports","lwr/environment/v/0_17_9"],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_66_1007-256_0",["exports","webruntime/transport/v/1_66_1007-256_0"],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_66_1007-256_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/cookieStore/v/1_66_1007-256_0",["exports","@app/authenticationCookieName/v/1","@app/guestUuidCookieName/v/1","@salesforce/site/Id/v/1"],function(r,e,t,E){"use strict";function R(D){return D&&typeof D=="object"&&"default"in D?D:{default:D}}var F=R(e),O=R(t),_=R(E);let c;function h(D){D&&typeof D=="object"&&(c=D)}function l(D){c=w(D)}function u(){const D=I(F.default);return D?D==="1"||D.includes(_.default):!1}function p(){return I(O.default)}function S(){return c}function v(){return Object.entries(c||{}).map(([D,L])=>`${D}=${L}`).join(";")}function I(D){return D?(typeof document!="undefined"&&l(document?.cookie),c&&c[D]):null}function w(D){return D&&typeof D=="string"?D.split(";").reduce((M,X)=>{const[N,j]=X.trim().split("=").map(decodeURIComponent);return M[N]=j,M},{}):null}r.getAllCookies=S,r.getAllCookiesString=v,r.getCookie=I,r.getGuestUuidCookie=p,r.hasSidCookie=u,r.setCookiesFromObject=h,r.setCookiesFromString=l,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/cookieStore",["exports","webruntime/cookieStore/v/1_66_1007-256_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/transport/v/1_66_1007-256_0",["exports","lwr/loaderLegacy/v/0_17_9","@app/basePath/v/1","@app/apiBasePath/v/1","@salesforce/i18n/lang/v/1","webruntime/utils/v/1_66_1007-256_0","@communities-webruntime/common/v/1_66_1007-256_0","webruntime/cookieStore/v/1_66_1007-256_0","@app/isDesignMode/v/1","@app/isPreviewMode/v/1","lwc/v/8_16_5"],function(r,e,t,E,R,F,O,_,c,h,l){"use strict";function u(pe){return pe&&typeof pe=="object"&&"default"in pe?pe:{default:pe}}var p=u(t),S=u(E),v=u(R),I=u(c),w=u(h),D=void 0;class L{constructor(K){const[se,Y]=K.split("?");this.path=se,this.searchParams=new URLSearchParams(Y)}setParamDefaultValue(K,se){return this.searchParams.has(K)||this.searchParams.append(K,se),this}build(){const K=this.searchParams.toString();return this.path+(K?`?${K}`:"")}}const M=l.registerComponent(L,{tmpl:D,sel:"webruntime-transport",apiVersion:63}),X=["POST","PATCH","PUT","DELETE"],N="X-SFDC-Request-Id",j="X-Salesforce-Too-Many-Requests",H="X-CSP",ce="asGuest",re="language",G="htmlEncode",{location:Z,navigator:Ie}=globalThis,Ce=new Set;function ie(pe){typeof pe=="function"&&Ce.add(pe)}function a(pe){Ce.delete(pe)}async function d(pe,K={}){F.assert(typeof pe=="string","Valid path not provided for fetch request");const se={...K,headers:{...K.headers},credentials:K.credentials||"same-origin"};K.credentials===null&&delete se.credentials,typeof window=="undefined"&&_.getGuestUuidCookie()&&(se.headers.cookie=_.getAllCookiesString());const Y=se.isNonApiRequest===!0,_e=se.asGuest===!0||We(),Ne=se.basePath!==void 0?se.basePath:S.default,ze=new M(Z?new URL(Ne+pe,Z).toString():Ne+pe);Y||ze.setParamDefaultValue(re,v.default).setParamDefaultValue(ce,_e).setParamDefaultValue(G,!1);const je=se.headers["Content-Type"];je===null?delete se.headers["Content-Type"]:je?se.headers["Content-Type"]=je:K.body&&(se.headers["Content-Type"]="application/json; charset=utf-8"),se.headers[N]=we(),await Ee(se);const Re=await globalThis.fetch(ze.build(),se);return Ce.forEach(Xe=>Xe(Re)),V(Re)&&f(),Re}function f(){typeof document!="undefined"&&document.dispatchEvent(new CustomEvent("client-error",{detail:{type:O.CLIENT_ERROR_TYPES.TOO_MANY_REQUESTS}}))}function k(pe){return!!(pe.headers.get(j)||(pe.headers.get(H)||"").toLowerCase()==="rejected")}function V(pe){return!!((pe.status===503||pe.status===429)&&k(pe))}function ne(pe){return pe.status===503&&!k(pe)}async function Ee(pe){if(!X.includes(pe.method))return;const{csrfToken:K}=await $e();K&&(pe.headers["CSRF-Token"]=K)}async function De({path:pe,payload:K,contentType:se}){const Y=p.default+pe;Ie&&Ie.sendBeacon&&Ie.sendBeacon(Y,K)||await globalThis.fetch(pe,{headers:{"Content-Type":se},basePath:p.default,body:K,method:"POST",isNonApiRequest:!0})}function we(){return(Date.now()+xe()+Math.round(Math.random()*1e8)).substring(0,18)}function xe(){function pe(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return pe()+pe()}async function $e(){if(typeof window=="undefined")return{isGuest:!0,id:null,csrfToken:null};const{default:pe}=await e.load("@app/user/v/1");return pe}function We(){return I.default||w.default?!1:!_.hasSidCookie()}r.addFetchObserver=ie,r.fetch=d,r.isDownForMaintenanceResponse=ne,r.isTooManyRequestsResponse=V,r.removeFetchObserver=a,r.sendBeacon=De,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/transport",["exports","webruntime/transport/v/1_66_1007-256_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("logger/v/1_66_1007-256_0",["exports"],function(r){"use strict";function e(...E){console.log(...E)}function t(...E){console.error(...E)}r.log=e,r.logError=t,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("logger",["exports","logger/v/1_66_1007-256_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("assert/v/1_66_1007-256_0",["exports","webruntime/utils/v/1_66_1007-256_0"],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_66_1007-256_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("o11y/shared/v/256_1_0",["exports"],function(r){"use strict";class e{constructor(){this.notImplemented="Method not implemented.";const a=typeof performance!="undefined";a?performance.timeOrigin?this._timeOrigin=performance.timeOrigin:this._timeOrigin=Date.now():this._timeOrigin=Date.now();const d=this._timeOrigin;a&&typeof performance.now=="function"?(this.perfNow=performance.now.bind(performance),this.time=()=>{const f=this.perfNow();return{tsNow:d+f,perfNow:f,timeOrigin:d}}):(this.perfNow=()=>Date.now()-d,this.time=()=>{const f=this.perfNow();return{tsNow:Date.now(),perfNow:f,timeOrigin:d}})}get isProduction(){return e._isProduction}markProduction(a){e._isProduction=a??!0}_checkArgument(a,d){if(typeof d=="string")return typeof a===d;if(typeof d=="function")return a instanceof d;if(Array.isArray(d))return d.some(f=>this._checkArgument(a,f));throw new Error(`Invalid argKind ${d}`)}requireArgument(a,d,f){let k=a==null||a==="";const V=f!==void 0;if(!k&&V&&(k=!this._checkArgument(a,f)),k)throw new Error(`${d} argument is required${V?" and must be of a supported type.":"."}`)}requireArgumentIfDefined(a,d,f){if(a===void 0)return!1;if(a===null||a===""||!this._checkArgument(a,f))throw new Error(`${d} argument, if defined, must be of a supported type.`);return!0}checkForDenyListedValues(a,d,f){if(f.some(k=>a===k))throw new Error(`The value ${a} isn't allowed for ${d} argument.`)}checkForReservedCharacters(a,d,f){if(a&&f.some(k=>a.indexOf(k)>=0))throw new Error(`The argument ${d} isn't allowed to contain characters from ['${f.join(", ")}']. Received: ${a}.`)}generateUniqueId(a=16){const d=[],f="0123456789abcdef";if(!(a===void 0||a>0))throw new Error('If specified, the argument "length" must be a positive integer');for(let k=0;k<a;k++){const V=Math.floor(Math.random()*16);d.push(f[V])}return d.join("")}getXpath(a){function d(V){const ne=V.localName;for(;V.nextElementSibling;)if(V=V.nextElementSibling,V.localName===ne)return!0;return!1}function f(V,ne){return V?f(V.previousElementSibling,ne||V.localName)+(V.localName===ne?1:0):1}function k(V){if(!V||V.nodeType!==1)return[""];const ne=f(V)>1||d(V)?`${V.localName.toLowerCase()}[${f(V)}]`:V.localName.toLowerCase();return[...k(V.parentNode),ne]}return k(a).join("/")}getAge(a){return a-this._timeOrigin}getConnectionType(){var a;let d;if(typeof navigator!="undefined"){const f=navigator;d=(a=f==null?void 0:f.connection)===null||a===void 0?void 0:a.effectiveType}return d}clone(a){return JSON.parse(JSON.stringify(a))}definedValueOrDefault(a,d){return a!==void 0?a:d}getGlobal(){if(typeof globalThis=="object")return globalThis;if(typeof self=="object")return self;throw new Error("Unable to locate globalThis or self")}getIsBeaconSupported(){var a;const d=this.getGlobal();return typeof((a=d.navigator)===null||a===void 0?void 0:a.sendBeacon)=="function"&&typeof d.Blob=="function"}estimateObjectSize(a){const d=new Set,f=[a];let k=0;for(;f.length;){const V=f.pop();if(typeof V=="boolean")k+=4;else if(typeof V=="string")k+=V.length*2;else if(typeof V=="number")k+=8;else if(V instanceof Uint8Array||V instanceof Uint8ClampedArray||V instanceof Uint16Array||V instanceof Uint32Array||V instanceof Int8Array||V instanceof Int16Array||V instanceof Int32Array||V instanceof Float32Array||V instanceof Float64Array)k+=V.byteLength;else if(typeof V=="object"){const ne=V;if(!d.has(ne)){d.add(ne);for(const Ee in ne)f.push(ne[Ee])}}}return k}noProdThrow(a){if(!R.isProduction)throw a}isAllowedOrigin(a,d){return Array.isArray(d)&&d.some(f=>f==="*"||a===f||f instanceof RegExp&&f.test(a))}roundNumber(a,d){const f=Math.pow(10,d);return Math.round(a*f)/f}roundNumbersInObject(a,d){a&&Object.entries(a).forEach(([f,k])=>{typeof k=="number"&&(a[f]=this.roundNumber(k,d))})}tryGetAbsoluteUrl(a){var d;return(a==null?void 0:a.startsWith("/"))&&typeof window=="object"?((d=window.location.origin)!==null&&d!==void 0?d:"")+a:a}}e._isProduction=!0;const t=new e,E=t.getGlobal();t.markProduction(E==null?void 0:E.__O11Y_IS_PROD__);const R=Object.freeze(t);class F{constructor(a,d,f,k,V,ne,Ee){this._name=a,this._ownerName=d,this._ownerAppName=f,this._tags=k,this._value=0,this._createdOn=V===void 0?R.time().tsNow:V,ne!==void 0&&(this._lastUpdatedOn=ne),Ee!==void 0&&(this._value=Ee)}getName(){return this._name}getCreatedOn(){return this._createdOn}getLastUpdatedOn(){return this._lastUpdatedOn}getData(){return this._value}increment(a=1){if(typeof a=="number"&&a>0){this._value+=Math.round(a),this._lastUpdatedOn=R.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}}const O="co11y";class _{constructor(){this._upCounters=new Map,this._ownerAppName=O}_addOrUpdateCounter(a,d,f){if(!a)return;const k={status:f},V=`${this._ownerAppName}:${d}:${a}${JSON.stringify(k)}`;let ne=this._upCounters.get(V);ne||(ne=new F(a,d,this._ownerAppName,k),this._upCounters.set(V,ne)),ne.increment()}success(a,d){this._addOrUpdateCounter(a,d,"success")}exception(a,d){this._addOrUpdateCounter(a,d,"error")}getBucketHistograms(){return[]}getUpCounters(){return Array.from(this._upCounters.values()).filter(a=>a.getLastUpdatedOn())}getValueRecorders(){return[]}setOwnerAppName(a){this._ownerAppName=a}}const c=new _;class h{constructor(a){if(this._lazyMap=new Map,a!==void 0){if(typeof a=="number"&&a>0){this._maxSize=Math.ceil(a);return}throw new Error("maxSize must be a positive number")}}get maxSize(){return this._maxSize}get size(){return this._lazyMap.size}push(a,d){let f=this._lazyMap.get(a);if(!f){if(this.maxSize!==void 0&&this.size===this.maxSize)return!1;f=new Array,this._lazyMap.set(a,f)}return f.push(d),!0}getMessages(a,d){const f=this._lazyMap.get(a);return d&&this._lazyMap.has(a)&&this._lazyMap.set(a,[]),f||[]}getAllMessages(a){const d=new Map;for(const[f,k]of this._lazyMap.entries())k.length&&d.set(f,this.getMessages(f,a));return d}extractMessages(a){return this.getMessages(a,!0)}extractAllMessages(){return this.getAllMessages(!0)}get totalItemCount(){let a=0;for(const d of this._lazyMap.values())a+=d.length;return a}}class l{getSchemaId(a){return`${a.namespace}.${a.name}`}isInternal(a){return(a==null?void 0:a.namespace)==="sf.instrumentation"}makePayload(a,d,f=!0){if(!f||a!==void 0&&d!==void 0)return{schema:a,payload:d}}checkSchema(a){return R.requireArgument(a,"schema","object"),R.requireArgument(a.namespace,"schema.namespace","string"),R.requireArgument(a.name,"schema.name","string"),R.requireArgument(a.pbjsSchema,"schema.pbjsSchema","object"),this._getTokens(a)}_getTokens(a){const d=a.namespace.split(".");if(d.length!==2)throw new Error(`Schema "${this.getSchemaId(a)}" must have a namespace of the form "domain.feature".`);return{domain:d[0],feature:d[1],message:a.name}}_getAnyNestedObject(a,d){return d.reduce((f,k)=>{const V=f.nested;if(V){const ne=V[k];if(ne)return ne}throw new Error(`Cannot locate ${d.join(".")} in schema with ID ${this.getSchemaId(a)}`)},a.pbjsSchema)}getTypes(a){const d=this.checkSchema(a),k=this._getAnyNestedObject(a,[d.domain,d.feature]).nested;if(!k)throw new Error(`Cannot parse schema with ID ${this.getSchemaId(a)}`);return k}getType(a,d){R.requireArgument(d,"messageName","string");const k=this.getTypes(a)[d];if(!k)throw new Error(`Cannot locate message ${d} in schema with ID ${this.getSchemaId(a)}`);return k}getOptions(a,d,f){f&&R.requireArgument(d,"messageName","string");const k=this.checkSchema(a);if(!d)return this._getAnyNestedObject(a,[k.domain,k.feature]).options;const V=this.getType(a,d);if(!f)return V.options;const ne=V.fields[f];if(!ne){const Ee=this.getSchemaId(a);throw new Error(`Cannot locate field ${f} in message ${d} in schema with ID ${Ee}`)}return ne.options}getExtraFields(a,d){const{message:f}=this._getTokens(a),V=this.getTypes(a)[f].fields,ne=new Set(Object.keys(V));return d!=null?Object.keys(d).filter(De=>!ne.has(De)):[]}}const u=new l,p=1e4,S=1e4,v=0,I=2147483647,w=-2147483648,D=4294967295,L=9223372036854776e3,M=-9223372036854776e3,X=18446744073709552e3;class N{constructor(a,d,f,k){this.errorCode=a,this.fields=d,this.expected=f,this.received=k}asMessage(a){const d=this.fields[0]+this.fields.slice(1).reduce((k,V)=>Number(V)>=0?`${k}[${V}]`:`${k}.${V}`,"");let f;switch(this.errorCode){case 1:f="Repeated field must be an array";break;case 2:f=`Expected type ${this.expected} but received type ${this.received}`;break;case 3:f="Value must be finite";break;case 4:f="Value is out of range for its type";break;case 5:f="Bytes array is malformed";break;case 6:f="Exceeded app limit for maximum string length";break;case 7:f="Exceeded app limit for item count";break;case 12:f="Value must be an integer";break;case 13:f="Values like null or undefined are not allowed for items in repeated fields";break;default:f=`Unknown error code: ${this.errorCode}`;break}return`Schema ${a} on field "${d}": ${f}`}}class j{validate(a,d,f=!1){const k=u.checkSchema(a);R.requireArgument(d,"data","object");const V=u.getSchemaId(a),ne=new Array,Ee=u.getTypes(a);if(this._validateFields(ne,[],d,Ee[k.message],Ee,V),ne.length&&!f)throw new Error(ne[0].asMessage(V));return ne}_validateFields(a,d,f,k,V,ne){const Ee=k.oneofs||{},De=k.fields||{};for(const we in f){const xe=f[we];if(xe!=null){const $e=(We,pe,K)=>this._matchFieldTypes(a,[...d,we],xe,We,V,ne,we,pe,K);Ee[we]?$e(De[Ee[we].oneof[0]].type):De[we]&&$e(De[we].type,De[we].rule==="repeated")}}}_matchFieldTypes(a,d,f,k,V,ne,Ee,De,we){let xe;if(De)Array.isArray(f)?(f.length>S&&(xe=7),f.forEach(($e,We)=>{this._matchFieldTypes(a,[...d,We.toString()],$e,k,V,ne,Ee,void 0,!0)})):xe=1;else if(f==null||f===void 0)we&&(xe=13);else{let $e,We;switch(k){case"string":We="string",f.length>p&&(xe=6);break;case"bytes":We="object",f instanceof Uint8Array||(xe=5);break;case"bool":We="boolean";break;case"uint32":We="number",$e={min:v,max:D,isInt:!0,isItem:we};break;case"int32":case"sint32":case"fixed32":case"sfixed32":We="number",$e={min:w,max:I,isInt:!0,isItem:we};break;case"uint64":We="number",$e={min:v,max:X,isInt:!0,isItem:we};break;case"fixed64":case"sfixed64":case"int64":case"sint64":We="number",$e={min:M,max:L,isInt:!0,isItem:we};break;case"double":case"float":We="number",$e={min:Number.NEGATIVE_INFINITY,max:Number.POSITIVE_INFINITY,isInt:!1,isItem:we};break;default:new Set(Object.keys(V)).has(k)&&(this._validateFields(a,d,f,V[k],V,ne),We="object");break}typeof f!==We?a.push(new N(2,d,k,typeof f)):$e&&($e.isInt&&!Number.isFinite(f)?xe=3:$e.isInt&&!Number.isInteger(f)?xe=12:!(!$e.isInt&&Number.isNaN(f))&&!(f>=$e.min&&f<=$e.max)&&(xe=4))}xe&&a.push(new N(xe,d))}}const H=new j;class ce{_getMetricTags(a){const d=a.getTags();if(d)return Object.entries(d).map(f=>({name:f[0],value:f[1].toString()}))}getUpCounters(a,d=!0){return a.map(f=>{const k={name:f.getName(),createdTimestamp:f.getCreatedOn(),lastUpdatedTimestamp:f.getLastUpdatedOn(),value:f.getData(),ownerName:f.getOwnerName(),ownerAppName:f.getOwnerAppName(),tags:this._getMetricTags(f)};return d&&f.reset(),k})}getValueRecorders(a,d=!0){return a.map(f=>{const k={name:f.getName(),createdTimestamp:f.getCreatedOn(),lastUpdatedTimestamp:f.getLastUpdatedOn(),values:f.getData(),ownerName:f.getOwnerName(),ownerAppName:f.getOwnerAppName(),tags:this._getMetricTags(f)};return d&&f.reset(),k})}getBucketHistograms(a,d=!0){return a.map(f=>{const k={name:f.getName(),createdTimestamp:f.getCreatedOn(),lastUpdatedTimestamp:f.getLastUpdatedOn(),values:f.getData(),buckets:f.getBuckets(),ownerName:f.getOwnerName(),ownerAppName:f.getOwnerAppName(),tags:this._getMetricTags(f)};return d&&f.reset(),k})}getMetricsTags(a){const d={};return a.forEach(f=>{d[f.name]=f.value}),d}}const re=Object.freeze(new ce);class G{checkInputs(a,d){u.checkSchema(a),R.requireArgument(d,"data","object");let f,k;d.userPayload!==void 0&&u.isInternal(a)&&(k=d.userPayload,f=H.validate(k.schema,k.payload,!0),this._processValidationResults(u.getSchemaId(k.schema),k.payload,f),d.userPayload=void 0),f=H.validate(a,d,!0),this._processValidationResults(u.getSchemaId(a),d,f),k!==void 0&&(d.userPayload=k)}getExtraFields(a,d){R.requireArgument(d,"data","object");const f=[],k=d.userPayload;return k!==void 0&&u.isInternal(a)&&f.push(...u.getExtraFields(k.schema,k.payload)),f.push(...u.getExtraFields(a,d)),f}getPayloadFromProvider(a,d){const f=(a==null?void 0:a.getPayload(d))||void 0;return f&&this.checkInputs(f.schema,f.payload),f}_processValidationResults(a,d,f){for(let k=0;k<f.length;k+=1){const V=f[k];if(V.errorCode==6||V.errorCode==7){const ne=V.fields.length-1,Ee=this._traverseFields(d,V.fields.slice(0,ne)),De=V.fields[ne];V.errorCode==6?Ee[De]=Ee[De].substring(0,p):Ee[De].splice(S)}else throw new Error(V.asMessage(a))}}_traverseFields(a,d){return d.length?this._traverseFields(a[d[0]],d.slice(1)):a}}const Z=Object.freeze(new G),Ie="o11y";class Ce{constructor(a){this._errorCounter=a,this._safeCatchMode=!1}_callCo11y(a,d){d?c.exception(a==null?void 0:a.op,Ie):c.success(a==null?void 0:a.op,Ie)}tryCatch(a,d){let f;try{a()}catch(k){f=!0,this._prodSafeCatch(k)}finally{this._callCo11y(d,f)}}tryCatchReturn(a,d,f){let k;try{return R.requireArgument(d,"noopValue"),a()}catch(V){return k=!0,this._prodSafeCatch(V),d}finally{this._callCo11y(f,k)}}_prodSafeCatch(a){let d;try{if(d=!R.isProduction,d)throw a;if(this._safeCatchMode)throw this._safeCatchMode=!1,new Error("Internal error in prodSafeCatch.");if(this._safeCatchMode=!0,this._errorCounter&&this._errorCounter.increment(),!(a instanceof Error)){const f=a&&a.message||(typeof a.toString=="function"?a.toString():"");a=new Error(f)}this._safeCatchMode=!1}catch(f){if(d)throw f;if(f&&console&&typeof console.error=="function")try{console.error(f)}catch(k){}this._safeCatchMode=!1}}}r.Co11yImpl=_,r.LazyMapToList=h,r.MetricsUtility=ce,r.PublicSafety=Ce,r.UpCounterImpl=F,r.ValidationEntry=N,r.co11y=c,r.logValidator=H,r.maxItemCountAppLimit=S,r.maxStringLengthAppLimit=p,r.metricsUtility=re,r.payloadUtility=Z,r.schemaUtil=u,r.utility=R,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("o11y/shared",["exports","o11y/shared/v/256_1_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("o11y_schema/sf_instrumentation/v/256_127_0",["exports"],function(r){"use strict";var e={namespace:"sf.instrumentation",name:"Activity",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Activity:{reserved:[[5,5],[7,7]],fields:{stopReason:{id:6,type:"string"},isRoot:{id:8,type:"bool"},isSampled:{id:11,type:"bool"},preRootId:{id:9,type:"string"},parentId:{id:13,type:"string"},duration:{id:3,type:"double"},timerOverridden:{id:12,type:"uint32"},isRerooted:{id:15,type:"bool"},name:{options:{"(meta.max_length)":25},id:2,type:"string"},traceIdSource:{id:14,type:"string"},id:{id:1,type:"string"},userPayload:{id:4,type:"Payload"},errorCount:{id:10,type:"uint32"}}},Payload:{fields:{payload:{id:2,type:"bytes"},schemaName:{id:1,type:"string"}}}}}}}}}},t={namespace:"sf.instrumentation",name:"BasicPage",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{BasicPage:{fields:{entityType:{id:3,type:"string"},entityId:{id:2,type:"string"},url:{id:1,type:"string"}}}}}}}}}},E={namespace:"sf.instrumentation",name:"CoreEnvelope",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{MessageBundle:{fields:{messages:{rule:"repeated",id:2,type:"LogMessage"},schemaName:{id:1,type:"string"}}},Metrics:{fields:{globalMetricTags:{rule:"repeated",id:4,type:"MetricTag"},bucketHistograms:{rule:"repeated",id:3,type:"BucketHistogram"},valueRecorders:{rule:"repeated",id:2,type:"ValueRecorder"},upCounters:{rule:"repeated",id:1,type:"UpCounter"}}},CoreEnvelopeDiagnostics:{fields:{schemaVersion:{id:6,type:"string"},generatedTimestamp:{id:2,type:"double"},bundleCount:{id:3,type:"uint32"},upCounterCount:{id:4,type:"uint32"},valueRecorderCount:{id:5,type:"uint32"},key:{id:1,type:"string"},bucketHistogramCount:{id:7,type:"uint32"}}},LogMessage:{fields:{data:{id:2,type:"bytes"},rootId:{id:4,type:"string"},csId:{id:12,type:"string"},recCsId:{id:13,type:"string"},pagePayload:{id:7,type:"Payload"},connectionType:{id:9,type:"string"},appPayload:{id:10,type:"Payload"},loggerAppName:{id:8,type:"string"},sseq:{id:11,type:"uint32"},recRootId:{id:14,type:"string"},loggerName:{id:6,type:"string"},age:{id:3,type:"double"},seq:{id:5,type:"uint32"},timestamp:{id:1,type:"double"}}},CoreEnvelope:{fields:{diagnostics:{id:1,type:"CoreEnvelopeDiagnostics"},bundles:{rule:"repeated",id:2,type:"MessageBundle"},metrics:{id:3,type:"Metrics"},staticAttributes:{id:4,type:"StaticAttributes"}}},MetricTag:{fields:{name:{id:1,type:"string"},value:{id:2,type:"string"}}},BucketHistogram:{fields:{lastUpdatedTimestamp:{id:3,type:"double"},ownerName:{id:7,type:"string"},ownerAppName:{id:8,type:"string"},createdTimestamp:{id:2,type:"double"},values:{rule:"repeated",id:4,type:"double"},buckets:{rule:"repeated",id:5,type:"uint32"},name:{id:1,type:"string"},tags:{rule:"repeated",id:6,type:"MetricTag"}}},ValueRecorder:{fields:{lastUpdatedTimestamp:{id:3,type:"double"},ownerName:{id:6,type:"string"},ownerAppName:{id:7,type:"string"},createdTimestamp:{id:2,type:"double"},values:{rule:"repeated",id:4,type:"double"},name:{id:1,type:"string"},tags:{rule:"repeated",id:5,type:"MetricTag"}}},StaticAttributes:{fields:{appVersion:{id:2,type:"string"},appName:{id:1,type:"string"},deviceModel:{id:5,type:"string"},sdkVersion:{id:6,type:"string"},deviceId:{id:4,type:"string"},appExperience:{id:3,type:"string"}}},Payload:{fields:{payload:{id:2,type:"bytes"},schemaName:{id:1,type:"string"}}},UpCounter:{fields:{lastUpdatedTimestamp:{id:3,type:"double"},ownerName:{id:6,type:"string"},ownerAppName:{id:7,type:"string"},createdTimestamp:{id:2,type:"double"},name:{id:1,type:"string"},value:{id:4,type:"uint32"},tags:{rule:"repeated",id:5,type:"MetricTag"}}}}}}}}}},R={namespace:"sf.instrumentation",name:"Error",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Error:{reserved:[[5,5],[7,7]],fields:{activityId:{id:6,type:"string"},stack:{id:3,type:"string"},name:{id:1,type:"string"},message:{options:{"(meta.max_length)":200},id:2,type:"string"},userPayload:{id:4,type:"Payload"}}},Payload:{fields:{payload:{id:2,type:"bytes"},schemaName:{id:1,type:"string"}}}}}}}}}},F={namespace:"sf.instrumentation",name:"Event",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Event:{fields:{type:{id:1,type:"string"}}}}}}}}}},O={namespace:"sf.instrumentation",name:"IdleDetectorReport",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{IdleDetectorReport:{fields:{listenerCount:{id:3,type:"uint32"},busyTasks:{rule:"repeated",id:5,type:"string"},busyDurations:{rule:"repeated",id:6,type:"double"},pollableCount:{id:4,type:"uint32"},pollCounts:{rule:"repeated",id:8,type:"double"},logThreshold:{id:2,type:"double"},maxDuration:{id:1,type:"double"},pollables:{rule:"repeated",id:7,type:"string"}}}}}}}}}},_={namespace:"sf.instrumentation",name:"InstrumentedEvent",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{MouseEvent:{reserved:[[6,6],[7,7],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22]],fields:{cancelable:{id:5,type:"bool"},ctrlKey:{id:9,type:"bool"},type:{id:25,type:"string"},button:{id:3,type:"uint32"},offsetX:{id:30,type:"double"},eventPhase:{id:12,type:"uint32"},shiftKey:{id:23,type:"bool"},offsetY:{id:31,type:"double"},composed:{id:8,type:"bool"},altKey:{id:1,type:"bool"},isTrusted:{id:13,type:"bool"},buttons:{id:4,type:"uint32"},movementY:{id:29,type:"double"},clientY:{id:27,type:"double"},clientX:{id:26,type:"double"},movementX:{id:28,type:"double"},defaultPrevented:{id:10,type:"bool"},metaKey:{id:14,type:"bool"},timeStamp:{id:24,type:"double"},bubbles:{id:2,type:"bool"},detail:{id:11,type:"int64"},pageY:{id:33,type:"double"},pageX:{id:32,type:"double"},screenX:{id:34,type:"double"},screenY:{id:35,type:"double"}}},Event:{fields:{type:{id:1,type:"string"}}},InstrumentedEvent:{oneofs:{event:{oneof:["mouseEvent","baseEvent"]}},reserved:[[4,4],"xpath",[6,6],[8,8]],fields:{mouseEvent:{id:7,type:"MouseEvent"},auto:{id:3,type:"bool"},parentComponent:{id:2,type:"string"},baseEvent:{id:10,type:"Event"},ownerComponent:{id:1,type:"string"},userPayload:{id:5,type:"Payload"},simplePath:{id:9,type:"string"}}},Payload:{fields:{payload:{id:2,type:"bytes"},schemaName:{id:1,type:"string"}}}}}}}}}},c={namespace:"sf.instrumentation",name:"MouseEvent",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{MouseEvent:{reserved:[[6,6],[7,7],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22]],fields:{cancelable:{id:5,type:"bool"},ctrlKey:{id:9,type:"bool"},type:{id:25,type:"string"},button:{id:3,type:"uint32"},offsetX:{id:30,type:"double"},eventPhase:{id:12,type:"uint32"},shiftKey:{id:23,type:"bool"},offsetY:{id:31,type:"double"},composed:{id:8,type:"bool"},altKey:{id:1,type:"bool"},isTrusted:{id:13,type:"bool"},buttons:{id:4,type:"uint32"},movementY:{id:29,type:"double"},clientY:{id:27,type:"double"},clientX:{id:26,type:"double"},movementX:{id:28,type:"double"},defaultPrevented:{id:10,type:"bool"},metaKey:{id:14,type:"bool"},timeStamp:{id:24,type:"double"},bubbles:{id:2,type:"bool"},detail:{id:11,type:"int64"},pageY:{id:33,type:"double"},pageX:{id:32,type:"double"},screenX:{id:34,type:"double"},screenY:{id:35,type:"double"}}}}}}}}}},h={namespace:"sf.instrumentation",name:"Network",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Network:{fields:{mtd:{id:1,type:"string"},url:{id:2,type:"string"}}}}}}}}}},l={namespace:"sf.instrumentation",name:"Payload",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Payload:{fields:{payload:{id:2,type:"bytes"},schemaName:{id:1,type:"string"}}}}}}}}}},u={namespace:"sf.instrumentation",name:"PayloadDiags",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{PayloadDiags:{fields:{extras:{rule:"repeated",id:1,type:"string"}}}}}}}}}},p={namespace:"sf.instrumentation",name:"Simple",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Simple:{fields:{text:{options:{"(meta.max_length)":25},id:1,type:"string"}}}}}}}}}},S={namespace:"sf.instrumentation",name:"WebVitals",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{WebVitals:{fields:{navType:{id:5,type:"string"},name:{id:1,type:"string"},delta:{id:3,type:"double"},id:{id:4,type:"string"},value:{id:2,type:"double"},wvVersion:{id:6,type:"string"}}}}}}}}}};r.activitySchema=e,r.basicPageSchema=t,r.coreEnvelopeSchema=E,r.errorSchema=R,r.eventSchema=F,r.idleDetectorReportSchema=O,r.instrumentedEventSchema=_,r.mouseEventSchema=c,r.networkSchema=h,r.payloadDiagsSchema=u,r.payloadSchema=l,r.simpleSchema=p,r.webVitalsSchema=S,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("o11y_schema/sf_instrumentation",["exports","o11y_schema/sf_instrumentation/v/256_127_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("o11y/client/v/256_1_0",["exports","o11y_schema/sf_instrumentation/v/256_127_0","o11y/shared/v/256_1_0"],function(r,e,t){"use strict";class E{get isBusy(){return this._isOk?this._busyCount>0:void 0}constructor(n,i,o,s){this.name=n,this._doneCallback=o,this._overDoneCallback=s,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 R=300;class F{constructor(n){this._taskers=new Map,this._listeners=new Set,this._busyCheckers=new Map,this._logThreshold=R,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 o=this._addTasker(n,i);return{get isBusy(){return o.isBusy},add:()=>{if(!o.isBusy){const g=this._taskers.get(o);g.start=t.utility.time().perfNow,g.end=void 0}o.add()},done:o.done.bind(o)}}declarePollableTaskMulti(n,i){t.utility.requireArgument(n,"name","string"),t.utility.requireArgument(i,"isBusyChecker","function"),this._busyCheckers.set(i,n)}_addTasker(n,i){const o=new E(n,i,()=>{this._taskers.get(o).end=t.utility.time().perfNow,this._reportTaskEnded(o),this._checkIfLoaded()},()=>{var s;(s=this._errorListener)===null||s===void 0||s.call(this,`Overdone: ${o.name}`),t.utility.noProdThrow(`Tasker '${o.name}' is done too many times.`)});return this._taskers.set(o,{name:n,start:i>0?t.utility.time().perfNow:void 0,end:void 0}),o}_areAllNotifiersIdle(){return!Array.from(this._taskers.keys()).some(n=>n.isBusy)}_getFirstBusyPollable(){const n=Array.from(this._busyCheckers).find(i=>{var o;const s=i[0],g=i[1];try{return s()}catch(P){return(o=this._errorListener)===null||o===void 0||o.call(this,P,`BusyChecker ${g}`),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,o=Array.from(this._listeners.values());this._listeners.clear(),this._firstCallbackTime=void 0;const s=this._endedTasks.splice(0),g=this._pollableReport.splice(0);this._notify(o,i,s,g)}}}_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,o,s){var g;if(i>=this._logThreshold&&this._reportListener){const z=this._getReport(i,n.length,o,s);this._reportListener(z)}n.reverse();const P=t.utility.time().tsNow;for(const[z,de]of n.entries())try{de(P)}catch(Pe){(g=this._errorListener)===null||g===void 0||g.call(this,Pe,`Listener #${n.length-1-z}`),t.utility.noProdThrow(Pe)}}getReport(){const n=t.utility.time().perfNow,i=this._firstCallbackTime>0?n-this._firstCallbackTime:void 0,o=Array.from(this._taskers.entries()).filter(s=>s[0].isBusy).map(s=>({name:s[1].name,start:s[1].start,end:n}));return this._getReport(i,this._listeners.size,this._endedTasks.concat(o),this._pollableReport)}_getReport(n,i,o,s){const g=o.map(P=>({name:P.name,duration:P.end-P.start})).sort((P,z)=>z.duration-P.duration);return{logThreshold:this._logThreshold,maxDuration:n,listenerCount:i,pollableCount:this._busyCheckers.size,busyTasks:g.map(P=>P.name),busyDurations:g.map(P=>P.duration),pollables:s.map(P=>P.name),pollCounts:s.map(P=>P.count)}}}const O={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"]},_responseStatus:{oneof:["responseStatus"]},_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:{options:{proto3_optional:!0},id:23,type:"uint32"},redirectEnd:{id:9,type:"double"},logEvent:{id:41,type:"string"},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"}}}}}}}}}},_={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"]},_responseStatus:{oneof:["responseStatus"]},_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:{options:{proto3_optional:!0},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 c{constructor(n){this._fuzzyKeyRange=n,this._map=new Map,t.utility.requireArgument(n,"_fuzzyKeyRange","number")}add(n,i,o){const s=this._map.get(n);s?s.push({fuzzyKey:i,value:o}):this._map.set(n,[{fuzzyKey:i,value:o}])}pop(n,i){const o=this._map.get(n);if((o==null?void 0:o.length)>=1){let s=Number.POSITIVE_INFINITY,g=-1;for(let P=0;P<o.length;P++){const{fuzzyKey:z}=o[P],de=Math.abs(z-i);de<=this._fuzzyKeyRange&&de<s&&(s=de,g=P)}if(g>=0){const{value:P}=o.splice(g,1)[0];return o.length===0&&this._map.delete(n),P}}}clear(){this._map.clear()}}const h=["fetch","xmlhttprequest"];class l{constructor(n,i,o,s,g){if(this._instr=n,this._skipUrls=o,this._logPerformanceActivityName=s,this._boundObserverCallback=this._logPerformanceEntries.bind(this),this._boundNavigationTimingEventCallback=P=>{this._logNavigationEntries(P)},this._setTimeoutNavigationCallback=P=>{setTimeout(()=>{this._boundNavigationTimingEventCallback(P)},0)},this._visibilityChangeNavigationCallback=P=>{document.visibilityState==="hidden"&&this._boundNavigationTimingEventCallback(P)},this._isStarted=!1,this._processedNavigationTiming=!1,t.utility.requireArgument(n,"_instr","object"),t.utility.requireArgument(i,"fuzzyMapRange","number"),t.utility.requireArgumentIfDefined(o,"_skipUrls",Array),t.utility.requireArgumentIfDefined(s,"_logPerformanceActivityName","string"),t.utility.requireArgumentIfDefined(g,"logLevel","string"),this._hasPerf=typeof performance!="undefined"&&typeof PerformanceObserver=="function",this._hasWindow=typeof window!="undefined",!g||g.toLowerCase()==="full")this._logLevel=1;else if((g==null?void 0:g.toLowerCase())==="basic")this._logLevel=0;else throw new Error(`Invalid log level: ${g}`);this._fuzzyMapper=new c(i)}get isStarted(){return this._isStarted}get logLevel(){return this._logLevel}start(){!this._hasPerf||this._isStarted||(this._isStarted=!0,this._resourceObserver=new PerformanceObserver(this._boundObserverCallback),this._resourceObserver.observe({type:"resource",buffered:!0}),this._addNavigationListeners())}stop(){this._resourceObserver&&(this._resourceObserver.disconnect(),this._resourceObserver=void 0),this._removeNavigationListeners(),this._fuzzyMapper.clear(),this._isStarted=!1}_addNavigationListeners(){!this._hasWindow||(window.addEventListener("load",this._setTimeoutNavigationCallback),window.addEventListener("pagehide",this._boundNavigationTimingEventCallback),document.addEventListener("visibilitychange",this._visibilityChangeNavigationCallback))}_removeNavigationListeners(){!this._hasWindow||(window.removeEventListener("load",this._setTimeoutNavigationCallback),window.removeEventListener("pagehide",this._boundNavigationTimingEventCallback),document.removeEventListener("visibilitychange",this._visibilityChangeNavigationCallback))}addEntry(n,i,o){this._fuzzyMapper.add(n,i,o)}_resourceEntryToResourceTiming(n){var i,o;const s={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},g=n.serverTiming;return Array.isArray(g)&&(s.dbDuration=(i=g.find(P=>P.name==="db"))===null||i===void 0?void 0:i.duration,s.srvDuration=(o=g.find(P=>P.name==="Total"))===null||o===void 0?void 0:o.duration),s}_shouldInclude(n){var i;return((i=this._skipUrls)===null||i===void 0?void 0:i.some(s=>s instanceof RegExp?s.test(n.name):n.name===s))?!1:this._logLevel===1?!0:h.indexOf(n.initiatorType)>=0||n.entryType==="navigation"}_logActivity(n,i,o,s){const g={id:o},P={perfStartOverride:i.startTime,perfStopOverride:i.startTime+i.duration,errorCount:s};this._instr.startActivity(this._logPerformanceActivityName,g).stop(n,i,P)}_logNavigationEntries(n){if(!this._processedNavigationTiming)for(const i of performance.getEntriesByType("navigation")){const o=i;if(this._shouldInclude(o)){this._processedNavigationTiming=!0;const s=this._resourceEntryToResourceTiming(o),g={domComplete:o.domComplete,domContentLoadedEventStart:o.domContentLoadedEventStart,domContentLoadedEventEnd:o.domContentLoadedEventEnd,domInteractive:o.domInteractive,loadEventStart:o.loadEventStart,loadEventEnd:o.loadEventEnd,redirectCount:o.redirectCount,type:o.type,unloadEventStart:o.unloadEventStart,unloadEventEnd:o.unloadEventEnd,logEvent:n.type};this._logActivity(O,Object.assign(s,g))}break}}_logPerformanceEntries(n){for(const i of n.getEntriesByType("resource")){const o=i,s=this._fuzzyMapper.pop(o.name,o.startTime);if(this._shouldInclude(o)){const g=this._resourceEntryToResourceTiming(o);Object.assign(g,{srvReqId:s==null?void 0:s.requestId,xhrDelay:s?s.activityDuration-o.duration:void 0}),g.responseStatus===void 0&&(g.responseStatus=s==null?void 0:s.responseStatus),this._logActivity(_,g,s==null?void 0:s.activityId,s==null?void 0:s.errorCount)}}}}const u=32,p=16,S=16,v="traceparent",I="b3",w="X-B3-TraceId",D="X-B3-SpanId",L="X-B3-Sampled",M="X-B3-ParentSpanId",X="X-SFDC-Request-Id",N="fetch",j="xhr_send",H="perf-timing",ce=50,re=new WeakMap;class G{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,o,s){let g=`${n}-${i}`;return(o!==void 0||s!==void 0)&&(g+=o?"-1":"-0",s!==void 0&&(g+=`-${s}`)),g}static _getW3CompactFormat(n,i,o){return`00-${n}-${i}-${o?"01":"00"}`}static _conformTextAsId(n,i){n=n.toLowerCase();const o=n.length;for(let s=0;s<o;s+=1){const g=n[s];if(!(g>="a"&&g<="f")&&!(g>="0"&&g<="9"))throw new Error(`The text '${n}' has an invalid character at index #${s}`)}return o>i?n.substr(o-i):o<i?n.padStart(i,"0"):n}static getHeaders(n,i,o,s){t.utility.requireArgument(i,"spanId","string");const g=s==null?void 0:s.useB3Headers,P={};if(n===void 0)return P;n=this._conformTextAsId(n,(s==null?void 0:s.traceIdEffectiveLength)!==void 0?s.traceIdEffectiveLength:g?p:u),i=this._conformTextAsId(i,S);const z=s&&s.parentSpanId!==void 0&&this._conformTextAsId(s.parentSpanId,S)||void 0;return g?(s==null?void 0:s.useCompactHeader)?P[I]=this._getB3CompactFormat(n,i,o,z):(P[w]=n,P[D]=i,z!==void 0&&(P[M]=z),o!==void 0&&(P[L]=o?"1":"0")):P[v]=this._getW3CompactFormat(n,i,o),P}_disableNetworkInstrumentation(){G._isNetworkInstrumentationEnabled&&(G._originalFetch&&(G._global.fetch=G._originalFetch,G._originalFetch=void 0),G._originalXhr&&(G._global.XMLHttpRequest=G._originalXhr,G._originalXhr=void 0),G._originalXhrOpen&&(G._global.XMLHttpRequest.prototype.open=G._originalXhrOpen,G._originalXhrOpen=void 0),G._originalXhrSetRequestHeader&&(G._global.XMLHttpRequest.prototype.setRequestHeader=G._originalXhrSetRequestHeader,G._originalXhrSetRequestHeader=void 0),G._originalXhrSend&&(G._global.XMLHttpRequest.prototype.send=G._originalXhrSend,G._originalXhrSend=void 0),G._performanceObservability&&(G._performanceObservability.stop(),G._performanceObservability=void 0),G._isNetworkInstrumentationEnabled=!1)}_enableNetworkInstrumentation(n,i,o,s,g,P,z,de,Pe,be){typeof G._global.fetch=="function"&&(this._overrideFetch(n,i,o,s,g,P,Pe),G._isNetworkInstrumentationEnabled=!0),typeof G._global.XMLHttpRequest=="function"&&(this._overrideXhr(n,i,o,s,g,P,Pe),G._isNetworkInstrumentationEnabled=!0),z&&(G._performanceObservability=new l(n,be,Pe,de,z===!0?"full":z),G._performanceObservability.start(),G._isNetworkInstrumentationEnabled=!0)}static _getTraceHeaders(n,i,o,s,g){let P;if(n)P=n.getTraceHeaders(o)||{};else{const z=i.internalInstrumentationContext;(z==null?void 0:z.rootId)?P=G.getHeaders(z.rootId,t.utility.generateUniqueId(),z.isRootActivitySampled,o):P={}}if(typeof(o==null?void 0:o.headerProcessor)=="function")P=o.headerProcessor({method:s,url:g,defaultHeaders:P});else if(typeof window=="object"){let z;try{z=new URL(g)}catch(de){}z&&z.host!==window.location.host&&(P=void 0)}return P||{}}static _extractHeader(n,i,o){if((o==null?void 0:o.headers)instanceof Headers)return o.headers.get(n);if(Array.isArray(o==null?void 0:o.headers)){const s=o.headers.find(g=>g[0]===n);return s==null?void 0:s[1]}if(typeof(o==null?void 0:o.headers)=="object")return o.headers[n];if(i instanceof Request)return i.headers.get(n)}_overrideFetch(n,i,o,s,g,P,z){G._originalFetch=G._global.fetch;const de=async(Pe,be,...Le)=>{var Ue;let fe,He,Be,gt,bt,Et=!1,vt;try{P==null||P.add(),gt=be==null?void 0:be.method;const et=be==null?void 0:be.o11y,_t=et==null?void 0:et.skipInstr;if(Et=_t||G._shouldSkipUrl(z,Pe),!Et)fe=n.startActivity(o||N);else if(_t){G._reqIndex+=1;try{if(Pe instanceof URL)Pe.searchParams.append("o11y",G._reqIndex.toString());else if(typeof Pe=="string"){const ct=new URL(Pe),Nt=`o11y=${G._reqIndex}`;ct.search+=ct.search.startsWith("?")?`&${Nt}`:Nt,Pe=ct.toString()}}catch(ct){}}if(be==null||delete be.o11y,He=Pe==null?void 0:Pe.toString(),Be=t.utility.tryGetAbsoluteUrl(He),s){Pe instanceof Request&&(gt||(gt=Pe.method),He=Pe.url,Be=t.utility.tryGetAbsoluteUrl(He));const ct=G._getTraceHeaders(fe,n,g,gt,Be);!this._applyTraceHeaders(Pe,be,ct)&&be===void 0&&(be={headers:ct})}return bt=t.utility.perfNow(),vt=await G._originalFetch.call(G._global,Pe,be,...Le),vt}catch(et){throw i&&!Et&&(fe?fe.error(et):n.error(et)),et}finally{try{const et=G._endActivity(fe,He,gt);if((Ue=G._performanceObservability)===null||Ue===void 0?void 0:Ue.isStarted){const _t=G._extractHeader(X,Pe,be);G._performanceObservability.addEntry(Be,bt,{requestId:_t,activityDuration:et,activityId:fe==null?void 0:fe.getId(),errorCount:fe==null?void 0:fe.getErrorCount(),responseStatus:vt==null?void 0:vt.status})}}finally{P==null||P.done()}}};G._global.fetch=de}static _endActivity(n,i,o){var s;if(n)return((s=G._performanceObservability)===null||s===void 0?void 0:s.isStarted)?n.discard():n.stop(e.networkSchema,{mtd:o,url:i}),n.getStopPerfTime()-n.getStartPerfTime()}_overrideXhr(n,i,o,s,g,P,z){G._originalXhr=G._global.XMLHttpRequest,G._originalXhrOpen=G._originalXhr.prototype.open,G._originalXhrSetRequestHeader=G._originalXhr.prototype.setRequestHeader,G._originalXhrSend=G._originalXhr.prototype.send;function de(be,Le){var Ue;const fe=re.get(be);if(fe){const He=fe.activity,Be=G._endActivity(He,fe.url,fe.method);!Le&&((Ue=G._performanceObservability)===null||Ue===void 0?void 0:Ue.isStarted)&&G._performanceObservability.addEntry(fe.absoluteUrl,fe.sendTime,{requestId:fe.requestId,activityDuration:Be,activityId:He==null?void 0:He.getId(),errorCount:He==null?void 0:He.getErrorCount(),responseStatus:be.status})}}G._originalXhr.prototype.open=function(be,Le,Ue,fe,He){const Be={method:be,url:Le==null?void 0:Le.toString()};re.set(this,Be),Be.absoluteUrl=t.utility.tryGetAbsoluteUrl(Be.url),Be.suspendInstrumentation=G._shouldSkipUrl(z,Be.absoluteUrl),G._originalXhrOpen.apply(this,arguments)},G._originalXhr.prototype.setRequestHeader=function(be,Le){var Ue;if(((Ue=be==null?void 0:be.toLowerCase)===null||Ue===void 0?void 0:Ue.call(be))===X.toLowerCase()){const fe=re.get(this);fe&&(fe.requestId=Le)}G._originalXhrSetRequestHeader.apply(this,arguments)},G._originalXhr.prototype.send=function(...be){let Le;const Ue=this;let fe=re.get(Ue);fe||(fe={},re.set(Ue,fe));try{if(P==null||P.add(),fe.suspendInstrumentation||(fe.activity=Le=n.startActivity(o||j)),s){const He=G._getTraceHeaders(Le,n,g,fe.method,fe.absoluteUrl);Object.entries(He).forEach(Be=>{Ue.setRequestHeader(Be[0],Be[1])})}fe.sendTime=t.utility.perfNow(),G._originalXhrSend.call(this,...be)}catch(He){throw i&&!(fe==null?void 0:fe.suspendInstrumentation)&&(Le?Le.error(He):n.error(He)),de(Ue,!0),P==null||P.done(),He}};const Pe=new Proxy(G._originalXhr,{construct(be){const Le=new be;return Le.addEventListener("load",()=>{de(Le),P==null||P.done()}),Le.addEventListener("error",Ue=>{const fe=re.get(Le)||{};try{if(i&&!(fe==null?void 0:fe.suspendInstrumentation)){const He=new Error("XHR Network-Level Error"),Be=fe==null?void 0:fe.activity;Be?Be.error(He):n.error(He)}de(Le)}finally{P==null||P.done()}}),Le.addEventListener("abort",()=>{var Ue;const fe=re.get(Le)||{};(Ue=fe==null?void 0:fe.activity)===null||Ue===void 0||Ue.discard(),P==null||P.done()}),Le}});G._global.XMLHttpRequest=Pe}networkInstrumentation(n){var i;if(t.utility.requireArgument(n,"options",["boolean","object"]),this._disableNetworkInstrumentation(),n){const o=typeof n=="object"?n:{};let s;t.utility.definedValueOrDefault(o.useTasker,!0)&&(s=(i=this._idleDetector)===null||i===void 0?void 0:i.declareNotifierTaskMulti("o11y network")),this._enableNetworkInstrumentation(t.utility.definedValueOrDefault(o.instrumentation,this._instr),t.utility.definedValueOrDefault(o.logErrors,!0),o.activityName,t.utility.definedValueOrDefault(o.useTracing,!0),o.tracingHeadersOptions,s,t.utility.definedValueOrDefault(o.logPerformance,!0),t.utility.definedValueOrDefault(o.logPerformanceActivityName,H),t.utility.definedValueOrDefault(o.skipUrls,[]),t.utility.definedValueOrDefault(o.fuzzyMapRange,ce))}}resetRequestCounter(){G._reqIndex=0}_applyTraceHeaders(n,i,o){if((i==null?void 0:i.headers)!==void 0){if(i.headers instanceof Headers&&typeof i.headers.set=="function")return Object.entries(o).forEach(([s,g])=>{i.headers.set(s,g)}),!0;if(Array.isArray(i.headers))return Object.entries(o).forEach(s=>{i.headers.push(s)}),!0;if(typeof i.headers=="object")return i.headers=Object.assign(i.headers,o),!0}else{if(n instanceof Request&&n.headers instanceof Headers)return Object.entries(o).forEach(([s,g])=>{n.headers.set(s,g)}),!0;if(i)return i.headers=Object.assign({},o),!0}return!1}static _shouldSkipUrl(n,i){var o;let s=i;return i instanceof URL?s=(o=i.toString)===null||o===void 0?void 0:o.call(i):i instanceof Request&&(s=i.url),n==null?void 0:n.some(g=>g instanceof RegExp?g.test(s):s===g)}}G._global=t.utility.getGlobal(),G._isNetworkInstrumentationEnabled=!1,G._reqIndex=0;var Z;(function(ve){ve[ve.none=0]="none",ve[ve.start=1]="start",ve[ve.stop=2]="stop",ve[ve.both=3]="both"})(Z||(Z={}));const Ie="timedout",Ce="terminated",ie="discarded",a={timedout:Ie,terminated:Ce,discarded:ie};class d{constructor(n,i,o,s,g,P,z,de,Pe){this._name=n,this._rootId=i,this._onStopped=o,this._onError=s,this._isSampled=z,this._noRerooting=Pe,this._isRoot=!1,this._errorCount=0,this._timerOverridden=Z.none;const{tsNow:be,perfNow:Le}=t.utility.time();if(d._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}__${d._count}`,this._perfId=`${this._name}__${this.id}`;try{performance.mark(this._perfId)}catch(Ue){this._usePerf=!1}}this._startTimestamp=be,this._startPerfTime=Le,this._overrideTimer(de),g>0&&(this._timer=setTimeout(()=>{this._stopReason=this._stopReason||a.timedout,this.stop()},g)),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,o){this._safety.tryCatch(()=>{this._errorCount+=1,typeof n=="string"&&(n=new Error(n)),this._onError(n,this._getDetail(i,o))},{op:"activity.error"})}stop(n,i,o){this._safety.tryCatch(()=>{if(t.utility.requireArgumentIfDefined(n,"userSchemaOrText",["object","string"]),t.utility.requireArgumentIfDefined(i,"userData","object"),o){const s=o.perfStartOverride,g=t.utility.requireArgumentIfDefined(s,"options.perfStartOverride","number"),P=o.perfStopOverride,z=t.utility.requireArgumentIfDefined(P,"options.perfStopOverride","number"),de=o.errorCount;if(t.utility.requireArgumentIfDefined(de,"options.errorCount","number")&&(this._errorCount=de),g&&s<0)throw new Error("perfStartOverride, if defined, must be >= 0");if(z&&(P<0||P<(g?s: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,o)},{op:"activity.stop"})}_overrideTimer(n,i){n!==void 0&&(this._startTimestamp=Math.round(this._startTimestamp-(this._startPerfTime-n)),this._startPerfTime=n,this._setTimerOverride(Z.start)),i!==void 0&&(this._stopPerfTime=i,this._setTimerOverride(Z.stop))}_setTimerOverride(n){this._timerOverridden===Z.both||this._timerOverridden===n||n===Z.none||(this._timerOverridden=this._timerOverridden===Z.none?n:Z.both)}_stopInternal(n,i,o){const s=t.utility.perfNow();if(this._usePerf)try{this._stopReason!==a.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;o&&this._overrideTimer(o.perfStartOverride,o.perfStopOverride),this._stopPerfTime=this._timerOverridden===Z.none||this._timerOverridden===Z.start?s:this._stopPerfTime;const g=this._getDetail(n,i);this._onStopped(g)}get isStopped(){return this._stopPerfTime!==void 0}discard(){this._safety.tryCatch(()=>{this._stopReason=this._stopReason||a.discarded,this.stop()},{op:"activity.discard"})}terminate(n,i,o){this._safety.tryCatch(()=>{this._stopReason=this._stopReason||a.terminated,this.stop(n,i,o)},{op:"activity.terminate"})}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,o=this._isRoot?this.id:this._rootId;return G.getHeaders(o,i,this.getIsSampled(),n)}getStartTimestamp(){return this._startTimestamp}getStartPerfTime(){return this._startPerfTime}getStopPerfTime(){return this._stopPerfTime}getErrorCount(){return this._errorCount}}d._count=0;const f=new Array(16).fill(0).join("");class k{getId(){return f}getRootId(){}error(){}stop(){}discard(){}terminate(){}getIsSampled(){return!1}getTraceHeaders(n){return{}}getStartTimestamp(){}getStartPerfTime(){}getStopPerfTime(){}getErrorCount(){return 0}}const V=Object.freeze(new k);class ne{getInstrumentedEventData(n,i,o,s){var g;const P={ownerComponent:o.tagName,parentComponent:((g=o.parentElement)===null||g===void 0?void 0:g.tagName)||void 0,simplePath:t.utility.getXpath(o)};switch(n){case 0:P.baseEvent=i;break;case 1:P.mouseEvent=i;break}return s&&(P.userPayload=t.schemaUtil.makePayload(s.schema,s.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 De=new ne;class we{constructor(n,i,o,s,g,P,z,de){this._name=n,this._ownerName=i,this._ownerAppName=o,this._tags=s,this._buckets=g,this._values=new Array,this._createdOn=P===void 0?t.utility.time().tsNow:P,z!==void 0&&(this._lastUpdatedOn=z),de!==void 0&&(this._values=de)}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 xe{constructor(n,i,o,s,g,P,z){this._name=n,this._ownerName=i,this._ownerAppName=o,this._tags=s,this._values=new Array,this._createdOn=g===void 0?t.utility.time().tsNow:g,P!==void 0&&(this._lastUpdatedOn=P),z!==void 0&&(this._values=z)}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 $e{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<this.maxSize?(this._map.set(n,i),!0):!1}getElements(){return Array.from(this._map.values())}clear(){this._map.clear()}}const We=1e3,pe=500,K=500;var se;(function(ve){ve[ve.Counter=0]="Counter",ve[ve.Percentile=1]="Percentile",ve[ve.BucketHistogram=2]="BucketHistogram"})(se||(se={}));class Y{constructor(n,i){this._ownerName=n,this._getOwnerAppName=i,this._upCounters=new $e(We),this._valueRecorders=new $e(pe),this._bucketHistograms=new $e(K)}incrementCounter(n,i,o=!1,s={}){this._tagError(s,o),this._upCounter(n,s).increment(i)}trackValue(n,i,o=!1,s={}){this._tagError(s,o),this._valueRecorder(n,s).record(i)}bucketValue(n,i,o,s=!1,g={}){this._tagError(g,s),this._bucketHistogram(n,g,o).record(i)}_bucketHistogram(n,i,o){const{key:s,sortedTags:g}=this._getKeyAndSortedTags(n,i,se.BucketHistogram);let P=this._bucketHistograms.get(s);if(!P&&(P=new we(n,this._ownerName,this._getOwnerAppName(),g,o),!this._bucketHistograms.set(s,P)))throw new Error(`Max size of ${K} exceeded for BucketHistograms`);return P}_upCounter(n,i){const{key:o,sortedTags:s}=this._getKeyAndSortedTags(n,i,se.Counter);let g=this._upCounters.get(o);if(!g&&(g=new t.UpCounterImpl(n,this._ownerName,this._getOwnerAppName(),s),!this._upCounters.set(o,g)))throw new Error(`Max size of ${We} exceeded for UpCounters`);return g}_valueRecorder(n,i){const{key:o,sortedTags:s}=this._getKeyAndSortedTags(n,i,se.Percentile);let g=this._valueRecorders.get(o);if(!g&&(g=new xe(n,this._ownerName,this._getOwnerAppName(),s),!this._valueRecorders.set(o,g)))throw new Error(`Max size of ${pe} exceeded for ValueRecorders`);return g}getUpCounters(){return this._upCounters.getElements()}getValueRecorders(){return this._valueRecorders.getElements()}getBucketHistograms(){return this._bucketHistograms.getElements()}_tagError(n,i){n.status=i===!0?"error":"success"}_getKeyAndSortedTags(n,i,o){const s=Object.keys(i).sort().reduce((P,z)=>(P[z]=i[z],P),{});return{key:`${se[o]}:${n}${JSON.stringify(s)}`,sortedTags:s}}}class _e{constructor(){this.isMock=!0}}const Ne=void 0,ze=["`"],je={internalError:"o11y-error"},Re=Object.freeze(Array.from(Object.values(je)));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 s of ze)if(this._name.indexOf(s)>=0)throw new Error(`Name cannot include the reserved character "${s}"`);this._safety=new t.PublicSafety({increment:s=>this._incrementError(s)}),this._metrics=this._initMetrics();const o=t.schemaUtil.getOptions(e.simpleSchema,"Simple","text");this._simpleTextMaxLength=o?o["(meta.max_length)"]:t.maxStringLengthAppLimit}_initMetrics(){return new Y(this.name,()=>this._nextGen.appName||Xe.defaultAppName)}_incrementError(n=1){this._metrics.incrementCounter(je.internalError,n,!0)}get name(){return this._name}_wrapUserPayload(n,i,o=!1){let s;return typeof n=="string"?(s=e.simpleSchema,n?i={text:n.substring(0,this._simpleTextMaxLength)}:i=void 0):s=n,t.schemaUtil.makePayload(s,i,o)}_getEffectiveRootId(n){var i,o;return(o=(i=n==null?void 0:n.instrumentationContext)===null||i===void 0?void 0:i.rootId)!==null&&o!==void 0?o:this._nextGen.getDefaultInstrumentationContext().rootId}get internalInstrumentationContext(){return this._nextGen.getDefaultInstrumentationContext()}log(n,i,o){this._safety.tryCatch(()=>{const s=t.utility.time().tsNow;t.utility.requireArgument(n,"userSchemaOrText",["object","string"]),t.utility.requireArgumentIfDefined(i,"userData","object"),t.utility.requireArgumentIfDefined(o,"options","object");const g=this._wrapUserPayload(n,i);(g==null?void 0:g.payload)&&this._logInternal(this.name,g.schema,g.payload,s,this._getEffectiveRootId(o))},{op:"log"})}_logInternal(n,i,o,s,g){const P=this._nextGen.addLog(n,i,o,s,g);if(!t.utility.isProduction){const z=t.payloadUtility.getExtraFields(i,o);!t.utility.isProduction&&z.length>0&&this.error("Extra fields",e.payloadDiagsSchema,{extras:z})}return P}error(n,i,o,s){return this._safety.tryCatch(()=>{t.utility.requireArgumentIfDefined(i,"userSchemaOrText",["object","string"]),t.utility.requireArgumentIfDefined(o,"userData","object"),t.utility.requireArgumentIfDefined(s,"options","object");const g=this._getEffectiveRootId(s);this._errorInternal(n,i,o,void 0,g)},{op:"error"})}_errorInternal(n,i,o,s,g){const P=t.utility.time().tsNow;let z;if(n instanceof Error)z=n;else{let be;n==null||typeof n.toString!="function"?be="UNKNOWN":be=n.toString(),z=new Error(be)}const de=this._wrapUserPayload(i,o,!0),Pe={name:z.name,message:z.message,stack:z.stack,userPayload:de,activityId:s};return this._logInternal(this.name,e.errorSchema,Pe,P,g)}startActivity(n,i){return this._safety.tryCatchReturn(()=>{var o;t.utility.requireArgument(n,"name"),t.utility.requireArgumentIfDefined(i,"options","object");let s,g=(i==null?void 0:i.perfStartOverride)!==void 0;const P=(o=i==null?void 0:i.instrumentationContext)===null||o===void 0?void 0:o.rootId;return P?(g=!0,s={rootId:P,isRootActivitySampled:i.instrumentationContext.isRootActivitySampled}):s=this._nextGen.getDefaultInstrumentationContext(),new d(n,s.rootId,this._onActivityStoppedCallback,this._onActivityErrorCallback,Ne,i==null?void 0:i.id,s.isRootActivitySampled,i==null?void 0:i.perfStartOverride,g)},V,{op:"startActivity"})}_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===ie)return;if(!n.isRoot&&!n.noRerooting){const o=this._nextGen.getRootActivityHistoryEntryByTime(n.startPerfTime);(!o&&n.rootId!==void 0||o&&n.rootId!==o.id)&&(n.rootId=o==null?void 0:o.id,n.isSampled=(o==null?void 0:o.isSampled)||!1,n.isRerooted=!0)}const i=this._getActivityData(n);this._logActivity(i,n.startTimestamp,n.rootId)}_logActivity(n,i,o){this._logInternal(this.name,e.activitySchema,n,i,o)}_handleActivityError(n,i){this._errorInternal(n,i.userSchemaOrText,i.userData,i.id,i.rootId)}domEvent(n,i,o,s,g){this._safety.tryCatch(()=>{var P;const z=t.utility.time().tsNow;t.utility.requireArgument(n,"event",[Event,_e]),t.utility.requireArgument(i,"handledBy",[HTMLElement,"object"]);let de;i instanceof HTMLElement?de=i:(i=i,((P=i.template)===null||P===void 0?void 0:P.host)instanceof HTMLElement?de=i.template.host:t.utility.requireArgument(void 0,"handledBy"));const Pe=this._wrapUserPayload(o,s,!0),be=this._getEffectiveRootId(g);switch(n.type){case"click":{const Le=n,Ue=this._nextGen.getClickTracker();Ue&&Ue.markEventHandled(Le);const fe=g==null?void 0:g.captureMouseData,He=De.getInstrumentedEventData(fe?1:0,fe?De.getMouseEventData(Le):De.getEventData(Le),de,Pe);He.auto=g==null?void 0:g._auto,this._logInternal(this.name,e.instrumentedEventSchema,He,z,be);break}default:throw new Error(t.utility.notImplemented)}},{op:"domEvent"})}_siftTags(n){const i=Object.assign({},n);return Object.entries(i).forEach(([o,s])=>{if(s===null)i[o]="null";else if(s==="")i[o]="empty";else if(Number.isNaN(s))i[o]="NaN";else{const g=typeof s;["number","string","boolean"].indexOf(g)===-1&&(i[o]=g)}}),i}incrementCounter(n,i=1,o=!1,s={}){this._safety.tryCatch(()=>{t.utility.requireArgument(n,"operation","string"),t.utility.checkForDenyListedValues(n,"operation",Re),t.utility.checkForReservedCharacters(n,"operation",ze),t.utility.requireArgument(i,"increment","number"),t.utility.requireArgument(o,"hasError","boolean"),t.utility.requireArgument(s,"tags","object"),this._metrics.incrementCounter(n,i,o,this._siftTags(s))},{op:"incrementCounter"})}trackValue(n,i,o=!1,s={}){this._safety.tryCatch(()=>{t.utility.requireArgument(n,"operation","string"),t.utility.checkForDenyListedValues(n,"operation",Re),t.utility.checkForReservedCharacters(n,"operation",ze),t.utility.requireArgument(i,"value","number"),t.utility.requireArgument(o,"hasError","boolean"),t.utility.requireArgument(s,"tags","object"),this._metrics.trackValue(n,i,o,this._siftTags(s))},{op:"trackValue"})}bucketValue(n,i,o=[],s=!1,g={}){this._safety.tryCatch(()=>{t.utility.requireArgument(n,"operation","string"),t.utility.checkForDenyListedValues(n,"operation",Re),t.utility.checkForReservedCharacters(n,"operation",ze),t.utility.requireArgument(i,"value","number"),t.utility.requireArgument(o,"buckets",Array),Object.entries(o).forEach(([P,z])=>{t.utility.requireArgument(z,`Bucket value for '${P}'`,"number")}),t.utility.requireArgument(s,"hasError","boolean"),t.utility.requireArgument(g,"tags","object"),this._metrics.bucketValue(n,i,o,s,this._siftTags(g))},{op:"bucketValue"})}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,o){var s,g,P,z;const de=this._getAsaOptions(o),Pe=this.startActivity(n,de);try{return i(Pe)}catch(be){throw Pe.error(be,(s=o==null?void 0:o.errorPayload)===null||s===void 0?void 0:s.schema,(g=o==null?void 0:o.errorPayload)===null||g===void 0?void 0:g.payload),be}finally{Pe.stop((P=o==null?void 0:o.stopPayload)===null||P===void 0?void 0:P.schema,(z=o==null?void 0:o.stopPayload)===null||z===void 0?void 0:z.payload,o==null?void 0:o.stopOptions)}}async activityAsync(n,i,o){var s,g,P,z;const de=this._getAsaOptions(o),Pe=this.startActivity(n,de);try{return await i(Pe)}catch(be){throw Pe.error(be,(s=o==null?void 0:o.errorPayload)===null||s===void 0?void 0:s.schema,(g=o==null?void 0:o.errorPayload)===null||g===void 0?void 0:g.payload),be}finally{Pe.stop((P=o==null?void 0:o.stopPayload)===null||P===void 0?void 0:P.schema,(z=o==null?void 0:o.stopPayload)===null||z===void 0?void 0:z.payload,o==null?void 0:o.stopOptions)}}}Xe.defaultAppName="APP_NOT_REGISTERED";const rt=.1,pt=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=pt;this._graceCount=Math.max(1,Math.floor(n*rt)),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(o=>this._historyMap.delete(o.id))}get count(){return this._historyList.length}findById(n){return this._historyMap.get(n)}findByTime(n){let i,o=Number.MAX_VALUE;for(const s of this._historyList){const g=n-s.startPerfTime;g>=0&&(s.stopPerfTime===void 0||n<s.stopPerfTime)&&g<o&&(i=s,o=g)}return i}}class ke extends d{constructor(n,i,o,s,g,P,z){super(n,void 0,i,o,void 0,s||t.utility.generateUniqueId(z??32),g,P);this._isRoot=!0}get preRootId(){return this._preRootId}set preRootId(n){this._preRootId=n}_getDetail(n,i){const o=super._getDetail(n,i);return o.isRoot=!0,o.preRootId=this.preRootId,o}}const ft=new Array(32).fill(0).join("");class b{getId(){return ft}getRootId(){}error(){}stop(){}discard(){}terminate(){}getIsSampled(){return!1}getTraceHeaders(n){return{}}getStartTimestamp(){}getStartPerfTime(){}getStopPerfTime(){}getErrorCount(){return 0}}const x=Object.freeze(new b);class C extends Xe{constructor(n,i,o){super(n,i);this._allowMulti=o,this._rootActivityHistory=new dt,this._onRootActivityStoppedCallback=this._handleRootActivityStop.bind(this)}startRootActivity(n,i,o,s){return this._safety.tryCatchReturn(()=>{if(t.utility.requireArgument(n,"name"),(s==null?void 0:s.id)!==void 0)throw new Error("Cannot specify id for root activity, use rootId argument instead");const g=new ke(n,this._onRootActivityStoppedCallback,this._onActivityErrorCallback,i,o,s==null?void 0:s.perfStartOverride,this._nextGen.preferredRootIdLength);if(!this._allowMulti){const P={id:g.getId(),name:n,startPerfTime:g.getStartPerfTime(),isSampled:g.getIsSampled()};if(this._rootActivityHistory.add(P),this._singleRootActivity&&!this._singleRootActivity.isStopped){const z=this._singleRootActivity.getId();this._singleRootActivity.terminate(),g.preRootId=z}this._singleRootActivity=g}return g},x,{op:"startRootActivity"})}_handleRootActivityStop(n){const i=this._rootActivityHistory.findById(n.id);if(i&&(i.stopPerfTime=n.stopPerfTime,i.startPerfTime=n.startPerfTime),n.stopReason===ie)return;const o=this._getActivityData(n);this._logActivity(o,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 Y(this.name,()=>this.name)}getRootActivityHistoryEntry(n){return this._rootActivityHistory.findByTime(n)}}const T=5;class W{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 o=(i=n.composedPath)===null||i===void 0?void 0:i.call(n);(!o||!o.length)&&(o=n.path);const s=this._getClickableElement(o);s&&setTimeout(()=>{n!==this._ignoredEvent&&this._instr.domEvent(n,s,void 0,void 0,{_auto:!0})})}_getClickableElement(n){var i,o;const s=n?Math.min(n.length,T):0;for(let g=0;g<s;g+=1){const P=n[g],z=(i=P.tagName)===null||i===void 0?void 0:i.toLowerCase();if(z==="a"||z==="button")return P;if(z==="input"){const de=P;if(((o=de.type)===null||o===void 0?void 0:o.toLowerCase())==="button")return de}}}}const $="o11y:receiver";var B;(function(ve){ve[ve.Unknown=0]="Unknown",ve[ve.Opening=1]="Opening"})(B||(B={}));class ee{constructor(n,i,o){this._logCallback=n,this._metricsCallback=i,this._commErrorCallback=o,this._senders=new Map,t.utility.requireArgument(this._logCallback,"_logCallback","function"),t.utility.requireArgument(this._metricsCallback,"_metricsCallback","function"),t.utility.requireArgument(this._commErrorCallback,"_commErrorCallback","function")}openComms(n){if(t.utility.requireArgument(n,"sender","object"),!this._senders.has(n)){const i=new MessageChannel,o={state:B.Opening,port:i.port1};this._senders.set(n,o),o.port.onmessage=this._messagePortEventHandler.bind(this),o.port.onmessageerror=this._messagePortErrorHandler.bind(this),n.postMessage({from:$,type:te},"*",[i.port2])}}closeComms(n){const i=this._senders.get(n);i&&(i.port.onmessage=void 0,i.port.onmessageerror=void 0,this._senders.delete(n))}_messagePortEventHandler(n){n.data.type===Q?this._logCallback(n.data.data):n.data.type===le&&this._metricsCallback(n.data.data)}_messagePortErrorHandler(){this._commErrorCallback()}}const te="handshake",Q="log",le="metrics";class ye{constructor(n,i){this._self=n,this._allowedOrigins=i,this._messageEventHandlerFunc=this._messageEventHandler.bind(this),this._handshakeComplete=!1,this._logBuffer=[],this._metricsBuffer=[],t.utility.requireArgument(this._self,"_self","object"),t.utility.requireArgumentIfDefined(i,"allowedOrigins",Array),this._self.addEventListener("message",this._messageEventHandlerFunc)}_messageEventHandler(n){n.data.from===$&&n.data.type===te&&n.ports[0]instanceof MessagePort&&t.utility.isAllowedOrigin(n.origin,this._allowedOrigins)&&(this._handshakeComplete=!0,this._self.removeEventListener("message",this._messageEventHandlerFunc),this._otherPort=n.ports[0],this._emptyBuffers())}sendLog(n){this._handshakeComplete?this._otherPort.postMessage({type:Q,data:n}):this._logBuffer.push(n)}sendMetrics(n){this._handshakeComplete?this._otherPort.postMessage({type:le,data:n}):this._metricsBuffer.push(n)}_emptyBuffers(){this._logBuffer.forEach(n=>this.sendLog(n)),this._metricsBuffer.forEach(n=>this.sendMetrics(n)),this._logBuffer=void 0,this._metricsBuffer=void 0}}class Te{constructor(){this._upCounters=[],this._valueRecorders=[],this._bucketHistograms=[]}add(n){var i,o,s;((i=n.upCounters)===null||i===void 0?void 0:i.length)&&this._upCounters.push(...n.upCounters.map(g=>new t.UpCounterImpl(g.name,g.ownerName,g.ownerAppName,t.metricsUtility.getMetricsTags(g.tags),g.createdTimestamp,g.lastUpdatedTimestamp,g.value))),((o=n.valueRecorders)===null||o===void 0?void 0:o.length)&&this._valueRecorders.push(...n.valueRecorders.map(g=>new xe(g.name,g.ownerName,g.ownerAppName,t.metricsUtility.getMetricsTags(g.tags),g.createdTimestamp,g.lastUpdatedTimestamp,g.values))),((s=n.bucketHistograms)===null||s===void 0?void 0:s.length)&&this._bucketHistograms.push(...n.bucketHistograms.map(g=>new we(g.name,g.ownerName,g.ownerAppName,t.metricsUtility.getMetricsTags(g.tags),g.buckets,g.createdTimestamp,g.lastUpdatedTimestamp,g.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 Fe=1e3;class Ae{constructor(n,i){this._connector=n,this._pollInterval=Fe,t.utility.requireArgument(n,"_connector","object"),t.utility.requireArgumentIfDefined(i,"_pollInterval","number")&&i>0&&(this._pollInterval=i)}collect(n,i,o){const s={schema:n,data:i,logMeta:o};this._connector.sendLog(s)}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 Ve=80,Ge=32,A="_CUT",oe=Ve-A.length;function me(){}class ue{get preferredRootIdLength(){return this._preferredRootIdLength}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 o,s;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(t.co11y.setOwnerAppName(n),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._preferredRootIdLength=(o=i==null?void 0:i.preferredRootIdLength)!==null&&o!==void 0?o:Ge,this._clientSessionId=((s=i==null?void 0:i.clientSessionId)===null||s===void 0?void 0:s.toString())||t.utility.generateUniqueId(),this._appInstr=new C(this,n,i==null?void 0:i.allowMultipleRootActivities),this._instruments.set(n,this._appInstr),this._isSender){const z=new Ae(new ye(window,i==null?void 0:i.allowedReceiverOrigins),i==null?void 0:i.senderMetricsPollingInterval);this.registerLogCollector(z),this.registerMetricsCollector(z)}else this._isReceiver&&(this._metricsStore=new Te,this._receiverConnector=new ee(z=>{z.logMeta.receiverClientSessionId=this._clientSessionId,z.logMeta.receiverRootId=this._appInstr.getSingleRootActivityId(),this._multiplex(z.schema,z.data,z.logMeta)},z=>{this._metricsStore.add(z)},()=>{this._appInstr.incrementCounter("o11y-error-receiver",1,!0)}));this._isBufferingEnabled=!this._isSender&&(i==null?void 0:i.enableBuffering);const P=new G(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:P.networkInstrumentation.bind(P),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?me:this.registerLogCollector.bind(this),registerMetricsCollector:this._isSender?me: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):me,stopReceiving:this._isReceiver?this._receiverConnector.closeComms.bind(this._receiverConnector):me}}getInstrumentation(n){t.utility.requireArgument(n,"name","string"),n.length>Ve&&(n=n.substring(0,oe)+A);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,o,s,g){var P,z,de;t.payloadUtility.checkInputs(i,o),this._sequence+=1;const Pe=t.schemaUtil.isInternal(i),be=Pe&&(o==null?void 0:o.userPayload)?o.userPayload.schema:i,Le=t.schemaUtil.getSchemaId(be);let Ue=this._seqBySchema.get(Le)||0;Ue+=1,this._seqBySchema.set(Le,Ue);const fe={timestamp:s,rootId:g,sequence:this._sequence,schemaSequence:Ue,loggerName:n,pagePayload:void 0,appPayload:void 0,loggerAppName:this.appName,connectionType:t.utility.getConnectionType(),clientSessionId:this._clientSessionId,age:t.utility.getAge(s)},He={schema:i,data:o,logMeta:fe};if(fe.pagePayload=t.payloadUtility.getPayloadFromProvider(this.pagePayloadProvider,He),fe.appPayload=t.payloadUtility.getPayloadFromProvider(this.appPayloadProvider,He),this._isSender||(o=t.utility.clone(o)),typeof this._decimalPoints=="number"&&(t.utility.roundNumbersInObject(o,this._decimalPoints),Pe&&t.utility.roundNumbersInObject((P=o.userPayload)===null||P===void 0?void 0:P.payload,this._decimalPoints),t.utility.roundNumbersInObject((z=fe.pagePayload)===null||z===void 0?void 0:z.payload,this._decimalPoints),t.utility.roundNumbersInObject((de=fe.appPayload)===null||de===void 0?void 0:de.payload,this._decimalPoints)),this._isBufferingEnabled){const Be={schema:i,data:o,logMeta:fe};this._buffer.push(Be)}return this._multiplex(i,o,fe),this._sequence}_multiplex(n,i,o){const s=Array.from(this._logCollectors).filter(g=>{var P;return!this._forceDisabledLogCollectors.has(g)&&!((P=g.getIsCollectDisabled)===null||P===void 0?void 0:P.call(g))});if(s.length>0)for(const g of s){let P=this._logCollectorFailures.get(g)||0;try{g.collect(n,i,o),P>0&&this._logCollectorFailures.set(g,P-1)}catch(z){P+=1,P>=ue._collectorFailureLimit?(this._forceDisabledLogCollectors.add(g),this._appInstr&&(typeof z=="string"||z instanceof Error)&&this._appInstr.error(z)):this._logCollectorFailures.set(g,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 W(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 o of this._buffer)n.collect(o.schema,o.data,o.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(((n=this._metricsStore)===null||n===void 0?void 0:n.getUpCounters())||[]).concat(Array.from(this._instruments.values()).map(i=>i.getUpCounters()).flat()).concat(t.co11y.getUpCounters())}_getAllValueRecorders(){var n;return(((n=this._metricsStore)===null||n===void 0?void 0:n.getValueRecorders())||[]).concat(Array.from(this._instruments.values()).map(i=>i.getValueRecorders()).flat()).concat(t.co11y.getValueRecorders())}_getAllBucketHistograms(){var n;return(((n=this._metricsStore)===null||n===void 0?void 0:n.getBucketHistograms())||[]).concat(Array.from(this._instruments.values()).map(i=>i.getBucketHistograms()).flat()).concat(t.co11y.getBucketHistograms())}registerForLogPrompt(n){this._logCollectionListeners.add(n)}promptLogCollection(n){for(const i of this._logCollectionListeners.keys())try{i(n)}catch(o){if(!t.utility.isProduction)throw o}}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 Se{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){const o=this._lazyNextGen.registerApp(n,i);return i&&(t.utility.markProduction(i.isProduction),this._nextgen.appPayloadProvider=i.appPayloadProvider,this._nextgen.pagePayloadProvider=i.pagePayloadProvider),o}getInstrumentation(n){return this._lazyNextGen.getInstrumentation(n)}}const Ke=t.utility.time.bind(t.utility),lt="sfcore.customCmp.CustomComponentLog",Ze={Error:"Crimson",Activity:"CadetBlue",InstrumentedEvent:"DarkOliveGreen",O11ySample:"BlueViolet"},yt={Error:"white",Activity:"white",InstrumentedEvent:"white",O11ySample:"white"},nt="black",Je="Gainsboro";class Rt{constructor(n){this._simpleFilters=new Set,this._regexFilters=[],n&&this._log("ConsoleCollector",n)}collect(n,i,o){const s=t.schemaUtil.getSchemaId(n);if(!this._shouldLog(s))return;if(s===lt){this._logCustom(i);return}let g,P,z;t.schemaUtil.isInternal(n)?(g=n.name,P=yt[n.name]||nt,z=Ze[n.name]||Je):g=s,this._log(g,i,o,P,z)}_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(o=>o.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,o,s=nt,g=Je){const P=`color:${s};background-color:${g}`;console.log(`%cO11Y%c ${n}`,"color:white;background-color:#FF6600;font-weight:bold",P,i||"",o||"")}_logCustom(n){console.log("%clightning/logger","color:white;background-color:#00a1e0;font-weight:bold",n||"")}}const Ye="256.1.0",ht=new F({logThreshold:300,reportListener:ve=>{Pt==null||Pt.log(e.idleDetectorReportSchema,ve)},errorListener:(ve,n)=>{Pt==null||Pt.error(ve,n)}}),at=new Se(ht),It=at.registerInstrumentedApp.bind(at),At=at.getInstrumentation.bind(at),Pt=At("IdleDetector");r.ConsoleCollector=Rt,r._version=Ye,r.getInstrumentation=At,r.idleDetector=ht,r.registerInstrumentedApp=It,r.time=Ke,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("o11y/client",["exports","o11y/client/v/256_1_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/o11y/v/1_66_1007-256_0",["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_66_1007-256_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/expressions/v/1_66_1007-256_0",["exports"],function(r){"use strict";let e;const t="1970-01-01T",E="T00:00:00",R="provider",F="providers";function O(N){return N!==null&&typeof N=="object"}function _(N){try{const j=N?.indexOf(":")>-1,H=N?.indexOf("-")>-1;return N===""||!j&&!H?null:(typeof N=="string"&&(H||(N=t+N),j||(N=N+E),N=N.trim().replace(" ","T"),N.endsWith("Z")||(N+="Z")),new Date(N))}catch(j){return null}}function c(N){try{const j=N(),H=Reflect.get(this,F);for(const ce of H)if(!ce?.hasData?.())throw new Error;return j??null}catch(j){return}}function h(N){return O(this)&&(Reflect.set(this,R,N),Reflect.get(this,F).push(N)),N?.getData?.()}function l(N={},j){if(!!N&&Object.prototype.hasOwnProperty.call(N,j))return N[j]}function u(N,j){Array.isArray(N)||(N=[N]);const H=N.filter(j);if(!!H.length)return H.length===1?H[0]:H}function p(N,j){if(O(this)&&Reflect.has(this,R)){const H=Reflect.get(this,R);if(Reflect.deleteProperty(this,R),!H?.hasData?.(j))throw new Error;const ce=Reflect.get(this,F);ce.indexOf(H)>=0&&ce.splice(ce.indexOf(H),1)}return typeof j=="string"&&Array.isArray(N)?(N=N.map(H=>H[j]).filter(H=>H!==void 0),N.length===0?void 0:N.length===1?N[0]:N):N?.[j]}function S(){}const v={toDate(N){if(N!=null){const j=_(N)?.setUTCHours(0,0,0,0);if(j!==void 0&&!isNaN(j))return new Date(j)}return null},toTime(N){if(N!=null){const j=_(N)?.setUTCFullYear(1970,0,1);if(j!==void 0&&!isNaN(j))return new Date(j)}return null},toDatetime(N){return N!=null?_(N):null},isBlank(N){return!N&&typeof N!="number"},contains(N,j){return N!=null?N.includes(j):!1},begins(N,j){return j==null?!0:N!=null?N.toString().startsWith(j.toString()):!1}},I=(...N)=>(e={[F]:[],[R]:null},c.apply(e,N)),w=(...N)=>h.apply(e,N),D=(...N)=>p.apply(e,N),L=(...N)=>l.apply(e,N),M=(...N)=>u.apply(e,N),X=(...N)=>S.apply(e,N);r.EXPR_CLOSURE=I,r.EXPR_FILTER=M,r.EXPR_FUNCTION=X,r.EXPR_GLOBAL=L,r.EXPR_MEMBER=D,r.EXPR_PROVIDER=w,r.EXPR_RUNTIME=v,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/expressions",["exports","webruntime/expressions/v/1_66_1007-256_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/routerContainer/v/1_66_1007-256_0",["exports","lwc/v/8_16_5","webruntime/errors/v/1_66_1007-256_0","lwr/navigation/v/0_17_9","webruntime/routingService/v/1_66_1007-256_0","webruntime/defaultView/v/1_66_1007-256_0"],function(r,e,t,E,R,F){"use strict";function O(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var _=O(F),c=void 0;class h extends e.LightningElement{constructor(...p){super(...p);this.view=void 0,this._routeParams=void 0,this.generatedTemplateHtml=void 0,this.previousRouteParams={},this.requiredParameters=["contentTypeName","name","objectApiName","recordId","relationshipApiName","term","urlAlias"],this.attributes={},this.route={}}get routeParams(){return this._routeParams||{}}set routeParams(p){this._routeParams=p}render(){return this.generatedTemplateHtml}connectedCallback(){const p=this.view||_.default;this.generatedTemplateHtml=p.html,this.attributes=p.attributes(this,this.routeParams),this.subscription=R.subscribe(this.routeChange.bind(this))}viewChange(p){R.handleExtraRouteParams(this.route),this.generatedTemplateHtml=p.html;const{state:S,attributes:v}=this.route;this._routeParams={...S,...v},this.attributes=p.attributes(this,this.routeParams)}routeChange(p){this.route=p.route||null}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}errorCallback(p,S){t.reportError({subject:"router level error",error:p,wcstack:S})}}h.renderMode="light",e.registerDecorators(h,{publicProps:{view:{config:0},routeParams:{config:3}},wire:{viewChange:{adapter:E.CurrentView,method:1,config:function(u){return{}}}},fields:["_routeParams","generatedTemplateHtml","previousRouteParams","requiredParameters","attributes","route"]});const l=e.registerComponent(h,{tmpl:c,sel:"webruntime-router-container",apiVersion:63});r.default=l,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/routerContainer",["exports","webruntime/routerContainer/v/1_66_1007-256_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/componentContainer/v/1_66_1007-256_0",["exports","lwc/v/8_16_5"],function(r,e){"use strict";function t(l,u,p){var S=l?"."+l+"-host":"";return(u?":host {":S+" {")+"display: flow-root;}"}t.$scoped$=!0;var E=[t];const R={key:0},F=[];function O(l,u,p,S){const{s:v}=l;return[v("",R,F,p)]}var _=e.registerTemplate(O);O.slots=[""],O.renderMode="light",O.stylesheets=[],O.stylesheetToken="lwc-4k1qbp7cls1",O.legacyStylesheetToken="webruntime-componentContainer_componentContainer",E&&O.stylesheets.push.apply(O.stylesheets,E),e.freezeTemplate(O);class c extends e.LightningElement{}c.renderMode="light";const h=e.registerComponent(c,{tmpl:_,sel:"webruntime-component-container",apiVersion:63});r.default=h,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/componentContainer",["exports","webruntime/componentContainer/v/1_66_1007-256_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/mobileUtils/v/1_66_1007-256_0",["exports","@app/isMobileAppMode/v/1","@communities-webruntime/common/v/1_66_1007-256_0"],function(r,e,t){"use strict";function E(O){return O&&typeof O=="object"&&"default"in O?O:{default:O}}var R=E(e);function F(){const O=globalThis.navigator?.userAgent;return O&&(R.default&&O.includes(t.MOBILE_APP_USER_AGENTS.PUBLISHER)||O.includes(t.MOBILE_APP_USER_AGENTS.PLAYGROUND))}r.isMobileApp=F,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/mobileUtils",["exports","webruntime/mobileUtils/v/1_66_1007-256_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/sessionValidator/v/1_66_1007-256_0",["exports","lwr/loaderLegacy/v/0_17_9","lwc/v/8_16_5","@app/isDesignMode/v/1","@app/isPreviewMode/v/1","@app/basePath/v/1","webruntime/mobileUtils/v/1_66_1007-256_0","webruntime/routingService/v/1_66_1007-256_0","webruntime/logger/v/1_66_1007-256_0"],function(r,e,t,E,R,F,O,_,c){"use strict";function h(ie){return ie&&typeof ie=="object"&&"default"in ie?ie:{default:ie}}var l=h(E),u=h(R),p=h(F);function S(ie,a,d){var f=ie?"["+ie+"-host]":"";return(a?":host {":f+" {")+"display: none;}"}var v=[S];const I=t.parseFragment`<div class="slds-notify slds-notify_alert${0}" role="alert" style="position: absolute; top: 0;"${2}><span class="slds-assistive-text${0}"${2}>info</span><span class="slds-icon_container slds-icon-utility-user slds-m-right_x-small${0}" title="Description of icon when needed"${2}><svg class="slds-icon slds-icon_x-small${0}" aria-hidden="true"${2}><use${"a5:xlink:href"}${3}/></svg></span><h2${3}>${"t7"}</h2><div class="slds-notify__close${0}"${2}><button class="slds-button slds-button_icon slds-button_icon-small slds-button_icon-inverse${0}" title="Close"${2}><svg class="slds-button__icon${0}" aria-hidden="true"${2}><use${"a11:xlink:href"}${3}/></svg><span class="slds-assistive-text${0}"${2}>${"t13"}</span></button></div></div>`;function w(ie,a,d,f){const{d:k,b:V,sp:ne,st:Ee,fr:De}=ie,{_m0:we}=f;return[a.showSessionWarning?De(0,[Ee(I,2,[ne(5,{attrs:{"xlink:href":t.sanitizeAttribute("use","http://www.w3.org/2000/svg","xlink:href",a.userIconUrl)}},null),ne(7,null,k(a.invalidSessionToastMessage)),ne(9,{on:we||(f._m0={click:V(a.dismissAlert)})},null),ne(11,{attrs:{"xlink:href":t.sanitizeAttribute("use","http://www.w3.org/2000/svg","xlink:href",a.closeIconUrl)}},null),ne(13,null,k(a.closeMessage))])],0):null]}var D=t.registerTemplate(w);w.renderMode="light",w.stylesheets=[],w.stylesheetToken="lwc-9mrm67ji1u",w.legacyStylesheetToken="webruntime-sessionValidator_sessionValidator",v&&w.stylesheets.push.apply(w.stylesheets,v),t.freezeTemplate(w);const L="/sfsites/c/_nc_external/system/security/session/SessionTimeServlet";function M(){const ie=new XMLHttpRequest,a=new Date().getTime(),d=`${p.default}${L}?buster=${a}`;return new Promise((f,k)=>{ie.open("GET",d,!0),ie.onload=()=>{if(ie.readyState===ie.DONE){const V=N(ie.responseText);V.sr=Number(V.sr),f(V)}else c.logError("Received null or invalid session time"),k("Received null or invalid session time")},ie.send()})}function X(){const ie=new XMLHttpRequest,a=new Date().getTime(),d=`${L}?buster=${a}&updateTimedOutSession=true`;return new Promise((f,k)=>{ie.open("GET",d,!0),ie.onload=()=>{if(ie.readyState===ie.DONE){const V=N(ie.responseText);V.sr=Number(V.sr),f(V)}else c.logError("Error extending user session time"),k("Error extending user session time")},ie.send()})}function N(ie){if(!ie)return{sp:-1,sr:-1};let a=ie.replace(/\r/g,`
`);return a.indexOf("<pre")>=0&&(a=a.replace(/^<pre[^>]*>/,"").replace(/<\/pre>$/,"")),a.indexOf("<textarea")>=0&&(a=a.replace(/<textarea[^>]*>/,"").replace(/<\/textarea>$/,"")),j(a)}function j(ie){const a=`while(1);
`;if(typeof ie!="string")return null;ie.substring(0,a.length)===a&&(ie=H(ie));try{return JSON.parse(ie)}catch(d){return c.logError(`Exception while parsing the String: ${ie}`,d),null}}function H(ie){const a=`while(1);
`,d=[a,a.replace(`
`,"")];for(let f=0;f<d.length;f++){const k=d[f];if(ie.indexOf(k)===0)return ie.slice(k.length)}return ie}const ce="/assets/icons/utility-sprite/svg/symbols.svg#close",re="/assets/icons/utility-sprite/svg/symbols.svg#user",G="showSessionMessage",Z=/\w+\\&showSessionMessage$/g;class Ie extends t.LightningElement{constructor(...a){super(...a);this.sessionWarningMessage=void 0,this.sessionWarningTime=void 0,this.invalidSessionToastMessage=void 0,this.closeMessage=void 0,this.route=void 0,this.routeChangeSubscription=void 0,this.timeLeftInSession=void 0,this.timeoutID=0,this.showSessionWarning=!1,this.closeIconUrl=void 0,this.userIconUrl=void 0}async connectedCallback(){this.shouldCheckSession()&&(this.routeChangeSubscription=_.subscribe(this.onRouteChange.bind(this)))}async renderedCallback(){if(this.shouldCheckSession()){const{default:a}=await e.load("@app/user/v/1");a.isGuest||this.checkSession();const d=new URL(decodeURIComponent(window.location?.href));d?.searchParams?.has(G)&&(this.showExpiredSessionMessage(),this.removeSessionUrlFlag(d))}}removeSessionUrlFlag(a){a.searchParams.delete(G),window.history.replaceState(null,window.location.href,a)}shouldCheckSession(){return!(O.isMobileApp()||l.default||u.default||(this.route=_.getCurrentRoute(),this.route.routeDefinition?.metadata?.isPublic))}onRouteChange(a){this.route=a,this.timeoutID===0&&!this.route.routeDefinition?.metadata?.isPublic&&this.checkSession()}async checkSession(){const a=await M();this.timeLeftInSession=a.sr,this.processTimeoutResponse()}scheduleCheckSession(a){clearTimeout(this.timeoutID);const d=a?this.timeLeftInSession*1e3:(this.timeLeftInSession-this.warningTimeBeforeSessionTimeout)*1e3;this.timeoutID=setTimeout(()=>this.checkSession(),d)}async processTimeoutResponse(){this.timeLeftInSession<0?(await M()).sr<0&&this.handleLogout():this.warningTimeBeforeSessionTimeout>0&&this.timeLeftInSession<=this.warningTimeBeforeSessionTimeout?(this.handleWarning(),this.scheduleCheckSession(!0)):this.scheduleCheckSession(!1)}handleLogout(){clearTimeout(this.timeoutID),this.timeoutID=0;const a=_.getCurrentRoute().url;Z.test(a)||_.navigate({type:"comm__loginPage",attributes:{actionName:"logout"},state:{startUrl:`${a}&${G}`}})}async handleWarning(){this.timeLeftInSession>0&&confirm(this.sessionWarningMessage)&&(await X()).sp<0&&this.handleLogout()}showExpiredSessionMessage(){const a=window.location.origin+p.default;this.closeIconUrl=a.concat(ce),this.userIconUrl=a.concat(re),this.showSessionWarning=!0}get warningTimeBeforeSessionTimeout(){const a=Number(this.sessionWarningTime);return isNaN(a)?0:a}dismissAlert(){this.showSessionWarning=!1}disconnectedCallback(){this.shouldCheckSession()&&(this.routeChangeSubscription?.unsubscribe(),clearTimeout(this.timeoutID))}}Ie.renderMode="light",t.registerDecorators(Ie,{publicProps:{sessionWarningMessage:{config:0},sessionWarningTime:{config:0},invalidSessionToastMessage:{config:0},closeMessage:{config:0}},fields:["route","routeChangeSubscription","timeLeftInSession","timeoutID","showSessionWarning","closeIconUrl","userIconUrl"]});const Ce=t.registerComponent(Ie,{tmpl:D,sel:"webruntime-session-validator",apiVersion:63});r.default=Ce,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/sessionValidator",["exports","webruntime/sessionValidator/v/1_66_1007-256_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/slotContainer/v/1_66_1007-256_0",["exports","lwc/v/8_16_5"],function(r,e){"use strict";const t=[];function E(_,c,h,l){const{s:u,fr:p}=_;return[c.isVisible?p(0,[u("",{key:1,slotData:c.variations},t,h)],0):null]}var R=e.registerTemplate(E);E.slots=[""],E.renderMode="light",E.stylesheets=[],E.stylesheetToken="lwc-769n4j124ma",E.legacyStylesheetToken="webruntime-slotContainer_slotContainer",e.freezeTemplate(E);class F extends e.LightningElement{constructor(...c){super(...c);this.visibilityExpression=void 0,this.hidden=void 0,this.variationExpressions=void 0}get isVisible(){return this.hidden?!this.visibilityExpression:this.visibilityExpression}get variations(){const c={},h=!!this.variationExpressions?.find(p=>p===!0),l=this.variationExpressions?.findIndex(p=>p===!0),u=this.variationExpressions?.findIndex(p=>typeof p=="undefined")!==-1;return this.variationExpressions?.forEach(function(p,S){const v=`variation${S+1}`;u||h&&l!==S?c[v]=!1:p===!0?c[v]=!0:(typeof p=="undefined",c[v]=!1)}),c.variation0=!h&&!u,c}}F.renderMode="light",e.registerDecorators(F,{publicProps:{visibilityExpression:{config:0},hidden:{config:0},variationExpressions:{config:0}}});const O=e.registerComponent(F,{tmpl:R,sel:"webruntime-slot-container",apiVersion:63});r.default=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/slotContainer",["exports","webruntime/slotContainer/v/1_66_1007-256_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/visibilityContainer/v/1_66_1007-256_0",["exports","lwr/loaderLegacy/v/0_17_9","lwc/v/8_16_5","@app/isDesignMode/v/1"],function(r,e,t,E){"use strict";function R(v){return v&&typeof v=="object"&&"default"in v?v:{default:v}}var F=R(E);function O(v,I,w){var D=v?"."+v+"-host":"";return"@media only screen and (max-width: 47.9375em) {"+(I?":host.webruntime-visibility-container.dxp-sm-hide {":D+".webruntime-visibility-container.dxp-sm-hide {")+"display: none;}}@media only screen and (min-width: 48em) and (max-width: 64em) {"+(I?":host.webruntime-visibility-container.dxp-md-hide {":D+".webruntime-visibility-container.dxp-md-hide {")+"display: none;}}@media only screen and (min-width: 64.0625em) {"+(I?":host.webruntime-visibility-container.dxp-lg-hide {":D+".webruntime-visibility-container.dxp-lg-hide {")+"display: none;}}"}O.$scoped$=!0;var _=[O];const c=[],h={key:1};function l(v,I,w,D){const{fr:L,s:M}=v;return[I.hidden?L(0,c,0):L(0,[M("",h,c,w)],0)]}var u=t.registerTemplate(l);l.slots=[""],l.renderMode="light",l.stylesheets=[],l.stylesheetToken="lwc-7ethp7o0ig8",l.legacyStylesheetToken="webruntime-visibilityContainer_visibilityContainer",_&&l.stylesheets.push.apply(l.stylesheets,_),t.freezeTemplate(l);class p extends t.LightningElement{constructor(...I){super(...I);this.hiddenInDesktop=!1,this.hiddenInTablet=!1,this.hiddenInMobile=!1,this.hidden=!0}connectedCallback(){const I={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 w="";Object.values(I).forEach(D=>{D.isHidden?this.classList.add(D.class):w+=w?`, ${D.mediaQuery}`:D.mediaQuery}),F.default?this.classList.add("interactions-element","webruntime-design-visibility-container"):this.classList.add("webruntime-visibility-container"),e.load("webruntime/formFactor/v/1_66_1007-256_0").then(({getFormFactor:D})=>{if(typeof window!="undefined"&&!F.default&&I[D()].isHidden){if(w){const L=window.matchMedia(w),M=X=>{X.matches&&(this.hidden=!1,L.removeEventListener("change",M))};L.addEventListener("change",M)}}else this.hidden=!1})}}p.renderMode="light",p.validationOptOut=["class"],t.registerDecorators(p,{publicProps:{hiddenInDesktop:{config:0},hiddenInTablet:{config:0},hiddenInMobile:{config:0}},track:{hidden:1}});const S=t.registerComponent(p,{tmpl:u,sel:"webruntime-visibility-container",apiVersion:63});r.default=S,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/visibilityContainer",["exports","webruntime/visibilityContainer/v/1_66_1007-256_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/viewchangeNotifier/v/1_66_1007-256_0",["exports","lwc/v/8_16_5","lwr/navigation/v/0_17_9","@app/deployTarget/v/1","webruntime/routingService/v/1_66_1007-256_0"],function(r,e,t,E,R){"use strict";function F(I){return I&&typeof I=="object"&&"default"in I?I:{default:I}}var O=F(E);const _=e.parseFragment`<div hidden${"a0:data-route"}${3}></div>`;function c(I,w,D,L){const{sp:M,st:X}=I;return[X(_,1,[M(0,{attrs:{"data-route":w.routeParamString}},null)])]}var h=e.registerTemplate(c);c.renderMode="light",c.stylesheets=[],c.stylesheetToken="lwc-1j18phjg883",c.legacyStylesheetToken="webruntime-viewchangeNotifier_viewchangeNotifier",e.freezeTemplate(c);const l=["contentTypeName","name","objectApiName","recordId","relationshipApiName","term","urlAlias"];function u(I){return Object.keys(I).reduce((w,D)=>(l.includes(D)&&(w[D]=I[D]),w),{})}function p(I,w){return I===w?!0:!I||!w?!1:Object.keys(I).length===Object.keys(w).length&&Object.entries(w).every(([D,L])=>I[D]===L)}class S extends e.LightningElement{constructor(...w){super(...w);this.routeChangeSubscription=void 0,this.route=void 0,this.routeParams=void 0,this.previousRouteParams=void 0}connectedCallback(){O.default==="MRT"&&requestAnimationFrame(()=>{this.route=R.getCurrentRoute().route,this.updateRouteParams()}),this.routeChangeSubscription=R.subscribe(this.routeChange.bind(this))}routeChange(w){this.route=w.route}viewChange(){this.updateRouteParams()}updateRouteParams(){const{state:w,attributes:D}=this.route||{};this.routeParams=u({...w,...D})}renderedCallback(){!this.routeParams||(!R.isCurrentRouteCanonicallyRedirected()&&!p(this.previousRouteParams,this.routeParams)&&this.dispatchEvent(new CustomEvent("viewchange",{bubbles:!0,composed:!0,detail:{route:this.route}})),this.previousRouteParams=this.routeParams)}disconnectedCallback(){this.routeChangeSubscription?.unsubscribe()}get routeParamString(){return window.btoa(encodeURIComponent(JSON.stringify(this.routeParams)))}}S.renderMode="light",e.registerDecorators(S,{wire:{viewChange:{adapter:t.CurrentView,method:1,config:function(I){return{}}}},fields:["routeChangeSubscription","route","routeParams","previousRouteParams"]});const v=e.registerComponent(S,{tmpl:h,sel:"webruntime-viewchange-notifier",apiVersion:63});r.default=v,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/viewchangeNotifier",["exports","webruntime/viewchangeNotifier/v/1_66_1007-256_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/analyticsEvents/v/1_66_1007-256_0",["exports"],function(r){"use strict";class e{constructor(){this.hasTriggered=!1,this.hasAddedListener=!1,this.trigger=()=>this._trigger()}_trigger(){if(!this.hasTriggered){const E=document.documentElement.scrollTop||document.body.scrollTop,R=document.documentElement.scrollHeight||document.body.scrollHeight;E/(R-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_1007-256_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/pageDataLayerObject/v/1_66_1007-256_0",["exports","lwc/v/8_16_5","experience/dataLayerObject/v/256_8_0","webruntime/analyticsEvents/v/1_66_1007-256_0"],function(r,e,t,E){"use strict";function R(l){return l&&typeof l=="object"&&"default"in l?l:{default:l}}var F=R(t);function O(l,u,p,S){const{c:v}=l;return[v("experience-data-layer-object",F.default,{props:{scriptDataAttributes:u.pageDataForDataLayer.scriptDataAttributes,customObject:u.pageDataForDataLayer.customObject},key:0})]}var _=e.registerTemplate(O);O.renderMode="light",O.stylesheets=[],O.stylesheetToken="lwc-1k5dp68c4pi",O.legacyStylesheetToken="webruntime-pageDataLayerObject_pageDataLayerObject",e.freezeTemplate(O);class c extends e.LightningElement{constructor(...u){super(...u);this.handleViewChanged=p=>this._handleViewChanged(p),this.pageDataForDataLayer={scriptDataAttributes:{providerType:"page"}},this.scrollToBottomEvent=new E.ScrollToBottomEvent}connectedCallback(){document.addEventListener("viewchange",this.handleViewChanged)}disconnectedCallback(){document.removeEventListener("viewchange",this.handleViewChanged),this.scrollToBottomEvent.removeListener()}renderedCallback(){this.pageDataForDataLayer?.customObject&&this.dispatchEvent(new CustomEvent("experience_interaction",{bubbles:!0,composed:!0,detail:{name:"page-view"}}))}_handleViewChanged(u){const p=u.detail?.route?.attributes?.recordId,S=u.detail?.route?.attributes?.contentTypeName,v=u.detail?.route?.attributes?.webUrlId,I=u.detail?.route?.attributes?.contentKey,w={type:u.detail?.route?.pageReference?.type,url:window.location.href,urlReferrer:this.pageDataForDataLayer?.customObject?.url||document.referrer,...p?{recordId:p}:{},...S?{contentTypeName:S}:{},...v?{urlAlias:v}:{},...I?{contentKey:I}:{}};this.pageDataForDataLayer={...this.pageDataForDataLayer,customObject:w},this.scrollToBottomEvent.addListener()}}c.renderMode="light",e.registerDecorators(c,{fields:["handleViewChanged","pageDataForDataLayer","scrollToBottomEvent"]});const h=e.registerComponent(c,{tmpl:_,sel:"webruntime-page-data-layer-object",apiVersion:63});r.default=h,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/pageDataLayerObject",["exports","webruntime/pageDataLayerObject/v/1_66_1007-256_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("lwr/serverRouter/v/0_17_9",["exports","lwr/contextProvider/v/0_17_9","lwr/metrics/v/0_17_9","lwr/navigation/v/0_17_9","lwr/navigationMixinHacks/v/0_17_9","lwr/profiler/v/0_17_9","lwr/router/v/0_17_9","lwr/routerErrors/v/0_17_9","lwr/routerUtils/v/0_17_9"],function(r,e,t,E,R,F,O,_,c){"use strict";class h{constructor(p,S,v){this.contextId=Object.freeze(()=>{}),this.router=S,this.target=v,this.handleNavHook=p.handleNavigation,this.preNavHook=p.preNavigate,this.errorNavHook=p.errorNavigate,this.initWires(p.url)}async navigate(p,S,v){if(c.hasDocument){if(this.handleNavHook&&!this.handleNavHook(p))return;const I=await this.getValidatedUrl(p,v);I&&(document.location.href=I)}}generateUrl(p,S){return this.router.generateUrl(p,S)}initWires(p){if(!p&&c.hasDocument&&(p=document.location.href),!p){this.processError(_.generateMessageObject(_.messages.NO_INIT_URL));return}p=this.getRelativeUrl(p),this.currentRoute=this.router.matchRoute(p,{})||void 0,E.registerNavigationHelm(this.contextId,{navigate:(S,v,I)=>this.navigate(S,v,I),generateUrl:(S,v)=>this.generateUrl(S,v),subscribe:()=>{throw new Error("The server router does not support the subscribe API")}}),e.provideContext(this.contextId,this.target,e.navigationContextContextualizer,E.NavigationContext),e.provideContext(this.currentRoute?.route.pageReference,this.target,e.currentPageReferenceContextualizer,E.CurrentPageReference),c.hasDocument&&this.target.addEventListener(R.CONTEXT_ID_BACKDOOR,S=>{const v=S;v.detail.callback&&v.detail.callback(this.contextId)})}getRelativeUrl(p){if(p.startsWith("http")){const S=new URL(p);return`${S.pathname}${S.search}`}return p}async getValidatedUrl(p,S){const v=this.router.matchRoute(p,{});if(!v){this.processError(_.generateMessageObject(_.messages.NO_ROUTE_MATCH,[JSON.stringify(p)]));return}if(!(this.preNavHook&&await this.preNavHook({current:this.currentRoute,next:v}))){this.processError(_.generateMessageObject(_.messages.PRENAV_FAILED,[JSON.stringify(p)]));return}return this.router.generateUrl(p,S)}processError(p){F.logOperationStart({id:t.ROUTER_ERROR}),this.errorNavHook&&this.errorNavHook(p)}}function l(u,p){new h(u,O.createRouter(u),p)}r.ServerRouter=h,r.createServerRouter=l,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/serverRouter",["exports","lwr/serverRouter/v/0_17_9"],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_17_9",["exports","lwr/routerUtils/v/0_17_9","lwr/routerErrors/v/0_17_9","lwr/observable/v/0_17_9"],function(r,e,t,E){"use strict";class R{constructor(_){this.deprecatedConfig={},this.routeHandlerId=0,this.compiledRoutes=[],this.routeObservable=E.createObservable(),this.config={basePath:_.basePath||"",i18n:_.i18n||e.DEFAULT_I18N_ROUTER_CONFIG,caseSensitive:Boolean(_.caseSensitive),routes:_.routes||[],generateUrl:(l,u)=>e.getUrlFromPageReference(l,this.compiledRoutes,this.config.basePath,this.config.i18n,u),parseUrl:l=>e.getPageReferenceFromUrl(l,this.compiledRoutes,this.config.basePath,this.config.i18n)};const{DEPRECATED_getRouteFromUrl:c,DEPRECATED_getUrlFromRoute:h}=_;c&&(this.deprecatedConfig.DEPRECATED_getRouteFromUrl=c),h&&(this.deprecatedConfig.DEPRECATED_getUrlFromRoute=h),this.compiledRoutes=e.parseRoutes(this.config)}generateUrl(_,c){const{DEPRECATED_getUrlFromRoute:h}=this.deprecatedConfig;return h?h(_,this.config.generateUrl,c):this.config.generateUrl(_,c)}parseUrl(_){const{DEPRECATED_getRouteFromUrl:c}=this.deprecatedConfig;return c?c(_,this.config.parseUrl):this.config.parseUrl(_)}matchRoute(_,c){const h=typeof _=="string"?_:this.generateUrl(_,c);if(h===null)return null;const l=e.matchRouteByUrl(h,this.compiledRoutes,this.config.basePath,this.config.i18n,c),u=l&&e.getUrlFromPageReferenceAndRouteDef(l.route.pageReference,l.routeDefinition,this.config.basePath,this.config.i18n,c);return!l||!u?null:{pathMatch:u,route:l.route,routeDefinition:l.routeDefinition.original}}async resolveView(_,c){return new Promise((h,l)=>{const u=this.matchRoute(_,c);return u?u.routeDefinition.handler?.().then(p=>{const S=p.default;if(!S)return l(t.generateMessage(t.messages.INVALID_ROUTE_HANDLER,[u.routeDefinition.id]));const v=new S(h);v&&v.update(u.route)}):l(t.generateMessage(t.messages.NO_ROUTE_MATCH,[JSON.stringify(_)]))})}navigate(_,c){const h=this.matchRoute(_,c);if(!h)throw new Error(t.generateMessage(t.messages.MISSING_ROUTE,[JSON.stringify(_)]));this.pendingRoute={...h},this._mapView(this.pendingRoute)}subscribe(_,c){return this.routeObservable.subscribe({next:_,error:()=>{},complete:()=>{}},Boolean(c))}async _mapView(_){const c=Math.random();this.routeHandlerId=c;const l=(await _.routeDefinition.handler?.())?.default;if(!l)throw new Error(t.generateMessage(t.messages.INVALID_ROUTE_HANDLER,[_.routeDefinition.id]));return this.routeHandler=new l(u=>{this._updateView(c,u)}),this.routeHandler&&this.routeHandler.update(_.route),!0}_updateView(_,c){if(!c||_!==this.routeHandlerId)return;if(!this.pendingRoute)throw new Error("Trying to commit route state without a route");const h=e.freeze(c.viewset);this.routeObservable.next({...this.pendingRoute,...c,viewset:h})}}function F(O={}){return new R(O)}r.createRouter=F,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/router",["exports","lwr/router/v/0_17_9"],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/connectApiEndpoint/v/1_66_1007-256_0",["exports","@salesforce/community/Id/v/1"],function(r,e){"use strict";function t(_){return _&&typeof _=="object"&&"default"in _?_:{default:_}}var E=t(e);const R="64.0",F={SEO_PROPERTIES:"seo-properties",SEO_OBJECT_RELATED_URL:"seo-object-related-url"};function O(_,c){const h=c.appVersion||R;switch(_){case F.SEO_PROPERTIES:return`/services/data/v${h}/connect/communities/${E.default}/seo/properties/${c.recordId}`;case F.SEO_OBJECT_RELATED_URL:{const l=encodeURIComponent(c.urlNameOrPath);return`/services/data/v${h}/connect/communities/${E.default}/seo/object-url/${c.scope}/${l}`}default:return null}}r.CONNECT_API_TYPES=F,r.constructApiEndpoint=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/connectApiEndpoint",["exports","webruntime/connectApiEndpoint/v/1_66_1007-256_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/a11yService/v/1_66_1007-256_0",["exports"],function(r){"use strict";const e="sf-aria-live",t="tabindex",{document:E}=globalThis;let R;function F(c){if(E&&c?.routeDefinition){let h=E.body.querySelector(`#${e}`);h||(h=E.createElement("span"),h.id=e,h.setAttribute("aria-live","polite"),h.setAttribute("aria-atomic","true"),h.setAttribute("aria-hidden","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;"),E.body.appendChild(h)),h.innerText=c.routeDefinition.label}}function O(c){if(!E)return;const h=c?.routeDefinition?.label,l=c?.routeDefinition?.id,u=R!==l;h!=null&&u&&(E.title=h),R=l}function _(c){if(!E)return;const h=E.createTreeWalker(E.body,NodeFilter.SHOW_ELEMENT,{acceptNode:u=>u.matches("webruntime-router-container")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),l=c?E.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=F,r.updateFocus=_,r.updateTitle=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/a11yService",["exports","webruntime/a11yService/v/1_66_1007-256_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/routingService/v/1_66_1007-256_0",["exports","lwr/loaderLegacy/v/0_17_9","@communities-webruntime/common/v/1_66_1007-256_0","@salesforce/i18n/lang/v/1","@app/deployTarget/v/1","@app/basePath/v/1","@app/uiBasePath/v/1","@app/routes/v/1","@app/viewToThemeLayoutMap/v/1","@app/isDesignMode/v/1","@app/isPreviewMode/v/1","webruntime/views/v/1_66_1007-256_0","webruntime/a11yService/v/1_66_1007-256_0","webruntime/overrides/v/1_66_1007-256_0","webruntime/logger/v/1_66_1007-256_0","webruntime/apiCall/v/1_66_1007-256_0","webruntime/connectApiEndpoint/v/1_66_1007-256_0","webruntime/utils/v/1_66_1007-256_0","webruntime/o11y/v/1_66_1007-256_0","lwr/router/v/0_17_9","lwr/serverRouter/v/0_17_9","lwr/routerErrors/v/0_17_9","lwr/navigation/v/0_17_9","webruntime/transport/v/1_66_1007-256_0","@app/extraRouteParams/v/1"],function(r,e,t,E,R,F,O,_,c,h,l,u,p,S,v,I,w,D,L,M,X,N,j,H,ce){"use strict";function re(m){return m&&typeof m=="object"&&"default"in m?m:{default:m}}var G=re(E),Z=re(R),Ie=re(F),Ce=re(O),ie=re(_),a=re(c),d=re(h),f=re(l),k=re(u),V=re(ce);function ne(m){const U=[],q=[];return m.forEach(ae=>{const{type:Oe,attributes:Me={},state:qe={}}=ae.page||{};if(Oe==="standard__objectPage")if(Ee(Me.actionName))U.push(ae);else{let it;Me.actionName==="list"?(it={...ae,page:{...ae.page,attributes:{...Me},state:{...qe}}},it.page.attributes.actionName="home"):Me.actionName==="home"?(it={...ae,page:{...ae.page,attributes:{...Me},state:{...qe}}},it.page.attributes.actionName="list"):Me.actionName||(ae.page.attributes.actionName="home",it={...ae,page:{...ae.page,attributes:{...Me},state:{...qe}}},it.page.attributes.actionName="list"),U.push(ae,it)}else q.push(ae)}),[...U,...q]}function Ee(m){return m&&m.length>1?m.startsWith(":"):!1}const De={};let we=null;function xe(m){const{pathname:U,search:q,hash:ae}=new URL(m,window.location.origin);return{pathname:U,search:q,hash:ae}}async function $e(m){const{pathname:U,search:q,hash:ae}=xe(m);if(De[U])return De[U]+q+ae;if(Object.values(De).includes(U))return m;try{const{redirected:Oe,url:Me}=await H.fetch(m,{basePath:"",method:"HEAD",isNonApiRequest:!0});if(Oe){const qe=xe(Me).pathname;return De[U]=qe,qe+q+ae}}catch(Oe){v.logError(`Unable to fetch canonical URL for ${m}`,`error:
`,Oe)}return null}let We;async function pe(m,U){const{route:q,routeDefinition:ae}=U;if(we=q,ae?.metadata?.hasVanityURL){const Oe=m.generateUrl(q.pageReference),Me=await $e(Oe);if(Me&&Me!==Oe&&we===q){const it={type:"standard__webPage",attributes:{url:Me}};return j.navigate(m.contextId,it,!0),We=!0,!0}}return We=!1,!1}function K(){return We}const se=["webUrlId"];let Y=!0;const _e={};function Ne(m){const U=m?.attributes||{},q=U.urlName||U.urlPath||U.urlAlias;if(q){const ae=m?.attributes?.objectApiName||"";return`${q}:${ae}`}return null}function ze(m){m.extraRouteParams&&(je(m,m.extraRouteParams),delete m.extraRouteParams)}function je(m,U){const q=Ne(m);!U||!q||(_e[q]=U)}function Re(m){const U=Ne(m);if(U&&U in _e){const q=_e[U];return!(q&&Object.keys(q).length>0)}return!!U}function Xe(m={}){const{current:U,next:{pathMatch:q,route:{pageReference:ae}={}}}=m;return U&&Re(ae)?(window.location.assign(q),!0):!1}function rt(m){if(Y){const U=dt();pt(m,U),je(m.pageReference,U),Y=!1}else{const U=Ne(m?.pageReference),q=_e[U];pt(m,q)}}function pt(m,U){ft(U)&&(ft(m?.attributes)&&(m.attributes={...m.attributes,...U}),ft(m?.pageReference?.attributes)&&(m.pageReference.attributes={...m.pageReference.attributes,...ke(U,se)}))}function dt(){if(typeof V.default=="string")try{return JSON.parse(V.default)}catch(m){return{}}return V.default}function ke(m,U){return Object.keys(m||{}).filter(q=>!U.includes(q)).reduce((q,ae)=>({...q,[ae]:m[ae]}),{})}function ft(m){return m&&typeof m=="object"}const b="redirectPageContext";function x(m){return m?.state?.[b]||null}function C(m){return m?.includes(`?${b}=`)}function T(m,U,q={}){const{current:ae,next:{route:Oe,url:Me}={}}=q,qe=C(Me)?Me:x(Oe)?W(Oe):null;return qe?(ae?window.location.assign(qe):j.navigate(m,U.page,!0),!0):!1}function W(m){if(!m)return null;const U=x(m)||window.btoa(window.encodeURIComponent(JSON.stringify(m)));return`${Ce.default}/?${b}=${U}`}const $="KnowledgeArticleVersion",B=["OrderSummary","User"],ee=[{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:(m,{name:U})=>{const{attributes:q={}}=m;return q.urlName||q.urlPath?!1:q.objectApiName==="ProductCategory"?U==="categoryPath":B.includes(q.objectApiName)?!1:U==="recordName"}}],te="standard__managedContentPage";function Q(m){return ee.find(U=>m.type===U.type)}function le(m,U=[]){if(m?.type===te){let q=m.attributes?.contentTypeName;!U.find(Oe=>Oe.page.type===te&&Oe.page?.attributes?.contentTypeName===q)&&["news","cms_image","cms_document"].indexOf(q)!==-1&&(q=q.startsWith("cms_")?q.substring(4):q,m.attributes.contentTypeName=`sfdc_cms__${q}`),m.attributes&&m.attributes.contentKey&&(m.attributes.urlAlias=m.attributes.contentKey,delete m.attributes.contentKey)}return m}let ye;function Te(m,U){m.attributes?.objectApiName===$&&(ye===void 0&&(ye=U.find(ae=>ae.page.attributes?.objectApiName?.endsWith("__kav"))?.page?.attributes?.objectApiName||null),ye&&(m.attributes.objectApiName=ye))}function Fe(m){return!m.attributes?.urlName&&!m.attributes?.urlPath||(m.type==="standard__recordPage"&&(Ae(m),delete m.attributes.recordId,delete m.state?.recordName,delete m.state?.categoryPath),m.type==="standard__recordRelationshipPage"&&(Ae(m),delete m.attributes.recordId)),m}function Ae(m){m.attributes.recordId&&(m.extraRouteParams={recordId:m.attributes.recordId})}function Ve(m,U){return m.type==="standard__knowledgeArticlePage"&&(m.type="standard__recordPage",m.attributes.actionName="view",m.attributes.objectApiName=$,delete m.attributes.articleType),Te(m,U),m}function Ge(m,U){const{params:q,match:ae}=U;q.forEach(Oe=>{const{type:Me,name:qe,value:it}=Oe;ae&&!ae(m,Oe)||m?.[Me]?.[qe]||(m[Me]||(m[Me]={}),m[Me][qe]=it)})}function A(m={}){const U=Q(m);U&&Ge(m,U)}function oe(m,U){if(m.state?.categoryPath?.includes("/")||m.attributes?.urlPath?.includes("/")){let[q,ae]=U.split("?");return q=q.replace(/%2F/g,"/"),ae=ae?`?${ae}`:"",q+ae}return U}function me(m){return Object.entries(m?.attributes||{}).filter(([,U])=>U===null).forEach(([U])=>delete m.attributes[U]),m}class ue{constructor(U){this.callback=U}dispose(){}update(U){const q=nt.find(ae=>ae.id===U.id)?.view;this.callback({viewset:{default:()=>k.default(q)}})}}const{window:Se,performance:Ke}=globalThis,lt=`${t.WEBRUNTIME_PREFIX}-framework-router`;let Ze=Z.default==="MRT",yt;r.router=void 0;let nt=[],Je,Rt;function Ye(m,U){Ke?.mark?.(lt),nt=ne(t.splitOptionalParameters(t.parseRoutes(m))),nt.forEach(q=>{q.handler=()=>new Promise(ae=>{ae({default:ue})})}),Je=nt.find(q=>q.metadata.isDefault),U?.isMRT!=null&&(Ze=U.isMRT),Rt=!Ze&&nt.every(q=>q.metadata.isPublic!==!1),yt={basePath:Ce.default,caseSensitive:!0,routes:nt,i18n:{locale:G.default,defaultLocale:G.default},DEPRECATED_getRouteFromUrl:At,DEPRECATED_getUrlFromRoute:Pt},r.router=M.createRouter(yt),Ke?.measure?.(lt,lt)}Ye(ie.default);let ht,at;function It(){return at?.contextId||r.router.contextId}function At(m,U){const q=U(m);return q?(A(q),q):Je?.page?Je.page:null}function Pt(m={type:"",attributes:{},state:{}},U){const{type:q,attributes:ae={},state:Oe={}}=m;let Me;const qe=JSON.parse(JSON.stringify(m));if(q==="standard__webPage")return Me=ae.url,Me==null?"":Le(Me,Ce.default);if(q==="comm__loginPage"){const it=Oe.startUrl!=null?`?startURL=${encodeURIComponent(Oe.startUrl)}`:"";if(ae.actionName==="login")return Le(`${t.WEBRUNTIME_LOGIN_PATH}${it}`,Ie.default);if(ae.actionName==="logout")return Le(`${t.WEBRUNTIME_LOGOUT_PATH}${it}`,Ie.default)}return q==="standard__managedContentPage"&&le(qe,nt),Ve(qe,nt),Fe(qe),A(qe),me(qe),Me=U(qe),q==="standard__recordPage"&&(Me=oe(qe,Me)),!Me&&Rt&&(Me=W(qe)),ze(qe),Me}async function ve(m){const{route:U,routeDefinition:q}=m.next;return n(q,U?.pageReference)}async function n(m,U){if(m?.metadata?.isPublic!==!1)return!1;const{default:q}=await e.load("@app/user/v/1");if(q.isGuest){const ae=typeof U=="string"?U:fe(U);if(ae&&Se)if(Ze){const{default:Oe}=await e.load("@app/loginPath/v/1");i(Oe,ae)}else Se.location.href=ae;return!0}return!1}function i(m,U){const q=new URL(m,Se.location.href);U&&q.searchParams.set("startURL",U),Se.location.assign(q.href)}function o(m,U){const q=new URL(m,Se.location.href);U&&q.searchParams.set("startURL",U),Se.location.assign(q.href)}function s(m){return T(It(),Je,m)}function g(m){const{current:U,next:q}=m;if(U&&q&&(U.routeDefinition.ssr!==q.routeDefinition.ssr||Ze)){const ae=fe(q.route.pageReference);if(ae)return Se.location.assign(ae),!0}return!1}function P(m){const{current:U,next:{pathMatch:q,route:ae={}}}=m;if(!U)return!1;const{pageReference:{type:Oe,attributes:Me={}}}=ae;if(Oe==="standard__managedContentPage"){const{contentTypeName:qe}=Me;if(qe==="sfdc_cms__landingPage")return Se.location.assign(q),!0}return!1}async function z(m){de(m.detail)}async function de(m){try{if(!Se?.location)return;const{address:U,message:q,code:ae}=m;if(ae===N.messages.PRENAV_FAILED.code)return;if(ae===N.messages.MISSING_ROUTE.code&&!Je&&C(U)){Se.location.assign(U);return}if(v.logError(`Routing error: ${q}`),Je?.metadata?.isPublic===!1){const{default:Me}=await e.load("@app/user/v/1");if(Me.isGuest)return}const Oe=Ce.default?Se.location.pathname.replace(Ce.default,""):Se.location.pathname;Je&&Oe!==Je.uri&&Ue(Je.page)}finally{ht?.errorNavigate(m)}}function Pe(m){be(m.detail.address)||m.preventDefault()}function be(m){if(!S.NavigationOverrides.runSync(m))return!1;const{type:U,attributes:q={},state:ae={}}=m;if(U==="standard__webPage"){const{url:Oe}=q;if(Oe==null)return!0;if(D.isAbsoluteURL(Oe)||D.isSfdcCoreURL(Oe))return Se?.open(Oe),!1;const Me=r.router.parseUrl(Oe),qe=!Me||Me===Je?.page;if(Rt&&qe)return Se?.location.assign(Le(Oe,Ce.default)),!1}else if(U==="comm__loginPage"){const{actionName:Oe}=q;if(Oe==="login")return i(Le(t.WEBRUNTIME_LOGIN_PATH,Ie.default),ae.startUrl||""),!1;if(Oe==="logout")return o(Le(t.WEBRUNTIME_LOGOUT_PATH,Ie.default),ae.startUrl||""),!1}return!0}function Le(m,U){return D.isAbsoluteURL(m)?m:U&&m!==U&&m.indexOf(`${U}/`)!==0?`${U}${m}`:m}function Ue(m){j.navigate(It(),m)}function fe(m){return at?at.generateUrl(m):r.router.generateUrl(m)}function He(m,U=!0){return typeof Se!="undefined"?r.router.subscribe(m,U):null}async function Be(m,U){if(ht?.preNavigate(m),S.PreNavigateOverrides.run(m),at){if(await ve(m))return!1}else ve(m);return P(m)||!Ze&&s(m)||!Ze&&Xe(m)||g(m)?(U?.preventDefault(),!1):!0}let gt;async function bt(m){const U=m.detail,q=U.current?.routeDefinition.view;q?gt=a.default[q]:gt=null,await Be(U,m)}async function Et(m){S.PostNavigateOverrides.run(m);const U=m.routeDefinition?.view,q=gt!==a.default[U];try{Ze||(p.ariaLiveNavigate(m),p.updateFocus(q),p.updateTitle(m),vt(m).then(async ae=>{ae?pe(r.router,m):Ue(Je.page)}))}finally{ht?.postNavigate(m)}}async function vt(m){const U=Boolean(globalThis?.CLWR?.gates?.enableLwrRouteValidation);if(d.default||f.default||!U||m?.route.pageReference.type!=="standard__recordPage"||m?.route.pageReference.attributes.recordId==null||m?.route.pageReference.attributes.objectApiName==="OrderSummary")return!0;const q=w.constructApiEndpoint(w.CONNECT_API_TYPES.SEO_PROPERTIES,{recordId:m.route.pageReference.attributes.recordId});return await I.fetchEndpoint(q)!=null}async function et(m){const U=m.detail;Et(U)}function _t(m){ht=L._o11y.routingSupport,m.addEventListener("prenavigate",bt),m.addEventListener("handlenavigation",Pe),m.addEventListener("postnavigate",et),m.addEventListener("errornavigate",z)}function ct(){let m,U;if(Se?.location&&(U=Se.location.href.substring(Se.location.origin.length),m=r.router.matchRoute(U)),!m&&Je&&(m=r.router.matchRoute(Je.uri)),m){const{route:q,routeDefinition:ae}=m;return at&&rt(q),{route:q,routeDefinition:ae,url:U}}return{}}function Nt(m,U){if(!Ze||at&&typeof Se!="undefined")return;const q=ct(),{routeDefinition:ae}=q;if(ae&&!ae.ssr)return;const Oe={...yt,url:U,handleNavigation:be,preNavigate:Be,errorNavigate:de};at=new X.ServerRouter(Oe,r.router,m),ht=L._o11y.routingSupport,Be({next:q}),Et(q)}function jt(m,U){const q=U?`?startURL=${encodeURIComponent(U)}`:"";return`${m}${t.WEBRUNTIME_LOGIN_PATH}${q}`}r.generateUrl=fe,r.getCurrentRoute=ct,r.getLoginUrl=jt,r.handleExtraRouteParams=rt,r.initializeRouter=Ye,r.initializeRouterContainer=_t,r.initializeServerRouter=Nt,r.isCurrentRouteCanonicallyRedirected=K,r.navigate=Ue,r.subscribe=He,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/routingService",["exports","webruntime/routingService/v/1_66_1007-256_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/overrides/v/1_66_1007-256_0",["exports"],function(r){"use strict";class e{constructor(){this.overrides=[]}add(c){this.overrides.push(c)}run(...c){return this.overrides.length===0?Promise.resolve(!0):this.overrides.reduce((h,l)=>h.then(u=>u===!1?Promise.resolve(!1):Promise.resolve(l(...c))),Promise.resolve(!0)).then(h=>Promise.resolve(h))}runSync(...c){return this.overrides.length===0?!0:this.overrides.reduce((h,l)=>h===!0?l(...c):!1,!0)}}const t=new e,E=new e,R=new e,F=new e,O=new e;r.NavigationOverrides=R,r.Overrides=e,r.PageNavigationFailureOverrides=O,r.PostNavigateOverrides=E,r.PreNavigateOverrides=t,r.SessionTimeoutOverrides=F,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/overrides",["exports","webruntime/overrides/v/1_66_1007-256_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/views/v/1_66_1007-256_0",["exports","lwr/loaderLegacy/v/0_17_9","@communities-webruntime/common/v/1_66_1007-256_0"],function(r,e,t){"use strict";function E(R){return e.load(t.getViewModuleSpecifier(R),"webruntime/views/v/1_66_1007-256_0")}r.default=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/views",["exports","webruntime/views/v/1_66_1007-256_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/formFactor/v/1_66_1007-256_0",["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 E(){return e()?"Medium":t()?"Small":"Large"}const R=E();r.default=R,r.getFormFactor=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/formFactor",["exports","webruntime/formFactor/v/1_66_1007-256_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("wire-service/v/8_16_5",["exports"],function(r){"use strict";function e(j){return j===void 0}const t="ValueChangedEvent";class E{constructor(H){this.type=t,this.value=H}}const{freeze:R,defineProperty:F,isExtensible:O}=Object,_="$$DeprecatedWiredElementHostKey$$",c="$$DeprecatedWiredParamsMetaKey$$";function h(j,H){if(j==null||!O(j))throw new TypeError("adapter id must be extensible");if(typeof H!="function")throw new TypeError("adapter factory must be a callable");if("adapter"in j)throw new TypeError("adapter id is already associated to an adapter factory");const ce=class extends N{constructor(re){super(re);H(this.eventTarget)}};R(ce),R(ce.prototype),F(j,"adapter",{writable:!1,configurable:!1,value:ce})}function l(){}const{forEach:u,splice:p,indexOf:S}=Array.prototype,v="connect",I="disconnect",w="config";function D(j,H){const ce=S.call(j,H);ce>-1&&p.call(j,ce,1)}function L(j){return Object.keys(j).length===0}function M(j,H){return H.length===0||H.some(ce=>!e(j[ce]))}function X(j,H,ce){return ce.some(re=>j[re]!==H[re])}class N{constructor(H){this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=H,this.wiredElementHost=H[_],this.dynamicParamsNames=H[c],this.eventTarget={addEventListener:(ce,re)=>{switch(ce){case v:{this.connecting.push(re);break}case I:{this.disconnecting.push(re);break}case w:{this.configuring.push(re),this.currentConfig!==void 0&&re.call(void 0,this.currentConfig);break}default:throw new Error(`Invalid event type ${ce}.`)}},removeEventListener:(ce,re)=>{switch(ce){case v:{D(this.connecting,re);break}case I:{D(this.disconnecting,re);break}case w:{D(this.configuring,re);break}default:throw new Error(`Invalid event type ${ce}.`)}},dispatchEvent:ce=>{if(ce instanceof E){const re=ce.value;this.callback(re)}else{if(ce.type==="wirecontextevent")return this.wiredElementHost.dispatchEvent(ce);throw new Error(`Invalid event type ${ce.type}.`)}return!1}}}update(H){this.isFirstUpdate&&(this.isFirstUpdate=!1,!L(H)&&!M(H,this.dynamicParamsNames))||(e(this.currentConfig)||X(H,this.currentConfig,this.dynamicParamsNames))&&(this.currentConfig=H,u.call(this.configuring,ce=>{ce.call(void 0,H)}))}connect(){u.call(this.connecting,H=>H.call(void 0))}disconnect(){u.call(this.disconnecting,H=>H.call(void 0))}}r.ValueChangedEvent=E,r.register=h,r.registerWireService=l,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("wire-service",["exports","wire-service/v/8_16_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("@salesforce/client/formFactor/v/1_66_1007-256_0",["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 E(){return e()?"Medium":t()?"Small":"Large"}const R=E();r.default=R,r.getFormFactor=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("@salesforce/client/formFactor",["exports","@salesforce/client/formFactor/v/1_66_1007-256_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("@communities-webruntime/common/v/1_66_1007-256_0",["exports"],function(r){"use strict";var e=!0,t="src/labels",E=["@app","@branding","@design","@luvio","@lwrjs","@o11y","@perm","@salesforce","@udd","@view","assert","aura-instrumentation","aura-storage","aura","b2c_lite_commerce","community_builder","community_case","community_layout","community_login","community_runtime","community_user","dxp_action","dxp_base","dxp_content_layout","dxp_crm_search","dxp_data_provider","dxp_flow","dxp_flowruntime","dxp_form","dxp_icon","dxp_layout","dxp_page_layout","dxp_records","dxp_search","dxp_service","dxp_styling","dxp_util","dxp","embeddedMessaging","es_actions","es_base_components","es_block_builder","es_brand","es_data_field","es_design","es_property_editors","es_shared","experience_marketing_landing","experience_messaging","experience","flowruntime","force","fragment","industries_common","instrumentation","interop","lightning","logger","lwc","lwr","mobileruntime","o11y","runtime_hybrid_capabilities","runtime_omnistudio","runtime_omnistudio_common","runtime_omnistudio_flexcards","runtime_omnistudio_omniscript","tableau","transport","trustedDesign","wave","webruntime","webruntimedesign","wire-service"],R="webruntime";function F(K){return`/${R}${K}`}var O=F("/api"),_=F("/log/metrics"),c=F("/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"},u=8e3,p="/webruntime/login",S="/webruntime/logout",v="no-cache,must-revalidate,max-age=0,no-store,private",I="@design";function w(K){return`${I}/${K}`}function D(K){return K.replace(/(?!^)([A-Z])/g,"-$1").toLowerCase()}var L=new RegExp(/^[a-z-A-Z_\d]+[/:]{1}[a-zA-Z_\d]+$/),M=new RegExp(/^([a-z][a-z\d]*)(-[a-z\d]+)*$/);function X(K,se){if(!K)throw new Error(se)}function N(K){if(M.test(K))return K;X(L.test(K),`${K} is an invalid module specifier.`);const se=K.split(/[/:]/),[Y,_e]=se;return X(!Y.includes("-"),`${K}'s namespace cannot contain hyphens.`),[Y.toLowerCase(),D(_e)].join("-")}var j="webruntime",H="js",ce="latest",re={FRAMEWORK:"framework",DESIGN:"design",COMPONENT:"component",VIEW:"view",DESIGNCOMPONENT:"designcomponent"};function G(K,se){if(!K)throw new Error(se)}function Z(K){const[se,Y=""]=K.split("://"),[_e,Ne]=Y.indexOf("@")>0?Y.split("@"):[Y];return{type:se,name:_e,locale:Ne}}function Ie(K={type:"",name:""},se,Y,_e=!0){const{name:Ne}=typeof K=="string"?Z(K):K;G(Ne,"Name not specified");const ze=Ce(K,se,Y),je=_e?`.${H}`:"";return`${ze}${Ne}${je}`}function Ce(K={type:"",name:""},se,Y){const{type:_e,locale:Ne}=typeof K=="string"?Z(K):K,ze=_e===re.COMPONENT;return G(_e,"Type not specified"),G(se,"Mode not specified"),G(Ne||!ze,"Component locale not specified"),`/${j}/${_e}/${Y||ce}/${se}${Ne?`/${Ne}`:""}/`}var ie="@view";function a(K){return`${ie}/${K}`}var d=["hasVanityURL","isDefault","isPublic","isRoot"],f=[{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:K},{name:se})=>K?.objectApiName==="ProductCategory"?se==="categoryPath":se!=="categoryPath"}];function k(K,se){const{match:Y,params:_e}=se;_e.forEach(Ne=>{if(Y&&!Y(K.page,Ne))return;const{type:ze,name:je}=Ne,Re=ze,Xe=Re==="state"?"attributes":"state";!K.page?.[Xe]?.[je]||(K.page[Re]||(K.page[Re]={}),K.page[Re][je]=K.page[Xe][je],delete K.page[Xe][je])})}function V(K){let se=K;return["categoryPath","urlPath"].forEach(Y=>{se=se.replace(new RegExp(`:${Y}\\+?`),`:${Y}+`)}),se}function ne(K){return K.startsWith(":")?K.substring(1).replace(/[?+]/g,""):null}var Ee=/\(.*\)/;function De(K){return K.split("/").map(se=>se.replace(Ee,"")).join("/")}function we(K,se){return K.split("/").map(Y=>{const _e=ne(Y);return _e&&se[_e]?Y.replace(_e,`${_e}(${se[_e]})`):Y}).join("/")}function xe(K){!K.uri.includes(":")||!K.page?.type||(K.page.attributes=K.page.attributes||{},K.uri.split("/").forEach(se=>{const Y=ne(se);if(Y){const _e=`:${Y}`;K.page.attributes[Y]||(K.page.attributes[Y]=_e)}}))}function $e(K,se=!1){return K.map(Y=>{Y.uri||(Y.uri=Y.path),Y.metadata||(Y.metadata={}),d.forEach(Re=>{Re in Y&&(Y.metadata[Re]=Y[Re],delete Y[Re])}),Y.uri&&(Y.uri=De(Y.uri),xe(Y)),Y.patternMap&&(Y.patterns=Y.patternMap,delete Y.patternMap);const _e=Y.page?.attributes?.objectApiName;_e&&!_e.startsWith(":")&&(Y.uri=Y.uri.replace(":objectApiName",_e),Y.patterns?.objectApiName&&delete Y.patterns.objectApiName);const Ne=f.find(Re=>Y.page?.type===Re.type);Ne&&k(Y,Ne);const ze=Y.page?.type;return!se&&ze==="standard__recordPage"&&["ProductCategory","NetworkDataCategory"].includes(Y.page.attributes?.objectApiName)&&(Y.uri=V(Y.uri)),["standard__recordPage","standard__recordRelationshipPage"].includes(ze)&&!Y.page?.attributes?.actionName&&(Y.page.attributes.actionName="view"),se&&Y.patterns&&(Y.uri=we(Y.uri,Y.patterns)),Y})}function We(K){const se=[];let Y="",_e=0,Ne=!1;for(let je=0;je<K.length;je++){const Re=K[je];if(Ne){Y+=Re,Ne=!1;continue}if(Re==="\\"){Y+=Re,Ne=!0;continue}Re==="("?_e++:Re===")"&&(_e=Math.max(_e-1,0)),Re==="/"&&_e===0?(Y.length>0&&se.push({raw:Y,isParam:!1,isOptional:!1}),Y=""):Y+=Re}Y.length>0&&se.push({raw:Y,isParam:!1,isOptional:!1});const ze=/^:([A-Za-z0-9_]+)(\(.+\))?(\?)?$/;return se.map(je=>{if(je.raw.startsWith(":")){const Re=je.raw.match(ze);return Re?{raw:je.raw,isParam:!0,paramName:Re[1],regexPart:Re[2]||void 0,isOptional:!!Re[3]}:{raw:je.raw,isParam:!0,paramName:je.raw.slice(1),isOptional:!1}}return{raw:je.raw,isParam:!1,isOptional:!1}})}function pe(K,se){const Y=Array.isArray(K)?K:[K],_e=[];return Y.forEach(Ne=>{const ze=We(Ne.uri);if(!ze.some(ke=>ke.isParam&&ke.isOptional)){_e.push(Ne);return}const je=[];let Re,Xe="";ze.forEach(ke=>{if(ke.isOptional){const ft=ke.raw.substring(0,ke.raw.length-1);je.push({value:ft,isOptional:!0}),Re=ke.paramName,Xe=Ne.page.attributes?.[Re]?"attributes":"state"}else je.push({value:ke.raw,isOptional:!1})});const rt={...Ne,uri:(ke=>ke.startsWith("/")?ke:`/${ke}`)(je.map(ke=>ke.value).join("/"))};se&&typeof se=="function"&&(rt.id=se());const pt={};Object.keys(Ne.page[Xe]).forEach(ke=>{ke!==Re&&(pt[ke]=Ne.page[Xe][ke])});const dt={...Ne,uri:(ke=>ke.startsWith("/")?ke:`/${ke}`)(je.filter(ke=>!ke.isOptional).map(ke=>ke.value).join("/")),page:{...Ne.page,[Xe]:pt}};dt.patterns&&(dt.patterns=Object.fromEntries(Object.entries(dt.patterns).filter(([ke])=>ke!==Re))),_e.push(rt),_e.push(dt)}),_e}r.API_PATH_PREFIX=O,r.CACHE_CONTROL_HEADER_NO_CACHE=v,r.CLIENT_ERROR_TYPES=h,r.ERRORS_PATH_PREFIX=c,r.LABELS_DEFAULT_DIR=t,r.LOCKER_DEFAULT_ENABLED=e,r.MAX_URL_LENGTH=u,r.METRICS_PATH_PREFIX=_,r.MOBILE_APP_USER_AGENTS=l,r.RESOURCE_TYPES=re,r.TRUSTED_COMPONENTS=E,r.WEBRUNTIME_LOGIN_PATH=p,r.WEBRUNTIME_LOGOUT_PATH=S,r.WEBRUNTIME_PREFIX=R,r.convertToKebabCase=D,r.getDesignComponentModuleSpecifier=w,r.getResourceUrl=Ie,r.getViewModuleSpecifier=a,r.moduleSpecifierToElementName=N,r.parseResourceDescriptor=Z,r.parseRoutes=$e,r.splitOptionalParameters=pe,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("@communities-webruntime/common",["exports","@communities-webruntime/common/v/1_66_1007-256_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("networkAdapterFetch/v/1_66_1007-256_0",["exports","webruntime/networkAdapterFetch/v/1_66_1007-256_0"],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("networkAdapterFetch",["exports","networkAdapterFetch/v/1_66_1007-256_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/networkAdapterFetch/v/1_66_1007-256_0",["exports","webruntime/transport/v/1_66_1007-256_0","webruntime/logger/v/1_66_1007-256_0","webruntime/apiCall/v/1_66_1007-256_0","webruntime/overrides/v/1_66_1007-256_0"],function(r,e,t,E,R){"use strict";const F=/^\/lwr\/apex\/v\d{2,}\.0/,O="execute",_="X-SFDC-Allow-Continuation";async function c(w){const{baseUri:D,basePath:L,body:M,queryParams:X,method:N,headers:j,urlParams:H}=w,ce=S(X),re=`${D}${L}${ce}`,G=F.test(D);let Z,Ie,Ce,ie;if(G){const[ne,Ee]=I(H.apexClass);Ie={namespace:ne,classname:Ee,method:H.apexMethod,isContinuation:j[_]==="true",params:N.toLowerCase()==="post"?M:X.methodParams,cacheable:N.toLowerCase()!=="post"}}else if(N==="post"&&u(M)){const ne=new FormData,Ee=[];for(const{name:De,value:we}of M.namedEntries)if(typeof we=="string"||we instanceof File)ne.append(De,we);else{if(p(we))throw Error("Webruntime networkAdapterFetch does not support FileReference's");Ee.push(we.arrayBuffer().then(xe=>{ne.append(De,new File([new Uint8Array(xe)],we.name,{type:we.type}))}).catch(xe=>{t.logError(`Error processing file "${we.name}":`,xe)}))}await Promise.all(Ee),Z=ne}else M===null?Z=null:(Z=JSON.stringify(M),j["Content-Type"]="application/json");if(G){const{url:ne,httpRequestOptions:Ee}=E.formatApexRequest(O,Ie),De=await h(ne,Ee);Ce=De.response,ie=De.parsedResponse}else Ce=await e.fetch(re,{method:N.toUpperCase(),headers:v(j),body:Z});const{status:a,ok:d,statusText:f}=Ce,k={};if(Ce.headers.forEach((ne,Ee)=>{k[Ee]=ne}),G)return k["Cache-Control"]=ie?.cacheable===!0?"private":"no-cache",{body:ie?.returnValue??null,status:a,statusText:f,ok:d,headers:k};let V=null;if(a!==204){const ne=k["content-type"];V=ne&&ne.startsWith("application/json")?await Ce.json():await Ce.text()}return{body:V,status:a,statusText:f,ok:d,headers:k}}async function h(w,D){let L,M;try{L=await e.fetch(w,D),L.status===401&&R.SessionTimeoutOverrides.runSync(),L.status!==204&&(M=await L.json())}catch(X){throw l(new Error("Failed to get error from response"))}if(M&&M.error){const X=M.error;throw X.length>0?l(X[0]):l(new Error("Error fetching component"))}return{response:L,parsedResponse:M}}function l(w){return{body:w,status:500,statusText:"Server Error",ok:!1,headers:{}}}function u(w){return typeof w=="object"&&w!==null&&"namedEntries"in w&&Array.isArray(w.namedEntries)}function p(w){return typeof w=="object"&&w!==null&&"isFileReference"in w&&w.isFileReference===!0}function S(w){const D=Object.entries(w).filter(([,L])=>L!=null&&(!Array.isArray(L)||L.length)).map(([L,M])=>`${encodeURIComponent(L)}=${encodeURIComponent(M)}`);return D.length>0?`?${D.join("&")}`:""}function v(w){const D=new Headers;for(const L of Object.keys(w))D.set(L,w[L]);return D}function I(w){const D=w.split("__");return D.length>1?[D[0],D[1]]:["",D[0]]}r.networkAdapterFetch=c,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/networkAdapterFetch",["exports","webruntime/networkAdapterFetch/v/1_66_1007-256_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]}})})});
