LWR.define("lwr/domRouterUtils/v/0_15_10",["exports","lwr/routerUtils/v/0_15_10"],function(r,e){"use strict";function t(M=""){if(M=M||"",M.indexOf("://")<0){const s=window.location.port?`:${window.location.port}`:"",c=`${window.location.protocol}//${window.location.hostname}${s}`,g=M.charAt(0)==="/"?"":"/";M=c+g+M}const O={},u=document.createElement("a");u.href=M;const f=u.search.substring(1);return f&&f.split("&").forEach(s=>{const[c,g=""]=s.split("=");O[e.decode(c)]=e.decode(g)}),{href:u.href,origin:`${u.protocol}//${u.hostname}${u.port?`:${u.port}`:""}`,pathname:u.pathname.replace(/(\/)?/,"/"),searchParams:O}}function E(M){const O=t(M),u=O.href.replace(/:\d+/,""),f=O.origin.replace(/:\d+/,"");return u.replace(f,"")}function C(M,O){const u=O||{};window.history.pushState(u,"",M)}function F(M,O){const u=O||{};window.history.replaceState(u,"",M)}r.getRelativeUrl=E,r.replace=F,r.set=C,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/domRouterUtils",["exports","lwr/domRouterUtils/v/0_15_10"],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_15_10",["exports"],function(r){"use strict";const e="lwr.bootstrap.",t=`${e}end`,E=`${e}error`,C=`${E}.count`,F=`${e}duration`,M="lwr.bootstrap.init",O=`${M}.duration`,u="lwr.bootstrap.init.module",f=`${u}.duration`,s=`${u}.count`,c="lwr.loader.",g=`${c}module.define`,S=`${g}.count`,P=`${c}module.dynamicLoad`,T=`${P}.count`,w=`${c}module.fetch`,j=`${w}.count`,N=`${w}.duration`,k=`${c}module.error`,Y=`${k}.count`,A=`${c}mappings.fetch`,U=`${A}.count`,q=`${A}.duration`,ce=`${c}mappings.error`,te=`${ce}.count`,W="lwr.router.",Q=`${W}navigate`,ke=`${Q}.count`,fe=`${Q}.duration`,re=`${W}view`,a=`${re}.duration`,d=`${W}error`,m=`${d}.count`;r.BOOTSTRAP_DURATION=F,r.BOOTSTRAP_END=t,r.BOOTSTRAP_ERROR=E,r.BOOTSTRAP_ERROR_COUNT=C,r.BOOTSTRAP_PREFIX=e,r.INIT=M,r.INIT_DURATION=O,r.INIT_MODULE=u,r.INIT_MODULE_COUNT=s,r.INIT_MODULE_DURATION=f,r.LOADER_PREFIX=c,r.MAPPINGS_ERROR=ce,r.MAPPINGS_ERROR_COUNT=te,r.MAPPINGS_FETCH=A,r.MAPPINGS_FETCH_COUNT=U,r.MAPPINGS_FETCH_DURATION=q,r.MODULE_DEFINE=g,r.MODULE_DEFINE_COUNT=S,r.MODULE_DYNAMIC_LOAD=P,r.MODULE_DYNAMIC_LOAD_COUNT=T,r.MODULE_ERROR=k,r.MODULE_ERROR_COUNT=Y,r.MODULE_FETCH=w,r.MODULE_FETCH_COUNT=j,r.MODULE_FETCH_DURATION=N,r.ROUTER_ERROR=d,r.ROUTER_ERROR_COUNT=m,r.ROUTER_NAV=Q,r.ROUTER_NAV_COUNT=ke,r.ROUTER_NAV_DURATION=fe,r.ROUTER_PREFIX=W,r.ROUTER_VIEW=re,r.ROUTER_VIEW_DURATION=a,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/metrics",["exports","lwr/metrics/v/0_15_10"],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_15_10",["exports"],function(r){"use strict";function e(){let t,E,C=[];const F=c=>{C.push(c)},M=c=>{C=[...C.slice(0,c),...C.slice(c+1)]},O=c=>{C.filter(g=>g!==null).forEach(g=>g.next&&g.next(c)),t=c,E=void 0},u=c=>{C.filter(g=>g!==null).forEach(g=>g.error&&g.error(c)),t=void 0,E=c};return{next:O,error:u,complete:()=>{C.filter(c=>c!==null).forEach(c=>c.complete&&c.complete()),C=[],t=void 0,E=void 0},subscribe:(c,g=!0)=>{F(c),t&&g&&c.next(t),E&&u(E);const S=C.length-1;return{unsubscribe:()=>M(S)}}}}r.createObservable=e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/observable",["exports","lwr/observable/v/0_15_10"],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_15_10",["exports","lwc/v/8_10_3","lwr/routerUtils/v/0_15_10","lwr/navigation/v/0_15_10"],function(r,e,t,E){"use strict";const C=e.createContextProvider(E.CurrentPageReference),F=t.hasDocument?e.createContextProvider(E.CurrentView):void 0,M=e.createContextProvider(E.NavigationContext);function O(u,f,s,c){s&&c&&(c.setContext(f,u),s(f,{consumerConnectedCallback:c.subscribeContext.bind(c,f),consumerDisconnectedCallback:c.unsubscribeContext.bind(c,f)}))}r.currentPageReferenceContextualizer=C,r.currentViewContextualizer=F,r.navigationContextContextualizer=M,r.provideContext=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/contextProvider",["exports","lwr/contextProvider/v/0_15_10"],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_15_10",["exports","lwr/routerErrors/v/0_15_10"],function(r,e){"use strict";function t(){const b=[],I=()=>b.length===0,y=B=>{typeof B=="function"&&b.push(B)};return{add:(B=[])=>{Array.isArray(B)?B.forEach(z=>y(z)):y(B)},compile:B=>b.length===0?Promise.resolve(!0):b.reduce((z,ne)=>z.then(ie=>ie===!1?Promise.reject():Promise.resolve(ne(B))),Promise.resolve(!0)).then(z=>z!==!1).catch(z=>{if(z instanceof Error)throw z;return!1}),empty:I}}function E(b=""){return b=b||"",encodeURIComponent(b)}function C(b=""){return b=b||"",decodeURIComponent(b)}function F(b){b=b||"/",b.charAt(0)!=="/"&&(b="/"+b);const I=b.match(/^[^#?]+/);if(I!==null){const y=I[0];return y==="/"?"/":y.replace(/\/$/,"")}return"/"}function M(b){b=b||"";const I=b.indexOf("#");I>=0&&(b=b.substring(0,I));const y=b.indexOf("?"),L=y>=0?b.substr(y+1):null,H={};return L&&L.split("&").forEach(B=>{if(B.indexOf("=")>=0){const[z,ne=""]=B.split("=");H[C(z)]=C(ne)}else H[C(B)]=null}),H}function O(b={}){const I=Object.keys(b);return I.length?`?${I.map(y=>{const L=b[y];return L===null?y:`${y}=${E(L)}`}).join("&")}`:""}function u(b){return b&&b.length>1?b.startsWith(":"):!1}function f(b){return b&&u(b)?b.substr(1):!1}function s(b){return Object.values(b).reduce((I,{routeParamName:y})=>{const L=f(y);return L&&I.push(L),I},[])}function c(b,I){if(!b)return null;const{type:y,attributes:L={},state:H={}}=b;if(y){const[B]=I.filter(z=>{const{original:{page:{type:ne=null,attributes:ie={},state:Z={}}={}}}=z,le=ne===y,Te=Object.keys(ie).every(xe=>Object.keys(L).indexOf(xe)>=0),Ie=Object.keys(ie).length===Object.keys(L).length,De=Object.keys(Z).every(xe=>Object.keys(H).indexOf(xe)>=0),me=Object.keys(ie).filter(xe=>{const R=ie[xe];return!R||!u(R)}).every(xe=>ie[xe]===L[xe]),Ue=Object.keys(Z).filter(xe=>{const R=Z[xe];return R===null||!u(R)}).every(xe=>Z[xe]===H[xe]);return le&&Te&&Ie&&me&&De&&Ue});return B||null}return null}function g(b,I){const{regex:y,params:L}=I,H=y.exec(b);if(H){const[,...B]=H,z={};return L.forEach((ne,ie)=>{const{name:Z}=ne,le=B[ie];z[Z]=le&&C(le)}),z}return null}function S(b,I){if(b&&I){const{queryMatcher:y}=I,L=y(b);if(L){const H={};return Object.keys(L).forEach(B=>{const z=L[B],{value:ne,routeParamName:ie}=z,Z=ie?ie.substr(1):B;H[Z]=ne&&C(ne)}),H}}return null}function P(b,I){const{compiledQuery:y}=I,L=Object.keys(y).filter(B=>{const{literalValue:z}=y[B];return!z}),H={};return Object.keys(b).forEach(B=>{const z=b[B];L.indexOf(B)<0&&(H[B]=z)}),H}function T(b,I){if(I){const{original:{page:{type:y="",attributes:L={},state:H={}}={}}={}}=I,B=F(b),z=M(b),ne=g(B,I),ie=S(z,I);if(ne&&ie){const Z={...ne,...ie},le={};Object.keys(L).forEach(De=>{const me=L[De];let Ue;if(me&&u(me)){const xe=me.substr(1);Ue=Z[xe]}else Ue=me;le[De]=Ue});const Te={};Object.keys(H).forEach(De=>{const me=H[De];let Ue;if(me&&u(me)){const xe=me.substr(1);Ue=Z[xe]}else Ue=me;Te[De]=Ue});const Ie=P(z,I);return{type:y,attributes:{...le},state:{...Ie,...Te}}}}return null}const w={locale:"en-US",defaultLocale:"en-US"};function j(b,I,y){const{original:{patterns:L=null}={}}=y||{};if(L){const H=g(b,y),B=S(I,y),z={...H,...B};return Object.keys(L).every(ne=>{const ie=L[ne],Z=new RegExp(ie),le=z[ne]||"";return Z.test(le)})}return!0}function N(b,I){const y=F(b),L=M(b),H=I?I.filter(z=>z.regex.test(y)):[],[B]=H.filter(z=>{const{queryMatcher:ne}=z;return ne(L)&&j(y,L,z)});return B||null}function k(b,I,y="",L=w,H){if(y&&(b===y||b?.search(new RegExp(`^${y}[/?#]`))===0)&&(b=b.replace(y,"")),H?.locale||L?.locale){const ne=`/${H?.locale||L.locale}`;(b===ne||b?.search(new RegExp(`^${ne}[/?#]`))===0)&&(b=b.replace(ne,""))}const B=N(b,I);let z;if(B){const ne=T(b,B);if(ne)return z={route:{id:B.original.id,attributes:{...ne.attributes},state:{...ne.state},pageReference:{type:ne.type,attributes:{...ne.attributes},state:{...ne.state}}},routeDefinition:B},z}else return null;return null}function Y(b,I,y="",L=w,H){const B=c(b,I);return B?U(b,B,y,L,H):null}function A(b,I,y){const{attributeBindings:L,stateBindings:H}=y,{attributes:B,state:z}=I,ne={};return b.forEach(ie=>{const[Z]=Object.keys(L).filter(le=>f(L[le])===ie);if(Z)ne[ie]=B[Z];else{const[le]=Object.keys(H).filter(Te=>f(H[Te])===ie);le&&(ne[ie]=z[le])}}),ne}function U(b,I,y="",L=w,H){const{params:B,original:{page:z={}}={},toPath:ne,compiledQuery:ie}=I,{attributes:Z={},state:le={}}=z,Te=B.filter(({name:J})=>typeof J=="string").map(({name:J})=>J),Ie=A(Te,b,{attributeBindings:Z,stateBindings:le}),De=ne(Ie),me=s(ie),Ue=A(me,b,{attributeBindings:Z,stateBindings:le}),xe=q(b,Ue,I),R=O(xe),oe=H?.locale||L&&L.locale,de=oe!==L.defaultLocale?`/${oe}`:"";return`${y}${de}${De}${R}`}function q(b,I,y){const{compiledQuery:L,original:{page:{state:H={}}}}=y,{state:B={}}=b||{},z={};Object.keys(B).filter(ie=>{const Z=H[ie];return!u(Z)}).forEach(ie=>z[ie]=B[ie]);const ne={};return Object.keys(I).forEach(ie=>{const Z=I[ie],[le]=Object.keys(L).filter(Te=>{const Ie=L[Te],{routeParamName:De}=Ie;return f(De)===ie});if(le){const Te=le;ne[Te]=Z}}),{...z,...ne}}function ce(b,I,y="",L=w){const H=k(b,I,y,L);return H&&H.route&&H.route.pageReference?H.route.pageReference:null}function te(b){return typeof b=="object"&&b!==null&&!Array.isArray(b)}function W(b){return typeof b=="string"}function Q(b,I){return I in b}function ke(b,I=2){if(te(b))try{Object.freeze(b),I>0&&Object.keys(b).forEach(y=>{if(Q(b,y)){const L=b[y];L&&typeof L=="object"&&ke(L,I-1)}})}catch(y){}return b}function fe(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function re(b){const I=["id","attributes","state","pageReference"],{pageReference:y=null}=b||{};return te(b)&&m(b,I)&&a(y)}function a(b){const I=["type","state","attributes"],{type:y,state:L,attributes:H}=b||{},B=te(b)&&W(y)&&te(L)&&d(L)&&te(H)&&d(H);return m(b,I)&&B}function d(b){return Object.keys(b).every(I=>{const y=b[I];return typeof I=="string"&&(typeof y=="string"||y===null)})}function m(b,I){if(te(b)){const y=I.every(B=>Q(b,B)),H=Object.keys(I).length===I.length;return y&&H}return!1}function x(b){const I=[];let y=0;for(;y<b.length;){const L=b[y];if(L==="*"||L==="+"||L==="?"){I.push({type:"MODIFIER",index:y,value:b[y++]});continue}if(L==="\\"){I.push({type:"ESCAPED_CHAR",index:y++,value:b[y++]});continue}if(L==="{"){I.push({type:"OPEN",index:y,value:b[y++]});continue}if(L==="}"){I.push({type:"CLOSE",index:y,value:b[y++]});continue}if(L===":"){let H="",B=y+1;for(;B<b.length;){const z=b.charCodeAt(B);if(z>=48&&z<=57||z>=65&&z<=90||z>=97&&z<=122||z===95){H+=b[B++];continue}break}if(!H)throw new TypeError(`Missing parameter name at ${y}`);I.push({type:"NAME",index:y,value:H}),y=B;continue}if(L==="("){let H=1,B="",z=y+1;if(b[z]==="?")throw new TypeError(`Pattern cannot start with "?" at ${z}`);for(;z<b.length;){if(b[z]==="\\"){B+=b[z++]+b[z++];continue}if(b[z]===")"){if(H--,H===0){z++;break}}else if(b[z]==="("&&(H++,b[z+1]!=="?"))throw new TypeError(`Capturing groups are not allowed at ${z}`);B+=b[z++]}if(H)throw new TypeError(`Unbalanced pattern at ${y}`);if(!B)throw new TypeError(`Missing pattern at ${y}`);I.push({type:"PATTERN",index:y,value:B}),y=z;continue}I.push({type:"CHAR",index:y,value:b[y++]})}return I.push({type:"END",index:y,value:""}),I}function V(b){return b.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function se(b){return b&&b.sensitive?"":"i"}function Pe(b,I={}){const y=x(b),{prefixes:L="./"}=I,H=`[^${V(I.delimiter||"/#?")}]+?`,B=[];let z=0,ne=0,ie="";const Z=Ie=>{if(ne<y.length&&y[ne].type===Ie)return y[ne++].value},le=Ie=>{const De=Z(Ie);if(De!==void 0)return De;const{type:me,index:Ue}=y[ne];throw new TypeError(`Unexpected ${me} at ${Ue}, expected ${Ie}`)},Te=()=>{let Ie="",De;for(;De=Z("CHAR")||Z("ESCAPED_CHAR");)Ie+=De;return Ie};for(;ne<y.length;){const Ie=Z("CHAR"),De=Z("NAME"),me=Z("PATTERN");if(De||me){let R=Ie||"";L.indexOf(R)===-1&&(ie+=R,R=""),ie&&(B.push(ie),ie=""),B.push({name:De||z++,prefix:R,suffix:"",pattern:me||H,modifier:Z("MODIFIER")||""});continue}const Ue=Ie||Z("ESCAPED_CHAR");if(Ue){ie+=Ue;continue}if(ie&&(B.push(ie),ie=""),Z("OPEN")){const R=Te(),oe=Z("NAME")||"",de=Z("PATTERN")||"",J=Te();le("CLOSE"),B.push({name:oe||(de?z++:""),pattern:oe&&!de?H:de,prefix:R,suffix:J,modifier:Z("MODIFIER")||""});continue}le("END")}return B}function Le(b,I={}){const y=se(I),{encode:L=z=>z,validate:H=!0}=I,B=b.map(z=>{if(typeof z=="object")return new RegExp(`^(?:${z.pattern})$`,y)});return z=>{let ne="";for(let ie=0;ie<b.length;ie++){const Z=b[ie];if(typeof Z=="string"){ne+=Z;continue}const le=z?z[Z.name]:void 0,Te=Z.modifier==="?"||Z.modifier==="*",Ie=Z.modifier==="*"||Z.modifier==="+";if(Array.isArray(le)){if(!Ie)throw new TypeError(`Expected "${Z.name}" to not repeat, but got an array`);if(le.length===0){if(Te)continue;throw new TypeError(`Expected "${Z.name}" to not be empty`)}for(let me=0;me<le.length;me++){const Ue=L(le[me],Z);if(H&&!B[ie].test(Ue))throw new TypeError(`Expected all "${Z.name}" to match "${Z.pattern}", but got "${Ue}"`);ne+=Z.prefix+Ue+Z.suffix}continue}if(typeof le=="string"||typeof le=="number"){const me=L(String(le),Z);if(H&&!B[ie].test(me))throw new TypeError(`Expected "${Z.name}" to match "${Z.pattern}", but got "${me}"`);ne+=Z.prefix+me+Z.suffix;continue}if(Te)continue;const De=Ie?"an array":"a string";throw new TypeError(`Expected "${Z.name}" to be ${De}`)}return ne}}function Oe(b,I){return Le(Pe(b,I),I)}function Me(b,I){if(!I)return b;const y=b.source.match(/\((?!\?)/g);if(y)for(let L=0;L<y.length;L++)I.push({name:L,prefix:"",suffix:"",modifier:"",pattern:""});return b}function K(b,I,y={}){const{strict:L=!1,start:H=!0,end:B=!0,encode:z=le=>le}=y,ne=`[${V(y.endsWith||"")}]|$`,ie=`[${V(y.delimiter||"/#?")}]`;let Z=H?"^":"";for(const le of b)if(typeof le=="string")Z+=V(z(le));else{const Te=V(z(le.prefix)),Ie=V(z(le.suffix));if(le.pattern)if(I&&I.push(le),Te||Ie)if(le.modifier==="+"||le.modifier==="*"){const De=le.modifier==="*"?"?":"";Z+=`(?:${Te}((?:${le.pattern})(?:${Ie}${Te}(?:${le.pattern}))*)${Ie})${De}`}else Z+=`(?:${Te}(${le.pattern})${Ie})${le.modifier}`;else Z+=`(${le.pattern})${le.modifier}`;else Z+=`(?:${Te}${Ie})${le.modifier}`}if(B)L||(Z+=`${ie}?`),Z+=y.endsWith?`(?=${ne})`:"$";else{const le=b[b.length-1],Te=typeof le=="string"?ie.indexOf(le[le.length-1])>-1:le===void 0;L||(Z+=`(?:${ie}(?=${ne}))?`),Te||(Z+=`(?=${ie}|${ne})`)}return new RegExp(Z,se(y))}function pe(b,I,y){return K(Pe(b,y),I,y)}function G(b,I,y){return b instanceof RegExp?Me(b,I):Array.isArray(b)?be(b,I,y):pe(b,I,y)}function be(b,I,y){const L=b.map(H=>G(H,I,y).source);return new RegExp(`(?:${L.join("|")})`,se(y))}const{INVALID_ROUTE_QUERY:Ce,MISSING_ROUTE_TEMPLATE:Ve,MISSING_PAGE_BINDING:Be,INVALID_PAGE_BINDING:Ge,INVALID_URI_SYNTAX:qe}=e.messages;function Ke(b){const{routes:I,caseSensitive:y}=b;return I.map(L=>Je(L,y))}function Je(b,I=!1){const y=[],{id:L,uri:H,page:B}=b;e.invariant(!!H,e.generateMessageObject(Ve,[L])),e.invariant(Ye(H),e.generateMessageObject(qe,[L])),e.invariant(!!B,e.generateMessageObject(Be,[L]));const z=F(H),ne=M(H),ie=G(z,y,{sensitive:I,end:b.exact!==!1}),Z=Oe(z,{encode:encodeURIComponent}),le=mt(ne),Te=at(le,I),Ie={original:b,regex:ie,params:y,toPath:Z,compiledQuery:le,queryMatcher:Te};return e.invariant(bt(Ie),e.generateMessageObject(Ge,[L])),Ie}function Ye(b=""){return!["*","(",")",";"].some(L=>b.indexOf(L)>=0)}function bt(b){const{original:{page:I}={},params:y,compiledQuery:L}=b,H=I&&I.type,B=I&&I.attributes||{},z=I&&I.state||{};if(typeof H!="string"||typeof B!="object"||typeof z!="object")return!1;const ne=Object.values(y).map(({name:me})=>me),ie=s(L),Z=[...ne,...ie],le=Object.values(B).filter(u).map(f),Te=Object.values(z).filter(u).map(f),Ie=Z.every(me=>typeof me!="string"?!1:le.indexOf(me)>=0||Te.indexOf(me)>=0),De=Z.length===le.length+Te.length;return!!(I&&H&&B&&z&&Ie&&De)}function mt(b){const I={};return Object.keys(b).forEach(y=>{const L=b[y];e.invariant(u(y)?L===null:!0,Ce),u(y)?I[y.substr(1)]={routeParamName:y}:L&&u(L)?I[y]={routeParamName:L}:I[y]={literalValue:L===null?null:L}}),I}function at(b,I=!1){return L=>{const H=Object.keys(L),B=Object.keys(b);return B.every(ne=>H.indexOf(ne)>=0)?B.reduce((ne,ie)=>{if(ne===null)return null;const{literalValue:Z,routeParamName:le}=b[ie],Te=L[ie];let Ie=!0;return typeof Z=="string"?Ie=I?Z===Te:Z.toUpperCase()===(Te==null?Te:Te.toUpperCase()):Z===null&&(Ie=Te===Z),Ie?ne={...ne,[ie]:{value:Te,routeParamName:le}}:ne=null,ne},{}):null}}const vt=typeof document!="undefined",pt={pathToRegexp:G,compile:Oe};r.DEFAULT_I18N_ROUTER_CONFIG=w,r.createFilterChain=t,r.decode=C,r.encode=E,r.freeze=ke,r.getPageReferenceFromUriAndRouteDef=T,r.getPageReferenceFromUrl=ce,r.getPathFromUrl=F,r.getQueryFromUrl=M,r.getQueryString=O,r.getUrlFromPageReference=Y,r.getUrlFromPageReferenceAndRouteDef=U,r.guid=fe,r.hasDocument=vt,r.isObject=te,r.isValidRoute=re,r.matchRouteByUrl=k,r.parseRoutes=Ke,r.pathToRegexp=pt,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/routerUtils",["exports","lwr/routerUtils/v/0_15_10"],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_15_10",["exports","lwr/routerUtils/v/0_15_10"],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_15_10"],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_15_10",["exports","lwr/contextUtils/v/0_15_10","lwr/routerErrors/v/0_15_10"],function(r,e,t){"use strict";const E=new e.ContextInfo(void 0),C=class extends e.generateContextualWireAdapter(E){async update(M,O){if(O){const u=M&&M.viewName?M.viewName:"default",f=O.viewset[u],s=f,c=s&&s.module||f;let g;if(c)try{const S=await c(),P=S&&S.default;if(P&&P.constructor!==void 0)this._callback(P);else throw new Error("error occurred with view import")}catch(S){const P=S;s.specifier?g=t.generateMessageObject(t.messages.VIEW_IMPORT_FAILED_WITH_SPECIFIER,[s.specifier,u,P.message,P.stack||""]):g=t.generateMessageObject(t.messages.VIEW_IMPORT_FAILED,[u,P.message,P.stack||""])}else g=t.generateMessageObject(t.messages.VIEW_MISSING,[u]);O.onComplete&&O.onComplete(g)}}};r.CurrentView=C,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/currentView",["exports","lwr/currentView/v/0_15_10"],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_15_10",["exports","lwr/contextUtils/v/0_15_10"],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_15_10"],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_15_10",["exports"],function(r){"use strict";const e="LWR",t={Fatal:0,Error:1,Warning:2,Log:3};function E(u,f){return Array.isArray(f)?u.replace(/\{([0-9]+)\}/g,(s,c)=>f[c]):u}function C(u,f){return`${u.code}: ${E(u.message,f)}`}function F(u,f){const s={...u,message:E(u.message,f)};return u.address&&(s.address=E(u.address,f)),u.stack&&(s.stack=E(u.stack,f)),s}function M(u,f,s){if(!u)throw new Error(C(f,s))}const O={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=C,r.generateMessageObject=F,r.invariant=M,r.messages=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/routerErrors",["exports","lwr/routerErrors/v/0_15_10"],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_15_10",["exports","lwr/routerErrors/v/0_15_10"],function(r,e){"use strict";function t(u){if(u==null)throw new TypeError("Provider must be defined.")}class E{constructor(f){this.infoMap=new WeakMap,this.defaultValue=f}getInfo(f){let s=this.infoMap.get(f);return s===void 0&&(s={consumers:new Set},this.infoMap.set(f,s)),s}setContext(f,s){t(f);const c=s,g=this.getInfo(f);g.contextValue=s,g.consumers.forEach(S=>S.provide(c)),g.consumers.size===0&&c?.onComplete&&c.onComplete()}getContext(f){t(f);const{contextValue:s}=this.getInfo(f);return s!==void 0?s:this.defaultValue}clearContext(f){t(f),this.infoMap.delete(f)}subscribeContext(f,s){t(f);const{consumers:c,contextValue:g}=this.getInfo(f);c.has(s)||(c.add(s),s.provide(g))}unsubscribeContext(f,s){t(f),this.getInfo(f).consumers.delete(s)}}const C=new WeakMap;function F(u){const f=C.get(u);if(!f||!f.value)throw new Error(e.generateMessage(e.messages.MISSING_CONTEXT));return f.value}function M(u,f){const s={id:u,value:f,update:c=>{s.value=c}};return C.set(s.id,s),s}function O(u){var f;return f=class{constructor(g){this._callback=g}connect(){}disconnect(){}update(g,S){S&&this._callback(S)}static setContext(g,S){u.setContext(g,S)}static getContext(g){return u.getContext(g)}static clearContext(g){u.clearContext(g)}static subscribeContext(g,S){u.subscribeContext(g,S)}static unsubscribeContext(g,S){u.unsubscribeContext(g,S)}},f.contextSchema={value:"required"},f}r.ContextInfo=E,r.generateContextualWireAdapter=O,r.getNavigationHelm=F,r.registerNavigationHelm=M,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/contextUtils",["exports","lwr/contextUtils/v/0_15_10"],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_15_10",["exports","lwr/contextUtils/v/0_15_10"],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_15_10"],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_15_10",["exports","lwr/navigationContext/v/0_15_10","lwr/currentPageReference/v/0_15_10","lwr/currentView/v/0_15_10","lwr/contextUtils/v/0_15_10","lwr/routerErrors/v/0_15_10","lwr/navigationMixinHacks/v/0_15_10"],function(r,e,t,E,C,F,M){"use strict";function O(T,w,j,N){C.getNavigationHelm(T).navigate(w,j,N)}function u(T,w,j){return C.getNavigationHelm(T).generateUrl(w,j)}const f=typeof window=="undefined",s=Symbol("Navigate"),c=Symbol("GenerateUrl"),g=Symbol("NavContext"),S=Symbol("NavContext");function P(T){F.invariant(typeof T.prototype.dispatchEvent=="function",F.messages.INVALID_MIXIN_CMP,[T.toString()]);class w extends T{[S](){if(!this[g]&&(this.dispatchEvent(new CustomEvent(M.CONTEXT_ID_BACKDOOR,{bubbles:!0,composed:!0,detail:{callback:N=>{this[g]=N}}})),!this[g]))throw new Error(F.generateMessage(F.messages.MISSING_CONTEXT))}[s](N,k,Y){f||(this[S](),O(this[g],N,k,Y))}async[c](N,k){return f?null:(this[S](),u(this[g],N,k))}}return w}P.Navigate=s,P.GenerateUrl=c,P.NavContext=g,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 C.ContextInfo}}),Object.defineProperty(r,"generateContextualWireAdapter",{enumerable:!0,get:function(){return C.generateContextualWireAdapter}}),Object.defineProperty(r,"getNavigationHelm",{enumerable:!0,get:function(){return C.getNavigationHelm}}),Object.defineProperty(r,"registerNavigationHelm",{enumerable:!0,get:function(){return C.registerNavigationHelm}}),r.NavigationMixin=P,r.generateUrl=u,r.navigate=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/navigation",["exports","lwr/navigation/v/0_15_10"],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_15_10",["exports","lwr/navigation/v/0_15_10","lwr/contextProvider/v/0_15_10","lwr/routerErrors/v/0_15_10","lwr/routerUtils/v/0_15_10","lwr/observable/v/0_15_10","lwr/metrics/v/0_15_10","lwr/profiler/v/0_15_10","lwr/navigationMixinHacks/v/0_15_10"],function(r,e,t,E,C,F,M,O,u){"use strict";const f=`universalcontainernavigationevent${C.guid()}`,s=`universalcontainerparentevent${C.guid()}`;class c{constructor(P,T,w){this.pendingRoute=null,this.committedRoute=null,this.contextId=Object.freeze(()=>{}),this.connected=!1,this.preNavFilters=C.createFilterChain(),this.errorNavFilters=C.createFilterChain(),this._handleNavigationEvent=j=>{const N=j;if(N.detail&&typeof N.detail=="object"){const{url:k,replace:Y,address:A}=N.detail;this.config.handleNavigation(A,Y)?this.root&&!k?this.root.processError(E.generateMessageObject(E.messages.MISSING_URL,[JSON.stringify(A)])):this.parent||this.process(k,Y):N.stopPropagation()}},this._handleParentEvent=j=>{j.stopImmediatePropagation();const N=j;N&&N.detail&&typeof N.detail=="function"&&N.detail(this)},this.config={handleNavigation:P.handleNavigation||(()=>!0)},this.target=w||window,this.router=T,this.router.contextId=this.contextId,this.routeObservable=F.createObservable()}get root(){if(!this.parent)return this;let P=this.parent;for(;P;){if(!P.parent)return P;P=P.parent}throw new Error("No root router could be found")}updateWires(P,T,w){if(w)this.processError(w);else{if(this.committedRoute&&P.route===this.committedRoute.route)return;O.logOperationEnd({id:M.ROUTER_VIEW,specifier:this.eventId}),this.pendingRoute=this.pendingRoute||{...P,url:T},this.committedRoute={...this.pendingRoute,...P},e.CurrentPageReference.setContext(this.target,P.route.pageReference),this.routeObservable.next({...this.committedRoute,viewset:P.viewset}),O.logOperationEnd({id:M.ROUTER_NAV,specifier:this.eventId}),this.child&&this.child.process(this._stripUrlForChild(this.committedRoute.url))}}connect(){this._sendEvent(s,T=>{this.parent=T,T.addChild(this)});const P={navigate:(T,w)=>this.navigate(T,w),generateUrl:(T,w)=>this.generateUrl(T,w),subscribe:(T,w)=>this.subscribe(T,w)};e.registerNavigationHelm(this.contextId,P),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(T=>{if(T.status===404){this.processError(E.generateMessageObject(E.messages.DESTINATION_NOT_FOUND));return}if(T.status&&T.status>=400){const N=T.error||new Error;this.processError(E.generateMessageObject(E.messages.DESTINATION_ERROR,[T.status.toString(),N.message,N.stack||""]));return}const w=T.route.pageReference||{},j=this.router.generateUrl(w)||"";if(O.logOperationStart({id:M.ROUTER_VIEW,specifier:this.eventId}),T.viewset){const N={viewset:T.viewset,onComplete:this.updateWires.bind(this,T,j)};e.CurrentView.setContext(this.target,N)}else T.route.pageReference&&this.updateWires(T,j)},!0),C.hasDocument&&(this.target.addEventListener(f,this._handleNavigationEvent),this.target.addEventListener(s,this._handleParentEvent),this.target.addEventListener(u.CONTEXT_ID_BACKDOOR,T=>{const w=T;w.detail.callback&&w.detail.callback(this.contextId)})),this.connected=!0}disconnect(){this.target.removeEventListener(f,this._handleNavigationEvent),this.target.removeEventListener(s,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(P){this.preNavFilters.add(P)}addErrorNavigate(P){this.errorNavFilters.add(P)}async addChild(P){if(await new Promise(T=>{setTimeout(()=>{E.invariant(!this.child,E.messages.MULTIPLE_CHILDREN),this.child=P,T()},0)}),this.child&&this.committedRoute){const T=this._stripUrlForChild(this.committedRoute.url);await this.child.preProcess(T)&&this.child.process(T)}}async process(P,T,w,j){this.eventId=new Date().getTime().toString(),O.logOperationStart({id:M.ROUTER_NAV,specifier:this.eventId});try{this.parent||await this.preProcess(P,w)}catch(k){if(k.code)return this.processError(k),!1;throw k}const N=this.router.parseUrl(P);return N&&this.router.navigate(N,w),!0}preProcess(P,T){const w=this.router.parseUrl(P),j=w&&this.router.matchRoute(w,T);return j?(this.pendingRoute={url:P,...j},(this.preNavFilters.empty()?Promise.resolve(!0):this.preNavFilters.compile({current:this.committedRoute||void 0,next:this.pendingRoute})).then(k=>k&&this.child?this.child.preProcess(this._stripUrlForChild(P)):k).then(k=>k||Promise.reject(E.generateMessageObject(E.messages.PRENAV_FAILED,[P])))):Promise.reject(E.generateMessageObject(E.messages.MISSING_ROUTE,[P]))}processError(P){O.logOperationStart({id:M.ROUTER_ERROR}),this.errorNavFilters.compile(P),this.child&&this.child.processError(P)}navigate(P,T,w){const j=this.filterNavigateOptions(w);let N=this.router.generateUrl(P,j);N&&(N=(this.parent&&this.parent.committedRoute&&this.parent.committedRoute.pathMatch||"").concat(N)),this._sendEvent(f,{url:N,replace:T,address:P})}generateUrl(P,T){const w=this.filterNavigateOptions(T),j=this.router.generateUrl(P,w);return j?`${this.parent&&this.parent.committedRoute&&this.parent.committedRoute.pathMatch||""}${j}`:null}subscribe(P,T){return this.routeObservable.subscribe({next:P,error:()=>{},complete:()=>{}},Boolean(T))}_sendEvent(P,T){C.hasDocument&&this.target.dispatchEvent(new CustomEvent(P,{bubbles:!0,composed:!0,detail:T}))}_stripUrlForChild(P){return this.pendingRoute&&P.indexOf(this.pendingRoute.pathMatch)===0?P.replace(this.pendingRoute.pathMatch,""):P}filterNavigateOptions(P){const T=!this.parent;return{...P,locale:T?P?.locale:void 0}}}function g(S,P,T){return new c(S,P,T)}r.DomRouterImpl=c,r.NAV_EVENT=f,r.PARENT_EVENT=s,r.createDomRouter=g,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/domRouter",["exports","lwr/domRouter/v/0_15_10"],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_15_10",["exports","lwc/v/8_10_3","lwr/domRouter/v/0_15_10","lwr/domRouterUtils/v/0_15_10","lwr/routerUtils/v/0_15_10"],function(r,e,t,E,C){"use strict";class F extends t.DomRouterImpl{constructor(...u){super(...u);this.historyDisabled=!1}connect(){super.connect(),this.historyDisabled||(C.hasDocument&&window.addEventListener("popstate",this.onpopstate.bind(this)),this.onpopstate())}onpopstate(){!this.parent&&C.hasDocument&&this.catchBrowserUpdate(E.getRelativeUrl(window.location.href))}disconnect(){super.disconnect(),C.hasDocument&&window.removeEventListener("popstate",this.onpopstate)}async process(u,f,s,c=!0){const g=await super.process(u,f,s,c);return g&&!this.historyDisabled&&c&&this.connected&&!this.parent&&(f?E.replace(u):E.set(u)),g}catchBrowserUpdate(u){this.process(u,!1,{},!1)}}e.registerDecorators(F,{fields:["historyDisabled"]});function M(O,u,f){return new F(O,u,f)}r.HistoryRouter=F,r.createHistoryRouter=M,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/historyRouter",["exports","lwr/historyRouter/v/0_15_10"],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_15_10",["exports","lwc/v/8_10_3","lwr/historyRouter/v/0_15_10","lwr/routerErrors/v/0_15_10","lwr/domRouter/v/0_15_10","lwr/routerUtils/v/0_15_10"],function(r,e,t,E,C,F){"use strict";function M(j,N,k){var Y=j?"["+j+"]":"";return"span.router-title"+Y+" {position: absolute;margin: -1px;border: 0;padding: 0;width: 1px;height: 1px;overflow: hidden;clip: rect(0 0 0 0);text-transform: none;white-space: nowrap;}"}var O=[M];const u=e.parseFragment`<span class="router-title${0}" aria-live="polite" aria-atomic="true"${2}></span>`,f={key:0},s=[];function c(j,N,k,Y){const{s:A,st:U}=j;return[A("",f,s,k),U(u,2)]}var g=e.registerTemplate(c);c.slots=[""],c.renderMode="light",c.stylesheets=[],c.stylesheetToken="lwc-7bis3qj4jjc",c.legacyStylesheetToken="lwr-routerContainer_routerContainer",O&&c.stylesheets.push.apply(c.stylesheets,O),e.freezeTemplate(c);let S=!1;function P(j,N={},k){const Y=N.historyDisabled?new C.DomRouterImpl(N,k,j):new t.HistoryRouter(N,k,j),A={addPreNavigate:U=>(Y.addPreNavigate(U),A),addPostNavigate:U=>(Y.subscribe(U),A),addErrorNavigate:U=>(Y.addErrorNavigate(U),A),connect:()=>{Y.connect(),E.invariant(!S||!!Y.parent,E.messages.MULTIPLE_ROOTS),S=S||!Y.parent,A.id=Y.contextId},disconnect:()=>{S=S&&!!Y.parent,Y.disconnect()}};return A}class T extends e.LightningElement{constructor(){super();this.router=void 0,this.historyDisabled=!1,this.currentTitle=F.hasDocument?document.title:""}connectedCallback(){const N={historyDisabled:this.historyDisabled,handleNavigation:this.handleNavigation.bind(this)};F.hasDocument&&this.router&&(this.routerApi=P(this,N,this.router),this.routerApi.addPreNavigate(this.preNavigate.bind(this)).addPostNavigate(this.postNavigate.bind(this)).addErrorNavigate(this.errorNavigate.bind(this)).connect())}preNavigate(N){const k=this._createEvent("prenavigate",N,!0);return this.dispatchEvent(k),!k.defaultPrevented}postNavigate(N){this.dispatchEvent(this._createEvent("postnavigate",N));const k=N.routeDefinition.metadata&&N.routeDefinition.metadata.title;k&&(this.currentTitle=k,document.title=k);const Y=this.querySelector("span.router-title");Y&&(Y.innerHTML=this.currentTitle)}errorNavigate(N){return this.dispatchEvent(this._createEvent("errornavigate",N)),!0}handleNavigation(N,k){const Y=this._createEvent("handlenavigation",{address:N,replace:k},!0);return this.dispatchEvent(Y),!Y.defaultPrevented}disconnectedCallback(){this.routerApi&&this.routerApi.disconnect()}_createEvent(N,k,Y){return new CustomEvent(N,{detail:k,bubbles:!1,composed:!1,cancelable:Y})}}T.renderMode="light",e.registerDecorators(T,{publicProps:{router:{config:0},historyDisabled:{config:0}}});const w=e.registerComponent(T,{tmpl:g,sel:"lwr-router-container",apiVersion:63});r.default=w,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/routerContainer",["exports","lwr/routerContainer/v/0_15_10"],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_907-254_0",["exports","lwc/v/8_10_3"],function(r,e){"use strict";const t=[];function E(M,O,u,f){return t}var C=e.registerTemplate(E);E.renderMode="light",E.stylesheets=[],E.stylesheetToken="lwc-15jgd3dq0rl",E.legacyStylesheetToken="webruntime-defaultView_defaultView",e.freezeTemplate(E);var F={html:C,attributes(){}};r.default=F,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/defaultView",["exports","webruntime/defaultView/v/1_66_907-254_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_907-254_0",["exports","lwr/loaderLegacy/v/0_15_10","@app/isDesignMode/v/1","@app/isPreviewMode/v/1"],function(r,e,t,E){"use strict";function C(f){return f&&typeof f=="object"&&"default"in f?f:{default:f}}var F=C(t),M=C(E);const{info:O}=console;async function u(){if(F.default||M.default){const{start:f,startPreview:s}=await e.load("webruntimedesign/designmode/v/1");F.default&&(/interactive|complete/.test(document.readyState)?f():document.addEventListener("DOMContentLoaded",f,!1)),M.default&&(s?s():O("startPreview() does not exist in this environment!"))}}r.designmodeInit=u,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/designmodeInit",["exports","webruntime/designmodeInit/v/1_66_907-254_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_907-254_0",["exports"],function(r){"use strict";function e(s,c){if(!s)throw new Error(c)}function t(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)}function E(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,s=>(s^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>s/4).toString(16))}function C(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 M(s){return s?F.test(s):!1}const O=new RegExp("/sfsites/c/.+","i");function u(s){return s?O.test(s):!1}function f(s,c){const g=JSON.stringify(c);if(!(window&&window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(s,g))){const P=new XMLHttpRequest;P.open("POST",s,!0),P.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),P.send(g)}}r.assert=e,r.isAbsoluteURL=M,r.isObject=t,r.isSfdcCoreURL=u,r.sendPayloadToServer=f,r.uuidValidate=C,r.uuidv4=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/utils",["exports","webruntime/utils/v/1_66_907-254_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_907-254_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_907-254_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_907-254_0",["exports","webruntime/logger/v/1_66_907-254_0","@communities-webruntime/common/v/1_66_907-254_0","webruntime/transport/v/1"],function(r,e,t,E){"use strict";function C(O){E.sendBeacon({path:t.ERRORS_PATH_PREFIX,payload:JSON.stringify(O),contentType:"text/plain;charset=UTF-8"})}function F(O,u){document.dispatchEvent(new CustomEvent("client-error",{detail:{error:O,type:u}}))}function M({subject:O,error:u,wcstack:f,type:s=t.CLIENT_ERROR_TYPES.UNKNOWN_ERROR}){f=f||u.wcstack;const{message:c,stack:g}=u,{hostname:S,pathname:P}=globalThis.location||{},w={subject:O,message:c,stack:g,wcstack:f,location:{hostname:S,pathname:P}};e.logError(g||w),typeof document!="undefined"&&(F(w,s),C(w))}r.reportError=M,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/errors",["exports","webruntime/errors/v/1_66_907-254_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_907-254_0",["exports","lwc/v/8_10_3","@communities-webruntime/common/v/1_66_907-254_0","webruntime/overrides/v/1","webruntime/errors/v/1_66_907-254_0","webruntime/utils/v/1_66_907-254_0","webruntime/views/v/1","webruntime/routingService/v/1","@app/viewToThemeLayoutMap/v/1","webruntime/designmodeInit/v/1_66_907-254_0","webruntime/defaultView/v/1_66_907-254_0"],function(r,e,t,E,C,F,M,O,u,f,s){"use strict";function c(N){return N&&typeof N=="object"&&"default"in N?N:{default:N}}var g=c(M),S=c(u),P=c(s),T=void 0;class w extends e.LightningElement{constructor(...k){super(...k);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(k){this._routeParams=k}async connectedCallback(){const k=this.view||P.default;this.generatedTemplateHtml=k.html,this.attributes=k.attributes(this,this.routeParams)||{},await f.designmodeInit(),this.subscription=O.subscribe(this.loadThemeLayout.bind(this))}render(){return this.generatedTemplateHtml}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}updateTemplate(k){this.generatedTemplateHtml=k.html}updateRoute(k,Y){O.handleExtraRouteParams(Y);const{state:A,attributes:U}=Y;this.previousRouteId=this.route?.id||null,this._routeParams={...A,...U},this.attributes=k.attributes(this,this.routeParams)||{},this.route=Y}restoreDefaultTemplate(){this.generatedTemplateHtml=P.default.html}async loadThemeLayout(k){let Y=!1;const A=k.routeDefinition.view,U=S.default[A];setTimeout(async()=>{!Y&&this.themeLayout!==U&&this.restoreDefaultTemplate()},10);let q;try{q=await g.default(U)}catch(ce){await this.handleFetchViewFailed(ce,k.routeDefinition.metadata?.isPublic)}if(!!q)try{Y=!0,window?.scrollTo(0,0),this.themeLayout!==U&&(this.themeLayout=U,this.updateTemplate(q.default)),this.updateRoute(q.default,k.route)}catch(ce){C.reportError({subject:"InnerApp.loadThemeLayout error",type:t.CLIENT_ERROR_TYPES.FAILED_TO_LOAD_RESOURCE,error:ce})}}async handleFetchViewFailed(k,Y){await E.PageNavigationFailureOverrides.run({error:k,isPublic:Y})&&C.reportError({subject:"InnerApp.loadThemeLayout#getViewModule error",type:t.CLIENT_ERROR_TYPES.FAILED_TO_LOAD_RESOURCE,error:k})}}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 j=e.registerComponent(w,{tmpl:T,sel:"webruntime-inner-app",apiVersion:63});r.default=j,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/innerApp",["exports","webruntime/innerApp/v/1_66_907-254_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_24_3-alpha",["exports","lwc/v/8_10_3"],function(r,e){"use strict";var t=void 0;/*! @license DOMPurify 3.0.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.11/LICENSE */const{entries:E,setPrototypeOf:C,isFrozen:F,getPrototypeOf:M,getOwnPropertyDescriptor:O}=Object;let{freeze:u,seal:f,create:s}=Object,{apply:c,construct:g}=typeof Reflect!="undefined"&&Reflect;u||(u=function(y){return y}),f||(f=function(y){return y}),c||(c=function(y,L,H){return y.apply(L,H)}),g||(g=function(y,L){return new y(...L)});const S=te(Array.prototype.forEach),P=te(Array.prototype.pop),T=te(Array.prototype.push),w=te(String.prototype.toLowerCase),j=te(String.prototype.toString),N=te(String.prototype.match),k=te(String.prototype.replace),Y=te(String.prototype.indexOf),A=te(String.prototype.trim),U=te(Object.prototype.hasOwnProperty),q=te(RegExp.prototype.test),ce=W(TypeError);function te(I){return function(y){for(var L=arguments.length,H=new Array(L>1?L-1:0),B=1;B<L;B++)H[B-1]=arguments[B];return c(I,y,H)}}function W(I){return function(){for(var y=arguments.length,L=new Array(y),H=0;H<y;H++)L[H]=arguments[H];return g(I,L)}}function Q(I,y){let L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:w;C&&C(I,null);let H=y.length;for(;H--;){let B=y[H];if(typeof B=="string"){const z=L(B);z!==B&&(F(y)||(y[H]=z),B=z)}I[B]=!0}return I}function ke(I){for(let y=0;y<I.length;y++)U(I,y)||(I[y]=null);return I}function fe(I){const y=s(null);for(const[L,H]of E(I))U(I,L)&&(Array.isArray(H)?y[L]=ke(H):H&&typeof H=="object"&&H.constructor===Object?y[L]=fe(H):y[L]=H);return y}function re(I,y){for(;I!==null;){const H=O(I,y);if(H){if(H.get)return te(H.get);if(typeof H.value=="function")return te(H.value)}I=M(I)}function L(){return null}return L}const a=u(["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=u(["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"]),m=u(["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"]),x=u(["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=u(["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"]),se=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Pe=u(["#text"]),Le=u(["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","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","xmlns","slot"]),Oe=u(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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"]),Me=u(["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"]),K=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pe=f(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=f(/<%[\w\W]*|[\w\W]*%>/gm),be=f(/\${[\w\W]*}/gm),Ce=f(/^data-[\-\w.\u00B7-\uFFFF]/),Ve=f(/^aria-[\-\w]+$/),Be=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ge=f(/^(?:\w+script|data):/i),qe=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ke=f(/^html$/i),Je=f(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ye=Object.freeze({__proto__:null,MUSTACHE_EXPR:pe,ERB_EXPR:G,TMPLIT_EXPR:be,DATA_ATTR:Ce,ARIA_ATTR:Ve,IS_ALLOWED_URI:Be,IS_SCRIPT_OR_DATA:Ge,ATTR_WHITESPACE:qe,DOCTYPE_NAME:Ke,CUSTOM_ELEMENT:Je});const bt=function(){return typeof window=="undefined"?null:window},mt=function(y,L){if(typeof y!="object"||typeof y.createPolicy!="function")return null;let H=null;const B="data-tt-policy-suffix";L&&L.hasAttribute(B)&&(H=L.getAttribute(B));const z="dompurify"+(H?"#"+H:"");try{return y.createPolicy(z,{createHTML(ne){return ne},createScriptURL(ne){return ne}})}catch(ne){return console.warn("TrustedTypes policy "+z+" could not be created."),null}};function at(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bt();const y=ve=>at(ve);if(y.version="3.0.11",y.removed=[],!I||!I.document||I.document.nodeType!==9)return y.isSupported=!1,y;let{document:L}=I;const H=L,B=H.currentScript,{DocumentFragment:z,HTMLTemplateElement:ne,Node:ie,Element:Z,NodeFilter:le,NamedNodeMap:Te=I.NamedNodeMap||I.MozNamedAttrMap,HTMLFormElement:Ie,DOMParser:De,trustedTypes:me}=I,Ue=Z.prototype,xe=re(Ue,"cloneNode"),R=re(Ue,"nextSibling"),oe=re(Ue,"childNodes"),de=re(Ue,"parentNode");if(typeof ne=="function"){const ve=L.createElement("template");ve.content&&ve.content.ownerDocument&&(L=ve.content.ownerDocument)}let J,$e="";const{implementation:it,createNodeIterator:ot,createDocumentFragment:tt,getElementsByTagName:st}=L,{importNode:gt}=H;let Qe={};y.isSupported=typeof E=="function"&&typeof de=="function"&&it&&it.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:yt,ERB_EXPR:lt,TMPLIT_EXPR:ct,DATA_ATTR:Et,ARIA_ATTR:At,IS_SCRIPT_OR_DATA:It,ATTR_WHITESPACE:ut,CUSTOM_ELEMENT:Ee}=Ye;let{IS_ALLOWED_URI:n}=Ye,i=null;const o=Q({},[...a,...d,...m,...V,...Pe]);let l=null;const p=Q({},[...Le,...Oe,...Me,...K]);let v=Object.seal(s(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}})),X=null,we=null,Re=!0,_e=!0,Se=!1,je=!0,he=!1,Ne=!1,Fe=!1,dt=!1,ft=!1,h=!1,D=!1,$=!0,ae=!1;const ue="user-content-";let ye=!0,Ae=!1,We={},ht=null;const Rt=Q({},["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 Dt=null;const St=Q({},["audio","video","img","source","image","track"]);let Ct=null;const ze=Q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),jt="http://www.w3.org/1998/Math/MathML",kt="http://www.w3.org/2000/svg",_t="http://www.w3.org/1999/xhtml";let Ot=_t,Ut=!1,xt=null;const tr=Q({},[jt,kt,_t],j);let Lt=null;const rr=["application/xhtml+xml","text/html"],nr="text/html";let Xe=null,Nt=null;const ir=L.createElement("form"),Ht=function(_){return _ instanceof RegExp||_ instanceof Function},$t=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Nt&&Nt===_)){if((!_||typeof _!="object")&&(_={}),_=fe(_),Lt=rr.indexOf(_.PARSER_MEDIA_TYPE)===-1?nr:_.PARSER_MEDIA_TYPE,Xe=Lt==="application/xhtml+xml"?j:w,i=U(_,"ALLOWED_TAGS")?Q({},_.ALLOWED_TAGS,Xe):o,l=U(_,"ALLOWED_ATTR")?Q({},_.ALLOWED_ATTR,Xe):p,xt=U(_,"ALLOWED_NAMESPACES")?Q({},_.ALLOWED_NAMESPACES,j):tr,Ct=U(_,"ADD_URI_SAFE_ATTR")?Q(fe(ze),_.ADD_URI_SAFE_ATTR,Xe):ze,Dt=U(_,"ADD_DATA_URI_TAGS")?Q(fe(St),_.ADD_DATA_URI_TAGS,Xe):St,ht=U(_,"FORBID_CONTENTS")?Q({},_.FORBID_CONTENTS,Xe):Rt,X=U(_,"FORBID_TAGS")?Q({},_.FORBID_TAGS,Xe):{},we=U(_,"FORBID_ATTR")?Q({},_.FORBID_ATTR,Xe):{},We=U(_,"USE_PROFILES")?_.USE_PROFILES:!1,Re=_.ALLOW_ARIA_ATTR!==!1,_e=_.ALLOW_DATA_ATTR!==!1,Se=_.ALLOW_UNKNOWN_PROTOCOLS||!1,je=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,he=_.SAFE_FOR_TEMPLATES||!1,Ne=_.WHOLE_DOCUMENT||!1,ft=_.RETURN_DOM||!1,h=_.RETURN_DOM_FRAGMENT||!1,D=_.RETURN_TRUSTED_TYPE||!1,dt=_.FORCE_BODY||!1,$=_.SANITIZE_DOM!==!1,ae=_.SANITIZE_NAMED_PROPS||!1,ye=_.KEEP_CONTENT!==!1,Ae=_.IN_PLACE||!1,n=_.ALLOWED_URI_REGEXP||Be,Ot=_.NAMESPACE||_t,v=_.CUSTOM_ELEMENT_HANDLING||{},_.CUSTOM_ELEMENT_HANDLING&&Ht(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(v.tagNameCheck=_.CUSTOM_ELEMENT_HANDLING.tagNameCheck),_.CUSTOM_ELEMENT_HANDLING&&Ht(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(v.attributeNameCheck=_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(v.allowCustomizedBuiltInElements=_.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),he&&(_e=!1),h&&(ft=!0),We&&(i=Q({},Pe),l=[],We.html===!0&&(Q(i,a),Q(l,Le)),We.svg===!0&&(Q(i,d),Q(l,Oe),Q(l,K)),We.svgFilters===!0&&(Q(i,m),Q(l,Oe),Q(l,K)),We.mathMl===!0&&(Q(i,V),Q(l,Me),Q(l,K))),_.ADD_TAGS&&(i===o&&(i=fe(i)),Q(i,_.ADD_TAGS,Xe)),_.ADD_ATTR&&(l===p&&(l=fe(l)),Q(l,_.ADD_ATTR,Xe)),_.ADD_URI_SAFE_ATTR&&Q(Ct,_.ADD_URI_SAFE_ATTR,Xe),_.FORBID_CONTENTS&&(ht===Rt&&(ht=fe(ht)),Q(ht,_.FORBID_CONTENTS,Xe)),ye&&(i["#text"]=!0),Ne&&Q(i,["html","head","body"]),i.table&&(Q(i,["tbody"]),delete X.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw ce('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ce('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=_.TRUSTED_TYPES_POLICY,$e=J.createHTML("")}else J===void 0&&(J=mt(me,B)),J!==null&&typeof $e=="string"&&($e=J.createHTML(""));u&&u(_),Nt=_}},Vt=Q({},["mi","mo","mn","ms","mtext"]),Gt=Q({},["foreignobject","desc","title","annotation-xml"]),or=Q({},["title","style","font","a","script"]),Wt=Q({},[...d,...m,...x]),Bt=Q({},[...V,...se]),ar=function(_){let ee=de(_);(!ee||!ee.tagName)&&(ee={namespaceURI:Ot,tagName:"template"});const ge=w(_.tagName),He=w(ee.tagName);return xt[_.namespaceURI]?_.namespaceURI===kt?ee.namespaceURI===_t?ge==="svg":ee.namespaceURI===jt?ge==="svg"&&(He==="annotation-xml"||Vt[He]):Boolean(Wt[ge]):_.namespaceURI===jt?ee.namespaceURI===_t?ge==="math":ee.namespaceURI===kt?ge==="math"&&Gt[He]:Boolean(Bt[ge]):_.namespaceURI===_t?ee.namespaceURI===kt&&!Gt[He]||ee.namespaceURI===jt&&!Vt[He]?!1:!Bt[ge]&&(or[ge]||!Wt[ge]):!!(Lt==="application/xhtml+xml"&&xt[_.namespaceURI]):!1},wt=function(_){T(y.removed,{element:_});try{_.parentNode.removeChild(_)}catch(ee){_.remove()}},Ft=function(_,ee){try{T(y.removed,{attribute:ee.getAttributeNode(_),from:ee})}catch(ge){T(y.removed,{attribute:null,from:ee})}if(ee.removeAttribute(_),_==="is"&&!l[_])if(ft||h)try{wt(ee)}catch(ge){}else try{ee.setAttribute(_,"")}catch(ge){}},qt=function(_){let ee=null,ge=null;if(dt)_="<remove></remove>"+_;else{const et=N(_,/^[\r\n\t ]+/);ge=et&&et[0]}Lt==="application/xhtml+xml"&&Ot===_t&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const He=J?J.createHTML(_):_;if(Ot===_t)try{ee=new De().parseFromString(He,Lt)}catch(et){}if(!ee||!ee.documentElement){ee=it.createDocument(Ot,"template",null);try{ee.documentElement.innerHTML=Ut?$e:He}catch(et){}}const Ze=ee.body||ee.documentElement;return _&&ge&&Ze.insertBefore(L.createTextNode(ge),Ze.childNodes[0]||null),Ot===_t?st.call(ee,Ne?"html":"body")[0]:Ne?ee.documentElement:Ze},zt=function(_){return ot.call(_.ownerDocument||_,_,le.SHOW_ELEMENT|le.SHOW_COMMENT|le.SHOW_TEXT|le.SHOW_PROCESSING_INSTRUCTION|le.SHOW_CDATA_SECTION,null)},sr=function(_){return _ instanceof Ie&&(typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||!(_.attributes instanceof Te)||typeof _.removeAttribute!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function")},Xt=function(_){return typeof ie=="function"&&_ instanceof ie},Pt=function(_,ee,ge){!Qe[_]||S(Qe[_],He=>{He.call(y,ee,ge,Nt)})},Kt=function(_){let ee=null;if(Pt("beforeSanitizeElements",_,null),sr(_))return wt(_),!0;const ge=Xe(_.nodeName);if(Pt("uponSanitizeElement",_,{tagName:ge,allowedTags:i}),_.hasChildNodes()&&!Xt(_.firstElementChild)&&q(/<[/\w]/g,_.innerHTML)&&q(/<[/\w]/g,_.textContent)||_.nodeType===7)return wt(_),!0;if(!i[ge]||X[ge]){if(!X[ge]&&Qt(ge)&&(v.tagNameCheck instanceof RegExp&&q(v.tagNameCheck,ge)||v.tagNameCheck instanceof Function&&v.tagNameCheck(ge)))return!1;if(ye&&!ht[ge]){const He=de(_)||_.parentNode,Ze=oe(_)||_.childNodes;if(Ze&&He){const et=Ze.length;for(let rt=et-1;rt>=0;--rt)He.insertBefore(xe(Ze[rt],!0),R(_))}}return wt(_),!0}return _ instanceof Z&&!ar(_)||(ge==="noscript"||ge==="noembed"||ge==="noframes")&&q(/<\/no(script|embed|frames)/i,_.innerHTML)?(wt(_),!0):(he&&_.nodeType===3&&(ee=_.textContent,S([yt,lt,ct],He=>{ee=k(ee,He," ")}),_.textContent!==ee&&(T(y.removed,{element:_.cloneNode()}),_.textContent=ee)),Pt("afterSanitizeElements",_,null),!1)},Yt=function(_,ee,ge){if($&&(ee==="id"||ee==="name")&&(ge in L||ge in ir))return!1;if(!(_e&&!we[ee]&&q(Et,ee))){if(!(Re&&q(At,ee))){if(!l[ee]||we[ee]){if(!(Qt(_)&&(v.tagNameCheck instanceof RegExp&&q(v.tagNameCheck,_)||v.tagNameCheck instanceof Function&&v.tagNameCheck(_))&&(v.attributeNameCheck instanceof RegExp&&q(v.attributeNameCheck,ee)||v.attributeNameCheck instanceof Function&&v.attributeNameCheck(ee))||ee==="is"&&v.allowCustomizedBuiltInElements&&(v.tagNameCheck instanceof RegExp&&q(v.tagNameCheck,ge)||v.tagNameCheck instanceof Function&&v.tagNameCheck(ge))))return!1}else if(!Ct[ee]){if(!q(n,k(ge,ut,""))){if(!((ee==="src"||ee==="xlink:href"||ee==="href")&&_!=="script"&&Y(ge,"data:")===0&&Dt[_])){if(!(Se&&!q(It,k(ge,ut,"")))){if(ge)return!1}}}}}}return!0},Qt=function(_){return _!=="annotation-xml"&&N(_,Ee)},Jt=function(_){Pt("beforeSanitizeAttributes",_,null);const{attributes:ee}=_;if(!ee)return;const ge={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:l};let He=ee.length;for(;He--;){const Ze=ee[He],{name:et,namespaceURI:rt,value:Tt}=Ze,Mt=Xe(et);let nt=et==="value"?Tt:A(Tt);if(ge.attrName=Mt,ge.attrValue=nt,ge.keepAttr=!0,ge.forceKeepAttr=void 0,Pt("uponSanitizeAttribute",_,ge),nt=ge.attrValue,ge.forceKeepAttr||(Ft(et,_),!ge.keepAttr))continue;if(!je&&q(/\/>/i,nt)){Ft(et,_);continue}he&&S([yt,lt,ct],er=>{nt=k(nt,er," ")});const Zt=Xe(_.nodeName);if(!!Yt(Zt,Mt,nt)){if(ae&&(Mt==="id"||Mt==="name")&&(Ft(et,_),nt=ue+nt),J&&typeof me=="object"&&typeof me.getAttributeType=="function"&&!rt)switch(me.getAttributeType(Zt,Mt)){case"TrustedHTML":{nt=J.createHTML(nt);break}case"TrustedScriptURL":{nt=J.createScriptURL(nt);break}}try{rt?_.setAttributeNS(rt,et,nt):_.setAttribute(et,nt),P(y.removed)}catch(er){}}}Pt("afterSanitizeAttributes",_,null)},lr=function ve(_){let ee=null;const ge=zt(_);for(Pt("beforeSanitizeShadowDOM",_,null);ee=ge.nextNode();)Pt("uponSanitizeShadowNode",ee,null),!Kt(ee)&&(ee.content instanceof z&&ve(ee.content),Jt(ee));Pt("afterSanitizeShadowDOM",_,null)};return y.sanitize=function(ve){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=null,ge=null,He=null,Ze=null;if(Ut=!ve,Ut&&(ve="<!-->"),typeof ve!="string"&&!Xt(ve))if(typeof ve.toString=="function"){if(ve=ve.toString(),typeof ve!="string")throw ce("dirty is not a string, aborting")}else throw ce("toString is not a function");if(!y.isSupported)return ve;if(Fe||$t(_),y.removed=[],typeof ve=="string"&&(Ae=!1),Ae){if(ve.nodeName){const Tt=Xe(ve.nodeName);if(!i[Tt]||X[Tt])throw ce("root node is forbidden and cannot be sanitized in-place")}}else if(ve instanceof ie)ee=qt("<!---->"),ge=ee.ownerDocument.importNode(ve,!0),ge.nodeType===1&&ge.nodeName==="BODY"||ge.nodeName==="HTML"?ee=ge:ee.appendChild(ge);else{if(!ft&&!he&&!Ne&&ve.indexOf("<")===-1)return J&&D?J.createHTML(ve):ve;if(ee=qt(ve),!ee)return ft?null:D?$e:""}ee&&dt&&wt(ee.firstChild);const et=zt(Ae?ve:ee);for(;He=et.nextNode();)Kt(He)||(He.content instanceof z&&lr(He.content),Jt(He));if(Ae)return ve;if(ft){if(h)for(Ze=tt.call(ee.ownerDocument);ee.firstChild;)Ze.appendChild(ee.firstChild);else Ze=ee;return(l.shadowroot||l.shadowrootmode)&&(Ze=gt.call(H,Ze,!0)),Ze}let rt=Ne?ee.outerHTML:ee.innerHTML;return Ne&&i["!doctype"]&&ee.ownerDocument&&ee.ownerDocument.doctype&&ee.ownerDocument.doctype.name&&q(Ke,ee.ownerDocument.doctype.name)&&(rt="<!DOCTYPE "+ee.ownerDocument.doctype.name+`>
`+rt),he&&S([yt,lt,ct],Tt=>{rt=k(rt,Tt," ")}),J&&D?J.createHTML(rt):rt},y.setConfig=function(){let ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$t(ve),Fe=!0},y.clearConfig=function(){Nt=null,Fe=!1},y.isValidAttribute=function(ve,_,ee){Nt||$t({});const ge=Xe(ve),He=Xe(_);return Yt(ge,He,ee)},y.addHook=function(ve,_){typeof _=="function"&&(Qe[ve]=Qe[ve]||[],T(Qe[ve],_))},y.removeHook=function(ve){if(Qe[ve])return P(Qe[ve])},y.removeHooks=function(ve){Qe[ve]&&(Qe[ve]=[])},y.removeAllHooks=function(){Qe={}},y}var vt=at();const pt=e.registerComponent(vt,{tmpl:t,sel:"lightning-purify-lib",apiVersion:63});function b(I,y){return pt.sanitize(I,y)}r.default=b,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/purifyLib",["exports","lightning/purifyLib/v/1_24_3-alpha"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("experience/dataLayerObject/v/250_25_0",["exports","lwc/v/8_10_3","lightning/purifyLib/v/1_24_3-alpha"],function(r,e,t){"use strict";function E(T){return T&&typeof T=="object"&&"default"in T?T:{default:T}}var C=E(t);const F={hidden:""},M={lwc:{dom:"manual"}};function O(T,w,j,N){const{shc:k,h:Y}=T;return[Y("div",{attrs:F,props:{innerHTML:N._rawHtml$0!==(N._rawHtml$0=w.scriptElement)?N._sanitizedHtml$0=k(w.scriptElement):N._sanitizedHtml$0},context:M,key:0})]}var u=e.registerTemplate(O);O.renderMode="light",O.stylesheets=[],O.stylesheetToken="lwc-64pqse1e4gn",O.legacyStylesheetToken="experience-dataLayerObject_dataLayerObject",e.freezeTemplate(O);const c=Object.freeze({ALLOWED_TAGS:[],ALLOWED_ATTR:[]});function g(T){return typeof window=="undefined"?T:C.default(T,c)}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}">${g(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 P=e.registerComponent(S,{tmpl:u,sel:"experience-data-layer-object",apiVersion:63});r.default=P,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("experience/dataLayerObject",["exports","experience/dataLayerObject/v/250_25_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/app/v/1",["exports","lwc/v/8_10_3","experience/dataLayerObject/v/250_25_0","webruntime/innerApp/v/1_66_907-254_0","lwr/routerContainer/v/0_15_10","@salesforce/site/Id/v/1","@salesforce/webstore/Id/v/1","@app/templateDevName/v/1","webruntime/routingService/v/1","webruntime/errors/v/1_66_907-254_0"],function(r,e,t,E,C,F,M,O,u,f){"use strict";function s(A){return A&&typeof A=="object"&&"default"in A?A:{default:A}}var c=s(t),g=s(E),S=s(C),P=s(F),T=s(M),w=s(O);function j(A,U,q,ce){const{c:te}=A;return[te("lwr-router-container",S.default,{props:{router:U.router},key:0},[te("experience-data-layer-object",c.default,{props:{scriptDataAttributes:U.siteDataForDataLayer.scriptDataAttributes,customObject:U.siteDataForDataLayer.customObject},key:1}),te("webruntime-inner-app",g.default,{props:{view:U.view,routerContainerView:U.routerContainerView,routeParams:U.routeParams},key:2})])]}var N=e.registerTemplate(j);j.renderMode="light",j.stylesheets=[],j.stylesheetToken="lwc-ag6063mqi2",j.legacyStylesheetToken="webruntime-app_app",e.freezeTemplate(j);class k extends e.LightningElement{constructor(U,q){super();this.routeParams=void 0,this.themeLayout=void 0,this.isInitialized=void 0,this.router=u.router,this.view=U,this.routerContainerView=q,this.siteDataForDataLayer={scriptDataAttributes:{providerType:"site"},customObject:{siteId:P.default,templateDevName:w.default,...T.default?{webstore:{id:T.default}}:{}}}}renderedCallback(){if(this.isInitialized)return;const U=this.querySelector("lwr-router-container");u.initializeRouterContainer(U),this.isInitialized=!0}errorCallback(U,q){if(f.reportError({subject:"app level error",error:U,wcstack:q}),process.env.SSR)throw U}disconnectedCallback(){this.isInitialized=!1}render(){return N}}k.renderMode="light",e.registerDecorators(k,{publicProps:{routeParams:{config:0}},fields:["themeLayout","isInitialized","router"]});const Y=e.registerComponent(k,{tmpl:N,sel:"webruntime-app",apiVersion:63});r.default=Y,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/app",["exports","webruntime/app/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("@salesforce/loader/v/1",["exports","lwr/loaderLegacy/v/0_15_10"],function(r,e){"use strict";Object.defineProperty(r,"load",{enumerable:!0,get:function(){return e.load}}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("@salesforce/loader",["exports","@salesforce/loader/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/assert/v/1_66_907-254_0",["exports","webruntime/utils/v/1_66_907-254_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_907-254_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",["exports","webruntime/logger/v/1_66_907-254_0","@communities-webruntime/common/v/1_66_907-254_0","webruntime/assert/v/1_66_907-254_0"],function(r,e,t,E){"use strict";function C(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var F=C(E);function M(a,d){return`${t.WEBRUNTIME_PREFIX}-${[a,d].filter(Boolean).join(":")}`}const{performance:O}=globalThis;function u(a){const d=JSON.stringify(a);return d&&JSON.parse(d)}function f(a,d,m){const x=M(a,d);O.mark(x,{detail:{ctx:u(m)}})}function s(a,d,m){f(a,d,m)}function c(a,d,m){f(a,d,m)}function g(a,d,m){const x=M(a,d);try{O.measure(x,{detail:{ctx:u(m)},start:x})}catch(V){e.logError(`[instrumentation] no startMark named ${x} found`,V.stack)}}function S(){return Date.now()}function P(a,d,m){}function T(a,d,m){}function w(a,d,m,x,V){}function j(a){}function N(a,d){}function k(a){return{logHits(d){},logMisses(d){},unRegister(){}}}function Y(a,d,m){}function A(a){}function U(a){}function q(a){}function ce(a,d,m){}function te(a){return{increment(d){},decrement(d){},getValue(){return 0},reset(){}}}function W(a){return{setValue(d){},getValue(){return 0},reset(){}}}function Q(a){return{update(d){},getValue(){return[]},reset(){}}}function ke(a){return{addDuration(){},time(){},getValue(){return[]},reset(){},get(){}}}class fe{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,m,x){return F.default(d&&typeof d=="string","eventName must be a valid string"),this._checkEventName(d),F.default(m&&typeof m=="string","listenerName must be a valid string"),F.default(typeof x=="function","callback must be provided"),this._registry[d].push({name:m,func:x})}unregister(d,m){this._checkEventName(d);const x=m-1;F.default(this._registry[d][x],`No listener found for ${d} with registration ID ${m}`),delete this._registry[d][x]}notify(d,m){this._checkEventName(d),this._registry[d].forEach(x=>x.func(m))}}const re=new fe;r.counter=te,r.disablePlugin=q,r.enablePlugin=U,r.error=Y,r.gauge=W,r.interaction=w,r.mark=s,r.markEnd=g,r.markStart=c,r.notifications=re,r.percentileHistogram=Q,r.perfEnd=T,r.perfStart=P,r.registerCacheStats=k,r.registerPeriodicLogger=N,r.registerPlugin=j,r.removePeriodicLogger=A,r.time=S,r.timer=ke,r.trackScenario=ce,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("aura-instrumentation",["exports","aura-instrumentation/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("aura-storage/v/1",["exports"],function(r){"use strict";var e={};r.default=e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("aura-storage",["exports","aura-storage/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/auraMethodToResourceReferenceMapping/v/1_66_907-254_0",["exports"],function(r){"use strict";const e="/services/data/v63.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"}};function E(C){return t[C]}r.getResourceReferenceFromAuraMethod=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/auraMethodToResourceReferenceMapping",["exports","webruntime/auraMethodToResourceReferenceMapping/v/1_66_907-254_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_907-254_0",["exports","webruntime/auraMethodToResourceReferenceMapping/v/1_66_907-254_0","webruntime/transport/v/1","webruntime/errors/v/1_66_907-254_0","@app/apexApiBasePath/v/1","webruntime/overrides/v/1","@communities-webruntime/common/v/1_66_907-254_0"],function(r,e,t,E,C,F,M){"use strict";function O(j){return j&&typeof j=="object"&&"default"in j?j:{default:j}}var u=O(C);async function f(j,N){const[k,Y]=j.split(".");if(k==="ApexActionController")return c(Y,N);const A=e.getResourceReferenceFromAuraMethod(j);if(A)return s(A,N);throw new Error(`Unsupported controller action: ${k}.${Y}`)}async function s({urlPath:j,urlPathParamNames:N,method:k,inputRepresentation:Y},A){const U=A&&{...A}||{};let q=N.reduce((Q,ke)=>{const fe=U[ke];return delete U[ke],Q.replace(`\${${ke}}`,encodeURIComponent(fe))},j),ce;(k==="POST"||k==="PATCH"||k==="PUT")&&U[Y]&&(ce=JSON.stringify(U[Y]),delete U[Y]),Object.keys(U).length&&(q+=`?${Object.entries(U).filter(([,Q])=>Q!=null&&(!Array.isArray(Q)||Q.length)).map(([Q,ke])=>`${encodeURIComponent(Q)}=${encodeURIComponent(ke)}`).join("&")}`);const te=await t.fetch(q,{method:k,body:ce});let W;if(te.status===401&&P(),te.status!==204&&(W=await te.json()),W instanceof Array&&(W=W[0]),!te.ok){const Q={status:te.status,data:{...W,statusCode:te.status}};throw w([Q])}return T(W)}async function c(j,N){if(j==="execute"){const{url:k,httpRequestOptions:Y}=g(j,N);return t.fetch(k,Y).then(A=>(A.status===401&&P(),A.status!==204?A.json():void 0)).then(A=>{if(A&&A.error&&A.error.length>0)throw w(A.error);return T(A)})}throw new Error(`Unsupported Apex action: ${j}`)}function g(j,N){if((!N||typeof N!="object"||Object.keys(N).length===0)&&E.reportError({subject:"Apex API action error - invalid params",type:M.CLIENT_ERROR_TYPES.APEX_ACTION_ERROR,error:new Error(`Apex ${j} action called with invalid params: '${JSON.stringify(N)}'.`)}),N&&N.cacheable===!0){const k=`/apex/${j}?${S(N)}`;if(k.length<=M.MAX_URL_LENGTH)return{url:k,httpRequestOptions:{method:"GET",basePath:u.default}}}return{url:`/apex/${j}`,httpRequestOptions:{method:"POST",body:JSON.stringify(N),basePath:u.default}}}function S(j){const N={...j},k=N.params;if(k&&typeof k=="object"){const Y=Object.keys(k).sort().reduce((A,U)=>(A[U]=k[U],A),{});N.params=JSON.stringify(Y)}return Object.keys(N).filter(Y=>N[Y]!==void 0&&N[Y]!=null).sort().map(Y=>`${Y}=${encodeURIComponent(N[Y])}`).join("&")}function P(){F.SessionTimeoutOverrides.runSync()}function T(j){return{getReturnValue:()=>j}}function w(j){return{getError:()=>j}}r.apiCallRawResponse=f,r.formatApexRequest=g,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/apiCall",["exports","webruntime/apiCall/v/1_66_907-254_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",["exports","webruntime/apiCall/v/1_66_907-254_0","webruntime/logger/v/1_66_907-254_0"],function(r,e,t){"use strict";function E(u){if(u&&u.__esModule)return u;var f=Object.create(null);return u&&Object.keys(u).forEach(function(s){if(s!=="default"){var c=Object.getOwnPropertyDescriptor(u,s);Object.defineProperty(f,s,c.get?c:{enumerable:!0,get:function(){return u[s]}})}}),f.default=u,Object.freeze(f)}var C=E(t);const F=null,M=null,O=null;Object.defineProperty(r,"executeGlobalControllerRawResponse",{enumerable:!0,get:function(){return e.apiCallRawResponse}}),r.logger=C,r.createComponent=F,r.getDefinition=O,r.renderComponent=M,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("aura",["exports","aura/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("instrumentation/service/v/1",["exports","aura-instrumentation/v/1"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("instrumentation/service",["exports","instrumentation/service/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("instrumentation/utility/v/1",["exports","aura-instrumentation/v/1"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("instrumentation/utility",["exports","instrumentation/utility/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lightning/configProvider/v/1",["exports","@app/basePath/v/1","lwc/v/8_10_3"],function(r,e,t){"use strict";function E(R){return R&&typeof R=="object"&&"default"in R?R:{default:R}}var C=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,M=/^\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i,O="HH:mm:ss.SSS",u="YYYY-MM-DD",f="T",s=/(Z|([+-])(\d{2}):(\d{2}))$/;function c(R){return P(R)&&w(R)}function g(R){if(!T(R))return!1;const oe=S(R);return w(`2018-09-09T${oe}Z`)}function S(R){return typeof R=="string"?R.split(s)[0]:R}function P(R){return typeof R!="string"?!1:F.test(R)}function T(R){return typeof R!="string"?!1:M.test(R)}function w(R){const oe=Date.parse(R);return isFinite(oe)}var j=void 0;const N="in a few seconds",k="a few seconds ago",Y="in {0} {1}",A="{0} {1} ago",U="s",q={SECONDS:{name:"second",threshold:45},MINUTES:{name:"minute",threshold:45},HOURS:{name:"hour",threshold:22},DAYS:{name:"day",threshold:26},MONTHS:{name:"month",threshold:11},YEARS:{name:"year"}},ce=1e3,te=6e4,W=36e5,Q=864e5;class ke{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 de=a(this);return de===q.SECONDS?this.milliseconds>0?N:k:d(oe,this.asIn(de),de.name)}asIn(oe){switch(oe){case q.SECONDS:return Math.round(this.milliseconds/ce);case q.MINUTES:return Math.round(this.milliseconds/te);case q.HOURS:return Math.round(this.milliseconds/W);case q.DAYS:return Math.round(this.milliseconds/Q);case q.MONTHS:return Math.round(re(this.milliseconds/Q));case q.YEARS:default:return Math.round(re(this.milliseconds/Q)/12)}}}const fe=t.registerComponent(ke,{tmpl:j,sel:"lightning-config-provider",apiVersion:63});function re(R){const oe=4800/146097;return R*oe}function a(R){const oe=Object.keys(q).find(de=>{const J=q[de];return J===q.YEARS||Math.abs(R.asIn(J))<J.threshold});return q[oe]}function d(R,oe,de){return"Intl"in window&&Intl.RelativeTimeFormat?new Intl.RelativeTimeFormat(R,{style:"long",numeric:"always"}).format(oe,de):m(oe,de)}function m(R,oe){console.warn("The current environment does not support formatters for relative time.");const de=Math.abs(R),J=de!==1?oe+U:oe,$e=R>0?Y:A;return x($e,de,J)}function x(R,...oe){return R.replace(/{(\d+)}/g,(de,J)=>oe[J])}const V=["January","February","March","April","May","June","July","August","September","October","November","December"],se={short:"M/d/yyyy",medium:"MMM d, yyyy",long:"MMMM d, yyyy"},Pe={short:"h:mm a",medium:"h:mm:ss a",long:"h:mm:ss a"},Le={short:"h:m a",medium:"h:m:s a",long:"h:m:s a"};function Oe(R,oe){let de=!1,J=R;return typeof R=="string"&&(J=R.split(f)[0],de=!0),I(J,oe,de)}function Me(R,oe){return I(R,oe,!0)}function K(R,oe){if(!L(R))return new Date("");const de=(R.getHours()+11)%12+1,J=R.getHours()>=12?"PM":"AM";switch(oe){case O:return`${ie(R.getHours())}:${ie(R.getMinutes())}:${ie(R.getSeconds())}.${Z(R.getMilliseconds())}`;case Pe.short:return`${de}:${ie(R.getMinutes())} ${J}`;case Pe.medium:case Pe.long:default:return`${de}:${ie(R.getMinutes())}:${ie(R.getSeconds())} ${J}`}}function pe(R){if(!L(R))return new Date("");const oe=new Date(R.getTime());return`${Me(oe)}, ${K(B(oe))}`}function G(R){let oe=null,de=!0;if(g(R)?oe=`2014-03-20T${H(R)}`:c(R)&&(R.indexOf(f)>0?(oe=H(R),de=!1):oe=`${R}T00:00:00.000Z`),oe){const J=new Date(oe);return de&&B(J),J}return null}function be(R,oe){return oe===u&&c(R)?G(R):Object.values(se).includes(oe)?b(R,oe):Object.values(Le).includes(oe)?pt(R):null}function Ce(R){return G(H(R))}function Ve(R,oe,de){const J=ne(R),$e=ne(oe);return!J||!$e?!1:y(J,de).getTime()<y($e,de).getTime()}function Be(R,oe,de){const J=ne(R),$e=ne(oe);return!J||!$e?!1:y(J,de).getTime()>y($e,de).getTime()}function Ge(R,oe,de){const J=new Date(R.getTime());de(z(J))}function qe(R,oe,de){const J=new Date(R.getTime());de(B(J))}function Ke(R){return R}function Je(R){return R}function Ye(R){return R}function bt(R){return R}function mt(){return{format:R=>(console.warn(`The current environment does not support large numbers and the original value of ${R} will be returned.`),R)}}function at(R){return new fe(R*60*1e3)}function vt(R){return R.humanize("en")}function pt(R){const oe=R.trim().split(/[:.\s*]/),de=oe.length;if(!oe||de<2||de>5)return null;const J=oe[de-1],$e=J.toLowerCase()==="am",it=J.toLowerCase()==="pm";oe.splice(-1,1);const ot=oe.every(ct=>!isNaN(ct));if(!it&&!$e||!ot)return null;const tt=oe[0],st=ie(it?tt%12+12:tt%12),gt=de>=3&&oe[1]||"0",Qe=de>=4&&oe[2]||"0",yt=de===5&&oe[3]||"0",lt=new Date("2014-03-20");return lt.setHours(st,gt,Qe,yt),L(lt)?lt:null}function b(R,oe){let de=/^([a-zA-Z]{3})\s*(\d{1,2}),\s*(\d{4})$/;switch(oe){case se.short:de=/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/;break;case se.long:de=/^([a-zA-Z]+)\s*(\d{1,2}),\s*(\d{4})$/;break}const J=de.exec(R.trim());if(!J)return null;let $e=J[1];const it=J[2],ot=J[3];oe!==se.short&&($e=V.findIndex(gt=>gt.toLowerCase().includes($e.toLowerCase())),$e+=1);const tt=`${ot}-${ie($e)}-${ie(it)}`,st=new Date(`${tt}T00:00:00.000Z`);return L(st)?B(st):null}function I(R,oe,de){const J=ne(R);if(!J)return new Date("");switch(de&&L(R)&&B(J),oe){case u:return`${J.getFullYear()}-${ie(J.getMonth()+1)}-${ie(J.getDate())}`;case se.short:return`${J.getMonth()+1}/${J.getDate()}/${J.getFullYear()}`;case se.long:return`${V[J.getMonth()]} ${J.getDate()}, ${J.getFullYear()}`;case se.medium:default:return`${V[J.getMonth()].substring(0,3)} ${J.getDate()}, ${J.getFullYear()}`}}function y(R,oe){switch(oe){case"day":R.setHours(0),R.setMinutes(0);case"minute":R.setSeconds(0),R.setMilliseconds(0);break}return R}function L(R){return Object.prototype.toString.call(R)==="[object Date]"&&!isNaN(R.getTime())}function H(R){return`${S(R)}Z`}function B(R){return R.setMinutes(R.getMinutes()+R.getTimezoneOffset()),R}function z(R){return R.setMinutes(R.getMinutes()-R.getTimezoneOffset()),R}function ne(R){return R?L(R)?new Date(R.getTime()):isFinite(R)&&(typeof R=="number"||typeof R=="string")?new Date(parseInt(R,10)):typeof R=="string"?G(R):null:null}function ie(R){return Number(R)<10?`0${R}`:R}function Z(R){return Number(R)<10?`00${R}`:Number(R)<100?`0${R}`:R}var le={formatDate:Oe,formatDateUTC:Me,formatTime:K,formatDateTimeUTC:pe,parseDateTimeISO8601:G,parseDateTime:be,parseDateTimeUTC:Ce,isBefore:Ve,isAfter:Be,UTCToWallTime:Ge,WallTimeToUTC:qe,translateToOtherCalendar:Ke,translateFromOtherCalendar:Je,translateToLocalizedDigits:Ye,translateFromLocalizedDigits:bt,getNumberFormat:mt,duration:at,displayDuration:vt};function Te(){return le}function Ie(){return C.default}function De(){return null}function me(){return null}function Ue(){return{densitySetting:""}}var xe={getOneConfig:Ue,getIconSvgTemplates:me,getToken:De,getPathPrefix:Ie,getLocalizationService:Te};r.default=xe,r.getIconSvgTemplates=me,r.getLocalizationService=Te,r.getOneConfig=Ue,r.getPathPrefix=Ie,r.getToken=De,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/configProvider",["exports","lightning/configProvider/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lightning/navigation/v/1",["exports","lwr/navigationContext/v/0_15_10","lwr/currentPageReference/v/0_15_10","lwr/currentView/v/0_15_10","lwr/contextUtils/v/0_15_10","lwr/routerErrors/v/0_15_10","lwr/navigationMixinHacks/v/0_15_10"],function(r,e,t,E,C,F,M){"use strict";function O(T,w,j,N){C.getNavigationHelm(T).navigate(w,j,N)}function u(T,w,j){return C.getNavigationHelm(T).generateUrl(w,j)}const f=typeof window=="undefined",s=Symbol("Navigate"),c=Symbol("GenerateUrl"),g=Symbol("NavContext"),S=Symbol("NavContext");function P(T){F.invariant(typeof T.prototype.dispatchEvent=="function",F.messages.INVALID_MIXIN_CMP,[T.toString()]);class w extends T{[S](){if(!this[g]&&(this.dispatchEvent(new CustomEvent(M.CONTEXT_ID_BACKDOOR,{bubbles:!0,composed:!0,detail:{callback:N=>{this[g]=N}}})),!this[g]))throw new Error(F.generateMessage(F.messages.MISSING_CONTEXT))}[s](N,k,Y){f||(this[S](),O(this[g],N,k,Y))}async[c](N,k){return f?null:(this[S](),u(this[g],N,k))}}return w}P.Navigate=s,P.GenerateUrl=c,P.NavContext=g,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 C.ContextInfo}}),Object.defineProperty(r,"generateContextualWireAdapter",{enumerable:!0,get:function(){return C.generateContextualWireAdapter}}),Object.defineProperty(r,"getNavigationHelm",{enumerable:!0,get:function(){return C.getNavigationHelm}}),Object.defineProperty(r,"registerNavigationHelm",{enumerable:!0,get:function(){return C.registerNavigationHelm}}),r.NavigationMixin=P,r.generateUrl=u,r.navigate=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/navigation",["exports","lightning/navigation/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/f6Controller/v/1_66_907-254_0",["exports"],function(r){"use strict";const e=300,{document:t}=globalThis,E={navKey:"F6",f6RegionAttribute:"data-f6-region",f6RegionHighlightClass:"f6-highlight"},C=f=>f&&(f.shadowRoot?f.shadowRoot.activeElement?C(f.shadowRoot.activeElement):f:f.activeElement?C(f.activeElement):f);class F{constructor(s={}){this.regions=[],this.config=E,this.handleClick=()=>{this.clearRegionHighlights()},this.handleKeyDown=c=>{this.clearRegionHighlights();const{key:g,ctrlKey:S,metaKey:P}=c;g===this.config.navKey&&(S||P)&&(this.populateRegions(),this.handleNavigation(c))},this.elementFilter=c=>c.parentElement&&c.parentElement.matches(`*[${this.config.f6RegionAttribute}]`)?NodeFilter.FILTER_REJECT:c.matches(`*[${this.config.f6RegionAttribute}]`)&&this.isVisible(c)&&!this.isEmpty(c)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,this._debounceKeyDownHandler=this.debounce(this.handleKeyDown.bind(this),e),this.initialize(s)}debounce(s,c,g){const S=g||{};let P=S.leading,T;return function(){const j=Array.prototype.slice.apply(arguments);P&&(s.apply(this,j),P=!1),clearTimeout(T),T=setTimeout(function(){s.apply(this,j),P=S.leading},c)}}appendStyleElement(){this._styleElement=t.createElement("style");const s=`[${this.config.f6RegionAttribute}].${this.config.f6RegionHighlightClass}`;this._styleElement.innerText=`${s} { position: relative; }  ${s}::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(s=>{s.classList.remove(this.config.f6RegionHighlightClass)})}addRegionHighlight(s){s.classList.add(this.config.f6RegionHighlightClass)}focusIn(s){const c=s.querySelector('a[href],button:not([disabled]),input:not([type="hidden"]):not([disabled]),select:not([type="hidden"]):not([disabled]),textarea:not([type="hidden"]):not([disabled])');c?c.focus():(s.tabIndex="-1",s.focus())}handleNavigation(s){if(s.preventDefault(),!this.regions.length)return;const c=s.shiftKey,g=this.getElementRegionIndex(C(s.target)),S=this.getNextRegionIndex(g,c);if(S===-1)return;const P=this.regions[S];this.focusIn(P),this.addRegionHighlight(P)}shadowContains(s,c){return s===c||s.contains(c)||s.shadowRoot&&this.isElementInContainerElements(s.shadowRoot.children,c)||s.tagName==="SLOT"&&this.isElementInContainerElements(s.assignedElements(),c)?!0:this.isElementInContainerElements(s.children,c)}isElementInContainerElements(s,c){if(!s||!s.length)return!1;const g=s.length;for(let S=0;S<g;S++)if(this.shadowContains(s[S],c))return!0;return!1}getElementRegionIndex(s){return!this.regions||!this.regions.length?-1:this.regions.findIndex(c=>this.shadowContains(c,s))}getNextRegionIndex(s,c){const g=this.regions.length-1;return g<0?-1:c?s<=0?g:s-1:s===g?0:s+1}isVisible(s){if(s===t.body||!(s instanceof Element))return!0;try{const c=window.getComputedStyle(s)||s.style;if(!c)return!1;const{display:g,visibility:S}=c;return g&&g.toLowerCase()==="none"||S&&S.toLowerCase()==="hidden"?!1:this.isVisible(s.parentNode)}catch(c){return!1}}isEmpty(s){if(s.tagName==="SLOT"&&!this.isEmptyChildren(s.assignedElements()))return!1;let c=s.children;return(!c||!c.length)&&s.shadowRoot&&(c=s.shadowRoot.children),this.isEmptyChildren(c)}isEmptyChildren(s){if(!s||!s.length)return!0;const c=s.length;for(let g=0;g<c;g++){const S=s[g];if(S.tagName!=="SLOT"||!this.isEmpty(S))return!1}return!0}populateRegions(){if(!t)return;this.regions=[];const s=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT,this.elementFilter,!1);for(;s.nextNode();)this.regions.push(s.currentNode)}initialize(s={}){!t||(t.addEventListener("keydown",this._debounceKeyDownHandler),this.regions=[],this.config={...this.config,...s},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 M;const O=f=>(M||(M=new F(f)),M),u=()=>{if(M){const f=M.getConfig();if(f)return f.f6RegionAttribute}};r.DEFAULT_CONFIG=E,r.F6Controller=F,r.createF6Controller=O,r.getActiveElem=C,r.getCurrentRegionAttributeName=u,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/f6Controller",["exports","webruntime/f6Controller/v/1_66_907-254_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",["exports","webruntime/f6Controller/v/1_66_907-254_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"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/environment/v/1",["exports"],function(r){"use strict";const e=globalThis?.LWR?.env||{},t=e&&(e.SSR==="true"||e.SSR===!0),E=e&&e.basePath,C=e&&e.locale,F=e&&e.assetBasePath,M=e&&e.uiBasePath;r.assetBasePath=F,r.basePath=E,r.isServer=t,r.locale=C,r.uiBasePath=M,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/environment",["exports","lwr/environment/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("transport/v/1",["exports","webruntime/transport/v/1"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("transport",["exports","transport/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/cookieStore/v/1_66_907-254_0",["exports","@app/authenticationCookieName/v/1"],function(r,e){"use strict";function t(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var E=t(e);let C;function F(c){c&&typeof c=="object"&&(C=c)}function M(c){C=s(c)}function O(){return!!f(E.default)}function u(){return C}function f(c){return c?(typeof document!="undefined"&&M(document?.cookie),C&&C[c]):null}function s(c){return c&&typeof c=="string"?c.split(";").reduce((S,P)=>{const[T,w]=P.trim().split("=").map(decodeURIComponent);return S[T]=w,S},{}):null}r.getAllCookies=u,r.getCookie=f,r.hasSidCookie=O,r.setCookiesFromObject=F,r.setCookiesFromString=M,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/cookieStore",["exports","webruntime/cookieStore/v/1_66_907-254_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",["exports","lwr/loaderLegacy/v/0_15_10","@app/basePath/v/1","@app/apiBasePath/v/1","@salesforce/i18n/lang/v/1","webruntime/utils/v/1_66_907-254_0","@communities-webruntime/common/v/1_66_907-254_0","webruntime/cookieStore/v/1_66_907-254_0","@app/isDesignMode/v/1","@app/isPreviewMode/v/1","lwc/v/8_10_3"],function(r,e,t,E,C,F,M,O,u,f,s){"use strict";function c(G){return G&&typeof G=="object"&&"default"in G?G:{default:G}}var g=c(t),S=c(E),P=c(C),T=c(u),w=c(f),j=void 0;class N{constructor(be){const[Ce,Ve]=be.split("?");this.path=Ce,this.searchParams=new URLSearchParams(Ve)}setParamDefaultValue(be,Ce){return this.searchParams.has(be)||this.searchParams.append(be,Ce),this}build(){const be=this.searchParams.toString();return this.path+(be?`?${be}`:"")}}const k=s.registerComponent(N,{tmpl:j,sel:"webruntime-transport",apiVersion:63}),Y=["POST","PATCH","PUT","DELETE"],A="X-SFDC-Request-Id",U="X-Salesforce-Too-Many-Requests",q="X-CSP",ce="asGuest",te="language",W="htmlEncode",{location:Q,navigator:ke}=globalThis,fe=new Set;function re(G){typeof G=="function"&&fe.add(G)}function a(G){fe.delete(G)}async function d(G,be={}){F.assert(typeof G=="string","Valid path not provided for fetch request");const Ce={...be,headers:{...be.headers},credentials:be.credentials||"same-origin"};be.credentials===null&&delete Ce.credentials;const Ve=Ce.isNonApiRequest===!0,Be=Ce.asGuest===!0||pe(),Ge=Ce.basePath!==void 0?Ce.basePath:S.default,qe=new k(Q?new URL(Ge+G,Q).toString():Ge+G);Ve||qe.setParamDefaultValue(te,P.default).setParamDefaultValue(ce,Be).setParamDefaultValue(W,!1);const Ke=Ce.headers["Content-Type"];Ke===null?delete Ce.headers["Content-Type"]:Ke?Ce.headers["Content-Type"]=Ke:be.body&&(Ce.headers["Content-Type"]="application/json; charset=utf-8"),Ce.headers[A]=Oe(),await Pe(Ce);const Je=await globalThis.fetch(qe.build(),Ce);return fe.forEach(Ye=>Ye(Je)),V(Je)&&m(),Je}function m(){typeof document!="undefined"&&document.dispatchEvent(new CustomEvent("client-error",{detail:{type:M.CLIENT_ERROR_TYPES.TOO_MANY_REQUESTS}}))}function x(G){return!!(G.headers.get(U)||(G.headers.get(q)||"").toLowerCase()==="rejected")}function V(G){return!!((G.status===503||G.status===429)&&x(G))}function se(G){return G.status===503&&!x(G)}async function Pe(G){if(!Y.includes(G.method))return;const{csrfToken:be}=await K();be&&(G.headers["CSRF-Token"]=be)}async function Le({path:G,payload:be,contentType:Ce}){const Ve=g.default+G;ke&&ke.sendBeacon&&ke.sendBeacon(Ve,be)||await globalThis.fetch(G,{headers:{"Content-Type":Ce},basePath:g.default,body:be,method:"POST",isNonApiRequest:!0})}function Oe(){return(Date.now()+Me()+Math.round(Math.random()*1e8)).substring(0,18)}function Me(){function G(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return G()+G()}async function K(){if(typeof window=="undefined")return{isGuest:!0,id:null,csrfToken:null};const{default:G}=await e.load("@app/user/v/1");return G}function pe(){return T.default||w.default?!1:!O.hasSidCookie()}r.addFetchObserver=re,r.fetch=d,r.isDownForMaintenanceResponse=se,r.isTooManyRequestsResponse=V,r.removeFetchObserver=a,r.sendBeacon=Le,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/transport",["exports","webruntime/transport/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("logger/v/1",["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"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("assert/v/1",["exports","webruntime/utils/v/1_66_907-254_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"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("o11y/shared/v/1",["exports"],function(r){"use strict";class e{constructor(){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 m=this.perfNow();return{tsNow:d+m,perfNow:m,timeOrigin:d}}):(this.perfNow=()=>Date.now()-d,this.time=()=>{const m=this.perfNow();return{tsNow:Date.now(),perfNow:m,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(m=>this._checkArgument(a,m));throw new Error(`Invalid argKind ${d}`)}requireArgument(a,d,m){let x=a==null||a==="";const V=m!==void 0;if(!x&&V&&(x=!this._checkArgument(a,m)),x)throw new Error(`${d} argument is required${V?" and must be of a supported type.":"."}`)}requireArgumentIfDefined(a,d,m){if(a===void 0)return!1;if(a===null||a===""||!this._checkArgument(a,m))throw new Error(`${d} argument, if defined, must be of a supported type.`);return!0}checkForDenyListedValues(a,d,m){if(m.some(x=>a===x))throw new Error(`The value ${a} isn't allowed for ${d} argument.`)}checkForReservedCharacters(a,d,m){if(a&&m.some(x=>a.indexOf(x)>=0))throw new Error(`The argument ${d} isn't allowed to contain characters from ['${m.join(", ")}']. Received: ${a}.`)}generateUniqueId(a=16){const d=[],m="0123456789abcdef";if(!(a===void 0||a>0))throw new Error('If specified, the argument "length" must be a positive integer');for(let x=0;x<a;x++){const V=Math.floor(Math.random()*16);d.push(m[V])}return d.join("")}getXpath(a){function d(V){const se=V.localName;for(;V.nextElementSibling;)if(V=V.nextElementSibling,V.localName===se)return!0;return!1}function m(V,se){return V?m(V.previousElementSibling,se||V.localName)+(V.localName===se?1:0):1}function x(V){if(!V||V.nodeType!==1)return[""];const se=m(V)>1||d(V)?`${V.localName.toLowerCase()}[${m(V)}]`:V.localName.toLowerCase();return[...x(V.parentNode),se]}return x(a).join("/")}getAge(a){return a-this._timeOrigin}getConnectionType(){var a;let d;if(typeof navigator!="undefined"){const m=navigator;d=(a=m==null?void 0:m.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,m=[a];let x=0;for(;m.length;){const V=m.pop();if(typeof V=="boolean")x+=4;else if(typeof V=="string")x+=V.length*2;else if(typeof V=="number")x+=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)x+=V.byteLength;else if(typeof V=="object"){const se=V;if(!d.has(se)){d.add(se);for(const Pe in se)m.push(se[Pe])}}}return x}noProdThrow(a){if(!C.isProduction)throw a}isAllowedOrigin(a,d){return Array.isArray(d)&&d.some(m=>m==="*"||a===m||m instanceof RegExp&&m.test(a))}roundNumber(a,d){const m=Math.pow(10,d);return Math.round(a*m)/m}roundNumbersInObject(a,d){a&&Object.entries(a).forEach(([m,x])=>{typeof x=="number"&&(a[m]=this.roundNumber(x,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 C=Object.freeze(t);class F{constructor(a,d,m,x,V,se,Pe){this._name=a,this._ownerName=d,this._ownerAppName=m,this._tags=x,this._value=0,this._createdOn=V===void 0?C.time().tsNow:V,se!==void 0&&(this._lastUpdatedOn=se),Pe!==void 0&&(this._value=Pe)}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=C.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 M="co11y";class O{constructor(){this._upCounters=new Map,this._ownerAppName=M}_addOrUpdateCounter(a,d,m){if(!a)return;const x={status:m},V=`${this._ownerAppName}:${d}:${a}${JSON.stringify(x)}`;let se=this._upCounters.get(V);se||(se=new F(a,d,this._ownerAppName,x),this._upCounters.set(V,se)),se.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 u=new O;class f{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 m=this._lazyMap.get(a);if(!m){if(this.maxSize!==void 0&&this.size===this.maxSize)return!1;m=new Array,this._lazyMap.set(a,m)}return m.push(d),!0}getMessages(a,d){const m=this._lazyMap.get(a);return d&&this._lazyMap.has(a)&&this._lazyMap.set(a,[]),m||[]}getAllMessages(a){const d=new Map;for(const[m,x]of this._lazyMap.entries())x.length&&d.set(m,this.getMessages(m,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 s{getSchemaId(a){return`${a.namespace}.${a.name}`}isInternal(a){return(a==null?void 0:a.namespace)==="sf.instrumentation"}makePayload(a,d,m=!0){if(!m||a!==void 0&&d!==void 0)return{schema:a,payload:d}}checkSchema(a){return C.requireArgument(a,"schema","object"),C.requireArgument(a.namespace,"schema.namespace","string"),C.requireArgument(a.name,"schema.name","string"),C.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((m,x)=>{const V=m.nested;if(V){const se=V[x];if(se)return se}throw new Error(`Cannot locate ${d.join(".")} in schema with ID ${this.getSchemaId(a)}`)},a.pbjsSchema)}getTypes(a){const d=this.checkSchema(a),x=this._getAnyNestedObject(a,[d.domain,d.feature]).nested;if(!x)throw new Error(`Cannot parse schema with ID ${this.getSchemaId(a)}`);return x}getType(a,d){C.requireArgument(d,"messageName","string");const x=this.getTypes(a)[d];if(!x)throw new Error(`Cannot locate message ${d} in schema with ID ${this.getSchemaId(a)}`);return x}getOptions(a,d,m){m&&C.requireArgument(d,"messageName","string");const x=this.checkSchema(a);if(!d)return this._getAnyNestedObject(a,[x.domain,x.feature]).options;const V=this.getType(a,d);if(!m)return V.options;const se=V.fields[m];if(!se){const Pe=this.getSchemaId(a);throw new Error(`Cannot locate field ${m} in message ${d} in schema with ID ${Pe}`)}return se.options}getExtraFields(a,d){const{message:m}=this._getTokens(a),V=this.getTypes(a)[m].fields,se=new Set(Object.keys(V));return d!=null?Object.keys(d).filter(Le=>!se.has(Le)):[]}}const c=new s,g=1e4,S=1e4,P=0,T=2147483647,w=-2147483648,j=4294967295,N=9223372036854776e3,k=-9223372036854776e3,Y=18446744073709552e3;class A{constructor(a,d,m,x){this.errorCode=a,this.fields=d,this.expected=m,this.received=x}asMessage(a){const d=this.fields[0]+this.fields.slice(1).reduce((x,V)=>Number(V)>=0?`${x}[${V}]`:`${x}.${V}`,"");let m;switch(this.errorCode){case 1:m="Repeated field must be an array";break;case 2:m=`Expected type ${this.expected} but received type ${this.received}`;break;case 3:m="Value must be finite";break;case 4:m="Value is out of range for its type";break;case 5:m="Bytes array is malformed";break;case 6:m="Exceeded app limit for maximum string length";break;case 7:m="Exceeded app limit for item count";break;case 12:m="Value must be an integer";break;case 13:m="Values like null or undefined are not allowed for items in repeated fields";break;default:m=`Unknown error code: ${this.errorCode}`;break}return`Schema ${a} on field "${d}": ${m}`}}class U{validate(a,d,m=!1){const x=c.checkSchema(a);C.requireArgument(d,"data","object");const V=c.getSchemaId(a),se=new Array,Pe=c.getTypes(a);if(this._validateFields(se,[],d,Pe[x.message],Pe,V),se.length&&!m)throw new Error(se[0].asMessage(V));return se}_validateFields(a,d,m,x,V,se){const Pe=x.oneofs||{},Le=x.fields||{};for(const Oe in m){const Me=m[Oe];if(Me!=null){const K=(pe,G,be)=>this._matchFieldTypes(a,[...d,Oe],Me,pe,V,se,Oe,G,be);Pe[Oe]?K(Le[Pe[Oe].oneof[0]].type):Le[Oe]&&K(Le[Oe].type,Le[Oe].rule==="repeated")}}}_matchFieldTypes(a,d,m,x,V,se,Pe,Le,Oe){let Me;if(Le)Array.isArray(m)?(m.length>S&&(Me=7),m.forEach((K,pe)=>{this._matchFieldTypes(a,[...d,pe.toString()],K,x,V,se,Pe,void 0,!0)})):Me=1;else if(m==null||m===void 0)Oe&&(Me=13);else{let K,pe;switch(x){case"string":pe="string",m.length>g&&(Me=6);break;case"bytes":pe="object",m instanceof Uint8Array||(Me=5);break;case"bool":pe="boolean";break;case"uint32":pe="number",K={min:P,max:j,isInt:!0,isItem:Oe};break;case"int32":case"sint32":case"fixed32":case"sfixed32":pe="number",K={min:w,max:T,isInt:!0,isItem:Oe};break;case"uint64":pe="number",K={min:P,max:Y,isInt:!0,isItem:Oe};break;case"fixed64":case"sfixed64":case"int64":case"sint64":pe="number",K={min:k,max:N,isInt:!0,isItem:Oe};break;case"double":case"float":pe="number",K={min:Number.NEGATIVE_INFINITY,max:Number.POSITIVE_INFINITY,isInt:!1,isItem:Oe};break;default:new Set(Object.keys(V)).has(x)&&(this._validateFields(a,d,m,V[x],V,se),pe="object");break}typeof m!==pe?a.push(new A(2,d,x,typeof m)):K&&(K.isInt&&!Number.isFinite(m)?Me=3:K.isInt&&!Number.isInteger(m)?Me=12:!(!K.isInt&&Number.isNaN(m))&&!(m>=K.min&&m<=K.max)&&(Me=4))}Me&&a.push(new A(Me,d))}}const q=new U;class ce{_getMetricTags(a){const d=a.getTags();if(d)return Object.entries(d).map(m=>({name:m[0],value:m[1].toString()}))}getUpCounters(a,d=!0){return a.map(m=>{const x={name:m.getName(),createdTimestamp:m.getCreatedOn(),lastUpdatedTimestamp:m.getLastUpdatedOn(),value:m.getData(),ownerName:m.getOwnerName(),ownerAppName:m.getOwnerAppName(),tags:this._getMetricTags(m)};return d&&m.reset(),x})}getValueRecorders(a,d=!0){return a.map(m=>{const x={name:m.getName(),createdTimestamp:m.getCreatedOn(),lastUpdatedTimestamp:m.getLastUpdatedOn(),values:m.getData(),ownerName:m.getOwnerName(),ownerAppName:m.getOwnerAppName(),tags:this._getMetricTags(m)};return d&&m.reset(),x})}getBucketHistograms(a,d=!0){return a.map(m=>{const x={name:m.getName(),createdTimestamp:m.getCreatedOn(),lastUpdatedTimestamp:m.getLastUpdatedOn(),values:m.getData(),buckets:m.getBuckets(),ownerName:m.getOwnerName(),ownerAppName:m.getOwnerAppName(),tags:this._getMetricTags(m)};return d&&m.reset(),x})}getMetricsTags(a){const d={};return a.forEach(m=>{d[m.name]=m.value}),d}}const te=Object.freeze(new ce);class W{checkInputs(a,d){c.checkSchema(a),C.requireArgument(d,"data","object");let m,x;d.userPayload!==void 0&&c.isInternal(a)&&(x=d.userPayload,m=q.validate(x.schema,x.payload,!0),this._processValidationResults(c.getSchemaId(x.schema),x.payload,m),d.userPayload=void 0),m=q.validate(a,d,!0),this._processValidationResults(c.getSchemaId(a),d,m),x!==void 0&&(d.userPayload=x)}getExtraFields(a,d){C.requireArgument(d,"data","object");const m=[],x=d.userPayload;return x!==void 0&&c.isInternal(a)&&m.push(...c.getExtraFields(x.schema,x.payload)),m.push(...c.getExtraFields(a,d)),m}getPayloadFromProvider(a,d){const m=(a==null?void 0:a.getPayload(d))||void 0;return m&&this.checkInputs(m.schema,m.payload),m}_processValidationResults(a,d,m){for(let x=0;x<m.length;x+=1){const V=m[x];if(V.errorCode==6||V.errorCode==7){const se=V.fields.length-1,Pe=this._traverseFields(d,V.fields.slice(0,se)),Le=V.fields[se];V.errorCode==6?Pe[Le]=Pe[Le].substring(0,g):Pe[Le].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 Q=Object.freeze(new W),ke="o11y";class fe{constructor(a){this._errorCounter=a,this._safeCatchMode=!1}_callCo11y(a,d){d?u.exception(a==null?void 0:a.op,ke):u.success(a==null?void 0:a.op,ke)}tryCatch(a,d){let m;try{a()}catch(x){m=!0,this._prodSafeCatch(x)}finally{this._callCo11y(d,m)}}tryCatchReturn(a,d,m){let x;try{return C.requireArgument(d,"noopValue"),a()}catch(V){return x=!0,this._prodSafeCatch(V),d}finally{this._callCo11y(m,x)}}_prodSafeCatch(a){let d;try{if(d=!C.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 m=a&&a.message||(typeof a.toString=="function"?a.toString():"");a=new Error(m)}this._safeCatchMode=!1}catch(m){if(d)throw m;if(m&&console&&typeof console.error=="function")try{console.error(m)}catch(x){}this._safeCatchMode=!1}}}r.Co11yImpl=O,r.LazyMapToList=f,r.MetricsUtility=ce,r.PublicSafety=fe,r.UpCounterImpl=F,r.ValidationEntry=A,r.co11y=u,r.logValidator=q,r.maxItemCountAppLimit=S,r.maxStringLengthAppLimit=g,r.metricsUtility=te,r.payloadUtility=Q,r.schemaUtil=c,r.utility=C,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("o11y/shared",["exports","o11y/shared/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("o11y_schema/sf_instrumentation/v/254_87_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"}}}}}}}}}},C={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"}}}}}}}}}},M={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"}}}}}}}}}},O={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"}}}}}}}}}},u={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"}}}}}}}}}},f={namespace:"sf.instrumentation",name:"Network",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Network:{fields:{mtd:{id:1,type:"string"},url:{id:2,type:"string"}}}}}}}}}},s={namespace:"sf.instrumentation",name:"Payload",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Payload:{fields:{payload:{id:2,type:"bytes"},schemaName:{id:1,type:"string"}}}}}}}}}},c={namespace:"sf.instrumentation",name:"PayloadDiags",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{PayloadDiags:{fields:{extras:{rule:"repeated",id:1,type:"string"}}}}}}}}}},g={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=C,r.eventSchema=F,r.idleDetectorReportSchema=M,r.instrumentedEventSchema=O,r.mouseEventSchema=u,r.networkSchema=f,r.payloadDiagsSchema=c,r.payloadSchema=s,r.simpleSchema=g,r.webVitalsSchema=S,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("o11y_schema/sf_instrumentation",["exports","o11y_schema/sf_instrumentation/v/254_87_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/1",["exports","o11y_schema/sf_instrumentation/v/254_87_0","o11y/shared/v/1"],function(r,e,t){"use strict";class E{get isBusy(){return this._isOk?this._busyCount>0:void 0}constructor(n,i,o,l){this.name=n,this._doneCallback=o,this._overDoneCallback=l,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 C=300;class F{constructor(n){this._taskers=new Map,this._listeners=new Set,this._busyCheckers=new Map,this._logThreshold=C,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 p=this._taskers.get(o);p.start=t.utility.time().perfNow,p.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 l;(l=this._errorListener)===null||l===void 0||l.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 l=i[0],p=i[1];try{return l()}catch(v){return(o=this._errorListener)===null||o===void 0||o.call(this,v,`BusyChecker ${p}`),t.utility.noProdThrow(v),!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 l=this._endedTasks.splice(0),p=this._pollableReport.splice(0);this._notify(o,i,l,p)}}}_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,l){var p;if(i>=this._logThreshold&&this._reportListener){const X=this._getReport(i,n.length,o,l);this._reportListener(X)}n.reverse();const v=t.utility.time().tsNow;for(const[X,we]of n.entries())try{we(v)}catch(Re){(p=this._errorListener)===null||p===void 0||p.call(this,Re,`Listener #${n.length-1-X}`),t.utility.noProdThrow(Re)}}getReport(){const n=t.utility.time().perfNow,i=this._firstCallbackTime>0?n-this._firstCallbackTime:void 0,o=Array.from(this._taskers.entries()).filter(l=>l[0].isBusy).map(l=>({name:l[1].name,start:l[1].start,end:n}));return this._getReport(i,this._listeners.size,this._endedTasks.concat(o),this._pollableReport)}_getReport(n,i,o,l){const p=o.map(v=>({name:v.name,duration:v.end-v.start})).sort((v,X)=>X.duration-v.duration);return{logThreshold:this._logThreshold,maxDuration:n,listenerCount:i,pollableCount:this._busyCheckers.size,busyTasks:p.map(v=>v.name),busyDurations:p.map(v=>v.duration),pollables:l.map(v=>v.name),pollCounts:l.map(v=>v.count)}}}const M={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"}}}}}}}}}},O={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 u{constructor(n){this._fuzzyKeyRange=n,this._map=new Map,t.utility.requireArgument(n,"_fuzzyKeyRange","number")}add(n,i,o){const l=this._map.get(n);l?l.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 l=Number.POSITIVE_INFINITY,p=-1;for(let v=0;v<o.length;v++){const{fuzzyKey:X}=o[v],we=Math.abs(X-i);we<=this._fuzzyKeyRange&&we<l&&(l=we,p=v)}if(p>=0){const{value:v}=o.splice(p,1)[0];return o.length===0&&this._map.delete(n),v}}}clear(){this._map.clear()}}const f=["fetch","xmlhttprequest"];class s{constructor(n,i,o,l,p){if(this._instr=n,this._skipUrls=o,this._logPerformanceActivityName=l,this._boundObserverCallback=this._logPerformanceEntries.bind(this),this._boundNavigationTimingEventCallback=v=>{this._logNavigationEntries(v)},this._setTimeoutNavigationCallback=v=>{setTimeout(()=>{this._boundNavigationTimingEventCallback(v)},0)},this._visibilityChangeNavigationCallback=v=>{document.visibilityState==="hidden"&&this._boundNavigationTimingEventCallback(v)},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(l,"_logPerformanceActivityName","string"),t.utility.requireArgumentIfDefined(p,"logLevel","string"),this._hasPerf=typeof performance!="undefined"&&typeof PerformanceObserver=="function",this._hasWindow=typeof window!="undefined",!p||p.toLowerCase()==="full")this._logLevel=1;else if((p==null?void 0:p.toLowerCase())==="basic")this._logLevel=0;else throw new Error(`Invalid log level: ${p}`);this._fuzzyMapper=new u(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 l={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},p=n.serverTiming;return Array.isArray(p)&&(l.dbDuration=(i=p.find(v=>v.name==="db"))===null||i===void 0?void 0:i.duration,l.srvDuration=(o=p.find(v=>v.name==="Total"))===null||o===void 0?void 0:o.duration),l}_shouldInclude(n){var i;return((i=this._skipUrls)===null||i===void 0?void 0:i.some(l=>l instanceof RegExp?l.test(n.name):n.name===l))?!1:this._logLevel===1?!0:f.indexOf(n.initiatorType)>=0||n.entryType==="navigation"}_logActivity(n,i,o,l){const p={id:o},v={perfStartOverride:i.startTime,perfStopOverride:i.startTime+i.duration,errorCount:l};this._instr.startActivity(this._logPerformanceActivityName,p).stop(n,i,v)}_logNavigationEntries(n){if(!this._processedNavigationTiming)for(const i of performance.getEntriesByType("navigation")){const o=i;if(this._shouldInclude(o)){this._processedNavigationTiming=!0;const l=this._resourceEntryToResourceTiming(o),p={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(M,Object.assign(l,p))}break}}_logPerformanceEntries(n){for(const i of n.getEntriesByType("resource")){const o=i,l=this._fuzzyMapper.pop(o.name,o.startTime);if(this._shouldInclude(o)){const p=this._resourceEntryToResourceTiming(o);Object.assign(p,{srvReqId:l==null?void 0:l.requestId,xhrDelay:l?l.activityDuration-o.duration:void 0}),p.responseStatus===void 0&&(p.responseStatus=l==null?void 0:l.responseStatus),this._logActivity(O,p,l==null?void 0:l.activityId,l==null?void 0:l.errorCount)}}}}const c=32,g=16,S=16,P="traceparent",T="b3",w="X-B3-TraceId",j="X-B3-SpanId",N="X-B3-Sampled",k="X-B3-ParentSpanId",Y="X-SFDC-Request-Id",A="fetch",U="xhr_send",q="perf-timing",ce=50,te=new WeakMap;class W{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,l){let p=`${n}-${i}`;return(o!==void 0||l!==void 0)&&(p+=o?"-1":"-0",l!==void 0&&(p+=`-${l}`)),p}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 l=0;l<o;l+=1){const p=n[l];if(!(p>="a"&&p<="f")&&!(p>="0"&&p<="9"))throw new Error(`The text '${n}' has an invalid character at index #${l}`)}return o>i?n.substr(o-i):o<i?n.padStart(i,"0"):n}static getHeaders(n,i,o,l){t.utility.requireArgument(i,"spanId","string");const p=l==null?void 0:l.useB3Headers,v={};if(n===void 0)return v;n=this._conformTextAsId(n,(l==null?void 0:l.traceIdEffectiveLength)!==void 0?l.traceIdEffectiveLength:p?g:c),i=this._conformTextAsId(i,S);const X=l&&l.parentSpanId!==void 0&&this._conformTextAsId(l.parentSpanId,S)||void 0;return p?(l==null?void 0:l.useCompactHeader)?v[T]=this._getB3CompactFormat(n,i,o,X):(v[w]=n,v[j]=i,X!==void 0&&(v[k]=X),o!==void 0&&(v[N]=o?"1":"0")):v[P]=this._getW3CompactFormat(n,i,o),v}_disableNetworkInstrumentation(){W._isNetworkInstrumentationEnabled&&(W._originalFetch&&(W._global.fetch=W._originalFetch,W._originalFetch=void 0),W._originalXhr&&(W._global.XMLHttpRequest=W._originalXhr,W._originalXhr=void 0),W._originalXhrOpen&&(W._global.XMLHttpRequest.prototype.open=W._originalXhrOpen,W._originalXhrOpen=void 0),W._originalXhrSetRequestHeader&&(W._global.XMLHttpRequest.prototype.setRequestHeader=W._originalXhrSetRequestHeader,W._originalXhrSetRequestHeader=void 0),W._originalXhrSend&&(W._global.XMLHttpRequest.prototype.send=W._originalXhrSend,W._originalXhrSend=void 0),W._performanceObservability&&(W._performanceObservability.stop(),W._performanceObservability=void 0),W._isNetworkInstrumentationEnabled=!1)}_enableNetworkInstrumentation(n,i,o,l,p,v,X,we,Re,_e){typeof W._global.fetch=="function"&&(this._overrideFetch(n,i,o,l,p,v,Re),W._isNetworkInstrumentationEnabled=!0),typeof W._global.XMLHttpRequest=="function"&&(this._overrideXhr(n,i,o,l,p,v,Re),W._isNetworkInstrumentationEnabled=!0),X&&(W._performanceObservability=new s(n,_e,Re,we,X===!0?"full":X),W._performanceObservability.start(),W._isNetworkInstrumentationEnabled=!0)}static _getTraceHeaders(n,i,o,l,p){let v;if(n)v=n.getTraceHeaders(o)||{};else{const X=i.internalInstrumentationContext;(X==null?void 0:X.rootId)?v=W.getHeaders(X.rootId,t.utility.generateUniqueId(),X.isRootActivitySampled,o):v={}}if(typeof(o==null?void 0:o.headerProcessor)=="function")v=o.headerProcessor({method:l,url:p,defaultHeaders:v});else if(typeof window=="object"){let X;try{X=new URL(p)}catch(we){}X&&X.host!==window.location.host&&(v=void 0)}return v||{}}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 l=o.headers.find(p=>p[0]===n);return l==null?void 0:l[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,l,p,v,X){W._originalFetch=W._global.fetch;const we=async(Re,_e,...Se)=>{var je;let he,Ne,Fe,dt,ft,h=!1,D;try{v==null||v.add(),dt=_e==null?void 0:_e.method;const $=_e==null?void 0:_e.o11y,ae=$==null?void 0:$.skipInstr;if(h=ae||W._shouldSkipUrl(X,Re),!h)he=n.startActivity(o||A);else if(ae){W._reqIndex+=1;try{if(Re instanceof URL)Re.searchParams.append("o11y",W._reqIndex.toString());else if(typeof Re=="string"){const ue=new URL(Re),ye=`o11y=${W._reqIndex}`;ue.search+=ue.search.startsWith("?")?`&${ye}`:ye,Re=ue.toString()}}catch(ue){}}if(_e==null||delete _e.o11y,Ne=Re==null?void 0:Re.toString(),Fe=t.utility.tryGetAbsoluteUrl(Ne),l){Re instanceof Request&&(dt||(dt=Re.method),Ne=Re.url,Fe=t.utility.tryGetAbsoluteUrl(Ne));const ue=W._getTraceHeaders(he,n,p,dt,Fe);!this._applyTraceHeaders(Re,_e,ue)&&_e===void 0&&(_e={headers:ue})}return ft=t.utility.perfNow(),D=await W._originalFetch.call(W._global,Re,_e,...Se),D}catch($){throw i&&!h&&(he?he.error($):n.error($)),$}finally{try{const $=W._endActivity(he,Ne,dt);if((je=W._performanceObservability)===null||je===void 0?void 0:je.isStarted){const ae=W._extractHeader(Y,Re,_e);W._performanceObservability.addEntry(Fe,ft,{requestId:ae,activityDuration:$,activityId:he==null?void 0:he.getId(),errorCount:he==null?void 0:he.getErrorCount(),responseStatus:D==null?void 0:D.status})}}finally{v==null||v.done()}}};W._global.fetch=we}static _endActivity(n,i,o){var l;if(n)return((l=W._performanceObservability)===null||l===void 0?void 0:l.isStarted)?n.discard():n.stop(e.networkSchema,{mtd:o,url:i}),n.getStopPerfTime()-n.getStartPerfTime()}_overrideXhr(n,i,o,l,p,v,X){W._originalXhr=W._global.XMLHttpRequest,W._originalXhrOpen=W._originalXhr.prototype.open,W._originalXhrSetRequestHeader=W._originalXhr.prototype.setRequestHeader,W._originalXhrSend=W._originalXhr.prototype.send;function we(_e,Se){var je;const he=te.get(_e);if(he){const Ne=he.activity,Fe=W._endActivity(Ne,he.url,he.method);!Se&&((je=W._performanceObservability)===null||je===void 0?void 0:je.isStarted)&&W._performanceObservability.addEntry(he.absoluteUrl,he.sendTime,{requestId:he.requestId,activityDuration:Fe,activityId:Ne==null?void 0:Ne.getId(),errorCount:Ne==null?void 0:Ne.getErrorCount(),responseStatus:_e.status})}}W._originalXhr.prototype.open=function(_e,Se,je,he,Ne){const Fe={method:_e,url:Se==null?void 0:Se.toString()};te.set(this,Fe),Fe.absoluteUrl=t.utility.tryGetAbsoluteUrl(Fe.url),Fe.suspendInstrumentation=W._shouldSkipUrl(X,Fe.absoluteUrl),W._originalXhrOpen.apply(this,arguments)},W._originalXhr.prototype.setRequestHeader=function(_e,Se){var je;if(((je=_e==null?void 0:_e.toLowerCase)===null||je===void 0?void 0:je.call(_e))===Y.toLowerCase()){const he=te.get(this);he&&(he.requestId=Se)}W._originalXhrSetRequestHeader.apply(this,arguments)},W._originalXhr.prototype.send=function(..._e){let Se;const je=this;let he=te.get(je);he||(he={},te.set(je,he));try{if(v==null||v.add(),he.suspendInstrumentation||(he.activity=Se=n.startActivity(o||U)),l){const Ne=W._getTraceHeaders(Se,n,p,he.method,he.absoluteUrl);Object.entries(Ne).forEach(Fe=>{je.setRequestHeader(Fe[0],Fe[1])})}he.sendTime=t.utility.perfNow(),W._originalXhrSend.call(this,..._e)}catch(Ne){throw i&&!(he==null?void 0:he.suspendInstrumentation)&&(Se?Se.error(Ne):n.error(Ne)),we(je,!0),v==null||v.done(),Ne}};const Re=new Proxy(W._originalXhr,{construct(_e){const Se=new _e;return Se.addEventListener("load",()=>{we(Se),v==null||v.done()}),Se.addEventListener("error",je=>{const he=te.get(Se)||{};try{if(i&&!(he==null?void 0:he.suspendInstrumentation)){const Ne=new Error("XHR Network-Level Error"),Fe=he==null?void 0:he.activity;Fe?Fe.error(Ne):n.error(Ne)}we(Se)}finally{v==null||v.done()}}),Se.addEventListener("abort",()=>{var je;const he=te.get(Se)||{};(je=he==null?void 0:he.activity)===null||je===void 0||je.discard(),v==null||v.done()}),Se}});W._global.XMLHttpRequest=Re}networkInstrumentation(n){var i;if(t.utility.requireArgument(n,"options",["boolean","object"]),this._disableNetworkInstrumentation(),n){const o=typeof n=="object"?n:{};let l;t.utility.definedValueOrDefault(o.useTasker,!0)&&(l=(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,l,t.utility.definedValueOrDefault(o.logPerformance,!0),t.utility.definedValueOrDefault(o.logPerformanceActivityName,q),t.utility.definedValueOrDefault(o.skipUrls,[]),t.utility.definedValueOrDefault(o.fuzzyMapRange,ce))}}resetRequestCounter(){W._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(([l,p])=>{i.headers.set(l,p)}),!0;if(Array.isArray(i.headers))return Object.entries(o).forEach(l=>{i.headers.push(l)}),!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(([l,p])=>{n.headers.set(l,p)}),!0;if(i)return i.headers=Object.assign({},o),!0}return!1}static _shouldSkipUrl(n,i){var o;let l=i;return i instanceof URL?l=(o=i.toString)===null||o===void 0?void 0:o.call(i):i instanceof Request&&(l=i.url),n==null?void 0:n.some(p=>p instanceof RegExp?p.test(l):l===p)}}W._global=t.utility.getGlobal(),W._isNetworkInstrumentationEnabled=!1,W._reqIndex=0;var Q;(function(Ee){Ee[Ee.none=0]="none",Ee[Ee.start=1]="start",Ee[Ee.stop=2]="stop",Ee[Ee.both=3]="both"})(Q||(Q={}));const ke="timedout",fe="terminated",re="discarded",a={timedout:ke,terminated:fe,discarded:re};class d{constructor(n,i,o,l,p,v,X,we,Re){this._name=n,this._rootId=i,this._onStopped=o,this._onError=l,this._isSampled=X,this._noRerooting=Re,this._isRoot=!1,this._errorCount=0,this._timerOverridden=Q.none;const{tsNow:_e,perfNow:Se}=t.utility.time();if(d._count+=1,this._id=v||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(je){this._usePerf=!1}}this._startTimestamp=_e,this._startPerfTime=Se,this._overrideTimer(we),p>0&&(this._timer=setTimeout(()=>{this._stopReason=this._stopReason||a.timedout,this.stop()},p)),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 l=o.perfStartOverride,p=t.utility.requireArgumentIfDefined(l,"options.perfStartOverride","number"),v=o.perfStopOverride,X=t.utility.requireArgumentIfDefined(v,"options.perfStopOverride","number"),we=o.errorCount;if(t.utility.requireArgumentIfDefined(we,"options.errorCount","number")&&(this._errorCount=we),p&&l<0)throw new Error("perfStartOverride, if defined, must be >= 0");if(X&&(v<0||v<(p?l:this._startPerfTime)||v>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(Q.start)),i!==void 0&&(this._stopPerfTime=i,this._setTimerOverride(Q.stop))}_setTimerOverride(n){this._timerOverridden===Q.both||this._timerOverridden===n||n===Q.none||(this._timerOverridden=this._timerOverridden===Q.none?n:Q.both)}_stopInternal(n,i,o){const l=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(v){}if(this._timer&&(clearTimeout(this._timer),this._timer=void 0),this.isStopped)return;o&&this._overrideTimer(o.perfStartOverride,o.perfStopOverride),this._stopPerfTime=this._timerOverridden===Q.none||this._timerOverridden===Q.start?l:this._stopPerfTime;const p=this._getDetail(n,i);this._onStopped(p)}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 W.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 m=new Array(16).fill(0).join("");class x{getId(){return m}getRootId(){}error(){}stop(){}discard(){}terminate(){}getIsSampled(){return!1}getTraceHeaders(n){return{}}getStartTimestamp(){}getStartPerfTime(){}getStopPerfTime(){}getErrorCount(){return 0}}const V=Object.freeze(new x);class se{getInstrumentedEventData(n,i,o,l){var p;const v={ownerComponent:o.tagName,parentComponent:((p=o.parentElement)===null||p===void 0?void 0:p.tagName)||void 0,simplePath:t.utility.getXpath(o)};switch(n){case 0:v.baseEvent=i;break;case 1:v.mouseEvent=i;break}return l&&(v.userPayload=t.schemaUtil.makePayload(l.schema,l.payload,!0)),v}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 Le=new se;class Oe{constructor(n,i,o,l,p,v,X,we){this._name=n,this._ownerName=i,this._ownerAppName=o,this._tags=l,this._buckets=p,this._values=new Array,this._createdOn=v===void 0?t.utility.time().tsNow:v,X!==void 0&&(this._lastUpdatedOn=X),we!==void 0&&(this._values=we)}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 Me{constructor(n,i,o,l,p,v,X){this._name=n,this._ownerName=i,this._ownerAppName=o,this._tags=l,this._values=new Array,this._createdOn=p===void 0?t.utility.time().tsNow:p,v!==void 0&&(this._lastUpdatedOn=v),X!==void 0&&(this._values=X)}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 K{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 pe=1e3,G=500,be=500;var Ce;(function(Ee){Ee[Ee.Counter=0]="Counter",Ee[Ee.Percentile=1]="Percentile",Ee[Ee.BucketHistogram=2]="BucketHistogram"})(Ce||(Ce={}));class Ve{constructor(n,i){this._ownerName=n,this._getOwnerAppName=i,this._upCounters=new K(pe),this._valueRecorders=new K(G),this._bucketHistograms=new K(be)}incrementCounter(n,i,o=!1,l={}){this._tagError(l,o),this._upCounter(n,l).increment(i)}trackValue(n,i,o=!1,l={}){this._tagError(l,o),this._valueRecorder(n,l).record(i)}bucketValue(n,i,o,l=!1,p={}){this._tagError(p,l),this._bucketHistogram(n,p,o).record(i)}_bucketHistogram(n,i,o){const{key:l,sortedTags:p}=this._getKeyAndSortedTags(n,i,Ce.BucketHistogram);let v=this._bucketHistograms.get(l);if(!v&&(v=new Oe(n,this._ownerName,this._getOwnerAppName(),p,o),!this._bucketHistograms.set(l,v)))throw new Error(`Max size of ${be} exceeded for BucketHistograms`);return v}_upCounter(n,i){const{key:o,sortedTags:l}=this._getKeyAndSortedTags(n,i,Ce.Counter);let p=this._upCounters.get(o);if(!p&&(p=new t.UpCounterImpl(n,this._ownerName,this._getOwnerAppName(),l),!this._upCounters.set(o,p)))throw new Error(`Max size of ${pe} exceeded for UpCounters`);return p}_valueRecorder(n,i){const{key:o,sortedTags:l}=this._getKeyAndSortedTags(n,i,Ce.Percentile);let p=this._valueRecorders.get(o);if(!p&&(p=new Me(n,this._ownerName,this._getOwnerAppName(),l),!this._valueRecorders.set(o,p)))throw new Error(`Max size of ${G} exceeded for ValueRecorders`);return p}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 l=Object.keys(i).sort().reduce((v,X)=>(v[X]=i[X],v),{});return{key:`${Ce[o]}:${n}${JSON.stringify(l)}`,sortedTags:l}}}class Be{constructor(){this.isMock=!0}}const Ge=void 0,qe=["`"],Ke={internalError:"o11y-error"},Je=Object.freeze(Array.from(Object.values(Ke)));class Ye{constructor(n,i){this._nextGen=n,this._name=i,this._onActivityStoppedCallback=this._handleActivityStop.bind(this),this._onActivityErrorCallback=this._handleActivityError.bind(this);for(const l of qe)if(this._name.indexOf(l)>=0)throw new Error(`Name cannot include the reserved character "${l}"`);this._safety=new t.PublicSafety({increment:l=>this._incrementError(l)}),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 Ve(this.name,()=>this._nextGen.appName||Ye.defaultAppName)}_incrementError(n=1){this._metrics.incrementCounter(Ke.internalError,n,!0)}get name(){return this._name}_wrapUserPayload(n,i,o=!1){let l;return typeof n=="string"?(l=e.simpleSchema,n?i={text:n.substring(0,this._simpleTextMaxLength)}:i=void 0):l=n,t.schemaUtil.makePayload(l,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 l=t.utility.time().tsNow;t.utility.requireArgument(n,"userSchemaOrText",["object","string"]),t.utility.requireArgumentIfDefined(i,"userData","object"),t.utility.requireArgumentIfDefined(o,"options","object");const p=this._wrapUserPayload(n,i);(p==null?void 0:p.payload)&&this._logInternal(this.name,p.schema,p.payload,l,this._getEffectiveRootId(o))},{op:"log"})}_logInternal(n,i,o,l,p){const v=this._nextGen.addLog(n,i,o,l,p);if(!t.utility.isProduction){const X=t.payloadUtility.getExtraFields(i,o);!t.utility.isProduction&&X.length>0&&this.error("Extra fields",e.payloadDiagsSchema,{extras:X})}return v}error(n,i,o,l){return this._safety.tryCatch(()=>{t.utility.requireArgumentIfDefined(i,"userSchemaOrText",["object","string"]),t.utility.requireArgumentIfDefined(o,"userData","object"),t.utility.requireArgumentIfDefined(l,"options","object");const p=this._getEffectiveRootId(l);this._errorInternal(n,i,o,void 0,p)},{op:"error"})}_errorInternal(n,i,o,l,p){const v=t.utility.time().tsNow;let X;if(n instanceof Error)X=n;else{let _e;n==null||typeof n.toString!="function"?_e="UNKNOWN":_e=n.toString(),X=new Error(_e)}const we=this._wrapUserPayload(i,o,!0),Re={name:X.name,message:X.message,stack:X.stack,userPayload:we,activityId:l};return this._logInternal(this.name,e.errorSchema,Re,v,p)}startActivity(n,i){return this._safety.tryCatchReturn(()=>{var o;t.utility.requireArgument(n,"name"),t.utility.requireArgumentIfDefined(i,"options","object");let l,p=(i==null?void 0:i.perfStartOverride)!==void 0;const v=(o=i==null?void 0:i.instrumentationContext)===null||o===void 0?void 0:o.rootId;return v?(p=!0,l={rootId:v,isRootActivitySampled:i.instrumentationContext.isRootActivitySampled}):l=this._nextGen.getDefaultInstrumentationContext(),new d(n,l.rootId,this._onActivityStoppedCallback,this._onActivityErrorCallback,Ge,i==null?void 0:i.id,l.isRootActivitySampled,i==null?void 0:i.perfStartOverride,p)},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===re)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,l,p){this._safety.tryCatch(()=>{var v;const X=t.utility.time().tsNow;t.utility.requireArgument(n,"event",[Event,Be]),t.utility.requireArgument(i,"handledBy",[HTMLElement,"object"]);let we;i instanceof HTMLElement?we=i:(i=i,((v=i.template)===null||v===void 0?void 0:v.host)instanceof HTMLElement?we=i.template.host:t.utility.requireArgument(void 0,"handledBy"));const Re=this._wrapUserPayload(o,l,!0),_e=this._getEffectiveRootId(p);switch(n.type){case"click":{const Se=n,je=this._nextGen.getClickTracker();je&&je.markEventHandled(Se);const he=p==null?void 0:p.captureMouseData,Ne=Le.getInstrumentedEventData(he?1:0,he?Le.getMouseEventData(Se):Le.getEventData(Se),we,Re);Ne.auto=p==null?void 0:p._auto,this._logInternal(this.name,e.instrumentedEventSchema,Ne,X,_e);break}default:throw new Error(t.utility.notImplemented)}},{op:"domEvent"})}_siftTags(n){const i=Object.assign({},n);return Object.entries(i).forEach(([o,l])=>{if(l===null)i[o]="null";else if(l==="")i[o]="empty";else if(Number.isNaN(l))i[o]="NaN";else{const p=typeof l;["number","string","boolean"].indexOf(p)===-1&&(i[o]=p)}}),i}incrementCounter(n,i=1,o=!1,l={}){this._safety.tryCatch(()=>{t.utility.requireArgument(n,"operation","string"),t.utility.checkForDenyListedValues(n,"operation",Je),t.utility.checkForReservedCharacters(n,"operation",qe),t.utility.requireArgument(i,"increment","number"),t.utility.requireArgument(o,"hasError","boolean"),t.utility.requireArgument(l,"tags","object"),this._metrics.incrementCounter(n,i,o,this._siftTags(l))},{op:"incrementCounter"})}trackValue(n,i,o=!1,l={}){this._safety.tryCatch(()=>{t.utility.requireArgument(n,"operation","string"),t.utility.checkForDenyListedValues(n,"operation",Je),t.utility.checkForReservedCharacters(n,"operation",qe),t.utility.requireArgument(i,"value","number"),t.utility.requireArgument(o,"hasError","boolean"),t.utility.requireArgument(l,"tags","object"),this._metrics.trackValue(n,i,o,this._siftTags(l))},{op:"trackValue"})}bucketValue(n,i,o=[],l=!1,p={}){this._safety.tryCatch(()=>{t.utility.requireArgument(n,"operation","string"),t.utility.checkForDenyListedValues(n,"operation",Je),t.utility.checkForReservedCharacters(n,"operation",qe),t.utility.requireArgument(i,"value","number"),t.utility.requireArgument(o,"buckets",Array),Object.entries(o).forEach(([v,X])=>{t.utility.requireArgument(X,`Bucket value for '${v}'`,"number")}),t.utility.requireArgument(l,"hasError","boolean"),t.utility.requireArgument(p,"tags","object"),this._metrics.bucketValue(n,i,o,l,this._siftTags(p))},{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 l,p,v,X;const we=this._getAsaOptions(o),Re=this.startActivity(n,we);try{return i(Re)}catch(_e){throw Re.error(_e,(l=o==null?void 0:o.errorPayload)===null||l===void 0?void 0:l.schema,(p=o==null?void 0:o.errorPayload)===null||p===void 0?void 0:p.payload),_e}finally{Re.stop((v=o==null?void 0:o.stopPayload)===null||v===void 0?void 0:v.schema,(X=o==null?void 0:o.stopPayload)===null||X===void 0?void 0:X.payload,o==null?void 0:o.stopOptions)}}async activityAsync(n,i,o){var l,p,v,X;const we=this._getAsaOptions(o),Re=this.startActivity(n,we);try{return await i(Re)}catch(_e){throw Re.error(_e,(l=o==null?void 0:o.errorPayload)===null||l===void 0?void 0:l.schema,(p=o==null?void 0:o.errorPayload)===null||p===void 0?void 0:p.payload),_e}finally{Re.stop((v=o==null?void 0:o.stopPayload)===null||v===void 0?void 0:v.schema,(X=o==null?void 0:o.stopPayload)===null||X===void 0?void 0:X.payload,o==null?void 0:o.stopOptions)}}}Ye.defaultAppName="APP_NOT_REGISTERED";const bt=.1,mt=20;class at{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=mt;this._graceCount=Math.max(1,Math.floor(n*bt)),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 l of this._historyList){const p=n-l.startPerfTime;p>=0&&(l.stopPerfTime===void 0||n<l.stopPerfTime)&&p<o&&(i=l,o=p)}return i}}class vt extends d{constructor(n,i,o,l,p,v,X){super(n,void 0,i,o,void 0,l||t.utility.generateUniqueId(X??32),p,v);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 pt=new Array(32).fill(0).join("");class b{getId(){return pt}getRootId(){}error(){}stop(){}discard(){}terminate(){}getIsSampled(){return!1}getTraceHeaders(n){return{}}getStartTimestamp(){}getStartPerfTime(){}getStopPerfTime(){}getErrorCount(){return 0}}const I=Object.freeze(new b);class y extends Ye{constructor(n,i,o){super(n,i);this._allowMulti=o,this._rootActivityHistory=new at,this._onRootActivityStoppedCallback=this._handleRootActivityStop.bind(this)}startRootActivity(n,i,o,l){return this._safety.tryCatchReturn(()=>{if(t.utility.requireArgument(n,"name"),(l==null?void 0:l.id)!==void 0)throw new Error("Cannot specify id for root activity, use rootId argument instead");const p=new vt(n,this._onRootActivityStoppedCallback,this._onActivityErrorCallback,i,o,l==null?void 0:l.perfStartOverride,this._nextGen.preferredRootIdLength);if(!this._allowMulti){const v={id:p.getId(),name:n,startPerfTime:p.getStartPerfTime(),isSampled:p.getIsSampled()};if(this._rootActivityHistory.add(v),this._singleRootActivity&&!this._singleRootActivity.isStopped){const X=this._singleRootActivity.getId();this._singleRootActivity.terminate(),p.preRootId=X}this._singleRootActivity=p}return p},I,{op:"startRootActivity"})}_handleRootActivityStop(n){const i=this._rootActivityHistory.findById(n.id);if(i&&(i.stopPerfTime=n.stopPerfTime,i.startPerfTime=n.startPerfTime),n.stopReason===re)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 Ve(this.name,()=>this.name)}getRootActivityHistoryEntry(n){return this._rootActivityHistory.findByTime(n)}}const L=5;class H{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 l=this._getClickableElement(o);l&&setTimeout(()=>{n!==this._ignoredEvent&&this._instr.domEvent(n,l,void 0,void 0,{_auto:!0})})}_getClickableElement(n){var i,o;const l=n?Math.min(n.length,L):0;for(let p=0;p<l;p+=1){const v=n[p],X=(i=v.tagName)===null||i===void 0?void 0:i.toLowerCase();if(X==="a"||X==="button")return v;if(X==="input"){const we=v;if(((o=we.type)===null||o===void 0?void 0:o.toLowerCase())==="button")return we}}}}const B="o11y:receiver";var z;(function(Ee){Ee[Ee.Unknown=0]="Unknown",Ee[Ee.Opening=1]="Opening"})(z||(z={}));class ne{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:z.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:B,type:ie},"*",[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===Z?this._logCallback(n.data.data):n.data.type===le&&this._metricsCallback(n.data.data)}_messagePortErrorHandler(){this._commErrorCallback()}}const ie="handshake",Z="log",le="metrics";class Te{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===B&&n.data.type===ie&&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:Z,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 Ie{constructor(){this._upCounters=[],this._valueRecorders=[],this._bucketHistograms=[]}add(n){var i,o,l;((i=n.upCounters)===null||i===void 0?void 0:i.length)&&this._upCounters.push(...n.upCounters.map(p=>new t.UpCounterImpl(p.name,p.ownerName,p.ownerAppName,t.metricsUtility.getMetricsTags(p.tags),p.createdTimestamp,p.lastUpdatedTimestamp,p.value))),((o=n.valueRecorders)===null||o===void 0?void 0:o.length)&&this._valueRecorders.push(...n.valueRecorders.map(p=>new Me(p.name,p.ownerName,p.ownerAppName,t.metricsUtility.getMetricsTags(p.tags),p.createdTimestamp,p.lastUpdatedTimestamp,p.values))),((l=n.bucketHistograms)===null||l===void 0?void 0:l.length)&&this._bucketHistograms.push(...n.bucketHistograms.map(p=>new Oe(p.name,p.ownerName,p.ownerAppName,t.metricsUtility.getMetricsTags(p.tags),p.buckets,p.createdTimestamp,p.lastUpdatedTimestamp,p.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 De=1e3;class me{constructor(n,i){this._connector=n,this._pollInterval=De,t.utility.requireArgument(n,"_connector","object"),t.utility.requireArgumentIfDefined(i,"_pollInterval","number")&&i>0&&(this._pollInterval=i)}collect(n,i,o){const l={schema:n,data:i,logMeta:o};this._connector.sendLog(l)}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 Ue=80,xe=32,R="_CUT",oe=Ue-R.length;function de(){}class J{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,l;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:xe,this._clientSessionId=((l=i==null?void 0:i.clientSessionId)===null||l===void 0?void 0:l.toString())||t.utility.generateUniqueId(),this._appInstr=new y(this,n,i==null?void 0:i.allowMultipleRootActivities),this._instruments.set(n,this._appInstr),this._isSender){const X=new me(new Te(window,i==null?void 0:i.allowedReceiverOrigins),i==null?void 0:i.senderMetricsPollingInterval);this.registerLogCollector(X),this.registerMetricsCollector(X)}else this._isReceiver&&(this._metricsStore=new Ie,this._receiverConnector=new ne(X=>{X.logMeta.receiverClientSessionId=this._clientSessionId,X.logMeta.receiverRootId=this._appInstr.getSingleRootActivityId(),this._multiplex(X.schema,X.data,X.logMeta)},X=>{this._metricsStore.add(X)},()=>{this._appInstr.incrementCounter("o11y-error-receiver",1,!0)}));this._isBufferingEnabled=!this._isSender&&(i==null?void 0:i.enableBuffering);const v=new W(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:v.networkInstrumentation.bind(v),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?de:this.registerLogCollector.bind(this),registerMetricsCollector:this._isSender?de: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):de,stopReceiving:this._isReceiver?this._receiverConnector.closeComms.bind(this._receiverConnector):de}}getInstrumentation(n){t.utility.requireArgument(n,"name","string"),n.length>Ue&&(n=n.substring(0,oe)+R);let i=this._instruments.get(n);if(!i)i=new Ye(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,l,p){var v,X,we;t.payloadUtility.checkInputs(i,o),this._sequence+=1;const Re=t.schemaUtil.isInternal(i),_e=Re&&(o==null?void 0:o.userPayload)?o.userPayload.schema:i,Se=t.schemaUtil.getSchemaId(_e);let je=this._seqBySchema.get(Se)||0;je+=1,this._seqBySchema.set(Se,je);const he={timestamp:l,rootId:p,sequence:this._sequence,schemaSequence:je,loggerName:n,pagePayload:void 0,appPayload:void 0,loggerAppName:this.appName,connectionType:t.utility.getConnectionType(),clientSessionId:this._clientSessionId,age:t.utility.getAge(l)},Ne={schema:i,data:o,logMeta:he};if(he.pagePayload=t.payloadUtility.getPayloadFromProvider(this.pagePayloadProvider,Ne),he.appPayload=t.payloadUtility.getPayloadFromProvider(this.appPayloadProvider,Ne),this._isSender||(o=t.utility.clone(o)),typeof this._decimalPoints=="number"&&(t.utility.roundNumbersInObject(o,this._decimalPoints),Re&&t.utility.roundNumbersInObject((v=o.userPayload)===null||v===void 0?void 0:v.payload,this._decimalPoints),t.utility.roundNumbersInObject((X=he.pagePayload)===null||X===void 0?void 0:X.payload,this._decimalPoints),t.utility.roundNumbersInObject((we=he.appPayload)===null||we===void 0?void 0:we.payload,this._decimalPoints)),this._isBufferingEnabled){const Fe={schema:i,data:o,logMeta:he};this._buffer.push(Fe)}return this._multiplex(i,o,he),this._sequence}_multiplex(n,i,o){const l=Array.from(this._logCollectors).filter(p=>{var v;return!this._forceDisabledLogCollectors.has(p)&&!((v=p.getIsCollectDisabled)===null||v===void 0?void 0:v.call(p))});if(l.length>0)for(const p of l){let v=this._logCollectorFailures.get(p)||0;try{p.collect(n,i,o),v>0&&this._logCollectorFailures.set(p,v-1)}catch(X){v+=1,v>=J._collectorFailureLimit?(this._forceDisabledLogCollectors.add(p),this._appInstr&&(typeof X=="string"||X instanceof Error)&&this._appInstr.error(X)):this._logCollectorFailures.set(p,v)}}}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 H(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}}J._collectorFailureLimit=5;class $e{get _lazyNextGen(){return this._nextgen||(this._nextgen=new J(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 it=t.utility.time.bind(t.utility),ot="sfcore.customCmp.CustomComponentLog",tt={Error:"Crimson",Activity:"CadetBlue",InstrumentedEvent:"DarkOliveGreen",O11ySample:"BlueViolet"},st={Error:"white",Activity:"white",InstrumentedEvent:"white",O11ySample:"white"},gt="black",Qe="Gainsboro";class yt{constructor(n){this._simpleFilters=new Set,this._regexFilters=[],n&&this._log("ConsoleCollector",n)}collect(n,i,o){const l=t.schemaUtil.getSchemaId(n);if(!this._shouldLog(l))return;if(l===ot){this._logCustom(i);return}let p,v,X;t.schemaUtil.isInternal(n)?(p=n.name,v=st[n.name]||gt,X=tt[n.name]||Qe):p=l,this._log(p,i,o,v,X)}_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,l=gt,p=Qe){const v=`color:${l};background-color:${p}`;console.log(`%cO11Y%c ${n}`,"color:white;background-color:#FF6600;font-weight:bold",v,i||"",o||"")}_logCustom(n){console.log("%clightning/logger","color:white;background-color:#00a1e0;font-weight:bold",n||"")}}const lt="254.7.0",ct=new F({logThreshold:300,reportListener:Ee=>{ut==null||ut.log(e.idleDetectorReportSchema,Ee)},errorListener:(Ee,n)=>{ut==null||ut.error(Ee,n)}}),Et=new $e(ct),At=Et.registerInstrumentedApp.bind(Et),It=Et.getInstrumentation.bind(Et),ut=It("IdleDetector");r.ConsoleCollector=yt,r._version=lt,r.getInstrumentation=It,r.idleDetector=ct,r.registerInstrumentedApp=At,r.time=it,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("o11y/client",["exports","o11y/client/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/o11y/v/1",["exports"],function(r){"use strict";const e={};r._o11y=e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/o11y",["exports","webruntime/o11y/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/expressions/v/1",["exports"],function(r){"use strict";let e;const t="1970-01-01T",E="T00:00:00",C="provider",F="providers";function M(A){return A!==null&&typeof A=="object"}function O(A){try{const U=A?.indexOf(":")>-1,q=A?.indexOf("-")>-1;return A===""||!U&&!q?null:(typeof A=="string"&&(q||(A=t+A),U||(A=A+E),A=A.trim().replace(" ","T"),A.endsWith("Z")||(A+="Z")),new Date(A))}catch(U){return null}}function u(A){try{const U=A(),q=Reflect.get(this,F);for(const ce of q)if(!ce?.hasData?.())throw new Error;return U??null}catch(U){return}}function f(A){return M(this)&&(Reflect.set(this,C,A),Reflect.get(this,F).push(A)),A?.getData?.()}function s(A={},U){if(!!A&&Object.prototype.hasOwnProperty.call(A,U))return A[U]}function c(A,U){Array.isArray(A)||(A=[A]);const q=A.filter(U);if(!!q.length)return q.length===1?q[0]:q}function g(A,U){if(M(this)&&Reflect.has(this,C)){const q=Reflect.get(this,C);if(Reflect.deleteProperty(this,C),!q?.hasData?.(U))throw new Error;const ce=Reflect.get(this,F);ce.indexOf(q)>=0&&ce.splice(ce.indexOf(q),1)}return typeof U=="string"&&Array.isArray(A)?(A=A.map(q=>q[U]).filter(q=>q!==void 0),A.length===0?void 0:A.length===1?A[0]:A):A?.[U]}function S(){}const P={toDate(A){if(A!=null){const U=O(A)?.setUTCHours(0,0,0,0);if(U!==void 0&&!isNaN(U))return new Date(U)}return null},toTime(A){if(A!=null){const U=O(A)?.setUTCFullYear(1970,0,1);if(U!==void 0&&!isNaN(U))return new Date(U)}return null},toDatetime(A){return A!=null?O(A):null},isBlank(A){return!A&&typeof A!="number"},contains(A,U){return A!=null?A.includes(U):!1},begins(A,U){return U==null?!0:A!=null?A.toString().startsWith(U.toString()):!1}},T=(...A)=>(e={[F]:[],[C]:null},u.apply(e,A)),w=(...A)=>f.apply(e,A),j=(...A)=>g.apply(e,A),N=(...A)=>s.apply(e,A),k=(...A)=>c.apply(e,A),Y=(...A)=>S.apply(e,A);r.EXPR_CLOSURE=T,r.EXPR_FILTER=k,r.EXPR_FUNCTION=Y,r.EXPR_GLOBAL=N,r.EXPR_MEMBER=j,r.EXPR_PROVIDER=w,r.EXPR_RUNTIME=P,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/expressions",["exports","webruntime/expressions/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/routerContainer/v/1",["exports","lwc/v/8_10_3","webruntime/errors/v/1_66_907-254_0","lwr/navigation/v/0_15_10","webruntime/routingService/v/1","webruntime/defaultView/v/1_66_907-254_0"],function(r,e,t,E,C,F){"use strict";function M(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var O=M(F),u=void 0;class f extends e.LightningElement{constructor(...g){super(...g);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(g){this._routeParams=g}render(){return this.generatedTemplateHtml}connectedCallback(){const g=this.view||O.default;this.generatedTemplateHtml=g.html,this.attributes=g.attributes(this,this.routeParams),this.subscription=C.subscribe(this.routeChange.bind(this))}viewChange(g){C.handleExtraRouteParams(this.route),this.generatedTemplateHtml=g.html;const{state:S,attributes:P}=this.route;this._routeParams={...S,...P},this.attributes=g.attributes(this,this.routeParams)}routeChange(g){this.route=g.route||null}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}errorCallback(g,S){t.reportError({subject:"router level error",error:g,wcstack:S})}}f.renderMode="light",e.registerDecorators(f,{publicProps:{view:{config:0},routeParams:{config:3}},wire:{viewChange:{adapter:E.CurrentView,method:1,config:function(c){return{}}}},fields:["_routeParams","generatedTemplateHtml","previousRouteParams","requiredParameters","attributes","route"]});const s=e.registerComponent(f,{tmpl:u,sel:"webruntime-router-container",apiVersion:63});r.default=s,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/routerContainer",["exports","webruntime/routerContainer/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/componentContainer/v/1",["exports","lwc/v/8_10_3"],function(r,e){"use strict";function t(s,c,g){var S=s?"."+s+"-host":"";return(c?":host {":S+" {")+"display: flow-root;}"}t.$scoped$=!0;var E=[t];const C={key:0},F=[];function M(s,c,g,S){const{s:P}=s;return[P("",C,F,g)]}var O=e.registerTemplate(M);M.slots=[""],M.renderMode="light",M.stylesheets=[],M.stylesheetToken="lwc-4k1qbp7cls1",M.legacyStylesheetToken="webruntime-componentContainer_componentContainer",E&&M.stylesheets.push.apply(M.stylesheets,E),e.freezeTemplate(M);class u extends e.LightningElement{}u.renderMode="light";const f=e.registerComponent(u,{tmpl:O,sel:"webruntime-component-container",apiVersion:63});r.default=f,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/componentContainer",["exports","webruntime/componentContainer/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/sessionValidator/v/1",["exports","lwr/loaderLegacy/v/0_15_10","lwc/v/8_10_3","@app/isDesignMode/v/1","@app/isPreviewMode/v/1","@app/basePath/v/1","webruntime/routingService/v/1","webruntime/logger/v/1_66_907-254_0","webruntime/transport/v/1"],function(r,e,t,E,C,F,M,O,u){"use strict";function f(fe){return fe&&typeof fe=="object"&&"default"in fe?fe:{default:fe}}var s=f(E),c=f(C),g=f(F);function S(fe,re,a){var d=fe?"["+fe+"-host]":"";return(re?":host {":d+" {")+"display: none;}"}var P=[S];const T=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(fe,re,a,d){const{d:m,b:x,sp:V,st:se,fr:Pe}=fe,{_m0:Le}=d;return[re.showSessionWarning?Pe(0,[se(T,2,[V(5,{attrs:{"xlink:href":t.sanitizeAttribute("use","http://www.w3.org/2000/svg","xlink:href",re.userIconUrl)}},null),V(7,null,m(re.invalidSessionToastMessage)),V(9,{on:Le||(d._m0={click:x(re.dismissAlert)})},null),V(11,{attrs:{"xlink:href":t.sanitizeAttribute("use","http://www.w3.org/2000/svg","xlink:href",re.closeIconUrl)}},null),V(13,null,m(re.closeMessage))])],0):null]}var j=t.registerTemplate(w);w.renderMode="light",w.stylesheets=[],w.stylesheetToken="lwc-9mrm67ji1u",w.legacyStylesheetToken="webruntime-sessionValidator_sessionValidator",P&&w.stylesheets.push.apply(w.stylesheets,P),t.freezeTemplate(w);const N="/sfsites/c/_nc_external/system/security/session/SessionTimeServlet";async function k(){const fe=new Date().getTime(),re=`${g.default}${N}?buster=${fe}`;try{const a=await u.fetch(`${N}?buster=${fe}`,{asGuest:!0});if(console.log(`[sessionTimeServletAPI] Returned with status: ${a.status}`),a.ok){const d=await a.text(),m=Y(d);return m.sr=Number(m.sr),m}}catch(a){return console.error(`[sessionTimeServletAPI] Failed to fetch user session time: ${a.message}`),null}finally{console.log(`[sessionTimeServletAPI] END fetch endpoint: ${re}`)}}function Y(fe){if(!fe)return{sp:-1,sr:-1};let re=fe.replace(/\r/g,`
`);return re.indexOf("<pre")>=0&&(re=re.replace(/^<pre[^>]*>/,"").replace(/<\/pre>$/,"")),re.indexOf("<textarea")>=0&&(re=re.replace(/<textarea[^>]*>/,"").replace(/<\/textarea>$/,"")),A(re)}function A(fe){const re=`while(1);
`;if(typeof fe!="string")return null;fe.substring(0,re.length)===re&&(fe=U(fe));try{return JSON.parse(fe)}catch(a){return O.logError(`Exception while parsing the String: ${fe}`,a),null}}function U(fe){const re=`while(1);
`,a=[re,re.replace(`
`,"")];for(let d=0;d<a.length;d++){const m=a[d];if(fe.indexOf(m)===0)return fe.slice(m.length)}return fe}const q="/assets/icons/utility-sprite/svg/symbols.svg#close",ce="/assets/icons/utility-sprite/svg/symbols.svg#user",te="showSessionMessage",W=/\w+\\&showSessionMessage$/g;class Q extends t.LightningElement{constructor(...re){super(...re);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.routeChangeSubscription=M.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 re=new URL(decodeURIComponent(window.location?.href));re?.searchParams?.has(te)&&(this.showExpiredSessionMessage(),this.removeSessionUrlFlag(re))}removeSessionUrlFlag(re){re.searchParams.delete(te),window.history.replaceState(null,window.location.href,re)}shouldCheckSession(){return!(s.default||c.default||(this.route=M.getCurrentRoute(),this.route.routeDefinition?.metadata?.isPublic))}onRouteChange(re){this.route=re,this.timeoutID===0&&!this.route.routeDefinition?.metadata?.isPublic&&this.checkSession()}async checkSession(){const re=await k();this.timeLeftInSession=Object.keys(re).length===0?this.timeLeftInSession:re.sr,this.processTimeoutResponse()}scheduleCheckSession(){clearTimeout(this.timeoutID);const re=(this.timeLeftInSession+1)*1e3;this.timeoutID=setTimeout(()=>this.checkSession(),re)}async processTimeoutResponse(){this.timeLeftInSession<0?(await k()).sr<0&&this.handleLogout():this.scheduleCheckSession()}handleLogout(){clearTimeout(this.timeoutID),this.timeoutID=0;const re=M.getCurrentRoute().url;W.test(re)||M.navigate({type:"comm__loginPage",attributes:{actionName:"logout"},state:{startUrl:`${re}&${te}`}})}showExpiredSessionMessage(){const re=window.location.origin+g.default;this.closeIconUrl=re.concat(q),this.userIconUrl=re.concat(ce),this.showSessionWarning=!0}dismissAlert(){this.showSessionWarning=!1}disconnectedCallback(){this.routeChangeSubscription?.unsubscribe(),clearTimeout(this.timeoutID)}}Q.renderMode="light",t.registerDecorators(Q,{publicProps:{sessionWarningMessage:{config:0},sessionWarningTime:{config:0},invalidSessionToastMessage:{config:0},closeMessage:{config:0}},fields:["route","routeChangeSubscription","timeLeftInSession","timeoutID","showSessionWarning","closeIconUrl","userIconUrl"]});const ke=t.registerComponent(Q,{tmpl:j,sel:"webruntime-session-validator",apiVersion:63});r.default=ke,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/sessionValidator",["exports","webruntime/sessionValidator/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/slotContainer/v/1",["exports","lwc/v/8_10_3"],function(r,e){"use strict";const t=[];function E(O,u,f,s){const{s:c}=O;return[u.isVisible?c("",{key:0,slotData:u.variations},t,f):null]}var C=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(...u){super(...u);this.visibilityExpression=void 0,this.hidden=void 0,this.variationExpressions=void 0}get isVisible(){return this.hidden?!this.visibilityExpression:this.visibilityExpression}get variations(){const u={},f=!!this.variationExpressions?.find(g=>g===!0),s=this.variationExpressions?.findIndex(g=>g===!0),c=this.variationExpressions?.findIndex(g=>typeof g=="undefined")!==-1;return this.variationExpressions?.forEach(function(g,S){const P=`variation${S+1}`;c||f&&s!==S?u[P]=!1:g===!0?u[P]=!0:(typeof g=="undefined",u[P]=!1)}),u.variation0=!f&&!c,u}}F.renderMode="light",e.registerDecorators(F,{publicProps:{visibilityExpression:{config:0},hidden:{config:0},variationExpressions:{config:0}}});const M=e.registerComponent(F,{tmpl:C,sel:"webruntime-slot-container",apiVersion:63});r.default=M,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/slotContainer",["exports","webruntime/slotContainer/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/visibilityContainer/v/1",["exports","lwr/loaderLegacy/v/0_15_10","lwc/v/8_10_3","@app/isDesignMode/v/1"],function(r,e,t,E){"use strict";function C(P){return P&&typeof P=="object"&&"default"in P?P:{default:P}}var F=C(E);function M(P,T,w){var j=P?"."+P+"-host":"";return"@media only screen and (max-width: 47.9375em) {"+(T?":host.webruntime-visibility-container.dxp-sm-hide {":j+".webruntime-visibility-container.dxp-sm-hide {")+"display: none;}}@media only screen and (min-width: 48em) and (max-width: 64em) {"+(T?":host.webruntime-visibility-container.dxp-md-hide {":j+".webruntime-visibility-container.dxp-md-hide {")+"display: none;}}@media only screen and (min-width: 64.0625em) {"+(T?":host.webruntime-visibility-container.dxp-lg-hide {":j+".webruntime-visibility-container.dxp-lg-hide {")+"display: none;}}"}M.$scoped$=!0;var O=[M];const u={key:0},f=[];function s(P,T,w,j){const{s:N}=P;return[T.hidden?null:N("",u,f,w)]}var c=t.registerTemplate(s);s.slots=[""],s.renderMode="light",s.stylesheets=[],s.stylesheetToken="lwc-7ethp7o0ig8",s.legacyStylesheetToken="webruntime-visibilityContainer_visibilityContainer",O&&s.stylesheets.push.apply(s.stylesheets,O),t.freezeTemplate(s);class g extends t.LightningElement{constructor(...T){super(...T);this.hiddenInDesktop=!1,this.hiddenInTablet=!1,this.hiddenInMobile=!1,this.hidden=!0}connectedCallback(){const T={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(T).forEach(j=>{j.isHidden?this.classList.add(j.class):w+=w?`, ${j.mediaQuery}`:j.mediaQuery}),F.default?this.classList.add("interactions-element","webruntime-design-visibility-container"):this.classList.add("webruntime-visibility-container"),e.load("webruntime/formFactor/v/1").then(({getFormFactor:j})=>{if(typeof window!="undefined"&&!F.default&&T[j()].isHidden){if(w){const N=window.matchMedia(w),k=Y=>{Y.matches&&(this.hidden=!1,N.removeEventListener("change",k))};N.addEventListener("change",k)}}else this.hidden=!1})}}g.renderMode="light",g.validationOptOut=["class"],t.registerDecorators(g,{publicProps:{hiddenInDesktop:{config:0},hiddenInTablet:{config:0},hiddenInMobile:{config:0}},track:{hidden:1}});const S=t.registerComponent(g,{tmpl:c,sel:"webruntime-visibility-container",apiVersion:63});r.default=S,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/visibilityContainer",["exports","webruntime/visibilityContainer/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/viewchangeNotifier/v/1",["exports","lwc/v/8_10_3","lwr/navigation/v/0_15_10","@app/deployTarget/v/1","webruntime/routingService/v/1"],function(r,e,t,E,C){"use strict";function F(T){return T&&typeof T=="object"&&"default"in T?T:{default:T}}var M=F(E);const O=e.parseFragment`<div hidden${"a0:data-route"}${3}></div>`;function u(T,w,j,N){const{sp:k,st:Y}=T;return[Y(O,1,[k(0,{attrs:{"data-route":w.routeParamString}},null)])]}var f=e.registerTemplate(u);u.renderMode="light",u.stylesheets=[],u.stylesheetToken="lwc-1j18phjg883",u.legacyStylesheetToken="webruntime-viewchangeNotifier_viewchangeNotifier",e.freezeTemplate(u);const s=["contentTypeName","name","objectApiName","recordId","relationshipApiName","term","urlAlias"];function c(T){return Object.keys(T).reduce((w,j)=>(s.includes(j)&&(w[j]=T[j]),w),{})}function g(T,w){return T===w?!0:!T||!w?!1:Object.keys(T).length===Object.keys(w).length&&Object.entries(w).every(([j,N])=>T[j]===N)}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(){M.default==="MRT"&&requestAnimationFrame(()=>{this.route=C.getCurrentRoute().route,this.updateRouteParams()}),this.routeChangeSubscription=C.subscribe(this.routeChange.bind(this))}routeChange(w){this.route=w.route}viewChange(){this.updateRouteParams()}updateRouteParams(){const{state:w,attributes:j}=this.route||{};this.routeParams=c({...w,...j})}renderedCallback(){!this.routeParams||(!C.isCurrentRouteCanonicallyRedirected()&&!g(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(T){return{}}}},fields:["routeChangeSubscription","route","routeParams","previousRouteParams"]});const P=e.registerComponent(S,{tmpl:f,sel:"webruntime-viewchange-notifier",apiVersion:63});r.default=P,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/viewchangeNotifier",["exports","webruntime/viewchangeNotifier/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/analyticsEvents/v/1_66_907-254_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,C=document.documentElement.scrollHeight||document.body.scrollHeight;E/(C-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_907-254_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",["exports","lwc/v/8_10_3","experience/dataLayerObject/v/250_25_0","webruntime/analyticsEvents/v/1_66_907-254_0"],function(r,e,t,E){"use strict";function C(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var F=C(t);function M(s,c,g,S){const{c:P}=s;return[P("experience-data-layer-object",F.default,{props:{scriptDataAttributes:c.pageDataForDataLayer.scriptDataAttributes,customObject:c.pageDataForDataLayer.customObject},key:0})]}var O=e.registerTemplate(M);M.renderMode="light",M.stylesheets=[],M.stylesheetToken="lwc-1k5dp68c4pi",M.legacyStylesheetToken="webruntime-pageDataLayerObject_pageDataLayerObject",e.freezeTemplate(M);class u extends e.LightningElement{constructor(...c){super(...c);this.handleViewChanged=g=>this._handleViewChanged(g),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(c){const g=c.detail?.route?.attributes?.recordId,S=c.detail?.route?.attributes?.contentTypeName,P=c.detail?.route?.attributes?.urlAlias,T=c.detail?.route?.attributes?.contentKey,w={type:c.detail?.route?.pageReference?.type,url:window.location.href,urlReferrer:this.pageDataForDataLayer?.customObject?.url||document.referrer,...g?{recordId:g}:{},...S?{contentTypeName:S}:{},...P?{urlAlias:P}:{},...T?{contentKey:T}:{}};this.pageDataForDataLayer={...this.pageDataForDataLayer,customObject:w},this.scrollToBottomEvent.addListener()}}u.renderMode="light",e.registerDecorators(u,{fields:["handleViewChanged","pageDataForDataLayer","scrollToBottomEvent"]});const f=e.registerComponent(u,{tmpl:O,sel:"webruntime-page-data-layer-object",apiVersion:63});r.default=f,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/pageDataLayerObject",["exports","webruntime/pageDataLayerObject/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/serverRouter/v/0_15_10",["exports","lwr/contextProvider/v/0_15_10","lwr/metrics/v/0_15_10","lwr/navigation/v/0_15_10","lwr/navigationMixinHacks/v/0_15_10","lwr/profiler/v/0_15_10","lwr/router/v/0_15_10","lwr/routerErrors/v/0_15_10","lwr/routerUtils/v/0_15_10"],function(r,e,t,E,C,F,M,O,u){"use strict";class f{constructor(g,S,P){this.contextId=Object.freeze(()=>{}),this.router=S,this.target=P,this.handleNavHook=g.handleNavigation,this.preNavHook=g.preNavigate,this.errorNavHook=g.errorNavigate,this.initWires(g.url)}async navigate(g,S,P){if(u.hasDocument){if(this.handleNavHook&&!this.handleNavHook(g))return;const T=await this.getValidatedUrl(g,P);T&&(document.location.href=T)}}generateUrl(g,S){return this.router.generateUrl(g,S)}initWires(g){if(!g&&u.hasDocument&&(g=document.location.href),!g){this.processError(O.generateMessageObject(O.messages.NO_INIT_URL));return}g=this.getRelativeUrl(g),this.currentRoute=this.router.matchRoute(g,{})||void 0,E.registerNavigationHelm(this.contextId,{navigate:(S,P,T)=>this.navigate(S,P,T),generateUrl:(S,P)=>this.generateUrl(S,P),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),u.hasDocument&&this.target.addEventListener(C.CONTEXT_ID_BACKDOOR,S=>{const P=S;P.detail.callback&&P.detail.callback(this.contextId)})}getRelativeUrl(g){if(g.startsWith("http")){const S=new URL(g);return`${S.pathname}${S.search}`}return g}async getValidatedUrl(g,S){const P=this.router.matchRoute(g,{});if(!P){this.processError(O.generateMessageObject(O.messages.NO_ROUTE_MATCH,[JSON.stringify(g)]));return}if(!(this.preNavHook&&await this.preNavHook({current:this.currentRoute,next:P}))){this.processError(O.generateMessageObject(O.messages.PRENAV_FAILED,[JSON.stringify(g)]));return}return this.router.generateUrl(g,S)}processError(g){F.logOperationStart({id:t.ROUTER_ERROR}),this.errorNavHook&&this.errorNavHook(g)}}function s(c,g){new f(c,M.createRouter(c),g)}r.ServerRouter=f,r.createServerRouter=s,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/serverRouter",["exports","lwr/serverRouter/v/0_15_10"],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_15_10",["exports","lwr/routerUtils/v/0_15_10","lwr/routerErrors/v/0_15_10","lwr/observable/v/0_15_10"],function(r,e,t,E){"use strict";class C{constructor(O){this.deprecatedConfig={},this.routeHandlerId=0,this.compiledRoutes=[],this.routeObservable=E.createObservable(),this.config={basePath:O.basePath||"",i18n:O.i18n||e.DEFAULT_I18N_ROUTER_CONFIG,caseSensitive:Boolean(O.caseSensitive),routes:O.routes||[],generateUrl:(s,c)=>e.getUrlFromPageReference(s,this.compiledRoutes,this.config.basePath,this.config.i18n,c),parseUrl:s=>e.getPageReferenceFromUrl(s,this.compiledRoutes,this.config.basePath,this.config.i18n)};const{DEPRECATED_getRouteFromUrl:u,DEPRECATED_getUrlFromRoute:f}=O;u&&(this.deprecatedConfig.DEPRECATED_getRouteFromUrl=u),f&&(this.deprecatedConfig.DEPRECATED_getUrlFromRoute=f),this.compiledRoutes=e.parseRoutes(this.config)}generateUrl(O,u){const{DEPRECATED_getUrlFromRoute:f}=this.deprecatedConfig;return f?f(O,this.config.generateUrl,u):this.config.generateUrl(O,u)}parseUrl(O){const{DEPRECATED_getRouteFromUrl:u}=this.deprecatedConfig;return u?u(O,this.config.parseUrl):this.config.parseUrl(O)}matchRoute(O,u){const f=typeof O=="string"?O:this.generateUrl(O,u);if(f===null)return null;const s=e.matchRouteByUrl(f,this.compiledRoutes,this.config.basePath,this.config.i18n,u),c=s&&e.getUrlFromPageReferenceAndRouteDef(s.route.pageReference,s.routeDefinition,this.config.basePath,this.config.i18n,u);return!s||!c?null:{pathMatch:c,route:s.route,routeDefinition:s.routeDefinition.original}}async resolveView(O,u){return new Promise((f,s)=>{const c=this.matchRoute(O,u);return c?c.routeDefinition.handler?.().then(g=>{const S=g.default;if(!S)return s(t.generateMessage(t.messages.INVALID_ROUTE_HANDLER,[c.routeDefinition.id]));const P=new S(f);P&&P.update(c.route)}):s(t.generateMessage(t.messages.NO_ROUTE_MATCH,[JSON.stringify(O)]))})}navigate(O,u){const f=this.matchRoute(O,u);if(!f)throw new Error(t.generateMessage(t.messages.MISSING_ROUTE,[JSON.stringify(O)]));this.pendingRoute={...f},this._mapView(this.pendingRoute)}subscribe(O,u){return this.routeObservable.subscribe({next:O,error:()=>{},complete:()=>{}},Boolean(u))}async _mapView(O){const u=Math.random();this.routeHandlerId=u;const s=(await O.routeDefinition.handler?.())?.default;if(!s)throw new Error(t.generateMessage(t.messages.INVALID_ROUTE_HANDLER,[O.routeDefinition.id]));return this.routeHandler=new s(c=>{this._updateView(u,c)}),this.routeHandler&&this.routeHandler.update(O.route),!0}_updateView(O,u){if(!u||O!==this.routeHandlerId)return;if(!this.pendingRoute)throw new Error("Trying to commit route state without a route");const f=e.freeze(u.viewset);this.routeObservable.next({...this.pendingRoute,...u,viewset:f})}}function F(M={}){return new C(M)}r.createRouter=F,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/router",["exports","lwr/router/v/0_15_10"],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_907-254_0",["exports"],function(r){"use strict";const e="sf-aria-live",t="tabindex",{document:E}=globalThis;let C;function F(u){if(E&&u?.routeDefinition){let f=E.body.querySelector(`#${e}`);f||(f=E.createElement("span"),f.id=e,f.setAttribute("aria-live","polite"),f.setAttribute("aria-atomic","true"),f.setAttribute("aria-hidden","true"),f.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(f)),f.innerText=u.routeDefinition.label}}function M(u){if(!E)return;const f=u?.routeDefinition?.label,s=u?.routeDefinition?.id,c=C!==s;f!=null&&c&&(E.title=f),C=s}function O(u){if(!E)return;const f=E.createTreeWalker(E.body,NodeFilter.SHOW_ELEMENT,{acceptNode:c=>c.matches("webruntime-router-container")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),s=u?E.body:f.nextNode();s&&(s.setAttribute(t,"-1"),s.focus({preventScroll:!0}),s.removeAttribute(t))}r.ARIA_LIVE_ID=e,r.TAB_INDEX_ATTR_NAME=t,r.ariaLiveNavigate=F,r.updateFocus=O,r.updateTitle=M,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/a11yService",["exports","webruntime/a11yService/v/1_66_907-254_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",["exports","lwr/loaderLegacy/v/0_15_10","@communities-webruntime/common/v/1_66_907-254_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","webruntime/views/v/1","webruntime/a11yService/v/1_66_907-254_0","webruntime/overrides/v/1","webruntime/logger/v/1_66_907-254_0","webruntime/utils/v/1_66_907-254_0","webruntime/o11y/v/1","lwr/router/v/0_15_10","lwr/serverRouter/v/0_15_10","lwr/routerErrors/v/0_15_10","lwr/navigation/v/0_15_10","webruntime/transport/v/1","@app/extraRouteParams/v/1"],function(r,e,t,E,C,F,M,O,u,f,s,c,g,S,P,T,w,j,N,k,Y){"use strict";function A(h){return h&&typeof h=="object"&&"default"in h?h:{default:h}}var U=A(E),q=A(C),ce=A(F),te=A(M),W=A(O),Q=A(u),ke=A(f),fe=A(Y);function re(h){const D=[],$=[];h.forEach(ue=>{ue.uri.includes("?")?$.push(ue):D.push(ue)});const ae=[];return $.forEach(ue=>{const ye=[],Ae=ue.uri.split("/");let We,ht,Rt="";Ae.forEach(ze=>{ze.endsWith("?")?(We=ze.substring(0,ze.length-1),ye.push({value:We,isOptional:!0}),ht=We.substring(1),Rt=ue.page.attributes?.[ht]?"attributes":"state"):ye.push({value:ze,isOptional:!1})});const Dt={...ue,uri:ye.map(ze=>ze.value).join("/")};ae.push(Dt);const St={};Object.keys(ue.page[Rt]).forEach(ze=>{ze!==ht&&(St[ze]=ue.page[Rt][ze])});const Ct={...ue,uri:ye.filter(ze=>!ze.isOptional).map(ze=>ze.value).join("/"),page:{...ue.page,[Rt]:St}};Ct.patterns&&(Ct.patterns=Object.fromEntries(Object.entries(Ct.patterns).filter(([ze])=>ze!==ht))),ae.push(Ct)}),[...D,...ae]}function a(h){const D=[],$=[];return h.forEach(ae=>{const{type:ue,attributes:ye={},state:Ae={}}=ae.page||{};if(ue==="standard__objectPage")if(d(ye.actionName))D.push(ae);else{let We;ye.actionName==="list"?(We={...ae,page:{...ae.page,attributes:{...ye},state:{...Ae}}},We.page.attributes.actionName="home"):ye.actionName==="home"?(We={...ae,page:{...ae.page,attributes:{...ye},state:{...Ae}}},We.page.attributes.actionName="list"):ye.actionName||(ae.page.attributes.actionName="home",We={...ae,page:{...ae.page,attributes:{...ye},state:{...Ae}}},We.page.attributes.actionName="list"),D.push(ae,We)}else $.push(ae)}),[...D,...$]}function d(h){return h&&h.length>1?h.startsWith(":"):!1}const m={};let x=null;function V(h){const{pathname:D,search:$,hash:ae}=new URL(h,window.location.origin);return{pathname:D,search:$,hash:ae}}async function se(h){const{pathname:D,search:$,hash:ae}=V(h);if(m[D])return m[D]+$+ae;if(Object.values(m).includes(D))return h;try{const{redirected:ue,url:ye}=await k.fetch(h,{basePath:"",method:"HEAD",isNonApiRequest:!0});if(ue){const Ae=V(ye).pathname;return m[D]=Ae,Ae+$+ae}}catch(ue){g.logError(`Unable to fetch canonical URL for ${h}`,`error:
`,ue)}return null}let Pe;async function Le(h,D){const{route:$,routeDefinition:ae}=D;if(x=$,ae?.metadata?.hasVanityURL){const ue=h.generateUrl($.pageReference),ye=await se(ue);if(ye&&ye!==ue&&x===$){const We={type:"standard__webPage",attributes:{url:ye}};return N.navigate(h.contextId,We,!0),Pe=!0,!0}}return Pe=!1,!1}function Oe(){return Pe}let Me=!0;const K={};function pe(h){const D=h?.attributes?.urlName||h?.attributes?.urlPath;if(D){const $=h?.attributes?.objectApiName||"";return`${D}:${$}`}return null}function G(h){h.extraRouteParams&&(be(h,h.extraRouteParams),delete h.extraRouteParams)}function be(h,D){const $=pe(h);!D||!$||(K[$]=D)}function Ce(h){const D=pe(h);if(D&&D in K){const $=K[D];return!($&&Object.keys($).length>0)}return!!D}function Ve(h={}){const{current:D,next:{pathMatch:$,route:{pageReference:ae}={}}}=h;return D&&Ce(ae)?(window.location.assign($),!0):!1}function Be(h){if(Me)Ge(h,fe.default),be(h.pageReference,fe.default),Me=!1;else{const D=pe(h?.pageReference),$=K[D];Ge(h,$)}}function Ge(h,D){qe(D)&&(qe(h?.attributes)&&(h.attributes={...h.attributes,...D}),qe(h?.pageReference?.attributes)&&(h.pageReference.attributes={...h.pageReference.attributes,...D}))}function qe(h){return h&&typeof h=="object"}const Ke="redirectPageContext";function Je(h){return h?.state?.[Ke]||null}function Ye(h){return h?.includes(`?${Ke}=`)}function bt(h,D,$={}){const{current:ae,next:{route:ue,url:ye}={}}=$,Ae=Ye(ye)?ye:Je(ue)?mt(ue):null;return Ae?(ae?window.location.assign(Ae):N.navigate(h,D.page,!0),!0):!1}function mt(h){if(!h)return null;const D=Je(h)||window.btoa(window.encodeURIComponent(JSON.stringify(h)));return`${te.default}/?${Ke}=${D}`}const at="KnowledgeArticleVersion",vt=[{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:(h,{name:D})=>{const{attributes:$={}}=h;return $.urlName||$.urlPath?!1:$.objectApiName==="ProductCategory"?D==="categoryPath":$.objectApiName==="OrderSummary"?!1:D==="recordName"}}],pt="standard__managedContentPage";function b(h){return vt.find(D=>h.type===D.type)}function I(h,D=[]){if(h?.type===pt){let $=h.attributes?.contentTypeName;!D.find(ue=>ue.page.type===pt&&ue.page?.attributes?.contentTypeName===$)&&["news","cms_image","cms_document"].indexOf($)!==-1&&($=$.startsWith("cms_")?$.substring(4):$,h.attributes.contentTypeName=`sfdc_cms__${$}`),h.attributes&&h.attributes.contentKey&&(h.attributes.urlAlias=h.attributes.contentKey,delete h.attributes.contentKey)}return h}let y;function L(h,D){h.attributes?.objectApiName===at&&(y===void 0&&(y=D.find(ae=>ae.page.attributes?.objectApiName?.endsWith("__kav"))?.page?.attributes?.objectApiName||null),y&&(h.attributes.objectApiName=y))}function H(h){return!h.attributes?.urlName&&!h.attributes?.urlPath||(h.type==="standard__recordPage"&&(B(h),delete h.attributes.recordId,delete h.state?.recordName,delete h.state?.categoryPath),h.type==="standard__recordRelationshipPage"&&(B(h),delete h.attributes.recordId)),h}function B(h){h.attributes.recordId&&(h.extraRouteParams={recordId:h.attributes.recordId})}function z(h,D){return h.type==="standard__knowledgeArticlePage"&&(h.type="standard__recordPage",h.attributes.actionName="view",h.attributes.objectApiName=at,delete h.attributes.articleType),L(h,D),h}function ne(h,D){const{params:$,match:ae}=D;$.forEach(ue=>{const{type:ye,name:Ae,value:We}=ue;ae&&!ae(h,ue)||h?.[ye]?.[Ae]||(h[ye]||(h[ye]={}),h[ye][Ae]=We)})}function ie(h={}){const D=b(h);D&&ne(h,D)}function Z(h,D){if(h.state?.categoryPath?.includes("/")||h.attributes?.urlPath?.includes("/")){let[$,ae]=D.split("?");return $=$.replace(/%2F/g,"/"),ae=ae?`?${ae}`:"",$+ae}return D}function le(h){return Object.entries(h?.attributes||{}).filter(([,D])=>D===null).forEach(([D])=>delete h.attributes[D]),h}async function Te(h,D,$,ae){if(!h||!D||!$||!ae)return console.error(`[getRecordIdRedirect] one or more params are not defined - routeParams:${JSON.stringify(h)} appVersion:${D} communityId:${$} scope:${ae}`),null;const ue=Ie(h,D,$,ae);console.log(`[getRecordIdRedirect] START fetch endpoint: ${ue}`);try{const ye=await k.fetch(ue);if(console.log(`[getRecordIdRedirect] Returned with status: ${ye.status}`),ye.ok){const Ae=await ye.json();if(Ae&&Ae.recordIdUrl)return Ae.recordIdUrl}}catch(ye){return console.error(`[getRecordIdRedirect] Failed to fetch recordIdUrl: ${ye.message}`),null}finally{console.log(`[getRecordIdRedirect] END fetch endpoint: ${ue}`)}return null}function Ie(h,D,$,ae){let ue;return h?.urlName?ue=encodeURIComponent(h.urlName):h?.urlPath&&(ue=encodeURIComponent(h.urlPath)),`/services/data/v${D}/connect/communities/${$}/seo/object-url/${ae}/${ue}`}class De{constructor(D){this.callback=D}dispose(){}update(D){const $=de.find(ae=>ae.id===D.id)?.view;this.callback({viewset:{default:()=>ke.default($)}})}}const{window:me,performance:Ue}=globalThis,xe=`${t.WEBRUNTIME_PREFIX}-framework-router`;let R=q.default==="MRT",oe;r.router=void 0;let de=[],J,$e;function it(h,D){Ue?.mark?.(xe),de=a(re(t.parseRoutes(h))),de.forEach($=>{$.handler=()=>new Promise(ae=>{ae({default:De})})}),J=de.find($=>$.metadata.isDefault),D?.isMRT!=null&&(R=D.isMRT),$e=!R&&de.every($=>$.metadata.isPublic!==!1),oe={basePath:te.default,caseSensitive:!0,routes:de,i18n:{locale:U.default,defaultLocale:U.default},DEPRECATED_getRouteFromUrl:gt,DEPRECATED_getUrlFromRoute:Qe},r.router=T.createRouter(oe),Ue?.measure?.(xe,xe)}it(W.default);let ot,tt;function st(){return tt?.contextId||r.router.contextId}function gt(h,D){const $=D(h);return $?(ie($),$):J?.page?J.page:null}function Qe(h={type:"",attributes:{},state:{}},D){const{type:$,attributes:ae={},state:ue={}}=h;let ye;const Ae=JSON.parse(JSON.stringify(h));if($==="standard__webPage")return ye=ae.url,ye==null?"":l(ye,te.default);if($==="comm__loginPage"){const We=ue.startUrl!=null?`?startURL=${encodeURIComponent(ue.startUrl)}`:"";if(ae.actionName==="login")return l(`${t.WEBRUNTIME_LOGIN_PATH}${We}`,ce.default);if(ae.actionName==="logout")return l(`${t.WEBRUNTIME_LOGOUT_PATH}${We}`,ce.default)}return $==="standard__managedContentPage"&&I(Ae,de),z(Ae,de),H(Ae),ie(Ae),le(Ae),ye=D(Ae),$==="standard__recordPage"&&(ye=Z(Ae,ye)),!ye&&$e&&(ye=mt(Ae)),G(Ae),ye}async function yt(h){const{route:D,routeDefinition:$}=h.next;return lt($,D?.pageReference)}async function lt(h,D){if(h?.metadata?.isPublic!==!1)return!1;const{default:$}=await e.load("@app/user/v/1");if($.isGuest){const ae=typeof D=="string"?D:v(D);if(ae&&me)if(R){const{default:ue}=await e.load("@app/loginPath/v/1");ct(ue,ae)}else me.location.href=ae;return!0}return!1}function ct(h,D){const $=new URL(h,me.location.href);D&&$.searchParams.set("startURL",D),me.location.assign($.href)}function Et(h,D){const $=new URL(h,me.location.href);D&&$.searchParams.set("startURL",D),me.location.assign($.href)}function At(h){return bt(st(),J,h)}function It(h){const{current:D,next:$}=h;if(D&&$&&(D.routeDefinition.ssr!==$.routeDefinition.ssr||R)){const ae=v($.route.pageReference);if(ae)return me.location.assign(ae),!0}return!1}function ut(h){const{current:D,next:{pathMatch:$,route:ae={}}}=h;if(!D)return!1;const{pageReference:{type:ue,attributes:ye={}}}=ae;if(ue==="standard__managedContentPage"){const{contentTypeName:Ae}=ye;if(Ae==="sfdc_cms__landingPage")return me.location.assign($),!0}return!1}async function Ee(h){n(h.detail)}async function n(h){try{if(!me?.location)return;const{address:D,message:$,code:ae}=h;if(g.logError(`Routing error: ${$}`),ae===j.messages.PRENAV_FAILED.code)return;if(ae===j.messages.MISSING_ROUTE.code&&!J&&Ye(D)){me.location.assign(D);return}if(J?.metadata?.isPublic===!1){const{default:ye}=await e.load("@app/user/v/1");if(ye.isGuest)return}const ue=te.default?me.location.pathname.replace(te.default,""):me.location.pathname;J&&ue!==J.uri&&p(J.page)}finally{ot?.errorNavigate(h)}}function i(h){o(h.detail.address)||h.preventDefault()}function o(h){if(!c.NavigationOverrides.runSync(h))return!1;const{type:D,attributes:$={},state:ae={}}=h;if(D==="standard__webPage"){const{url:ue}=$;if(ue==null)return!0;if(S.isAbsoluteURL(ue)||S.isSfdcCoreURL(ue))return me?.open(ue),!1;const ye=r.router.parseUrl(ue),Ae=!ye||ye===J?.page;if($e&&Ae)return me?.location.assign(l(ue,te.default)),!1}else if(D==="comm__loginPage"){const{actionName:ue}=$;if(ue==="login")return ct(l(t.WEBRUNTIME_LOGIN_PATH,ce.default),ae.startUrl||""),!1;if(ue==="logout")return Et(l(t.WEBRUNTIME_LOGOUT_PATH,ce.default),ae.startUrl||""),!1}return!0}function l(h,D){return S.isAbsoluteURL(h)?h:D&&h!==D&&h.indexOf(`${D}/`)!==0?`${D}${h}`:h}function p(h){N.navigate(st(),h)}function v(h){return tt?tt.generateUrl(h):r.router.generateUrl(h)}function X(h,D=!0){return typeof me!="undefined"?r.router.subscribe(h,D):null}async function we(h,D){if(ot?.preNavigate(h),c.PreNavigateOverrides.run(h),tt){if(await yt(h))return!1}else yt(h);return ut(h)||!R&&At(h)||!R&&Ve(h)||It(h)?(D?.preventDefault(),!1):!0}let Re;async function _e(h){const D=h.detail,$=D.current?.routeDefinition.view;$?Re=Q.default[$]:Re=null,await we(D,h)}async function Se(h){c.PostNavigateOverrides.run(h);const D=h.routeDefinition?.view,$=Re!==Q.default[D];try{s.ariaLiveNavigate(h),s.updateFocus($),R||(s.updateTitle(h),await Le(r.router,h))}finally{ot?.postNavigate(h)}}async function je(h){const D=h.detail;Se(D)}function he(h){ot=P._o11y.routingSupport,h.addEventListener("prenavigate",_e),h.addEventListener("handlenavigation",i),h.addEventListener("postnavigate",je),h.addEventListener("errornavigate",Ee)}function Ne(){let h,D;if(me?.location&&(D=me.location.href.substring(me.location.origin.length),h=r.router.matchRoute(D)),!h&&J&&(h=r.router.matchRoute(J.uri)),h){const{route:$,routeDefinition:ae}=h;return{route:$,routeDefinition:ae,url:D}}return{}}function Fe(h,D){if(!R||tt&&typeof me!="undefined")return;const $=Ne(),{routeDefinition:ae}=$;if(ae&&!ae.ssr)return;const ue={...oe,url:D,handleNavigation:o,preNavigate:we,errorNavigate:n};tt=new w.ServerRouter(ue,r.router,h),we({next:$}),Se($)}function dt(h,D){const $=D?`?startURL=${encodeURIComponent(D)}`:"";return`${h}${t.WEBRUNTIME_LOGIN_PATH}${$}`}async function ft({basePath:h,params:D},$,ae,ue){const ye=await Te(D,$,ae,ue);return ye?{code:301,location:ye}:(console.log(`[getRecordIdOrErrorRedirect] basePath: ${h}`),{code:302,location:`${h||""}/error`})}r.generateUrl=v,r.getCurrentRoute=Ne,r.getLoginUrl=dt,r.getRecordIdOrErrorRedirect=ft,r.handleExtraRouteParams=Be,r.initializeRouter=it,r.initializeRouterContainer=he,r.initializeServerRouter=Fe,r.isCurrentRouteCanonicallyRedirected=Oe,r.navigate=p,r.subscribe=X,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/routingService",["exports","webruntime/routingService/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/overrides/v/1",["exports"],function(r){"use strict";class e{constructor(){this.overrides=[]}add(u){this.overrides.push(u)}run(...u){return this.overrides.length===0?Promise.resolve(!0):this.overrides.reduce((f,s)=>f.then(c=>c===!1?Promise.resolve(!1):Promise.resolve(s(...u))),Promise.resolve(!0)).then(f=>Promise.resolve(f))}runSync(...u){return this.overrides.length===0?!0:this.overrides.reduce((f,s)=>f===!0?s(...u):!1,!0)}}const t=new e,E=new e,C=new e,F=new e,M=new e;r.NavigationOverrides=C,r.Overrides=e,r.PageNavigationFailureOverrides=M,r.PostNavigateOverrides=E,r.PreNavigateOverrides=t,r.SessionTimeoutOverrides=F,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/overrides",["exports","webruntime/overrides/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/views/v/1",["exports","lwr/loaderLegacy/v/0_15_10","@communities-webruntime/common/v/1_66_907-254_0"],function(r,e,t){"use strict";function E(C){return e.load(t.getViewModuleSpecifier(C),"webruntime/views/v/1")}r.default=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/views",["exports","webruntime/views/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/formFactor/v/1",["exports"],function(r){"use strict";function e(){return typeof window!="undefined"&&window.matchMedia("only screen and (min-width: 48em) and (max-width: 64em)").matches}function t(){return typeof window!="undefined"&&window.matchMedia("only screen and (max-width: 47.9375em)").matches}function E(){return e()?"Medium":t()?"Small":"Large"}const C=E();r.default=C,r.getFormFactor=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/formFactor",["exports","webruntime/formFactor/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("wire-service/v/1",["exports"],function(r){"use strict";function e(U){return U===void 0}const t="ValueChangedEvent";class E{constructor(q){this.type=t,this.value=q}}const{freeze:C,defineProperty:F,isExtensible:M}=Object,O="$$DeprecatedWiredElementHostKey$$",u="$$DeprecatedWiredParamsMetaKey$$";function f(U,q){if(U==null||!M(U))throw new TypeError("adapter id must be extensible");if(typeof q!="function")throw new TypeError("adapter factory must be a callable");if("adapter"in U)throw new TypeError("adapter id is already associated to an adapter factory");const ce=class extends A{constructor(te){super(te);q(this.eventTarget)}};C(ce),C(ce.prototype),F(U,"adapter",{writable:!1,configurable:!1,value:ce})}function s(){}const{forEach:c,splice:g,indexOf:S}=Array.prototype,P="connect",T="disconnect",w="config";function j(U,q){const ce=S.call(U,q);ce>-1&&g.call(U,ce,1)}function N(U){return Object.keys(U).length===0}function k(U,q){return q.length===0||q.some(ce=>!e(U[ce]))}function Y(U,q,ce){return ce.some(te=>U[te]!==q[te])}class A{constructor(q){this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=q,this.wiredElementHost=q[O],this.dynamicParamsNames=q[u],this.eventTarget={addEventListener:(ce,te)=>{switch(ce){case P:{this.connecting.push(te);break}case T:{this.disconnecting.push(te);break}case w:{this.configuring.push(te),this.currentConfig!==void 0&&te.call(void 0,this.currentConfig);break}default:throw new Error(`Invalid event type ${ce}.`)}},removeEventListener:(ce,te)=>{switch(ce){case P:{j(this.connecting,te);break}case T:{j(this.disconnecting,te);break}case w:{j(this.configuring,te);break}default:throw new Error(`Invalid event type ${ce}.`)}},dispatchEvent:ce=>{if(ce instanceof E){const te=ce.value;this.callback(te)}else{if(ce.type==="wirecontextevent")return this.wiredElementHost.dispatchEvent(ce);throw new Error(`Invalid event type ${ce.type}.`)}return!1}}}update(q){this.isFirstUpdate&&(this.isFirstUpdate=!1,!N(q)&&!k(q,this.dynamicParamsNames))||(e(this.currentConfig)||Y(q,this.currentConfig,this.dynamicParamsNames))&&(this.currentConfig=q,c.call(this.configuring,ce=>{ce.call(void 0,q)}))}connect(){c.call(this.connecting,q=>q.call(void 0))}disconnect(){c.call(this.disconnecting,q=>q.call(void 0))}}r.ValueChangedEvent=E,r.register=f,r.registerWireService=s,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("wire-service",["exports","wire-service/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("@salesforce/client/formFactor/v/1",["exports"],function(r){"use strict";function e(){return typeof window!="undefined"&&window.matchMedia("only screen and (min-width: 48em) and (max-width: 64em)").matches}function t(){return typeof window!="undefined"&&window.matchMedia("only screen and (max-width: 47.9375em)").matches}function E(){return e()?"Medium":t()?"Small":"Large"}const C=E();r.default=C,r.getFormFactor=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("@salesforce/client/formFactor",["exports","@salesforce/client/formFactor/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("@communities-webruntime/common/v/1_66_907-254_0",["exports"],function(r){"use strict";var e=!0,t="src/labels",E=["lwr","assert","logger","webruntime","webruntime/*","mobileruntime/hybridAppManager","@view","@view/*","@app","@app/*","@design","@design/*","@lwrjs","webruntimedesign","webruntimedesign/*","@luvio","@luvio/*","aura-instrumentation","aura","instrumentation/service","instrumentation/utility","aura-storage","transport","wire-service","force/ldsAdaptersAnalyticsDataService","force/ldsAdaptersAnalyticsSmartDataDiscovery","force/ldsAdaptersAnalyticsWave","force/ldsAdaptersAnalyticsWavePrivate","force/ldsAdaptersApex","force/ldsAdaptersCmsAuthoring","force/ldsAdaptersCmsDelivery","force/ldsAdaptersCmsType","force/ldsAdaptersCommerceCatalog","force/ldsAdaptersCommerceSearch","force/ldsAdaptersCommerceStorePricing","force/ldsAdaptersCommunityMicrobatching","force/ldsAdaptersCommunityNavigationMenu","force/ldsAdaptersCommunitySeo","force/ldsAdaptersCommunitySitesSearch","force/ldsAdaptersExperienceMarketingIntegration","force/ldsAdaptersGraphql","force/ldsAdaptersIndustriesCib","force/ldsAdaptersIndustriesClm","force/ldsAdaptersIndustriesDecisionMatrixDesigner","force/ldsAdaptersIndustriesEinsteinAiaccelerator","force/ldsAdaptersIndustriesExplainability","force/ldsAdaptersIndustriesHealthcloudHpi","force/ldsAdaptersIndustriesIdentityverification","force/ldsAdaptersIndustriesInteresttagging","force/ldsAdaptersIndustriesLoyaltyEngine","force/ldsAdaptersIndustriesPublicSector","force/ldsAdaptersIndustriesRcgTenantmanagement","force/ldsAdaptersIndustriesRuleBuilder","force/ldsAdaptersIndustriesSustainabilityBei","force/ldsAdaptersIndustriesSustainabilityDgf","force/ldsAdaptersIndustriesSustainabilityRecalculate","force/ldsAdaptersIndustriesSustainabilityRecordLockunlock","force/ldsAdaptersIndustriesSustainabilityReferenceData","force/ldsAdaptersIndustriesTimeline","force/ldsAdaptersIndustriesVideovisits","force/ldsAdaptersMarketingAssetcreation","force/ldsAdaptersPlatformAdminSuccessGuidance","force/ldsAdaptersPlatformFlow","force/ldsAdaptersPlatformFlowBuilder","force/ldsAdaptersPlatformInteractionOrchestrator","force/ldsAdaptersPlatformLearningContent","force/ldsAdaptersPlatformScaleCenter","force/ldsAdaptersRevenueBillingBatch","force/ldsAdaptersUiapi","force/ldsBindings","force/ldsEngine","force/luvioEngine","force/ldsEngineCreator","force/ldsEngineWebruntime","force/ldsEnvironmentSettings","force/ldsInstrumentation","force/ldsNetwork","force/ldsRecordData","force/ldsStorage","force/lightningOutContainer","force/mobileCapabilities","force/ldsAdaptersAnalyticsTableauEmbedding","runtime_hybrid_capabilities/nativeCapabilities","o11y","o11y/*","@o11y","@o11y/*","@salesforce","@udd","@perm","@branding","@salesforce/*","@udd/*","@perm/*","@branding/*","trustedDesign/shadowDomUtils","community_builder/seoAssistant","community_case/supportQuickActionLayout","community_runtime/utils","community_user/userSettings","embeddedMessaging/container","experience_messaging/embeddedMessaging","community_login/checkEmail","community_login/forgotPassword","community_login/loginForm","community_login/loginUtils","community_login/selfRegister","community_login/socialLogin","b2c_lite_commerce/cartApi","b2c_lite_commerce/checkout","b2c_lite_commerce/checkoutApi","b2c_lite_commerce/checkoutApiDataSource","b2c_lite_commerce/checkoutRequestRetry","b2c_lite_commerce/context","b2c_lite_commerce/data","b2c_lite_commerce/einsteinActivitiesApi","b2c_lite_commerce/einsteinApi","b2c_lite_commerce/einsteinProductAndPriceApi","b2c_lite_commerce/heroBannerUi","b2c_lite_commerce/myAccountMenu","b2c_lite_commerce/orderSummary","b2c_lite_commerce/store","lightning","lightning/*","interop/button","interop/buttonIcon","dxp_page_layout/placeHolderDesign","community_builder/richTextEditor","dxp_form/baseForm","dxp_form/contactForm","dxp_form/dynamicForm","dxp_form/layoutUtils","dxp_form/leadForm","dxp_base/languageSelector","dxp_search/siteResults","dxp_flowruntime","dxp_flowruntime/*","dxp_action/umaFormSubmissionAction","dxp_crm_search/miawSelfServiceManager","flowruntime","flowruntime/*","experience/store","experience/data","experience/util","experience/cmsDeliveryApi","experience/luvioRuntime","experience/personalizationApi","experience/personalizationApiInternal","experience/seoPropertiesApi","experience/seoPropertiesApiInternal","experience/userApi","experience/userApiInternal","wave","wave/*","tableau/tableauViz","tableau/tableauPulse"],C="webruntime";function F(K){return`/${C}${K}`}var M=F("/api"),O=F("/log/metrics"),u=F("/log/errors"),f={APEX_ACTION_ERROR:"APEX_ACTION_ERROR",FAILED_TO_LOAD_RESOURCE:"FAILED_TO_LOAD_RESOURCE",TOO_MANY_REQUESTS:"TOO_MANY_REQUESTS",UNKNOWN_ERROR:"UNKNOWN_ERROR"},s={PUBLISHER:"CommunityHybridContainer/",PLAYGROUND:"playgroundcommunity"},c=8e3,g="/webruntime/login",S="/webruntime/logout",P="@design";function T(K){return`${P}/${K}`}function w(K){return K.replace(/(?!^)([A-Z])/g,"-$1").toLowerCase()}var j=new RegExp(/^[a-z-A-Z_\d]+[/:]{1}[a-zA-Z_\d]+$/),N=new RegExp(/^([a-z][a-z\d]*)(-[a-z\d]+)*$/);function k(K,pe){if(!K)throw new Error(pe)}function Y(K){if(N.test(K))return K;k(j.test(K),`${K} is an invalid module specifier.`);const pe=K.split(/[/:]/),[G,be]=pe;return k(!G.includes("-"),`${K}'s namespace cannot contain hyphens.`),[G.toLowerCase(),w(be)].join("-")}var A="webruntime",U="js",q="latest",ce={FRAMEWORK:"framework",DESIGN:"design",COMPONENT:"component",VIEW:"view",DESIGNCOMPONENT:"designcomponent"};function te(K,pe){if(!K)throw new Error(pe)}function W(K){const[pe,G=""]=K.split("://"),[be,Ce]=G.indexOf("@")>0?G.split("@"):[G];return{type:pe,name:be,locale:Ce}}function Q(K={type:"",name:""},pe,G,be=!0){const{name:Ce}=typeof K=="string"?W(K):K;te(Ce,"Name not specified");const Ve=ke(K,pe,G),Be=be?`.${U}`:"";return`${Ve}${Ce}${Be}`}function ke(K={type:"",name:""},pe,G){const{type:be,locale:Ce}=typeof K=="string"?W(K):K,Ve=be===ce.COMPONENT;return te(be,"Type not specified"),te(pe,"Mode not specified"),te(Ce||!Ve,"Component locale not specified"),`/${A}/${be}/${G||q}/${pe}${Ce?`/${Ce}`:""}/`}var fe="@view";function re(K){return`${fe}/${K}`}var a=["hasVanityURL","isDefault","isPublic","isRoot"],d=[{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:pe})=>K?.objectApiName==="ProductCategory"?pe==="categoryPath":pe!=="categoryPath"}];function m(K,pe){const{match:G,params:be}=pe;be.forEach(Ce=>{if(G&&!G(K.page,Ce))return;const{type:Ve,name:Be}=Ce,Ge=Ve,qe=Ge==="state"?"attributes":"state";!K.page?.[qe]?.[Be]||(K.page[Ge]||(K.page[Ge]={}),K.page[Ge][Be]=K.page[qe][Be],delete K.page[qe][Be])})}function x(K){let pe=K;return["categoryPath","urlPath"].forEach(G=>{pe=pe.replace(new RegExp(`:${G}\\+?`),`:${G}+`)}),pe}function V(K){return K.startsWith(":")?K.substring(1).replace(/[?+]/g,""):null}var se=/\(.*\)/;function Pe(K){return K.split("/").map(pe=>pe.replace(se,"")).join("/")}function Le(K,pe){return K.split("/").map(G=>{const be=V(G);return be&&pe[be]?G.replace(be,`${be}(${pe[be]})`):G}).join("/")}function Oe(K){!K.uri.includes(":")||!K.page?.type||(K.page.attributes=K.page.attributes||{},K.uri.split("/").forEach(pe=>{const G=V(pe);if(G){const be=`:${G}`;K.page.attributes[G]||(K.page.attributes[G]=be)}}))}function Me(K,pe=!1){return K.map(G=>{G.uri||(G.uri=G.path),G.metadata||(G.metadata={}),a.forEach(Ge=>{Ge in G&&(G.metadata[Ge]=G[Ge],delete G[Ge])}),G.uri&&(G.uri=Pe(G.uri),Oe(G)),G.patternMap&&(G.patterns=G.patternMap,delete G.patternMap);const be=G.page?.attributes?.objectApiName;be&&!be.startsWith(":")&&(G.uri=G.uri.replace(":objectApiName",be),G.patterns?.objectApiName&&delete G.patterns.objectApiName);const Ce=d.find(Ge=>G.page?.type===Ge.type);Ce&&m(G,Ce);const Ve=G.page?.type;return!pe&&Ve==="standard__recordPage"&&["ProductCategory","NetworkDataCategory"].includes(G.page.attributes?.objectApiName)&&(G.uri=x(G.uri)),["standard__recordPage","standard__recordRelationshipPage"].includes(Ve)&&!G.page?.attributes?.actionName&&(G.page.attributes.actionName="view"),pe&&G.patterns&&(G.uri=Le(G.uri,G.patterns)),G})}r.API_PATH_PREFIX=M,r.CLIENT_ERROR_TYPES=f,r.ERRORS_PATH_PREFIX=u,r.LABELS_DEFAULT_DIR=t,r.LOCKER_DEFAULT_ENABLED=e,r.MAX_URL_LENGTH=c,r.METRICS_PATH_PREFIX=O,r.MOBILE_APP_USER_AGENTS=s,r.RESOURCE_TYPES=ce,r.TRUSTED_COMPONENTS=E,r.WEBRUNTIME_LOGIN_PATH=g,r.WEBRUNTIME_LOGOUT_PATH=S,r.WEBRUNTIME_PREFIX=C,r.convertToKebabCase=w,r.getDesignComponentModuleSpecifier=T,r.getResourceUrl=Q,r.getViewModuleSpecifier=re,r.moduleSpecifierToElementName=Y,r.parseResourceDescriptor=W,r.parseRoutes=Me,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("@communities-webruntime/common",["exports","@communities-webruntime/common/v/1_66_907-254_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",["exports","webruntime/networkAdapterFetch/v/1"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("networkAdapterFetch",["exports","networkAdapterFetch/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/networkAdapterFetch/v/1",["exports","webruntime/transport/v/1","webruntime/logger/v/1_66_907-254_0","webruntime/apiCall/v/1_66_907-254_0","webruntime/overrides/v/1"],function(r,e,t,E,C){"use strict";const F=/^\/lwr\/apex\/v\d{2,}\.0/,M="execute",O="X-SFDC-Allow-Continuation";async function u(w){const{baseUri:j,basePath:N,body:k,queryParams:Y,method:A,headers:U,urlParams:q}=w,ce=S(Y),te=`${j}${N}${ce}`,W=F.test(j);let Q,ke,fe,re;if(W){const[se,Pe]=T(q.apexClass);ke={namespace:se,classname:Pe,method:q.apexMethod,isContinuation:U[O]==="true",params:A.toLowerCase()==="post"?k:Y.methodParams,cacheable:A.toLowerCase()!=="post"}}else if(A==="post"&&c(k)){const se=new FormData,Pe=[];for(const{name:Le,value:Oe}of k.namedEntries)if(typeof Oe=="string"||Oe instanceof File)se.append(Le,Oe);else{if(g(Oe))throw Error("Webruntime networkAdapterFetch does not support FileReference's");Pe.push(Oe.arrayBuffer().then(Me=>{se.append(Le,new File([new Uint8Array(Me)],Oe.name,{type:Oe.type}))}).catch(Me=>{t.logError(`Error processing file "${Oe.name}":`,Me)}))}await Promise.all(Pe),Q=se}else k===null?Q=null:(Q=JSON.stringify(k),U["Content-Type"]="application/json");if(W){const{url:se,httpRequestOptions:Pe}=E.formatApexRequest(M,ke),Le=await f(se,Pe);fe=Le.response,re=Le.parsedResponse}else fe=await e.fetch(te,{method:A.toUpperCase(),headers:P(U),body:Q});const{status:a,ok:d,statusText:m}=fe,x={};if(fe.headers.forEach((se,Pe)=>{x[Pe]=se}),W)return x["Cache-Control"]=re?.cacheable===!0?"private":"no-cache",{body:re?.returnValue??null,status:a,statusText:m,ok:d,headers:x};let V=null;if(a!==204){const se=x["content-type"];V=se&&se.startsWith("application/json")?await fe.json():await fe.text()}return{body:V,status:a,statusText:m,ok:d,headers:x}}async function f(w,j){let N,k;try{N=await e.fetch(w,j),N.status===401&&C.SessionTimeoutOverrides.runSync(),N.status!==204&&(k=await N.json())}catch(Y){throw s(new Error("Failed to get error from response"))}if(k&&k.error){const Y=k.error;throw Y.length>0?s(Y[0]):s(new Error("Error fetching component"))}return{response:N,parsedResponse:k}}function s(w){return{body:w,status:500,statusText:"Server Error",ok:!1,headers:{}}}function c(w){return typeof w=="object"&&w!==null&&"namedEntries"in w&&Array.isArray(w.namedEntries)}function g(w){return typeof w=="object"&&w!==null&&"isFileReference"in w&&w.isFileReference===!0}function S(w){const j=Object.entries(w).filter(([,N])=>N!=null&&(!Array.isArray(N)||N.length)).map(([N,k])=>`${encodeURIComponent(N)}=${encodeURIComponent(k)}`);return j.length>0?`?${j.join("&")}`:""}function P(w){const j=new Headers;for(const N of Object.keys(w))j.set(N,w[N]);return j}function T(w){const j=w.split("__");return j.length>1?[j[0],j[1]]:["",j[0]]}r.networkAdapterFetch=u,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/networkAdapterFetch",["exports","webruntime/networkAdapterFetch/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})});
