1
2
3
4
| LWR.define("webruntime/app/v/1",["exports","lwr/loaderLegacy/v/0_8_14","lwc/v/2_31_2","@app/authenticationCookieName/v/1","webruntime/transport/v/1_66_219-242_0","@app/basePath/v/1","@app/routes/v/1","@app/apiBasePath/v/1","@salesforce/i18n/lang/v/1","@app/apexApiBasePath/v/1","@app/viewToThemeLayoutMap/v/1","@app/isMobileAppMode/v/1","@app/isDesignMode/v/1","@app/guestUuidCookieName/v/1"],function(Gt,J,f,Yn,ie,Zn,ei,Il,$l,ti,ri,ni,ii,ai){"use strict";function M(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var Vt=M(Yn),$=M(Zn),et=M(ei),Ht=M(ti),oi=M(ri),si=M(ni),ci=M(ii),tt=M(ai),rt=void 0;const{performance:I,console:li}=window,nt=new WeakMap;let it=!0,Bt=!1;try{const t={randomInfo:123},e=I.mark("A",{detail:t})||I.getEntriesByType("mark").pop();it=!!e.detail&&e.detail.randomInfo===t.randomInfo,Bt=JSON.stringify(e).includes("randomInfo")}catch(t){it=!1,li.warn("PerformanceMarkOptions#detail & PerformanceMeasureOptions#detail are not supported",t)}finally{I.clearMarks("A")}function ae(t,e,r){const n=t[e];t[e]=function(){return r.apply(this,[n.bind(this),...arguments])}}function at(t){return t.forEach(e=>{(e instanceof PerformanceMark||e instanceof PerformanceMeasure)&&(e.detail=nt.get(e)||null)}),t}function Kt(){return{name:this.name||null,entryType:this.entryType||null,startTime:this.startTime||null,duration:this.duration||null,detail:this.detail||null}}Bt||(PerformanceMark.prototype.toJSON=Kt,PerformanceMeasure.prototype.toJSON=Kt),it||(ae(I,"mark",(t,e,r)=>{const n=t(e)||I.getEntriesByType("mark").pop();if(r&&r.detail){const i=JSON.parse(JSON.stringify(r.detail));n.detail=i,nt.set(n,i)}return n}),ae(I,"measure",(t,...e)=>{if(typeof e[1]!="string"&&e[1]&&e[1].detail){const r=e[1]&&e[1].start||null,n=t(e[0],r)||I.getEntriesByType("measure").sort((a,o)=>a.startTime+a.duration-(o.startTime+o.duration)).pop(),i=JSON.parse(JSON.stringify(e[1].detail));return n.detail=i,nt.set(n,i),n}return t(...e)}),ae(I,"getEntries",t=>{const e=t();return at(e)}),ae(I,"getEntriesByName",(t,e,r)=>{const n=t(e,r);return at(n)}),ae(I,"getEntriesByType",(t,e)=>{const r=t(e);return at(r)}));const Y="webruntime";function Wt(t){return`/${Y}${t}`}const ui=Wt("/log/metrics"),zt=Wt("/log/errors"),oe={APEX_ACTION_ERROR:"APEX_ACTION_ERROR",FAILED_TO_LOAD_RESOURCE:"FAILED_TO_LOAD_RESOURCE",TOO_MANY_REQUESTS:"TOO_MANY_REQUESTS",UNKNOWN_ERROR:"UNKNOWN_ERROR"},Qt={PUBLISHER:"CommunityHybridContainer/",PLAYGROUND:"playgroundcommunity"},di=8e3,pi="@view";function qt(t){return`${pi}/${t}`}function Xt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Jt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Xt(Object(r),!0).forEach(function(n){mi(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function mi(t,e,r){return e=fi(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fi(t){var e=hi(t,"string");return typeof e=="symbol"?e:String(e)}function hi(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const gi=["hasVanityURL","isDefault","isPublic","isRoot"],Pi=[{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:t},{name:e})=>t?.objectApiName==="ProductCategory"?e==="categoryPath":e!=="categoryPath"}];function bi(t,e){const{match:r,params:n}=e;n.forEach(i=>{if(r&&!r(t.page,i))return;const{type:a,name:o}=i,c=a,u=c==="state"?"attributes":"state";!t.page?.[u]?.[o]||(t.page[c]||(t.page[c]={}),t.page[c][o]=t.page[u][o],delete t.page[u][o])})}const yi=/\(.*\)/;function vi(t){return t.map(e=>{if(e.uri||(e.uri=e.path),e.metadata||(e.metadata={}),gi.forEach(o=>{o in e&&(e.metadata[o]=e[o],delete e[o])}),e.uri){const o=e.uri.split("/");for(let c=0;c<o.length;c++)if(o[c]=o[c].replace(yi,""),o[c].startsWith(":")){const u=o[c].substring(1).replace(/[?+]/g,""),s=`:${u}`;e.page.attributes[u]||(e.page.attributes[u]=s)}e.uri=o.join("/")}const r=e.page?.attributes?.objectApiName;r&&!r.startsWith(":")&&(e.uri=e.uri.replace(":objectApiName",r));const n=Pi.find(o=>e.page?.type===o.type);if(n&&bi(e,n),e.patterns&&Array.isArray(e.patterns)&&(e.pathPatterns=e.patterns,delete e.patterns),e.page?.type==="standard__recordPage"&&(e.page.attributes=e.page.attributes||{},e.page.attributes.objectApiName==="ProductCategory"&&(e.uri=e.uri.replace(/:categoryPath\+?/,":categoryPath+")),e.page.attributes.actionName||(e.page.attributes.actionName="view")),!e.pathPatterns||e.pathPatterns.length===0)return e;const a=e.pathPatterns.map(o=>new RegExp(`^${o}$`));return Jt(Jt({},e),{},{matchesPath:o=>a.some(c=>c.test(o))})})}const Yt={MARK:"mark",RESOURCE:"resource",MEASURE:"measure",PAINT:"paint",NAVIGATION:"navigation",LONGTASK:"longtask",FRAME:"frame"},x={hostname:Boolean(window.location&&window.location.hostname),pathname:Boolean(window.location&&window.location.pathname!==void 0&&window.location.pathname!==null),rtt:Boolean(window.navigator&&window.navigator.connection&&window.navigator.connection.rtt),PerformanceObserver:Boolean(window.PerformanceObserver),PerformancePaintTiming:Boolean(window.PerformancePaintTiming),PerformanceResourceTiming:Boolean(window.PerformanceResourceTiming),getEntriesByType:Boolean(window.performance.getEntriesByType),getEntriesByName:Boolean(window.performance.getEntriesByName)};function Ei(t){let e=!1;window.addEventListener("pagehide",r=>{e=!r.persisted}),window.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&e&&t()})}function Oi(t){return JSON.stringify(t).replace(/(":)(\d+\.\d{2,})/g,(r,n,i)=>n+Number(i).toFixed(2))}function wi(){if(!x.getEntriesByName)return null;const t=window.performance.getEntriesByName(`${Y}-app-bootstrap`),e=window.performance.getEntriesByName(`${Y}-framework-bootstrap`);return[...t,...e]}function je(){return x.PerformanceResourceTiming&&x.getEntriesByType?window.performance.getEntriesByType(Yt.RESOURCE):null}function Ci(t){let e=je().length;const r=setInterval(()=>{je().length>e?e=je().length:(clearInterval(r),t())},500)}function Ni(t,e,r){const n=window.performance.timing.navigationStart,i=je().sort((o,c)=>o.startTime+o.duration>c.startTime+c.duration?-1:1)[0];let a=e-n;return i&&i.startTime+i.duration>t-n&&(a=i.startTime+i.duration),{entryType:"webruntime-navigation",startTime:t-n,duration:n+a-t,name:r&&r.id}}function Zt(){return{hostname:x.hostname?window.location.hostname:null,pathname:x.pathname?window.location.pathname:null}}function Ri(){return x.rtt?{"connection.rtt":window.navigator.connection.rtt}:null}function Ti(){return x.PerformancePaintTiming&&x.getEntriesByType?window.performance.getEntriesByType(Yt.PAINT):null}var U,se,er,De,S=function(t,e){return{name:t,value:e===void 0?-1:e,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},Le=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var r=new PerformanceObserver(function(n){return n.getEntries().map(e)});return r.observe({type:t,buffered:!0}),r}}catch(n){}},Me=function(t,e){var r=function n(i){i.type!=="pagehide"&&document.visibilityState!=="hidden"||(t(i),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},ce=function(t){addEventListener("pageshow",function(e){e.persisted&&t(e)},!0)},B=typeof WeakSet=="function"?new WeakSet:new Set,_=function(t,e,r){var n;return function(){e.value>=0&&(r||B.has(e)||document.visibilityState==="hidden")&&(e.delta=e.value-(n||0),(e.delta||n===void 0)&&(n=e.value,t(e)))}},Ii=function(t,e){var r,n=S("CLS",0),i=function(o){o.hadRecentInput||(n.value+=o.value,n.entries.push(o),r())},a=Le("layout-shift",i);a&&(r=_(t,n,e),Me(function(){a.takeRecords().map(i),r()}),ce(function(){n=S("CLS",0),r=_(t,n,e)}))},le=-1,tr=function(){return document.visibilityState==="hidden"?0:1/0},rr=function(){Me(function(t){var e=t.timeStamp;le=e},!0)},ot=function(){return le<0&&(le=tr(),rr(),ce(function(){setTimeout(function(){le=tr(),rr()},0)})),{get timeStamp(){return le}}},$i=function(t,e){var r,n=ot(),i=S("FCP"),a=Le("paint",function(o){o.name==="first-contentful-paint"&&(a&&a.disconnect(),o.startTime<n.timeStamp&&(i.value=o.startTime,i.entries.push(o),B.add(i),r()))});a&&(r=_(t,i,e),ce(function(o){i=S("FCP"),r=_(t,i,e),requestAnimationFrame(function(){requestAnimationFrame(function(){i.value=performance.now()-o.timeStamp,B.add(i),r()})})}))},ue={passive:!0,capture:!0},Si=new Date,nr=function(t,e){U||(U=e,se=t,er=new Date,ar(removeEventListener),ir())},ir=function(){if(se>=0&&se<er-Si){var t={entryType:"first-input",name:U.type,target:U.target,cancelable:U.cancelable,startTime:U.timeStamp,processingStart:U.timeStamp+se};De.forEach(function(e){e(t)}),De=[]}},Ai=function(t){if(t.cancelable){var e=(t.timeStamp>1e12?new Date:performance.now())-t.timeStamp;t.type=="pointerdown"?function(r,n){var i=function(){nr(r,n),o()},a=function(){o()},o=function(){removeEventListener("pointerup",i,ue),removeEventListener("pointercancel",a,ue)};addEventListener("pointerup",i,ue),addEventListener("pointercancel",a,ue)}(e,t):nr(e,t)}},ar=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,Ai,ue)})},ji=function(t,e){var r,n=ot(),i=S("FID"),a=function(c){c.startTime<n.timeStamp&&(i.value=c.processingStart-c.startTime,i.entries.push(c),B.add(i),r())},o=Le("first-input",a);r=_(t,i,e),o&&Me(function(){o.takeRecords().map(a),o.disconnect()},!0),o&&ce(function(){var c;i=S("FID"),r=_(t,i,e),De=[],se=-1,U=null,ar(addEventListener),c=a,De.push(c),ir()})},Di=function(t,e){var r,n=ot(),i=S("LCP"),a=function(u){var s=u.startTime;s<n.timeStamp&&(i.value=s,i.entries.push(u)),r()},o=Le("largest-contentful-paint",a);if(o){r=_(t,i,e);var c=function(){B.has(i)||(o.takeRecords().map(a),o.disconnect(),B.add(i),r())};["keydown","click"].forEach(function(u){addEventListener(u,c,{once:!0,capture:!0})}),Me(c,!0),ce(function(u){i=S("LCP"),r=_(t,i,e),requestAnimationFrame(function(){requestAnimationFrame(function(){i.value=performance.now()-u.timeStamp,B.add(i),r()})})})}},Li=function(t){var e,r=S("TTFB");e=function(){try{var n=performance.getEntriesByType("navigation")[0]||function(){var i=performance.timing,a={entryType:"navigation",startTime:0};for(var o in i)o!=="navigationStart"&&o!=="toJSON"&&(a[o]=Math.max(i[o]-i.navigationStart,0));return a}();r.value=r.delta=n.responseStart,r.entries=[n],t(r)}catch(i){}},document.readyState==="complete"?setTimeout(e,0):addEventListener("pageshow",e)};let or=!1;try{or=PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch(t){}const A={CLS:or?{name:"CLS",value:0,delta:0}:null,LCP:null,FID:null,FCP:null,TTFB:null};function Mi(){A.CLS&&(A.CLS.value=0,A.CLS.delta=0)}function xi(){Ii(Ui,!0),Di(xe,!0),ji(xe),$i(xe),Li(xe)}function Ui(t){A.CLS&&(A.CLS.value+=t.delta,A.CLS.delta=A.CLS.value)}function xe(t){const{name:e,value:r,delta:n}=t;A[t.name]={name:e,value:r,delta:n}}function sr(){return A}xi();let st=!0,ct;function _i(){return window.performance.timing&&window.performance.timing.navigationStart||0}function cr(){ct=st?_i():Date.now()}function Fi(t){st=t}function ki(){return st}function Gi(){return ct===void 0&&cr(),ct}function lr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Vi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?lr(Object(r),!0).forEach(function(n){Hi(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lr(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Hi(t,e,r){return e=Bi(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bi(t){var e=Ki(t,"string");return typeof e=="symbol"?e:String(e)}function Ki(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const Wi=Vi({},Zt());function ur(t){ie.sendBeacon({path:ui,payload:Oi(t),contentType:"text/plain;charset=UTF-8"})}function zi(){return{bootstrap:wi(),navigator:Ri(),paint:Ti()}}function Qi(t={}){const e=Gi(),r=Date.now();Ci(()=>{const n={pageView:t,location:Zt(),navigation:Ni(e,r,t)},{CLS:i}=sr(),a={webVitals:{CLS:i}};let o={};ki()&&(o=zi(),Fi(!1));const c=Object.assign({},n,o,a);ur(c),performance.clearResourceTimings(),Mi()})}function qi(t){Ei(()=>{const{FID:e,LCP:r,TTFB:n,FCP:i}=sr();(e||r||n||i)&&ur({webVitals:{FID:e,LCP:r,TTFB:n,FCP:i},location:t})})}qi(Wi);function Xi(t){const e=$.default+zt,r=JSON.stringify(t);if(!(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(e,r))){const i=new XMLHttpRequest;i.open("POST",e,!0),i.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),i.send(r)}}function Ji(t,e){document.dispatchEvent(new CustomEvent("client-error",{detail:{error:t,type:e}}))}function dr({subject:t,error:e={},extra:r,type:n=oe.UNKNOWN_ERROR}){let i,a,o;e?(i=e.message,a=e.stack,o=e.wcstack):r&&(i=r.message);const{pathname:c,hostname:u}=window.location,d={subject:t,message:i,stack:a,wcstack:o,extra:r,location:{pathname:c,hostname:u}};Ji(d,n),Xi(d)}window.addEventListener("error",(t={})=>{const{message:e,filename:r,lineno:n,colno:i,error:a}=t;dr({subject:"window error",error:a,extra:{message:e,filename:r,lineno:n,colno:i}})}),window.addEventListener("unhandledrejection",(t={})=>{const{reason:e={}}=t;dr({subject:"unhandledrejection",error:e})});function pr(...t){console.log(...t)}function de(...t){console.error(...t)}var mr=Object.freeze({__proto__:null,log:pr,logError:de});function fr(t,e){return`${Y}-${[t,e].filter(Boolean).join(":")}`}function hr(t){const e=JSON.stringify(t);return e&&JSON.parse(e)}function gr(t,e,r){const n=fr(t,e);window.performance.mark(n,{detail:{ctx:hr(r)}})}function Yi(t,e,r){gr(t,e,r)}function Zi(t,e,r){gr(t,e,r)}function ea(t,e,r){const n=fr(t,e);try{window.performance.measure(n,{detail:{ctx:hr(r)},start:n})}catch(i){de(`[instrumentation] no startMark named ${n} found`,i.stack)}}function ta(){return Date.now()}function ra(t,e,r){}function na(t,e,r){}function ia(t,e,r,n,i){}function aa(t){}function oa(t,e){}function sa(t){return{logHits(e){},logMisses(e){},unRegister(){}}}function ca(t,e,r){}function la(t){}function ua(t){}function da(t){}function pa(t,e,r){}function ma(t){return{increment(e){},decrement(e){},getValue(){return 0},reset(){}}}function fa(t){return{setValue(e){},getValue(){return 0},reset(){}}}function ha(t){return{update(e){},getValue(){return[]},reset(){}}}function ga(t){return{addDuration(){},time(){},getValue(){return[]},reset(){},get(){}}}var Pr=Object.freeze({__proto__:null,disablePlugin:da,enablePlugin:ua,error:ca,interaction:ia,mark:Yi,markEnd:ea,markStart:Zi,perfEnd:na,perfStart:ra,registerCacheStats:sa,registerPeriodicLogger:oa,registerPlugin:aa,removePeriodicLogger:la,time:ta,trackScenario:pa,counter:ma,gauge:fa,percentileHistogram:ha,timer:ga});function pe(t,e){if(!t)throw new Error(e)}function br(t){return document.cookie.split(";").map(e=>e.trim().split("=")).filter(([e])=>e===t).map(([,e])=>e)[0]}function Pa(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t=>(t^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}function ba(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)}class ya{constructor(){this._registry={eptMarked:[],navToPage:[],navFromPage:[],windowUnload:[]}}get knownEvents(){return Object.keys(this._registry)}_checkEventName(e){if(!this._registry[e])throw new Error(`eventName ${e} isn't valid`)}register(e,r,n){return pe(e&&typeof e=="string","eventName must be a valid string"),this._checkEventName(e),pe(r&&typeof r=="string","listenerName must be a valid string"),pe(typeof n=="function","callback must be provided"),this._registry[e].push({name:r,func:n})}unregister(e,r){this._checkEventName(e);const n=r-1;pe(this._registry[e][n],`No listener found for ${e} with registration ID ${r}`),delete this._registry[e][n]}notify(e,r){this._checkEventName(e),this._registry[e].forEach(n=>n.func(r))}}const va=new ya;var Ea=Object.freeze({__proto__:null,notifications:va});const Oa=/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z){1})?)?)?$/i,wa=/^\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i,Ca="HH:mm:ss.SSS",yr="YYYY-MM-DD",vr="T",Na=/(Z|([+-])(\d{2}):(\d{2}))$/;function Er(t){return Ta(t)&&wr(t)}function Ra(t){if(!Ia(t))return!1;const e=Or(t);return wr(`2018-09-09T${e}Z`)}function Or(t){return typeof t=="string"?t.split(Na)[0]:t}function Ta(t){return typeof t!="string"?!1:Oa.test(t)}function Ia(t){return typeof t!="string"?!1:wa.test(t)}function wr(t){const e=Date.parse(t);return isFinite(e)}const $a="in a few seconds",Sa="a few seconds ago",Aa="in {0} {1}",ja="{0} {1} ago",Da="s",N={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"}},La=1e3,Ma=6e4,xa=36e5,lt=864e5;class Cr{constructor(e){if(this.milliseconds=0,typeof e!="number"){this.isValid=!1,console.warn(`The value of milliseconds passed into Duration must be of type number,
| but we are getting the ${typeof e} value "${e}" instead.
| `);return}this.isValid=!0,this.milliseconds=e}humanize(e){if(!this.isValid)return"";const r=_a(this);return r===N.SECONDS?this.milliseconds>0?$a:Sa:Fa(e,this.asIn(r),r.name)}asIn(e){switch(e){case N.SECONDS:return Math.round(this.milliseconds/La);case N.MINUTES:return Math.round(this.milliseconds/Ma);case N.HOURS:return Math.round(this.milliseconds/xa);case N.DAYS:return Math.round(this.milliseconds/lt);case N.MONTHS:return Math.round(Nr(this.milliseconds/lt));case N.YEARS:default:return Math.round(Nr(this.milliseconds/lt)/12)}}}f.registerDecorators(Cr,{fields:["milliseconds"]});var Ua=f.registerComponent(Cr,{tmpl:rt});function Nr(t){const e=4800/146097;return t*e}function _a(t){const e=Object.keys(N).find(r=>{const n=N[r];return n===N.YEARS||Math.abs(t.asIn(n))<n.threshold});return N[e]}function Fa(t,e,r){return"Intl"in window&&Intl.RelativeTimeFormat?new Intl.RelativeTimeFormat(t,{style:"long",numeric:"always"}).format(e,r):ka(e,r)}function ka(t,e){console.warn("The current environment does not support formatters for relative time.");const r=Math.abs(t),n=r!==1?e+Da:e,i=t>0?Aa:ja;return Ga(i,r,n)}function Ga(t,...e){return t.replace(/{(\d+)}/g,(r,n)=>e[n])}const ut=["January","February","March","April","May","June","July","August","September","October","November","December"],K={short:"M/d/yyyy",medium:"MMM d, yyyy",long:"MMMM d, yyyy"},dt={short:"h:mm a",medium:"h:mm:ss a",long:"h:mm:ss a"},Va={short:"h:m a",medium:"h:m:s a",long:"h:m:s a"};function Ha(t,e){let r=!1,n=t;return typeof t=="string"&&(n=t.split(vr)[0],r=!0),Ir(n,e,r)}function Rr(t,e){return Ir(t,e,!0)}function Tr(t,e){if(!Z(t))return new Date("");const r=(t.getHours()+11)%12+1,n=t.getHours()>=12?"PM":"AM";switch(e){case Ca:return`${R(t.getHours())}:${R(t.getMinutes())}:${R(t.getSeconds())}.${so(t.getMilliseconds())}`;case dt.short:return`${r}:${R(t.getMinutes())} ${n}`;case dt.medium:case dt.long:default:return`${r}:${R(t.getMinutes())}:${R(t.getSeconds())} ${n}`}}function Ba(t){if(!Z(t))return new Date("");const e=new Date(t.getTime());return`${Rr(e)}, ${Tr(me(e))}`}function Ue(t){let e=null,r=!0;if(Ra(t)?e=`2014-03-20T${pt(t)}`:Er(t)&&(t.indexOf(vr)>0?(e=pt(t),r=!1):e=`${t}T00:00:00.000Z`),e){const n=new Date(e);return r&&me(n),n}return null}function Ka(t,e){return e===yr&&Er(t)?Ue(t):Object.values(K).includes(e)?ao(t,e):Object.values(Va).includes(e)?io(t):null}function Wa(t){return Ue(pt(t))}function za(t,e,r){const n=fe(t),i=fe(e);return!n||!i?!1:_e(n,r).getTime()<_e(i,r).getTime()}function Qa(t,e,r){const n=fe(t),i=fe(e);return!n||!i?!1:_e(n,r).getTime()>_e(i,r).getTime()}function qa(t,e,r){const n=new Date(t.getTime());r(oo(n))}function Xa(t,e,r){const n=new Date(t.getTime());r(me(n))}function Ja(t){return t}function Ya(t){return t}function Za(t){return t}function eo(t){return t}function to(){return{format:t=>(console.warn(`The current environment does not support large numbers and the original value of ${t} will be returned.`),t)}}function ro(t){return new Ua(t*60*1e3)}function no(t){return t.humanize("en")}function io(t){const e=t.trim().split(/[:.\s*]/),r=e.length;if(!e||r<2||r>5)return null;const n=e[r-1],i=n.toLowerCase()==="am",a=n.toLowerCase()==="pm";e.splice(-1,1);const o=e.every(b=>!isNaN(b));if(!a&&!i||!o)return null;const c=e[0],u=R(a?c%12+12:c%12),s=r>=3&&e[1]||"0",d=r>=4&&e[2]||"0",p=r===5&&e[3]||"0",h=new Date("2014-03-20");return h.setHours(u,s,d,p),Z(h)?h:null}function ao(t,e){let r=/^([a-zA-Z]{3})\s*(\d{1,2}),\s*(\d{4})$/;switch(e){case K.short:r=/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/;break;case K.long:r=/^([a-zA-Z]+)\s*(\d{1,2}),\s*(\d{4})$/;break}const n=r.exec(t.trim());if(!n)return null;let i=n[1];const a=n[2],o=n[3];e!==K.short&&(i=ut.findIndex(s=>s.toLowerCase().includes(i.toLowerCase())),i+=1);const c=`${o}-${R(i)}-${R(a)}`,u=new Date(`${c}T00:00:00.000Z`);return Z(u)?me(u):null}function Ir(t,e,r){const n=fe(t);if(!n)return new Date("");switch(r&&Z(t)&&me(n),e){case yr:return`${n.getFullYear()}-${R(n.getMonth()+1)}-${R(n.getDate())}`;case K.short:return`${n.getMonth()+1}/${n.getDate()}/${n.getFullYear()}`;case K.long:return`${ut[n.getMonth()]} ${n.getDate()}, ${n.getFullYear()}`;case K.medium:default:return`${ut[n.getMonth()].substring(0,3)} ${n.getDate()}, ${n.getFullYear()}`}}function _e(t,e){switch(e){case"day":t.setHours(0),t.setMinutes(0);case"minute":t.setSeconds(0),t.setMilliseconds(0);break}return t}function Z(t){return Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t.getTime())}function pt(t){return`${Or(t)}Z`}function me(t){return t.setMinutes(t.getMinutes()+t.getTimezoneOffset()),t}function oo(t){return t.setMinutes(t.getMinutes()-t.getTimezoneOffset()),t}function fe(t){return t?Z(t)?new Date(t.getTime()):isFinite(t)&&(typeof t=="number"||typeof t=="string")?new Date(parseInt(t,10)):typeof t=="string"?Ue(t):null:null}function R(t){return Number(t)<10?`0${t}`:t}function so(t){return Number(t)<10?`00${t}`:Number(t)<100?`0${t}`:t}var co={formatDate:Ha,formatDateUTC:Rr,formatTime:Tr,formatDateTimeUTC:Ba,parseDateTimeISO8601:Ue,parseDateTime:Ka,parseDateTimeUTC:Wa,isBefore:za,isAfter:Qa,UTCToWallTime:qa,WallTimeToUTC:Xa,translateToOtherCalendar:Ja,translateFromOtherCalendar:Ya,translateToLocalizedDigits:Za,translateFromLocalizedDigits:eo,getNumberFormat:to,duration:ro,displayDuration:no};function $r(){return co}function Sr(){return $.default}function Ar(){return null}function jr(){return null}function Dr(){return{densitySetting:""}}var lo={getOneConfig:Dr,getIconSvgTemplates:jr,getToken:Ar,getPathPrefix:Sr,getLocalizationService:$r},uo=Object.freeze({__proto__:null,default:lo,getOneConfig:Dr,getIconSvgTemplates:jr,getToken:Ar,getPathPrefix:Sr,getLocalizationService:$r});function he(t){if(t==null)throw new TypeError("Provider must be defined.")}class ge{constructor(e){this.infoMap=new WeakMap,this.defaultValue=e}getInfo(e){let r=this.infoMap.get(e);return r===void 0&&(r={consumers:new Set},this.infoMap.set(e,r)),r}setContext(e,r){he(e);const n=r,i=this.getInfo(e);i.contextValue=r,i.consumers.forEach(a=>a.provide(n)),i.consumers.size===0&&n?.onComplete&&n.onComplete()}getContext(e){he(e);const{contextValue:r}=this.getInfo(e);return r!==void 0?r:this.defaultValue}clearContext(e){he(e),this.infoMap.delete(e)}subscribeContext(e,r){he(e);const{consumers:n,contextValue:i}=this.getInfo(e);n.has(r)||(n.add(r),r.provide(i))}unsubscribeContext(e,r){he(e),this.getInfo(e).consumers.delete(r)}}f.registerDecorators(ge,{fields:["infoMap"]});function Lr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Mr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Lr(Object(r),!0).forEach(function(n){po(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lr(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function po(t,e,r){return e=mo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mo(t){var e=fo(t,"string");return typeof e=="symbol"?e:String(e)}function fo(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const v="LWR",E={Fatal:0,Error:1,Warning:2,Log:3};function Fe(t,e){return Array.isArray(e)?t.replace(/\{([0-9]+)\}/g,(r,n)=>e[n]):t}function W(t,e){return`${t.code}: ${Fe(t.message,e)}`}function F(t,e){const r=Mr(Mr({},t),{},{message:Fe(t.message,e)});return t.address&&(r.address=Fe(t.address,e)),t.stack&&(r.stack=Fe(t.stack,e)),r}function k(t,e,r){if(!t)throw new Error(W(e,r))}const O={INVALID_MIXIN_CMP:{code:`${v}4001`,message:"{0} must be an Element type",level:E.Error},MISSING_CONTEXT:{code:`${v}4002`,message:"Could not find context to perform navigation action.",level:E.Error},INVALID_CONTEXT:{code:`${v}4003`,message:"Cannot register navigation context; it must have this shape: { navigate, generateUrl, subscribe }",level:E.Error},MULTIPLE_ROOTS:{code:`${v}4004`,message:"Router connection failed. There can only be one root router.",level:E.Error},MULTIPLE_CHILDREN:{code:`${v}4005`,message:"Could not add to the navigation hierarchy. There can only be one child per navigation node.",level:E.Error},MISSING_ROUTE:{code:`${v}4006`,message:'A route cannot be created to navigate to URL "{0}"',level:E.Error,address:"{0}"},MISSING_URL:{code:`${v}4007`,message:'A URL cannot be created to navigate to route "{0}"',level:E.Error,address:"{0}"},PRENAV_FAILED:{code:`${v}4008`,message:'A preNavigate hook listener blocked routing to "{0}"',level:E.Warning,address:"{0}"},MISSING_ROUTE_TEMPLATE:{code:`${v}4009`,message:'A route definition must contain a "uri" property.',level:E.Error},MISSING_ROUTE_CMP:{code:`${v}4016`,message:"Expected a route view component with a default export.",level:E.Error},MISSING_DATA_CONTEXT:{code:`${v}4018`,message:"Could not find context to retrieve navigation data.",level:E.Error},INVALID_ROUTE_QUERY:{code:`${v}4019`,message:"Invalid query param in route definition.",level:E.Error},MISSING_PAGE_BINDING:{code:`${v}4020`,message:"Route definition must provide page binding",level:E.Error},INVALID_PAGE_BINDING:{code:`${v}4021`,message:"Invalid page binding in route definition",level:E.Error},INVALID_URI_SYNTAX:{code:`${v}4022`,message:"Invalid uri syntax. URI cannot contain *, +, (, ), ",level:E.Error},VIEW_IMPORT_FAILED:{code:`${v}4023`,message:'Error importing view with name "{0}", failure was: {1}',level:E.Error,stack:"{2}"},VIEW_MISSING:{code:`${v}4024`,message:'Expected a view with name "{0}" in the viewset',level:E.Error},VIEW_IMPORT_FAILED_WITH_SPECIFIER:{code:`${v}4025`,message:'Error importing module "{0}" from view with name "{1}", failure was: {2}',level:E.Error,stack:"{3}"},NO_ROUTE_MATCH:{code:`${v}4026`,message:"A routing match cannot be found for: {0}",level:E.Error},INVALID_ROUTE_HANDLER:{code:`${v}4027`,message:'Route definition "{0}" does not have a valid route handler module',level:E.Error},DESTINATION_NOT_FOUND:{code:`${v}4028`,message:"Route handler returned 404: Not Found",level:E.Error},DESTINATION_ERROR:{code:`${v}4029`,message:"Route handler returned error status {0}: {1}",level:E.Error,stack:"{2}"}},xr=new WeakMap;function mt(t){const e=xr.get(t);if(!e||!e.value)throw new Error(W(O.MISSING_CONTEXT));return e.value}function Ur(t,e){const r={id:t,value:e,update:n=>{r.value=n}};return xr.set(r.id,r),r}function ke(t){var e;return e=class{constructor(i){this._callback=i}connect(){}disconnect(){}update(i,a){a&&this._callback(a)}static setContext(i,a){t.setContext(i,a)}static getContext(i){return t.getContext(i)}static clearContext(i){t.clearContext(i)}static subscribeContext(i,a){t.subscribeContext(i,a)}static unsubscribeContext(i,a){t.unsubscribeContext(i,a)}},e.contextSchema={value:"required"},e}const ho=new ge(void 0),ft=ke(ho),go=new ge(void 0),Ge=ke(go),Po=new ge(void 0),Pe=class extends ke(Po){async update(e,r){if(r){const n=e&&e.viewName?e.viewName:"default",i=r.viewset[n],a=i,o=a&&a.module||i;let c;if(o)try{const u=await o(),s=u&&u.default;if(s&&s.constructor!==void 0)this._callback(s);else throw new Error("error occurred with view import")}catch(u){const s=u;a.specifier?c=F(O.VIEW_IMPORT_FAILED_WITH_SPECIFIER,[a.specifier,n,s.message,s.stack||""]):c=F(O.VIEW_IMPORT_FAILED,[n,s.message,s.stack||""])}else c=F(O.VIEW_MISSING,[n]);r.onComplete&&r.onComplete(c)}}};function be(t,e,r){mt(t).navigate(e,r)}function _r(t,e){return mt(t).generateUrl(e)}function Fr(){const t=[],e=()=>t.length===0,r=a=>{typeof a=="function"&&t.push(a)};return{add:(a=[])=>{Array.isArray(a)?a.forEach(o=>r(o)):r(a)},compile:a=>t.length===0?Promise.resolve(!0):t.reduce((o,c)=>o.then(u=>u===!1?Promise.reject():Promise.resolve(c(a))),Promise.resolve(!0)).then(o=>o!==!1).catch(o=>{if(o instanceof Error)throw o;return!1}),empty:e}}function bo(t=""){return t=t||"",encodeURIComponent(t)}function z(t=""){return t=t||"",decodeURIComponent(t)}function ht(t){t=t||"/",t.charAt(0)!=="/"&&(t="/"+t);const e=t.match(/^[^#?]+/);if(e!==null){const r=e[0];return r==="/"?"/":r.replace(/\/$/,"")}return"/"}function gt(t){t=t||"";const e=t.indexOf("#");e>=0&&(t=t.substring(0,e));const r=t.indexOf("?"),n=r>=0?t.substr(r+1):null,i={};return n&&n.split("&").forEach(a=>{if(a.indexOf("=")>=0){const[o,c=""]=a.split("=");i[z(o)]=z(c)}else i[z(a)]=null}),i}function yo(t={}){const e=Object.keys(t);return e.length?`?${e.map(r=>{const n=t[r];return n===null?r:`${r}=${bo(n)}`}).join("&")}`:""}function T(t){return t&&t.length>1?t.startsWith(":"):!1}function ee(t){return t&&T(t)?t.substr(1):!1}function kr(t){return Object.values(t).reduce((e,{routeParamName:r})=>{const n=ee(r);return n&&e.push(n),e},[])}function Gr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ye(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Gr(Object(r),!0).forEach(function(n){vo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gr(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function vo(t,e,r){return e=Eo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Eo(t){var e=Oo(t,"string");return typeof e=="symbol"?e:String(e)}function Oo(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wo(t,e){if(!t)return null;const{type:r,attributes:n={},state:i={}}=t;if(r){const[a]=e.filter(o=>{const{original:{page:{type:c=null,attributes:u={},state:s={}}={}}}=o,d=c===r,p=Object.keys(u).every(P=>Object.keys(n).indexOf(P)>=0),h=Object.keys(u).length===Object.keys(n).length,b=Object.keys(s).every(P=>Object.keys(i).indexOf(P)>=0),g=Object.keys(u).filter(P=>{const w=u[P];return!w||!T(w)}).every(P=>u[P]===n[P]),m=Object.keys(s).filter(P=>{const w=s[P];return w===null||!T(w)}).every(P=>s[P]===i[P]);return d&&p&&h&&g&&b&&m});return a||null}return null}function Vr(t,e){const{regex:r,params:n}=e,i=r.exec(t);if(i){const[,...a]=i,o={};return n.forEach((c,u)=>{const{name:s}=c,d=a[u];o[s]=d&&z(d)}),o}return null}function Hr(t,e){if(t&&e){const{queryMatcher:r}=e,n=r(t);if(n){const i={};return Object.keys(n).forEach(a=>{const o=n[a],{value:c,routeParamName:u}=o,s=u?u.substr(1):a;i[s]=c&&z(c)}),i}}return null}function Co(t,e){const{compiledQuery:r}=e,n=Object.keys(r).filter(a=>{const{literalValue:o}=r[a];return!o}),i={};return Object.keys(t).forEach(a=>{const o=t[a];n.indexOf(a)<0&&(i[a]=o)}),i}function No(t,e){if(e){const{original:{page:{type:r="",attributes:n={},state:i={}}={}}={}}=e,a=ht(t),o=gt(t),c=Vr(a,e),u=Hr(o,e);if(c&&u){const s=ye(ye({},c),u),d={};Object.keys(n).forEach(b=>{const g=n[b];let m;if(g&&T(g)){const P=g.substr(1);m=s[P]}else m=g;d[b]=m});const p={};Object.keys(i).forEach(b=>{const g=i[b];let m;if(g&&T(g)){const P=g.substr(1);m=s[P]}else m=g;p[b]=m});const h=Co(o,e);return{type:r,attributes:ye({},d),state:ye(ye({},h),p)}}}return null}function Br(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function G(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Br(Object(r),!0).forEach(function(n){Ro(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Br(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ro(t,e,r){return e=To(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function To(t){var e=Io(t,"string");return typeof e=="symbol"?e:String(e)}function Io(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $o(t,e,r){const{original:{patterns:n=null}={}}=r||{};if(n){const i=Vr(t,r),a=Hr(e,r),o=G(G({},i),a);return Object.keys(n).every(c=>{const u=n[c],s=new RegExp(u),d=o[c]||"";return s.test(d)})}return!0}function So(t,e){const r=ht(t),n=gt(t),i=e?e.filter(o=>o.regex.test(r)):[],[a]=i.filter(o=>{const{queryMatcher:c}=o;return c(n)&&$o(r,n,o)});return a||null}function Kr(t,e,r=""){r&&t.indexOf(r)===0&&(t=t.replace(r,""));const n=So(t,e);let i;if(n){const a=No(t,n);if(a)return i={route:{id:n.original.id,attributes:G({},a.attributes),state:G({},a.state),pageReference:{type:a.type,attributes:G({},a.attributes),state:G({},a.state)}},routeDefinition:n},i}else return null;return null}function Ao(t,e,r=""){const n=wo(t,e);return n?zr(t,n,r):null}function Wr(t,e,r){const{attributeBindings:n,stateBindings:i}=r,{attributes:a,state:o}=e,c={};return t.forEach(u=>{const[s]=Object.keys(n).filter(d=>ee(n[d])===u);if(s)c[u]=a[s];else{const[d]=Object.keys(i).filter(p=>ee(i[p])===u);d&&(c[u]=o[d])}}),c}function zr(t,e,r=""){const{params:n,original:{page:i={}}={},toPath:a,compiledQuery:o}=e,{attributes:c={},state:u={}}=i,s=n.filter(({name:P})=>typeof P=="string").map(({name:P})=>P),d=Wr(s,t,{attributeBindings:c,stateBindings:u}),p=a(d),h=kr(o),b=Wr(h,t,{attributeBindings:c,stateBindings:u}),g=jo(t,b,e),m=yo(g);return`${r}${p}${m}`}function jo(t,e,r){const{compiledQuery:n,original:{page:{state:i={}}}}=r,{state:a={}}=t||{},o={};Object.keys(a).filter(u=>{const s=i[u];return!T(s)}).forEach(u=>o[u]=a[u]);const c={};return Object.keys(e).forEach(u=>{const s=e[u],[d]=Object.keys(n).filter(p=>{const h=n[p],{routeParamName:b}=h;return ee(b)===u});if(d){const p=d;c[p]=s}}),G(G({},o),c)}function Do(t,e,r=""){const n=Kr(t,e,r);return n&&n.route&&n.route.pageReference?n.route.pageReference:null}function Lo(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Mo(t,e){return e in t}function Qr(t,e=2){if(Lo(t))try{Object.freeze(t),e>0&&Object.keys(t).forEach(r=>{if(Mo(t,r)){const n=t[r];n&&typeof n=="object"&&Qr(n,e-1)}})}catch(r){}return t}function Pt(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function xo(t){const e=[];let r=0;for(;r<t.length;){const n=t[r];if(n==="*"||n==="+"||n==="?"){e.push({type:"MODIFIER",index:r,value:t[r++]});continue}if(n==="\\"){e.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});continue}if(n==="{"){e.push({type:"OPEN",index:r,value:t[r++]});continue}if(n==="}"){e.push({type:"CLOSE",index:r,value:t[r++]});continue}if(n===":"){let i="",a=r+1;for(;a<t.length;){const o=t.charCodeAt(a);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=t[a++];continue}break}if(!i)throw new TypeError(`Missing parameter name at ${r}`);e.push({type:"NAME",index:r,value:i}),r=a;continue}if(n==="("){let i=1,a="",o=r+1;if(t[o]==="?")throw new TypeError(`Pattern cannot start with "?" at ${o}`);for(;o<t.length;){if(t[o]==="\\"){a+=t[o++]+t[o++];continue}if(t[o]===")"){if(i--,i===0){o++;break}}else if(t[o]==="("&&(i++,t[o+1]!=="?"))throw new TypeError(`Capturing groups are not allowed at ${o}`);a+=t[o++]}if(i)throw new TypeError(`Unbalanced pattern at ${r}`);if(!a)throw new TypeError(`Missing pattern at ${r}`);e.push({type:"PATTERN",index:r,value:a}),r=o;continue}e.push({type:"CHAR",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}function te(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function bt(t){return t&&t.sensitive?"":"i"}function qr(t,e={}){const r=xo(t),{prefixes:n="./"}=e,i=`[^${te(e.delimiter||"/#?")}]+?`,a=[];let o=0,c=0,u="";const s=h=>{if(c<r.length&&r[c].type===h)return r[c++].value},d=h=>{const b=s(h);if(b!==void 0)return b;const{type:g,index:m}=r[c];throw new TypeError(`Unexpected ${g} at ${m}, expected ${h}`)},p=()=>{let h="",b;for(;b=s("CHAR")||s("ESCAPED_CHAR");)h+=b;return h};for(;c<r.length;){const h=s("CHAR"),b=s("NAME"),g=s("PATTERN");if(b||g){let w=h||"";n.indexOf(w)===-1&&(u+=w,w=""),u&&(a.push(u),u=""),a.push({name:b||o++,prefix:w,suffix:"",pattern:g||i,modifier:s("MODIFIER")||""});continue}const m=h||s("ESCAPED_CHAR");if(m){u+=m;continue}if(u&&(a.push(u),u=""),s("OPEN")){const w=p(),Jn=s("NAME")||"",kt=s("PATTERN")||"",Tl=p();d("CLOSE"),a.push({name:Jn||(kt?o++:""),pattern:Jn&&!kt?i:kt,prefix:w,suffix:Tl,modifier:s("MODIFIER")||""});continue}d("END")}return a}function Uo(t,e={}){const r=bt(e),{encode:n=o=>o,validate:i=!0}=e,a=t.map(o=>{if(typeof o=="object")return new RegExp(`^(?:${o.pattern})$`,r)});return o=>{let c="";for(let u=0;u<t.length;u++){const s=t[u];if(typeof s=="string"){c+=s;continue}const d=o?o[s.name]:void 0,p=s.modifier==="?"||s.modifier==="*",h=s.modifier==="*"||s.modifier==="+";if(Array.isArray(d)){if(!h)throw new TypeError(`Expected "${s.name}" to not repeat, but got an array`);if(d.length===0){if(p)continue;throw new TypeError(`Expected "${s.name}" to not be empty`)}for(let g=0;g<d.length;g++){const m=n(d[g],s);if(i&&!a[u].test(m))throw new TypeError(`Expected all "${s.name}" to match "${s.pattern}", but got "${m}"`);c+=s.prefix+m+s.suffix}continue}if(typeof d=="string"||typeof d=="number"){const g=n(String(d),s);if(i&&!a[u].test(g))throw new TypeError(`Expected "${s.name}" to match "${s.pattern}", but got "${g}"`);c+=s.prefix+g+s.suffix;continue}if(p)continue;const b=h?"an array":"a string";throw new TypeError(`Expected "${s.name}" to be ${b}`)}return c}}function _o(t,e){return Uo(qr(t,e),e)}function Fo(t,e){if(!e)return t;const r=t.source.match(/\((?!\?)/g);if(r)for(let n=0;n<r.length;n++)e.push({name:n,prefix:"",suffix:"",modifier:"",pattern:""});return t}function ko(t,e,r={}){const{strict:n=!1,start:i=!0,end:a=!0,encode:o=d=>d}=r,c=`[${te(r.endsWith||"")}]|$`,u=`[${te(r.delimiter||"/#?")}]`;let s=i?"^":"";for(const d of t)if(typeof d=="string")s+=te(o(d));else{const p=te(o(d.prefix)),h=te(o(d.suffix));if(d.pattern)if(e&&e.push(d),p||h)if(d.modifier==="+"||d.modifier==="*"){const b=d.modifier==="*"?"?":"";s+=`(?:${p}((?:${d.pattern})(?:${h}${p}(?:${d.pattern}))*)${h})${b}`}else s+=`(?:${p}(${d.pattern})${h})${d.modifier}`;else s+=`(${d.pattern})${d.modifier}`;else s+=`(?:${p}${h})${d.modifier}`}if(a)n||(s+=`${u}?`),s+=r.endsWith?`(?=${c})`:"$";else{const d=t[t.length-1],p=typeof d=="string"?u.indexOf(d[d.length-1])>-1:d===void 0;n||(s+=`(?:${u}(?=${c}))?`),p||(s+=`(?=${u}|${c})`)}return new RegExp(s,bt(r))}function Go(t,e,r){return ko(qr(t,r),e,r)}function Xr(t,e,r){return t instanceof RegExp?Fo(t,e):Array.isArray(t)?Vo(t,e,r):Go(t,e,r)}function Vo(t,e,r){const n=t.map(i=>Xr(i,e,r).source);return new RegExp(`(?:${n.join("|")})`,bt(r))}function Jr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Yr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Jr(Object(r),!0).forEach(function(n){Ho(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jr(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ho(t,e,r){return e=Bo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bo(t){var e=Ko(t,"string");return typeof e=="symbol"?e:String(e)}function Ko(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const{INVALID_ROUTE_QUERY:Wo,MISSING_ROUTE_TEMPLATE:zo,MISSING_PAGE_BINDING:Qo,INVALID_PAGE_BINDING:qo,INVALID_URI_SYNTAX:Xo}=O;function Jo(t){const{routes:e,caseSensitive:r}=t;return e.map(n=>Yo(n,r))}function Yo(t,e=!1){const r=[],{uri:n,page:i}=t;k(!!n,zo),k(Zo(n),Xo),k(!!i,Qo);const a=ht(n),o=gt(n),c=Xr(a,r,{sensitive:e,end:t.exact!==!1}),u=_o(a,{encode:encodeURIComponent}),s=ts(o),d=rs(s,e),p={original:t,regex:c,params:r,toPath:u,compiledQuery:s,queryMatcher:d};return k(es(p),qo),p}function Zo(t=""){return!["*","(",")",";"].some(n=>t.indexOf(n)>=0)}function es(t){const{original:{page:e}={},params:r,compiledQuery:n}=t,i=e&&e.type,a=e&&e.attributes||{},o=e&&e.state||{};if(typeof i!="string"||typeof a!="object"||typeof o!="object")return!1;const c=Object.values(r).map(({name:g})=>g),u=kr(n),s=[...c,...u],d=Object.values(a).filter(T).map(ee),p=Object.values(o).filter(T).map(ee),h=s.every(g=>typeof g!="string"?!1:d.indexOf(g)>=0||p.indexOf(g)>=0),b=s.length===d.length+p.length;return!!(e&&i&&a&&o&&h&&b)}function ts(t){const e={};return Object.keys(t).forEach(r=>{const n=t[r];k(T(r)?n===null:!0,Wo),T(r)?e[r.substr(1)]={routeParamName:r}:n&&T(n)?e[r]={routeParamName:n}:e[r]={literalValue:n===null?null:n}}),e}function rs(t,e=!1){return n=>{const i=Object.keys(n),a=Object.keys(t);return a.every(c=>i.indexOf(c)>=0)?a.reduce((c,u)=>{if(c===null)return null;const{literalValue:s,routeParamName:d}=t[u],p=n[u];let h=!0;return typeof s=="string"?h=e?s===p:s.toUpperCase()===(p==null?p:p.toUpperCase()):s===null&&(h=p===s),h?c=Yr(Yr({},c),{},{[u]:{value:p,routeParamName:d}}):c=null,c},{}):null}}const j=typeof document!="undefined",Zr=`universalcontainergetnavigationcontext${Pt()}`,en=Symbol("Navigate"),tn=Symbol("GenerateUrl"),re=Symbol("NavContext"),yt=Symbol("NavContext");function Ve(t){k(typeof t.prototype.dispatchEvent=="function",O.INVALID_MIXIN_CMP,[t.toString()]);class e extends t{[yt](){if(!this[re]&&(this.dispatchEvent(new CustomEvent(Zr,{bubbles:!0,composed:!0,detail:{callback:n=>{this[re]=n}}})),!this[re]))throw new Error(W(O.MISSING_CONTEXT))}[en](n,i){this[yt](),be(this[re],n,i)}async[tn](n){return this[yt](),_r(this[re],n)}}return e}Ve.Navigate=en,Ve.GenerateUrl=tn,Ve.NavContext=re;var ns=Object.freeze({__proto__:null,NavigationContext:ft,CurrentPageReference:Ge,CurrentView:Pe,ContextInfo:ge,getNavigationHelm:mt,registerNavigationHelm:Ur,generateContextualWireAdapter:ke,navigate:be,generateUrl:_r,NavigationMixin:Ve});const rn="sf-aria-live",nn="tabindex";function is(t){if(t?.detail?.routeDefinition){let e=document.body.querySelector(`#${rn}`);e||(e=document.createElement("span"),e.id=rn,e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),e.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;"),document.body.appendChild(e)),e.innerText=t.detail.routeDefinition.label}}function as(t){t?.detail?.routeDefinition&&(document.title=t.detail.routeDefinition.label)}function os(t){const e=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>n.matches("webruntime-router-container")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),r=t?document.body:e.nextNode();r&&(r.setAttribute(nn,"-1"),r.focus({preventScroll:!0}),r.removeAttribute(nn))}function an(){let t,e,r=[];const n=s=>{r.push(s)},i=s=>{r=[...r.slice(0,s),...r.slice(s+1)]},a=s=>{r.filter(d=>d!==null).forEach(d=>d.next&&d.next(s)),t=s,e=void 0},o=s=>{r.filter(d=>d!==null).forEach(d=>d.error&&d.error(s)),t=void 0,e=s};return{next:a,error:o,complete:()=>{r.filter(s=>s!==null).forEach(s=>s.complete&&s.complete()),r=[],t=void 0,e=void 0},subscribe:(s,d=!0)=>{n(s),t&&d&&s.next(t),e&&o(e);const p=r.length-1;return{unsubscribe:()=>i(p)}}}}function on(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?on(Object(r),!0).forEach(function(n){ss(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):on(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ss(t,e,r){return e=cs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cs(t){var e=ls(t,"string");return typeof e=="symbol"?e:String(e)}function ls(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class sn{constructor(e){this.deprecatedConfig={},this.routeHandlerId=0,this.compiledRoutes=[],this.routeObservable=an(),this.config={basePath:e.basePath||"",caseSensitive:Boolean(e.caseSensitive),routes:e.routes||[],generateUrl:i=>Ao(i,this.compiledRoutes,this.config.basePath),parseUrl:i=>Do(i,this.compiledRoutes,this.config.basePath)};const{DEPRECATED_getRouteFromUrl:r,DEPRECATED_getUrlFromRoute:n}=e;r&&(this.deprecatedConfig.DEPRECATED_getRouteFromUrl=r),n&&(this.deprecatedConfig.DEPRECATED_getUrlFromRoute=n),this.compiledRoutes=Jo(this.config)}generateUrl(e){const{DEPRECATED_getUrlFromRoute:r}=this.deprecatedConfig;return r?r(e,this.config.generateUrl):this.config.generateUrl(e)}parseUrl(e){const{DEPRECATED_getRouteFromUrl:r}=this.deprecatedConfig;return r?r(e,this.config.parseUrl):this.config.parseUrl(e)}matchRoute(e){const r=typeof e=="string"?e:this.generateUrl(e);if(r===null)return null;const n=Kr(r,this.compiledRoutes,this.config.basePath),i=n&&zr(n.route.pageReference,n.routeDefinition,this.config.basePath);return!n||!i?null:{pathMatch:i,route:n.route,routeDefinition:n.routeDefinition.original}}async resolveView(e){return new Promise((r,n)=>{const i=this.matchRoute(e);return i?i.routeDefinition.handler().then(a=>{const o=a.default;if(!o)return n(W(O.INVALID_ROUTE_HANDLER,[i.routeDefinition.id]));const c=new o(r);c&&c.update(i.route)}):n(W(O.NO_ROUTE_MATCH,[JSON.stringify(e)]))})}navigate(e){const r=this.matchRoute(e);if(!r)throw new Error(W(O.MISSING_ROUTE,[JSON.stringify(e)]));this.pendingRoute=He({},r),this._mapView(this.pendingRoute)}subscribe(e,r){return this.routeObservable.subscribe({next:e,error:()=>{},complete:()=>{}},Boolean(r))}async _mapView(e){const r=Math.random();this.routeHandlerId=r;const i=(await e.routeDefinition.handler()).default;if(!i)throw new Error(W(O.INVALID_ROUTE_HANDLER,[e.routeDefinition.id]));return this.routeHandler=new i(a=>{this._updateView(r,a)}),this.routeHandler&&this.routeHandler.update(e.route),!0}_updateView(e,r){if(!r||e!==this.routeHandlerId)return;if(!this.pendingRoute)throw new Error("Trying to commit route state without a route");const n=Qr(r.viewset);this.routeObservable.next(He(He(He({},this.pendingRoute),r),{},{viewset:n}))}}f.registerDecorators(sn,{fields:["deprecatedConfig","routeHandlerId"]});function us(t={}){return new sn(t)}class ne{constructor(){this.overrides=[]}add(e){this.overrides.push(e)}run(...e){return this.overrides.length===0?Promise.resolve(!0):this.overrides.reduce((r,n)=>r.then(i=>i===!1?Promise.resolve(!1):Promise.resolve(n(...e))),Promise.resolve(!0)).then(r=>Promise.resolve(r))}runSync(...e){return this.overrides.length===0?!0:this.overrides.reduce((r,n)=>r===!0?n(...e):!1,!0)}}f.registerDecorators(ne,{fields:["overrides"]});const vt=new ne,cn=new ne,ln=new ne,un=new ne;var ds=Object.freeze({__proto__:null,Overrides:ne,PreNavigateOverrides:vt,NavigationOverrides:cn,SessionTimeoutOverrides:ln,PageNavigationFailureOverrides:un});function dn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?dn(Object(r),!0).forEach(function(n){ps(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dn(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ps(t,e,r){return e=ms(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ms(t){var e=fs(t,"string");return typeof e=="symbol"?e:String(e)}function fs(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function hs(t){const e=[],r=[];t.forEach(i=>{i.uri.includes("?")?r.push(i):e.push(i)});const n=[];return r.forEach(i=>{const a=[],o=i.uri.split("/");let c,u,s="";o.forEach(m=>{m.endsWith("?")?(c=m.substring(0,m.length-1),a.push({value:c,isOptional:!0}),u=c.substring(1),s=i.page.attributes?.[u]?"attributes":"state"):a.push({value:m,isOptional:!1})});let d,p;i.pathPatterns?.length&&i.pathPatterns.forEach(m=>{(!p||m.length>p.length)&&(p=m),(!d||m.length<d.length)&&(d=m)});const h=y(y({},i),{},{uri:a.map(m=>m.value).join("/"),pathPatterns:p?[p]:void 0});if(h.pathPatterns?.length){const m=h.pathPatterns.map(P=>new RegExp(`^${P}$`));h.matchesPath=P=>m.some(w=>w.test(P))}else h.matchesPath=void 0;n.push(h);const b={};Object.keys(i.page[s]).forEach(m=>{m!==u&&(b[m]=i.page[s][m])});const g=y(y({},i),{},{uri:a.filter(m=>!m.isOptional).map(m=>m.value).join("/"),page:y(y({},i.page),{},{[s]:b}),pathPatterns:d?[d]:void 0});if(g.pathPatterns?.length){const m=g.pathPatterns.map(P=>new RegExp(`^${P}$`));g.matchesPath=P=>m.some(w=>w.test(P))}else g.matchesPath=void 0;n.push(g)}),[...e,...n]}function gs(t){const e=[],r=[];return t.forEach(n=>{const{type:i,attributes:a={},state:o={}}=n.page||{};if(i==="standard__objectPage")if(Et(a.actionName))e.push(n);else{let c;a.actionName==="list"?(c=y(y({},n),{},{page:y(y({},n.page),{},{attributes:y({},a),state:y({},o)})}),c.page.attributes.actionName="home"):a.actionName==="home"?(c=y(y({},n),{},{page:y(y({},n.page),{},{attributes:y({},a),state:y({},o)})}),c.page.attributes.actionName="list"):a.actionName||(n.page.attributes.actionName="home",c=y(y({},n),{},{page:y(y({},n.page),{},{attributes:y({},a),state:y({},o)})}),c.page.attributes.actionName="list"),e.push(n,c)}else r.push(n)}),[...e,...r]}function Et(t){return t&&t.length>1?t.startsWith(":"):!1}function ve(t=""){return t=t||"",decodeURIComponent(t)}function Ps(t){t=t||"";const e=t.indexOf("#");e>=0&&(t=t.substring(0,e));const r=t.indexOf("?"),n=r>=0?t.substr(r+1):null,i={};return n&&n.split("&").forEach(a=>{if(a.indexOf("=")>=0){const[o,c=""]=a.split("=");i[ve(o)]=ve(c)}else i[ve(a)]=null}),i}function bs(t,e){const{regex:r,params:n}=e,i=r.exec(t);if(i){const[,...a]=i,o={};return n.forEach((c,u)=>{const{name:s}=c,d=a[u];o[s]=d&&ve(d)}),o}return null}function ys(t,e){if(t&&e){const{queryMatcher:r}=e,n=r(t);if(n){const i={};return Object.keys(n).forEach(a=>{const o=n[a],{value:c,routeParamName:u}=o,s=u?u.substr(1):a;i[s]=c&&ve(c)}),i}}return null}function vs(t,e){const{compiledQuery:r}=e,n=Object.keys(r).filter(a=>{const{literalValue:o}=r[a];return!o}),i={};return Object.keys(t).forEach(a=>{const o=t[a];n.indexOf(a)<0&&(i[a]=o)}),i}function Es(t,e){if(e){const{original:{page:{type:r="",attributes:n={},state:i={}}={}}={}}=e,a=new URL(t,window.location).pathname,o=a==="/"?"/":a.replace(/\/$/,""),c=Ps(t),u=bs(o,e),s=ys(c,e);if(u&&s){const d=y(y({},u),s),p={};Object.keys(n).forEach(g=>{const m=n[g];let P;if(m&&Et(m)){const w=m.substr(1);P=d[w]}else P=m;p[g]=P});const h={};Object.keys(i).forEach(g=>{const m=i[g];let P;if(m&&Et(m)){const w=m.substr(1);P=d[w]}else P=m;h[g]=P});const b=vs(c,e);return{type:r,attributes:y({},p),state:y(y({},b),h)}}}return null}const Be={};function pn(t){const{pathname:e,search:r,hash:n}=new URL(t,window.location.origin);return{pathname:e,search:r,hash:n}}async function Os(t){const{pathname:e,search:r,hash:n}=pn(t);if(Be[e])return Be[e]+r+n;if(Object.values(Be).includes(e))return t;try{const{redirected:i,url:a}=await ie.fetch(t,{basePath:"",method:"HEAD",isNonApiRequest:!0});if(i){const o=pn(a).pathname;return Be[e]=o,o+r+n}}catch(i){de(`Unable to fetch canonical URL for ${t}`,`error:
| `,i)}return null}function ws(t){return async function({detail:r}){const{route:n,routeDefinition:i}=r;if(!i?.metadata?.hasVanityURL)return;const a=t.generateUrl(n.pageReference),o=await Os(a);if(o&&o!==a){const c={type:"standard__webPage",attributes:{url:o}};be(t.contextId,c,!0)}}}class mn{constructor(e){this.callback=void 0,this.callback=e}dispose(){}update(e){const r=et.default.find(n=>n.id===e.id)?.view;this.callback({viewset:{default:()=>J.load(qt(r),"webruntime/app/v/1")}})}}f.registerDecorators(mn,{fields:["callback"]});var Cs=f.registerComponent(mn,{tmpl:rt});const fn="redirectPageContext";function hn(t){return t?.state?.[fn]||null}function Ns(t,e,{current:r,next:{route:n}={}}={}){return hn(n)?(r?window.location.assign(gn(n)):be(t,e.page,!0),!0):!1}function gn(t){if(!t)return null;const e=hn(t)||window.btoa(window.encodeURIComponent(JSON.stringify(t)));return`${$.default}/?${fn}=${e}`}const Rs=[{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:({attributes:t={}},{name:e})=>t.objectApiName==="ProductCategory"?e==="categoryPath":t.objectApiName==="OrderSummary"?!1:e!=="categoryPath"}];function Ts(t){return Rs.find(e=>t.type===e.type)}function Is(t,e,r){if(e.attributes.recordId)return e;const n=r.pathPatterns[0],i=t.match(n);if(i){const[,a,,o]=i;e.attributes.recordId=o,e.state=e.state||{};try{e.state.categoryPath=decodeURIComponent(a)}catch(c){e.state.categoryPath=a}}return e}function $s(t,e){if(t.state?.categoryPath?.includes("/")){let[r,n]=e.split("?");return r=r.replace(/%2F/g,"/"),n=n?`?${n}`:"",r+n}return e}function Ss(t){return t.attributes&&t.attributes.contentKey&&(t.attributes.urlAlias=t.attributes.contentKey,delete t.attributes.contentKey),t}function As(t,e){const{params:r,match:n}=e;r.forEach(i=>{const{type:a,name:o,value:c}=i;n&&!n(t,i)||t?.[a]?.[o]||(t[a]||(t[a]={}),t[a][o]=c)})}function Pn(t={}){const e=Ts(t);e&&As(t,e)}const Ot=`${Y}-framework-router`;performance.mark(Ot);const Ee=gs(hs(vi(et.default)));Ee.forEach(t=>{t.handler=()=>new Promise(e=>{e({default:Cs})})});const Q=Ee.find(t=>t.metadata.isDefault),bn=et.default.every(t=>t.metadata.isPublic!==!1),js={basePath:$.default,caseSensitive:!0,routes:Ee,DEPRECATED_getRouteFromUrl:Ds,DEPRECATED_getUrlFromRoute:Ls},D=us(js);window.performance.measure(Ot,Ot);function Ds(t,e){const r=new URL(t.replace($.default,""),window.location.href),{pathname:n,search:i}=r,a=n==="/"?"/":n.replace(/\/$/,"");let o;const c=Ee.find(d=>d.matchesPath&&d.matchesPath(a))||null;if(c){const d=D.compiledRoutes.find(p=>p.original?.uri===c.uri&&p.original?.page?.attributes?.name===c.page?.attributes?.name);o=Es(a+i,d)}else o=e(t);if(!o)return Q?.page?Q.page:null;const{type:u,attributes:s={}}=o;if(u==="standard__recordPage"&&s.objectApiName==="ProductCategory"){const d=Ee.find(p=>p.page?.type==="standard__recordPage"&&p.page?.attributes?.objectApiName==="ProductCategory");o=Is(t,o,d)}return Pn(o),o}function Ls(t={},e){const{type:r,attributes:n={}}=t;let i;return r==="standard__webPage"?(i=n.url,i==null?"":vn(i)):(r==="standard__managedContentPage"&&(t=Ss(t)),Pn(t),i=e(t),r==="standard__recordPage"&&n.objectApiName==="ProductCategory"&&(i=$s(t,i)),!i&&bn&&(i=gn(t)),i)}async function Ms({detail:t}={}){const{route:e,routeDefinition:r}=t.next;if(r?.metadata?.isPublic!==!1)return!0;const{default:n}=await J.load("@app/user/v/1");if(n.isGuest){const i=En(e.pageReference);return i&&(window.location.href=`${i}`),!1}return!0}function xs(t){Ns(D.contextId,Q,t.detail)&&t.preventDefault()}async function Us({detail:{address:t,message:e,code:r}}){if(de(`Routing error: ${e}`),r!==O.PRENAV_FAILED.code){if(r===O.MISSING_ROUTE.code&&!Q&&t?.includes("redirectPageContext=")){window.location.assign(t);return}if(Q?.metadata?.isPublic===!1){const{default:n}=await J.load("@app/user/v/1");if(n.isGuest)return}wt(Q.page)}}function _s(t){const e=t.detail.address;if(!cn.runSync(e)){t.preventDefault();return}const{type:r,attributes:{url:n}={url:null}}=e;if(r==="standard__webPage"){if(yn(n)){window.open(n),t.preventDefault();return}const i=D.parseUrl(n);bn&&(!i||i===Q?.page)&&(window.location.assign(vn(n)),t.preventDefault())}}function yn(t){return new RegExp("^([a-z]+://|//)","i").test(t)}function vn(t){return yn(t)?t:$.default&&t!==$.default&&t.indexOf(`${$.default}/`)!==0?`${$.default}${t}`:t}function wt(t){be(D.contextId,t)}function En(t){return D.generateUrl(t)}function Ke(t,e=!0){return D.subscribe(t,e)}function On(t){t.addEventListener("prenavigate",vt.run.bind(vt)),t.addEventListener("prenavigate",Ms),t.addEventListener("prenavigate",cr),t.addEventListener("prenavigate",xs),t.addEventListener("handlenavigation",_s),t.addEventListener("postnavigate",is),t.addEventListener("postnavigate",as),t.addEventListener("postnavigate",ws(D)),t.addEventListener("errornavigate",Us)}var Fs=Object.freeze({__proto__:null,navigate:wt,generateUrl:En,subscribe:Ke,router:D,initializeRouterContainer:On});function ks(){return window.matchMedia("only screen and (min-width: 48em) and (max-width: 64em)").matches}function Gs(){return window.matchMedia("only screen and (max-width: 47.9375em)").matches}function Vs(){return ks()?"Medium":Gs()?"Small":"Large"}function wn(t){return t===void 0}const Hs="ValueChangedEvent";class Cn{constructor(e){this.type=Hs,this.value=e}}const{freeze:Nn,defineProperty:Bs,isExtensible:Ks}=Object,Ws="$$DeprecatedWiredElementHostKey$$",zs="$$DeprecatedWiredParamsMetaKey$$";function Qs(t,e){if(t==null||!Ks(t))throw new TypeError("adapter id must be extensible");if(typeof e!="function")throw new TypeError("adapter factory must be a callable");if("adapter"in t)throw new TypeError("adapter id is already associated to an adapter factory");const r=class extends tc{constructor(n){super(n);e(this.eventTarget)}};Nn(r),Nn(r.prototype),Bs(t,"adapter",{writable:!1,configurable:!1,value:r})}function qs(){}const{forEach:Ct,splice:Xs,indexOf:Js}=Array.prototype,Rn="connect",Tn="disconnect",In="config";function Nt(t,e){const r=Js.call(t,e);r>-1&&Xs.call(t,r,1)}function Ys(t){return Object.keys(t).length===0}function Zs(t,e){return e.length===0||e.some(r=>!wn(t[r]))}function ec(t,e,r){return r.some(n=>t[n]!==e[n])}class tc{constructor(e){this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=e,this.wiredElementHost=e[Ws],this.dynamicParamsNames=e[zs],this.eventTarget={addEventListener:(r,n)=>{switch(r){case Rn:{this.connecting.push(n);break}case Tn:{this.disconnecting.push(n);break}case In:{this.configuring.push(n),this.currentConfig!==void 0&&n.call(void 0,this.currentConfig);break}default:throw new Error(`Invalid event type ${r}.`)}},removeEventListener:(r,n)=>{switch(r){case Rn:{Nt(this.connecting,n);break}case Tn:{Nt(this.disconnecting,n);break}case In:{Nt(this.configuring,n);break}default:throw new Error(`Invalid event type ${r}.`)}},dispatchEvent:r=>{if(r instanceof Cn){const n=r.value;this.callback(n)}else{if(r.type==="wirecontextevent")return this.wiredElementHost.dispatchEvent(r);throw new Error(`Invalid event type ${r.type}.`)}return!1}}}update(e){this.isFirstUpdate&&(this.isFirstUpdate=!1,!Ys(e)&&!Zs(e,this.dynamicParamsNames))||(wn(this.currentConfig)||ec(e,this.currentConfig,this.dynamicParamsNames))&&(this.currentConfig=e,Ct.call(this.configuring,r=>{r.call(void 0,e)}))}connect(){Ct.call(this.connecting,e=>e.call(void 0))}disconnect(){Ct.call(this.disconnecting,e=>e.call(void 0))}}var rc=Object.freeze({__proto__:null,ValueChangedEvent:Cn,register:Qs,registerWireService:qs});const l="/services/data/v57.0",nc={"CommerceCatalogController.getProductCategoryPath":{urlPath:l+"/commerce/webstores/${webstoreId}/product-category-path/product-categories/${productCategoryId}",urlPathParamNames:["productCategoryId","webstoreId"],method:"GET"},"CommerceCatalogController.getProducts":{urlPath:l+"/commerce/webstores/${webstoreId}/products",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceCatalogController.getProduct":{urlPath:l+"/commerce/webstores/${webstoreId}/products/${productId}",urlPathParamNames:["productId","webstoreId"],method:"GET"},"HSRCommerceCatalogController.getProductCategoryPathHSR":{urlPath:l+"/commerce/webstores/${webstoreId}/versions/${versionId}/product-categories/${productCategoryId}/product-category-path",urlPathParamNames:["productCategoryId","versionId","webstoreId"],method:"GET"},"HSRCommerceCatalogController.getProductHSR":{urlPath:l+"/commerce/webstores/${webstoreId}/versions/${versionId}/products/${productId}",urlPathParamNames:["productId","versionId","webstoreId"],method:"GET"},"CommerceStorePricingController.getProductPrices":{urlPath:l+"/commerce/webstores/${webstoreId}/pricing/products",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceStorePricingController.getProductPrice":{urlPath:l+"/commerce/webstores/${webstoreId}/pricing/products/${productId}",urlPathParamNames:["productId","webstoreId"],method:"GET"},"CommunitiesController.getCommunity":{urlPath:l+"/connect/communities/${communityId}",urlPathParamNames:["communityId"],method:"GET"},"CommunitiesController.ingestRecord":{urlPath:l+"/connect/communities/${communityId}/microbatching",urlPathParamNames:["communityId"],inputRepresentation:"requestIngestionInput",method:"POST"},"MissionsController.purgeUserMissionsActivities":{urlPath:l+"/connect/communities/${communityId}/missions/activities/purge-job",urlPathParamNames:["communityId"],method:"POST"},"CommerceSearchController.searchProducts":{urlPath:l+"/commerce/webstores/${webstoreId}/search/product-search",urlPathParamNames:["webstoreId"],inputRepresentation:"productSearchInput",method:"POST"},"NavigationMenuController.getCommunityNavigationMenu":{urlPath:l+"/connect/communities/${communityId}/navigation-menu/navigation-menu-items",urlPathParamNames:["communityId"],method:"GET"},"MarketingIntegrationController.getForm":{urlPath:l+"/sites/${siteId}/marketing-integration/forms/${formId}",urlPathParamNames:["formId","siteId"],method:"GET"},"MarketingIntegrationController.saveForm":{urlPath:l+"/sites/${siteId}/marketing-integration/forms",urlPathParamNames:["siteId"],inputRepresentation:"formInput",method:"POST"},"MarketingIntegrationController.submitForm":{urlPath:l+"/sites/${siteId}/marketing-integration/forms/${formId}/data",urlPathParamNames:["formId","siteId"],inputRepresentation:"formSubmissionInput",method:"POST"},"SeoPropertiesController.getRecordSeoProperties":{urlPath:l+"/connect/communities/${communityId}/seo/properties/${recordId}",urlPathParamNames:["communityId","recordId"],method:"GET"},"FlowBuilderController.getRules":{urlPath:l+"/connect/interaction/builder/rules",urlPathParamNames:[],method:"GET"},"OrchestrationController.getOrchestrationInstanceCollection":{urlPath:l+"/connect/interaction/orchestration/instances",urlPathParamNames:[],method:"GET"},"FlowRuntimeConnectController.navigateFlow":{urlPath:l+"/connect/interaction/runtime/navigateFlow",urlPathParamNames:[],inputRepresentation:"request",method:"POST"},"FlowRuntimeConnectController.resumeFlow":{urlPath:l+"/connect/interaction/runtime/resumeFlow",urlPathParamNames:[],method:"POST"},"FlowRuntimeConnectController.startFlow":{urlPath:l+"/connect/interaction/runtime/startFlow",urlPathParamNames:[],method:"POST"},"ExperienceModelTypeSystemController.getBlockTypes":{urlPath:l+"/connect/experience-model/block-types",urlPathParamNames:[],method:"GET"},"ExperienceModelTypeSystemController.getBlockType":{urlPath:l+"/connect/experience-model/block-types/${fullyQualifiedName}",urlPathParamNames:["fullyQualifiedName"],method:"GET"},"ExperienceModelTypeSystemController.getContentTypes":{urlPath:l+"/connect/experience-model/content-types",urlPathParamNames:[],method:"GET"},"ExperienceModelTypeSystemController.getContentType":{urlPath:l+"/connect/experience-model/content-types/${fullyQualifiedName}",urlPathParamNames:["fullyQualifiedName"],method:"GET"},"ExperienceModelTypeSystemController.getPropertyTypes":{urlPath:l+"/connect/experience-model/property-types",urlPathParamNames:[],method:"GET"},"ExperienceModelTypeSystemController.getPropertyType":{urlPath:l+"/connect/experience-model/property-types/${fullyQualifiedName}",urlPathParamNames:["fullyQualifiedName"],method:"GET"},"ManagedContentController.getCollectionItems":{urlPath:l+"/connect/cms/collections/${collectionKeyOrId}",urlPathParamNames:["collectionKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentByTopicsAndContentKeys":{urlPath:l+"/connect/communities/${communityId}/managed-content/delivery",urlPathParamNames:["communityId"],method:"GET"},"ManagedContentController.getPublishedManagedContentListByContentKey":{urlPath:l+"/connect/communities/${communityId}/managed-content/delivery/contents",urlPathParamNames:["communityId"],method:"GET"},"ManagedContentController.createDeployment":{urlPath:l+"/cms/deployments",urlPathParamNames:[],inputRepresentation:"DeploymentInput",method:"POST"},"ManagedContentController.createManagedContent":{urlPath:l+"/connect/cms/contents",urlPathParamNames:[],inputRepresentation:"ManagedContentInputParam",method:"POST"},"ManagedContentController.createManagedContentWithMedia":{urlPath:l+"/connect/cms/contents",urlPathParamNames:[],inputRepresentation:"ManagedContentInputParam",method:"POST"},"ManagedContentController.getManagedContent":{urlPath:l+"/connect/cms/contents/${contentKeyOrId}",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentOrchestrationDefinitions":{urlPath:l+"/connect/cms/contents/orchestration-definitions",urlPathParamNames:[],method:"GET"},"ManagedContentController.getManagedContentOrchestrationInstances":{urlPath:l+"/connect/cms/contents/orchestration-instances",urlPathParamNames:[],method:"GET"},"ManagedContentController.createManagedContentOrchestrationInstance":{urlPath:l+"/connect/cms/contents/orchestration-instances",urlPathParamNames:[],inputRepresentation:"mContentOrchInstanceInput",method:"POST"},"ManagedContentController.getManagedContentPreviews":{urlPath:l+"/cms/spaces/${contentSpaceId}/preview-endpoints",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.publish":{urlPath:l+"/connect/cms/contents/publish",urlPathParamNames:[],inputRepresentation:"publishInput",method:"POST"},"ManagedContentController.getManagedContentReferencedBy":{urlPath:l+"/connect/cms/contents/${contentKeyOrId}/referenced-by",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentRunningOrchestrationHistory":{urlPath:l+"/connect/cms/contents/orchestration-history-events",urlPathParamNames:[],method:"GET"},"ManagedContentController.searchManagedContentForItems":{urlPath:l+"/connect/cms/items/search",urlPathParamNames:[],method:"GET"},"ManagedContentController.getManagedContentSpaces":{urlPath:l+"/connect/cms/spaces",urlPathParamNames:[],method:"GET"},"ManagedContentController.getManagedContentSpaceFolderItems":{urlPath:l+"/connect/cms/folders/${folderId}/items",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.createTranslationJob":{urlPath:l+"/connect/managed-content/translation",urlPathParamNames:[],inputRepresentation:"translationRequest",method:"POST"},"ManagedContentController.createTranslationV2Job":{urlPath:l+"/connect/cms/content/spaces/${contentSpaceId}/translation",urlPathParamNames:["contentSpaceId"],inputRepresentation:"translationV2Request",method:"POST"},"ManagedContentController.unpublish":{urlPath:l+"/connect/cms/contents/unpublish",urlPathParamNames:[],inputRepresentation:"unpublishInput",method:"POST"},"ManagedContentController.deleteManagedContentVariant":{urlPath:l+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],method:"DELETE"},"ManagedContentController.getManagedContentVariant":{urlPath:l+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],method:"GET"},"ManagedContentController.replaceManagedContentVariant":{urlPath:l+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],inputRepresentation:"ManagedContentVariantInputParam",method:"PUT"},"ManagedContentController.replaceManagedContentVariantWithMedia":{urlPath:l+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],inputRepresentation:"ManagedContentVariantInputParam",method:"PUT"},"ManagedContentController.getManagedContentVariantVersionCollection":{urlPath:l+"/connect/cms/contents/variants/${variantId}/versions",urlPathParamNames:["variantId"],method:"GET"},"ManagedContentDeliveryController.getCollectionItemsForChannel":{urlPath:l+"/connect/cms/delivery/channels/${channelId}/collections/${collectionKeyOrId}",urlPathParamNames:["channelId","collectionKeyOrId"],method:"GET"},"ManagedContentDeliveryController.getCollectionItemsForSite":{urlPath:l+"/connect/sites/${siteId}/cms/delivery/collections/${collectionKeyOrId}",urlPathParamNames:["collectionKeyOrId","siteId"],method:"GET"},"ManagedContentDeliveryController.getCollectionMetadataForChannel":{urlPath:l+"/connect/cms/delivery/channels/${channelId}/collections/${collectionKeyOrId}/metadata",urlPathParamNames:["channelId","collectionKeyOrId"],method:"GET"},"ManagedContentDeliveryController.getCollectionMetadataForSite":{urlPath:l+"/connect/sites/${siteId}/cms/delivery/collections/${collectionKeyOrId}/metadata",urlPathParamNames:["collectionKeyOrId","siteId"],method:"GET"},"ManagedContentTypeController.getContentTypeSchema":{urlPath:l+"/connect/cms/content-types/${contentTypeFQN}",urlPathParamNames:["contentTypeFQN"],method:"GET"},"SitesController.searchSite":{urlPath:l+"/connect/sites/${siteId}/search",urlPathParamNames:["siteId"],method:"GET"},"ActionsController.getGlobalActions":{urlPath:l+"/ui-api/actions/global",urlPathParamNames:[],method:"GET"},"ActionsController.getActionLayout":{urlPath:l+"/ui-api/actions/layout/${actionApiName}",urlPathParamNames:["actionApiName"],method:"GET"},"ActionsController.getListViewActions":{urlPath:l+"/ui-api/actions/list-view/${listViewIds}",urlPathParamNames:["listViewIds"],method:"GET"},"ActionsController.getLookupActions":{urlPath:l+"/ui-api/actions/lookup/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"ActionsController.getMRUListActions":{urlPath:l+"/ui-api/actions/mru-list/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"ActionsController.getObjectCreateActions":{urlPath:l+"/ui-api/actions/object/${objectApiName}/record-create",urlPathParamNames:["objectApiName"],method:"GET"},"ActionsController.getActionOverrides":{urlPath:l+"/ui-api/actions/overrides/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ActionsController.performQuickAction":{urlPath:l+"/ui-api/actions/perform-quick-action/${actionApiName}",urlPathParamNames:["actionApiName"],inputRepresentation:"performQuickActionInput",method:"POST"},"ActionsController.getQuickActionDefaults":{urlPath:l+"/ui-api/actions/record-defaults/${actionApiName}",urlPathParamNames:["actionApiName"],method:"GET"},"ActionsController.getRecordEditActions":{urlPath:l+"/ui-api/actions/record/${recordIds}/record-edit",urlPathParamNames:["recordIds"],method:"GET"},"ActionsController.getRecordActions":{urlPath:l+"/ui-api/actions/record/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"ActionsController.getRelatedListsActions":{urlPath:l+"/ui-api/actions/record/${recordIds}/related-list/batch/${relatedListIds}",urlPathParamNames:["recordIds","relatedListIds"],method:"GET"},"ActionsController.postRelatedListsActions":{urlPath:l+"/ui-api/actions/record/${recordIds}/related-list/batch",urlPathParamNames:["recordIds"],inputRepresentation:"listRecordActionsQuery",method:"POST"},"ActionsController.getRelatedListRecordActions":{urlPath:l+"/ui-api/actions/record/${recordIds}/related-list-record/${relatedListRecordIds}",urlPathParamNames:["recordIds","relatedListRecordIds"],method:"GET"},"ActionsController.getRelatedListActions":{urlPath:l+"/ui-api/actions/record/${recordIds}/related-list/${relatedListId}",urlPathParamNames:["recordIds","relatedListId"],method:"GET"},"ActionsController.postRelatedListActions":{urlPath:l+"/ui-api/actions/record/${recordIds}/related-list/${relatedListId}",urlPathParamNames:["recordIds","relatedListId"],inputRepresentation:"listRecordActionsQuery",method:"POST"},"AppsController.getAppByID":{urlPath:l+"/ui-api/apps/${appId}",urlPathParamNames:["appId"],method:"GET"},"AppsController.getAccessibleApps":{urlPath:l+"/ui-api/apps",urlPathParamNames:[],method:"GET"},"AppsController.getNavItems":{urlPath:l+"/ui-api/nav-items",urlPathParamNames:[],method:"GET"},"ListUiController.getListsByObjectName":{urlPath:l+"/ui-api/list-ui/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ListUiController.getListInfosById":{urlPath:l+"/ui-api/list-info/batch",urlPathParamNames:[],method:"GET"},"ListUiController.getListInfosByName":{urlPath:l+"/ui-api/list-info/batch",urlPathParamNames:[],method:"GET"},"ListUiController.getListInfoById":{urlPath:l+"/ui-api/list-info/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListInfoByName":{urlPath:l+"/ui-api/list-info/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.getListRecordsById":{urlPath:l+"/ui-api/list-records/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListRecordsByName":{urlPath:l+"/ui-api/list-records/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.getListUiById":{urlPath:l+"/ui-api/list-ui/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListUiByName":{urlPath:l+"/ui-api/list-ui/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"MruListUiController.getMruListInfo":{urlPath:l+"/ui-api/mru-list-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"MruListUiController.getMruListRecords":{urlPath:l+"/ui-api/mru-list-records/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"MruListUiController.getMruListUi":{urlPath:l+"/ui-api/mru-list-ui/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getAggregateUi":{urlPath:l+"/ui-api/aggregate-ui",urlPathParamNames:[],method:"GET"},"RecordUiController.executeAggregateUi":{urlPath:l+"/ui-api/aggregate-ui",urlPathParamNames:[],inputRepresentation:"input",method:"POST"},"RecordUiController.getRecordsWithFields":{urlPath:l+"/ui-api/records/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getRecordsWithLayouts":{urlPath:l+"/ui-api/records/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getDedupeConfig":{urlPath:l+"/ui-api/duplicates/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getDuplicateConfig":{urlPath:l+"/ui-api/duplicates/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getFormByName":{urlPath:l+"/ui-api/forms/${apiName}",urlPathParamNames:["apiName"],method:"GET"},"RecordUiController.executeGraphQL":{urlPath:l+"/graphql",urlPathParamNames:[],inputRepresentation:"queryInput",method:"POST"},"RecordUiController.getLayout":{urlPath:l+"/ui-api/layout/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getLayoutUserState":{urlPath:l+"/ui-api/layout/${objectApiName}/user-state",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.updateLayoutUserState":{urlPath:l+"/ui-api/layout/${objectApiName}/user-state",urlPathParamNames:["objectApiName"],inputRepresentation:"userState",method:"PATCH"},"RecordUiController.getObjectInfos":{urlPath:l+"/ui-api/object-info/batch/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"RecordUiController.getObjectInfo":{urlPath:l+"/ui-api/object-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getPicklistValuesByRecordType":{urlPath:l+"/ui-api/object-info/${objectApiName}/picklist-values/${recordTypeId}",urlPathParamNames:["objectApiName","recordTypeId"],method:"GET"},"RecordUiController.getPicklistValues":{urlPath:l+"/ui-api/object-info/${objectApiName}/picklist-values/${recordTypeId}/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName","recordTypeId"],method:"GET"},"RecordUiController.findDuplicates":{urlPath:l+"/ui-api/predupe",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.postRecordAvatarAssociation":{urlPath:l+"/ui-api/record-avatars/${recordId}/association",urlPathParamNames:["recordId"],inputRepresentation:"input",method:"POST"},"RecordUiController.getRecordAvatars":{urlPath:l+"/ui-api/record-avatars/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getRecordCloneDefaults":{urlPath:l+"/ui-api/record-defaults/clone/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordCreateDefaults":{urlPath:l+"/ui-api/record-defaults/create/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.createRecord":{urlPath:l+"/ui-api/records",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.deleteRecord":{urlPath:l+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"DELETE"},"RecordUiController.getRecordWithFields":{urlPath:l+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordWithLayouts":{urlPath:l+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.updateRecord":{urlPath:l+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],inputRepresentation:"recordInput",method:"PATCH"},"RecordUiController.getRecordDefaultsTemplateClone":{urlPath:l+"/ui-api/record-defaults/template/clone/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordDefaultsTemplateForCreate":{urlPath:l+"/ui-api/record-defaults/template/create/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getRecordUis":{urlPath:l+"/ui-api/record-ui/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getValidationRulesInfo":{urlPath:l+"/ui-api/object-info/${objectApiName}/validation-rules-info",urlPathParamNames:["objectApiName"],method:"GET"},"RelatedListUiController.getRelatedListInfoBatch":{urlPath:l+"/ui-api/related-list-info/batch/${parentObjectApiName}/${relatedListNames}",urlPathParamNames:["parentObjectApiName","relatedListNames"],method:"GET"},"RelatedListUiController.getRelatedListInfoCollection":{urlPath:l+"/ui-api/related-list-info/${parentObjectApiName}",urlPathParamNames:["parentObjectApiName"],method:"GET"},"RelatedListUiController.getRelatedListInfo":{urlPath:l+"/ui-api/related-list-info/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.getRelatedListInfoByApiName":{urlPath:l+"/ui-api/related-list-info/${parentObjectApiName}/${relatedListId}",urlPathParamNames:["parentObjectApiName","relatedListId"],method:"GET"},"RelatedListUiController.updateRelatedListInfoByApiName":{urlPath:l+"/ui-api/related-list-info/${parentObjectApiName}/${relatedListId}",urlPathParamNames:["parentObjectApiName","relatedListId"],inputRepresentation:"relatedListInfoInput",method:"PATCH"},"RelatedListUiController.getRelatedListPreferencesBatch":{urlPath:l+"/ui-api/related-list-preferences/batch/${preferencesIds}",urlPathParamNames:["preferencesIds"],method:"GET"},"RelatedListUiController.getRelatedListPreferences":{urlPath:l+"/ui-api/related-list-preferences/${preferencesId}",urlPathParamNames:["preferencesId"],method:"GET"},"RelatedListUiController.updateRelatedListPreferences":{urlPath:l+"/ui-api/related-list-preferences/${preferencesId}",urlPathParamNames:["preferencesId"],inputRepresentation:"relatedListUserPreferencesInput",method:"PATCH"},"RelatedListUiController.getRelatedListsRecordCount":{urlPath:l+"/ui-api/related-list-count/batch/${parentRecordId}/${relatedListNames}",urlPathParamNames:["parentRecordId","relatedListNames"],method:"GET"},"RelatedListUiController.getRelatedListRecordCount":{urlPath:l+"/ui-api/related-list-count/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.getRelatedListRecordsBatch":{urlPath:l+"/ui-api/related-list-records/batch/${parentRecordId}/${relatedListIds}",urlPathParamNames:["parentRecordId","relatedListIds"],method:"GET"},"RelatedListUiController.postRelatedListRecordsBatch":{urlPath:l+"/ui-api/related-list-records/batch/${parentRecordId}",urlPathParamNames:["parentRecordId"],inputRepresentation:"listRecordsQuery",method:"POST"},"RelatedListUiController.getRelatedListRecords":{urlPath:l+"/ui-api/related-list-records/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.postRelatedListRecords":{urlPath:l+"/ui-api/related-list-records/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],inputRepresentation:"listRecordsQuery",method:"POST"},"SearchUiController.searchResultsKeyword":{urlPath:l+"/ui-api/search/results/keyword",urlPathParamNames:[],inputRepresentation:"options",method:"POST"},"SearchUiController.getSearchFilterMetadata":{urlPath:l+"/ui-api/search-info/${objectApiName}/filters",urlPathParamNames:["objectApiName"],method:"GET"},"SearchUiController.getFilterOptions":{urlPath:l+"/ui-api/search-info/${objectApiName}/filters/${filterApiName}/options",urlPathParamNames:["filterApiName","objectApiName"],method:"GET"},"SearchUiController.searchResults":{urlPath:l+"/ui-api/search/results",urlPathParamNames:[],inputRepresentation:"options",method:"POST"},"LookupController.getLookupMetadata":{urlPath:l+"/ui-api/search-info/${objectApiName}/lookup/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName"],method:"GET"},"LookupController.getLookupRecords":{urlPath:l+"/ui-api/lookups/${objectApiName}/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName"],method:"GET"}};function ic(t){return nc[t]}function ac(t){ie.sendBeacon({path:zt,payload:JSON.stringify(t),contentType:"text/plain;charset=UTF-8"})}function oc(t,e){document.dispatchEvent(new CustomEvent("client-error",{detail:{error:t,type:e}}))}function Oe({subject:t,error:e,wcstack:r,type:n=oe.UNKNOWN_ERROR}){r=r||e.wcstack;const{message:i,stack:a}=e,{hostname:o,pathname:c}=window.location,s={subject:t,message:i,stack:a,wcstack:r,location:{hostname:o,pathname:c}};de(a||s),oc(s,n),ac(s)}function $n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function We(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$n(Object(r),!0).forEach(function(n){sc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$n(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function sc(t,e,r){return e=cc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cc(t){var e=lc(t,"string");return typeof e=="symbol"?e:String(e)}function lc(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}async function uc(t,e){const[r,n]=t.split(".");if(r==="ApexActionController")return pc(n,e);const i=ic(t);if(i)return dc(i,e);throw new Error(`Unsupported controller action: ${r}.${n}`)}async function dc({urlPath:t,urlPathParamNames:e,method:r,inputRepresentation:n},i){const a=i&&We({},i)||{};let o=e.reduce((d,p)=>{const h=a[p];return delete a[p],d.replace(`\${${p}}`,encodeURIComponent(h))},t),c;(r==="POST"||r==="PATCH")&&a[n]&&(c=JSON.stringify(a[n]),delete a[n]),Object.keys(a).length&&(o+=`?${Object.entries(a).filter(([,d])=>d!=null&&(!Array.isArray(d)||d.length)).map(([d,p])=>`${encodeURIComponent(d)}=${encodeURIComponent(p)}`).join("&")}`);const u=await ie.fetch(o,{method:r,body:c});let s;if(u.status===401&&Sn(),u.status!==204&&(s=await u.json()),s instanceof Array&&(s=s[0]),!u.ok)throw{status:u.status,data:We(We({},s),{},{statusCode:u.status})};return s}async function pc(t,e){if(t==="execute"){const{url:r,httpRequestOptions:n}=mc(t,e);return ie.fetch(r,n).then(i=>(i.status===401&&Sn(),i.status!==204?i.json():void 0)).then(i=>{if(i&&i.error&&i.error.length>0)throw i.error[0];return i})}throw new Error(`Unsupported Apex action: ${t}`)}function mc(t,e){if((!e||typeof e!="object"||Object.keys(e).length===0)&&Oe({subject:"Apex API action error - invalid params",type:oe.APEX_ACTION_ERROR,error:new Error(`Apex ${t} action called with invalid params: '${JSON.stringify(e)}'.`)}),e&&e.cacheable===!0){const r=`/apex/${t}?${fc(e)}`;if(r.length<=di)return{url:r,httpRequestOptions:{method:"GET",basePath:Ht.default}}}return{url:`/apex/${t}`,httpRequestOptions:{method:"POST",body:JSON.stringify(e),basePath:Ht.default}}}function fc(t){const e=We({},t),r=e.params;if(r&&typeof r=="object"){const n=Object.keys(r).sort().reduce((i,a)=>(i[a]=r[a],i),{});e.params=JSON.stringify(n)}return Object.keys(e).filter(n=>e[n]!==void 0&&e[n]!=null).sort().map(n=>`${n}=${encodeURIComponent(e[n])}`).join("&")}function Sn(){ln.runSync()}var hc=Object.freeze({__proto__:null,logger:mr,createComponent:null,renderComponent:null,getDefinition:null,executeGlobalController:uc});const gc=f.parseFragment`<div class="dataLayerObject${0}" hidden${2}></div>`;function ze(t,e,r,n){const{st:i}=t;return[i(gc(),1)]}var Pc=f.registerTemplate(ze);ze.stylesheets=[],ze.renderMode="light",f.freezeTemplate(ze);function C(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var bc=0;function q(t){return"__private_"+bc+++"_"+t}var we=q("templateRenderedOnce"),Ce=q("scriptDataAttributes"),Ne=q("catalogObjectId"),Re=q("catalogObjectType"),Te=q("attributes"),Ie=q("relatedCatalogObjects"),$e=q("customObject");class Rt extends f.LightningElement{constructor(...e){super(...e);Object.defineProperty(this,we,{writable:!0,value:!1}),Object.defineProperty(this,Ce,{writable:!0,value:void 0}),Object.defineProperty(this,Ne,{writable:!0,value:void 0}),Object.defineProperty(this,Re,{writable:!0,value:void 0}),Object.defineProperty(this,Te,{writable:!0,value:void 0}),Object.defineProperty(this,Ie,{writable:!0,value:void 0}),Object.defineProperty(this,$e,{writable:!0,value:void 0})}set scriptDataAttributes(e){C(this,Ce)[Ce]=e,this.invokeRenderedCallback()}get scriptDataAttributes(){return C(this,Ce)[Ce]}set catalogObjectId(e){C(this,Ne)[Ne]=e,this.invokeRenderedCallback()}get catalogObjectId(){return C(this,Ne)[Ne]}set catalogObjectType(e){C(this,Re)[Re]=e,this.invokeRenderedCallback()}get catalogObjectType(){return C(this,Re)[Re]}set attributes(e){C(this,Te)[Te]=e,this.invokeRenderedCallback()}get attributes(){return C(this,Te)[Te]}set relatedCatalogObjects(e){C(this,Ie)[Ie]=e,this.invokeRenderedCallback()}get relatedCatalogObjects(){return C(this,Ie)[Ie]}set customObject(e){C(this,$e)[$e]=e,this.invokeRenderedCallback()}get customObject(){return C(this,$e)[$e]}invokeRenderedCallback(){C(this,we)[we]&&this.renderedCallback()}renderedCallback(){if(this.scriptDataAttributes?.providerType){const e=this.querySelector("script");if(e)this.updateScriptElement(e);else{const r=this.querySelector(".dataLayerObject");r&&(this.isCatalogObject()||this.isCustomObject())&&this.createAndUpdateScriptElement(r)}}C(this,we)[we]=!0}createAndUpdateScriptElement(e){const r=document.createElement("script");r.type="application/json",e?.parentElement?.replaceChild(r,e),this.updateScriptElement(r)}updateScriptElement(e){e.setAttribute("data-provider-type",this.scriptDataAttributes?.providerType.toString()),e.textContent=JSON.stringify(this.scriptElementContent())}scriptElementContent(){return this.isCustomObject()?this.customObject:this.buildCatalogObject()}isCustomObject(){return!!this.customObject}isCatalogObject(){return!!(this.catalogObjectId&&this.catalogObjectType)}buildCatalogObject(){const e={id:"",type:""};return e.id=this.catalogObjectId,e.type=this.catalogObjectType,e.attributes=this.attributes,e.relatedCatalogObjects=this.relatedCatalogObjects,{catalogObject:e}}}Rt.renderMode="light",f.registerDecorators(Rt,{publicProps:{scriptDataAttributes:{config:3},catalogObjectId:{config:3},catalogObjectType:{config:3},attributes:{config:3},relatedCatalogObjects:{config:3},customObject:{config:3}}});var yc=f.registerComponent(Rt,{tmpl:Pc});const vc=[];function Qe(t,e,r,n){return vc}var qe=f.registerTemplate(Qe);Qe.stylesheets=[],Qe.renderMode="light",f.freezeTemplate(Qe);function Ec(t){return J.load(t,"webruntime/app/v/1")}function Oc(){const{userAgent:t}=navigator;return si.default&&t.includes(Qt.PUBLISHER)||t.includes(Qt.PLAYGROUND)}function wc(){Cc(),Ke(Nc)}function Cc(){document.addEventListener("notify-client-module",Rc)}function Nc(t){Tc("navigationcompleted",{routeResult:t})}function Rc({detail:t}){const{action:e,data:r}=t;switch(e){case"navigate":wt(r.routeObj,r.replaceState);break;default:pr(`No such action "${e}" exists.`);break}}function Tc(t,e){document.dispatchEvent(new CustomEvent("notify-mobile-module",{bubbles:!0,composed:!0,detail:{action:t,data:e}}))}async function Ic(){if(!Oc())return;const{hybridAppManager:t}=await J.load("mobileruntime/hybridAppManager/v/1");t(),wc()}async function $c(){if(!ci.default)return;const{start:t}=await J.load("webruntimedesign/designmode/v/1");/interactive|complete/.test(document.readyState)?t():document.addEventListener("DOMContentLoaded",t,!1)}function An(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function jn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?An(Object(r),!0).forEach(function(n){Sc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):An(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Sc(t,e,r){return e=Ac(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ac(t){var e=jc(t,"string");return typeof e=="symbol"?e:String(e)}function jc(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const Dc={navKey:"F6",f6RegionAttribute:"data-f6-region",f6RegionHighlightClass:"f6-highlight"};class Dn{constructor(e={}){this.regions=[],this.config=Dc,this.handleKeyDown=n=>{this.clearRegionHighlights(),n.key===this.config.navKey&&(n.ctrlKey||n.metaKey)&&(this.populateRegions(),this.handleNav(n))},this.handleClick=()=>{this.clearRegionHighlights()},this.elementFilter=n=>n.parentElement&&n.parentElement.matches(`*[${this.config.f6RegionAttribute}]`)?NodeFilter.FILTER_REJECT:n.matches(`*[${this.config.f6RegionAttribute}]`)&&this.isVisible(n)&&!this.isEmpty(n)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,this.config=jn(jn({},this.config),e);const r=document.createElement("style");r.innerText=`[${this.config.f6RegionAttribute}].${this.config.f6RegionHighlightClass} { position: relative; } [${this.config.f6RegionAttribute}].${this.config.f6RegionHighlightClass}::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; }`,r.setAttribute("type","text/css"),document.head.appendChild(r)}clearRegionHighlights(){for(const e of this.regions)e.classList.remove(this.config.f6RegionHighlightClass)}addRegionHighlight(e){e.classList.add(this.config.f6RegionHighlightClass)}focusIn(e){const r=e.querySelector('a[href],button:not([disabled]),input:not([type="hidden"]):not([disabled]),select:not([type="hidden"]):not([disabled]),textarea:not([type="hidden"]):not([disabled])');r?r.focus():(e.tabIndex="-1",e.focus())}getActiveElem({target:e}){do if(e.shadowRoot!=null){if(!e.shadowRoot.activeElement)return e;e=e.shadowRoot.activeElement}while(e.shadowRoot!=null);return e}handleNav(e){if(e.preventDefault(),this.regions.length===0)return;const r=this.getClosestRegionIndex(this.getActiveElem(e)),n=this.getNextRegionIndex(r,e.shiftKey);this.addRegionHighlight(this.regions[n]),this.focusIn(this.regions[n])}shadowContains(e,r){if(e===r||e.contains(r))return!0;if(e.shadowRoot){for(const n of e.shadowRoot.children)if(this.shadowContains(n,r))return!0}if(e.tagName==="SLOT"){for(const n of e.assignedElements())if(this.shadowContains(n,r))return!0}for(const n of e.children)if(this.shadowContains(n,r))return!0;return!1}getClosestRegionIndex(e){for(const[r,n]of this.regions.entries())if(this.shadowContains(n,e))return r;return-1}getNextRegionIndex(e,r){return r?e<=0?this.regions.length-1:e-1:e===this.regions.length-1?0:e+1}isVisible(e){return e===document.body||!(e instanceof Element)?!0:window.getComputedStyle(e).display.toLowerCase()==="none"?!1:this.isVisible(e.parentNode)}isEmpty(e){if(e.tagName==="SLOT"){for(const r of e.assignedElements())if(r.tagName!=="SLOT"||!this.isEmpty(r))return!1}for(const r of e.children)if(r.tagName!=="SLOT"||!this.isEmpty(r))return!1;return!0}populateRegions(){this.regions=[];const e=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT,this.elementFilter,!1);for(;e.nextNode();)this.regions.push(e.currentNode)}initialize(){document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("click",this.handleClick)}cleanUp(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("click",this.handleClick)}}f.registerDecorators(Dn,{fields:["regions","config","handleKeyDown","handleClick","elementFilter"]}),new Dn().initialize();const Lc={guestUuidCookieMaxAge:365*24*60*60};if(tt.default){let t=br(tt.default);ba(t)||(t=Pa()),document.cookie=`${tt.default}=${t};Max-Age=${Lc.guestUuidCookieMaxAge};SameSite=LAX;Path=/`;const e={name:"set-guest-uuid",user:{attributes:{guestUuid:t}}};document.dispatchEvent(new CustomEvent("experience_interaction",{bubbles:!0,composed:!0,detail:e}))}function Ln(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Xe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ln(Object(r),!0).forEach(function(n){Mc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ln(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Mc(t,e,r){return e=xc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xc(t){var e=Uc(t,"string");return typeof e=="symbol"?e:String(e)}function Uc(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Tt extends f.LightningElement{constructor(...e){super(...e);this.generatedTemplateHtml=qe,this.attributes={},this.routeParams={},this.previousRouteId=null,this.route={},this.isInitialized=void 0}render(){return this.generatedTemplateHtml}renderedCallback(){if(this.generatedTemplateHtml!==qe){const e=Xe(Xe({},this.route),{},{state:void 0});Qi({route:e,previousRouteId:this.previousRouteId})}this.isInitialized||(this.isInitialized=!0,window.performance.measure(`${Y}-app-bootstrap`))}updateTemplate(e){this.generatedTemplateHtml=e.html}updateRoute(e,r){const{state:n,attributes:i}=r;this.previousRouteId=this.route?.id||null,this.routeParams=Xe(Xe({},n),i),this.attributes=e.attributes(this,this.routeParams),this.route=r}restoreDefaultTemplate(){this.generatedTemplateHtml=qe}async connectedCallback(){await $c(),await Ic(),this.subscription=Ke(this.loadThemeLayout.bind(this))}async loadThemeLayout(e){let r=!1;const n=e.routeDefinition.view,i=oi.default[n];setTimeout(async()=>{!r&&this.themeLayout!==i&&this.restoreDefaultTemplate()},10);let a;try{a=await Ec(qt(i))}catch(o){await this.handleFetchViewFailed(o,e.routeDefinition.metadata?.isPublic)}if(!!a)try{r=!0,os(this.themeLayout!==i),this.themeLayout!==i&&(this.themeLayout=i,this.updateTemplate(a.default)),this.updateRoute(a.default,e.route)}catch(o){Oe({subject:"InnerApp.loadThemeLayout error",type:oe.FAILED_TO_LOAD_RESOURCE,error:o})}}async handleFetchViewFailed(e,r){await un.run({error:e,isPublic:r})&&Oe({subject:"InnerApp.loadThemeLayout#getViewModule error",type:oe.FAILED_TO_LOAD_RESOURCE,error:e})}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}}Tt.renderMode="light",f.registerDecorators(Tt,{publicMethods:["updateTemplate","updateRoute","restoreDefaultTemplate"],fields:["generatedTemplateHtml","attributes","routeParams","previousRouteId","route","isInitialized"]});var _c=f.registerComponent(Tt,{tmpl:qe});function Fc(t,e,r){var n=t?"["+t+"]":"";return"span.router-title"+n+" {position: absolute;margin: -1px;border: 0;padding: 0;width: 1px;height: 1px;overflow: hidden;clip: rect(0 0 0 0);text-transform: none;white-space: nowrap;}"}var It=[Fc],kc=void 0;const Gc=f.parseFragment`<span class="router-title${0}" aria-live="polite" aria-atomic="true"${2}></span>`,Vc={key:0},Hc=[];function V(t,e,r,n){const{s:i,st:a,f:o}=t;return o([i("",Vc,Hc,r),a(Gc(),2)])}var Bc=f.registerTemplate(V);V.slots=[""],V.stylesheets=[],V.renderMode="light",It&&V.stylesheets.push.apply(V.stylesheets,It),(It||kc)&&(V.stylesheetToken="lwr-routerContainer_routerContainer"),f.freezeTemplate(V);const Kc=j?f.createContextProvider(Ge):void 0,Wc=j?f.createContextProvider(Pe):void 0,zc=j?f.createContextProvider(ft):void 0;function $t(t,e,r,n){r&&n&&(n.setContext(e,t),r(e,{consumerConnectedCallback:n.subscribeContext.bind(n,e),consumerDisconnectedCallback:n.unsubscribeContext.bind(n,e)}))}const St="lwr.router.",Mn=`${St}navigate`,xn=`${St}view`,Qc=`${St}error`;var Un;(function(t){t[t.Start=0]="Start",t[t.End=1]="End"})(Un||(Un={}));const L=globalThis.performance,_n=typeof L!="undefined"&&typeof L.mark=="function"&&typeof L.clearMarks=="function"&&typeof L.measure=="function"&&typeof L.clearMeasures=="function";function At({id:t,specifier:e}){_n&&L.mark(t+(e?`.${e}`:""))}function Fn({id:t,specifier:e}){if(_n){const r=e?`.${e}`:"",n=t+r,i=`${t}.duration${r}`;L.measure(i,n),L.clearMarks(n),L.clearMeasures(i)}}function kn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function X(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?kn(Object(r),!0).forEach(function(n){qc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kn(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qc(t,e,r){return e=Xc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xc(t){var e=Jc(t,"string");return typeof e=="symbol"?e:String(e)}function Jc(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const jt=`universalcontainernavigationevent${Pt()}`,Dt=`universalcontainerparentevent${Pt()}`;class Lt{constructor(e,r,n){this.pendingRoute=null,this.committedRoute=null,this.contextId=Object.freeze(()=>{}),this.connected=!1,this.preNavFilters=Fr(),this.errorNavFilters=Fr(),this._handleNavigationEvent=i=>{const a=i;if(a.detail&&typeof a.detail=="object"){const{url:o,replace:c,address:u}=a.detail;this.config.handleNavigation(u,c)?this.root&&!o?this.root.processError(F(O.MISSING_URL,[JSON.stringify(u)])):this.parent||this.process(o,c):a.stopPropagation()}},this._handleParentEvent=i=>{i.stopImmediatePropagation();const a=i;a&&a.detail&&typeof a.detail=="function"&&a.detail(this)},this.config={handleNavigation:e.handleNavigation||(()=>!0)},this.target=n||window,this.router=r,this.router.contextId=this.contextId,this.routeObservable=an()}get root(){if(!this.parent)return this;let e=this.parent;for(;e;){if(!e.parent)return e;e=e.parent}throw new Error("No root router could be found")}updateWires(e,r,n){if(n)this.processError(n);else{if(this.committedRoute&&e.route===this.committedRoute.route)return;Fn({id:xn,specifier:this.eventId}),this.pendingRoute=this.pendingRoute||X(X({},e),{},{url:r}),this.committedRoute=X(X({},this.pendingRoute),e),Ge.setContext(this.target,e.route.pageReference),this.routeObservable.next(X(X({},this.committedRoute),{},{viewset:e.viewset})),Fn({id:Mn,specifier:this.eventId}),this.child&&this.child.process(this._stripUrlForChild(this.committedRoute.url))}}connect(){this._sendEvent(Dt,r=>{this.parent=r,r.addChild(this)});const e={navigate:(r,n)=>this.navigate(r,n),generateUrl:r=>this.generateUrl(r),subscribe:(r,n)=>this.subscribe(r,n)};Ur(this.contextId,e),$t(this.contextId,this.target,zc,ft),$t(void 0,this.target,Kc,Ge),$t(void 0,this.target,Wc,Pe),this.router.subscribe(r=>{if(r.status===404){this.processError(F(O.DESTINATION_NOT_FOUND));return}if(r.status&&r.status>=400){const a=r.error||new Error;this.processError(F(O.DESTINATION_ERROR,[r.status.toString(),a.message,a.stack||""]));return}const n=r.route.pageReference||{},i=this.router.generateUrl(n)||"";if(At({id:xn,specifier:this.eventId}),r.viewset){const a={viewset:r.viewset,onComplete:this.updateWires.bind(this,r,i)};Pe.setContext(this.target,a)}else r.route.pageReference&&this.updateWires(r,i)},!0),j&&(this.target.addEventListener(jt,this._handleNavigationEvent),this.target.addEventListener(Dt,this._handleParentEvent),this.target.addEventListener(Zr,r=>{const n=r;n.detail.callback&&n.detail.callback(this.contextId)})),this.connected=!0}disconnect(){this.target.removeEventListener(jt,this._handleNavigationEvent),this.target.removeEventListener(Dt,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(e){this.preNavFilters.add(e)}addErrorNavigate(e){this.errorNavFilters.add(e)}async addChild(e){if(await new Promise(r=>{setTimeout(()=>{k(!this.child,O.MULTIPLE_CHILDREN),this.child=e,r()},0)}),this.child&&this.committedRoute){const r=this._stripUrlForChild(this.committedRoute.url);await this.child.preProcess(r)&&this.child.process(r)}}async process(e,r){this.eventId=new Date().getTime().toString(),At({id:Mn,specifier:this.eventId});try{this.parent||await this.preProcess(e)}catch(i){if(i.code)return this.processError(i),!1;throw i}const n=this.router.parseUrl(e);return n&&this.router.navigate(n),!0}preProcess(e){const r=this.router.parseUrl(e),n=r&&this.router.matchRoute(r);return n?(this.pendingRoute=X({url:e},n),(this.preNavFilters.empty()?Promise.resolve(!0):this.preNavFilters.compile({current:this.committedRoute||void 0,next:this.pendingRoute})).then(a=>a&&this.child?this.child.preProcess(this._stripUrlForChild(e)):a).then(a=>a||Promise.reject(F(O.PRENAV_FAILED,[e])))):Promise.reject(F(O.MISSING_ROUTE,[e]))}processError(e){At({id:Qc}),this.errorNavFilters.compile(e),this.child&&this.child.processError(e)}navigate(e,r){let n=this.router.generateUrl(e);n&&(n=(this.parent&&this.parent.committedRoute&&this.parent.committedRoute.pathMatch||"").concat(n)),this._sendEvent(jt,{url:n,replace:r,address:e})}generateUrl(e){const r=this.router.generateUrl(e);return r?`${this.parent&&this.parent.committedRoute&&this.parent.committedRoute.pathMatch||""}${r}`:null}subscribe(e,r){return this.routeObservable.subscribe({next:e,error:()=>{},complete:()=>{}},Boolean(r))}_sendEvent(e,r){j&&this.target.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0,detail:r}))}_stripUrlForChild(e){return this.pendingRoute&&e.indexOf(this.pendingRoute.pathMatch)===0?e.replace(this.pendingRoute.pathMatch,""):e}}f.registerDecorators(Lt,{fields:["pendingRoute","committedRoute","contextId","connected","preNavFilters","errorNavFilters","_handleNavigationEvent","_handleParentEvent"]});function Yc(t=""){if(t=t||"",t.indexOf("://")<0){const i=window.location.port?`:${window.location.port}`:"",a=`${window.location.protocol}//${window.location.hostname}${i}`,o=t.charAt(0)==="/"?"":"/";t=a+o+t}const e={},r=document.createElement("a");r.href=t;const n=r.search.substring(1);return n&&n.split("&").forEach(i=>{const[a,o=""]=i.split("=");e[z(a)]=z(o)}),{href:r.href,origin:`${r.protocol}//${r.hostname}${r.port?`:${r.port}`:""}`,pathname:r.pathname.replace(/(\/)?/,"/"),searchParams:e}}function Zc(t){const e=Yc(t),r=e.href.replace(/:\d+/,""),n=e.origin.replace(/:\d+/,"");return r.replace(n,"")}function el(t,e){const r=e||{};window.history.pushState(r,"",t)}function tl(t,e){const r=e||{};window.history.replaceState(r,"",t)}class Gn extends Lt{constructor(...e){super(...e);this.historyDisabled=!1}connect(){super.connect(),this.historyDisabled||(j&&window.addEventListener("popstate",this.onpopstate.bind(this)),this.onpopstate())}onpopstate(){!this.parent&&j&&this.catchBrowserUpdate(Zc(document.location.href))}disconnect(){super.disconnect(),j&&window.removeEventListener("popstate",this.onpopstate)}async process(e,r,n=!0){const i=await super.process(e);return i&&!this.historyDisabled&&n&&this.connected&&!this.parent&&(r?tl(e):el(e)),i}catchBrowserUpdate(e){this.process(e,!1,!1)}}f.registerDecorators(Gn,{fields:["historyDisabled"]});let Se=!1;function rl(t,e={},r){const n=e.historyDisabled?new Lt(e,r,t):new Gn(e,r,t),i={addPreNavigate:a=>(n.addPreNavigate(a),i),addPostNavigate:a=>(n.subscribe(a),i),addErrorNavigate:a=>(n.addErrorNavigate(a),i),connect:()=>{n.connect(),k(!Se||!!n.parent,O.MULTIPLE_ROOTS),Se=Se||!n.parent,i.id=n.contextId},disconnect:()=>{Se=Se&&!!n.parent,n.disconnect()}};return i}let Mt=class extends f.LightningElement{constructor(){super();this.router=void 0,this.historyDisabled=!1,this.currentTitle=j?document.title:""}connectedCallback(){const e={historyDisabled:this.historyDisabled,handleNavigation:this.handleNavigation.bind(this)};this.router&&(this.routerApi=rl(this,e,this.router),this.routerApi.addPreNavigate(this.preNavigate.bind(this)).addPostNavigate(this.postNavigate.bind(this)).addErrorNavigate(this.errorNavigate.bind(this)).connect())}preNavigate(e){const r=this._createEvent("prenavigate",e,!0);return this.dispatchEvent(r),!r.defaultPrevented}postNavigate(e){this.dispatchEvent(this._createEvent("postnavigate",e));const r=e.routeDefinition.metadata&&e.routeDefinition.metadata.title;r&&(this.currentTitle=r,document.title=r);const n=this.querySelector("span.router-title");n&&(n.innerHTML=this.currentTitle)}errorNavigate(e){return this.dispatchEvent(this._createEvent("errornavigate",e)),!0}handleNavigation(e,r){const n=this._createEvent("handlenavigation",{address:e,replace:r},!0);return this.dispatchEvent(n),!n.defaultPrevented}disconnectedCallback(){this.routerApi&&this.routerApi.disconnect()}_createEvent(e,r,n){return new CustomEvent(e,{detail:r,bubbles:!1,composed:!1,cancelable:n})}};Mt.renderMode="light",f.registerDecorators(Mt,{publicProps:{router:{config:0},historyDisabled:{config:0}}});var nl=f.registerComponent(Mt,{tmpl:Bc});function Je(t,e,r,n){const{c:i,b:a}=t,{_m0:o}=n;return[i("lwr-router-container",nl,{props:{router:e.router},key:0},[i("experience-data-layer-object",yc,{props:{scriptDataAttributes:e.pageDataForDataLayer.scriptDataAttributes,customObject:e.pageDataForDataLayer.customObject},key:1}),i("webruntime-inner-app",_c,{key:2,on:{viewchange:o||(n._m0=a(e.handleViewChanged))}})])]}var Vn=f.registerTemplate(Je);Je.stylesheets=[],Je.renderMode="light",f.freezeTemplate(Je);function Hn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ye(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Hn(Object(r),!0).forEach(function(n){il(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hn(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function il(t,e,r){return e=al(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function al(t){var e=ol(t,"string");return typeof e=="symbol"?e:String(e)}function ol(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class xt extends f.LightningElement{constructor(...e){super(...e);this.themeLayout=void 0,this.isInitialized=void 0,this.router=D,this.routerContainer=void 0,this.pageDataForDataLayer={scriptDataAttributes:{providerType:"page"}}}renderedCallback(){this.isInitialized||(this.routerContainer=this.querySelector("lwr-router-container"),On(this.routerContainer),this.isInitialized=!0)}errorCallback(e,r){Oe({subject:"app level error",error:e,wcstack:r})}render(){return Vn}handleViewChanged(e){const r=e.detail?.route?.attributes?.recordId;let n={type:e.detail?.route?.pageReference?.type,url:window.location.href,urlReferrer:document.referrer};r&&(n=Ye(Ye({},n),{},{recordId:r})),this.pageDataForDataLayer=Ye(Ye({},this.pageDataForDataLayer),{},{customObject:n})}}xt.renderMode="light",f.registerDecorators(xt,{fields:["themeLayout","isInitialized","router","routerContainer","pageDataForDataLayer"]});var sl=f.registerComponent(xt,{tmpl:Vn}),cl={};const ll=[];function Ze(t,e,r,n){return ll}var Bn=f.registerTemplate(Ze);Ze.stylesheets=[],Ze.renderMode="light",f.freezeTemplate(Ze);function Kn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Wn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Kn(Object(r),!0).forEach(function(n){ul(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kn(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ul(t,e,r){return e=dl(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dl(t){var e=pl(t,"string");return typeof e=="symbol"?e:String(e)}function pl(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Ut extends f.LightningElement{constructor(...e){super(...e);this.generatedTemplateHtml=Bn,this.attributes={},this.routeParams={},this.route={}}render(){return this.generatedTemplateHtml}connectedCallback(){this.subscription=Ke(this.routeChange.bind(this))}viewChange(e){this.generatedTemplateHtml=e.html;const{state:r,attributes:n}=this.route;this.routeParams=Wn(Wn({},r),n),this.attributes=e.attributes(this,this.routeParams)}routeChange(e){this.route=e.route||null}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}errorCallback(e,r){Oe({subject:"router level error",error:e,wcstack:r})}renderedCallback(){this.dispatchEvent(new CustomEvent("viewchange",{bubbles:!0,composed:!0,detail:{route:this.route}})),this.dispatchEvent(new CustomEvent("experience_interaction",{bubbles:!0,composed:!0,detail:{name:"page-view"}}))}}Ut.renderMode="light",f.registerDecorators(Ut,{wire:{viewChange:{adapter:Pe,method:1,config:function(t){return{}}}},fields:["generatedTemplateHtml","attributes","routeParams","route"]});var ml=f.registerComponent(Ut,{tmpl:Bn});function zn(t,e,r){var n=t?"."+t+"-host":"";return e?":host {display: flow-root;}":n+" {display: flow-root;}"}zn.$scoped$=!0;var _t=[zn];const fl={key:0},hl=[];function H(t,e,r,n){const{s:i}=t;return i("",fl,hl,r)}var gl=f.registerTemplate(H);H.slots=[""],H.stylesheets=[],H.renderMode="light",_t&&H.stylesheets.push.apply(H.stylesheets,_t),_t&&(H.stylesheetToken="webruntime-componentContainer_componentContainer"),f.freezeTemplate(H);class Qn extends f.LightningElement{}Qn.renderMode="light";var Pl=f.registerComponent(Qn,{tmpl:gl});const bl={key:0},qn=[];function Ae(t,e,r,n){const{s:i}=t;return e.isVisible?i("",bl,qn,r):qn}var yl=f.registerTemplate(Ae);Ae.slots=[""],Ae.stylesheets=[],Ae.renderMode="light",f.freezeTemplate(Ae);class Ft extends f.LightningElement{constructor(...e){super(...e);this.visibilityExpression=void 0,this.hidden=void 0}get isVisible(){return this.hidden?!this.visibilityExpression:this.visibilityExpression}}Ft.renderMode="light",f.registerDecorators(Ft,{publicProps:{visibilityExpression:{config:0},hidden:{config:0}}});var vl=f.registerComponent(Ft,{tmpl:yl});function El(t={},e){if(!!t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function Ol(t,e){Array.isArray(t)||(t=[t]);const r=t.filter(e);if(!!r.length)return r.length===1?r[0]:r}function wl(t,e){return typeof e=="string"&&Array.isArray(t)?(t=t.map(r=>r[e]).filter(r=>r!==void 0),t.length===0?void 0:t.length===1?t[0]:t):t&&t[e]!==void 0?t[e]:void 0}function Cl(){}var Nl=Object.freeze({__proto__:null,EXPR_GLOBAL:El,EXPR_FILTER:Ol,EXPR_MEMBER:wl,EXPR_FUNCTION:Cl});function Xn(t){Object.entries(t).forEach(([e,r])=>{LWR.define(e,[],function(){return r})})}Xn({"@salesforce/client/formFactor":Vs(),"aura-instrumentation":Pr,"aura-storage":cl,"instrumentation/service":Pr,"instrumentation/utility":Ea,"webruntime/expressions":Nl,"lightning/configProvider":uo,"lightning/navigation":ns,"webruntime/routerContainer":ml,"webruntime/routingService":Fs,"webruntime/slotContainer":vl,"webruntime/componentContainer":Pl,"wire-service":rc,"webruntime/overrides":ds,aura:hc,logger:mr,assert:pe}),Vt.default&&!br(Vt.default)&&Xn({"@app/user":{isGuest:!0,id:null,csrfToken:null}});var Rl=f.registerComponent(sl,{tmpl:rt});Gt.default=Rl,Object.defineProperty(Gt,"__esModule",{value:!0})});
|
|