LWR.define("lwr/domRouterUtils/v/0_19_7",["exports","lwr/routerUtils/v/0_19_7"],function(r,e){"use strict";function t(v=""){if(v=v||"",v.indexOf("://")<0){const f=window.location.port?`:${window.location.port}`:"",m=`${window.location.protocol}//${window.location.hostname}${f}`,T=v.charAt(0)==="/"?"":"/";v=m+T+v}const l={},d=document.createElement("a");d.href=v;const u=d.search.substring(1);return u&&u.split("&").forEach(f=>{const[m,T=""]=f.split("=");l[e.decode(m)]=e.decode(T)}),{href:d.href,origin:`${d.protocol}//${d.hostname}${d.port?`:${d.port}`:""}`,pathname:d.pathname.replace(/(\/)?/,"/"),searchParams:l}}function E(v){const l=t(v),d=l.href.replace(/:\d+/,""),u=l.origin.replace(/:\d+/,"");return d.replace(u,"")}function w(v){const l=v.indexOf("#");return l!==-1?v.substring(0,l):v}function F(v,l){const d=l||{};window.history.pushState(d,"",v)}function O(v,l){const d=l||{};window.history.replaceState(d,"",v)}r.getRelativeUrl=E,r.removeFragment=w,r.replace=O,r.set=F,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/domRouterUtils",["exports","lwr/domRouterUtils/v/0_19_7"],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_19_7",["exports"],function(r){"use strict";const e="lwr.bootstrap.",t=`${e}end`,E=`${e}error`,w=`${E}.count`,F=`${e}duration`,O="lwr.bootstrap.init",v=`${O}.duration`,l="lwr.bootstrap.init.module",d=`${l}.duration`,u=`${l}.count`,f="lwr.loader.",m=`${f}module.define`,T=`${m}.count`,P=`${f}module.dynamicLoad`,N=`${P}.count`,A=`${f}module.fetch`,M=`${A}.count`,L=`${A}.duration`,S=`${f}module.error`,J=`${S}.count`,Z=`${f}mappings.fetch`,q=`${Z}.count`,z=`${Z}.duration`,k=`${f}mappings.error`,K=`${k}.count`,D="lwr.router.",te=`${D}navigate`,oe=`${te}.count`,X=`${te}.duration`,me=`${D}view`,a=`${me}.duration`,c=`${D}error`,p=`${c}.count`;r.BOOTSTRAP_DURATION=F,r.BOOTSTRAP_END=t,r.BOOTSTRAP_ERROR=E,r.BOOTSTRAP_ERROR_COUNT=w,r.BOOTSTRAP_PREFIX=e,r.INIT=O,r.INIT_DURATION=v,r.INIT_MODULE=l,r.INIT_MODULE_COUNT=u,r.INIT_MODULE_DURATION=d,r.LOADER_PREFIX=f,r.MAPPINGS_ERROR=k,r.MAPPINGS_ERROR_COUNT=K,r.MAPPINGS_FETCH=Z,r.MAPPINGS_FETCH_COUNT=q,r.MAPPINGS_FETCH_DURATION=z,r.MODULE_DEFINE=m,r.MODULE_DEFINE_COUNT=T,r.MODULE_DYNAMIC_LOAD=P,r.MODULE_DYNAMIC_LOAD_COUNT=N,r.MODULE_ERROR=S,r.MODULE_ERROR_COUNT=J,r.MODULE_FETCH=A,r.MODULE_FETCH_COUNT=M,r.MODULE_FETCH_DURATION=L,r.ROUTER_ERROR=c,r.ROUTER_ERROR_COUNT=p,r.ROUTER_NAV=te,r.ROUTER_NAV_COUNT=oe,r.ROUTER_NAV_DURATION=X,r.ROUTER_PREFIX=D,r.ROUTER_VIEW=me,r.ROUTER_VIEW_DURATION=a,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/metrics",["exports","lwr/metrics/v/0_19_7"],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_19_7",["exports"],function(r){"use strict";function e(){let t,E,w=[];const F=f=>{w.push(f)},O=f=>{w=[...w.slice(0,f),...w.slice(f+1)]},v=f=>{w.filter(m=>m!==null).forEach(m=>m.next&&m.next(f)),t=f,E=void 0},l=f=>{w.filter(m=>m!==null).forEach(m=>m.error&&m.error(f)),t=void 0,E=f};return{next:v,error:l,complete:()=>{w.filter(f=>f!==null).forEach(f=>f.complete&&f.complete()),w=[],t=void 0,E=void 0},subscribe:(f,m=!0)=>{F(f),t&&m&&f.next(t),E&&l(E);const T=w.length-1;return{unsubscribe:()=>O(T)}}}}r.createObservable=e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/observable",["exports","lwr/observable/v/0_19_7"],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_19_7",["exports","lwc/v/8_20_6","lwr/routerUtils/v/0_19_7","lwr/navigation/v/0_19_7"],function(r,e,t,E){"use strict";const w=e.createContextProvider(E.CurrentPageReference),F=t.hasDocument?e.createContextProvider(E.CurrentView):void 0,O=e.createContextProvider(E.NavigationContext);function v(l,d,u,f){u&&f&&(f.setContext(d,l),u(d,{consumerConnectedCallback:f.subscribeContext.bind(f,d),consumerDisconnectedCallback:f.unsubscribeContext.bind(f,d)}))}r.currentPageReferenceContextualizer=w,r.currentViewContextualizer=F,r.navigationContextContextualizer=O,r.provideContext=v,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/contextProvider",["exports","lwr/contextProvider/v/0_19_7"],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_19_7",["exports","lwr/routerErrors/v/0_19_7"],function(r,e){"use strict";function t(){const b=[],U=()=>b.length===0,C=$=>{typeof $=="function"&&b.push($)};return{add:($=[])=>{Array.isArray($)?$.forEach(W=>C(W)):C($)},compile:$=>b.length===0?Promise.resolve(!0):b.reduce((W,ne)=>W.then(ie=>ie===!1?Promise.reject():Promise.resolve(ne($))),Promise.resolve(!0)).then(W=>W!==!1).catch(W=>{if(W instanceof Error)throw W;return!1}),empty:U}}function E(b=""){return b=b||"",encodeURIComponent(b)}function w(b=""){return b=b||"",decodeURIComponent(b)}function F(b){b=b||"/",b.charAt(0)!=="/"&&(b="/"+b);const U=b.match(/^[^#?]+/);if(U!==null){const C=U[0];return C==="/"?"/":C.replace(/\/$/,"")}return"/"}function O(b){b=b||"";const U=b.indexOf("#");U>=0&&(b=b.substring(0,U));const C=b.indexOf("?"),R=C>=0?b.substr(C+1):null,G={};return R&&R.split("&").forEach($=>{if($.indexOf("=")>=0){const[W,ne=""]=$.split("=");G[w(W)]=w(ne)}else G[w($)]=null}),G}function v(b={}){const U=Object.keys(b);return U.length?`?${U.map(C=>{const R=b[C];return R===null?C:`${C}=${E(R)}`}).join("&")}`:""}function l(b){return b&&b.length>1?b.startsWith(":"):!1}function d(b){return b&&l(b)?b.substr(1):!1}function u(b){return Object.values(b).reduce((U,{routeParamName:C})=>{const R=d(C);return R&&U.push(R),U},[])}function f(b,U){if(!b)return null;const{type:C,attributes:R={},state:G={}}=b;if(C){const[$]=U.filter(W=>{const{original:{page:{type:ne=null,attributes:ie={},state:ee={}}={}}}=W,ue=ne===C,Pe=Object.keys(ie).every(Ve=>Object.keys(R).indexOf(Ve)>=0),Ce=Object.keys(ie).length===Object.keys(R).length,$e=Object.keys(ee).every(Ve=>Object.keys(G).indexOf(Ve)>=0),Ne=Object.keys(ie).filter(Ve=>{const I=ie[Ve];return!I||!l(I)}).every(Ve=>ie[Ve]===R[Ve]),Fe=Object.keys(ee).filter(Ve=>{const I=ee[Ve];return I===null||!l(I)}).every(Ve=>ee[Ve]===G[Ve]);return ue&&Pe&&Ce&&Ne&&$e&&Fe});return $||null}return null}function m(b,U){const{regex:C,params:R}=U,G=C.exec(b);if(G){const[,...$]=G,W={};return R.forEach((ne,ie)=>{const{name:ee}=ne,ue=$[ie];W[ee]=ue&&w(ue)}),W}return null}function T(b,U){if(b&&U){const{queryMatcher:C}=U,R=C(b);if(R){const G={};return Object.keys(R).forEach($=>{const W=R[$],{value:ne,routeParamName:ie}=W,ee=ie?ie.substr(1):$;G[ee]=ne&&w(ne)}),G}}return null}function P(b,U){const{compiledQuery:C}=U,R=Object.keys(C).filter($=>{const{literalValue:W}=C[$];return!W}),G={};return Object.keys(b).forEach($=>{const W=b[$];R.indexOf($)<0&&(G[$]=W)}),G}function N(b,U){if(U){const{original:{page:{type:C="",attributes:R={},state:G={}}={}}={}}=U,$=F(b),W=O(b),ne=m($,U),ie=T(W,U);if(ne&&ie){const ee={...ne,...ie},ue={};Object.keys(R).forEach($e=>{const Ne=R[$e];let Fe;if(Ne&&l(Ne)){const Ve=Ne.substr(1);Fe=ee[Ve]}else Fe=Ne;ue[$e]=Fe});const Pe={};Object.keys(G).forEach($e=>{const Ne=G[$e];let Fe;if(Ne&&l(Ne)){const Ve=Ne.substr(1);Fe=ee[Ve]}else Fe=Ne;Pe[$e]=Fe});const Ce=P(W,U);return{type:C,attributes:{...ue},state:{...Ce,...Pe}}}}return null}const A={locale:"en-US",defaultLocale:"en-US"};function M(b,U,C){const{original:{patterns:R=null}={}}=C||{};if(R){const G=m(b,C),$=T(U,C),W={...G,...$};return Object.keys(R).every(ne=>{const ie=R[ne],ee=new RegExp(ie),ue=W[ne]||"";return ee.test(ue)})}return!0}function L(b,U){const C=F(b),R=O(b),G=U?U.filter(W=>W.regex.test(C)):[],[$]=G.filter(W=>{const{queryMatcher:ne}=W;return ne(R)&&M(C,R,W)});return $||null}function S(b,U,C="",R=A,G){if(C&&(b===C||b?.search(new RegExp(`^${C}[/?#]`))===0)&&(b=b.replace(C,"")),G?.locale||R?.locale){const ne=`/${G?.locale||R.locale}`;(b===ne||b?.search(new RegExp(`^${ne}[/?#]`))===0)&&(b=b.replace(ne,""))}const $=L(b,U);let W;if($){const ne=N(b,$);if(ne)return W={route:{id:$.original.id,attributes:{...ne.attributes},state:{...ne.state},pageReference:{type:ne.type,attributes:{...ne.attributes},state:{...ne.state}}},routeDefinition:$},W}else return null;return null}function J(b,U,C="",R=A,G){const $=f(b,U);return $?q(b,$,C,R,G):null}function Z(b,U,C){const{attributeBindings:R,stateBindings:G}=C,{attributes:$,state:W}=U,ne={};return b.forEach(ie=>{const[ee]=Object.keys(R).filter(ue=>d(R[ue])===ie);if(ee)ne[ie]=$[ee];else{const[ue]=Object.keys(G).filter(Pe=>d(G[Pe])===ie);ue&&(ne[ie]=W[ue])}}),ne}function q(b,U,C="",R=A,G){const{params:$,original:{page:W={}}={},toPath:ne,compiledQuery:ie}=U,{attributes:ee={},state:ue={}}=W,Pe=$.filter(({name:fe})=>typeof fe=="string").map(({name:fe})=>fe),Ce=Z(Pe,b,{attributeBindings:ee,stateBindings:ue}),$e=ne(Ce),Ne=u(ie),Fe=Z(Ne,b,{attributeBindings:ee,stateBindings:ue}),Ve=z(b,Fe,U),I=v(Ve),ae=G?.locale||R&&R.locale,ge=ae!==R.defaultLocale?`/${ae}`:"";return`${C}${ge}${$e}${I}`}function z(b,U,C){const{compiledQuery:R,original:{page:{state:G={}}}}=C,{state:$={}}=b||{},W={};Object.keys($).filter(ie=>{const ee=G[ie];return!l(ee)}).forEach(ie=>W[ie]=$[ie]);const ne={};return Object.keys(U).forEach(ie=>{const ee=U[ie],[ue]=Object.keys(R).filter(Pe=>{const Ce=R[Pe],{routeParamName:$e}=Ce;return d($e)===ie});if(ue){const Pe=ue;ne[Pe]=ee}}),{...W,...ne}}function k(b,U,C="",R=A){const G=S(b,U,C,R);return G&&G.route&&G.route.pageReference?G.route.pageReference:null}function K(b){return typeof b=="object"&&b!==null&&!Array.isArray(b)}function D(b){return typeof b=="string"}function te(b,U){return U in b}function oe(b,U=2){if(K(b))try{Object.freeze(b),U>0&&Object.keys(b).forEach(C=>{if(te(b,C)){const R=b[C];R&&typeof R=="object"&&oe(R,U-1)}})}catch(C){}return b}function X(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function me(b){const U=["id","attributes","state","pageReference"],{pageReference:C=null}=b||{};return K(b)&&p(b,U)&&a(C)}function a(b){const U=["type","state","attributes"],{type:C,state:R,attributes:G}=b||{},$=K(b)&&D(C)&&K(R)&&c(R)&&K(G)&&c(G);return p(b,U)&&$}function c(b){return Object.keys(b).every(U=>{const C=b[U];return typeof U=="string"&&(typeof C=="string"||C===null)})}function p(b,U){if(K(b)){const C=U.every($=>te(b,$)),G=Object.keys(U).length===U.length;return C&&G}return!1}function x(b){const U=[];let C=0;for(;C<b.length;){const R=b[C];if(R==="*"||R==="+"||R==="?"){U.push({type:"MODIFIER",index:C,value:b[C++]});continue}if(R==="\\"){U.push({type:"ESCAPED_CHAR",index:C++,value:b[C++]});continue}if(R==="{"){U.push({type:"OPEN",index:C,value:b[C++]});continue}if(R==="}"){U.push({type:"CLOSE",index:C,value:b[C++]});continue}if(R===":"){let G="",$=C+1;for(;$<b.length;){const W=b.charCodeAt($);if(W>=48&&W<=57||W>=65&&W<=90||W>=97&&W<=122||W===95){G+=b[$++];continue}break}if(!G)throw new TypeError(`Missing parameter name at ${C}`);U.push({type:"NAME",index:C,value:G}),C=$;continue}if(R==="("){let G=1,$="",W=C+1;if(b[W]==="?")throw new TypeError(`Pattern cannot start with "?" at ${W}`);for(;W<b.length;){if(b[W]==="\\"){$+=b[W++]+b[W++];continue}if(b[W]===")"){if(G--,G===0){W++;break}}else if(b[W]==="("&&(G++,b[W+1]!=="?"))throw new TypeError(`Capturing groups are not allowed at ${W}`);$+=b[W++]}if(G)throw new TypeError(`Unbalanced pattern at ${C}`);if(!$)throw new TypeError(`Missing pattern at ${C}`);U.push({type:"PATTERN",index:C,value:$}),C=W;continue}U.push({type:"CHAR",index:C,value:b[C++]})}return U.push({type:"END",index:C,value:""}),U}function B(b){return b.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function ce(b){return b&&b.sensitive?"":"i"}function Ae(b,U={}){const C=x(b),{prefixes:R="./"}=U,G=`[^${B(U.delimiter||"/#?")}]+?`,$=[];let W=0,ne=0,ie="";const ee=Ce=>{if(ne<C.length&&C[ne].type===Ce)return C[ne++].value},ue=Ce=>{const $e=ee(Ce);if($e!==void 0)return $e;const{type:Ne,index:Fe}=C[ne];throw new TypeError(`Unexpected ${Ne} at ${Fe}, expected ${Ce}`)},Pe=()=>{let Ce="",$e;for(;$e=ee("CHAR")||ee("ESCAPED_CHAR");)Ce+=$e;return Ce};for(;ne<C.length;){const Ce=ee("CHAR"),$e=ee("NAME"),Ne=ee("PATTERN");if($e||Ne){let I=Ce||"";R.indexOf(I)===-1&&(ie+=I,I=""),ie&&($.push(ie),ie=""),$.push({name:$e||W++,prefix:I,suffix:"",pattern:Ne||G,modifier:ee("MODIFIER")||""});continue}const Fe=Ce||ee("ESCAPED_CHAR");if(Fe){ie+=Fe;continue}if(ie&&($.push(ie),ie=""),ee("OPEN")){const I=Pe(),ae=ee("NAME")||"",ge=ee("PATTERN")||"",fe=Pe();ue("CLOSE"),$.push({name:ae||(ge?W++:""),pattern:ae&&!ge?G:ge,prefix:I,suffix:fe,modifier:ee("MODIFIER")||""});continue}ue("END")}return $}function Ge(b,U={}){const C=ce(U),{encode:R=W=>W,validate:G=!0}=U,$=b.map(W=>{if(typeof W=="object")return new RegExp(`^(?:${W.pattern})$`,C)});return W=>{let ne="";for(let ie=0;ie<b.length;ie++){const ee=b[ie];if(typeof ee=="string"){ne+=ee;continue}const ue=W?W[ee.name]:void 0,Pe=ee.modifier==="?"||ee.modifier==="*",Ce=ee.modifier==="*"||ee.modifier==="+";if(Array.isArray(ue)){if(!Ce)throw new TypeError(`Expected "${ee.name}" to not repeat, but got an array`);if(ue.length===0){if(Pe)continue;throw new TypeError(`Expected "${ee.name}" to not be empty`)}for(let Ne=0;Ne<ue.length;Ne++){const Fe=R(ue[Ne],ee);if(G&&!$[ie].test(Fe))throw new TypeError(`Expected all "${ee.name}" to match "${ee.pattern}", but got "${Fe}"`);ne+=ee.prefix+Fe+ee.suffix}continue}if(typeof ue=="string"||typeof ue=="number"){const Ne=R(String(ue),ee);if(G&&!$[ie].test(Ne))throw new TypeError(`Expected "${ee.name}" to match "${ee.pattern}", but got "${Ne}"`);ne+=ee.prefix+Ne+ee.suffix;continue}if(Pe)continue;const $e=Ce?"an array":"a string";throw new TypeError(`Expected "${ee.name}" to be ${$e}`)}return ne}}function Me(b,U){return Ge(Ae(b,U),U)}function He(b,U){if(!U)return b;const C=b.source.match(/\((?!\?)/g);if(C)for(let R=0;R<C.length;R++)U.push({name:R,prefix:"",suffix:"",modifier:"",pattern:""});return b}function De(b,U,C={}){const{strict:R=!1,start:G=!0,end:$=!0,encode:W=ue=>ue}=C,ne=`[${B(C.endsWith||"")}]|$`,ie=`[${B(C.delimiter||"/#?")}]`;let ee=G?"^":"";for(const ue of b)if(typeof ue=="string")ee+=B(W(ue));else{const Pe=B(W(ue.prefix)),Ce=B(W(ue.suffix));if(ue.pattern)if(U&&U.push(ue),Pe||Ce)if(ue.modifier==="+"||ue.modifier==="*"){const $e=ue.modifier==="*"?"?":"";ee+=`(?:${Pe}((?:${ue.pattern})(?:${Ce}${Pe}(?:${ue.pattern}))*)${Ce})${$e}`}else ee+=`(?:${Pe}(${ue.pattern})${Ce})${ue.modifier}`;else ee+=`(${ue.pattern})${ue.modifier}`;else ee+=`(?:${Pe}${Ce})${ue.modifier}`}if($)R||(ee+=`${ie}?`),ee+=C.endsWith?`(?=${ne})`:"$";else{const ue=b[b.length-1],Pe=typeof ue=="string"?ie.indexOf(ue[ue.length-1])>-1:ue===void 0;R||(ee+=`(?:${ie}(?=${ne}))?`),Pe||(ee+=`(?=${ie}|${ne})`)}return new RegExp(ee,ce(C))}function qe(b,U,C){return De(Ae(b,C),U,C)}function Qe(b,U,C){return b instanceof RegExp?He(b,U):Array.isArray(b)?V(b,U,C):qe(b,U,C)}function V(b,U,C){const R=b.map(G=>Qe(G,U,C).source);return new RegExp(`(?:${R.join("|")})`,ce(C))}const{INVALID_ROUTE_QUERY:le,MISSING_ROUTE_TEMPLATE:Y,MISSING_PAGE_BINDING:ve,INVALID_PAGE_BINDING:Te,INVALID_URI_SYNTAX:We}=e.messages;function Se(b){const{routes:U,caseSensitive:C}=b;return U.map(R=>Re(R,C))}function Re(b,U=!1){const C=[],{id:R,uri:G,page:$}=b;e.invariant(!!G,e.generateMessageObject(Y,[R])),e.invariant(ze(G),e.generateMessageObject(We,[R])),e.invariant(!!$,e.generateMessageObject(ve,[R]));const W=F(G),ne=O(G),ie=Qe(W,C,{sensitive:U,end:b.exact!==!1}),ee=Me(W,{encode:encodeURIComponent}),ue=st(ne),Pe=lt(ue,U),Ce={original:b,regex:ie,params:C,toPath:ee,compiledQuery:ue,queryMatcher:Pe};return e.invariant(Ze(Ce),e.generateMessageObject(Te,[R])),Ce}function ze(b=""){return!["*","(",")",";"].some(R=>b.indexOf(R)>=0)}function Ze(b){const{original:{page:U}={},params:C,compiledQuery:R}=b,G=U&&U.type,$=U&&U.attributes||{},W=U&&U.state||{};if(typeof G!="string"||typeof $!="object"||typeof W!="object")return!1;const ne=Object.values(C).map(({name:Ne})=>Ne),ie=u(R),ee=[...ne,...ie],ue=Object.values($).filter(l).map(d),Pe=Object.values(W).filter(l).map(d),Ce=ee.every(Ne=>typeof Ne!="string"?!1:ue.indexOf(Ne)>=0||Pe.indexOf(Ne)>=0),$e=ee.length===ue.length+Pe.length;return!!(U&&G&&$&&W&&Ce&&$e)}function st(b){const U={};return Object.keys(b).forEach(C=>{const R=b[C];e.invariant(l(C)?R===null:!0,le),l(C)?U[C.substr(1)]={routeParamName:C}:R&&l(R)?U[C]={routeParamName:R}:U[C]={literalValue:R===null?null:R}}),U}function lt(b,U=!1){return R=>{const G=Object.keys(R),$=Object.keys(b);return $.every(ne=>G.indexOf(ne)>=0)?$.reduce((ne,ie)=>{if(ne===null)return null;const{literalValue:ee,routeParamName:ue}=b[ie],Pe=R[ie];let Ce=!0;return typeof ee=="string"?Ce=U?ee===Pe:ee.toUpperCase()===(Pe==null?Pe:Pe.toUpperCase()):ee===null&&(Ce=Pe===ee),Ce?ne={...ne,[ie]:{value:Pe,routeParamName:ue}}:ne=null,ne},{}):null}}const Le=typeof document!="undefined",yt={pathToRegexp:Qe,compile:Me};r.DEFAULT_I18N_ROUTER_CONFIG=A,r.createFilterChain=t,r.decode=w,r.encode=E,r.freeze=oe,r.getPageReferenceFromUriAndRouteDef=N,r.getPageReferenceFromUrl=k,r.getPathFromUrl=F,r.getQueryFromUrl=O,r.getQueryString=v,r.getUrlFromPageReference=J,r.getUrlFromPageReferenceAndRouteDef=q,r.guid=X,r.hasDocument=Le,r.isObject=K,r.isValidRoute=me,r.matchRouteByUrl=S,r.parseRoutes=Se,r.pathToRegexp=yt,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/routerUtils",["exports","lwr/routerUtils/v/0_19_7"],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_19_7",["exports","lwr/routerUtils/v/0_19_7"],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_19_7"],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_19_7",["exports","lwr/contextUtils/v/0_19_7","lwr/routerErrors/v/0_19_7"],function(r,e,t){"use strict";const E=new e.ContextInfo(void 0),w=class extends e.generateContextualWireAdapter(E){async update(O,v){if(v){const l=O&&O.viewName?O.viewName:"default",d=v.viewset[l],u=d,f=u&&u.module||d;let m;if(f)try{const T=await f(),P=T&&T.default;if(P&&P.constructor!==void 0)this._callback(P);else throw new Error("error occurred with view import")}catch(T){const P=T;u.specifier?m=t.generateMessageObject(t.messages.VIEW_IMPORT_FAILED_WITH_SPECIFIER,[u.specifier,l,P.message,P.stack||""]):m=t.generateMessageObject(t.messages.VIEW_IMPORT_FAILED,[l,P.message,P.stack||""])}else m=t.generateMessageObject(t.messages.VIEW_MISSING,[l]);v.onComplete&&v.onComplete(m)}}};r.CurrentView=w,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/currentView",["exports","lwr/currentView/v/0_19_7"],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_19_7",["exports","lwr/contextUtils/v/0_19_7"],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_19_7"],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_19_7",["exports"],function(r){"use strict";const e="LWR",t={Fatal:0,Error:1,Warning:2,Log:3};function E(l,d){return Array.isArray(d)?l.replace(/\{([0-9]+)\}/g,(u,f)=>d[f]):l}function w(l,d){return`${l.code}: ${E(l.message,d)}`}function F(l,d){const u={...l,message:E(l.message,d)};return l.address&&(u.address=E(l.address,d)),l.stack&&(u.stack=E(l.stack,d)),u}function O(l,d,u){if(!l)throw new Error(w(d,u))}const v={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=w,r.generateMessageObject=F,r.invariant=O,r.messages=v,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/routerErrors",["exports","lwr/routerErrors/v/0_19_7"],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_19_7",["exports","lwr/routerErrors/v/0_19_7"],function(r,e){"use strict";function t(l){if(l==null)throw new TypeError("Provider must be defined.")}class E{constructor(d){this.infoMap=new WeakMap,this.defaultValue=d}getInfo(d){let u=this.infoMap.get(d);return u===void 0&&(u={consumers:new Set},this.infoMap.set(d,u)),u}setContext(d,u){t(d);const f=u,m=this.getInfo(d);m.contextValue=u,m.consumers.forEach(T=>T.provide(f)),m.consumers.size===0&&f?.onComplete&&f.onComplete()}getContext(d){t(d);const{contextValue:u}=this.getInfo(d);return u!==void 0?u:this.defaultValue}clearContext(d){t(d),this.infoMap.delete(d)}subscribeContext(d,u){t(d);const{consumers:f,contextValue:m}=this.getInfo(d);f.has(u)||(f.add(u),u.provide(m))}unsubscribeContext(d,u){t(d),this.getInfo(d).consumers.delete(u)}}const w=new WeakMap;function F(l){const d=w.get(l);if(!d||!d.value)throw new Error(e.generateMessage(e.messages.MISSING_CONTEXT));return d.value}function O(l,d){const u={id:l,value:d,update:f=>{u.value=f}};return w.set(u.id,u),u}function v(l){var d;return d=class{constructor(m){this._callback=m}connect(){}disconnect(){}update(m,T){T&&this._callback(T)}static setContext(m,T){l.setContext(m,T)}static getContext(m){return l.getContext(m)}static clearContext(m){l.clearContext(m)}static subscribeContext(m,T){l.subscribeContext(m,T)}static unsubscribeContext(m,T){l.unsubscribeContext(m,T)}},d.contextSchema={value:"required"},d}r.ContextInfo=E,r.generateContextualWireAdapter=v,r.getNavigationHelm=F,r.registerNavigationHelm=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/contextUtils",["exports","lwr/contextUtils/v/0_19_7"],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_19_7",["exports","lwr/contextUtils/v/0_19_7"],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_19_7"],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_19_7",["exports","lwr/navigationContext/v/0_19_7","lwr/currentPageReference/v/0_19_7","lwr/currentView/v/0_19_7","lwr/contextUtils/v/0_19_7","lwr/routerErrors/v/0_19_7","lwr/navigationMixinHacks/v/0_19_7"],function(r,e,t,E,w,F,O){"use strict";function v(A,M,L,S){w.getNavigationHelm(A).navigate(M,L,S)}function l(A,M,L){return w.getNavigationHelm(A).generateUrl(M,L)}function d(A,M,L){return w.getNavigationHelm(A).generateUrlAsync(M,L)}const u=Symbol("Navigate"),f=Symbol("GenerateUrl"),m=Symbol("NavContext"),T=Symbol("NavContext"),P=typeof window=="undefined";function N(A){F.invariant(typeof A.prototype.dispatchEvent=="function",F.messages.INVALID_MIXIN_CMP,[A.toString()]);class M extends A{[T](){if(!this[m]&&(this.dispatchEvent(new CustomEvent(O.CONTEXT_ID_BACKDOOR,{bubbles:!0,composed:!0,detail:{callback:S=>{this[m]=S}}})),!this[m]))throw new Error(F.generateMessage(F.messages.MISSING_CONTEXT))}[u](S,J,Z){P||(this[T](),v(this[m],S,J,Z))}async[f](S,J){return P?null:(this[T](),d(this[m],S,J))}}return M}N.Navigate=u,N.GenerateUrl=f,N.NavContext=m,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 w.ContextInfo}}),Object.defineProperty(r,"generateContextualWireAdapter",{enumerable:!0,get:function(){return w.generateContextualWireAdapter}}),Object.defineProperty(r,"getNavigationHelm",{enumerable:!0,get:function(){return w.getNavigationHelm}}),Object.defineProperty(r,"registerNavigationHelm",{enumerable:!0,get:function(){return w.registerNavigationHelm}}),r.NavigationMixin=N,r.generateUrl=l,r.navigate=v,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/navigation",["exports","lwr/navigation/v/0_19_7"],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_19_7",["exports","lwr/navigation/v/0_19_7","lwr/contextProvider/v/0_19_7","lwr/routerErrors/v/0_19_7","lwr/routerUtils/v/0_19_7","lwr/observable/v/0_19_7","lwr/metrics/v/0_19_7","lwr/profiler/v/0_19_7","lwr/navigationMixinHacks/v/0_19_7"],function(r,e,t,E,w,F,O,v,l){"use strict";const d=`universalcontainernavigationevent${w.guid()}`,u=`universalcontainerparentevent${w.guid()}`;class f{constructor(P,N,A){this.pendingRoute=null,this.committedRoute=null,this.contextId=Object.freeze(()=>{}),this.connected=!1,this.preNavFilters=w.createFilterChain(),this.errorNavFilters=w.createFilterChain(),this._handleNavigationEvent=M=>{const L=M;if(L.detail&&typeof L.detail=="object"){const{url:S,replace:J,address:Z}=L.detail;this.config.handleNavigation(Z,J)?this.root&&!S?this.root.processError(E.generateMessageObject(E.messages.MISSING_URL,[JSON.stringify(Z)])):this.parent||this.process(S,J):L.stopPropagation()}},this._handleParentEvent=M=>{M.stopImmediatePropagation();const L=M;L&&L.detail&&typeof L.detail=="function"&&L.detail(this)},this.config={handleNavigation:P.handleNavigation||(()=>!0)},this.target=A||window,this.router=N,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,N,A){if(A)this.processError(A);else{if(this.committedRoute&&P.route===this.committedRoute.route)return;v.logOperationEnd({id:O.ROUTER_VIEW,specifier:this.eventId}),this.pendingRoute=this.pendingRoute||{...P,url:N},this.committedRoute={...this.pendingRoute,...P},e.CurrentPageReference.setContext(this.target,P.route.pageReference),this.routeObservable.next({...this.committedRoute,viewset:P.viewset}),v.logOperationEnd({id:O.ROUTER_NAV,specifier:this.eventId}),this.child&&this.child.process(this._stripUrlForChild(this.committedRoute.url))}}connect(){this._sendEvent(u,N=>{this.parent=N,N.addChild(this)});const P={navigate:(N,A)=>this.navigate(N,A),generateUrl:(N,A)=>this.generateUrl(N,A),generateUrlAsync:(N,A)=>this.generateUrlAsync(N,A),subscribe:(N,A)=>this.subscribe(N,A)};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(N=>{if(N.status===404){this.processError(E.generateMessageObject(E.messages.DESTINATION_NOT_FOUND));return}if(N.status&&N.status>=400){const L=N.error||new Error;this.processError(E.generateMessageObject(E.messages.DESTINATION_ERROR,[N.status.toString(),L.message,L.stack||""]));return}const A=N.route.pageReference||{},M=this.router.generateUrl(A)||"";if(v.logOperationStart({id:O.ROUTER_VIEW,specifier:this.eventId}),N.viewset){const L={viewset:N.viewset,onComplete:this.updateWires.bind(this,N,M)};e.CurrentView.setContext(this.target,L)}else N.route.pageReference&&this.updateWires(N,M)},!0),w.hasDocument&&(this.target.addEventListener(d,this._handleNavigationEvent),this.target.addEventListener(u,this._handleParentEvent),this.target.addEventListener(l.CONTEXT_ID_BACKDOOR,N=>{const A=N;A.detail.callback&&A.detail.callback(this.contextId)})),this.connected=!0}disconnect(){this.target.removeEventListener(d,this._handleNavigationEvent),this.target.removeEventListener(u,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(N=>{setTimeout(()=>{E.invariant(!this.child,E.messages.MULTIPLE_CHILDREN),this.child=P,N()},0)}),this.child&&this.committedRoute){const N=this._stripUrlForChild(this.committedRoute.url);await this.child.preProcess(N)&&this.child.process(N)}}async process(P,N,A,M){this.eventId=new Date().getTime().toString(),v.logOperationStart({id:O.ROUTER_NAV,specifier:this.eventId});try{this.parent||await this.preProcess(P,A)}catch(S){if(S.code)return this.processError(S),!1;throw S}const L=this.router.parseUrl(P);return L&&this.router.navigate(L,A),!0}preProcess(P,N){const A=this.router.parseUrl(P),M=A&&this.router.matchRoute(A,N);return M?(this.pendingRoute={url:P,...M},(this.preNavFilters.empty()?Promise.resolve(!0):this.preNavFilters.compile({current:this.committedRoute||void 0,next:this.pendingRoute})).then(S=>S&&this.child?this.child.preProcess(this._stripUrlForChild(P)):S).then(S=>S||Promise.reject(E.generateMessageObject(E.messages.PRENAV_FAILED,[P])))):Promise.reject(E.generateMessageObject(E.messages.MISSING_ROUTE,[P]))}processError(P){v.logOperationStart({id:O.ROUTER_ERROR}),this.errorNavFilters.compile(P),this.child&&this.child.processError(P)}navigate(P,N,A){const M=this.filterNavigateOptions(A);let L=this.router.generateUrl(P,M);L&&(L=(this.parent&&this.parent.committedRoute&&this.parent.committedRoute.pathMatch||"").concat(L)),this._sendEvent(d,{url:L,replace:N,address:P})}generateUrl(P,N){const A=this.filterNavigateOptions(N),M=this.router.generateUrl(P,A);return M?`${this.parent&&this.parent.committedRoute&&this.parent.committedRoute.pathMatch||""}${M}`:null}async generateUrlAsync(P,N){const A=this.filterNavigateOptions(N),M=await this.router.generateUrlAsync(P,A);return M?`${this.parent&&this.parent.committedRoute&&this.parent.committedRoute.pathMatch||""}${M}`:null}subscribe(P,N){return this.routeObservable.subscribe({next:P,error:()=>{},complete:()=>{}},Boolean(N))}_sendEvent(P,N){w.hasDocument&&this.target.dispatchEvent(new CustomEvent(P,{bubbles:!0,composed:!0,detail:N}))}_stripUrlForChild(P){return this.pendingRoute&&P.indexOf(this.pendingRoute.pathMatch)===0?P.replace(this.pendingRoute.pathMatch,""):P}filterNavigateOptions(P){const N=!this.parent;return{...P,locale:N?P?.locale:void 0}}}function m(T,P,N){return new f(T,P,N)}r.DomRouterImpl=f,r.NAV_EVENT=d,r.PARENT_EVENT=u,r.createDomRouter=m,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/domRouter",["exports","lwr/domRouter/v/0_19_7"],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_19_7",["exports","lwc/v/8_20_6","lwr/domRouter/v/0_19_7","lwr/domRouterUtils/v/0_19_7","lwr/routerUtils/v/0_19_7"],function(r,e,t,E,w){"use strict";class F extends t.DomRouterImpl{constructor(...l){super(...l);this.historyDisabled=!1,this.currentUrl=""}connect(){super.connect(),this.historyDisabled||(w.hasDocument&&window.addEventListener("popstate",this.onpopstate.bind(this)),this.onpopstate())}onpopstate(){if(!this.parent&&w.hasDocument){const l=E.getRelativeUrl(window.location.href),d=this.router.basePath.includes("#")?l:E.removeFragment(l);d!==this.currentUrl&&this.catchBrowserUpdate(d)}}disconnect(){super.disconnect(),w.hasDocument&&window.removeEventListener("popstate",this.onpopstate)}async process(l,d,u,f=!0){const m=await super.process(l,d,u,f);return m&&!this.historyDisabled&&f&&this.connected&&!this.parent&&(d?E.replace(l):E.set(l),this.currentUrl=l),m}catchBrowserUpdate(l){this.process(l,!1,{},!1)}}e.registerDecorators(F,{fields:["historyDisabled","currentUrl"]});function O(v,l,d){return new F(v,l,d)}r.HistoryRouter=F,r.createHistoryRouter=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/historyRouter",["exports","lwr/historyRouter/v/0_19_7"],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_19_7",["exports","lwc/v/8_20_6","lwr/historyRouter/v/0_19_7","lwr/routerErrors/v/0_19_7","lwr/domRouter/v/0_19_7","lwr/routerUtils/v/0_19_7"],function(r,e,t,E,w,F){"use strict";function O(L,S,J){var Z=L?"."+L:"";return"span.router-title"+Z+" {position: absolute;margin: -1px;border: 0;padding: 0;width: 1px;height: 1px;overflow: hidden;clip: rect(0 0 0 0);text-transform: none;white-space: nowrap;}"}O.$scoped$=!0;var v=[O];const l=e.parseFragment`<span class="router-title${0}" aria-live="polite" aria-atomic="true"${2}></span>`,d={key:0},u=[],f={ref:"title"};function m(L,S,J,Z){const{s:q,sp:z,st:k}=L;return[q("",d,u,J),k(l,2,[z(0,f,null)])]}var T=e.registerTemplate(m);m.slots=[""],m.renderMode="light",m.hasRefs=!0,m.stylesheets=[],m.stylesheetToken="lwc-7bis3qj4jjc",m.legacyStylesheetToken="lwr-routerContainer_routerContainer",v&&m.stylesheets.push.apply(m.stylesheets,v),e.freezeTemplate(m);let P=!1;function N(L,S={},J){const Z=S.historyDisabled?new w.DomRouterImpl(S,J,L):new t.HistoryRouter(S,J,L),q={addPreNavigate:z=>(Z.addPreNavigate(z),q),addPostNavigate:z=>(Z.subscribe(z),q),addErrorNavigate:z=>(Z.addErrorNavigate(z),q),connect:()=>{Z.connect(),E.invariant(!P||!!Z.parent,E.messages.MULTIPLE_ROOTS),P=P||!Z.parent,q.id=Z.contextId},disconnect:()=>{P=P&&!!Z.parent,Z.disconnect()}};return q}class A extends e.LightningElement{constructor(){super();this.router=void 0,this.historyDisabled=!1,this.currentTitle=F.hasDocument?document.title:""}connectedCallback(){const S={historyDisabled:this.historyDisabled,handleNavigation:this.handleNavigation.bind(this)};F.hasDocument&&this.router&&(this.routerApi=N(this,S,this.router),this.routerApi.addPreNavigate(this.preNavigate.bind(this)).addPostNavigate(this.postNavigate.bind(this)).addErrorNavigate(this.errorNavigate.bind(this)).connect())}preNavigate(S){const J=this._createEvent("prenavigate",S,!0);return this.dispatchEvent(J),!J.defaultPrevented}postNavigate(S){this.dispatchEvent(this._createEvent("postnavigate",S));const J=S.routeDefinition.metadata&&S.routeDefinition.metadata.title;J&&(this.currentTitle=J.replace(/[<>&"']/g,q=>{switch(q){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";case"'":return"'";default:return q}}),document.title=this.currentTitle);const Z=this.refs?.title;Z&&(Z.innerHTML=this.currentTitle,setTimeout(()=>{Z.innerHTML=""},500))}errorNavigate(S){return this.dispatchEvent(this._createEvent("errornavigate",S)),!0}handleNavigation(S,J){const Z=this._createEvent("handlenavigation",{address:S,replace:J},!0);return this.dispatchEvent(Z),!Z.defaultPrevented}disconnectedCallback(){this.routerApi&&this.routerApi.disconnect()}_createEvent(S,J,Z){return new CustomEvent(S,{detail:J,bubbles:!1,composed:!1,cancelable:Z})}}A.renderMode="light",e.registerDecorators(A,{publicProps:{router:{config:0},historyDisabled:{config:0}}});const M=e.registerComponent(A,{tmpl:T,sel:"lwr-router-container",apiVersion:63});r.default=M,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/routerContainer",["exports","lwr/routerContainer/v/0_19_7"],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_1084-258_0",["exports","lwc/v/8_20_6"],function(r,e){"use strict";const t=[];function E(O,v,l,d){return t}var w=e.registerTemplate(E);E.renderMode="light",E.stylesheets=[],E.stylesheetToken="lwc-15jgd3dq0rl",E.legacyStylesheetToken="webruntime-defaultView_defaultView",e.freezeTemplate(E);var F={html:w,attributes(){}};r.default=F,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/defaultView",["exports","webruntime/defaultView/v/1_66_1084-258_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_1084-258_0",["exports","lwr/loaderLegacy/v/0_19_7","@app/isDesignMode/v/1","@app/isPreviewMode/v/1"],function(r,e,t,E){"use strict";function w(d){return d&&typeof d=="object"&&"default"in d?d:{default:d}}var F=w(t),O=w(E);const{info:v}=console;async function l(){if(F.default||O.default){const{start:d,startPreview:u}=await e.load("webruntimedesign/designmode/v/1");F.default&&(/interactive|complete/.test(document.readyState)?d():document.addEventListener("DOMContentLoaded",d,!1)),O.default&&(u?u():v("startPreview() does not exist in this environment!"))}}r.designmodeInit=l,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/designmodeInit",["exports","webruntime/designmodeInit/v/1_66_1084-258_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_1084-258_0",["exports"],function(r){"use strict";function e(T,P){if(!T)throw new Error(P)}function t(T){return typeof T=="object"&&T!==null&&!Array.isArray(T)}function E(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(T){const P=Math.random()*16|0;return(T==="x"?P:P&3|8).toString(16)})}function w(T){return typeof T=="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(T)}const F=new RegExp("^([a-z]+://|//)","i");function O(T){return T?F.test(T):!1}const v=new RegExp("/sfsites/c/.+","i");function l(T){return T?v.test(T):!1}function d(T,P){const N=JSON.stringify(P);if(!(window&&window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(T,N))){const M=new XMLHttpRequest;M.open("POST",T,!0),M.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),M.send(N)}}function u(T){return document?.querySelector(`meta[name="${T}"]`)?.getAttribute("content")||""}function f(){return u("basePath")}function m(){return u("deployTarget")||"CORE"}r.assert=e,r.getBasePathFromMetaTag=f,r.getDeployTargetFromMetaTag=m,r.isAbsoluteURL=O,r.isObject=t,r.isSfdcCoreURL=l,r.sendPayloadToServer=d,r.uuidValidate=w,r.uuidv4=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/utils",["exports","webruntime/utils/v/1_66_1084-258_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_1084-258_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_1084-258_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_1084-258_0",["exports","webruntime/logger/v/1_66_1084-258_0","@communities-webruntime/common/v/1_66_1084-258_0","webruntime/transport/v/1_66_1084-258_0"],function(r,e,t,E){"use strict";function w(v){E.sendBeacon({path:t.ERRORS_PATH_PREFIX,payload:JSON.stringify(v),contentType:"text/plain;charset=UTF-8"})}function F(v,l){document.dispatchEvent(new CustomEvent("client-error",{detail:{error:v,type:l}}))}function O({subject:v,error:l,wcstack:d,type:u=t.CLIENT_ERROR_TYPES.UNKNOWN_ERROR}){d=d||l.wcstack;const{message:f,stack:m}=l,{hostname:T,pathname:P}=globalThis.location||{},A={subject:v,message:f,stack:m,wcstack:d,location:{hostname:T,pathname:P}};e.logError(m||A),typeof document!="undefined"&&(F(A,u),w(A))}r.reportError=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/errors",["exports","webruntime/errors/v/1_66_1084-258_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_1084-258_0",["exports","lwc/v/8_20_6","@communities-webruntime/common/v/1_66_1084-258_0","webruntime/overrides/v/1_66_1084-258_0","webruntime/errors/v/1_66_1084-258_0","webruntime/utils/v/1_66_1084-258_0","webruntime/views/v/1_66_1084-258_0","webruntime/routingService/v/1_66_1084-258_0","@app/viewToThemeLayoutMap/v/1","webruntime/designmodeInit/v/1_66_1084-258_0","webruntime/defaultView/v/1_66_1084-258_0"],function(r,e,t,E,w,F,O,v,l,d,u){"use strict";function f(L){return L&&typeof L=="object"&&"default"in L?L:{default:L}}var m=f(O),T=f(l),P=f(u),N=void 0;class A extends e.LightningElement{constructor(...S){super(...S);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(S){this._routeParams=S}async connectedCallback(){const S=this.view||P.default;this.generatedTemplateHtml=S.html,this.attributes=S.attributes(this,this.routeParams)||{},await d.designmodeInit(),this.subscription=v.subscribe(this.loadThemeLayout.bind(this))}render(){return this.generatedTemplateHtml}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}updateTemplate(S){this.generatedTemplateHtml=S.html}updateRoute(S,J){v.handleExtraRouteParams(J);const{state:Z,attributes:q}=J;this.previousRouteId=this.route?.id||null,this._routeParams={...Z,...q},this.attributes=S.attributes(this,this.routeParams)||{},this.route=J}restoreDefaultTemplate(){this.generatedTemplateHtml=P.default.html}async loadThemeLayout(S){let J=!1;const Z=S.routeDefinition.view,q=T.default[Z];setTimeout(async()=>{!J&&this.themeLayout!==q&&this.restoreDefaultTemplate()},10);let z;try{z=await m.default(q)}catch(k){await this.handleFetchViewFailed(k,S.routeDefinition.metadata?.isPublic)}if(!!z)try{J=!0,window?.scrollTo(0,0),this.themeLayout!==q&&(this.themeLayout=q,this.updateTemplate(z.default)),this.updateRoute(z.default,S.route)}catch(k){w.reportError({subject:"InnerApp.loadThemeLayout error",type:t.CLIENT_ERROR_TYPES.FAILED_TO_LOAD_RESOURCE,error:k})}}async handleFetchViewFailed(S,J){await E.PageNavigationFailureOverrides.run({error:S,isPublic:J})&&w.reportError({subject:"InnerApp.loadThemeLayout#getViewModule error",type:t.CLIENT_ERROR_TYPES.FAILED_TO_LOAD_RESOURCE,error:S})}}A.renderMode="light",e.registerDecorators(A,{publicProps:{view:{config:0},routerContainerView:{config:0},routeParams:{config:3}},publicMethods:["updateTemplate","updateRoute","restoreDefaultTemplate"],fields:["_routeParams","generatedTemplateHtml","attributes","previousRouteId","route"]});const M=e.registerComponent(A,{tmpl:N,sel:"webruntime-inner-app",apiVersion:63});r.default=M,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/innerApp",["exports","webruntime/innerApp/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lightning/purifyLib/v/1_27_9-alpha",["exports"],function(r){"use strict";/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:e,setPrototypeOf:t,isFrozen:E,getPrototypeOf:w,getOwnPropertyDescriptor:F}=Object;let{freeze:O,seal:v,create:l}=Object,{apply:d,construct:u}=typeof Reflect!="undefined"&&Reflect;O||(O=function(R){return R}),v||(v=function(R){return R}),d||(d=function(R,G,$){return R.apply(G,$)}),u||(u=function(R,G){return new R(...G)});const f=K(Array.prototype.forEach),m=K(Array.prototype.lastIndexOf),T=K(Array.prototype.pop),P=K(Array.prototype.push),N=K(Array.prototype.splice),A=K(String.prototype.toLowerCase),M=K(String.prototype.toString),L=K(String.prototype.match),S=K(String.prototype.replace),J=K(String.prototype.indexOf),Z=K(String.prototype.trim),q=K(Object.prototype.hasOwnProperty),z=K(RegExp.prototype.test),k=D(TypeError);function K(C){return function(R){R instanceof RegExp&&(R.lastIndex=0);for(var G=arguments.length,$=new Array(G>1?G-1:0),W=1;W<G;W++)$[W-1]=arguments[W];return d(C,R,$)}}function D(C){return function(){for(var R=arguments.length,G=new Array(R),$=0;$<R;$++)G[$]=arguments[$];return u(C,G)}}function te(C,R){let G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:A;t&&t(C,null);let $=R.length;for(;$--;){let W=R[$];if(typeof W=="string"){const ne=G(W);ne!==W&&(E(R)||(R[$]=ne),W=ne)}C[W]=!0}return C}function oe(C){for(let R=0;R<C.length;R++)q(C,R)||(C[R]=null);return C}function X(C){const R=l(null);for(const[G,$]of e(C))q(C,G)&&(Array.isArray($)?R[G]=oe($):$&&typeof $=="object"&&$.constructor===Object?R[G]=X($):R[G]=$);return R}function me(C,R){for(;C!==null;){const $=F(C,R);if($){if($.get)return K($.get);if(typeof $.value=="function")return K($.value)}C=w(C)}function G(){return null}return G}const a=O(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),c=O(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),p=O(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),x=O(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),B=O(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ce=O(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ae=O(["#text"]),Ge=O(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Me=O(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),He=O(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),De=O(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),qe=v(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Qe=v(/<%[\w\W]*|[\w\W]*%>/gm),V=v(/\$\{[\w\W]*/gm),le=v(/^data-[\-\w.\u00B7-\uFFFF]+$/),Y=v(/^aria-[\-\w]+$/),ve=v(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Te=v(/^(?:\w+script|data):/i),We=v(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Se=v(/^html$/i),Re=v(/^[a-z][.\w]*(-[.\w]+)+$/i);var ze=Object.freeze({__proto__:null,ARIA_ATTR:Y,ATTR_WHITESPACE:We,CUSTOM_ELEMENT:Re,DATA_ATTR:le,DOCTYPE_NAME:Se,ERB_EXPR:Qe,IS_ALLOWED_URI:ve,IS_SCRIPT_OR_DATA:Te,MUSTACHE_EXPR:qe,TMPLIT_EXPR:V});const Ze={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},st=function(){return typeof window=="undefined"?null:window},lt=function(R,G){if(typeof R!="object"||typeof R.createPolicy!="function")return null;let $=null;const W="data-tt-policy-suffix";G&&G.hasAttribute(W)&&($=G.getAttribute(W));const ne="dompurify"+($?"#"+$:"");try{return R.createPolicy(ne,{createHTML(ie){return ie},createScriptURL(ie){return ie}})}catch(ie){return console.warn("TrustedTypes policy "+ne+" could not be created."),null}},Le=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function yt(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:st();const R=ye=>yt(ye);if(R.version="3.2.6",R.removed=[],!C||!C.document||C.document.nodeType!==Ze.document||!C.Element)return R.isSupported=!1,R;let{document:G}=C;const $=G,W=$.currentScript,{DocumentFragment:ne,HTMLTemplateElement:ie,Node:ee,Element:ue,NodeFilter:Pe,NamedNodeMap:Ce=C.NamedNodeMap||C.MozNamedAttrMap,HTMLFormElement:$e,DOMParser:Ne,trustedTypes:Fe}=C,Ve=ue.prototype,I=me(Ve,"cloneNode"),ae=me(Ve,"remove"),ge=me(Ve,"nextSibling"),fe=me(Ve,"childNodes"),Ke=me(Ve,"parentNode");if(typeof ie=="function"){const ye=G.createElement("template");ye.content&&ye.content.ownerDocument&&(G=ye.content.ownerDocument)}let Oe,ct="";const{implementation:dt,createNodeIterator:it,createDocumentFragment:bt,getElementsByTagName:ut}=G,{importNode:et}=$;let Xe=Le();R.isSupported=typeof e=="function"&&typeof Ke=="function"&&dt&&dt.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Pt,ERB_EXPR:ft,TMPLIT_EXPR:gt,DATA_ATTR:Nt,ARIA_ATTR:_t,IS_SCRIPT_OR_DATA:_e,ATTR_WHITESPACE:n,CUSTOM_ELEMENT:i}=ze;let{IS_ALLOWED_URI:o}=ze,s=null;const g=te({},[...a,...c,...p,...B,...Ae]);let _=null;const Q=te({},[...Ge,...Me,...He,...De]);let he=Object.seal(l(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}})),Ee=null,be=null,je=!0,ke=!0,de=!1,Ue=!0,Be=!1,vt=!0,ht=!1,Et=!1,Ct=!1,tt=!1,Rt=!1,mt=!1,At=!0,jt=!1;const Vt="user-content-";let kt=!0,h=!1,j={},H=null;const se=te({},["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 Ie=null;const we=te({},["audio","video","img","source","image","track"]);let xe=null;const Je=te({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),St="http://www.w3.org/1998/Math/MathML",$t="http://www.w3.org/2000/svg",Tt="http://www.w3.org/1999/xhtml";let Lt=Tt,Gt=!1,Wt=null;const ar=te({},[St,$t,Tt],M);let Ft=te({},["mi","mo","mn","ms","mtext"]),Ht=te({},["annotation-xml"]);const sr=te({},["title","style","font","a","script"]);let Ut=null;const lr=["application/xhtml+xml","text/html"],ur="text/html";let nt=null,Mt=null;const cr=G.createElement("form"),Xt=function(y){return y instanceof RegExp||y instanceof Function},Bt=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Mt&&Mt===y)){if((!y||typeof y!="object")&&(y={}),y=X(y),Ut=lr.indexOf(y.PARSER_MEDIA_TYPE)===-1?ur:y.PARSER_MEDIA_TYPE,nt=Ut==="application/xhtml+xml"?M:A,s=q(y,"ALLOWED_TAGS")?te({},y.ALLOWED_TAGS,nt):g,_=q(y,"ALLOWED_ATTR")?te({},y.ALLOWED_ATTR,nt):Q,Wt=q(y,"ALLOWED_NAMESPACES")?te({},y.ALLOWED_NAMESPACES,M):ar,xe=q(y,"ADD_URI_SAFE_ATTR")?te(X(Je),y.ADD_URI_SAFE_ATTR,nt):Je,Ie=q(y,"ADD_DATA_URI_TAGS")?te(X(we),y.ADD_DATA_URI_TAGS,nt):we,H=q(y,"FORBID_CONTENTS")?te({},y.FORBID_CONTENTS,nt):se,Ee=q(y,"FORBID_TAGS")?te({},y.FORBID_TAGS,nt):X({}),be=q(y,"FORBID_ATTR")?te({},y.FORBID_ATTR,nt):X({}),j=q(y,"USE_PROFILES")?y.USE_PROFILES:!1,je=y.ALLOW_ARIA_ATTR!==!1,ke=y.ALLOW_DATA_ATTR!==!1,de=y.ALLOW_UNKNOWN_PROTOCOLS||!1,Ue=y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Be=y.SAFE_FOR_TEMPLATES||!1,vt=y.SAFE_FOR_XML!==!1,ht=y.WHOLE_DOCUMENT||!1,tt=y.RETURN_DOM||!1,Rt=y.RETURN_DOM_FRAGMENT||!1,mt=y.RETURN_TRUSTED_TYPE||!1,Ct=y.FORCE_BODY||!1,At=y.SANITIZE_DOM!==!1,jt=y.SANITIZE_NAMED_PROPS||!1,kt=y.KEEP_CONTENT!==!1,h=y.IN_PLACE||!1,o=y.ALLOWED_URI_REGEXP||ve,Lt=y.NAMESPACE||Tt,Ft=y.MATHML_TEXT_INTEGRATION_POINTS||Ft,Ht=y.HTML_INTEGRATION_POINTS||Ht,he=y.CUSTOM_ELEMENT_HANDLING||{},y.CUSTOM_ELEMENT_HANDLING&&Xt(y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(he.tagNameCheck=y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),y.CUSTOM_ELEMENT_HANDLING&&Xt(y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(he.attributeNameCheck=y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),y.CUSTOM_ELEMENT_HANDLING&&typeof y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(he.allowCustomizedBuiltInElements=y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Be&&(ke=!1),Rt&&(tt=!0),j&&(s=te({},Ae),_=[],j.html===!0&&(te(s,a),te(_,Ge)),j.svg===!0&&(te(s,c),te(_,Me),te(_,De)),j.svgFilters===!0&&(te(s,p),te(_,Me),te(_,De)),j.mathMl===!0&&(te(s,B),te(_,He),te(_,De))),y.ADD_TAGS&&(s===g&&(s=X(s)),te(s,y.ADD_TAGS,nt)),y.ADD_ATTR&&(_===Q&&(_=X(_)),te(_,y.ADD_ATTR,nt)),y.ADD_URI_SAFE_ATTR&&te(xe,y.ADD_URI_SAFE_ATTR,nt),y.FORBID_CONTENTS&&(H===se&&(H=X(H)),te(H,y.FORBID_CONTENTS,nt)),kt&&(s["#text"]=!0),ht&&te(s,["html","head","body"]),s.table&&(te(s,["tbody"]),delete Ee.tbody),y.TRUSTED_TYPES_POLICY){if(typeof y.TRUSTED_TYPES_POLICY.createHTML!="function")throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Oe=y.TRUSTED_TYPES_POLICY,ct=Oe.createHTML("")}else Oe===void 0&&(Oe=lt(Fe,W)),Oe!==null&&typeof ct=="string"&&(ct=Oe.createHTML(""));O&&O(y),Mt=y}},Kt=te({},[...c,...p,...x]),Yt=te({},[...B,...ce]),dr=function(y){let re=Ke(y);(!re||!re.tagName)&&(re={namespaceURI:Lt,tagName:"template"});const pe=A(y.tagName),Ye=A(re.tagName);return Wt[y.namespaceURI]?y.namespaceURI===$t?re.namespaceURI===Tt?pe==="svg":re.namespaceURI===St?pe==="svg"&&(Ye==="annotation-xml"||Ft[Ye]):Boolean(Kt[pe]):y.namespaceURI===St?re.namespaceURI===Tt?pe==="math":re.namespaceURI===$t?pe==="math"&&Ht[Ye]:Boolean(Yt[pe]):y.namespaceURI===Tt?re.namespaceURI===$t&&!Ht[Ye]||re.namespaceURI===St&&!Ft[Ye]?!1:!Yt[pe]&&(sr[pe]||!Kt[pe]):!!(Ut==="application/xhtml+xml"&&Wt[y.namespaceURI]):!1},wt=function(y){P(R.removed,{element:y});try{Ke(y).removeChild(y)}catch(re){ae(y)}},Dt=function(y,re){try{P(R.removed,{attribute:re.getAttributeNode(y),from:re})}catch(pe){P(R.removed,{attribute:null,from:re})}if(re.removeAttribute(y),y==="is")if(tt||Rt)try{wt(re)}catch(pe){}else try{re.setAttribute(y,"")}catch(pe){}},Qt=function(y){let re=null,pe=null;if(Ct)y="<remove></remove>"+y;else{const rt=L(y,/^[\r\n\t ]+/);pe=rt&&rt[0]}Ut==="application/xhtml+xml"&&Lt===Tt&&(y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+y+"</body></html>");const Ye=Oe?Oe.createHTML(y):y;if(Lt===Tt)try{re=new Ne().parseFromString(Ye,Ut)}catch(rt){}if(!re||!re.documentElement){re=dt.createDocument(Lt,"template",null);try{re.documentElement.innerHTML=Gt?ct:Ye}catch(rt){}}const ot=re.body||re.documentElement;return y&&pe&&ot.insertBefore(G.createTextNode(pe),ot.childNodes[0]||null),Lt===Tt?ut.call(re,ht?"html":"body")[0]:ht?re.documentElement:ot},Jt=function(y){return it.call(y.ownerDocument||y,y,Pe.SHOW_ELEMENT|Pe.SHOW_COMMENT|Pe.SHOW_TEXT|Pe.SHOW_PROCESSING_INSTRUCTION|Pe.SHOW_CDATA_SECTION,null)},qt=function(y){return y instanceof $e&&(typeof y.nodeName!="string"||typeof y.textContent!="string"||typeof y.removeChild!="function"||!(y.attributes instanceof Ce)||typeof y.removeAttribute!="function"||typeof y.setAttribute!="function"||typeof y.namespaceURI!="string"||typeof y.insertBefore!="function"||typeof y.hasChildNodes!="function")},Zt=function(y){return typeof ee=="function"&&y instanceof ee};function Ot(ye,y,re){f(ye,pe=>{pe.call(R,y,re,Mt)})}const er=function(y){let re=null;if(Ot(Xe.beforeSanitizeElements,y,null),qt(y))return wt(y),!0;const pe=nt(y.nodeName);if(Ot(Xe.uponSanitizeElement,y,{tagName:pe,allowedTags:s}),vt&&y.hasChildNodes()&&!Zt(y.firstElementChild)&&z(/<[/\w!]/g,y.innerHTML)&&z(/<[/\w!]/g,y.textContent)||y.nodeType===Ze.progressingInstruction||vt&&y.nodeType===Ze.comment&&z(/<[/\w]/g,y.data))return wt(y),!0;if(!s[pe]||Ee[pe]){if(!Ee[pe]&&rr(pe)&&(he.tagNameCheck instanceof RegExp&&z(he.tagNameCheck,pe)||he.tagNameCheck instanceof Function&&he.tagNameCheck(pe)))return!1;if(kt&&!H[pe]){const Ye=Ke(y)||y.parentNode,ot=fe(y)||y.childNodes;if(ot&&Ye){const rt=ot.length;for(let pt=rt-1;pt>=0;--pt){const It=I(ot[pt],!0);It.__removalCount=(y.__removalCount||0)+1,Ye.insertBefore(It,ge(y))}}}return wt(y),!0}return y instanceof ue&&!dr(y)||(pe==="noscript"||pe==="noembed"||pe==="noframes")&&z(/<\/no(script|embed|frames)/i,y.innerHTML)?(wt(y),!0):(Be&&y.nodeType===Ze.text&&(re=y.textContent,f([Pt,ft,gt],Ye=>{re=S(re,Ye," ")}),y.textContent!==re&&(P(R.removed,{element:y.cloneNode()}),y.textContent=re)),Ot(Xe.afterSanitizeElements,y,null),!1)},tr=function(y,re,pe){if(At&&(re==="id"||re==="name")&&(pe in G||pe in cr))return!1;if(!(ke&&!be[re]&&z(Nt,re))){if(!(je&&z(_t,re))){if(!_[re]||be[re]){if(!(rr(y)&&(he.tagNameCheck instanceof RegExp&&z(he.tagNameCheck,y)||he.tagNameCheck instanceof Function&&he.tagNameCheck(y))&&(he.attributeNameCheck instanceof RegExp&&z(he.attributeNameCheck,re)||he.attributeNameCheck instanceof Function&&he.attributeNameCheck(re))||re==="is"&&he.allowCustomizedBuiltInElements&&(he.tagNameCheck instanceof RegExp&&z(he.tagNameCheck,pe)||he.tagNameCheck instanceof Function&&he.tagNameCheck(pe))))return!1}else if(!xe[re]){if(!z(o,S(pe,n,""))){if(!((re==="src"||re==="xlink:href"||re==="href")&&y!=="script"&&J(pe,"data:")===0&&Ie[y])){if(!(de&&!z(_e,S(pe,n,"")))){if(pe)return!1}}}}}}return!0},rr=function(y){return y!=="annotation-xml"&&L(y,i)},nr=function(y){Ot(Xe.beforeSanitizeAttributes,y,null);const{attributes:re}=y;if(!re||qt(y))return;const pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_,forceKeepAttr:void 0};let Ye=re.length;for(;Ye--;){const ot=re[Ye],{name:rt,namespaceURI:pt,value:It}=ot,xt=nt(rt),zt=It;let at=rt==="value"?zt:Z(zt);if(pe.attrName=xt,pe.attrValue=at,pe.keepAttr=!0,pe.forceKeepAttr=void 0,Ot(Xe.uponSanitizeAttribute,y,pe),at=pe.attrValue,jt&&(xt==="id"||xt==="name")&&(Dt(rt,y),at=Vt+at),vt&&z(/((--!?|])>)|<\/(style|title)/i,at)){Dt(rt,y);continue}if(pe.forceKeepAttr)continue;if(!pe.keepAttr){Dt(rt,y);continue}if(!Ue&&z(/\/>/i,at)){Dt(rt,y);continue}Be&&f([Pt,ft,gt],or=>{at=S(at,or," ")});const ir=nt(y.nodeName);if(!tr(ir,xt,at)){Dt(rt,y);continue}if(Oe&&typeof Fe=="object"&&typeof Fe.getAttributeType=="function"&&!pt)switch(Fe.getAttributeType(ir,xt)){case"TrustedHTML":{at=Oe.createHTML(at);break}case"TrustedScriptURL":{at=Oe.createScriptURL(at);break}}if(at!==zt)try{pt?y.setAttributeNS(pt,rt,at):y.setAttribute(rt,at),qt(y)?wt(y):T(R.removed)}catch(or){Dt(rt,y)}}Ot(Xe.afterSanitizeAttributes,y,null)},fr=function ye(y){let re=null;const pe=Jt(y);for(Ot(Xe.beforeSanitizeShadowDOM,y,null);re=pe.nextNode();)Ot(Xe.uponSanitizeShadowNode,re,null),er(re),nr(re),re.content instanceof ne&&ye(re.content);Ot(Xe.afterSanitizeShadowDOM,y,null)};return R.sanitize=function(ye){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=null,pe=null,Ye=null,ot=null;if(Gt=!ye,Gt&&(ye="<!-->"),typeof ye!="string"&&!Zt(ye))if(typeof ye.toString=="function"){if(ye=ye.toString(),typeof ye!="string")throw k("dirty is not a string, aborting")}else throw k("toString is not a function");if(!R.isSupported)return ye;if(Et||Bt(y),R.removed=[],typeof ye=="string"&&(h=!1),h){if(ye.nodeName){const It=nt(ye.nodeName);if(!s[It]||Ee[It])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(ye instanceof ee)re=Qt("<!---->"),pe=re.ownerDocument.importNode(ye,!0),pe.nodeType===Ze.element&&pe.nodeName==="BODY"||pe.nodeName==="HTML"?re=pe:re.appendChild(pe);else{if(!tt&&!Be&&!ht&&ye.indexOf("<")===-1)return Oe&&mt?Oe.createHTML(ye):ye;if(re=Qt(ye),!re)return tt?null:mt?ct:""}re&&Ct&&wt(re.firstChild);const rt=Jt(h?ye:re);for(;Ye=rt.nextNode();)er(Ye),nr(Ye),Ye.content instanceof ne&&fr(Ye.content);if(h)return ye;if(tt){if(Rt)for(ot=bt.call(re.ownerDocument);re.firstChild;)ot.appendChild(re.firstChild);else ot=re;return(_.shadowroot||_.shadowrootmode)&&(ot=et.call($,ot,!0)),ot}let pt=ht?re.outerHTML:re.innerHTML;return ht&&s["!doctype"]&&re.ownerDocument&&re.ownerDocument.doctype&&re.ownerDocument.doctype.name&&z(Se,re.ownerDocument.doctype.name)&&(pt="<!DOCTYPE "+re.ownerDocument.doctype.name+`>
`+pt),Be&&f([Pt,ft,gt],It=>{pt=S(pt,It," ")}),Oe&&mt?Oe.createHTML(pt):pt},R.setConfig=function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bt(ye),Et=!0},R.clearConfig=function(){Mt=null,Et=!1},R.isValidAttribute=function(ye,y,re){Mt||Bt({});const pe=nt(ye),Ye=nt(y);return tr(pe,Ye,re)},R.addHook=function(ye,y){typeof y=="function"&&P(Xe[ye],y)},R.removeHook=function(ye,y){if(y!==void 0){const re=m(Xe[ye],y);return re===-1?void 0:N(Xe[ye],re,1)[0]}return T(Xe[ye])},R.removeHooks=function(ye){Xe[ye]=[]},R.removeAllHooks=function(){Xe=Le()},R}var b=yt();function U(C,R){return b.sanitize(C,R)}r.default=U,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/purifyLib",["exports","lightning/purifyLib/v/1_27_9-alpha"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("experience/dataLayerObject/v/256_8_0",["exports","lwc/v/8_20_6","lightning/purifyLib/v/1_27_9-alpha"],function(r,e,t){"use strict";function E(N){return N&&typeof N=="object"&&"default"in N?N:{default:N}}var w=E(t);const F={hidden:""},O={lwc:{dom:"manual"}};function v(N,A,M,L){const{shc:S,h:J}=N;return[J("div",{attrs:F,props:{innerHTML:L._rawHtml$0!==(L._rawHtml$0=A.scriptElement)?L._sanitizedHtml$0=S(A.scriptElement):L._sanitizedHtml$0},context:O,key:0})]}var l=e.registerTemplate(v);v.renderMode="light",v.stylesheets=[],v.stylesheetToken="lwc-64pqse1e4gn",v.legacyStylesheetToken="experience-dataLayerObject_dataLayerObject",e.freezeTemplate(v);const f=Object.freeze({ALLOWED_TAGS:[],ALLOWED_ATTR:[]});function m(N){return typeof window=="undefined"?N:w.default(N,f)}class T extends e.LightningElement{constructor(...A){super(...A);this._scriptDataAttributes={},this._catalogObjectId=void 0,this._catalogObjectType=void 0,this._catalogObjectAttributes=void 0,this._relatedCatalogObjects=void 0,this._customObject=void 0}set scriptDataAttributes(A){this._scriptDataAttributes=A}get scriptDataAttributes(){return this._scriptDataAttributes}set catalogObjectId(A){this._catalogObjectId=A}get catalogObjectId(){return this._catalogObjectId}set catalogObjectType(A){this._catalogObjectType=A}get catalogObjectType(){return this._catalogObjectType}set catalogObjectAttributes(A){this._catalogObjectAttributes=A}get catalogObjectAttributes(){return this._catalogObjectAttributes}set relatedCatalogObjects(A){this._relatedCatalogObjects=A}get relatedCatalogObjects(){return this._relatedCatalogObjects}set customObject(A){this._customObject=A}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}">${m(this.scriptElementContent())}</script>`:""}scriptElementContent(){const A=this.isCustomObject()?this.customObject:this.buildCatalogObject();return JSON.stringify(A)}isCustomObject(){return!!this.customObject}isCatalogObject(){return!!(this.catalogObjectId&&this.catalogObjectType)}buildCatalogObject(){return{id:this.catalogObjectId,type:this.catalogObjectType,attributes:this.catalogObjectAttributes,relatedCatalogObjects:this.relatedCatalogObjects}}}T.renderMode="light",e.registerDecorators(T,{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(T,{tmpl:l,sel:"experience-data-layer-object",apiVersion:63});r.default=P,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("experience/dataLayerObject",["exports","experience/dataLayerObject/v/256_8_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/app/v/1_66_1084-258_0",["exports","lwc/v/8_20_6","experience/dataLayerObject/v/256_8_0","webruntime/innerApp/v/1_66_1084-258_0","lwr/routerContainer/v/0_19_7","@salesforce/site/Id/v/1","@salesforce/webstore/Id/v/1","@app/templateDevName/v/1","webruntime/routingService/v/1_66_1084-258_0","webruntime/errors/v/1_66_1084-258_0"],function(r,e,t,E,w,F,O,v,l,d){"use strict";function u(Z){return Z&&typeof Z=="object"&&"default"in Z?Z:{default:Z}}var f=u(t),m=u(E),T=u(w),P=u(F),N=u(O),A=u(v);function M(Z,q,z,k){const{c:K}=Z;return[K("lwr-router-container",T.default,{props:{router:q.router},key:0},[K("experience-data-layer-object",f.default,{props:{scriptDataAttributes:q.siteDataForDataLayer.scriptDataAttributes,customObject:q.siteDataForDataLayer.customObject},key:1}),K("webruntime-inner-app",m.default,{props:{view:q.view,routerContainerView:q.routerContainerView,routeParams:q.routeParams},key:2})])]}var L=e.registerTemplate(M);M.renderMode="light",M.stylesheets=[],M.stylesheetToken="lwc-ag6063mqi2",M.legacyStylesheetToken="webruntime-app_app",e.freezeTemplate(M);class S extends e.LightningElement{constructor(q,z){super();this.routeParams=void 0,this.themeLayout=void 0,this.isInitialized=void 0,this.router=l.router,this.view=q,this.routerContainerView=z,this.siteDataForDataLayer={scriptDataAttributes:{providerType:"site"},customObject:{siteId:P.default,templateDevName:A.default,...N.default?{webstore:{id:N.default}}:{}}}}renderedCallback(){if(this.isInitialized)return;const q=this.querySelector("lwr-router-container");l.initializeRouterContainer(q),this.isInitialized=!0}errorCallback(q,z){if(d.reportError({subject:"app level error",error:q,wcstack:z}),process.env.SSR)throw q}disconnectedCallback(){this.isInitialized=!1}render(){return L}}S.renderMode="light",e.registerDecorators(S,{publicProps:{routeParams:{config:0}},fields:["themeLayout","isInitialized","router"]});const J=e.registerComponent(S,{tmpl:L,sel:"webruntime-app",apiVersion:63});r.default=J,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/app",["exports","webruntime/app/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("@salesforce/loader/v/1_66_1084-258_0",["exports","lwr/loaderLegacy/v/0_19_7"],function(r,e){"use strict";Object.defineProperty(r,"load",{enumerable:!0,get:function(){return e.load}}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("@salesforce/loader",["exports","@salesforce/loader/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/assert/v/1_66_1084-258_0",["exports","webruntime/utils/v/1_66_1084-258_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_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("aura-instrumentation/v/1_66_1084-258_0",["exports","webruntime/logger/v/1_66_1084-258_0","@communities-webruntime/common/v/1_66_1084-258_0","webruntime/assert/v/1_66_1084-258_0"],function(r,e,t,E){"use strict";function w(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var F=w(E);function O(a,c){return`${t.WEBRUNTIME_PREFIX}-${[a,c].filter(Boolean).join(":")}`}const{performance:v}=globalThis;function l(a){const c=JSON.stringify(a);return c&&JSON.parse(c)}function d(a,c,p){const x=O(a,c);v.mark(x,{detail:{ctx:l(p)}})}function u(a,c,p){d(a,c,p)}function f(a,c,p){d(a,c,p)}function m(a,c,p){const x=O(a,c);try{v.measure(x,{detail:{ctx:l(p)},start:x})}catch(B){e.logError(`[instrumentation] no startMark named ${x} found`,B.stack)}}function T(){return Date.now()}function P(a,c,p){}function N(a,c,p){}function A(a,c,p,x,B){}function M(a){}function L(a,c){}function S(a){return{logHits(c){},logMisses(c){},unRegister(){}}}function J(a,c,p){}function Z(a){}function q(a){}function z(a){}function k(a,c,p){}function K(a){return{increment(c){},decrement(c){},getValue(){return 0},reset(){}}}function D(a){return{setValue(c){},getValue(){return 0},reset(){}}}function te(a){return{update(c){},getValue(){return[]},reset(){}}}function oe(a){return{addDuration(){},time(){},getValue(){return[]},reset(){},get(){}}}class X{constructor(){this._registry={eptMarked:[],navToPage:[],navFromPage:[],windowUnload:[]}}get knownEvents(){return Object.keys(this._registry)}_checkEventName(c){if(!this._registry[c])throw new Error(`eventName ${c} isn't valid`)}register(c,p,x){return F.default(c&&typeof c=="string","eventName must be a valid string"),this._checkEventName(c),F.default(p&&typeof p=="string","listenerName must be a valid string"),F.default(typeof x=="function","callback must be provided"),this._registry[c].push({name:p,func:x})}unregister(c,p){this._checkEventName(c);const x=p-1;F.default(this._registry[c][x],`No listener found for ${c} with registration ID ${p}`),delete this._registry[c][x]}notify(c,p){this._checkEventName(c),this._registry[c].forEach(x=>x.func(p))}}const me=new X;r.counter=K,r.disablePlugin=z,r.enablePlugin=q,r.error=J,r.gauge=D,r.interaction=A,r.mark=u,r.markEnd=m,r.markStart=f,r.notifications=me,r.percentileHistogram=te,r.perfEnd=N,r.perfStart=P,r.registerCacheStats=S,r.registerPeriodicLogger=L,r.registerPlugin=M,r.removePeriodicLogger=Z,r.time=T,r.timer=oe,r.trackScenario=k,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("aura-instrumentation",["exports","aura-instrumentation/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("aura-storage/v/1_66_1084-258_0",["exports"],function(r){"use strict";var e={};r.default=e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("aura-storage",["exports","aura-storage/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/auraMethodToResourceReferenceMapping/v/1_66_1084-258_0",["exports"],function(r){"use strict";const e="/services/data/v65.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"},"LightningTypesFamilyController.getTypes":{urlPath:e+"/connect/lightning-model/types",urlPathParamNames:[],inputRepresentation:"lightningModelTypes",method:"POST"},"ManagedContentController.getMCSFolderShares":{urlPath:e+"/connect/cms/folders/${folderId}/shares",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.patchMCSFolderShares":{urlPath:e+"/connect/cms/folders/${folderId}/shares",urlPathParamNames:["folderId"],inputRepresentation:"mCSFolderShareCollectionUpdateInput",method:"PATCH"},"ManagedContentController.getMCSFolderShareTargets":{urlPath:e+"/connect/cms/folders/${folderId}/share-targets",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.cancelOrchestrationInstance":{urlPath:e+"/connect/cms/contents/orchestration-instances/${mContentOrchInstanceId}",urlPathParamNames:["mContentOrchInstanceId"],method:"DELETE"},"ManagedContentController.cloneManagedContents":{urlPath:e+"/connect/cms/contents/clone",urlPathParamNames:[],inputRepresentation:"ManagedContentCloneInputParam",method:"POST"},"ManagedContentController.getCollectionItems":{urlPath:e+"/connect/cms/collections/${collectionKeyOrId}",urlPathParamNames:["collectionKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentByTopicsAndContentKeys":{urlPath:e+"/connect/communities/${communityId}/managed-content/delivery",urlPathParamNames:["communityId"],method:"GET"},"ManagedContentController.getPublishedManagedContentListByContentKey":{urlPath:e+"/connect/communities/${communityId}/managed-content/delivery/contents",urlPathParamNames:["communityId"],method:"GET"},"ManagedContentController.getDeployments":{urlPath:e+"/cms/deployments",urlPathParamNames:[],method:"GET"},"ManagedContentController.createDeployment":{urlPath:e+"/cms/deployments",urlPathParamNames:[],inputRepresentation:"DeploymentInput",method:"POST"},"ManagedContentController.cloneManagedContentDocument":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/clone",urlPathParamNames:["contentKeyOrId"],inputRepresentation:"ManagedContentCloneInputParam",method:"POST"},"ManagedContentController.createManagedContent":{urlPath:e+"/connect/cms/contents",urlPathParamNames:[],inputRepresentation:"ManagedContentInputParam",method:"POST"},"ManagedContentController.createManagedContentWithMedia":{urlPath:e+"/connect/cms/contents",urlPathParamNames:[],inputRepresentation:"ManagedContentInputParam",method:"POST"},"ManagedContentController.getManagedContent":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentForSite":{urlPath:e+"/connect/sites/${siteId}/cms/contents/${contentKeyOrId}",urlPathParamNames:["contentKeyOrId","siteId"],method:"GET"},"ManagedContentController.createManagedContentExportV2Job":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/contents/export",urlPathParamNames:["contentSpaceId"],inputRepresentation:"managedContentV2JobRequest",method:"POST"},"ManagedContentController.createManagedContentImportV2Job":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/contents/import",urlPathParamNames:["contentSpaceId"],inputRepresentation:"managedContentV2JobRequest",method:"POST"},"ManagedContentController.getCMSJobForSpace":{urlPath:e+"/cms/spaces/${contentSpaceId}/jobs/${jobId}",urlPathParamNames:["contentSpaceId","jobId"],method:"GET"},"ManagedContentController.getAllCMSJobsForSpace":{urlPath:e+"/cms/spaces/${contentSpaceId}/jobs",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.createManagedContentTranslationVariants":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/translate",urlPathParamNames:["contentKeyOrId"],inputRepresentation:"languages",method:"POST"},"ManagedContentController.getManagedContentOrchestrationDefinitions":{urlPath:e+"/connect/cms/contents/orchestration-definitions",urlPathParamNames:[],method:"GET"},"ManagedContentController.getManagedContentOrchestrationInstances":{urlPath:e+"/connect/cms/contents/orchestration-instances",urlPathParamNames:[],method:"GET"},"ManagedContentController.createManagedContentOrchestrationInstance":{urlPath:e+"/connect/cms/contents/orchestration-instances",urlPathParamNames:[],inputRepresentation:"mContentOrchInstanceInput",method:"POST"},"ManagedContentController.getManagedContentPreviews":{urlPath:e+"/cms/spaces/${contentSpaceId}/preview-endpoints",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.getManagedContentProviders":{urlPath:e+"/connect/cms/content/providers",urlPathParamNames:[],method:"GET"},"ManagedContentController.publishDiagnostic":{urlPath:e+"/connect/cms/contents/publish/diagnostic",urlPathParamNames:[],inputRepresentation:"publishDiagnosticInput",method:"POST"},"ManagedContentController.publish":{urlPath:e+"/connect/cms/contents/publish",urlPathParamNames:[],inputRepresentation:"publishInput",method:"POST"},"ManagedContentController.getManagedContentReferencedBy":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/referenced-by",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentVariantRendition":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/renditions/${renditionType}",urlPathParamNames:["contentKeyOrId","renditionType"],method:"GET"},"ManagedContentController.getManagedContentRunningOrchestrationHistoryEvents":{urlPath:e+"/connect/cms/contents/orchestration-history-events",urlPathParamNames:[],method:"GET"},"ManagedContentController.updateDeployment":{urlPath:e+"/connect/cms/schedules/${deploymentId}",urlPathParamNames:["deploymentId"],method:"PATCH"},"ManagedContentController.createSchedule":{urlPath:e+"/connect/cms/schedules",urlPathParamNames:[],inputRepresentation:"ScheduleInput",method:"POST"},"ManagedContentController.searchManagedContentForItems":{urlPath:e+"/connect/cms/items/search",urlPathParamNames:[],method:"GET"},"ManagedContentController.getManagedContentSingleItem":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/single-item-content/${contentTypeFQN}",urlPathParamNames:["contentSpaceId","contentTypeFQN"],method:"GET"},"ManagedContentController.getManagedContentSpaces":{urlPath:e+"/connect/cms/spaces",urlPathParamNames:[],method:"GET"},"ManagedContentController.postManagedContentSpaceFolder":{urlPath:e+"/connect/cms/folders",urlPathParamNames:[],inputRepresentation:"managedContentSpaceFolderInput",method:"POST"},"ManagedContentController.getManagedContentSpaceFolderItems":{urlPath:e+"/connect/cms/folders/${folderId}/items",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.getManagedContentSpaceFolderItemsV1":{urlPath:e+"/cms/folders/${folderId}/items",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.getManagedContentSpaceFolder":{urlPath:e+"/connect/cms/folders/${folderId}",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.getManagedContentSpaceOrchestratorConfig":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/orchestrator-config",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.putManagedContentSpaceOrchestratorConfig":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/orchestrator-config",urlPathParamNames:["contentSpaceId"],inputRepresentation:"mContentOrchConfigInput",method:"PUT"},"ManagedContentController.deleteManagedContentSpace":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}",urlPathParamNames:["contentSpaceId"],method:"DELETE"},"ManagedContentController.getManagedContentSpace":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.patchManagedContentSpace":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}",urlPathParamNames:["contentSpaceId"],inputRepresentation:"ManagedContentSpaceInput",method:"PATCH"},"ManagedContentController.getTaxonomyTerms":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/taxonomy-terms",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.updateTaxonomyTerms":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/taxonomy-terms",urlPathParamNames:["contentKeyOrId"],inputRepresentation:"taxonomyTerms",method:"PATCH"},"ManagedContentController.createTranslationJob":{urlPath:e+"/connect/managed-content/translation",urlPathParamNames:[],inputRepresentation:"translationRequest",method:"POST"},"ManagedContentController.createTranslationV2Job":{urlPath:e+"/connect/cms/content/spaces/${contentSpaceId}/translation",urlPathParamNames:["contentSpaceId"],inputRepresentation:"translationV2Request",method:"POST"},"ManagedContentController.getManagedContentTypesForMixin":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/content-types",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.unpublish":{urlPath:e+"/connect/cms/contents/unpublish",urlPathParamNames:[],inputRepresentation:"unpublishInput",method:"POST"},"ManagedContentController.createManagedContentVariant":{urlPath:e+"/connect/cms/contents/variants",urlPathParamNames:[],inputRepresentation:"ManagedContentVariantInputParam",method:"POST"},"ManagedContentController.getVariantReferences":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/variants/references",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.deleteManagedContentVariant":{urlPath:e+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],method:"DELETE"},"ManagedContentController.getManagedContentVariant":{urlPath:e+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],method:"GET"},"ManagedContentController.replaceManagedContentVariant":{urlPath:e+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],inputRepresentation:"ManagedContentVariantInputParam",method:"PUT"},"ManagedContentController.replaceManagedContentVariantWithMedia":{urlPath:e+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],inputRepresentation:"ManagedContentVariantInputParam",method:"PUT"},"ManagedContentController.getManagedContentVariantVersions":{urlPath:e+"/connect/cms/contents/variants/${variantId}/versions",urlPathParamNames:["variantId"],method:"GET"},"ManagedContentController.getWebUrls":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/web-urls",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.updateManagedContentWebUrl":{urlPath:e+"/connect/cms/contents/web-urls/${managedContentWebUrlId}",urlPathParamNames:["managedContentWebUrlId"],inputRepresentation:"managedContentWebUrlInput",method:"PATCH"},"ManagedContentChannelController.getManagedContentChannels":{urlPath:e+"/connect/cms/channels",urlPathParamNames:[],method:"GET"},"ManagedContentChannelController.postManagedContentChannel":{urlPath:e+"/connect/cms/channels",urlPathParamNames:[],inputRepresentation:"ManagedContentChannelInput",method:"POST"},"ManagedContentChannelController.deleteManagedContentChannel":{urlPath:e+"/connect/cms/channels/${channelId}",urlPathParamNames:["channelId"],method:"DELETE"},"ManagedContentChannelController.getManagedContentChannel":{urlPath:e+"/connect/cms/channels/${channelId}",urlPathParamNames:["channelId"],method:"GET"},"ManagedContentChannelController.patchManagedContentChannel":{urlPath:e+"/connect/cms/channels/${channelId}",urlPathParamNames:["channelId"],inputRepresentation:"ManagedContentChannelInput",method:"PATCH"},"ManagedContentDeliveryController.getCollectionItemsForChannel":{urlPath:e+"/connect/cms/delivery/channels/${channelId}/collections/${collectionKeyOrId}",urlPathParamNames:["channelId","collectionKeyOrId"],method:"GET"},"ManagedContentDeliveryController.getCollectionItemsForSite":{urlPath:e+"/connect/sites/${siteId}/cms/delivery/collections/${collectionKeyOrId}",urlPathParamNames:["collectionKeyOrId","siteId"],method:"GET"},"ManagedContentDeliveryController.getCollectionMetadata":{urlPath:e+"/connect/cms/collections/${collectionKeyOrId}/metadata",urlPathParamNames:["collectionKeyOrId"],method:"GET"},"ManagedContentDeliveryController.getCollectionMetadataForChannel":{urlPath:e+"/connect/cms/delivery/channels/${channelId}/collections/${collectionKeyOrId}/metadata",urlPathParamNames:["channelId","collectionKeyOrId"],method:"GET"},"ManagedContentDeliveryController.getCollectionMetadataForSite":{urlPath:e+"/connect/sites/${siteId}/cms/delivery/collections/${collectionKeyOrId}/metadata",urlPathParamNames:["collectionKeyOrId","siteId"],method:"GET"},"ManagedContentSpaceController.getManagedContentSpaceChannels":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/channels",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentSpaceController.patchManagedContentSpaceChannels":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/channels",urlPathParamNames:["contentSpaceId"],inputRepresentation:"spaceChannels",method:"PATCH"},"ManagedContentSpaceController.deleteDummySpace":{urlPath:e+"/connect/cms/spaces/dummy/",urlPathParamNames:[],method:"DELETE"},"ManagedContentTypeController.getContentTypeSchema":{urlPath:e+"/connect/cms/content-types/${contentTypeFQN}",urlPathParamNames:["contentTypeFQN"],method:"GET"},"SitesController.searchSite":{urlPath:e+"/connect/sites/${siteId}/search",urlPathParamNames:["siteId"],method:"GET"},"ActionsController.getFlexipageFormulaOverrides":{urlPath:e+"/ui-api/actions/formula-activation/${actionFeature}",urlPathParamNames:["actionFeature"],method:"GET"},"ActionsController.getGlobalActions":{urlPath:e+"/ui-api/actions/global",urlPathParamNames:[],method:"GET"},"ActionsController.getActionLayout":{urlPath:e+"/ui-api/actions/layout/${actionApiName}",urlPathParamNames:["actionApiName"],method:"GET"},"ActionsController.getListViewActions":{urlPath:e+"/ui-api/actions/list-view/${listViewIds}",urlPathParamNames:["listViewIds"],method:"GET"},"ActionsController.getLookupActions":{urlPath:e+"/ui-api/actions/lookup/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"ActionsController.getMRUListActions":{urlPath:e+"/ui-api/actions/mru-list/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"ActionsController.getObjectCreateActions":{urlPath:e+"/ui-api/actions/object/${objectApiName}/record-create",urlPathParamNames:["objectApiName"],method:"GET"},"ActionsController.getActionOverrides":{urlPath:e+"/ui-api/actions/overrides/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ActionsController.performUpdateRecordQuickAction":{urlPath:e+"/ui-api/actions/perform-quick-action/${actionApiName}",urlPathParamNames:["actionApiName"],inputRepresentation:"performQuickActionInput",method:"PATCH"},"ActionsController.performQuickAction":{urlPath:e+"/ui-api/actions/perform-quick-action/${actionApiName}",urlPathParamNames:["actionApiName"],inputRepresentation:"performQuickActionInput",method:"POST"},"ActionsController.getQuickActionDefaults":{urlPath:e+"/ui-api/actions/record-defaults/${actionApiName}",urlPathParamNames:["actionApiName"],method:"GET"},"ActionsController.getQuickActionInfo":{urlPath:e+"/ui-api/actions/quick-action-info/${actionApiName}",urlPathParamNames:["actionApiName"],method:"GET"},"ActionsController.getRecordEditActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/record-edit",urlPathParamNames:["recordIds"],method:"GET"},"ActionsController.getRecordActions":{urlPath:e+"/ui-api/actions/record/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"ActionsController.getRelatedListsActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/related-list/batch/${relatedListIds}",urlPathParamNames:["recordIds","relatedListIds"],method:"GET"},"ActionsController.postRelatedListsActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/related-list/batch",urlPathParamNames:["recordIds"],inputRepresentation:"listRecordActionsQuery",method:"POST"},"ActionsController.getRelatedListRecordActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/related-list-record/${relatedListRecordIds}",urlPathParamNames:["recordIds","relatedListRecordIds"],method:"GET"},"ActionsController.getRelatedListActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/related-list/${relatedListId}",urlPathParamNames:["recordIds","relatedListId"],method:"GET"},"ActionsController.postRelatedListActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/related-list/${relatedListId}",urlPathParamNames:["recordIds","relatedListId"],inputRepresentation:"listRecordActionsQuery",method:"POST"},"AppsController.getAppByID":{urlPath:e+"/ui-api/apps/${appId}",urlPathParamNames:["appId"],method:"GET"},"AppsController.getAccessibleApps":{urlPath:e+"/ui-api/apps",urlPathParamNames:[],method:"GET"},"AppsController.getNavItems":{urlPath:e+"/ui-api/nav-items",urlPathParamNames:[],method:"GET"},"ListUiController.getListsByObjectName":{urlPath:e+"/ui-api/list-ui/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ListUiController.getListInfosById":{urlPath:e+"/ui-api/list-info/batch",urlPathParamNames:[],method:"GET"},"ListUiController.getListInfosByName":{urlPath:e+"/ui-api/list-info/batch",urlPathParamNames:[],method:"GET"},"ListUiController.getListInfosByObjectName":{urlPath:e+"/ui-api/list-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ListUiController.createListInfo":{urlPath:e+"/ui-api/list-info/${objectApiName}",urlPathParamNames:["objectApiName"],inputRepresentation:"listInfoInput",method:"POST"},"ListUiController.deleteListInfo":{urlPath:e+"/ui-api/list-info/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"DELETE"},"ListUiController.getListInfoById":{urlPath:e+"/ui-api/list-info/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListInfoByName":{urlPath:e+"/ui-api/list-info/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.updateListInfoByApiName":{urlPath:e+"/ui-api/list-info/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],inputRepresentation:"listInfoInput",method:"PATCH"},"ListUiController.getListObjectInfo":{urlPath:e+"/ui-api/list-object-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ListUiController.getListPreferences":{urlPath:e+"/ui-api/list-preferences/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.updateListPreferences":{urlPath:e+"/ui-api/list-preferences/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],inputRepresentation:"listPreferencesInput",method:"PATCH"},"ListUiController.getListRecordsById":{urlPath:e+"/ui-api/list-records/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListRecordsByName":{urlPath:e+"/ui-api/list-records/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.postListRecordsByName":{urlPath:e+"/ui-api/list-records/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],inputRepresentation:"listRecordsQuery",method:"POST"},"ListUiController.getListUiById":{urlPath:e+"/ui-api/list-ui/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListUiByName":{urlPath:e+"/ui-api/list-ui/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"MruListUiController.getMruListInfo":{urlPath:e+"/ui-api/mru-list-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"MruListUiController.getMruListRecords":{urlPath:e+"/ui-api/mru-list-records/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"MruListUiController.getMruListUi":{urlPath:e+"/ui-api/mru-list-ui/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getAggregateUi":{urlPath:e+"/ui-api/aggregate-ui",urlPathParamNames:[],method:"GET"},"RecordUiController.executeAggregateUi":{urlPath:e+"/ui-api/aggregate-ui",urlPathParamNames:[],inputRepresentation:"input",method:"POST"},"RecordUiController.getRecordsWithFields":{urlPath:e+"/ui-api/records/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getRecordsWithLayouts":{urlPath:e+"/ui-api/records/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.executeBatchRecordOperations":{urlPath:e+"/ui-api/records/batch",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.getDedupeConfig":{urlPath:e+"/ui-api/duplicates/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getDuplicateConfig":{urlPath:e+"/ui-api/duplicates/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getFormByName":{urlPath:e+"/ui-api/forms/${apiName}",urlPathParamNames:["apiName"],method:"GET"},"RecordUiController.executeBatchGraphQL":{urlPath:e+"/graphql/batch",urlPathParamNames:[],inputRepresentation:"batchQueryInput",method:"POST"},"RecordUiController.executeGraphQL":{urlPath:e+"/graphql",urlPathParamNames:[],inputRepresentation:"queryInput",method:"POST"},"RecordUiController.getLayout":{urlPath:e+"/ui-api/layout/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getLayoutUserState":{urlPath:e+"/ui-api/layout/${objectApiName}/user-state",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.updateLayoutUserState":{urlPath:e+"/ui-api/layout/${objectApiName}/user-state",urlPathParamNames:["objectApiName"],inputRepresentation:"userState",method:"PATCH"},"RecordUiController.getObjectInfos":{urlPath:e+"/ui-api/object-info/batch/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"RecordUiController.getObjectInfo":{urlPath:e+"/ui-api/object-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getPathLayout":{urlPath:e+"/ui-api/path/layout/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getPicklistValuesByRecordType":{urlPath:e+"/ui-api/object-info/${objectApiName}/picklist-values/${recordTypeId}",urlPathParamNames:["objectApiName","recordTypeId"],method:"GET"},"RecordUiController.getPicklistValues":{urlPath:e+"/ui-api/object-info/${objectApiName}/picklist-values/${recordTypeId}/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName","recordTypeId"],method:"GET"},"RecordUiController.findDuplicates":{urlPath:e+"/ui-api/predupe",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.postRecordAvatarAssociation":{urlPath:e+"/ui-api/record-avatars/${recordId}/association",urlPathParamNames:["recordId"],inputRepresentation:"input",method:"POST"},"RecordUiController.getRecordAvatars":{urlPath:e+"/ui-api/record-avatars/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getRecordCloneDefaults":{urlPath:e+"/ui-api/record-defaults/clone/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordCreateDefaults":{urlPath:e+"/ui-api/record-defaults/create/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.createRecord":{urlPath:e+"/ui-api/records",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.deleteRecord":{urlPath:e+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"DELETE"},"RecordUiController.getRecordWithFields":{urlPath:e+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordWithLayouts":{urlPath:e+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.updateRecord":{urlPath:e+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],inputRepresentation:"recordInput",method:"PATCH"},"RecordUiController.getRecordDefaultsTemplateClone":{urlPath:e+"/ui-api/record-defaults/template/clone/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordDefaultsTemplateForCreate":{urlPath:e+"/ui-api/record-defaults/template/create/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getRecordUis":{urlPath:e+"/ui-api/record-ui/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getValidationRulesInfo":{urlPath:e+"/ui-api/object-info/${objectApiName}/validation-rules-info",urlPathParamNames:["objectApiName"],method:"GET"},"RelatedListUiController.getRelatedListInfoBatch":{urlPath:e+"/ui-api/related-list-info/batch/${parentObjectApiName}/${relatedListNames}",urlPathParamNames:["parentObjectApiName","relatedListNames"],method:"GET"},"RelatedListUiController.getRelatedListInfoCollection":{urlPath:e+"/ui-api/related-list-info/${parentObjectApiName}",urlPathParamNames:["parentObjectApiName"],method:"GET"},"RelatedListUiController.getRelatedListInfo":{urlPath:e+"/ui-api/related-list-info/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.getRelatedListInfoByApiName":{urlPath:e+"/ui-api/related-list-info/${parentObjectApiName}/${relatedListId}",urlPathParamNames:["parentObjectApiName","relatedListId"],method:"GET"},"RelatedListUiController.updateRelatedListInfoByApiName":{urlPath:e+"/ui-api/related-list-info/${parentObjectApiName}/${relatedListId}",urlPathParamNames:["parentObjectApiName","relatedListId"],inputRepresentation:"relatedListInfoInput",method:"PATCH"},"RelatedListUiController.getRelatedListPreferencesBatch":{urlPath:e+"/ui-api/related-list-preferences/batch/${preferencesIds}",urlPathParamNames:["preferencesIds"],method:"GET"},"RelatedListUiController.getRelatedListPreferences":{urlPath:e+"/ui-api/related-list-preferences/${preferencesId}",urlPathParamNames:["preferencesId"],method:"GET"},"RelatedListUiController.updateRelatedListPreferences":{urlPath:e+"/ui-api/related-list-preferences/${preferencesId}",urlPathParamNames:["preferencesId"],inputRepresentation:"relatedListUserPreferencesInput",method:"PATCH"},"RelatedListUiController.getRelatedListsRecordCount":{urlPath:e+"/ui-api/related-list-count/batch/${parentRecordId}/${relatedListNames}",urlPathParamNames:["parentRecordId","relatedListNames"],method:"GET"},"RelatedListUiController.getRelatedListRecordCount":{urlPath:e+"/ui-api/related-list-count/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.getRelatedListRecordsBatch":{urlPath:e+"/ui-api/related-list-records/batch/${parentRecordId}/${relatedListIds}",urlPathParamNames:["parentRecordId","relatedListIds"],method:"GET"},"RelatedListUiController.postRelatedListRecordsBatch":{urlPath:e+"/ui-api/related-list-records/batch/${parentRecordId}",urlPathParamNames:["parentRecordId"],inputRepresentation:"listRecordsQuery",method:"POST"},"RelatedListUiController.getRelatedListRecords":{urlPath:e+"/ui-api/related-list-records/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.postRelatedListRecords":{urlPath:e+"/ui-api/related-list-records/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],inputRepresentation:"listRecordsQuery",method:"POST"},"SearchUiController.searchResultsKeyword":{urlPath:e+"/ui-api/search/results/keyword",urlPathParamNames:[],inputRepresentation:"options",method:"POST"},"SearchUiController.getSearchFilterMetadata":{urlPath:e+"/ui-api/search-info/${objectApiName}/filters",urlPathParamNames:["objectApiName"],method:"GET"},"SearchUiController.getFilterOptions":{urlPath:e+"/ui-api/search-info/${objectApiName}/filters/${filterApiName}/options",urlPathParamNames:["filterApiName","objectApiName"],method:"GET"},"SearchUiController.searchResults":{urlPath:e+"/ui-api/search/results",urlPathParamNames:[],inputRepresentation:"options",method:"POST"},"LookupController.getLookupMetadata":{urlPath:e+"/ui-api/search-info/${objectApiName}/lookup/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName"],method:"GET"},"LookupController.getLookupRecords":{urlPath:e+"/ui-api/lookups/${objectApiName}/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName"],method:"GET"},"LookupController.lookup":{urlPath:e+"/ui-api/lookups/${objectApiName}/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName"],inputRepresentation:"body",method:"POST"},"ServicePlanController.executeServicePlan":{urlPath:e+"/service-plan/execute/${generatedPlanId}",urlPathParamNames:["generatedPlanId"],inputRepresentation:"servicePlanInputRepresentation",method:"PUT"},"ServicePlanController.generateSync":{urlPath:e+"/service-plan/generateSync/${recordId}",urlPathParamNames:["recordId"],inputRepresentation:"ServicePlanPostInput",method:"POST"},"TableauEmbeddingController.postJWT":{urlPath:e+"/tableau/jwt",urlPathParamNames:[],method:"POST",inputRepresentation:"tableauJwtArgs"},"TableauEmbeddingController.getJWT":{urlPath:e+"/tableau/jwt",urlPathParamNames:[],method:"GET"},"TableauEmbeddingController.getEAS":{urlPath:e+"/tableau/eas",urlPathParamNames:[],method:"GET"},"MilestonesController.getBusinessHours":{urlPath:e+"/connect/milestones/business-hours",urlPathParamNames:[],method:"GET"},"MilestonesController.markMilestoneCompleted":{urlPath:e+"/connect/milestones/business-hours/milestone-completed",urlPathParamNames:[],method:"PUT"},"MilestonesController.getMilestonesDataManager":{urlPath:e+"/connect/milestones/milestones-data-manager/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"ICpqConnectFeatureController.productDetails":{urlPath:e+"/connect/cpq/products/${productId}",urlPathParamNames:["productId"],method:"POST",inputRepresentation:"requestBody"},"ICpqConnectFeatureController.configure":{urlPath:e+"/connect/cpq/configurator/actions/configure",urlPathParamNames:[],method:"POST",inputRepresentation:"configuratorInput"},"ICpqConnectFeatureController.searchProductList":{urlPath:e+"/connect/cpq/products/search",urlPathParamNames:[],method:"POST",inputRepresentation:"requestBody"},"IArcResourceFamilyController.amend":{urlPath:e+"/connect/revenue-management/assets/actions/amend",urlPathParamNames:[],method:"POST",inputRepresentation:"amendRequest"},"IArcResourceFamilyController.renew":{urlPath:e+"/connect/revenue-management/assets/actions/renew",urlPathParamNames:[],method:"POST",inputRepresentation:"amendRequest"},"IArcResourceFamilyController.cancel":{urlPath:e+"/connect/revenue-management/assets/actions/cancel",urlPathParamNames:[],method:"POST",inputRepresentation:"amendRequest"},"InstantPricingConnectFeatureController.getInstantPricing":{urlPath:e+"/industries/cpq/quotes/actions/get-instant-price",urlPathParamNames:[],method:"POST",inputRepresentation:"getInstantPricingRequestPayload"},"SalesTransactionContextController.placeSalesTransaction":{urlPath:e+"/connect/rev/sales-transaction/actions/place",urlPathParamNames:[],method:"POST",inputRepresentation:"PlaceSalesTransactionInput"},"PlaceQuoteController.placeQuote":{urlPath:e+"/commerce/quotes/actions/place",urlPathParamNames:[],method:"POST",inputRepresentation:"PlaceQuoteInput"},"CommerceOrderController.placeOrder":{urlPath:e+"/commerce/sales-orders/actions/place",urlPathParamNames:[],method:"POST",inputRepresentation:"inputRequest"},"SalesAgreementProductController.updateSalesAgreement":{urlPath:e+"/connect/sales-agreements/${salesAgreementId}/product",urlPathParamNames:["salesAgreementId"],method:"PUT",inputRepresentation:"salesAgreementDetailInput"},"ConfiguratorResourceFamilyController.getProductFlowByProductId":{urlPath:e+"/connect/pcm/products/${productId}/flow",urlPathParamNames:["productId"],method:"GET"},"ICpqConnectFeatureController.bulkProductDetails":{urlPath:e+"/connect/cpq/products/bulk",urlPathParamNames:[],method:"POST",inputRepresentation:"requestBody"},"ICpqConnectFeatureController.productList":{urlPath:e+"/connect/cpq/products",urlPathParamNames:[],method:"POST",inputRepresentation:"requestBody"},"ICpqConnectFeatureController.guidedSelectionProductList":{urlPath:e+"/connect/cpq/products/guided-selection",urlPathParamNames:[],method:"POST",inputRepresentation:"requestBody"},"ICpqConnectFeatureController.categoryList":{urlPath:e+"/connect/cpq/categories",urlPathParamNames:[],method:"POST",inputRepresentation:"requestBody"},"OmniAnalyticsController.fetchOmniAnalyticsMetadata":{urlPath:e+"/connect/omni-analytics/analytics-metadata",urlPathParamNames:["externalTrackingDefName","fetchSettings","groupName","isActive"],method:"GET"},"OmniAnalyticsController.storeOmniAnalyticsLogs":{urlPath:e+"/connect/omni-analytics/analytics-logs",urlPathParamNames:[],method:"POST",inputRepresentation:"omniAnalyticsLogDefinition"},"IFlexRuntimeConnectController.executeDataSource":{urlPath:e+"/connect/flex-runtime/executeDataSource",urlPathParamNames:[],method:"GET"},"IFlexRuntimeConnectController.executeDataSourceContinuation":{urlPath:e+"/connect/flex-runtime/datasource-continuation",urlPathParamNames:[],method:"GET"},"IFlexRuntimeConnectController.executeDataSourceAsync":{urlPath:e+"/connect/flex-runtime/datasource-async",urlPathParamNames:[],method:"GET"},"IFlexRuntimeConnectController.isCommunity":{urlPath:e+"/connect/flex-runtime/isCommunity",urlPathParamNames:[],method:"GET"},"OmniStudioLoggerConnectController.logUsageEvents":{urlPath:e+"/connect/omnistudio/logger",urlPathParamNames:[],method:"POST",inputRepresentation:"omniStudioLogInputRepresentation"},"KnowledgeSummaryController.getKnowledgeSummary":{urlPath:e+"/connect/article/${recordId}/summary",urlPathParamNames:["recordId"],method:"GET"},"KnowledgeQuestionsGenController.getKnowledgeAnswer":{urlPath:e+"/connect/article/${recordId}/answer",urlPathParamNames:["recordId"],method:"POST",inputRepresentation:"knowledgeGetAnswerInput"},"KnowledgeQuestionsGenController.getKnowledgeQuestions":{urlPath:e+"/connect/article/${recordId}/questions",urlPathParamNames:["recordId"],method:"GET"},"KnowledgeQuestionsGenController.updateKnowledgeQuestion":{urlPath:e+"/connect/article/${recordId}/questions/${questionId}/selectioncount",urlPathParamNames:["recordId","questionId"],method:"PUT"},"ServiceAutomationFamilyController.getCatalogItem":{urlPath:e+"/connect/service-automation/catalog/catalog-item/${catalogItemId}",urlPathParamNames:["catalogItemId"],method:"GET"},"ServiceAutomationFamilyController.getCatalogItemForRuntime":{urlPath:e+"/connect/service-automation/catalog/catalog-item/${catalogItemId}",urlPathParamNames:["catalogItemId"],method:"GET"}};function E(w){return t[w]}r.getResourceReferenceFromAuraMethod=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/auraMethodToResourceReferenceMapping",["exports","webruntime/auraMethodToResourceReferenceMapping/v/1_66_1084-258_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_1084-258_0",["exports","webruntime/auraMethodToResourceReferenceMapping/v/1_66_1084-258_0","webruntime/transport/v/1_66_1084-258_0","webruntime/errors/v/1_66_1084-258_0","@app/apexApiBasePath/v/1","webruntime/overrides/v/1_66_1084-258_0","@communities-webruntime/common/v/1_66_1084-258_0"],function(r,e,t,E,w,F,O){"use strict";function v(L){return L&&typeof L=="object"&&"default"in L?L:{default:L}}var l=v(w);async function d(L,S){const[J,Z]=L.split(".");if(J==="ApexActionController")return f(Z,S);const q=e.getResourceReferenceFromAuraMethod(L);if(q)return u(q,S);throw new Error(`Unsupported controller action: ${J}.${Z}`)}async function u({urlPath:L,urlPathParamNames:S,method:J,inputRepresentation:Z},q){const z=q&&{...q}||{};let k=S.reduce((oe,X)=>{const me=z[X];return delete z[X],oe.replace(`\${${X}}`,encodeURIComponent(me))},L),K;(J==="POST"||J==="PATCH"||J==="PUT")&&z[Z]&&(K=JSON.stringify(z[Z]),delete z[Z]),Object.keys(z).length&&(k+=`?${Object.entries(z).filter(([,oe])=>oe!=null&&(!Array.isArray(oe)||oe.length)).map(([oe,X])=>`${encodeURIComponent(oe)}=${encodeURIComponent(X)}`).join("&")}`);const D=await t.fetch(k,{method:J,body:K});let te;if(D.status===401&&P(),D.status!==204&&(te=await D.json()),te instanceof Array&&(te=te[0]),!D.ok){const oe={status:D.status,data:{...te,statusCode:D.status}};throw A([oe])}return N(te)}async function f(L,S){if(L==="execute"){const{url:J,httpRequestOptions:Z}=m(L,S);return t.fetch(J,Z).then(q=>(q.status===401&&P(),q.status!==204?q.json():void 0)).then(q=>{if(q&&q.error&&q.error.length>0)throw A(q.error);return N(q)})}throw new Error(`Unsupported Apex action: ${L}`)}function m(L,S){if((!S||typeof S!="object"||Object.keys(S).length===0)&&E.reportError({subject:"Apex API action error - invalid params",type:O.CLIENT_ERROR_TYPES.APEX_ACTION_ERROR,error:new Error(`Apex ${L} action called with invalid params: '${JSON.stringify(S)}'.`)}),S&&S.cacheable===!0){const J=`/apex/${L}?${T(S)}`;if(J.length<=O.MAX_URL_LENGTH)return{url:J,httpRequestOptions:{method:"GET",basePath:l.default}}}return{url:`/apex/${L}`,httpRequestOptions:{method:"POST",body:JSON.stringify(S),basePath:l.default}}}function T(L){const S={...L},J=S.params;if(J&&typeof J=="object"){const Z=Object.keys(J).sort().reduce((q,z)=>(q[z]=J[z],q),{});S.params=JSON.stringify(Z)}return Object.keys(S).filter(Z=>S[Z]!==void 0&&S[Z]!=null).sort().map(Z=>`${Z}=${encodeURIComponent(S[Z])}`).join("&")}function P(){F.SessionTimeoutOverrides.runSync()}function N(L){return{getReturnValue:()=>L}}function A(L){return{getError:()=>L}}async function M(L){try{const S=await t.fetch(L);if(S.ok){const J=await S.json();if(J)return J}}catch(S){return null}return null}r.apiCallRawResponse=d,r.fetchEndpoint=M,r.formatApexRequest=m,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/apiCall",["exports","webruntime/apiCall/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("aura/v/1_66_1084-258_0",["exports","webruntime/apiCall/v/1_66_1084-258_0","webruntime/logger/v/1_66_1084-258_0"],function(r,e,t){"use strict";function E(l){if(l&&l.__esModule)return l;var d=Object.create(null);return l&&Object.keys(l).forEach(function(u){if(u!=="default"){var f=Object.getOwnPropertyDescriptor(l,u);Object.defineProperty(d,u,f.get?f:{enumerable:!0,get:function(){return l[u]}})}}),d.default=l,Object.freeze(d)}var w=E(t);const F=null,O=null,v=null;Object.defineProperty(r,"executeGlobalControllerRawResponse",{enumerable:!0,get:function(){return e.apiCallRawResponse}}),r.logger=w,r.createComponent=F,r.getDefinition=v,r.renderComponent=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("aura",["exports","aura/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("instrumentation/service/v/1_66_1084-258_0",["exports","aura-instrumentation/v/1_66_1084-258_0"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("instrumentation/service",["exports","instrumentation/service/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("instrumentation/utility/v/1_66_1084-258_0",["exports","aura-instrumentation/v/1_66_1084-258_0"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("instrumentation/utility",["exports","instrumentation/utility/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lightning/configProvider/v/1_66_1084-258_0",["exports","@app/basePath/v/1","lwc/v/8_20_6"],function(r,e,t){"use strict";function E(I){return I&&typeof I=="object"&&"default"in I?I:{default:I}}var w=E(e);const F=/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z){1})?)?)?$/i,O=/^\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i,v="HH:mm:ss.SSS",l="YYYY-MM-DD",d="T",u=/(Z|([+-])(\d{2}):(\d{2}))$/;function f(I){return P(I)&&A(I)}function m(I){if(!N(I))return!1;const ae=T(I);return A(`2018-09-09T${ae}Z`)}function T(I){return typeof I=="string"?I.split(u)[0]:I}function P(I){return typeof I!="string"?!1:F.test(I)}function N(I){return typeof I!="string"?!1:O.test(I)}function A(I){const ae=Date.parse(I);return isFinite(ae)}var M=void 0;const L="in a few seconds",S="a few seconds ago",J="in {0} {1}",Z="{0} {1} ago",q="s",z={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"}},k=1e3,K=6e4,D=36e5,te=864e5;class oe{constructor(ae){if(this.milliseconds=0,typeof ae!="number"){this.isValid=!1,console.warn(`The value of milliseconds passed into Duration must be of type number,
but we are getting the ${typeof ae} value "${ae}" instead.
`);return}this.isValid=!0,this.milliseconds=ae}humanize(ae){if(!this.isValid)return"";const ge=a(this);return ge===z.SECONDS?this.milliseconds>0?L:S:c(ae,this.asIn(ge),ge.name)}asIn(ae){switch(ae){case z.SECONDS:return Math.round(this.milliseconds/k);case z.MINUTES:return Math.round(this.milliseconds/K);case z.HOURS:return Math.round(this.milliseconds/D);case z.DAYS:return Math.round(this.milliseconds/te);case z.MONTHS:return Math.round(me(this.milliseconds/te));case z.YEARS:default:return Math.round(me(this.milliseconds/te)/12)}}}const X=t.registerComponent(oe,{tmpl:M,sel:"lightning-config-provider",apiVersion:63});function me(I){const ae=4800/146097;return I*ae}function a(I){const ae=Object.keys(z).find(ge=>{const fe=z[ge];return fe===z.YEARS||Math.abs(I.asIn(fe))<fe.threshold});return z[ae]}function c(I,ae,ge){return"Intl"in window&&Intl.RelativeTimeFormat?new Intl.RelativeTimeFormat(I,{style:"long",numeric:"always"}).format(ae,ge):p(ae,ge)}function p(I,ae){console.warn("The current environment does not support formatters for relative time.");const ge=Math.abs(I),fe=ge!==1?ae+q:ae,Ke=I>0?J:Z;return x(Ke,ge,fe)}function x(I,...ae){return I.replace(/{(\d+)}/g,(ge,fe)=>ae[fe])}const B=["January","February","March","April","May","June","July","August","September","October","November","December"],ce={short:"M/d/yyyy",medium:"MMM d, yyyy",long:"MMMM d, yyyy"},Ae={short:"h:mm a",medium:"h:mm:ss a",long:"h:mm:ss a"},Ge={short:"h:m a",medium:"h:m:s a",long:"h:m:s a"};function Me(I,ae){let ge=!1,fe=I;return typeof I=="string"&&(fe=I.split(d)[0],ge=!0),U(fe,ae,ge)}function He(I,ae){return U(I,ae,!0)}function De(I,ae){if(!R(I))return new Date("");const ge=(I.getHours()+11)%12+1,fe=I.getHours()>=12?"PM":"AM";switch(ae){case v:return`${ie(I.getHours())}:${ie(I.getMinutes())}:${ie(I.getSeconds())}.${ee(I.getMilliseconds())}`;case Ae.short:return`${ge}:${ie(I.getMinutes())} ${fe}`;case Ae.medium:case Ae.long:default:return`${ge}:${ie(I.getMinutes())}:${ie(I.getSeconds())} ${fe}`}}function qe(I){if(!R(I))return new Date("");const ae=new Date(I.getTime());return`${He(ae)}, ${De($(ae))}`}function Qe(I){let ae=null,ge=!0;if(m(I)?ae=`2014-03-20T${G(I)}`:f(I)&&(I.indexOf(d)>0?(ae=G(I),ge=!1):ae=`${I}T00:00:00.000Z`),ae){const fe=new Date(ae);return ge&&$(fe),fe}return null}function V(I,ae){return ae===l&&f(I)?Qe(I):Object.values(ce).includes(ae)?b(I,ae):Object.values(Ge).includes(ae)?yt(I):null}function le(I){return Qe(G(I))}function Y(I,ae,ge){const fe=ne(I),Ke=ne(ae);return!fe||!Ke?!1:C(fe,ge).getTime()<C(Ke,ge).getTime()}function ve(I,ae,ge){const fe=ne(I),Ke=ne(ae);return!fe||!Ke?!1:C(fe,ge).getTime()>C(Ke,ge).getTime()}function Te(I,ae,ge){const fe=new Date(I.getTime());ge(W(fe))}function We(I,ae,ge){const fe=new Date(I.getTime());ge($(fe))}function Se(I){return I}function Re(I){return I}function ze(I){return I}function Ze(I){return I}function st(){return{format:I=>(console.warn(`The current environment does not support large numbers and the original value of ${I} will be returned.`),I)}}function lt(I){return new X(I*60*1e3)}function Le(I){return I.humanize("en")}function yt(I){const ae=I.trim().split(/[:.\s*]/),ge=ae.length;if(!ae||ge<2||ge>5)return null;const fe=ae[ge-1],Ke=fe.toLowerCase()==="am",Oe=fe.toLowerCase()==="pm";ae.splice(-1,1);const ct=ae.every(Pt=>!isNaN(Pt));if(!Oe&&!Ke||!ct)return null;const dt=ae[0],it=ie(Oe?dt%12+12:dt%12),bt=ge>=3&&ae[1]||"0",ut=ge>=4&&ae[2]||"0",et=ge===5&&ae[3]||"0",Xe=new Date("2014-03-20");return Xe.setHours(it,bt,ut,et),R(Xe)?Xe:null}function b(I,ae){let ge=/^([a-zA-Z]{3})\s*(\d{1,2}),\s*(\d{4})$/;switch(ae){case ce.short:ge=/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/;break;case ce.long:ge=/^([a-zA-Z]+)\s*(\d{1,2}),\s*(\d{4})$/;break}const fe=ge.exec(I.trim());if(!fe)return null;let Ke=fe[1];const Oe=fe[2],ct=fe[3];ae!==ce.short&&(Ke=B.findIndex(bt=>bt.toLowerCase().includes(Ke.toLowerCase())),Ke+=1);const dt=`${ct}-${ie(Ke)}-${ie(Oe)}`,it=new Date(`${dt}T00:00:00.000Z`);return R(it)?$(it):null}function U(I,ae,ge){const fe=ne(I);if(!fe)return new Date("");switch(ge&&R(I)&&$(fe),ae){case l:return`${fe.getFullYear()}-${ie(fe.getMonth()+1)}-${ie(fe.getDate())}`;case ce.short:return`${fe.getMonth()+1}/${fe.getDate()}/${fe.getFullYear()}`;case ce.long:return`${B[fe.getMonth()]} ${fe.getDate()}, ${fe.getFullYear()}`;case ce.medium:default:return`${B[fe.getMonth()].substring(0,3)} ${fe.getDate()}, ${fe.getFullYear()}`}}function C(I,ae){switch(ae){case"day":I.setHours(0),I.setMinutes(0);case"minute":I.setSeconds(0),I.setMilliseconds(0);break}return I}function R(I){return Object.prototype.toString.call(I)==="[object Date]"&&!isNaN(I.getTime())}function G(I){return`${T(I)}Z`}function $(I){return I.setMinutes(I.getMinutes()+I.getTimezoneOffset()),I}function W(I){return I.setMinutes(I.getMinutes()-I.getTimezoneOffset()),I}function ne(I){return I?R(I)?new Date(I.getTime()):isFinite(I)&&(typeof I=="number"||typeof I=="string")?new Date(parseInt(I,10)):typeof I=="string"?Qe(I):null:null}function ie(I){return Number(I)<10?`0${I}`:I}function ee(I){return Number(I)<10?`00${I}`:Number(I)<100?`0${I}`:I}var ue={formatDate:Me,formatDateUTC:He,formatTime:De,formatDateTimeUTC:qe,parseDateTimeISO8601:Qe,parseDateTime:V,parseDateTimeUTC:le,isBefore:Y,isAfter:ve,UTCToWallTime:Te,WallTimeToUTC:We,translateToOtherCalendar:Se,translateFromOtherCalendar:Re,translateToLocalizedDigits:ze,translateFromLocalizedDigits:Ze,getNumberFormat:st,duration:lt,displayDuration:Le};function Pe(){return ue}function Ce(){return w.default}function $e(){return null}function Ne(){return null}function Fe(){return{densitySetting:""}}var Ve={getOneConfig:Fe,getIconSvgTemplates:Ne,getToken:$e,getPathPrefix:Ce,getLocalizationService:Pe};r.default=Ve,r.getIconSvgTemplates=Ne,r.getLocalizationService=Pe,r.getOneConfig=Fe,r.getPathPrefix=Ce,r.getToken=$e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/configProvider",["exports","lightning/configProvider/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lightning/navigation/v/0_19_7",["exports","lwr/navigationContext/v/0_19_7","lwr/currentPageReference/v/0_19_7","lwr/currentView/v/0_19_7","lwr/contextUtils/v/0_19_7","lwr/routerErrors/v/0_19_7","lwr/navigationMixinHacks/v/0_19_7"],function(r,e,t,E,w,F,O){"use strict";function v(A,M,L,S){w.getNavigationHelm(A).navigate(M,L,S)}function l(A,M,L){return w.getNavigationHelm(A).generateUrl(M,L)}function d(A,M,L){return w.getNavigationHelm(A).generateUrlAsync(M,L)}const u=Symbol("Navigate"),f=Symbol("GenerateUrl"),m=Symbol("NavContext"),T=Symbol("NavContext"),P=typeof window=="undefined";function N(A){F.invariant(typeof A.prototype.dispatchEvent=="function",F.messages.INVALID_MIXIN_CMP,[A.toString()]);class M extends A{[T](){if(!this[m]&&(this.dispatchEvent(new CustomEvent(O.CONTEXT_ID_BACKDOOR,{bubbles:!0,composed:!0,detail:{callback:S=>{this[m]=S}}})),!this[m]))throw new Error(F.generateMessage(F.messages.MISSING_CONTEXT))}[u](S,J,Z){P||(this[T](),v(this[m],S,J,Z))}async[f](S,J){return P?null:(this[T](),d(this[m],S,J))}}return M}N.Navigate=u,N.GenerateUrl=f,N.NavContext=m,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 w.ContextInfo}}),Object.defineProperty(r,"generateContextualWireAdapter",{enumerable:!0,get:function(){return w.generateContextualWireAdapter}}),Object.defineProperty(r,"getNavigationHelm",{enumerable:!0,get:function(){return w.getNavigationHelm}}),Object.defineProperty(r,"registerNavigationHelm",{enumerable:!0,get:function(){return w.registerNavigationHelm}}),r.NavigationMixin=N,r.generateUrl=l,r.navigate=v,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/navigation",["exports","lightning/navigation/v/0_19_7"],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_1084-258_0",["exports"],function(r){"use strict";const e=300,{document:t}=globalThis,E={navKey:"F6",f6RegionAttribute:"data-f6-region",f6RegionHighlightClass:"f6-highlight"},w=d=>d&&(d.shadowRoot?d.shadowRoot.activeElement?w(d.shadowRoot.activeElement):d:d.activeElement?w(d.activeElement):d);class F{constructor(u={}){this.regions=[],this.config=E,this._debounceKeyDownHandler=void 0,this._styleElement=void 0,this.handleClick=()=>{this.clearRegionHighlights()},this.handleKeyDown=f=>{this.clearRegionHighlights();const{key:m,ctrlKey:T,metaKey:P}=f;m===this.config.navKey&&(T||P)&&(this.populateRegions(),this.handleNavigation(f))},this.elementFilter=f=>f.parentElement&&f.parentElement.matches(`*[${this.config.f6RegionAttribute}]`)?NodeFilter.FILTER_REJECT:f.matches(`*[${this.config.f6RegionAttribute}]`)&&this.isVisible(f)&&!this.isEmpty(f)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,this._debounceKeyDownHandler=this.debounce(this.handleKeyDown.bind(this),e),this.initialize(u)}debounce(u,f,m){const T=m||{};let P=T.leading,N;return function(){const M=Array.prototype.slice.apply(arguments);P&&(u.apply(this,M),P=!1),clearTimeout(N),N=setTimeout(function(){u.apply(this,M),P=T.leading},f)}}appendStyleElement(){this._styleElement=t.createElement("style");const u=`[${this.config.f6RegionAttribute}].${this.config.f6RegionHighlightClass}`;this._styleElement.innerText=`${u} { position: relative; } ${u}::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(u=>{u.classList.remove(this.config.f6RegionHighlightClass)})}addRegionHighlight(u){u.classList.add(this.config.f6RegionHighlightClass)}focusIn(u){const f=u.querySelector('a[href],button:not([disabled]),input:not([type="hidden"]):not([disabled]),select:not([type="hidden"]):not([disabled]),textarea:not([type="hidden"]):not([disabled])');f?f.focus():(u.tabIndex="-1",u.focus())}handleNavigation(u){if(u.preventDefault(),!this.regions.length)return;const f=u.shiftKey,m=this.getElementRegionIndex(w(u.target)),T=this.getNextRegionIndex(m,f);if(T===-1)return;const P=this.regions[T];this.focusIn(P),this.addRegionHighlight(P)}shadowContains(u,f){return u===f||u.contains(f)||u.shadowRoot&&this.isElementInContainerElements(u.shadowRoot.children,f)||u.tagName==="SLOT"&&this.isElementInContainerElements(u.assignedElements(),f)?!0:this.isElementInContainerElements(u.children,f)}isElementInContainerElements(u,f){if(!u||!u.length)return!1;const m=u.length;for(let T=0;T<m;T++)if(this.shadowContains(u[T],f))return!0;return!1}getElementRegionIndex(u){return!this.regions||!this.regions.length?-1:this.regions.findIndex(f=>this.shadowContains(f,u))}getNextRegionIndex(u,f){const m=this.regions.length-1;return m<0?-1:f?u<=0?m:u-1:u===m?0:u+1}isVisible(u){if(u===t.body||!(u instanceof Element))return!0;try{const f=window.getComputedStyle(u)||u.style;if(!f)return!1;const{display:m,visibility:T}=f;return m&&m.toLowerCase()==="none"||T&&T.toLowerCase()==="hidden"?!1:this.isVisible(u.parentNode)}catch(f){return!1}}isEmpty(u){if(u.tagName==="SLOT"&&!this.isEmptyChildren(u.assignedElements()))return!1;let f=u.children;return(!f||!f.length)&&u.shadowRoot&&(f=u.shadowRoot.children),this.isEmptyChildren(f)}isEmptyChildren(u){if(!u||!u.length)return!0;const f=u.length;for(let m=0;m<f;m++){const T=u[m];if(T.tagName!=="SLOT"||!this.isEmpty(T))return!1}return!0}populateRegions(){if(!t)return;this.regions=[];const u=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT,this.elementFilter,!1);for(;u.nextNode();)this.regions.push(u.currentNode)}initialize(u={}){!t||(t.addEventListener("keydown",this._debounceKeyDownHandler),this.regions=[],this.config={...this.config,...u},this.appendStyleElement())}cleanUp(){!t||(t.removeEventListener("keydown",this._debounceKeyDownHandler),this._regions=[],this._config=E,this._debounceKeyDownHandler=null,this._styleElement&&(t.head.removeChild(this._styleElement),this._styleElement=null))}getConfig(){return Object.freeze(this.config)}}let O;const v=d=>(O||(O=new F(d)),O),l=()=>{if(O){const d=O.getConfig();if(d)return d.f6RegionAttribute}};r.DEFAULT_CONFIG=E,r.F6Controller=F,r.createF6Controller=v,r.getActiveElem=w,r.getCurrentRegionAttributeName=l,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/f6Controller",["exports","webruntime/f6Controller/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lightning/f6Controller/v/1_66_1084-258_0",["exports","webruntime/f6Controller/v/1_66_1084-258_0"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/f6Controller",["exports","lightning/f6Controller/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/environment/v/0_19_7",["exports"],function(r){"use strict";const e=globalThis?.LWR?.env||{},t=e&&(e.SSR==="true"||e.SSR===!0),E=e&&e.basePath,w=e&&e.locale,F=e&&e.assetBasePath,O=e&&e.uiBasePath;r.assetBasePath=F,r.basePath=E,r.isServer=t,r.locale=w,r.uiBasePath=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/environment",["exports","lwr/environment/v/0_19_7"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("transport/v/1_66_1084-258_0",["exports","webruntime/transport/v/1_66_1084-258_0"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("transport",["exports","transport/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/cookieStore/v/1_66_1084-258_0",["exports","@app/authenticationCookieName/v/1","@app/guestUuidCookieName/v/1","@salesforce/site/Id/v/1"],function(r,e,t,E){"use strict";function w(M){return M&&typeof M=="object"&&"default"in M?M:{default:M}}var F=w(e),O=w(t),v=w(E);let l;function d(M){M&&typeof M=="object"&&(l=M)}function u(M){l=A(M)}function f(){const M=N(F.default);return M?M==="1"||M.includes(v.default):!1}function m(){return N(O.default)}function T(){return l}function P(){return Object.entries(l||{}).map(([M,L])=>`${M}=${L}`).join(";")}function N(M){return M?(typeof document!="undefined"&&u(document?.cookie),l&&l[M]):null}function A(M){return M&&typeof M=="string"?M.split(";").reduce((S,J)=>{const[Z,q]=J.trim().split("=").map(decodeURIComponent);return S[Z]=q,S},{}):null}r.getAllCookies=T,r.getAllCookiesString=P,r.getCookie=N,r.getGuestUuidCookie=m,r.hasSidCookie=f,r.setCookiesFromObject=d,r.setCookiesFromString=u,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/cookieStore",["exports","webruntime/cookieStore/v/1_66_1084-258_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/persistentQueryParams/v/1_66_1084-258_0",["exports"],function(r){"use strict";const e={};r.persistentQueryParams=e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/persistentQueryParams",["exports","webruntime/persistentQueryParams/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/transport/v/1_66_1084-258_0",["exports","lwr/loaderLegacy/v/0_19_7","@app/basePath/v/1","@app/apiBasePath/v/1","@salesforce/i18n/lang/v/1","webruntime/persistentQueryParams/v/1_66_1084-258_0","webruntime/utils/v/1_66_1084-258_0","@communities-webruntime/common/v/1_66_1084-258_0","webruntime/cookieStore/v/1_66_1084-258_0","@app/isDesignMode/v/1","@app/isPreviewMode/v/1","lwc/v/8_20_6"],function(r,e,t,E,w,F,O,v,l,d,u,f){"use strict";function m(V){return V&&typeof V=="object"&&"default"in V?V:{default:V}}var T=m(t),P=m(E),N=m(w),A=m(d),M=m(u),L=void 0;class S{constructor(le){const[Y,ve]=le.split("?");this.path=Y,this.searchParams=new URLSearchParams(ve)}setParamDefaultValue(le,Y){return this.searchParams.has(le)||this.searchParams.append(le,Y),this}build(){const le=this.searchParams.toString();return this.path+(le?`?${le}`:"")}}const J=f.registerComponent(S,{tmpl:L,sel:"webruntime-transport",apiVersion:63}),Z=["POST","PATCH","PUT","DELETE"],q="X-SFDC-Request-Id",z="X-Salesforce-Too-Many-Requests",k="X-CSP",K="asGuest",D="language",te="htmlEncode",{location:oe,navigator:X}=globalThis,me=new Set;function a(V){typeof V=="function"&&me.add(V)}function c(V){me.delete(V)}async function p(V,le={}){O.assert(typeof V=="string","Valid path not provided for fetch request");const Y={...le,headers:{...le.headers},credentials:le.credentials||"same-origin"};le.credentials===null&&delete Y.credentials,typeof window=="undefined"&&l.getGuestUuidCookie()&&(Y.headers.cookie=l.getAllCookiesString());const ve=Y.isNonApiRequest===!0,Te=Y.asGuest===!0||Qe(),We=Y.basePath!==void 0?Y.basePath:P.default,Se=new J(oe?new URL(We+V,oe).toString():We+V);ve||(Se.setParamDefaultValue(D,N.default).setParamDefaultValue(K,Te).setParamDefaultValue(te,!1),Object.entries(F.persistentQueryParams).forEach(([Ze,st])=>{Se.setParamDefaultValue(Ze,st)}));const Re=Y.headers["Content-Type"];Re===null?delete Y.headers["Content-Type"]:Re?Y.headers["Content-Type"]=Re:le.body&&(Y.headers["Content-Type"]="application/json; charset=utf-8"),Y.headers[q]=He(),await Ge(Y);const ze=await globalThis.fetch(Se.build(),Y);return me.forEach(Ze=>Ze(ze)),ce(ze)&&x(),ze}function x(){typeof document!="undefined"&&document.dispatchEvent(new CustomEvent("client-error",{detail:{type:v.CLIENT_ERROR_TYPES.TOO_MANY_REQUESTS}}))}function B(V){return!!(V.headers.get(z)||(V.headers.get(k)||"").toLowerCase()==="rejected")}function ce(V){return!!((V.status===503||V.status===429)&&B(V))}function Ae(V){return V.status===503&&!B(V)}async function Ge(V){if(!Z.includes(V.method))return;const{csrfToken:le}=await qe();le&&(V.headers["CSRF-Token"]=le)}async function Me({path:V,payload:le,contentType:Y}){const ve=T.default+V;X&&X.sendBeacon&&X.sendBeacon(ve,le)||await globalThis.fetch(V,{headers:{"Content-Type":Y},basePath:T.default,body:le,method:"POST",isNonApiRequest:!0})}function He(){return(Date.now()+De()+Math.round(Math.random()*1e8)).substring(0,18)}function De(){function V(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return V()+V()}async function qe(){if(typeof window=="undefined")return{isGuest:!0,id:null,csrfToken:null};const{default:V}=await e.load("@app/user/v/1");return V}function Qe(){return A.default||M.default?!1:!l.hasSidCookie()}r.addFetchObserver=a,r.fetch=p,r.isDownForMaintenanceResponse=Ae,r.isTooManyRequestsResponse=ce,r.removeFetchObserver=c,r.sendBeacon=Me,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/transport",["exports","webruntime/transport/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("logger/v/1_66_1084-258_0",["exports"],function(r){"use strict";function e(...E){console.log(...E)}function t(...E){console.error(...E)}r.log=e,r.logError=t,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("logger",["exports","logger/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("assert/v/1_66_1084-258_0",["exports","webruntime/utils/v/1_66_1084-258_0"],function(r,e){"use strict";Object.defineProperty(r,"default",{enumerable:!0,get:function(){return e.assert}}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("assert",["exports","assert/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("o11y/shared/v/254_7_0",["exports"],function(r){"use strict";class e{constructor(){this.notImplemented="Method not implemented.";const a=typeof performance!="undefined";a?performance.timeOrigin?this._timeOrigin=performance.timeOrigin:this._timeOrigin=Date.now():this._timeOrigin=Date.now();const c=this._timeOrigin;a&&typeof performance.now=="function"?(this.perfNow=performance.now.bind(performance),this.time=()=>{const p=this.perfNow();return{tsNow:c+p,perfNow:p,timeOrigin:c}}):(this.perfNow=()=>Date.now()-c,this.time=()=>{const p=this.perfNow();return{tsNow:Date.now(),perfNow:p,timeOrigin:c}})}get isProduction(){return e._isProduction}markProduction(a){e._isProduction=a??!0}_checkArgument(a,c){if(typeof c=="string")return typeof a===c;if(typeof c=="function")return a instanceof c;if(Array.isArray(c))return c.some(p=>this._checkArgument(a,p));throw new Error(`Invalid argKind ${c}`)}requireArgument(a,c,p){let x=a==null||a==="";const B=p!==void 0;if(!x&&B&&(x=!this._checkArgument(a,p)),x)throw new Error(`${c} argument is required${B?" and must be of a supported type.":"."}`)}requireArgumentIfDefined(a,c,p){if(a===void 0)return!1;if(a===null||a===""||!this._checkArgument(a,p))throw new Error(`${c} argument, if defined, must be of a supported type.`);return!0}checkForDenyListedValues(a,c,p){if(p.some(x=>a===x))throw new Error(`The value ${a} isn't allowed for ${c} argument.`)}checkForReservedCharacters(a,c,p){if(a&&p.some(x=>a.indexOf(x)>=0))throw new Error(`The argument ${c} isn't allowed to contain characters from ['${p.join(", ")}']. Received: ${a}.`)}generateUniqueId(a=16){const c=[],p="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 B=Math.floor(Math.random()*16);c.push(p[B])}return c.join("")}getXpath(a){function c(B){const ce=B.localName;for(;B.nextElementSibling;)if(B=B.nextElementSibling,B.localName===ce)return!0;return!1}function p(B,ce){return B?p(B.previousElementSibling,ce||B.localName)+(B.localName===ce?1:0):1}function x(B){if(!B||B.nodeType!==1)return[""];const ce=p(B)>1||c(B)?`${B.localName.toLowerCase()}[${p(B)}]`:B.localName.toLowerCase();return[...x(B.parentNode),ce]}return x(a).join("/")}getAge(a){return a-this._timeOrigin}getConnectionType(){var a;let c;if(typeof navigator!="undefined"){const p=navigator;c=(a=p==null?void 0:p.connection)===null||a===void 0?void 0:a.effectiveType}return c}clone(a){return JSON.parse(JSON.stringify(a))}definedValueOrDefault(a,c){return a!==void 0?a:c}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 c=this.getGlobal();return typeof((a=c.navigator)===null||a===void 0?void 0:a.sendBeacon)=="function"&&typeof c.Blob=="function"}estimateObjectSize(a){const c=new Set,p=[a];let x=0;for(;p.length;){const B=p.pop();if(typeof B=="boolean")x+=4;else if(typeof B=="string")x+=B.length*2;else if(typeof B=="number")x+=8;else if(B instanceof Uint8Array||B instanceof Uint8ClampedArray||B instanceof Uint16Array||B instanceof Uint32Array||B instanceof Int8Array||B instanceof Int16Array||B instanceof Int32Array||B instanceof Float32Array||B instanceof Float64Array)x+=B.byteLength;else if(typeof B=="object"){const ce=B;if(!c.has(ce)){c.add(ce);for(const Ae in ce)p.push(ce[Ae])}}}return x}noProdThrow(a){if(!w.isProduction)throw a}isAllowedOrigin(a,c){return Array.isArray(c)&&c.some(p=>p==="*"||a===p||p instanceof RegExp&&p.test(a))}roundNumber(a,c){const p=Math.pow(10,c);return Math.round(a*p)/p}roundNumbersInObject(a,c){a&&Object.entries(a).forEach(([p,x])=>{typeof x=="number"&&(a[p]=this.roundNumber(x,c))})}tryGetAbsoluteUrl(a){var c;return(a==null?void 0:a.startsWith("/"))&&typeof window=="object"?((c=window.location.origin)!==null&&c!==void 0?c:"")+a:a}}e._isProduction=!0;const t=new e,E=t.getGlobal();t.markProduction(E==null?void 0:E.__O11Y_IS_PROD__);const w=Object.freeze(t);class F{constructor(a,c,p,x,B,ce,Ae){this._name=a,this._ownerName=c,this._ownerAppName=p,this._tags=x,this._value=0,this._createdOn=B===void 0?w.time().tsNow:B,ce!==void 0&&(this._lastUpdatedOn=ce),Ae!==void 0&&(this._value=Ae)}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=w.time().tsNow;return}throw new Error("UpCounter can only increment positive numbers.")}reset(){this._lastUpdatedOn=void 0,this._value=0}getOwnerName(){return this._ownerName}getOwnerAppName(){return this._ownerAppName}getTags(){return this._tags}}const O="co11y";class v{constructor(){this._upCounters=new Map,this._ownerAppName=O}_addOrUpdateCounter(a,c,p){if(!a)return;const x={status:p},B=`${this._ownerAppName}:${c}:${a}${JSON.stringify(x)}`;let ce=this._upCounters.get(B);ce||(ce=new F(a,c,this._ownerAppName,x),this._upCounters.set(B,ce)),ce.increment()}success(a,c){this._addOrUpdateCounter(a,c,"success")}exception(a,c){this._addOrUpdateCounter(a,c,"error")}getBucketHistograms(){return[]}getUpCounters(){return Array.from(this._upCounters.values()).filter(a=>a.getLastUpdatedOn())}getValueRecorders(){return[]}setOwnerAppName(a){this._ownerAppName=a}}const l=new v;class d{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,c){let p=this._lazyMap.get(a);if(!p){if(this.maxSize!==void 0&&this.size===this.maxSize)return!1;p=new Array,this._lazyMap.set(a,p)}return p.push(c),!0}getMessages(a,c){const p=this._lazyMap.get(a);return c&&this._lazyMap.has(a)&&this._lazyMap.set(a,[]),p||[]}getAllMessages(a){const c=new Map;for(const[p,x]of this._lazyMap.entries())x.length&&c.set(p,this.getMessages(p,a));return c}extractMessages(a){return this.getMessages(a,!0)}extractAllMessages(){return this.getAllMessages(!0)}get totalItemCount(){let a=0;for(const c of this._lazyMap.values())a+=c.length;return a}}class u{getSchemaId(a){return`${a.namespace}.${a.name}`}isInternal(a){return(a==null?void 0:a.namespace)==="sf.instrumentation"}makePayload(a,c,p=!0){if(!p||a!==void 0&&c!==void 0)return{schema:a,payload:c}}checkSchema(a){return w.requireArgument(a,"schema","object"),w.requireArgument(a.namespace,"schema.namespace","string"),w.requireArgument(a.name,"schema.name","string"),w.requireArgument(a.pbjsSchema,"schema.pbjsSchema","object"),this._getTokens(a)}_getTokens(a){const c=a.namespace.split(".");if(c.length!==2)throw new Error(`Schema "${this.getSchemaId(a)}" must have a namespace of the form "domain.feature".`);return{domain:c[0],feature:c[1],message:a.name}}_getAnyNestedObject(a,c){return c.reduce((p,x)=>{const B=p.nested;if(B){const ce=B[x];if(ce)return ce}throw new Error(`Cannot locate ${c.join(".")} in schema with ID ${this.getSchemaId(a)}`)},a.pbjsSchema)}getTypes(a){const c=this.checkSchema(a),x=this._getAnyNestedObject(a,[c.domain,c.feature]).nested;if(!x)throw new Error(`Cannot parse schema with ID ${this.getSchemaId(a)}`);return x}getType(a,c){w.requireArgument(c,"messageName","string");const x=this.getTypes(a)[c];if(!x)throw new Error(`Cannot locate message ${c} in schema with ID ${this.getSchemaId(a)}`);return x}getOptions(a,c,p){p&&w.requireArgument(c,"messageName","string");const x=this.checkSchema(a);if(!c)return this._getAnyNestedObject(a,[x.domain,x.feature]).options;const B=this.getType(a,c);if(!p)return B.options;const ce=B.fields[p];if(!ce){const Ae=this.getSchemaId(a);throw new Error(`Cannot locate field ${p} in message ${c} in schema with ID ${Ae}`)}return ce.options}getExtraFields(a,c){const{message:p}=this._getTokens(a),B=this.getTypes(a)[p].fields,ce=new Set(Object.keys(B));return c!=null?Object.keys(c).filter(Ge=>!ce.has(Ge)):[]}}const f=new u,m=1e4,T=1e4,P=0,N=2147483647,A=-2147483648,M=4294967295,L=9223372036854776e3,S=-9223372036854776e3,J=18446744073709552e3;class Z{constructor(a,c,p,x){this.errorCode=a,this.fields=c,this.expected=p,this.received=x}asMessage(a){const c=this.fields[0]+this.fields.slice(1).reduce((x,B)=>Number(B)>=0?`${x}[${B}]`:`${x}.${B}`,"");let p;switch(this.errorCode){case 1:p="Repeated field must be an array";break;case 2:p=`Expected type ${this.expected} but received type ${this.received}`;break;case 3:p="Value must be finite";break;case 4:p="Value is out of range for its type";break;case 5:p="Bytes array is malformed";break;case 6:p="Exceeded app limit for maximum string length";break;case 7:p="Exceeded app limit for item count";break;case 12:p="Value must be an integer";break;case 13:p="Values like null or undefined are not allowed for items in repeated fields";break;default:p=`Unknown error code: ${this.errorCode}`;break}return`Schema ${a} on field "${c}": ${p}`}}class q{validate(a,c,p=!1){const x=f.checkSchema(a);w.requireArgument(c,"data","object");const B=f.getSchemaId(a),ce=new Array,Ae=f.getTypes(a);if(this._validateFields(ce,[],c,Ae[x.message],Ae,B),ce.length&&!p)throw new Error(ce[0].asMessage(B));return ce}_validateFields(a,c,p,x,B,ce){const Ae=x.oneofs||{},Ge=x.fields||{};for(const Me in p){const He=p[Me];if(He!=null){const De=(qe,Qe,V)=>this._matchFieldTypes(a,[...c,Me],He,qe,B,ce,Me,Qe,V);Ae[Me]?De(Ge[Ae[Me].oneof[0]].type):Ge[Me]&&De(Ge[Me].type,Ge[Me].rule==="repeated")}}}_matchFieldTypes(a,c,p,x,B,ce,Ae,Ge,Me){let He;if(Ge)Array.isArray(p)?(p.length>T&&(He=7),p.forEach((De,qe)=>{this._matchFieldTypes(a,[...c,qe.toString()],De,x,B,ce,Ae,void 0,!0)})):He=1;else if(p==null||p===void 0)Me&&(He=13);else{let De,qe;switch(x){case"string":qe="string",p.length>m&&(He=6);break;case"bytes":qe="object",p instanceof Uint8Array||(He=5);break;case"bool":qe="boolean";break;case"uint32":qe="number",De={min:P,max:M,isInt:!0,isItem:Me};break;case"int32":case"sint32":case"fixed32":case"sfixed32":qe="number",De={min:A,max:N,isInt:!0,isItem:Me};break;case"uint64":qe="number",De={min:P,max:J,isInt:!0,isItem:Me};break;case"fixed64":case"sfixed64":case"int64":case"sint64":qe="number",De={min:S,max:L,isInt:!0,isItem:Me};break;case"double":case"float":qe="number",De={min:Number.NEGATIVE_INFINITY,max:Number.POSITIVE_INFINITY,isInt:!1,isItem:Me};break;default:new Set(Object.keys(B)).has(x)&&(this._validateFields(a,c,p,B[x],B,ce),qe="object");break}typeof p!==qe?a.push(new Z(2,c,x,typeof p)):De&&(De.isInt&&!Number.isFinite(p)?He=3:De.isInt&&!Number.isInteger(p)?He=12:!(!De.isInt&&Number.isNaN(p))&&!(p>=De.min&&p<=De.max)&&(He=4))}He&&a.push(new Z(He,c))}}const z=new q;class k{_getMetricTags(a){const c=a.getTags();if(c)return Object.entries(c).map(p=>({name:p[0],value:p[1].toString()}))}getUpCounters(a,c=!0){return a.map(p=>{const x={name:p.getName(),createdTimestamp:p.getCreatedOn(),lastUpdatedTimestamp:p.getLastUpdatedOn(),value:p.getData(),ownerName:p.getOwnerName(),ownerAppName:p.getOwnerAppName(),tags:this._getMetricTags(p)};return c&&p.reset(),x})}getValueRecorders(a,c=!0){return a.map(p=>{const x={name:p.getName(),createdTimestamp:p.getCreatedOn(),lastUpdatedTimestamp:p.getLastUpdatedOn(),values:p.getData(),ownerName:p.getOwnerName(),ownerAppName:p.getOwnerAppName(),tags:this._getMetricTags(p)};return c&&p.reset(),x})}getBucketHistograms(a,c=!0){return a.map(p=>{const x={name:p.getName(),createdTimestamp:p.getCreatedOn(),lastUpdatedTimestamp:p.getLastUpdatedOn(),values:p.getData(),buckets:p.getBuckets(),ownerName:p.getOwnerName(),ownerAppName:p.getOwnerAppName(),tags:this._getMetricTags(p)};return c&&p.reset(),x})}getMetricsTags(a){const c={};return a.forEach(p=>{c[p.name]=p.value}),c}}const K=Object.freeze(new k);class D{checkInputs(a,c){f.checkSchema(a),w.requireArgument(c,"data","object");let p,x;c.userPayload!==void 0&&f.isInternal(a)&&(x=c.userPayload,p=z.validate(x.schema,x.payload,!0),this._processValidationResults(f.getSchemaId(x.schema),x.payload,p),c.userPayload=void 0),p=z.validate(a,c,!0),this._processValidationResults(f.getSchemaId(a),c,p),x!==void 0&&(c.userPayload=x)}getExtraFields(a,c){w.requireArgument(c,"data","object");const p=[],x=c.userPayload;return x!==void 0&&f.isInternal(a)&&p.push(...f.getExtraFields(x.schema,x.payload)),p.push(...f.getExtraFields(a,c)),p}getPayloadFromProvider(a,c){const p=(a==null?void 0:a.getPayload(c))||void 0;return p&&this.checkInputs(p.schema,p.payload),p}_processValidationResults(a,c,p){for(let x=0;x<p.length;x+=1){const B=p[x];if(B.errorCode==6||B.errorCode==7){const ce=B.fields.length-1,Ae=this._traverseFields(c,B.fields.slice(0,ce)),Ge=B.fields[ce];B.errorCode==6?Ae[Ge]=Ae[Ge].substring(0,m):Ae[Ge].splice(T)}else throw new Error(B.asMessage(a))}}_traverseFields(a,c){return c.length?this._traverseFields(a[c[0]],c.slice(1)):a}}const te=Object.freeze(new D),oe="o11y";class X{constructor(a){this._errorCounter=a,this._safeCatchMode=!1}_callCo11y(a,c){c?l.exception(a==null?void 0:a.op,oe):l.success(a==null?void 0:a.op,oe)}tryCatch(a,c){let p;try{a()}catch(x){p=!0,this._prodSafeCatch(x)}finally{this._callCo11y(c,p)}}tryCatchReturn(a,c,p){let x;try{return w.requireArgument(c,"noopValue"),a()}catch(B){return x=!0,this._prodSafeCatch(B),c}finally{this._callCo11y(p,x)}}_prodSafeCatch(a){let c;try{if(c=!w.isProduction,c)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 p=a&&a.message||(typeof a.toString=="function"?a.toString():"");a=new Error(p)}this._safeCatchMode=!1}catch(p){if(c)throw p;if(p&&console&&typeof console.error=="function")try{console.error(p)}catch(x){}this._safeCatchMode=!1}}}r.Co11yImpl=v,r.LazyMapToList=d,r.MetricsUtility=k,r.PublicSafety=X,r.UpCounterImpl=F,r.ValidationEntry=Z,r.co11y=l,r.logValidator=z,r.maxItemCountAppLimit=T,r.maxStringLengthAppLimit=m,r.metricsUtility=K,r.payloadUtility=te,r.schemaUtil=f,r.utility=w,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("o11y/shared",["exports","o11y/shared/v/254_7_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("o11y_schema/sf_instrumentation/v/258_59_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"}}}}}}}}}},w={namespace:"sf.instrumentation",name:"Error",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Error:{reserved:[[5,5],[7,7]],fields:{activityId:{id:6,type:"string"},stack:{id:3,type:"string"},name:{id:1,type:"string"},message:{options:{"(meta.max_length)":200},id:2,type:"string"},userPayload:{id:4,type:"Payload"}}},Payload:{fields:{payload:{id:2,type:"bytes"},schemaName:{id:1,type:"string"}}}}}}}}}},F={namespace:"sf.instrumentation",name:"Event",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Event:{fields:{type:{id:1,type:"string"}}}}}}}}}},O={namespace:"sf.instrumentation",name:"IdleDetectorReport",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{IdleDetectorReport:{fields:{listenerCount:{id:3,type:"uint32"},busyTasks:{rule:"repeated",id:5,type:"string"},busyDurations:{rule:"repeated",id:6,type:"double"},pollableCount:{id:4,type:"uint32"},pollCounts:{rule:"repeated",id:8,type:"double"},logThreshold:{id:2,type:"double"},maxDuration:{id:1,type:"double"},pollables:{rule:"repeated",id:7,type:"string"}}}}}}}}}},v={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"}}}}}}}}}},l={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"}}}}}}}}}},d={namespace:"sf.instrumentation",name:"Network",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Network:{fields:{mtd:{id:1,type:"string"},url:{id:2,type:"string"}}}}}}}}}},u={namespace:"sf.instrumentation",name:"Payload",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Payload:{fields:{payload:{id:2,type:"bytes"},schemaName:{id:1,type:"string"}}}}}}}}}},f={namespace:"sf.instrumentation",name:"PayloadDiags",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{PayloadDiags:{fields:{extras:{rule:"repeated",id:1,type:"string"}}}}}}}}}},m={namespace:"sf.instrumentation",name:"Simple",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Simple:{fields:{text:{options:{"(meta.max_length)":25},id:1,type:"string"}}}}}}}}}},T={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=w,r.eventSchema=F,r.idleDetectorReportSchema=O,r.instrumentedEventSchema=v,r.mouseEventSchema=l,r.networkSchema=d,r.payloadDiagsSchema=f,r.payloadSchema=u,r.simpleSchema=m,r.webVitalsSchema=T,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("o11y_schema/sf_instrumentation",["exports","o11y_schema/sf_instrumentation/v/258_59_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/254_7_0",["exports","o11y_schema/sf_instrumentation/v/258_59_0","o11y/shared/v/254_7_0"],function(r,e,t){"use strict";class E{get isBusy(){return this._isOk?this._busyCount>0:void 0}constructor(n,i,o,s){this.name=n,this._doneCallback=o,this._overDoneCallback=s,this._busyCount=0,this._isOk=!0,this._busyCount=i}add(){this._isOk&&(this._busyCount+=1)}done(){this._isOk&&(this._busyCount>0?(this._busyCount-=1,this._busyCount||this._doneCallback()):(this._isOk=!1,this._overDoneCallback()))}}const w=300;class F{constructor(n){this._taskers=new Map,this._listeners=new Set,this._busyCheckers=new Map,this._logThreshold=w,this._endedTasks=new Array,this._pollableReport=new Array,t.utility.requireArgumentIfDefined(n==null?void 0:n.logThreshold,"options.logThreshold","number")&&(this._logThreshold=n.logThreshold),t.utility.requireArgumentIfDefined(n==null?void 0:n.reportListener,"options.reportListener","function")&&(this._reportListener=n.reportListener),t.utility.requireArgumentIfDefined(n==null?void 0:n.errorListener,"options.errorListener","function")&&(this._errorListener=n.errorListener)}requestIdleDetectedCallback(n){t.utility.requireArgument(n,"callback","function"),this._listeners.size===0&&(this._firstCallbackTime=t.utility.time().perfNow),this._listeners.add(n),this._checkIfLoaded()}_reportTaskEnded(n){if(this._listeners.size){const i=Object.assign({},this._taskers.get(n));this._endedTasks.push(i)}}declareNotifierTaskSingle(n){t.utility.requireArgument(n,"name","string");const i=this._addTasker(n,1);return{get isBusy(){return i.isBusy},done:()=>{i.done(),this._taskers.delete(i)}}}declareNotifierTaskMulti(n,i=0){if(t.utility.requireArgument(n,"name","string"),i!==void 0&&(t.utility.requireArgument(i,"existingBusyCount","number"),!Number.isInteger(i)||i<0))throw new Error("existingBusyCount accepts only non-negative integers");const o=this._addTasker(n,i);return{get isBusy(){return o.isBusy},add:()=>{if(!o.isBusy){const g=this._taskers.get(o);g.start=t.utility.time().perfNow,g.end=void 0}o.add()},done:o.done.bind(o)}}declarePollableTaskMulti(n,i){t.utility.requireArgument(n,"name","string"),t.utility.requireArgument(i,"isBusyChecker","function"),this._busyCheckers.set(i,n)}_addTasker(n,i){const o=new E(n,i,()=>{this._taskers.get(o).end=t.utility.time().perfNow,this._reportTaskEnded(o),this._checkIfLoaded()},()=>{var s;(s=this._errorListener)===null||s===void 0||s.call(this,`Overdone: ${o.name}`),t.utility.noProdThrow(`Tasker '${o.name}' is done too many times.`)});return this._taskers.set(o,{name:n,start:i>0?t.utility.time().perfNow:void 0,end:void 0}),o}_areAllNotifiersIdle(){return!Array.from(this._taskers.keys()).some(n=>n.isBusy)}_getFirstBusyPollable(){const n=Array.from(this._busyCheckers).find(i=>{var o;const s=i[0],g=i[1];try{return s()}catch(_){return(o=this._errorListener)===null||o===void 0||o.call(this,_,`BusyChecker ${g}`),t.utility.noProdThrow(_),!1}});return n?n[1]:void 0}_checkIfLoaded(){!this._listeners.size||(this._timerCheckQueued&&clearTimeout(this._timerCheckQueued),this._areAllNotifiersIdle()&&(this._timerCheckQueued=setTimeout(()=>{this._timerCheckQueued=setTimeout(()=>{this._doubleCheck()},40)},0)))}_doubleCheck(){if(this._timerCheckQueued=void 0,this._areAllNotifiersIdle()){const n=this._getFirstBusyPollable();if(n!==void 0)this._addToPollableReport(n),this._timerCheckQueued=setTimeout(()=>{this._doubleCheck()},15);else{const i=t.utility.time().perfNow-this._firstCallbackTime,o=Array.from(this._listeners.values());this._listeners.clear(),this._firstCallbackTime=void 0;const s=this._endedTasks.splice(0),g=this._pollableReport.splice(0);this._notify(o,i,s,g)}}}_addToPollableReport(n){const i=this._pollableReport.length?this._pollableReport[this._pollableReport.length-1]:void 0;(i==null?void 0:i.name)===n?i.count+=1:this._pollableReport.push({name:n,count:1})}_notify(n,i,o,s){var g;if(i>=this._logThreshold&&this._reportListener){const Q=this._getReport(i,n.length,o,s);this._reportListener(Q)}n.reverse();const _=t.utility.time().tsNow;for(const[Q,he]of n.entries())try{he(_)}catch(Ee){(g=this._errorListener)===null||g===void 0||g.call(this,Ee,`Listener #${n.length-1-Q}`),t.utility.noProdThrow(Ee)}}getReport(){const n=t.utility.time().perfNow,i=this._firstCallbackTime>0?n-this._firstCallbackTime:void 0,o=Array.from(this._taskers.entries()).filter(s=>s[0].isBusy).map(s=>({name:s[1].name,start:s[1].start,end:n}));return this._getReport(i,this._listeners.size,this._endedTasks.concat(o),this._pollableReport)}_getReport(n,i,o,s){const g=o.map(_=>({name:_.name,duration:_.end-_.start})).sort((_,Q)=>Q.duration-_.duration);return{logThreshold:this._logThreshold,maxDuration:n,listenerCount:i,pollableCount:this._busyCheckers.size,busyTasks:g.map(_=>_.name),busyDurations:g.map(_=>_.duration),pollables:s.map(_=>_.name),pollCounts:s.map(_=>_.count)}}}const O={namespace:"sfcore.performance",name:"NavigationTiming",pbjsSchema:{nested:{sfcore:{nested:{performance:{nested:{NavigationTiming:{oneofs:{_xhrDelay:{oneof:["xhrDelay"]},_renderBlockingStatus:{oneof:["renderBlockingStatus"]},_firstInterimResponseStart:{oneof:["firstInterimResponseStart"]},_srvDuration:{oneof:["srvDuration"]},_isCdnCached:{oneof:["isCdnCached"]},_responseStatus:{oneof:["responseStatus"]},_dbDuration:{oneof:["dbDuration"]},_reqBatchCount:{oneof:["reqBatchCount"]}},fields:{redirectCount:{id:37,type:"uint32"},encodedBodySize:{id:21,type:"uint32"},reqActionNames:{rule:"repeated",id:28,type:"string"},unloadEventEnd:{id:40,type:"double"},responseEnd:{id:19,type:"double"},domainLookupEnd:{id:12,type:"double"},unloadEventStart:{id:39,type:"double"},domContentLoadedEventStart:{id:32,type:"double"},type:{id:38,type:"string"},firstInterimResponseStart:{options:{proto3_optional:!0},id:18,type:"double"},duration:{id:3,type:"double"},decodedBodySize:{id:22,type:"uint32"},redirectStart:{id:8,type:"double"},connectEnd:{id:15,type:"double"},isCdnCached:{options:{proto3_optional:!0},id:24,type:"bool"},requestStart:{id:16,type:"double"},startTime:{id:2,type:"double"},fetchStart:{id:10,type:"double"},domContentLoadedEventEnd:{id:33,type:"double"},srvReqId:{id:29,type:"string"},reqBatchCount:{options:{proto3_optional:!0},id:27,type:"uint32"},renderBlockingStatus:{options:{proto3_optional:!0},id:6,type:"string"},workerStart:{id:7,type:"double"},responseStart:{id:17,type:"double"},xhrDelay:{options:{proto3_optional:!0},id:30,type:"double"},domInteractive:{id:34,type:"double"},domComplete:{id:31,type:"double"},domainLookupStart:{id:11,type:"double"},responseStatus:{options:{proto3_optional:!0},id:23,type:"uint32"},redirectEnd:{id:9,type:"double"},logEvent:{id:41,type:"string"},transferSize:{id:20,type:"uint32"},srvDuration:{options:{proto3_optional:!0},id:26,type:"double"},dbDuration:{options:{proto3_optional:!0},id:25,type:"double"},connectStart:{id:13,type:"double"},loadEventStart:{id:35,type:"double"},secureConnectionStart:{id:14,type:"double"},name:{id:1,type:"string"},nextHopProtocol:{id:5,type:"string"},initiatorType:{id:4,type:"string"},loadEventEnd:{id:36,type:"double"}}}}}}}}}},v={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 l{constructor(n){this._fuzzyKeyRange=n,this._map=new Map,t.utility.requireArgument(n,"_fuzzyKeyRange","number")}add(n,i,o){const s=this._map.get(n);s?s.push({fuzzyKey:i,value:o}):this._map.set(n,[{fuzzyKey:i,value:o}])}pop(n,i){const o=this._map.get(n);if((o==null?void 0:o.length)>=1){let s=Number.POSITIVE_INFINITY,g=-1;for(let _=0;_<o.length;_++){const{fuzzyKey:Q}=o[_],he=Math.abs(Q-i);he<=this._fuzzyKeyRange&&he<s&&(s=he,g=_)}if(g>=0){const{value:_}=o.splice(g,1)[0];return o.length===0&&this._map.delete(n),_}}}clear(){this._map.clear()}}const d=["fetch","xmlhttprequest"];class u{constructor(n,i,o,s,g){if(this._instr=n,this._skipUrls=o,this._logPerformanceActivityName=s,this._boundObserverCallback=this._logPerformanceEntries.bind(this),this._boundNavigationTimingEventCallback=_=>{this._logNavigationEntries(_)},this._setTimeoutNavigationCallback=_=>{setTimeout(()=>{this._boundNavigationTimingEventCallback(_)},0)},this._visibilityChangeNavigationCallback=_=>{document.visibilityState==="hidden"&&this._boundNavigationTimingEventCallback(_)},this._isStarted=!1,this._processedNavigationTiming=!1,t.utility.requireArgument(n,"_instr","object"),t.utility.requireArgument(i,"fuzzyMapRange","number"),t.utility.requireArgumentIfDefined(o,"_skipUrls",Array),t.utility.requireArgumentIfDefined(s,"_logPerformanceActivityName","string"),t.utility.requireArgumentIfDefined(g,"logLevel","string"),this._hasPerf=typeof performance!="undefined"&&typeof PerformanceObserver=="function",this._hasWindow=typeof window!="undefined",!g||g.toLowerCase()==="full")this._logLevel=1;else if((g==null?void 0:g.toLowerCase())==="basic")this._logLevel=0;else throw new Error(`Invalid log level: ${g}`);this._fuzzyMapper=new l(i)}get isStarted(){return this._isStarted}get logLevel(){return this._logLevel}start(){!this._hasPerf||this._isStarted||(this._isStarted=!0,this._resourceObserver=new PerformanceObserver(this._boundObserverCallback),this._resourceObserver.observe({type:"resource",buffered:!0}),this._addNavigationListeners())}stop(){this._resourceObserver&&(this._resourceObserver.disconnect(),this._resourceObserver=void 0),this._removeNavigationListeners(),this._fuzzyMapper.clear(),this._isStarted=!1}_addNavigationListeners(){!this._hasWindow||(window.addEventListener("load",this._setTimeoutNavigationCallback),window.addEventListener("pagehide",this._boundNavigationTimingEventCallback),document.addEventListener("visibilitychange",this._visibilityChangeNavigationCallback))}_removeNavigationListeners(){!this._hasWindow||(window.removeEventListener("load",this._setTimeoutNavigationCallback),window.removeEventListener("pagehide",this._boundNavigationTimingEventCallback),document.removeEventListener("visibilitychange",this._visibilityChangeNavigationCallback))}addEntry(n,i,o){this._fuzzyMapper.add(n,i,o)}_resourceEntryToResourceTiming(n){var i,o;const s={name:n.name,startTime:n.startTime,duration:n.duration,initiatorType:n.initiatorType,nextHopProtocol:n.nextHopProtocol,renderBlockingStatus:n.renderBlockingStatus,workerStart:n.workerStart,redirectStart:n.redirectStart,redirectEnd:n.redirectEnd,fetchStart:n.fetchStart,domainLookupStart:n.domainLookupStart,domainLookupEnd:n.domainLookupEnd,connectStart:n.connectStart,secureConnectionStart:n.secureConnectionStart,connectEnd:n.connectEnd,requestStart:n.requestStart,responseStart:n.responseStart,firstInterimResponseStart:n.firstInterimResponseStart,responseEnd:n.responseEnd,transferSize:n.transferSize,encodedBodySize:n.encodedBodySize,decodedBodySize:n.decodedBodySize,responseStatus:n.responseStatus},g=n.serverTiming;return Array.isArray(g)&&(s.dbDuration=(i=g.find(_=>_.name==="db"))===null||i===void 0?void 0:i.duration,s.srvDuration=(o=g.find(_=>_.name==="Total"))===null||o===void 0?void 0:o.duration),s}_shouldInclude(n){var i;return((i=this._skipUrls)===null||i===void 0?void 0:i.some(s=>s instanceof RegExp?s.test(n.name):n.name===s))?!1:this._logLevel===1?!0:d.indexOf(n.initiatorType)>=0||n.entryType==="navigation"}_logActivity(n,i,o,s){const g={id:o},_={perfStartOverride:i.startTime,perfStopOverride:i.startTime+i.duration,errorCount:s};this._instr.startActivity(this._logPerformanceActivityName,g).stop(n,i,_)}_logNavigationEntries(n){if(!this._processedNavigationTiming)for(const i of performance.getEntriesByType("navigation")){const o=i;if(this._shouldInclude(o)){this._processedNavigationTiming=!0;const s=this._resourceEntryToResourceTiming(o),g={domComplete:o.domComplete,domContentLoadedEventStart:o.domContentLoadedEventStart,domContentLoadedEventEnd:o.domContentLoadedEventEnd,domInteractive:o.domInteractive,loadEventStart:o.loadEventStart,loadEventEnd:o.loadEventEnd,redirectCount:o.redirectCount,type:o.type,unloadEventStart:o.unloadEventStart,unloadEventEnd:o.unloadEventEnd,logEvent:n.type};this._logActivity(O,Object.assign(s,g))}break}}_logPerformanceEntries(n){for(const i of n.getEntriesByType("resource")){const o=i,s=this._fuzzyMapper.pop(o.name,o.startTime);if(this._shouldInclude(o)){const g=this._resourceEntryToResourceTiming(o);Object.assign(g,{srvReqId:s==null?void 0:s.requestId,xhrDelay:s?s.activityDuration-o.duration:void 0}),g.responseStatus===void 0&&(g.responseStatus=s==null?void 0:s.responseStatus),this._logActivity(v,g,s==null?void 0:s.activityId,s==null?void 0:s.errorCount)}}}}const f=32,m=16,T=16,P="traceparent",N="b3",A="X-B3-TraceId",M="X-B3-SpanId",L="X-B3-Sampled",S="X-B3-ParentSpanId",J="X-SFDC-Request-Id",Z="fetch",q="xhr_send",z="perf-timing",k=50,K=new WeakMap;class D{constructor(n,i){this._instr=n,this._idleDetector=i,t.utility.requireArgument(n,"_instr","object"),t.utility.requireArgument(i,"_idleDetector","object")}static _getB3CompactFormat(n,i,o,s){let g=`${n}-${i}`;return(o!==void 0||s!==void 0)&&(g+=o?"-1":"-0",s!==void 0&&(g+=`-${s}`)),g}static _getW3CompactFormat(n,i,o){return`00-${n}-${i}-${o?"01":"00"}`}static _conformTextAsId(n,i){n=n.toLowerCase();const o=n.length;for(let s=0;s<o;s+=1){const g=n[s];if(!(g>="a"&&g<="f")&&!(g>="0"&&g<="9"))throw new Error(`The text '${n}' has an invalid character at index #${s}`)}return o>i?n.substr(o-i):o<i?n.padStart(i,"0"):n}static getHeaders(n,i,o,s){t.utility.requireArgument(i,"spanId","string");const g=s==null?void 0:s.useB3Headers,_={};if(n===void 0)return _;n=this._conformTextAsId(n,(s==null?void 0:s.traceIdEffectiveLength)!==void 0?s.traceIdEffectiveLength:g?m:f),i=this._conformTextAsId(i,T);const Q=s&&s.parentSpanId!==void 0&&this._conformTextAsId(s.parentSpanId,T)||void 0;return g?(s==null?void 0:s.useCompactHeader)?_[N]=this._getB3CompactFormat(n,i,o,Q):(_[A]=n,_[M]=i,Q!==void 0&&(_[S]=Q),o!==void 0&&(_[L]=o?"1":"0")):_[P]=this._getW3CompactFormat(n,i,o),_}_disableNetworkInstrumentation(){D._isNetworkInstrumentationEnabled&&(D._originalFetch&&(D._global.fetch=D._originalFetch,D._originalFetch=void 0),D._originalXhr&&(D._global.XMLHttpRequest=D._originalXhr,D._originalXhr=void 0),D._originalXhrOpen&&(D._global.XMLHttpRequest.prototype.open=D._originalXhrOpen,D._originalXhrOpen=void 0),D._originalXhrSetRequestHeader&&(D._global.XMLHttpRequest.prototype.setRequestHeader=D._originalXhrSetRequestHeader,D._originalXhrSetRequestHeader=void 0),D._originalXhrSend&&(D._global.XMLHttpRequest.prototype.send=D._originalXhrSend,D._originalXhrSend=void 0),D._performanceObservability&&(D._performanceObservability.stop(),D._performanceObservability=void 0),D._isNetworkInstrumentationEnabled=!1)}_enableNetworkInstrumentation(n,i,o,s,g,_,Q,he,Ee,be){typeof D._global.fetch=="function"&&(this._overrideFetch(n,i,o,s,g,_,Ee),D._isNetworkInstrumentationEnabled=!0),typeof D._global.XMLHttpRequest=="function"&&(this._overrideXhr(n,i,o,s,g,_,Ee),D._isNetworkInstrumentationEnabled=!0),Q&&(D._performanceObservability=new u(n,be,Ee,he,Q===!0?"full":Q),D._performanceObservability.start(),D._isNetworkInstrumentationEnabled=!0)}static _getTraceHeaders(n,i,o,s,g){let _;if(n)_=n.getTraceHeaders(o)||{};else{const Q=i.internalInstrumentationContext;(Q==null?void 0:Q.rootId)?_=D.getHeaders(Q.rootId,t.utility.generateUniqueId(),Q.isRootActivitySampled,o):_={}}if(typeof(o==null?void 0:o.headerProcessor)=="function")_=o.headerProcessor({method:s,url:g,defaultHeaders:_});else if(typeof window=="object"){let Q;try{Q=new URL(g)}catch(he){}Q&&Q.host!==window.location.host&&(_=void 0)}return _||{}}static _extractHeader(n,i,o){if((o==null?void 0:o.headers)instanceof Headers)return o.headers.get(n);if(Array.isArray(o==null?void 0:o.headers)){const s=o.headers.find(g=>g[0]===n);return s==null?void 0:s[1]}if(typeof(o==null?void 0:o.headers)=="object")return o.headers[n];if(i instanceof Request)return i.headers.get(n)}_overrideFetch(n,i,o,s,g,_,Q){D._originalFetch=D._global.fetch;const he=async(Ee,be,...je)=>{var ke;let de,Ue,Be,vt,ht,Et=!1,Ct;try{_==null||_.add(),vt=be==null?void 0:be.method;const tt=be==null?void 0:be.o11y,Rt=tt==null?void 0:tt.skipInstr;if(Et=Rt||D._shouldSkipUrl(Q,Ee),!Et)de=n.startActivity(o||Z);else if(Rt){D._reqIndex+=1;try{if(Ee instanceof URL)Ee.searchParams.append("o11y",D._reqIndex.toString());else if(typeof Ee=="string"){const mt=new URL(Ee),At=`o11y=${D._reqIndex}`;mt.search+=mt.search.startsWith("?")?`&${At}`:At,Ee=mt.toString()}}catch(mt){}}if(be==null||delete be.o11y,Ue=Ee==null?void 0:Ee.toString(),Be=t.utility.tryGetAbsoluteUrl(Ue),s){Ee instanceof Request&&(vt||(vt=Ee.method),Ue=Ee.url,Be=t.utility.tryGetAbsoluteUrl(Ue));const mt=D._getTraceHeaders(de,n,g,vt,Be);!this._applyTraceHeaders(Ee,be,mt)&&be===void 0&&(be={headers:mt})}return ht=t.utility.perfNow(),Ct=await D._originalFetch.call(D._global,Ee,be,...je),Ct}catch(tt){throw i&&!Et&&(de?de.error(tt):n.error(tt)),tt}finally{try{const tt=D._endActivity(de,Ue,vt);if((ke=D._performanceObservability)===null||ke===void 0?void 0:ke.isStarted){const Rt=D._extractHeader(J,Ee,be);D._performanceObservability.addEntry(Be,ht,{requestId:Rt,activityDuration:tt,activityId:de==null?void 0:de.getId(),errorCount:de==null?void 0:de.getErrorCount(),responseStatus:Ct==null?void 0:Ct.status})}}finally{_==null||_.done()}}};D._global.fetch=he}static _endActivity(n,i,o){var s;if(n)return((s=D._performanceObservability)===null||s===void 0?void 0:s.isStarted)?n.discard():n.stop(e.networkSchema,{mtd:o,url:i}),n.getStopPerfTime()-n.getStartPerfTime()}_overrideXhr(n,i,o,s,g,_,Q){D._originalXhr=D._global.XMLHttpRequest,D._originalXhrOpen=D._originalXhr.prototype.open,D._originalXhrSetRequestHeader=D._originalXhr.prototype.setRequestHeader,D._originalXhrSend=D._originalXhr.prototype.send;function he(be,je){var ke;const de=K.get(be);if(de){const Ue=de.activity,Be=D._endActivity(Ue,de.url,de.method);!je&&((ke=D._performanceObservability)===null||ke===void 0?void 0:ke.isStarted)&&D._performanceObservability.addEntry(de.absoluteUrl,de.sendTime,{requestId:de.requestId,activityDuration:Be,activityId:Ue==null?void 0:Ue.getId(),errorCount:Ue==null?void 0:Ue.getErrorCount(),responseStatus:be.status})}}D._originalXhr.prototype.open=function(be,je,ke,de,Ue){const Be={method:be,url:je==null?void 0:je.toString()};K.set(this,Be),Be.absoluteUrl=t.utility.tryGetAbsoluteUrl(Be.url),Be.suspendInstrumentation=D._shouldSkipUrl(Q,Be.absoluteUrl),D._originalXhrOpen.apply(this,arguments)},D._originalXhr.prototype.setRequestHeader=function(be,je){var ke;if(((ke=be==null?void 0:be.toLowerCase)===null||ke===void 0?void 0:ke.call(be))===J.toLowerCase()){const de=K.get(this);de&&(de.requestId=je)}D._originalXhrSetRequestHeader.apply(this,arguments)},D._originalXhr.prototype.send=function(...be){let je;const ke=this;let de=K.get(ke);de||(de={},K.set(ke,de));try{if(_==null||_.add(),de.suspendInstrumentation||(de.activity=je=n.startActivity(o||q)),s){const Ue=D._getTraceHeaders(je,n,g,de.method,de.absoluteUrl);Object.entries(Ue).forEach(Be=>{ke.setRequestHeader(Be[0],Be[1])})}de.sendTime=t.utility.perfNow(),D._originalXhrSend.call(this,...be)}catch(Ue){throw i&&!(de==null?void 0:de.suspendInstrumentation)&&(je?je.error(Ue):n.error(Ue)),he(ke,!0),_==null||_.done(),Ue}};const Ee=new Proxy(D._originalXhr,{construct(be){const je=new be;return je.addEventListener("load",()=>{he(je),_==null||_.done()}),je.addEventListener("error",ke=>{const de=K.get(je)||{};try{if(i&&!(de==null?void 0:de.suspendInstrumentation)){const Ue=new Error("XHR Network-Level Error"),Be=de==null?void 0:de.activity;Be?Be.error(Ue):n.error(Ue)}he(je)}finally{_==null||_.done()}}),je.addEventListener("abort",()=>{var ke;const de=K.get(je)||{};(ke=de==null?void 0:de.activity)===null||ke===void 0||ke.discard(),_==null||_.done()}),je}});D._global.XMLHttpRequest=Ee}networkInstrumentation(n){var i;if(t.utility.requireArgument(n,"options",["boolean","object"]),this._disableNetworkInstrumentation(),n){const o=typeof n=="object"?n:{};let s;t.utility.definedValueOrDefault(o.useTasker,!0)&&(s=(i=this._idleDetector)===null||i===void 0?void 0:i.declareNotifierTaskMulti("o11y network")),this._enableNetworkInstrumentation(t.utility.definedValueOrDefault(o.instrumentation,this._instr),t.utility.definedValueOrDefault(o.logErrors,!0),o.activityName,t.utility.definedValueOrDefault(o.useTracing,!0),o.tracingHeadersOptions,s,t.utility.definedValueOrDefault(o.logPerformance,!0),t.utility.definedValueOrDefault(o.logPerformanceActivityName,z),t.utility.definedValueOrDefault(o.skipUrls,[]),t.utility.definedValueOrDefault(o.fuzzyMapRange,k))}}resetRequestCounter(){D._reqIndex=0}_applyTraceHeaders(n,i,o){if((i==null?void 0:i.headers)!==void 0){if(i.headers instanceof Headers&&typeof i.headers.set=="function")return Object.entries(o).forEach(([s,g])=>{i.headers.set(s,g)}),!0;if(Array.isArray(i.headers))return Object.entries(o).forEach(s=>{i.headers.push(s)}),!0;if(typeof i.headers=="object")return i.headers=Object.assign(i.headers,o),!0}else{if(n instanceof Request&&n.headers instanceof Headers)return Object.entries(o).forEach(([s,g])=>{n.headers.set(s,g)}),!0;if(i)return i.headers=Object.assign({},o),!0}return!1}static _shouldSkipUrl(n,i){var o;let s=i;return i instanceof URL?s=(o=i.toString)===null||o===void 0?void 0:o.call(i):i instanceof Request&&(s=i.url),n==null?void 0:n.some(g=>g instanceof RegExp?g.test(s):s===g)}}D._global=t.utility.getGlobal(),D._isNetworkInstrumentationEnabled=!1,D._reqIndex=0;var te;(function(_e){_e[_e.none=0]="none",_e[_e.start=1]="start",_e[_e.stop=2]="stop",_e[_e.both=3]="both"})(te||(te={}));const oe="timedout",X="terminated",me="discarded",a={timedout:oe,terminated:X,discarded:me};class c{constructor(n,i,o,s,g,_,Q,he,Ee){this._name=n,this._rootId=i,this._onStopped=o,this._onError=s,this._isSampled=Q,this._noRerooting=Ee,this._isRoot=!1,this._errorCount=0,this._timerOverridden=te.none;const{tsNow:be,perfNow:je}=t.utility.time();if(c._count+=1,this._id=_||t.utility.generateUniqueId(),this._usePerf=typeof performance!="undefined"&&typeof performance.mark=="function"&&typeof performance.measure=="function",this._usePerf){this._perfName=`${this._name}__${c._count}`,this._perfId=`${this._name}__${this.id}`;try{performance.mark(this._perfId)}catch(ke){this._usePerf=!1}}this._startTimestamp=be,this._startPerfTime=je,this._overrideTimer(he),g>0&&(this._timer=setTimeout(()=>{this._stopReason=this._stopReason||a.timedout,this.stop()},g)),this._safety=new t.PublicSafety}get id(){return this._id}getId(){return this.id}getRootId(){return this._rootId}get stopReason(){return this._stopReason}error(n,i,o){this._safety.tryCatch(()=>{this._errorCount+=1,typeof n=="string"&&(n=new Error(n)),this._onError(n,this._getDetail(i,o))},{op:"activity.error"})}stop(n,i,o){this._safety.tryCatch(()=>{if(t.utility.requireArgumentIfDefined(n,"userSchemaOrText",["object","string"]),t.utility.requireArgumentIfDefined(i,"userData","object"),o){const s=o.perfStartOverride,g=t.utility.requireArgumentIfDefined(s,"options.perfStartOverride","number"),_=o.perfStopOverride,Q=t.utility.requireArgumentIfDefined(_,"options.perfStopOverride","number"),he=o.errorCount;if(t.utility.requireArgumentIfDefined(he,"options.errorCount","number")&&(this._errorCount=he),g&&s<0)throw new Error("perfStartOverride, if defined, must be >= 0");if(Q&&(_<0||_<(g?s:this._startPerfTime)||_>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(te.start)),i!==void 0&&(this._stopPerfTime=i,this._setTimerOverride(te.stop))}_setTimerOverride(n){this._timerOverridden===te.both||this._timerOverridden===n||n===te.none||(this._timerOverridden=this._timerOverridden===te.none?n:te.both)}_stopInternal(n,i,o){const s=t.utility.perfNow();if(this._usePerf)try{this._stopReason!==a.discarded&&performance.measure(this._perfName,this._perfId),performance.clearMarks(this._perfId),performance.clearMeasures(this._perfName)}catch(_){}if(this._timer&&(clearTimeout(this._timer),this._timer=void 0),this.isStopped)return;o&&this._overrideTimer(o.perfStartOverride,o.perfStopOverride),this._stopPerfTime=this._timerOverridden===te.none||this._timerOverridden===te.start?s:this._stopPerfTime;const g=this._getDetail(n,i);this._onStopped(g)}get isStopped(){return this._stopPerfTime!==void 0}discard(){this._safety.tryCatch(()=>{this._stopReason=this._stopReason||a.discarded,this.stop()},{op:"activity.discard"})}terminate(n,i,o){this._safety.tryCatch(()=>{this._stopReason=this._stopReason||a.terminated,this.stop(n,i,o)},{op:"activity.terminate"})}getIsSampled(){return this._isSampled||!1}_getDetail(n,i){return{id:this._id,rootId:this._rootId,name:this._name,userSchemaOrText:n,userData:i,stopReason:this._stopReason,startTimestamp:this._startTimestamp,startPerfTime:this._startPerfTime,stopPerfTime:this._stopPerfTime,errorCount:this._errorCount,isSampled:this.getIsSampled(),timerOverridden:this._timerOverridden,noRerooting:this._noRerooting}}getTraceHeaders(n){const i=this.id,o=this._isRoot?this.id:this._rootId;return D.getHeaders(o,i,this.getIsSampled(),n)}getStartTimestamp(){return this._startTimestamp}getStartPerfTime(){return this._startPerfTime}getStopPerfTime(){return this._stopPerfTime}getErrorCount(){return this._errorCount}}c._count=0;const p=new Array(16).fill(0).join("");class x{getId(){return p}getRootId(){}error(){}stop(){}discard(){}terminate(){}getIsSampled(){return!1}getTraceHeaders(n){return{}}getStartTimestamp(){}getStartPerfTime(){}getStopPerfTime(){}getErrorCount(){return 0}}const B=Object.freeze(new x);class ce{getInstrumentedEventData(n,i,o,s){var g;const _={ownerComponent:o.tagName,parentComponent:((g=o.parentElement)===null||g===void 0?void 0:g.tagName)||void 0,simplePath:t.utility.getXpath(o)};switch(n){case 0:_.baseEvent=i;break;case 1:_.mouseEvent=i;break}return s&&(_.userPayload=t.schemaUtil.makePayload(s.schema,s.payload,!0)),_}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 Ge=new ce;class Me{constructor(n,i,o,s,g,_,Q,he){this._name=n,this._ownerName=i,this._ownerAppName=o,this._tags=s,this._buckets=g,this._values=new Array,this._createdOn=_===void 0?t.utility.time().tsNow:_,Q!==void 0&&(this._lastUpdatedOn=Q),he!==void 0&&(this._values=he)}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 He{constructor(n,i,o,s,g,_,Q){this._name=n,this._ownerName=i,this._ownerAppName=o,this._tags=s,this._values=new Array,this._createdOn=g===void 0?t.utility.time().tsNow:g,_!==void 0&&(this._lastUpdatedOn=_),Q!==void 0&&(this._values=Q)}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 De{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 qe=1e3,Qe=500,V=500;var le;(function(_e){_e[_e.Counter=0]="Counter",_e[_e.Percentile=1]="Percentile",_e[_e.BucketHistogram=2]="BucketHistogram"})(le||(le={}));class Y{constructor(n,i){this._ownerName=n,this._getOwnerAppName=i,this._upCounters=new De(qe),this._valueRecorders=new De(Qe),this._bucketHistograms=new De(V)}incrementCounter(n,i,o=!1,s={}){this._tagError(s,o),this._upCounter(n,s).increment(i)}trackValue(n,i,o=!1,s={}){this._tagError(s,o),this._valueRecorder(n,s).record(i)}bucketValue(n,i,o,s=!1,g={}){this._tagError(g,s),this._bucketHistogram(n,g,o).record(i)}_bucketHistogram(n,i,o){const{key:s,sortedTags:g}=this._getKeyAndSortedTags(n,i,le.BucketHistogram);let _=this._bucketHistograms.get(s);if(!_&&(_=new Me(n,this._ownerName,this._getOwnerAppName(),g,o),!this._bucketHistograms.set(s,_)))throw new Error(`Max size of ${V} exceeded for BucketHistograms`);return _}_upCounter(n,i){const{key:o,sortedTags:s}=this._getKeyAndSortedTags(n,i,le.Counter);let g=this._upCounters.get(o);if(!g&&(g=new t.UpCounterImpl(n,this._ownerName,this._getOwnerAppName(),s),!this._upCounters.set(o,g)))throw new Error(`Max size of ${qe} exceeded for UpCounters`);return g}_valueRecorder(n,i){const{key:o,sortedTags:s}=this._getKeyAndSortedTags(n,i,le.Percentile);let g=this._valueRecorders.get(o);if(!g&&(g=new He(n,this._ownerName,this._getOwnerAppName(),s),!this._valueRecorders.set(o,g)))throw new Error(`Max size of ${Qe} exceeded for ValueRecorders`);return g}getUpCounters(){return this._upCounters.getElements()}getValueRecorders(){return this._valueRecorders.getElements()}getBucketHistograms(){return this._bucketHistograms.getElements()}_tagError(n,i){n.status=i===!0?"error":"success"}_getKeyAndSortedTags(n,i,o){const s=Object.keys(i).sort().reduce((_,Q)=>(_[Q]=i[Q],_),{});return{key:`${le[o]}:${n}${JSON.stringify(s)}`,sortedTags:s}}}class ve{constructor(){this.isMock=!0}}const Te=void 0,We=["`"],Se={internalError:"o11y-error"},Re=Object.freeze(Array.from(Object.values(Se)));class ze{constructor(n,i){this._nextGen=n,this._name=i,this._onActivityStoppedCallback=this._handleActivityStop.bind(this),this._onActivityErrorCallback=this._handleActivityError.bind(this);for(const s of We)if(this._name.indexOf(s)>=0)throw new Error(`Name cannot include the reserved character "${s}"`);this._safety=new t.PublicSafety({increment:s=>this._incrementError(s)}),this._metrics=this._initMetrics();const o=t.schemaUtil.getOptions(e.simpleSchema,"Simple","text");this._simpleTextMaxLength=o?o["(meta.max_length)"]:t.maxStringLengthAppLimit}_initMetrics(){return new Y(this.name,()=>this._nextGen.appName||ze.defaultAppName)}_incrementError(n=1){this._metrics.incrementCounter(Se.internalError,n,!0)}get name(){return this._name}_wrapUserPayload(n,i,o=!1){let s;return typeof n=="string"?(s=e.simpleSchema,n?i={text:n.substring(0,this._simpleTextMaxLength)}:i=void 0):s=n,t.schemaUtil.makePayload(s,i,o)}_getEffectiveRootId(n){var i,o;return(o=(i=n==null?void 0:n.instrumentationContext)===null||i===void 0?void 0:i.rootId)!==null&&o!==void 0?o:this._nextGen.getDefaultInstrumentationContext().rootId}get internalInstrumentationContext(){return this._nextGen.getDefaultInstrumentationContext()}log(n,i,o){this._safety.tryCatch(()=>{const s=t.utility.time().tsNow;t.utility.requireArgument(n,"userSchemaOrText",["object","string"]),t.utility.requireArgumentIfDefined(i,"userData","object"),t.utility.requireArgumentIfDefined(o,"options","object");const g=this._wrapUserPayload(n,i);(g==null?void 0:g.payload)&&this._logInternal(this.name,g.schema,g.payload,s,this._getEffectiveRootId(o))},{op:"log"})}_logInternal(n,i,o,s,g){const _=this._nextGen.addLog(n,i,o,s,g);if(!t.utility.isProduction){const Q=t.payloadUtility.getExtraFields(i,o);!t.utility.isProduction&&Q.length>0&&this.error("Extra fields",e.payloadDiagsSchema,{extras:Q})}return _}error(n,i,o,s){return this._safety.tryCatch(()=>{t.utility.requireArgumentIfDefined(i,"userSchemaOrText",["object","string"]),t.utility.requireArgumentIfDefined(o,"userData","object"),t.utility.requireArgumentIfDefined(s,"options","object");const g=this._getEffectiveRootId(s);this._errorInternal(n,i,o,void 0,g)},{op:"error"})}_errorInternal(n,i,o,s,g){const _=t.utility.time().tsNow;let Q;if(n instanceof Error)Q=n;else{let be;n==null||typeof n.toString!="function"?be="UNKNOWN":be=n.toString(),Q=new Error(be)}const he=this._wrapUserPayload(i,o,!0),Ee={name:Q.name,message:Q.message,stack:Q.stack,userPayload:he,activityId:s};return this._logInternal(this.name,e.errorSchema,Ee,_,g)}startActivity(n,i){return this._safety.tryCatchReturn(()=>{var o;t.utility.requireArgument(n,"name"),t.utility.requireArgumentIfDefined(i,"options","object");let s,g=(i==null?void 0:i.perfStartOverride)!==void 0;const _=(o=i==null?void 0:i.instrumentationContext)===null||o===void 0?void 0:o.rootId;return _?(g=!0,s={rootId:_,isRootActivitySampled:i.instrumentationContext.isRootActivitySampled}):s=this._nextGen.getDefaultInstrumentationContext(),new c(n,s.rootId,this._onActivityStoppedCallback,this._onActivityErrorCallback,Te,i==null?void 0:i.id,s.isRootActivitySampled,i==null?void 0:i.perfStartOverride,g)},B,{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===me)return;if(!n.isRoot&&!n.noRerooting){const o=this._nextGen.getRootActivityHistoryEntryByTime(n.startPerfTime);(!o&&n.rootId!==void 0||o&&n.rootId!==o.id)&&(n.rootId=o==null?void 0:o.id,n.isSampled=(o==null?void 0:o.isSampled)||!1,n.isRerooted=!0)}const i=this._getActivityData(n);this._logActivity(i,n.startTimestamp,n.rootId)}_logActivity(n,i,o){this._logInternal(this.name,e.activitySchema,n,i,o)}_handleActivityError(n,i){this._errorInternal(n,i.userSchemaOrText,i.userData,i.id,i.rootId)}domEvent(n,i,o,s,g){this._safety.tryCatch(()=>{var _;const Q=t.utility.time().tsNow;t.utility.requireArgument(n,"event",[Event,ve]),t.utility.requireArgument(i,"handledBy",[HTMLElement,"object"]);let he;i instanceof HTMLElement?he=i:(i=i,((_=i.template)===null||_===void 0?void 0:_.host)instanceof HTMLElement?he=i.template.host:t.utility.requireArgument(void 0,"handledBy"));const Ee=this._wrapUserPayload(o,s,!0),be=this._getEffectiveRootId(g);switch(n.type){case"click":{const je=n,ke=this._nextGen.getClickTracker();ke&&ke.markEventHandled(je);const de=g==null?void 0:g.captureMouseData,Ue=Ge.getInstrumentedEventData(de?1:0,de?Ge.getMouseEventData(je):Ge.getEventData(je),he,Ee);Ue.auto=g==null?void 0:g._auto,this._logInternal(this.name,e.instrumentedEventSchema,Ue,Q,be);break}default:throw new Error(t.utility.notImplemented)}},{op:"domEvent"})}_siftTags(n){const i=Object.assign({},n);return Object.entries(i).forEach(([o,s])=>{if(s===null)i[o]="null";else if(s==="")i[o]="empty";else if(Number.isNaN(s))i[o]="NaN";else{const g=typeof s;["number","string","boolean"].indexOf(g)===-1&&(i[o]=g)}}),i}incrementCounter(n,i=1,o=!1,s={}){this._safety.tryCatch(()=>{t.utility.requireArgument(n,"operation","string"),t.utility.checkForDenyListedValues(n,"operation",Re),t.utility.checkForReservedCharacters(n,"operation",We),t.utility.requireArgument(i,"increment","number"),t.utility.requireArgument(o,"hasError","boolean"),t.utility.requireArgument(s,"tags","object"),this._metrics.incrementCounter(n,i,o,this._siftTags(s))},{op:"incrementCounter"})}trackValue(n,i,o=!1,s={}){this._safety.tryCatch(()=>{t.utility.requireArgument(n,"operation","string"),t.utility.checkForDenyListedValues(n,"operation",Re),t.utility.checkForReservedCharacters(n,"operation",We),t.utility.requireArgument(i,"value","number"),t.utility.requireArgument(o,"hasError","boolean"),t.utility.requireArgument(s,"tags","object"),this._metrics.trackValue(n,i,o,this._siftTags(s))},{op:"trackValue"})}bucketValue(n,i,o=[],s=!1,g={}){this._safety.tryCatch(()=>{t.utility.requireArgument(n,"operation","string"),t.utility.checkForDenyListedValues(n,"operation",Re),t.utility.checkForReservedCharacters(n,"operation",We),t.utility.requireArgument(i,"value","number"),t.utility.requireArgument(o,"buckets",Array),Object.entries(o).forEach(([_,Q])=>{t.utility.requireArgument(Q,`Bucket value for '${_}'`,"number")}),t.utility.requireArgument(s,"hasError","boolean"),t.utility.requireArgument(g,"tags","object"),this._metrics.bucketValue(n,i,o,s,this._siftTags(g))},{op:"bucketValue"})}getUpCounters(){return this._metrics.getUpCounters().filter(n=>n.getLastUpdatedOn())}getValueRecorders(){return this._metrics.getValueRecorders().filter(n=>n.getLastUpdatedOn())}getBucketHistograms(){return this._metrics.getBucketHistograms().filter(n=>n.getLastUpdatedOn())}registerForLogPrompt(n){t.utility.requireArgument(n,"listener","function"),this._nextGen.registerForLogPrompt(n)}_getAsaOptions(n){return n?Object.assign({instrumentationContext:n==null?void 0:n.instrumentationContext},n.startOptions):void 0}activity(n,i,o){var s,g,_,Q;const he=this._getAsaOptions(o),Ee=this.startActivity(n,he);try{return i(Ee)}catch(be){throw Ee.error(be,(s=o==null?void 0:o.errorPayload)===null||s===void 0?void 0:s.schema,(g=o==null?void 0:o.errorPayload)===null||g===void 0?void 0:g.payload),be}finally{Ee.stop((_=o==null?void 0:o.stopPayload)===null||_===void 0?void 0:_.schema,(Q=o==null?void 0:o.stopPayload)===null||Q===void 0?void 0:Q.payload,o==null?void 0:o.stopOptions)}}async activityAsync(n,i,o){var s,g,_,Q;const he=this._getAsaOptions(o),Ee=this.startActivity(n,he);try{return await i(Ee)}catch(be){throw Ee.error(be,(s=o==null?void 0:o.errorPayload)===null||s===void 0?void 0:s.schema,(g=o==null?void 0:o.errorPayload)===null||g===void 0?void 0:g.payload),be}finally{Ee.stop((_=o==null?void 0:o.stopPayload)===null||_===void 0?void 0:_.schema,(Q=o==null?void 0:o.stopPayload)===null||Q===void 0?void 0:Q.payload,o==null?void 0:o.stopOptions)}}}ze.defaultAppName="APP_NOT_REGISTERED";const Ze=.1,st=20;class lt{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=st;this._graceCount=Math.max(1,Math.floor(n*Ze)),this._realLimit=1+n+this._graceCount}add(n){if(this._historyMap.has(n.id))throw new Error(`RootActivityHistoryImpl.add: entry already exists for rootId: ${n.id}`);this._historyMap.set(n.id,n),this._historyList.push(n),this._historyList.length===this._realLimit&&this._historyList.splice(1,this._graceCount).forEach(o=>this._historyMap.delete(o.id))}get count(){return this._historyList.length}findById(n){return this._historyMap.get(n)}findByTime(n){let i,o=Number.MAX_VALUE;for(const s of this._historyList){const g=n-s.startPerfTime;g>=0&&(s.stopPerfTime===void 0||n<s.stopPerfTime)&&g<o&&(i=s,o=g)}return i}}class Le extends c{constructor(n,i,o,s,g,_,Q){super(n,void 0,i,o,void 0,s||t.utility.generateUniqueId(Q??32),g,_);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 yt=new Array(32).fill(0).join("");class b{getId(){return yt}getRootId(){}error(){}stop(){}discard(){}terminate(){}getIsSampled(){return!1}getTraceHeaders(n){return{}}getStartTimestamp(){}getStartPerfTime(){}getStopPerfTime(){}getErrorCount(){return 0}}const U=Object.freeze(new b);class C extends ze{constructor(n,i,o){super(n,i);this._allowMulti=o,this._rootActivityHistory=new lt,this._onRootActivityStoppedCallback=this._handleRootActivityStop.bind(this)}startRootActivity(n,i,o,s){return this._safety.tryCatchReturn(()=>{if(t.utility.requireArgument(n,"name"),(s==null?void 0:s.id)!==void 0)throw new Error("Cannot specify id for root activity, use rootId argument instead");const g=new Le(n,this._onRootActivityStoppedCallback,this._onActivityErrorCallback,i,o,s==null?void 0:s.perfStartOverride,this._nextGen.preferredRootIdLength);if(!this._allowMulti){const _={id:g.getId(),name:n,startPerfTime:g.getStartPerfTime(),isSampled:g.getIsSampled()};if(this._rootActivityHistory.add(_),this._singleRootActivity&&!this._singleRootActivity.isStopped){const Q=this._singleRootActivity.getId();this._singleRootActivity.terminate(),g.preRootId=Q}this._singleRootActivity=g}return g},U,{op:"startRootActivity"})}_handleRootActivityStop(n){const i=this._rootActivityHistory.findById(n.id);if(i&&(i.stopPerfTime=n.stopPerfTime,i.startPerfTime=n.startPerfTime),n.stopReason===me)return;const o=this._getActivityData(n);this._logActivity(o,n.startTimestamp),this._singleRootActivity=void 0}_getActivityData(n){const i=super._getActivityData(n);return i.isRoot=n.isRoot,i.preRootId=n.preRootId,i}getSingleRootActivityId(){var n;return(n=this._singleRootActivity)===null||n===void 0?void 0:n.getId()}isSingleRootActivitySampled(){var n;return(n=this._singleRootActivity)===null||n===void 0?void 0:n.getIsSampled()}_initMetrics(){return new Y(this.name,()=>this.name)}getRootActivityHistoryEntry(n){return this._rootActivityHistory.findByTime(n)}}const R=5;class G{constructor(n,i){this._instr=n,this._doc=i,this._isActive=!1,this._boundClickListener=this._clickListener.bind(this),t.utility.requireArgument(n,"_instr"),t.utility.requireArgument(i,"_doc")}activate(){this._isActive||(this._doc.addEventListener("click",this._boundClickListener,!0),this._isActive=!0)}deactivate(){this._isActive&&(this._doc.removeEventListener("click",this._boundClickListener,!0),this._isActive=!1)}markEventHandled(n){this._ignoredEvent=n}_clickListener(n){var i;let o=(i=n.composedPath)===null||i===void 0?void 0:i.call(n);(!o||!o.length)&&(o=n.path);const s=this._getClickableElement(o);s&&setTimeout(()=>{n!==this._ignoredEvent&&this._instr.domEvent(n,s,void 0,void 0,{_auto:!0})})}_getClickableElement(n){var i,o;const s=n?Math.min(n.length,R):0;for(let g=0;g<s;g+=1){const _=n[g],Q=(i=_.tagName)===null||i===void 0?void 0:i.toLowerCase();if(Q==="a"||Q==="button")return _;if(Q==="input"){const he=_;if(((o=he.type)===null||o===void 0?void 0:o.toLowerCase())==="button")return he}}}}const $="o11y:receiver";var W;(function(_e){_e[_e.Unknown=0]="Unknown",_e[_e.Opening=1]="Opening"})(W||(W={}));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:W.Opening,port:i.port1};this._senders.set(n,o),o.port.onmessage=this._messagePortEventHandler.bind(this),o.port.onmessageerror=this._messagePortErrorHandler.bind(this),n.postMessage({from:$,type: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===ee?this._logCallback(n.data.data):n.data.type===ue&&this._metricsCallback(n.data.data)}_messagePortErrorHandler(){this._commErrorCallback()}}const ie="handshake",ee="log",ue="metrics";class Pe{constructor(n,i){this._self=n,this._allowedOrigins=i,this._messageEventHandlerFunc=this._messageEventHandler.bind(this),this._handshakeComplete=!1,this._logBuffer=[],this._metricsBuffer=[],t.utility.requireArgument(this._self,"_self","object"),t.utility.requireArgumentIfDefined(i,"allowedOrigins",Array),this._self.addEventListener("message",this._messageEventHandlerFunc)}_messageEventHandler(n){n.data.from===$&&n.data.type===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:ee,data:n}):this._logBuffer.push(n)}sendMetrics(n){this._handshakeComplete?this._otherPort.postMessage({type:ue,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 Ce{constructor(){this._upCounters=[],this._valueRecorders=[],this._bucketHistograms=[]}add(n){var i,o,s;((i=n.upCounters)===null||i===void 0?void 0:i.length)&&this._upCounters.push(...n.upCounters.map(g=>new t.UpCounterImpl(g.name,g.ownerName,g.ownerAppName,t.metricsUtility.getMetricsTags(g.tags),g.createdTimestamp,g.lastUpdatedTimestamp,g.value))),((o=n.valueRecorders)===null||o===void 0?void 0:o.length)&&this._valueRecorders.push(...n.valueRecorders.map(g=>new He(g.name,g.ownerName,g.ownerAppName,t.metricsUtility.getMetricsTags(g.tags),g.createdTimestamp,g.lastUpdatedTimestamp,g.values))),((s=n.bucketHistograms)===null||s===void 0?void 0:s.length)&&this._bucketHistograms.push(...n.bucketHistograms.map(g=>new Me(g.name,g.ownerName,g.ownerAppName,t.metricsUtility.getMetricsTags(g.tags),g.buckets,g.createdTimestamp,g.lastUpdatedTimestamp,g.values)))}getUpCounters(){return this._upCounters=this._upCounters.filter(n=>n.getLastUpdatedOn()!==void 0),this._upCounters}getValueRecorders(){return this._valueRecorders=this._valueRecorders.filter(n=>n.getLastUpdatedOn()!==void 0),this._valueRecorders}getBucketHistograms(){return this._bucketHistograms=this._bucketHistograms.filter(n=>n.getLastUpdatedOn()!==void 0),this._bucketHistograms}}const $e=1e3;class Ne{constructor(n,i){this._connector=n,this._pollInterval=$e,t.utility.requireArgument(n,"_connector","object"),t.utility.requireArgumentIfDefined(i,"_pollInterval","number")&&i>0&&(this._pollInterval=i)}collect(n,i,o){const s={schema:n,data:i,logMeta:o};this._connector.sendLog(s)}receiveMetricsExtractors(n){this._metricsExtractors=n,this._collectAndSendMetrics(),setInterval(this._collectAndSendMetrics.bind(this),this._pollInterval)}_collectAndSendMetrics(){const n={upCounters:t.metricsUtility.getUpCounters(this._metricsExtractors.getAllUpCounters()),valueRecorders:t.metricsUtility.getValueRecorders(this._metricsExtractors.getAllValueRecorders()),bucketHistograms:t.metricsUtility.getBucketHistograms(this._metricsExtractors.getAllBucketHistograms())};(n.upCounters.length||n.valueRecorders.length||n.bucketHistograms.length)&&this._connector.sendMetrics(n)}}const Fe=80,Ve=32,I="_CUT",ae=Fe-I.length;function ge(){}class fe{get preferredRootIdLength(){return this._preferredRootIdLength}get pagePayloadProvider(){return this._pagePayloadProvider}set pagePayloadProvider(n){this._pagePayloadProvider=n}get appPayloadProvider(){return this._appPayloadProvider}set appPayloadProvider(n){this._appPayloadProvider=n}constructor(n){this._idleDetector=n,this._logCollectors=new Set,this._instruments=new Map,this._seqBySchema=new Map,this._sequence=0,this._forceDisabledLogCollectors=new Set,this._logCollectorFailures=new Map,this._isBufferingEnabled=!1,this._buffer=[],this._logCollectionListeners=new Set,this._opMode="default",this._isSender=!1,this._isReceiver=!1,this._decimalPoints=2}registerApp(n,i){var o,s;if(t.utility.requireArgument(n,"name","string"),this._appInstr)throw new Error("An app has already been registered with instrumentation.");if(this._instruments.get(n))throw new Error(`The instrumentation name ${n} is already taken`);if(t.co11y.setOwnerAppName(n),this._initOpMode(i==null?void 0:i.operationMode),this._isSender=this._opMode==="sender",this._isReceiver=this._opMode==="receiver",(i==null?void 0:i.decimalPoints)!==void 0&&(this._decimalPoints=i.decimalPoints),this._preferredRootIdLength=(o=i==null?void 0:i.preferredRootIdLength)!==null&&o!==void 0?o:Ve,this._clientSessionId=((s=i==null?void 0:i.clientSessionId)===null||s===void 0?void 0:s.toString())||t.utility.generateUniqueId(),this._appInstr=new C(this,n,i==null?void 0:i.allowMultipleRootActivities),this._instruments.set(n,this._appInstr),this._isSender){const Q=new Ne(new Pe(window,i==null?void 0:i.allowedReceiverOrigins),i==null?void 0:i.senderMetricsPollingInterval);this.registerLogCollector(Q),this.registerMetricsCollector(Q)}else this._isReceiver&&(this._metricsStore=new Ce,this._receiverConnector=new ne(Q=>{Q.logMeta.receiverClientSessionId=this._clientSessionId,Q.logMeta.receiverRootId=this._appInstr.getSingleRootActivityId(),this._multiplex(Q.schema,Q.data,Q.logMeta)},Q=>{this._metricsStore.add(Q)},()=>{this._appInstr.incrementCounter("o11y-error-receiver",1,!0)}));this._isBufferingEnabled=!this._isSender&&(i==null?void 0:i.enableBuffering);const _=new D(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:_.networkInstrumentation.bind(_),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?ge:this.registerLogCollector.bind(this),registerMetricsCollector:this._isSender?ge: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):ge,stopReceiving:this._isReceiver?this._receiverConnector.closeComms.bind(this._receiverConnector):ge}}getInstrumentation(n){t.utility.requireArgument(n,"name","string"),n.length>Fe&&(n=n.substring(0,ae)+I);let i=this._instruments.get(n);if(!i)i=new ze(this,n),this._instruments.set(n,i);else if(i===this._appInstr)throw new Error(`The instrumentation name ${n} is being used by the app.`);return i}get appName(){var n;return(n=this._appInstr)===null||n===void 0?void 0:n.name}getRootActivityHistoryEntryByTime(n){var i;return(i=this._appInstr)===null||i===void 0?void 0:i.getRootActivityHistoryEntry(n)}addLog(n,i,o,s,g){var _,Q,he;t.payloadUtility.checkInputs(i,o),this._sequence+=1;const Ee=t.schemaUtil.isInternal(i),be=Ee&&(o==null?void 0:o.userPayload)?o.userPayload.schema:i,je=t.schemaUtil.getSchemaId(be);let ke=this._seqBySchema.get(je)||0;ke+=1,this._seqBySchema.set(je,ke);const de={timestamp:s,rootId:g,sequence:this._sequence,schemaSequence:ke,loggerName:n,pagePayload:void 0,appPayload:void 0,loggerAppName:this.appName,connectionType:t.utility.getConnectionType(),clientSessionId:this._clientSessionId,age:t.utility.getAge(s)},Ue={schema:i,data:o,logMeta:de};if(de.pagePayload=t.payloadUtility.getPayloadFromProvider(this.pagePayloadProvider,Ue),de.appPayload=t.payloadUtility.getPayloadFromProvider(this.appPayloadProvider,Ue),this._isSender||(o=t.utility.clone(o)),typeof this._decimalPoints=="number"&&(t.utility.roundNumbersInObject(o,this._decimalPoints),Ee&&t.utility.roundNumbersInObject((_=o.userPayload)===null||_===void 0?void 0:_.payload,this._decimalPoints),t.utility.roundNumbersInObject((Q=de.pagePayload)===null||Q===void 0?void 0:Q.payload,this._decimalPoints),t.utility.roundNumbersInObject((he=de.appPayload)===null||he===void 0?void 0:he.payload,this._decimalPoints)),this._isBufferingEnabled){const Be={schema:i,data:o,logMeta:de};this._buffer.push(Be)}return this._multiplex(i,o,de),this._sequence}_multiplex(n,i,o){const s=Array.from(this._logCollectors).filter(g=>{var _;return!this._forceDisabledLogCollectors.has(g)&&!((_=g.getIsCollectDisabled)===null||_===void 0?void 0:_.call(g))});if(s.length>0)for(const g of s){let _=this._logCollectorFailures.get(g)||0;try{g.collect(n,i,o),_>0&&this._logCollectorFailures.set(g,_-1)}catch(Q){_+=1,_>=fe._collectorFailureLimit?(this._forceDisabledLogCollectors.add(g),this._appInstr&&(typeof Q=="string"||Q instanceof Error)&&this._appInstr.error(Q)):this._logCollectorFailures.set(g,_)}}}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 G(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}}fe._collectorFailureLimit=5;class Ke{get _lazyNextGen(){return this._nextgen||(this._nextgen=new fe(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 Oe=t.utility.time.bind(t.utility),ct="sfcore.customCmp.CustomComponentLog",dt={Error:"Crimson",Activity:"CadetBlue",InstrumentedEvent:"DarkOliveGreen",O11ySample:"BlueViolet"},it={Error:"white",Activity:"white",InstrumentedEvent:"white",O11ySample:"white"},bt="black",ut="Gainsboro";class et{constructor(n){this._simpleFilters=new Set,this._regexFilters=[],n&&this._log("ConsoleCollector",n)}collect(n,i,o){const s=t.schemaUtil.getSchemaId(n);if(!this._shouldLog(s))return;if(s===ct){this._logCustom(i);return}let g,_,Q;t.schemaUtil.isInternal(n)?(g=n.name,_=it[n.name]||bt,Q=dt[n.name]||ut):g=s,this._log(g,i,o,_,Q)}_shouldLog(n){return this._simpleFilters.size==0&&this._regexFilters.length==0?!0:this._simpleFilters.has(n)||this._regexFilters.some(i=>i.test(n))}addFilter(n){n instanceof RegExp?this._regexFilters.push(n):this._simpleFilters.add(n)}removeFilter(n){if(n instanceof RegExp){const i=this._regexFilters.findIndex(o=>o.source===n.source);i>=0&&this._regexFilters.splice(i,1)}else this._simpleFilters.delete(n)}clearFilters(){this._simpleFilters.clear(),this._regexFilters.splice(0,this._regexFilters.length)}getFilters(){return Array.from(this._simpleFilters).concat(this._regexFilters).sort()}_log(n,i,o,s=bt,g=ut){const _=`color:${s};background-color:${g}`;console.log(`%cO11Y%c ${n}`,"color:white;background-color:#FF6600;font-weight:bold",_,i||"",o||"")}_logCustom(n){console.log("%clightning/logger","color:white;background-color:#00a1e0;font-weight:bold",n||"")}}const Xe="254.7.0",Pt=new F({logThreshold:300,reportListener:_e=>{_t==null||_t.log(e.idleDetectorReportSchema,_e)},errorListener:(_e,n)=>{_t==null||_t.error(_e,n)}}),ft=new Ke(Pt),gt=ft.registerInstrumentedApp.bind(ft),Nt=ft.getInstrumentation.bind(ft),_t=Nt("IdleDetector");r.ConsoleCollector=et,r._version=Xe,r.getInstrumentation=Nt,r.idleDetector=Pt,r.registerInstrumentedApp=gt,r.time=Oe,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("o11y/client",["exports","o11y/client/v/254_7_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/o11y/v/1_66_1084-258_0",["exports"],function(r){"use strict";const e={};r._o11y=e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/o11y",["exports","webruntime/o11y/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/expressions/v/1_66_1084-258_0",["exports","webruntime/handlebarsEngine/v/1_66_1084-258_0"],function(r,e){"use strict";let t;const E="1970-01-01T",w="T00:00:00",F="provider",O="providers";function v(k){return k!==null&&typeof k=="object"}function l(k){try{const K=k?.indexOf(":")>-1,D=k?.indexOf("-")>-1;return k===""||!K&&!D?null:(typeof k=="string"&&(D||(k=E+k),K||(k=k+w),k=k.trim().replace(" ","T"),k.endsWith("Z")||(k+="Z")),new Date(k))}catch(K){return null}}function d(k){try{const K=k(),D=Reflect.get(this,O);for(const te of D)if(!te?.hasData?.())throw new Error;return K??null}catch(K){return}}function u(k){return v(this)&&(Reflect.set(this,F,k),Reflect.get(this,O).push(k)),k?.getData?.()}function f(k={},K){if(!!k&&Object.prototype.hasOwnProperty.call(k,K))return k[K]}function m(k,K){Array.isArray(k)||(k=[k]);const D=k.filter(K);if(!!D.length)return D.length===1?D[0]:D}function T(k,K){if(v(this)&&Reflect.has(this,F)){const D=Reflect.get(this,F);if(Reflect.deleteProperty(this,F),!D?.hasData?.(K))throw new Error;const te=Reflect.get(this,O);te.indexOf(D)>=0&&te.splice(te.indexOf(D),1)}return typeof K=="string"&&Array.isArray(k)?(k=k.map(D=>D[K]).filter(D=>D!==void 0),k.length===0?void 0:k.length===1?k[0]:k):k?.[K]}function P(){}function N(k,K,D){const te=e.compile(k);return{[D]:te(K)}}const A={toDate(k){if(k!=null){const K=l(k)?.setUTCHours(0,0,0,0);if(K!==void 0&&!isNaN(K))return new Date(K)}return null},toTime(k){if(k!=null){const K=l(k)?.setUTCFullYear(1970,0,1);if(K!==void 0&&!isNaN(K))return new Date(K)}return null},toDatetime(k){return k!=null?l(k):null},isBlank(k){return!k&&typeof k!="number"},contains(k,K){return k!=null?k.includes(K):!1},begins(k,K){return K==null?!0:k!=null?k.toString().startsWith(K.toString()):!1}},M=(...k)=>(t={[O]:[],[F]:null},d.apply(t,k)),L=(...k)=>u.apply(t,k),S=(...k)=>T.apply(t,k),J=(...k)=>f.apply(t,k),Z=(...k)=>m.apply(t,k),q=(...k)=>P.apply(t,k),z=(...k)=>N.apply(t,k);r.EXPR_CLOSURE=M,r.EXPR_FILTER=Z,r.EXPR_FUNCTION=q,r.EXPR_GLOBAL=J,r.EXPR_HANDLEBARS=z,r.EXPR_MEMBER=S,r.EXPR_PROVIDER=L,r.EXPR_RUNTIME=A,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/expressions",["exports","webruntime/expressions/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/routerContainer/v/1_66_1084-258_0",["exports","lwc/v/8_20_6","webruntime/errors/v/1_66_1084-258_0","lwr/navigation/v/0_19_7","webruntime/routingService/v/1_66_1084-258_0","webruntime/defaultView/v/1_66_1084-258_0"],function(r,e,t,E,w,F){"use strict";function O(f){return f&&typeof f=="object"&&"default"in f?f:{default:f}}var v=O(F),l=void 0;class d extends e.LightningElement{constructor(...m){super(...m);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(m){this._routeParams=m}render(){return this.generatedTemplateHtml}connectedCallback(){const m=this.view||v.default;this.generatedTemplateHtml=m.html,this.attributes=m.attributes(this,this.routeParams),this.subscription=w.subscribe(this.routeChange.bind(this))}viewChange(m){w.handleExtraRouteParams(this.route),this.generatedTemplateHtml=m.html;const{state:T,attributes:P}=this.route;this._routeParams={...T,...P},this.attributes=m.attributes(this,this.routeParams)}routeChange(m){this.route=m.route||null}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}errorCallback(m,T){t.reportError({subject:"router level error",error:m,wcstack:T})}}d.renderMode="light",e.registerDecorators(d,{publicProps:{view:{config:0},routeParams:{config:3}},wire:{viewChange:{adapter:E.CurrentView,method:1,config:function(f){return{}}}},fields:["_routeParams","generatedTemplateHtml","previousRouteParams","requiredParameters","attributes","route"]});const u=e.registerComponent(d,{tmpl:l,sel:"webruntime-router-container",apiVersion:63});r.default=u,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/routerContainer",["exports","webruntime/routerContainer/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/componentContainer/v/1_66_1084-258_0",["exports","lwc/v/8_20_6"],function(r,e){"use strict";function t(u,f,m){var T=u?"."+u+"-host":"";return(f?":host {":T+" {")+"display: flow-root;}"}t.$scoped$=!0;var E=[t];const w={key:0},F=[];function O(u,f,m,T){const{s:P}=u;return[P("",w,F,m)]}var v=e.registerTemplate(O);O.slots=[""],O.renderMode="light",O.stylesheets=[],O.stylesheetToken="lwc-4k1qbp7cls1",O.legacyStylesheetToken="webruntime-componentContainer_componentContainer",E&&O.stylesheets.push.apply(O.stylesheets,E),e.freezeTemplate(O);class l extends e.LightningElement{}l.renderMode="light";const d=e.registerComponent(l,{tmpl:v,sel:"webruntime-component-container",apiVersion:63});r.default=d,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/componentContainer",["exports","webruntime/componentContainer/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/mobileUtils/v/1_66_1084-258_0",["exports","@app/isMobileAppMode/v/1","@communities-webruntime/common/v/1_66_1084-258_0"],function(r,e,t){"use strict";function E(O){return O&&typeof O=="object"&&"default"in O?O:{default:O}}var w=E(e);function F(){const O=globalThis.navigator?.userAgent;return O&&(w.default&&O.includes(t.MOBILE_APP_USER_AGENTS.PUBLISHER)||O.includes(t.MOBILE_APP_USER_AGENTS.PLAYGROUND))}r.isMobileApp=F,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/mobileUtils",["exports","webruntime/mobileUtils/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/sessionValidator/v/1_66_1084-258_0",["exports","lwr/loaderLegacy/v/0_19_7","lwc/v/8_20_6","@app/isDesignMode/v/1","@app/basePath/v/1","webruntime/mobileUtils/v/1_66_1084-258_0","webruntime/logger/v/1_66_1084-258_0","@app/loginPath/v/1","webruntime/routingService/v/1_66_1084-258_0"],function(r,e,t,E,w,F,O,v,l){"use strict";function d(oe){return oe&&typeof oe=="object"&&"default"in oe?oe:{default:oe}}var u=d(E),f=d(w),m=d(v);function T(oe,X,me){var a=oe?"["+oe+"-host]":"";return(X?":host {":a+" {")+"display: none;}"}var P=[T];const N=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>`,A=t.parseFragment`<section role="dialog" tabindex="-1" aria-modal="true" aria-labelledby="session-warn-modal-heading-01" class="slds-modal slds-fade-in-open${0}"${2}><div class="slds-modal__container${0}"${2}><button class="slds-button slds-button_icon slds-modal__close${0}"${2}><svg class="slds-button__icon slds-button__icon_large${0}" aria-hidden="true"${2}><use${"a4:xlink:href"}${3}/></svg><span class="slds-assistive-text${0}"${2}>${"t6"}</span></button><header class="slds-modal__header${0}"${2}><h2 id="session-warn-modal-heading-01" class="slds-modal__title slds-hyphenate${0}"${2}>${"t9"}</h2></header><div class="slds-modal__content slds-p-around_medium${0}" id="modal-content-id-1"${2}><p${3}>${"t12"}</p></div><footer class="slds-modal__footer slds-modal__footer_directional${0}"${2}><button class="slds-button slds-button_neutral${0}"${"a14:aria-label"}${2}>${"t15"}</button><button class="slds-button slds-button_brand${0}"${"a16:aria-label"}${2}>${"t17"}</button></footer></div></section>`,M=t.parseFragment`<div class="slds-backdrop slds-backdrop_open${0}"${2}></div>`;function L(oe,X,me,a){const{d:c,b:p,sp:x,st:B,fr:ce}=oe,{_m0:Ae,_m1:Ge,_m2:Me}=a;return[X.showSessionWarning?ce(0,[B(N,2,[x(5,{attrs:{"xlink:href":t.sanitizeAttribute("use","http://www.w3.org/2000/svg","xlink:href",X.userIconUrl)}},null),x(7,null,c(X.invalidSessionToastMessage)),x(9,{on:Ae||(a._m0={click:p(X.dismissAlert)})},null),x(11,{attrs:{"xlink:href":t.sanitizeAttribute("use","http://www.w3.org/2000/svg","xlink:href",X.closeIconUrl)}},null),x(13,null,c(X.closeMessage))])],0):null,X.showSessionExpiryWarningModal?ce(3,[B(A,5,[x(4,{attrs:{"xlink:href":t.sanitizeAttribute("use","http://www.w3.org/2000/svg","xlink:href",X.closeIconUrl)}},null),x(6,null,c(X.cancelAndCloseLabel)),x(9,null,c(X.sessionWarningMessageTitle)),x(12,null,c(X.sessionWarningMessage)),x(14,{on:Ge||(a._m1={click:p(X.handleLogout)}),attrs:{"aria-label":X.cancelAndCloseLabel}},null),x(15,null,c(X.cancelMessage)),x(16,{on:Me||(a._m2={click:p(X.handleExtendSession)}),attrs:{"aria-label":X.continueWorkingMessage}},null),x(17,null,c(X.continueWorkingMessage))]),B(M,7)],0):null]}var S=t.registerTemplate(L);L.renderMode="light",L.stylesheets=[],L.stylesheetToken="lwc-9mrm67ji1u",L.legacyStylesheetToken="webruntime-sessionValidator_sessionValidator",P&&L.stylesheets.push.apply(L.stylesheets,P),t.freezeTemplate(L);const J="/sfsites/c/_nc_external/system/security/session/SessionTimeServlet";function Z(){const oe=new XMLHttpRequest,X=new Date().getTime(),me=`${f.default}${J}?buster=${X}`;return new Promise((a,c)=>{oe.open("GET",me,!0),oe.onload=()=>{if(oe.readyState===oe.DONE)if(oe.status>=200&&oe.status<300){const p=z(oe.responseText);p.sr=Number(p.sr),a(p)}else O.logError(`API failed with status ${oe.status}`),c(`API failed with status ${oe.status}`);else O.logError("Received null or invalid session time"),c("Received null or invalid session time")},oe.send()})}function q(){const oe=new XMLHttpRequest,X=new Date().getTime(),me=`${J}?buster=${X}&updateTimedOutSession=true`;return new Promise((a,c)=>{oe.open("GET",me,!0),oe.onload=()=>{if(oe.readyState===oe.DONE)if(oe.status>=200&&oe.status<300){const p=z(oe.responseText);p.sr=Number(p.sr),a(p)}else O.logError(`API failed with status ${oe.status}`),c(`API failed with status ${oe.status}`);else O.logError("Error extending user session time"),c("Error extending user session time")},oe.send()})}function z(oe){if(!oe)return{sp:-1,sr:-1};let X=oe.replace(/\r/g,`
`);return X.indexOf("<pre")>=0&&(X=X.replace(/^<pre[^>]*>/,"").replace(/<\/pre>$/,"")),X.indexOf("<textarea")>=0&&(X=X.replace(/<textarea[^>]*>/,"").replace(/<\/textarea>$/,"")),k(X)}function k(oe){const X=`while(1);
`;if(typeof oe!="string")return null;oe.substring(0,X.length)===X&&(oe=K(oe));try{return JSON.parse(oe)}catch(me){return O.logError(`Exception while parsing the String: ${oe}`,me),null}}function K(oe){const X=`while(1);
`,me=[X,X.replace(`
`,"")];for(let a=0;a<me.length;a++){const c=me[a];if(oe.indexOf(c)===0)return oe.slice(c.length)}return oe}class D extends t.LightningElement{constructor(...X){super(...X);this.sessionWarningMessageTitle=void 0,this.sessionWarningMessage=void 0,this.sessionWarningTime=void 0,this.invalidSessionToastMessage=void 0,this.closeMessage=void 0,this.cancelMessage=void 0,this.continueWorkingMessage=void 0,this.cancelAndCloseLabel=void 0,this.CLOSE_ICON_PATH="/assets/icons/utility-sprite/svg/symbols.svg#close",this.USER_ICON_PATH="/assets/icons/utility-sprite/svg/symbols.svg#user",this.RETRY_TIME_WHEN_API_FAILED=2*1e3,this.MAX_RETRY_ATTEMPTS=10,this.SHOW_SESSION_MESSAGE_KEY="lwrSessionValidator.showSessionMessage",this.timeLeftInSession=0,this.timeoutID=0,this.warningCancelResetTimeoutId=0,this.showSessionWarning=!1,this.showSessionExpiryWarningModal=!1,this.retryAttempts=0,this.currentRetryDelay=this.RETRY_TIME_WHEN_API_FAILED,this.closeIconUrl=void 0,this.userIconUrl=void 0}async connectedCallback(){if(!this.shouldCheckSession())return;const{default:X}=await e.load("@app/user/v/1");X.isGuest||(this.setShowSessionTimeoutMessage(!1),await this.checkSession(this.warningTimeBeforeSessionTimeout>0)),this.showExpiredSessionMessage(new URL(decodeURIComponent(window.location.href)))}async checkSession(X=!1){const{default:me}=await e.load("@app/user/v/1");if(!me.isGuest)try{const a=await Z();this.timeLeftInSession=a.sr,this.retryAttempts=0,this.currentRetryDelay=this.RETRY_TIME_WHEN_API_FAILED,this.processTimeoutResponse(X)}catch(a){this.retryPoll(X)}}scheduleCheckSession(X,me=!1){clearTimeout(this.timeoutID);const a=2,c=me?(this.timeLeftInSession-this.warningTimeBeforeSessionTimeout+a)*1e3:this.timeLeftInSession*1e3;this.timeoutID=setTimeout(()=>this.checkSession(X),c)}async processTimeoutResponse(X=!1){if(this.timeLeftInSession<0){this.handleLogout();return}const me=this.timeLeftInSession<=this.warningTimeBeforeSessionTimeout-3;X&&me&&(this.showSessionExpiryWarningModal=!0),this.scheduleCheckSession(X,X&&!me)}handleLogout(){clearTimeout(this.timeoutID),this.timeoutID=0,this.showSessionExpiryWarningModal=!1,this.shouldShowSessionTimeoutMessage()?O.log("[session-validator] Already redirecting due to session timeout. No additional action taken."):(O.log("[session-validator] Logging out."),this.setShowSessionTimeoutMessage(!0),l.navigate({type:"comm__loginPage",attributes:{actionName:"logout"},state:{startUrl:l.getCurrentRoute().url}}))}async handleExtendSession(){this.showSessionExpiryWarningModal=!1,clearTimeout(this.warningCancelResetTimeoutId);try{const{sr:X}=await q();if(X<0){this.handleLogout();return}this.timeLeftInSession=X,O.log(`[session-validator] Session extension successful. Time left in session: ${X} seconds`),this.scheduleCheckSession(!0)}catch(X){O.logError(`[session-validator] Session extension failed. error:
`,X),clearTimeout(this.timeoutID),this.timeoutID=setTimeout(()=>this.checkSession(!0),this.RETRY_TIME_WHEN_API_FAILED)}}showExpiredSessionMessage(X){if(this.shouldShowSessionTimeoutMessage()){if(X.pathname.toLowerCase().endsWith(m.default)){const a=window.location.origin+f.default;this.closeIconUrl=a.concat(this.CLOSE_ICON_PATH),this.userIconUrl=a.concat(this.USER_ICON_PATH),this.showSessionWarning=!0}this.setShowSessionTimeoutMessage(!1)}}shouldCheckSession(){return!(F.isMobileApp()||u.default)}shouldShowSessionTimeoutMessage(){return localStorage.getItem(this.SHOW_SESSION_MESSAGE_KEY)==="true"}setShowSessionTimeoutMessage(X){X?localStorage.setItem(this.SHOW_SESSION_MESSAGE_KEY,"true"):localStorage.removeItem(this.SHOW_SESSION_MESSAGE_KEY)}retryPoll(X){if(this.retryAttempts+=1,this.retryAttempts>=this.MAX_RETRY_ATTEMPTS){O.logError("[session-validator] Max retry attempts reached.");return}clearTimeout(this.timeoutID),this.timeoutID=setTimeout(()=>this.checkSession(X),this.currentRetryDelay),this.currentRetryDelay=Math.min(this.currentRetryDelay*2,30*60*1e3)}get warningTimeBeforeSessionTimeout(){const X=Number(this.sessionWarningTime);return isNaN(X)?0:X}dismissAlert(){this.showSessionWarning=!1}disconnectedCallback(){this.shouldCheckSession()&&(clearTimeout(this.timeoutID),clearTimeout(this.warningCancelResetTimeoutId))}}D.renderMode="light",t.registerDecorators(D,{publicProps:{sessionWarningMessageTitle:{config:0},sessionWarningMessage:{config:0},sessionWarningTime:{config:0},invalidSessionToastMessage:{config:0},closeMessage:{config:0},cancelMessage:{config:0},continueWorkingMessage:{config:0},cancelAndCloseLabel:{config:0}},fields:["CLOSE_ICON_PATH","USER_ICON_PATH","RETRY_TIME_WHEN_API_FAILED","MAX_RETRY_ATTEMPTS","SHOW_SESSION_MESSAGE_KEY","timeLeftInSession","timeoutID","warningCancelResetTimeoutId","showSessionWarning","showSessionExpiryWarningModal","retryAttempts","currentRetryDelay","closeIconUrl","userIconUrl"]});const te=t.registerComponent(D,{tmpl:S,sel:"webruntime-session-validator",apiVersion:63});r.default=te,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/sessionValidator",["exports","webruntime/sessionValidator/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/slotContainer/v/1_66_1084-258_0",["exports","lwc/v/8_20_6"],function(r,e){"use strict";const t=[];function E(v,l,d,u){const{s:f,fr:m}=v;return[l.isVisible?m(0,[f("",{key:1,slotData:l.variations},t,d)],0):null]}var w=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(...l){super(...l);this.visibilityExpression=void 0,this.hidden=void 0,this.variationExpressions=void 0}get isVisible(){return this.hidden?!this.visibilityExpression:this.visibilityExpression}get variations(){const l={},d=!!this.variationExpressions?.find(m=>m===!0),u=this.variationExpressions?.findIndex(m=>m===!0),f=this.variationExpressions?.findIndex(m=>typeof m=="undefined")!==-1;return this.variationExpressions?.forEach(function(m,T){const P=`variation${T+1}`;f||d&&u!==T?l[P]=!1:m===!0?l[P]=!0:(typeof m=="undefined",l[P]=!1)}),l.variation0=!d&&!f,l}}F.renderMode="light",e.registerDecorators(F,{publicProps:{visibilityExpression:{config:0},hidden:{config:0},variationExpressions:{config:0}}});const O=e.registerComponent(F,{tmpl:w,sel:"webruntime-slot-container",apiVersion:63});r.default=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/slotContainer",["exports","webruntime/slotContainer/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/visibilityContainer/v/1_66_1084-258_0",["exports","lwr/loaderLegacy/v/0_19_7","lwc/v/8_20_6","@app/isDesignMode/v/1"],function(r,e,t,E){"use strict";function w(P){return P&&typeof P=="object"&&"default"in P?P:{default:P}}var F=w(E);function O(P,N,A){var M=P?"."+P+"-host":"";return"@media only screen and (max-width: 47.9375em) {"+(N?":host.webruntime-visibility-container.dxp-sm-hide {":M+".webruntime-visibility-container.dxp-sm-hide {")+"display: none;}}@media only screen and (min-width: 48em) and (max-width: 64em) {"+(N?":host.webruntime-visibility-container.dxp-md-hide {":M+".webruntime-visibility-container.dxp-md-hide {")+"display: none;}}@media only screen and (min-width: 64.0625em) {"+(N?":host.webruntime-visibility-container.dxp-lg-hide {":M+".webruntime-visibility-container.dxp-lg-hide {")+"display: none;}}"}O.$scoped$=!0;var v=[O];const l=[],d={key:1};function u(P,N,A,M){const{fr:L,s:S}=P;return[N.hidden?L(0,l,0):L(0,[S("",d,l,A)],0)]}var f=t.registerTemplate(u);u.slots=[""],u.renderMode="light",u.stylesheets=[],u.stylesheetToken="lwc-7ethp7o0ig8",u.legacyStylesheetToken="webruntime-visibilityContainer_visibilityContainer",v&&u.stylesheets.push.apply(u.stylesheets,v),t.freezeTemplate(u);class m extends t.LightningElement{constructor(...N){super(...N);this.hiddenInDesktop=!1,this.hiddenInTablet=!1,this.hiddenInMobile=!1,this.hidden=!0}connectedCallback(){const N={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 A="";Object.values(N).forEach(M=>{M.isHidden?this.classList.add(M.class):A+=A?`, ${M.mediaQuery}`:M.mediaQuery}),F.default?this.classList.add("interactions-element","webruntime-design-visibility-container"):this.classList.add("webruntime-visibility-container"),e.load("webruntime/formFactor/v/1_66_1084-258_0").then(({getFormFactor:M})=>{if(typeof window!="undefined"&&!F.default&&N[M()].isHidden){if(A){const L=window.matchMedia(A),S=J=>{J.matches&&(this.hidden=!1,L.removeEventListener("change",S))};L.addEventListener("change",S)}}else this.hidden=!1})}}m.renderMode="light",m.validationOptOut=["class"],t.registerDecorators(m,{publicProps:{hiddenInDesktop:{config:0},hiddenInTablet:{config:0},hiddenInMobile:{config:0}},track:{hidden:1}});const T=t.registerComponent(m,{tmpl:f,sel:"webruntime-visibility-container",apiVersion:63});r.default=T,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/visibilityContainer",["exports","webruntime/visibilityContainer/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/viewchangeNotifier/v/1_66_1084-258_0",["exports","lwc/v/8_20_6","lwr/navigation/v/0_19_7","@app/deployTarget/v/1","webruntime/routingService/v/1_66_1084-258_0"],function(r,e,t,E,w){"use strict";function F(N){return N&&typeof N=="object"&&"default"in N?N:{default:N}}var O=F(E);const v=e.parseFragment`<div hidden${"a0:data-route"}${3}></div>`;function l(N,A,M,L){const{sp:S,st:J}=N;return[J(v,1,[S(0,{attrs:{"data-route":A.routeParamString}},null)])]}var d=e.registerTemplate(l);l.renderMode="light",l.stylesheets=[],l.stylesheetToken="lwc-1j18phjg883",l.legacyStylesheetToken="webruntime-viewchangeNotifier_viewchangeNotifier",e.freezeTemplate(l);const u=["contentTypeName","name","objectApiName","recordId","relationshipApiName","term","urlAlias"];function f(N){return Object.keys(N).reduce((A,M)=>(u.includes(M)&&(A[M]=N[M]),A),{})}function m(N,A){return N===A?!0:!N||!A?!1:Object.keys(N).length===Object.keys(A).length&&Object.entries(A).every(([M,L])=>N[M]===L)}class T extends e.LightningElement{constructor(...A){super(...A);this.routeChangeSubscription=void 0,this.route=void 0,this.routeParams=void 0,this.previousRouteParams=void 0}connectedCallback(){O.default==="MRT"&&requestAnimationFrame(()=>{this.route=w.getCurrentRoute().route,this.updateRouteParams()}),this.routeChangeSubscription=w.subscribe(this.routeChange.bind(this))}routeChange(A){this.route=A.route}viewChange(){this.updateRouteParams()}updateRouteParams(){const{state:A,attributes:M}=this.route||{};this.routeParams=f({...A,...M})}renderedCallback(){!this.routeParams||(!w.isCurrentRouteCanonicallyRedirected()&&!m(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)))}}T.renderMode="light",e.registerDecorators(T,{wire:{viewChange:{adapter:t.CurrentView,method:1,config:function(N){return{}}}},fields:["routeChangeSubscription","route","routeParams","previousRouteParams"]});const P=e.registerComponent(T,{tmpl:d,sel:"webruntime-viewchange-notifier",apiVersion:63});r.default=P,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/viewchangeNotifier",["exports","webruntime/viewchangeNotifier/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/analyticsEvents/v/1_66_1084-258_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,w=document.documentElement.scrollHeight||document.body.scrollHeight;E/(w-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_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/pageDataLayerObject/v/1_66_1084-258_0",["exports","lwc/v/8_20_6","experience/dataLayerObject/v/256_8_0","webruntime/analyticsEvents/v/1_66_1084-258_0"],function(r,e,t,E){"use strict";function w(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var F=w(t);function O(u,f,m,T){const{c:P}=u;return[P("experience-data-layer-object",F.default,{props:{scriptDataAttributes:f.pageDataForDataLayer.scriptDataAttributes,customObject:f.pageDataForDataLayer.customObject},key:0})]}var v=e.registerTemplate(O);O.renderMode="light",O.stylesheets=[],O.stylesheetToken="lwc-1k5dp68c4pi",O.legacyStylesheetToken="webruntime-pageDataLayerObject_pageDataLayerObject",e.freezeTemplate(O);class l extends e.LightningElement{constructor(...f){super(...f);this.handleViewChanged=m=>this._handleViewChanged(m),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(f){const m=f.detail?.route?.attributes?.recordId,T=f.detail?.route?.attributes?.contentTypeName,P=f.detail?.route?.attributes?.webUrlId,N=f.detail?.route?.attributes?.contentKey,A=f.detail?.route?.attributes?.dataSpaceId,M=f.detail?.route?.attributes?.businessUnitId,L={type:f.detail?.route?.pageReference?.type,url:window.location.href,urlReferrer:this.pageDataForDataLayer?.customObject?.url||document.referrer,...m?{recordId:m}:{},...T?{contentTypeName:T}:{},...P?{urlAlias:P}:{},...N?{contentKey:N}:{},...A?{dataSpaceId:A}:{},...M?{businessUnitId:M}:{}};this.pageDataForDataLayer={...this.pageDataForDataLayer,customObject:L},this.scrollToBottomEvent.addListener()}}l.renderMode="light",e.registerDecorators(l,{fields:["handleViewChanged","pageDataForDataLayer","scrollToBottomEvent"]});const d=e.registerComponent(l,{tmpl:v,sel:"webruntime-page-data-layer-object",apiVersion:63});r.default=d,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/pageDataLayerObject",["exports","webruntime/pageDataLayerObject/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/serverRouter/v/0_19_7",["exports","lwr/contextProvider/v/0_19_7","lwr/metrics/v/0_19_7","lwr/navigation/v/0_19_7","lwr/navigationMixinHacks/v/0_19_7","lwr/profiler/v/0_19_7","lwr/router/v/0_19_7","lwr/routerErrors/v/0_19_7","lwr/routerUtils/v/0_19_7"],function(r,e,t,E,w,F,O,v,l){"use strict";class d{constructor(m,T,P){this.contextId=Object.freeze(()=>{}),this.router=T,this.target=P,this.handleNavHook=m.handleNavigation,this.preNavHook=m.preNavigate,this.errorNavHook=m.errorNavigate,this.initWires(m.url)}async navigate(m,T,P){if(l.hasDocument){if(this.handleNavHook&&!this.handleNavHook(m))return;const N=await this.getValidatedUrl(m,P);N&&(document.location.href=N)}}generateUrl(m,T){return this.router.generateUrl(m,T)}generateUrlAsync(m,T){return this.router.generateUrlAsync(m,T)}initWires(m){if(!m&&l.hasDocument&&(m=document.location.href),!m){this.processError(v.generateMessageObject(v.messages.NO_INIT_URL));return}m=this.getRelativeUrl(m),this.currentRoute=this.router.matchRoute(m,{})||void 0,E.registerNavigationHelm(this.contextId,{navigate:(T,P,N)=>this.navigate(T,P,N),generateUrl:(T,P)=>this.generateUrl(T,P),generateUrlAsync:(T,P)=>this.generateUrlAsync(T,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),l.hasDocument&&this.target.addEventListener(w.CONTEXT_ID_BACKDOOR,T=>{const P=T;P.detail.callback&&P.detail.callback(this.contextId)})}getRelativeUrl(m){if(m.startsWith("http")){const T=new URL(m);return`${T.pathname}${T.search}`}return m}async getValidatedUrl(m,T){const P=this.router.matchRoute(m,{});if(!P){this.processError(v.generateMessageObject(v.messages.NO_ROUTE_MATCH,[JSON.stringify(m)]));return}if(!(this.preNavHook&&await this.preNavHook({current:this.currentRoute,next:P}))){this.processError(v.generateMessageObject(v.messages.PRENAV_FAILED,[JSON.stringify(m)]));return}return this.router.generateUrl(m,T)}processError(m){F.logOperationStart({id:t.ROUTER_ERROR}),this.errorNavHook&&this.errorNavHook(m)}}function u(f,m){new d(f,O.createRouter(f),m)}r.ServerRouter=d,r.createServerRouter=u,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/serverRouter",["exports","lwr/serverRouter/v/0_19_7"],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_19_7",["exports","lwr/routerUtils/v/0_19_7","lwr/routerErrors/v/0_19_7","lwr/observable/v/0_19_7"],function(r,e,t,E){"use strict";class w{constructor(v){this.deprecatedConfig={},this.routeHandlerId=0,this.compiledRoutes=[],this.routeObservable=E.createObservable(),this.basePath=v.basePath||"",this.config={basePath:this.basePath,i18n:v.i18n||e.DEFAULT_I18N_ROUTER_CONFIG,caseSensitive:Boolean(v.caseSensitive),routes:v.routes||[],generateUrl:(f,m)=>e.getUrlFromPageReference(f,this.compiledRoutes,this.config.basePath,this.config.i18n,m),parseUrl:f=>e.getPageReferenceFromUrl(f,this.compiledRoutes,this.config.basePath,this.config.i18n)};const{generateUrlFilter:l,DEPRECATED_getRouteFromUrl:d,DEPRECATED_getUrlFromRoute:u}=v;l&&(this.config.generateUrlFilter=l),d&&(this.deprecatedConfig.DEPRECATED_getRouteFromUrl=d),u&&(this.deprecatedConfig.DEPRECATED_getUrlFromRoute=u),this.compiledRoutes=e.parseRoutes(this.config)}generateUrl(v,l){const{DEPRECATED_getUrlFromRoute:d}=this.deprecatedConfig;return d?d(v,this.config.generateUrl,l):this.config.generateUrl(v,l)}generateUrlAsync(v,l){const{generateUrlFilter:d}=this.config;return d?d(v,this.config.generateUrl,l):Promise.resolve(this.generateUrl(v,l))}parseUrl(v){const{DEPRECATED_getRouteFromUrl:l}=this.deprecatedConfig;return l?l(v,this.config.parseUrl):this.config.parseUrl(v)}matchRoute(v,l){const d=typeof v=="string"?v:this.generateUrl(v,l);if(d===null)return null;const u=e.matchRouteByUrl(d,this.compiledRoutes,this.config.basePath,this.config.i18n,l),f=u&&e.getUrlFromPageReferenceAndRouteDef(u.route.pageReference,u.routeDefinition,this.config.basePath,this.config.i18n,l);return!u||!f?null:{pathMatch:f,route:u.route,routeDefinition:u.routeDefinition.original}}async resolveView(v,l){return new Promise((d,u)=>{const f=this.matchRoute(v,l);return f?f.routeDefinition.handler?.().then(m=>{const T=m.default;if(!T)return u(t.generateMessage(t.messages.INVALID_ROUTE_HANDLER,[f.routeDefinition.id]));const P=new T(d);P&&P.update(f.route)}):u(t.generateMessage(t.messages.NO_ROUTE_MATCH,[JSON.stringify(v)]))})}navigate(v,l){const d=this.matchRoute(v,l);if(!d)throw new Error(t.generateMessage(t.messages.MISSING_ROUTE,[JSON.stringify(v)]));this.pendingRoute={...d},this._mapView(this.pendingRoute)}subscribe(v,l){return this.routeObservable.subscribe({next:v,error:()=>{},complete:()=>{}},Boolean(l))}async _mapView(v){const l=Math.random();this.routeHandlerId=l;const u=(await v.routeDefinition.handler?.())?.default;if(!u)throw new Error(t.generateMessage(t.messages.INVALID_ROUTE_HANDLER,[v.routeDefinition.id]));return this.routeHandler=new u(f=>{this._updateView(l,f)}),this.routeHandler&&this.routeHandler.update(v.route),!0}_updateView(v,l){if(!l||v!==this.routeHandlerId)return;if(!this.pendingRoute)throw new Error("Trying to commit route state without a route");const d=e.freeze(l.viewset);this.routeObservable.next({...this.pendingRoute,...l,viewset:d})}}function F(O={}){return new w(O)}r.createRouter=F,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/router",["exports","lwr/router/v/0_19_7"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/connectApiEndpoint/v/1_66_1084-258_0",["exports","@salesforce/community/Id/v/1"],function(r,e){"use strict";function t(v){return v&&typeof v=="object"&&"default"in v?v:{default:v}}var E=t(e);const w="64.0",F={SEO_PROPERTIES:"seo-properties",SEO_OBJECT_RELATED_URL:"seo-object-related-url"};function O(v,l){const d=l.appVersion||w;switch(v){case F.SEO_PROPERTIES:return`/services/data/v${d}/connect/communities/${E.default}/seo/properties/${l.recordId}`;case F.SEO_OBJECT_RELATED_URL:{const u=encodeURIComponent(l.urlNameOrPath);return`/services/data/v${d}/connect/communities/${E.default}/seo/object-url/${l.scope}/${u}`}default:return null}}r.CONNECT_API_TYPES=F,r.constructApiEndpoint=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/connectApiEndpoint",["exports","webruntime/connectApiEndpoint/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/a11yService/v/1_66_1084-258_0",["exports"],function(r){"use strict";const e="sf-aria-live",t="tabindex",{document:E}=globalThis;let w;function F(l){if(E&&l?.routeDefinition){let d=E.body.querySelector(`#${e}`);d||(d=E.createElement("span"),d.id=e,d.setAttribute("aria-live","polite"),d.setAttribute("aria-atomic","true"),d.setAttribute("aria-hidden","true"),d.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(d)),d.innerText=l.routeDefinition.label}}function O(l){if(!E)return;const d=l?.routeDefinition?.label,u=l?.routeDefinition?.id,f=w!==u;d!=null&&f&&(E.title=d),w=u}function v(l){if(!E)return;const d=E.createTreeWalker(E.body,NodeFilter.SHOW_ELEMENT,{acceptNode:f=>f.matches("webruntime-router-container")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),u=l?E.body:d.nextNode();u&&(u.setAttribute(t,"-1"),u.focus({preventScroll:!0}),u.removeAttribute(t))}r.ARIA_LIVE_ID=e,r.TAB_INDEX_ATTR_NAME=t,r.ariaLiveNavigate=F,r.updateFocus=v,r.updateTitle=O,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/a11yService",["exports","webruntime/a11yService/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/routingService/v/1_66_1084-258_0",["exports","lwr/loaderLegacy/v/0_19_7","@communities-webruntime/common/v/1_66_1084-258_0","@salesforce/i18n/lang/v/1","@app/deployTarget/v/1","@app/basePath/v/1","@app/uiBasePath/v/1","@app/routes/v/1","@app/viewToThemeLayoutMap/v/1","@app/isDesignMode/v/1","@app/isPreviewMode/v/1","webruntime/views/v/1_66_1084-258_0","webruntime/a11yService/v/1_66_1084-258_0","webruntime/overrides/v/1_66_1084-258_0","webruntime/logger/v/1_66_1084-258_0","webruntime/apiCall/v/1_66_1084-258_0","webruntime/connectApiEndpoint/v/1_66_1084-258_0","webruntime/persistentQueryParams/v/1_66_1084-258_0","webruntime/utils/v/1_66_1084-258_0","webruntime/o11y/v/1_66_1084-258_0","lwr/router/v/0_19_7","lwr/serverRouter/v/0_19_7","lwr/routerErrors/v/0_19_7","lwr/navigation/v/0_19_7","webruntime/transport/v/1_66_1084-258_0","@app/extraRouteParams/v/1"],function(r,e,t,E,w,F,O,v,l,d,u,f,m,T,P,N,A,M,L,S,J,Z,q,z,k,K){"use strict";function D(h){return h&&typeof h=="object"&&"default"in h?h:{default:h}}var te=D(E),oe=D(w),X=D(F),me=D(O),a=D(v),c=D(l),p=D(d),x=D(u),B=D(f),ce=D(K);function Ae(h){const j=[],H=[];return h.forEach(se=>{const{type:Ie,attributes:we={},state:xe={}}=se.page||{};if(Ie==="standard__objectPage")if(Ge(we.actionName))j.push(se);else{let Je;we.actionName==="list"?(Je={...se,page:{...se.page,attributes:{...we},state:{...xe}}},Je.page.attributes.actionName="home"):we.actionName==="home"?(Je={...se,page:{...se.page,attributes:{...we},state:{...xe}}},Je.page.attributes.actionName="list"):we.actionName||(se.page.attributes.actionName="home",Je={...se,page:{...se.page,attributes:{...we},state:{...xe}}},Je.page.attributes.actionName="list"),j.push(se,Je)}else H.push(se)}),[...j,...H]}function Ge(h){return h&&h.length>1?h.startsWith(":"):!1}const Me={};let He=null;function De(h){const{pathname:j,search:H,hash:se}=new URL(h,window.location.origin);return{pathname:j,search:H,hash:se}}async function qe(h){const{pathname:j,search:H,hash:se}=De(h);if(Me[j])return Me[j]+H+se;if(Object.values(Me).includes(j))return h;try{const{redirected:Ie,url:we}=await k.fetch(h,{basePath:"",method:"HEAD",isNonApiRequest:!0});if(Ie){const xe=De(we).pathname;return Me[j]=xe,xe+H+se}}catch(Ie){P.logError(`Unable to fetch canonical URL for ${h}`,`error:
`,Ie)}return null}let Qe;async function V(h,j){const{route:H,routeDefinition:se}=j;if(He=H,se?.metadata?.hasVanityURL){const Ie=h.generateUrl(H.pageReference),we=await qe(Ie);if(we&&we!==Ie&&He===H){const Je={type:"standard__webPage",attributes:{url:we}};return z.navigate(h.contextId,Je,!0),Qe=!0,!0}}return Qe=!1,!1}function le(){return Qe}const Y=["webUrlId","dataSpaceId","businessUnitId"];let ve=!0;const Te={};function We(h){const j=h?.attributes||{},H=j.urlName||j.urlPath||j.urlAlias;if(H){const se=h?.attributes?.objectApiName||"";return`${H}:${se}`}return null}function Se(h){h.extraRouteParams&&(Re(h,h.extraRouteParams),delete h.extraRouteParams)}function Re(h,j){const H=We(h);!j||!H||(Te[H]=j)}function ze(h){const j=We(h);if(j&&j in Te){const H=Te[j];return!(H&&Object.keys(H).length>0)}return!!j}function Ze(h={}){const{current:j,next:{pathMatch:H,route:{pageReference:se}={}}}=h;return j&&ze(se)?(window.location.assign(H),!0):!1}function st(h){if(ve){const j=Le();lt(h,j),Re(h.pageReference,j),ve=!1}else{const j=We(h?.pageReference),H=Te[j];lt(h,H)}}function lt(h,j){b(j)&&(b(h?.attributes)&&(h.attributes={...h.attributes,...j}),b(h?.pageReference?.attributes)&&(h.pageReference.attributes={...h.pageReference.attributes,...yt(j,Y)}))}function Le(){if(typeof ce.default=="string")try{return JSON.parse(ce.default)}catch(h){return{}}return ce.default}function yt(h,j){return Object.keys(h||{}).filter(H=>!j.includes(H)).reduce((H,se)=>({...H,[se]:h[se]}),{})}function b(h){return h&&typeof h=="object"}const U="redirectPageContext";function C(h){return h?.state?.[U]||null}function R(h){return h?.includes(`?${U}=`)}function G(h,j,H={}){const{current:se,next:{route:Ie,url:we}={}}=H,xe=R(we)?we:C(Ie)?$(Ie):null;return xe?(se?window.location.assign(xe):z.navigate(h,j.page,!0),!0):!1}function $(h){if(!h)return null;const j=C(h)||window.btoa(window.encodeURIComponent(JSON.stringify(h)));return`${me.default}/?${U}=${j}`}const W="KnowledgeArticleVersion",ne=["OrderSummary","User"],ie=[{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:j})=>{const{attributes:H={}}=h;return H.urlName||H.urlPath?!1:H.objectApiName==="ProductCategory"?j==="categoryPath":ne.includes(H.objectApiName)?!1:j==="recordName"}}],ee="standard__managedContentPage";function ue(h){return ie.find(j=>h.type===j.type)}function Pe(h,j=[]){if(h?.type===ee){let H=h.attributes?.contentTypeName;!j.find(Ie=>Ie.page.type===ee&&Ie.page?.attributes?.contentTypeName===H)&&["news","cms_image","cms_document"].indexOf(H)!==-1&&(H=H.startsWith("cms_")?H.substring(4):H,h.attributes.contentTypeName=`sfdc_cms__${H}`),h.attributes&&h.attributes.contentKey&&(h.attributes.urlAlias=h.attributes.contentKey,delete h.attributes.contentKey)}return h}let Ce;function $e(h,j){h.attributes?.objectApiName===W&&(Ce===void 0&&(Ce=j.find(se=>se.page.attributes?.objectApiName?.endsWith("__kav"))?.page?.attributes?.objectApiName||null),Ce&&(h.attributes.objectApiName=Ce))}function Ne(h){return!h.attributes?.urlName&&!h.attributes?.urlPath||(h.type==="standard__recordPage"&&(Fe(h),delete h.attributes.recordId,delete h.state?.recordName,delete h.state?.categoryPath),h.type==="standard__recordRelationshipPage"&&(Fe(h),delete h.attributes.recordId)),h}function Fe(h){h.attributes.recordId&&(h.extraRouteParams={recordId:h.attributes.recordId})}function Ve(h,j){return h.type==="standard__knowledgeArticlePage"&&(h.type="standard__recordPage",h.attributes.actionName="view",h.attributes.objectApiName=W,delete h.attributes.articleType),$e(h,j),h}function I(h,j){const{params:H,match:se}=j;H.forEach(Ie=>{const{type:we,name:xe,value:Je}=Ie;se&&!se(h,Ie)||h?.[we]?.[xe]||(h[we]||(h[we]={}),h[we][xe]=Je)})}function ae(h={}){const j=ue(h);j&&I(h,j)}function ge(h,j){if(h.state?.categoryPath?.includes("/")||h.attributes?.urlPath?.includes("/")){let[H,se]=j.split("?");return H=H.replace(/%2F/g,"/"),se=se?`?${se}`:"",H+se}return j}function fe(h){return Object.entries(h?.attributes||{}).filter(([,j])=>j===null).forEach(([j])=>delete h.attributes[j]),h}class Ke{constructor(j){this.callback=j}dispose(){}update(j){const H=ut.find(se=>se.id===j.id)?.view;this.callback({viewset:{default:()=>B.default(H)}})}}const{window:Oe,performance:ct}=globalThis,dt=`${t.WEBRUNTIME_PREFIX}-framework-router`;let it=oe.default==="MRT";globalThis.CLWR=globalThis.CLWR||{},globalThis.CLWR.registeredPersistentParamNames=globalThis.CLWR.registeredPersistentParamNames||new Set;let bt;r.router=void 0;let ut=[],et,Xe;function Pt(h,j){ct?.mark?.(dt),ut=Ae(t.splitOptionalParameters(t.parseRoutes(h))),ut.forEach(H=>{H.handler=()=>new Promise(se=>{se({default:Ke})})}),et=ut.find(H=>H.metadata.isDefault),j?.isMRT!=null&&(it=j.isMRT),Xe=!it&&ut.every(H=>H.metadata.isPublic!==!1),bt={basePath:me.default,caseSensitive:!0,routes:ut,i18n:{locale:te.default,defaultLocale:te.default},DEPRECATED_getRouteFromUrl:_e,DEPRECATED_getUrlFromRoute:n},r.router=J.createRouter(bt),ct?.measure?.(dt,dt)}Pt(a.default);let ft,gt;function Nt(){return gt?.contextId||r.router.contextId}function _t(h){if(!h)return"";if(Object.keys(M.persistentQueryParams).length===0)return h;const j=new URL(h,Oe.location.origin);return Object.entries(M.persistentQueryParams).forEach(([H,se])=>{j.searchParams.has(H)||j.searchParams.set(H,se)}),j.pathname+j.search}function _e(h,j){const H=j(h);return H?(ae(H),Object.entries(H.state).forEach(([se,Ie])=>{globalThis.CLWR?.registeredPersistentParamNames?.has(se)&&(M.persistentQueryParams[se]=Ie)}),H):et?.page?et.page:null}function n(h={type:"",attributes:{},state:{}},j){const{type:H,attributes:se={},state:Ie={}}=h;let we;const xe=JSON.parse(JSON.stringify(h));if(H==="standard__webPage")return we=se.url,we==null?"":L.isAbsoluteURL(we)?we:(we=de(we,me.default),_t(we));if(H==="comm__loginPage"){const Je=Ie.startUrl!=null?`?startURL=${encodeURIComponent(Ie.startUrl)}`:"";if(se.actionName==="login")return de(`${t.WEBRUNTIME_LOGIN_PATH}${Je}`,X.default);if(se.actionName==="logout")return de(`${t.WEBRUNTIME_LOGOUT_PATH}${Je}`,X.default)}return H==="standard__managedContentPage"&&Pe(xe,ut),xe.state||(xe.state={}),Object.entries(M.persistentQueryParams).forEach(([Je,St])=>{xe.state[Je]?M.persistentQueryParams[Je]=xe.state[Je]:xe.state[Je]=St}),Ve(xe,ut),Ne(xe),ae(xe),fe(xe),we=j(xe),H==="standard__recordPage"&&(we=ge(xe,we)),!we&&Xe&&(we=$(xe)),Se(xe),we}async function i(h){const{route:j,routeDefinition:H}=h.next;return o(H,j?.pageReference)}async function o(h,j){if(h?.metadata?.isPublic!==!1)return!1;const{default:H}=await e.load("@app/user/v/1");if(H.isGuest){const se=typeof j=="string"?j:Be(j);if(se&&Oe)if(it){const{default:Ie}=await e.load("@app/loginPath/v/1");s(Ie,se)}else Oe.location.href=se;return!0}return!1}function s(h,j){const H=new URL(h,Oe.location.href);j&&H.searchParams.set("startURL",j),Oe.location.assign(H.href)}function g(h,j){const H=new URL(h,Oe.location.href);j&&H.searchParams.set("startURL",j),Oe.location.assign(H.href)}function _(h){return G(Nt(),et,h)}function Q(h){const{current:j,next:H}=h;if(j&&H&&(j.routeDefinition.ssr!==H.routeDefinition.ssr||it)){const se=Be(H.route.pageReference);if(se)return Oe.location.assign(se),!0}return!1}function he(h){const{current:j,next:{pathMatch:H,route:se={}}}=h;if(!j)return!1;const{pageReference:{type:Ie,attributes:we={}}}=se;if(Ie==="standard__managedContentPage"){const{contentTypeName:xe}=we;if(xe==="sfdc_cms__landingPage")return Oe.location.assign(H),!0}return!1}async function Ee(h){be(h.detail)}async function be(h){try{if(!Oe?.location)return;const{address:j,message:H,code:se}=h;if(se===q.messages.PRENAV_FAILED.code)return;if(se===q.messages.MISSING_ROUTE.code&&!et&&R(j)){Oe.location.assign(j);return}if(P.logError(`Routing error: ${H}`),et?.metadata?.isPublic===!1){const{default:we}=await e.load("@app/user/v/1");if(we.isGuest)return}const Ie=me.default?Oe.location.pathname.replace(me.default,""):Oe.location.pathname;et&&Ie!==et.uri&&Ue(et.page)}finally{ft?.errorNavigate(h)}}function je(h){ke(h.detail.address)||h.preventDefault()}function ke(h){if(!T.NavigationOverrides.runSync(h))return!1;const{type:j,attributes:H={},state:se={}}=h;if(j==="standard__webPage"){const{url:Ie}=H;if(Ie==null)return!0;if(L.isAbsoluteURL(Ie)||L.isSfdcCoreURL(Ie))return Oe?.open(Ie),!1;const we=r.router.parseUrl(Ie),xe=!we||we===et?.page;if(Xe&&xe)return Oe?.location.assign(_t(de(Ie,me.default))),!1}else if(j==="comm__loginPage"){const{actionName:Ie}=H;if(Ie==="login")return s(de(t.WEBRUNTIME_LOGIN_PATH,X.default),se.startUrl||""),!1;if(Ie==="logout")return g(de(t.WEBRUNTIME_LOGOUT_PATH,X.default),se.startUrl||""),!1}return!0}function de(h,j){return L.isAbsoluteURL(h)?h:j&&h!==j&&h.indexOf(`${j}/`)!==0?`${j}${h}`:h}function Ue(h){z.navigate(Nt(),h)}function Be(h){return gt?gt.generateUrl(h):r.router.generateUrl(h)}function vt(h,j=!0){return typeof Oe!="undefined"?r.router.subscribe(h,j):null}async function ht(h,j){if(ft?.preNavigate(h),T.PreNavigateOverrides.run(h),gt){if(await i(h))return!1}else i(h);return he(h)||!it&&_(h)||!it&&Ze(h)||Q(h)?(j?.preventDefault(),!1):!0}let Et;async function Ct(h){const j=h.detail,H=j.current?.routeDefinition.view;H?Et=c.default[H]:Et=null,await ht(j,h)}async function tt(h){T.PostNavigateOverrides.run(h);const j=h.routeDefinition?.view,H=Et!==c.default[j];try{it||(m.ariaLiveNavigate(h),m.updateFocus(H),m.updateTitle(h),Rt(h).then(async se=>{se?V(r.router,h):Ue(et.page)}))}finally{ft?.postNavigate(h)}}async function Rt(h){const j=Boolean(globalThis?.CLWR?.gates?.enableLwrRouteValidation);if(p.default||x.default||!j||h?.route.pageReference.type!=="standard__recordPage"||h?.route.pageReference.attributes.recordId==null||h?.route.pageReference.attributes.objectApiName==="OrderSummary")return!0;const H=A.constructApiEndpoint(A.CONNECT_API_TYPES.SEO_PROPERTIES,{recordId:h.route.pageReference.attributes.recordId});return await N.fetchEndpoint(H)!=null}async function mt(h){const j=h.detail;tt(j)}function At(h){ft=S._o11y.routingSupport,h.addEventListener("prenavigate",Ct),h.addEventListener("handlenavigation",je),h.addEventListener("postnavigate",mt),h.addEventListener("errornavigate",Ee)}function jt(){let h,j;if(Oe?.location&&(j=Oe.location.href.substring(Oe.location.origin.length),h=r.router.matchRoute(j)),!h&&et&&(h=r.router.matchRoute(et.uri)),h){const{route:H,routeDefinition:se}=h;return gt&&st(H),{route:H,routeDefinition:se,url:j}}return{}}function Vt(h,j){if(!it||gt&&typeof Oe!="undefined")return;const H=jt(),{routeDefinition:se}=H;if(se&&!se.ssr)return;const Ie={...bt,url:j,handleNavigation:ke,preNavigate:ht,errorNavigate:be};gt=new Z.ServerRouter(Ie,r.router,h),ft=S._o11y.routingSupport,ht({next:H}),tt(H)}function kt(h,j){const H=j?`?startURL=${encodeURIComponent(j)}`:"";return`${h}${t.WEBRUNTIME_LOGIN_PATH}${H}`}r.generateUrl=Be,r.getCurrentRoute=jt,r.getLoginUrl=kt,r.handleExtraRouteParams=st,r.initializeRouter=Pt,r.initializeRouterContainer=At,r.initializeServerRouter=Vt,r.isCurrentRouteCanonicallyRedirected=le,r.navigate=Ue,r.subscribe=vt,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/routingService",["exports","webruntime/routingService/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/overrides/v/1_66_1084-258_0",["exports"],function(r){"use strict";class e{constructor(){this.overrides=[]}add(l){this.overrides.push(l)}run(...l){return this.overrides.length===0?Promise.resolve(!0):this.overrides.reduce((d,u)=>d.then(f=>f===!1?Promise.resolve(!1):Promise.resolve(u(...l))),Promise.resolve(!0)).then(d=>Promise.resolve(d))}runSync(...l){return this.overrides.length===0?!0:this.overrides.reduce((d,u)=>d===!0?u(...l):!1,!0)}}const t=new e,E=new e,w=new e,F=new e,O=new e;r.NavigationOverrides=w,r.Overrides=e,r.PageNavigationFailureOverrides=O,r.PostNavigateOverrides=E,r.PreNavigateOverrides=t,r.SessionTimeoutOverrides=F,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/overrides",["exports","webruntime/overrides/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/views/v/1_66_1084-258_0",["exports","lwr/loaderLegacy/v/0_19_7","@communities-webruntime/common/v/1_66_1084-258_0"],function(r,e,t){"use strict";function E(w){return e.load(t.getViewModuleSpecifier(w),"webruntime/views/v/1_66_1084-258_0")}r.default=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/views",["exports","webruntime/views/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/formFactor/v/1_66_1084-258_0",["exports"],function(r){"use strict";function e(){return typeof window!="undefined"&&window.matchMedia("only screen and (min-width: 48em) and (max-width: 64em)").matches}function t(){return typeof window!="undefined"&&window.matchMedia("only screen and (max-width: 47.9375em)").matches}function E(){return e()?"Medium":t()?"Small":"Large"}const w=E();r.default=w,r.getFormFactor=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/formFactor",["exports","webruntime/formFactor/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("wire-service/v/8_20_6",["exports"],function(r){"use strict";function e(q){return q===void 0}const t="ValueChangedEvent";class E{constructor(z){this.type=t,this.value=z}}const{freeze:w,defineProperty:F,isExtensible:O}=Object,v="$$DeprecatedWiredElementHostKey$$",l="$$DeprecatedWiredParamsMetaKey$$";function d(q,z){if(q==null||!O(q))throw new TypeError("adapter id must be extensible");if(typeof z!="function")throw new TypeError("adapter factory must be a callable");if("adapter"in q)throw new TypeError("adapter id is already associated to an adapter factory");const k=class extends Z{constructor(K){super(K);z(this.eventTarget)}};w(k),w(k.prototype),F(q,"adapter",{writable:!1,configurable:!1,value:k})}function u(){}const{forEach:f,splice:m,indexOf:T}=Array.prototype,P="connect",N="disconnect",A="config";function M(q,z){const k=T.call(q,z);k>-1&&m.call(q,k,1)}function L(q){return Object.keys(q).length===0}function S(q,z){return z.length===0||z.some(k=>!e(q[k]))}function J(q,z,k){return k.some(K=>q[K]!==z[K])}class Z{constructor(z){this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=z,this.wiredElementHost=z[v],this.dynamicParamsNames=z[l],this.eventTarget={addEventListener:(k,K)=>{switch(k){case P:{this.connecting.push(K);break}case N:{this.disconnecting.push(K);break}case A:{this.configuring.push(K),this.currentConfig!==void 0&&K.call(void 0,this.currentConfig);break}default:throw new Error(`Invalid event type ${k}.`)}},removeEventListener:(k,K)=>{switch(k){case P:{M(this.connecting,K);break}case N:{M(this.disconnecting,K);break}case A:{M(this.configuring,K);break}default:throw new Error(`Invalid event type ${k}.`)}},dispatchEvent:k=>{if(k instanceof E){const K=k.value;this.callback(K)}else{if(k.type==="wirecontextevent")return this.wiredElementHost.dispatchEvent(k);throw new Error(`Invalid event type ${k.type}.`)}return!1}}}update(z){this.isFirstUpdate&&(this.isFirstUpdate=!1,!L(z)&&!S(z,this.dynamicParamsNames))||(e(this.currentConfig)||J(z,this.currentConfig,this.dynamicParamsNames))&&(this.currentConfig=z,f.call(this.configuring,k=>{k.call(void 0,z)}))}connect(){f.call(this.connecting,z=>z.call(void 0))}disconnect(){f.call(this.disconnecting,z=>z.call(void 0))}}r.ValueChangedEvent=E,r.register=d,r.registerWireService=u,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("wire-service",["exports","wire-service/v/8_20_6"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("@salesforce/client/formFactor/v/1_66_1084-258_0",["exports"],function(r){"use strict";function e(){return typeof window!="undefined"&&window.matchMedia("only screen and (min-width: 48em) and (max-width: 64em)").matches}function t(){return typeof window!="undefined"&&window.matchMedia("only screen and (max-width: 47.9375em)").matches}function E(){return e()?"Medium":t()?"Small":"Large"}const w=E();r.default=w,r.getFormFactor=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("@salesforce/client/formFactor",["exports","@salesforce/client/formFactor/v/1_66_1084-258_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("@communities-webruntime/common/v/1_66_1084-258_0",["exports"],function(r){"use strict";var e=!0,t="src/labels",E=["@app","@branding","@design","@luvio","@lwrjs","@o11y","@perm","@salesforce","@udd","@view","assert","aura-instrumentation","aura-storage","aura","b2c_lite_commerce","community_builder","community_case","community_layout","community_login","community_runtime","community_user","dxp_action","dxp_base","dxp_content_layout","dxp_crm_search","dxp_data_provider","dxp_flow","dxp_flowruntime","dxp_form","dxp_icon","dxp_layout","dxp_page_layout","dxp_records","dxp_search","dxp_service","dxp_styling","dxp_util","dxp","embeddedMessaging","es_actions","es_base_components","es_block_builder","es_brand","es_data_field","es_design","es_property_editors","es_shared","experience_marketing_landing","experience_messaging","experience","flowruntime","force","fragment","industries_common","instrumentation","interop","lightning","logger","lwc","lwr","mobileruntime","o11y","runtime_hybrid_capabilities","runtime_omnistudio","runtime_omnistudio_common","runtime_omnistudio_flexcards","runtime_omnistudio_omniscript","tableau","transport","trustedDesign","wave","webruntime","webruntimedesign","wire-service"],w="webruntime";function F(V){return`/${w}${V}`}var O=F("/api"),v=F("/log/metrics"),l=F("/log/errors"),d={APEX_ACTION_ERROR:"APEX_ACTION_ERROR",FAILED_TO_LOAD_RESOURCE:"FAILED_TO_LOAD_RESOURCE",TOO_MANY_REQUESTS:"TOO_MANY_REQUESTS",UNKNOWN_ERROR:"UNKNOWN_ERROR"},u={PUBLISHER:"CommunityHybridContainer/",PLAYGROUND:"playgroundcommunity"},f=8e3,m="/webruntime/login",T="/webruntime/logout",P="no-cache,must-revalidate,max-age=0,no-store,private",N="@design";function A(V){return`${N}/${V}`}function M(V){return V.replace(/(?!^)([A-Z])/g,"-$1").toLowerCase()}var L=new RegExp(/^[a-z-A-Z_\d]+[/:]{1}[a-zA-Z_\d]+$/),S=new RegExp(/^([a-z][a-z\d]*)(-[a-z\d]+)*$/);function J(V,le){if(!V)throw new Error(le)}function Z(V){if(S.test(V))return V;J(L.test(V),`${V} is an invalid module specifier.`);const le=V.split(/[/:]/),[Y,ve]=le;return J(!Y.includes("-"),`${V}'s namespace cannot contain hyphens.`),[Y.toLowerCase(),M(ve)].join("-")}var q="webruntime",z="js",k="latest",K={FRAMEWORK:"framework",DESIGN:"design",COMPONENT:"component",VIEW:"view",DESIGNCOMPONENT:"designcomponent"};function D(V,le){if(!V)throw new Error(le)}function te(V){const[le,Y=""]=V.split("://"),[ve,Te]=Y.indexOf("@")>0?Y.split("@"):[Y];return{type:le,name:ve,locale:Te}}function oe(V={type:"",name:""},le,Y,ve=!0){const{name:Te}=typeof V=="string"?te(V):V;D(Te,"Name not specified");const We=X(V,le,Y),Se=ve?`.${z}`:"";return`${We}${Te}${Se}`}function X(V={type:"",name:""},le,Y){const{type:ve,locale:Te}=typeof V=="string"?te(V):V,We=ve===K.COMPONENT;return D(ve,"Type not specified"),D(le,"Mode not specified"),D(Te||!We,"Component locale not specified"),`/${q}/${ve}/${Y||k}/${le}${Te?`/${Te}`:""}/`}var me="@view";function a(V){return`${me}/${V}`}var c=["hasVanityURL","isDefault","isPublic","isRoot"],p=[{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:V},{name:le})=>V?.objectApiName==="ProductCategory"?le==="categoryPath":le!=="categoryPath"}];function x(V,le){const{match:Y,params:ve}=le;ve.forEach(Te=>{if(Y&&!Y(V.page,Te))return;const{type:We,name:Se}=Te,Re=We,ze=Re==="state"?"attributes":"state";!V.page?.[ze]?.[Se]||(V.page[Re]||(V.page[Re]={}),V.page[Re][Se]=V.page[ze][Se],delete V.page[ze][Se])})}function B(V){let le=V;return["categoryPath","urlPath"].forEach(Y=>{le=le.replace(new RegExp(`:${Y}\\+?`),`:${Y}+`)}),le}function ce(V){return V.startsWith(":")?V.substring(1).replace(/[?+]/g,""):null}var Ae=/\(.*\)/;function Ge(V){return V.split("/").map(le=>le.replace(Ae,"")).join("/")}function Me(V,le){return V.split("/").map(Y=>{const ve=ce(Y);return ve&&le[ve]?Y.replace(ve,`${ve}(${le[ve]})`):Y}).join("/")}function He(V){!V.uri.includes(":")||!V.page?.type||(V.page.attributes=V.page.attributes||{},V.uri.split("/").forEach(le=>{const Y=ce(le);if(Y){const ve=`:${Y}`;V.page.attributes[Y]||(V.page.attributes[Y]=ve)}}))}function De(V,le=!1){return V.map(Y=>{Y.uri||(Y.uri=Y.path),Y.metadata||(Y.metadata={}),c.forEach(Re=>{Re in Y&&(Y.metadata[Re]=Y[Re],delete Y[Re])}),Y.uri&&(Y.uri=Ge(Y.uri),He(Y)),Y.patternMap&&(Y.patterns=Y.patternMap,delete Y.patternMap);const ve=Y.page?.attributes?.objectApiName;ve&&!ve.startsWith(":")&&(Y.uri=Y.uri.replace(":objectApiName",ve),Y.patterns?.objectApiName&&delete Y.patterns.objectApiName);const Te=p.find(Re=>Y.page?.type===Re.type);Te&&x(Y,Te);const We=Y.page?.type;return!le&&We==="standard__recordPage"&&["ProductCategory","NetworkDataCategory"].includes(Y.page.attributes?.objectApiName)&&(Y.uri=B(Y.uri)),["standard__recordPage","standard__recordRelationshipPage"].includes(We)&&!Y.page?.attributes?.actionName&&(Y.page.attributes.actionName="view"),le&&Y.patterns&&(Y.uri=Me(Y.uri,Y.patterns)),Y})}function qe(V){const le=[];let Y="",ve=0,Te=!1;for(let Se=0;Se<V.length;Se++){const Re=V[Se];if(Te){Y+=Re,Te=!1;continue}if(Re==="\\"){Y+=Re,Te=!0;continue}Re==="("?ve++:Re===")"&&(ve=Math.max(ve-1,0)),Re==="/"&&ve===0?(Y.length>0&&le.push({raw:Y,isParam:!1,isOptional:!1}),Y=""):Y+=Re}Y.length>0&&le.push({raw:Y,isParam:!1,isOptional:!1});const We=/^:([A-Za-z0-9_]+)(\(.+\))?(\?)?$/;return le.map(Se=>{if(Se.raw.startsWith(":")){const Re=Se.raw.match(We);return Re?{raw:Se.raw,isParam:!0,paramName:Re[1],regexPart:Re[2]||void 0,isOptional:!!Re[3]}:{raw:Se.raw,isParam:!0,paramName:Se.raw.slice(1),isOptional:!1}}return{raw:Se.raw,isParam:!1,isOptional:!1}})}function Qe(V,le){const Y=Array.isArray(V)?V:[V],ve=[];return Y.forEach(Te=>{const We=qe(Te.uri);if(!We.some(Le=>Le.isParam&&Le.isOptional)){ve.push(Te);return}const Se=[];let Re,ze="";We.forEach(Le=>{if(Le.isOptional){const yt=Le.raw.substring(0,Le.raw.length-1);Se.push({value:yt,isOptional:!0}),Re=Le.paramName,ze=Te.page.attributes?.[Re]?"attributes":"state"}else Se.push({value:Le.raw,isOptional:!1})});const Ze={...Te,uri:(Le=>Le.startsWith("/")?Le:`/${Le}`)(Se.map(Le=>Le.value).join("/"))};le&&typeof le=="function"&&(Ze.id=le());const st={};Object.keys(Te.page[ze]).forEach(Le=>{Le!==Re&&(st[Le]=Te.page[ze][Le])});const lt={...Te,uri:(Le=>Le.startsWith("/")?Le:`/${Le}`)(Se.filter(Le=>!Le.isOptional).map(Le=>Le.value).join("/")),page:{...Te.page,[ze]:st}};lt.patterns&&(lt.patterns=Object.fromEntries(Object.entries(lt.patterns).filter(([Le])=>Le!==Re))),ve.push(Ze),ve.push(lt)}),ve}r.API_PATH_PREFIX=O,r.CACHE_CONTROL_HEADER_NO_CACHE=P,r.CLIENT_ERROR_TYPES=d,r.ERRORS_PATH_PREFIX=l,r.LABELS_DEFAULT_DIR=t,r.LOCKER_DEFAULT_ENABLED=e,r.MAX_URL_LENGTH=f,r.METRICS_PATH_PREFIX=v,r.MOBILE_APP_USER_AGENTS=u,r.RESOURCE_TYPES=K,r.TRUSTED_COMPONENTS=E,r.WEBRUNTIME_LOGIN_PATH=m,r.WEBRUNTIME_LOGOUT_PATH=T,r.WEBRUNTIME_PREFIX=w,r.convertToKebabCase=M,r.getDesignComponentModuleSpecifier=A,r.getResourceUrl=oe,r.getViewModuleSpecifier=a,r.moduleSpecifierToElementName=Z,r.parseResourceDescriptor=te,r.parseRoutes=De,r.splitOptionalParameters=Qe,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("@communities-webruntime/common",["exports","@communities-webruntime/common/v/1_66_1084-258_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]}})})});