LWR.define("lwr/profiler/v/0_8_14",["exports"],function(v){"use strict";var I;(function(N){N[N.Start=0]="Start",N[N.End=1]="End"})(I||(I={}));let M;function C(N){M=N}const U=globalThis.performance,_=typeof U!="undefined"&&typeof U.mark=="function"&&typeof U.clearMarks=="function"&&typeof U.measure=="function"&&typeof U.clearMeasures=="function";function te({id:N,specifier:L}){M?M({id:N,phase:I.Start,specifier:L}):_&&U.mark(N+(L?`.${L}`:""))}function G({id:N,specifier:L}){if(M)M({id:N,phase:I.End,specifier:L});else if(_){const K=L?`.${L}`:"",Q=N+K,V=`${N}.duration${K}`;U.measure(V,Q),U.clearMarks(Q),U.clearMeasures(V)}}v.attachDispatcher=C,v.logOperationEnd=G,v.logOperationStart=te,Object.defineProperty(v,"__esModule",{value:!0})}),LWR.define("lwr/metrics/v/0_8_14",["exports"],function(v){"use strict";const I="lwr.bootstrap.",M=`${I}end`,C=`${I}error`,U=`${C}.count`,_=`${I}duration`,te="lwr.loader.",G=`${te}module.define`,N=`${G}.count`,L=`${te}module.fetch`,K=`${L}.count`,Q=`${L}.duration`,V=`${te}module.error`,le=`${V}.count`,ge=`${te}mappings.fetch`,Oe=`${ge}.count`,F=`${ge}.duration`,re=`${te}mappings.error`,D=`${re}.count`,h="lwr.router.",ce=`${h}navigate`,zt=`${ce}.count`,S=`${ce}.duration`,He=`${h}view`,nt=`${He}.duration`,_t=`${h}error`,k=`${_t}.count`;v.BOOTSTRAP_DURATION=_,v.BOOTSTRAP_END=M,v.BOOTSTRAP_ERROR=C,v.BOOTSTRAP_ERROR_COUNT=U,v.BOOTSTRAP_PREFIX=I,v.LOADER_PREFIX=te,v.MAPPINGS_ERROR=re,v.MAPPINGS_ERROR_COUNT=D,v.MAPPINGS_FETCH=ge,v.MAPPINGS_FETCH_COUNT=Oe,v.MAPPINGS_FETCH_DURATION=F,v.MODULE_DEFINE=G,v.MODULE_DEFINE_COUNT=N,v.MODULE_ERROR=V,v.MODULE_ERROR_COUNT=le,v.MODULE_FETCH=L,v.MODULE_FETCH_COUNT=K,v.MODULE_FETCH_DURATION=Q,v.ROUTER_ERROR=_t,v.ROUTER_ERROR_COUNT=k,v.ROUTER_NAV=ce,v.ROUTER_NAV_COUNT=zt,v.ROUTER_NAV_DURATION=S,v.ROUTER_PREFIX=h,v.ROUTER_VIEW=He,v.ROUTER_VIEW_DURATION=nt,Object.defineProperty(v,"__esModule",{value:!0})}),LWR.define("lwr/init/v/0_8_14",["exports","lwr/metrics/v/0_8_14","lwr/profiler/v/0_8_14","lwc/v/2_31_2"],function(v,I,M,C){"use strict";function U(L,K){return C.createElement(L,{is:K})}function _(L){return L.replace(/\/v\/[a-zA-Z0-9-_.]+$/,"").replace("/","-").replace(/([A-Z])/g,K=>`-${K.toLowerCase()}`)}const te=/-([a-z])/g;function G(L){return L.replace(te,K=>K[1].toUpperCase())}function N(L){if(typeof customElements!="undefined"&&typeof document!="undefined"){const K=document.querySelector("[lwr-root]");L.forEach(([Q,V])=>{const le=_(Q);let ge=document.body.querySelector(le);ge?document.querySelectorAll(le).forEach(F=>{const re=U(le,V);for(const{name:D,value:h}of F.attributes){re.setAttribute(D,h);const ce=G(D);ce in re&&(re[ce]=h)}for(;F.childNodes.length>0;)re.appendChild(F.childNodes[0]);F.parentElement.replaceChild(re,F)}):(ge=U(le,V),K?K.appendChild(ge):document.body.appendChild(ge))})}M.logOperationStart({id:I.BOOTSTRAP_END})}v.getPropFromAttrName=G,v.init=N,v.toKebabCase=_,Object.defineProperty(v,"__esModule",{value:!0})}),LWR.define("webruntime/o11yHook/v/1_66_219-242_0",["exports","lwr/loaderLegacy/v/0_8_14","@app/basePath/v/1","@app/apiBasePath/v/1","@salesforce/i18n/lang/v/1","@app/o11yApiEndpoint/v/1","@app/o11yFalconEnabled/v/1","@app/o11yGuestToken/v/1","@app/o11ySamplingRate/v/1"],function(v,I,M,C,U,_,te,G,N){"use strict";function L(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var K=L(M),Q=L(C),V=L(U),le=L(_),ge=L(te),Oe=L(G),F=L(N);class re{constructor(t){if(this._lazyMap=new Map,t!==void 0){if(typeof t=="number"&&t>0){this._maxSize=Math.ceil(t);return}throw new Error("maxSize must be a positive number")}}get maxSize(){return this._maxSize}get size(){return this._lazyMap.size}push(t,n){let o=this._lazyMap.get(t);if(!o){if(this.maxSize!==void 0&&this.size===this.maxSize)return!1;o=new Array,this._lazyMap.set(t,o)}return o.push(n),!0}getMessages(t,n){const o=this._lazyMap.get(t);return n&&this._lazyMap.has(t)&&this._lazyMap.set(t,[]),o||[]}getAllMessages(t){const n=new Map;for(const[o,a]of this._lazyMap.entries())a.length&&n.set(o,this.getMessages(o,t));return n}extractMessages(t){return this.getMessages(t,!0)}extractAllMessages(){return this.getAllMessages(!0)}get totalItemCount(){let t=0;for(const n of this._lazyMap.values())t+=n.length;return t}}class D{constructor(){this.notImplemented="Method not implemented.";const t=typeof performance!="undefined";t?performance.timeOrigin?this._timeOrigin=performance.timeOrigin:this._timeOrigin=Date.now():this._timeOrigin=Date.now();const n=this._timeOrigin;t&&typeof performance.now=="function"?(this.perfNow=performance.now.bind(performance),this.time=()=>{const o=this.perfNow();return{tsNow:n+o,perfNow:o}}):(this.perfNow=()=>Date.now()-n,this.time=()=>{const o=this.perfNow();return{tsNow:Date.now(),perfNow:o}})}get isProduction(){return D._isProduction}markProduction(){D._isProduction=!0}_checkArgument(t,n){if(typeof n=="string")return typeof t===n;if(typeof n=="function")return t instanceof n;if(Array.isArray(n))return n.some(o=>this._checkArgument(t,o));throw new Error(`Invalid argKind ${n}`)}requireArgument(t,n,o){let a=t==null||t==="";const l=o!==void 0;if(!a&&l&&(a=!this._checkArgument(t,o)),a)throw new Error(`${n} argument is required${l?" and must be of a supported type.":"."}`)}requireArgumentIfDefined(t,n,o){if(t===void 0)return!1;if(t===null||t===""||!this._checkArgument(t,o))throw new Error(`${n} argument, if defined, must be of a supported type.`);return!0}checkForDenyListedValues(t,n,o){if(o.some(a=>t===a))throw new Error(`The value ${t} isn't allowed for ${n} argument.`)}checkForReservedCharacters(t,n,o){if(t&&o.some(a=>t.indexOf(a)>=0))throw new Error(`The argument ${n} isn't allowed to contain characters from ['${o.join(", ")}']. Received: ${t}.`)}generateUniqueId(t=16){const n=[],o="0123456789abcdef";if(!(t===void 0||t>0))throw new Error('If specified, the argument "length" must be a positive integer');for(let a=0;a<t;a++){const l=Math.floor(Math.random()*16);n.push(o[l])}return n.join("")}getXpath(t){function n(l){const d=l.localName;for(;l.nextElementSibling;)if(l=l.nextElementSibling,l.localName===d)return!0;return!1}function o(l,d){return l?o(l.previousElementSibling,d||l.localName)+(l.localName===d?1:0):1}function a(l){if(!l||l.nodeType!==1)return[""];const d=o(l)>1||n(l)?`${l.localName.toLowerCase()}[${o(l)}]`:l.localName.toLowerCase();return[...a(l.parentNode),d]}return a(t).join("/")}getAge(t){return t-this._timeOrigin}getConnectionType(){var t;let n;if(typeof navigator!="undefined"){const o=navigator;n=(t=o==null?void 0:o.connection)===null||t===void 0?void 0:t.effectiveType}return n}clone(t){return JSON.parse(JSON.stringify(t))}definedValueOrDefault(t,n){return t!==void 0?t:n}getGlobal(){if(typeof globalThis=="object")return globalThis;if(typeof self=="object")return self;throw new Error("Unable to locate globalThis or self")}getIsBeaconSupported(){var t;const n=this.getGlobal();return typeof((t=n.navigator)===null||t===void 0?void 0:t.sendBeacon)=="function"&&typeof n.Blob=="function"}estimateObjectSize(t){const n=new Set,o=[t];let a=0;for(;o.length;){const l=o.pop();if(typeof l=="boolean")a+=4;else if(typeof l=="string")a+=l.length*2;else if(typeof l=="number")a+=8;else if(l instanceof Uint8Array||l instanceof Uint8ClampedArray||l instanceof Uint16Array||l instanceof Uint32Array||l instanceof Int8Array||l instanceof Int16Array||l instanceof Int32Array||l instanceof Float32Array||l instanceof Float64Array)a+=l.byteLength;else if(typeof l=="object"){const d=l;if(!n.has(d)){n.add(d);for(const p in d)o.push(d[p])}}}return a}noProdThrow(t){if(!h.isProduction)throw t}}D._isProduction=!1;const h=Object.freeze(new D);class ce{constructor(t){this._errorCounter=t,this._safeCatchMode=!1}tryCatch(t){try{t()}catch(n){this._prodSafeCatch(n)}}tryCatchReturn(t,n){try{return h.requireArgument(n,"noopValue"),t()}catch(o){return this._prodSafeCatch(o),n}}_prodSafeCatch(t){let n;try{if(n=!h.isProduction,n)throw t;if(this._safeCatchMode)throw this._safeCatchMode=!1,new Error("Internal error in prodSafeCatch.");if(this._safeCatchMode=!0,this._errorCounter&&this._errorCounter.increment(),!(t instanceof Error)){const o=t&&t.message||(typeof t.toString=="function"?t.toString():"");t=new Error(o)}this._safeCatchMode=!1}catch(o){if(n)throw o;if(o&&console&&typeof console.error=="function")try{console.error(o)}catch(a){}this._safeCatchMode=!1}}}class zt{getSchemaId(t){return`${t.namespace}.${t.name}`}isInternal(t){return(t==null?void 0:t.namespace)==="sf.instrumentation"}makePayload(t,n,o=!0){if(!o||t!==void 0&&n!==void 0)return{schema:t,payload:n}}checkSchema(t){h.requireArgument(t,"schema","object"),h.requireArgument(t.namespace,"schema.namespace","string"),h.requireArgument(t.name,"schema.name","string"),h.requireArgument(t.pbjsSchema,"schema.pbjsSchema","object");const n=t.namespace.split(".");if(n.length!==2)throw new Error(`Schema "${this.getSchemaId(t)}" must have a namespace of the form "domain.feature".`);return{domain:n[0],feature:n[1],message:t.name}}_getAnyNestedObject(t,n){return n.reduce((o,a)=>{const l=o.nested;if(l){const d=l[a];if(d)return d}throw new Error(`Cannot locate ${n.join(".")} in schema with ID ${this.getSchemaId(t)}`)},t.pbjsSchema)}getTypes(t){const n=this.checkSchema(t),a=this._getAnyNestedObject(t,[n.domain,n.feature]).nested;if(!a)throw new Error(`Cannot parse schema with ID ${this.getSchemaId(t)}`);return a}getType(t,n){h.requireArgument(n,"messageName","string");const a=this.getTypes(t)[n];if(!a)throw new Error(`Cannot locate message ${n} in schema with ID ${this.getSchemaId(t)}`);return a}getOptions(t,n,o){o&&h.requireArgument(n,"messageName","string");const a=this.checkSchema(t);if(!n)return this._getAnyNestedObject(t,[a.domain,a.feature]).options;const l=this.getType(t,n);if(!o)return l.options;const d=l.fields[o];if(!d){const p=this.getSchemaId(t);throw new Error(`Cannot locate field ${o} in message ${n} in schema with ID ${p}`)}return d.options}}const S=new zt;var He=Object.freeze({__proto__:null,LazyMapToList:re,PublicSafety:ce,schemaUtil:S,utility:h});const nt=32,_t=16,k=16,Ln="traceparent",kn="b3",Yt="X-B3-TraceId",Mn="X-B3-SpanId",Pe="X-B3-Sampled",ot="X-B3-ParentSpanId",Dn="fetch",Hn="xhr_send";class R{constructor(t){this._instr=t,h.requireArgument(t,"_instr","object")}static _getB3CompactFormat(t,n,o,a){let l=`${t}-${n}`;return(o!==void 0||a!==void 0)&&(l+=o?"-1":"-0",a!==void 0&&(l+=`-${a}`)),l}static _getW3CompactFormat(t,n,o){return`00-${t}-${n}-${o?"01":"00"}`}static _conformTextAsId(t,n){t=t.toLowerCase();const o=t.length;for(let a=0;a<o;a+=1){const l=t[a];if(!(l>="a"&&l<="f")&&!(l>="0"&&l<="9"))throw new Error(`The text '${t}' has an invalid character at index #${a}`)}return o>n?t.substr(o-n):o<n?t.padStart(n,"0"):t}static getHeaders(t,n,o,a){h.requireArgument(t,"traceId","string"),h.requireArgument(n,"spanId","string");const l=a==null?void 0:a.useB3Headers;t=this._conformTextAsId(t,(a==null?void 0:a.traceIdEffectiveLength)!==void 0?a.traceIdEffectiveLength:l?_t:nt),n=this._conformTextAsId(n,k);const d=a&&a.parentSpanId!==void 0&&this._conformTextAsId(a.parentSpanId,k)||void 0,p={};return l?(a==null?void 0:a.useCompactHeader)?p[kn]=this._getB3CompactFormat(t,n,o,d):(p[Yt]=t,p[Mn]=n,d!==void 0&&(p[ot]=d),o!==void 0&&(p[Pe]=o?"1":"0")):p[Ln]=this._getW3CompactFormat(t,n,o),p}_disableNetworkInstrumentation(){R._isNetworkInstrumentationEnabled&&(R._originalFetch&&(R._global.fetch=R._originalFetch,R._originalFetch=void 0),R._originalXhr&&(R._global.XMLHttpRequest=R._originalXhr,R._originalXhr=void 0),R._originalXhrSend&&(R._global.XMLHttpRequest.prototype.send=R._originalXhrSend,R._originalXhrSend=void 0),R._isNetworkInstrumentationEnabled=!1)}_enableNetworkInstrumentation(t,n,o,a,l){typeof R._global.fetch=="function"&&(this._overrideFetch(t,n,o,a,l),R._isNetworkInstrumentationEnabled=!0),typeof R._global.XMLHttpRequest=="function"&&(this._overrideXhr(t,n,o,a,l),R._isNetworkInstrumentationEnabled=!0)}_overrideFetch(t,n,o,a,l){R._originalFetch=R._global.fetch;const d=async(p,m,...y)=>{let E;try{if(E=t.startActivity(o||Dn),a){m=m||{};const T=E.getTraceHeaders(l);m.headers=Object.assign(m.headers||{},T)}return await R._originalFetch.call(R._global,p,m,...y)}catch(T){throw n&&(E?E.error(T):t.error(T)),T}finally{E&&E.stop()}};R._global.fetch=d}_overrideXhr(t,n,o,a,l){R._originalXhr=R._global.XMLHttpRequest,R._originalXhrSend=R._originalXhr.prototype.send,R._originalXhr.prototype.send=function(...p){let m;const y=this;try{if(y._o11yActivity=m=t.startActivity(o||Hn),a){const E=m.getTraceHeaders(l);Object.entries(E).forEach(T=>{y.setRequestHeader(T[0],T[1])})}R._originalXhrSend.call(this,...p)}catch(E){throw n&&(m?m.error(E):t.error(E)),m&&m.stop(),E}};const d=new Proxy(R._originalXhr,{construct(p){const m=new p;return m.addEventListener("load",()=>{const y=m._o11yActivity;y&&y.stop()}),m.addEventListener("error",y=>{const E=new Error("XHR Network-Level Error"),T=m._o11yActivity;T?(n&&T.error(E),T.stop()):n&&t.error(E)}),m.addEventListener("abort",()=>{const y=m._o11yActivity;y&&y.discard()}),m}});R._global.XMLHttpRequest=d}networkInstrumentation(t){if(h.requireArgument(t,"options",["boolean","object"]),t){this._disableNetworkInstrumentation();const n=typeof t=="object"?t:{};this._enableNetworkInstrumentation(h.definedValueOrDefault(n.instrumentation,this._instr),h.definedValueOrDefault(n.logErrors,!0),n.activityName,h.definedValueOrDefault(n.useTracing,!0),n.tracingHeadersOptions)}else this._disableNetworkInstrumentation()}}R._global=h.getGlobal(),R._isNetworkInstrumentationEnabled=!1;var g;(function(u){u[u.none=0]="none",u[u.start=1]="start",u[u.stop=2]="stop",u[u.both=3]="both"})(g||(g={}));const b="timedout",Te="terminated",ye="discarded",ue={timedout:b,terminated:Te,discarded:ye};class Ie{constructor(t,n,o,a,l,d,p){this._name=t,this._rootId=n,this._onStopped=o,this._onError=a,this._isSampled=p,this._errorCount=0,this._timerOverridden=g.none;const{tsNow:m,perfNow:y}=h.time();if(Ie._count+=1,this._id=d||h.generateUniqueId(),this._usePerf=typeof performance!="undefined"&&typeof performance.mark=="function"&&typeof performance.measure=="function",this._usePerf){this._perfName=`${this._name}__${Ie._count}`,this._perfId=`${this._name}__${this.id}`;try{performance.mark(this._perfId)}catch(E){this._usePerf=!1}}this._startTimestamp=m,this._startPerfTime=y,l>0&&(this._timer=setTimeout(()=>{this._stopReason=this._stopReason||ue.timedout,this.stop()},l)),this._safety=new ce}get id(){return this._id}getId(){return this.id}getRootId(){return this._rootId}get stopReason(){return this._stopReason}error(t,n,o){this._safety.tryCatch(()=>{this._errorCount+=1,typeof t=="string"&&(t=new Error(t)),this._onError(t,this._getDetail(n,o))})}stop(t,n,o){this._safety.tryCatch(()=>{if(h.requireArgumentIfDefined(t,"userSchemaOrText",["object","string"]),h.requireArgumentIfDefined(n,"userData","object"),o){const a=o.perfStartOverride,l=h.requireArgumentIfDefined(a,"options.perfStartOverride","number"),d=o.perfStopOverride,p=h.requireArgumentIfDefined(d,"options.perfStopOverride","number");if(l&&a<0)throw new Error("perfStartOverride, if defined, must be >= 0");if(p&&(d<0||d<(l?a:this._startPerfTime)))throw new Error("perfStopOverride, if defined, must be >= 0 and >= startTime")}this._stopInternal(t,n,o)})}_overrideTimer(t,n){t!==void 0&&(this._startTimestamp=Math.round(this._startTimestamp-(this._startPerfTime-t)),this._startPerfTime=t,this._setTimerOverride(g.start)),n!==void 0&&(this._stopPerfTime=n,this._setTimerOverride(g.stop))}_setTimerOverride(t){this._timerOverridden===g.both||this._timerOverridden===t||t===g.none||(this._timerOverridden=this._timerOverridden===g.none?t:g.both)}_stopInternal(t,n,o){const a=h.perfNow();if(this._usePerf)try{this._stopReason!==ue.discarded&&performance.measure(this._perfName,this._perfId),performance.clearMarks(this._perfId),performance.clearMeasures(this._perfName)}catch(d){}if(this._timer&&(clearTimeout(this._timer),this._timer=void 0),this.isStopped)return;o&&this._overrideTimer(o.perfStartOverride,o.perfStopOverride),this._stopPerfTime=this._timerOverridden===g.none||this._timerOverridden===g.start?a:this._stopPerfTime;const l=this._getDetail(t,n);this._onStopped(l)}get isStopped(){return this._stopPerfTime!==void 0}discard(){this._safety.tryCatch(()=>{this._stopReason=this._stopReason||ue.discarded,this.stop()})}terminate(){this._safety.tryCatch(()=>{this._stopReason=this._stopReason||ue.terminated,this.stop()})}getIsSampled(){return this._isSampled||!1}_getDetail(t,n){return{id:this._id,rootId:this._rootId,name:this._name,userSchemaOrText:t,userData:n,stopReason:this._stopReason,startTimestamp:this._startTimestamp,startPerfTime:this._startPerfTime,stopPerfTime:this._stopPerfTime,errorCount:this._errorCount,isSampled:this.getIsSampled(),timerOverridden:this._timerOverridden}}getTraceHeaders(t){const n=this.id,o=this._rootId||n;return R.getHeaders(o,n,this.getIsSampled(),t)}getStartTimestamp(){return this._startTimestamp}getStartPerfTime(){return this._startPerfTime}getStopPerfTime(){return this._stopPerfTime}}Ie._count=0;const it={namespace:"sf.instrumentation",name:"Activity",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Activity:{reserved:[[5,5],[7,7]],fields:{duration:{id:3,type:"double"},stopReason:{id:6,type:"string"},isRoot:{id:8,type:"bool"},timerOverridden:{id:12,type:"uint32"},name:{options:{"(meta.max_length)":25},id:2,type:"string"},isSampled:{id:11,type:"bool"},preRootId:{id:9,type:"string"},id:{id:1,type:"string"},userPayload:{id:4,type:"Payload"},errorCount:{id:10,type:"uint32"},parentId:{id:13,type:"string"}}},Payload:{fields:{payload:{id:2,type:"bytes"},schemaName:{id:1,type:"string"}}}}}}}}}},Hr={namespace:"sf.instrumentation",name:"Error",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Error:{reserved:[[5,5],[7,7]],fields:{activityId:{id:6,type:"string"},stack:{id:3,type:"string"},name:{id:1,type:"string"},message:{options:{"(meta.max_length)":200},id:2,type:"string"},userPayload:{id:4,type:"Payload"}}},Payload:{fields:{payload:{id:2,type:"bytes"},schemaName:{id:1,type:"string"}}}}}}}}}},Ve={namespace:"sf.instrumentation",name:"IdleDetectorReport",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{IdleDetectorReport:{fields:{listenerCount:{id:3,type:"uint32"},busyTasks:{rule:"repeated",id:5,type:"string"},busyDurations:{rule:"repeated",id:6,type:"double"},pollableCount:{id:4,type:"uint32"},pollCounts:{rule:"repeated",id:8,type:"double"},logThreshold:{id:2,type:"double"},maxDuration:{id:1,type:"double"},pollables:{rule:"repeated",id:7,type:"string"}}}}}}}}}},Qt={namespace:"sf.instrumentation",name:"InstrumentedEvent",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{MouseEvent:{fields:{cancelable:{id:5,type:"bool"},ctrlKey:{id:9,type:"bool"},type:{id:25,type:"string"},button:{id:3,type:"uint32"},offsetX:{id:17,type:"uint32"},eventPhase:{id:12,type:"uint32"},shiftKey:{id:23,type:"bool"},offsetY:{id:18,type:"uint32"},composed:{id:8,type:"bool"},altKey:{id:1,type:"bool"},isTrusted:{id:13,type:"bool"},buttons:{id:4,type:"uint32"},movementY:{id:16,type:"uint32"},clientY:{id:7,type:"uint32"},clientX:{id:6,type:"uint32"},movementX:{id:15,type:"uint32"},defaultPrevented:{id:10,type:"bool"},metaKey:{id:14,type:"bool"},timeStamp:{id:24,type:"double"},bubbles:{id:2,type:"bool"},detail:{id:11,type:"int64"},pageY:{id:20,type:"uint32"},pageX:{id:19,type:"uint32"},screenX:{id:21,type:"uint32"},screenY:{id:22,type:"uint32"}}},InstrumentedEvent:{oneofs:{event:{oneof:["mouseEvent"]}},reserved:[[4,4],"xpath",[6,6],[8,8]],fields:{mouseEvent:{id:7,type:"MouseEvent"},auto:{id:3,type:"bool"},parentComponent:{id:2,type:"string"},ownerComponent:{id:1,type:"string"},userPayload:{id:5,type:"Payload"},simplePath:{id:9,type:"string"}}},Payload:{fields:{payload:{id:2,type:"bytes"},schemaName:{id:1,type:"string"}}}}}}}}}},Jt={namespace:"sf.instrumentation",name:"Simple",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Simple:{fields:{text:{options:{"(meta.max_length)":25},id:1,type:"string"}}}}}}}}}},Zt=new Array(16).fill(0).join("");class bt{getId(){return Zt}getRootId(){}error(){}stop(){}discard(){}terminate(){}getIsSampled(){return!1}getTraceHeaders(t){return{}}getStartTimestamp(){}getStartPerfTime(){}getStopPerfTime(){}}const vt=Object.freeze(new bt);class Fr{getInstrumentedEventData(t,n,o){var a;const l={ownerComponent:n.tagName,parentComponent:((a=n.parentElement)===null||a===void 0?void 0:a.tagName)||void 0,event:t,simplePath:h.getXpath(n)};return o&&(l.userPayload=S.makePayload(o.schema,o.payload,!0)),l}getMouseEventData(t){return{altKey:t.altKey,bubbles:t.bubbles,button:t.button,buttons:t.buttons,cancelable:t.cancelable,clientX:t.clientX,clientY:t.clientY,composed:t.composed,defaultPrevented:t.defaultPrevented,detail:t.detail,eventPhase:t.eventPhase,isTrusted:t.isTrusted,timeStamp:t.timeStamp,type:t.type,ctrlKey:t.ctrlKey,metaKey:t.metaKey,movementX:t.movementX,movementY:t.movementY,offsetX:t.offsetX,offsetY:t.offsetY,pageX:t.pageX,pageY:t.pageY,screenX:t.screenX,screenY:t.screenY,shiftKey:t.shiftKey}}}const ne=new Fr,_e=1e4,$r=1e4,er=0,Br=2147483647,Et=-2147483648,tr=4294967295,xr=9223372036854776e3,Ur=-9223372036854776e3,wt=18446744073709552e3;class qr{constructor(t,n,o,a){this.errorCode=t,this.fields=n,this.expected=o,this.received=a}asMessage(t){const n=this.fields[0]+this.fields.slice(1).reduce((a,l)=>Number(l)>=0?`${a}[${l}]`:`${a}.${l}`,"");let o;switch(this.errorCode){case 1:o="Repeated field must be an array";break;case 2:o=`Expected type ${this.expected} but received type ${this.received}`;break;case 3:o="Value must be finite";break;case 4:o="Value is out of range for its type";break;case 5:o="Bytes array is malformed";break;case 6:o="Exceeded app limit for maximum string length";break;case 7:o="Exceeded app limit for item count";break;case 12:o="Value must be an integer";break;case 13:o="Values like null or undefined are not allowed for items in repeated fields";break;default:o=`Unknown error code: ${this.errorCode}`;break}return`Schema ${t} on field "${n}": ${o}`}}class Gr{validate(t,n,o=!1){const a=S.checkSchema(t);h.requireArgument(n,"data","object");const l=S.getSchemaId(t),d=new Array,p=S.getTypes(t);if(this._validateFields(d,[],n,p[a.message],p,l),d.length&&!o)throw new Error(d[0].asMessage(l));return d}_validateFields(t,n,o,a,l,d){const p=a.oneofs||{},m=a.fields||{};for(const y in o){const E=o[y];if(E!=null){const T=(P,ee,me)=>this._matchFieldTypes(t,[...n,y],E,P,l,d,y,ee,me);p[y]?T(m[p[y].oneof[0]].type):m[y]&&T(m[y].type,m[y].rule==="repeated")}}}_matchFieldTypes(t,n,o,a,l,d,p,m,y){let E;if(m)Array.isArray(o)?(o.length>$r&&(E=7),o.forEach((T,P)=>{this._matchFieldTypes(t,[...n,P.toString()],T,a,l,d,p,void 0,!0)})):E=1;else if(o==null||o===void 0)y&&(E=13);else{let T,P;switch(a){case"string":P="string",o.length>_e&&(E=6);break;case"bytes":P="object",o instanceof Uint8Array||(E=5);break;case"bool":P="boolean";break;case"uint32":P="number",T={min:er,max:tr,isInt:!0,isItem:y};break;case"int32":case"sint32":case"fixed32":case"sfixed32":P="number",T={min:Et,max:Br,isInt:!0,isItem:y};break;case"uint64":P="number",T={min:er,max:wt,isInt:!0,isItem:y};break;case"fixed64":case"sfixed64":case"int64":case"sint64":P="number",T={min:Ur,max:xr,isInt:!0,isItem:y};break;case"double":case"float":P="number",T={min:Number.NEGATIVE_INFINITY,max:Number.POSITIVE_INFINITY,isInt:!1,isItem:y};break;default:new Set(Object.keys(l)).has(a)&&(this._validateFields(t,n,o,l[a],l,d),P="object");break}typeof o!==P?t.push(new qr(2,n,a,typeof o)):T&&(T.isInt&&!Number.isFinite(o)?E=3:T.isInt&&!Number.isInteger(o)?E=12:!(!T.isInt&&Number.isNaN(o))&&!(o>=T.min&&o<=T.max)&&(E=4))}E&&t.push(new qr(E,n))}}const Xe=new Gr;class he{constructor(t,n,o,a,l){this._name=t,this._ownerName=n,this._ownerAppName=o,this._tags=a,this._buckets=l,this._values=new Array,this._createdOn=h.time().tsNow}getName(){return this._name}getCreatedOn(){return this._createdOn}getLastUpdatedOn(){return this._lastUpdatedOn}getData(){return this.values}getBuckets(){return this.buckets}get buckets(){return this._buckets.slice(0,this._buckets.length)}get values(){return this._values.slice(0,this._values.length)}record(t){if(typeof t=="number"){this._values.push(t),this._lastUpdatedOn=h.time().tsNow;return}throw new Error("BucketHistogram can only record numbers.")}reset(){this._lastUpdatedOn=void 0,this._values=[]}getOwnerName(){return this._ownerName}getOwnerAppName(){return this._ownerAppName}getTags(){return this._tags}}class jr{constructor(t,n,o,a){this._name=t,this._ownerName=n,this._ownerAppName=o,this._tags=a,this._value=0,this._createdOn=h.time().tsNow}getName(){return this._name}getCreatedOn(){return this._createdOn}getLastUpdatedOn(){return this._lastUpdatedOn}getData(){return this._value}increment(t=1){if(typeof t=="number"&&t>0){this._value+=Math.round(t),this._lastUpdatedOn=h.time().tsNow;return}throw new Error("UpCounter can only increment positive numbers.")}reset(){this._lastUpdatedOn=void 0,this._value=0}getOwnerName(){return this._ownerName}getOwnerAppName(){return this._ownerAppName}getTags(){return this._tags}}class Wr{constructor(t,n,o,a){this._name=t,this._ownerName=n,this._ownerAppName=o,this._tags=a,this._values=new Array,this._createdOn=h.time().tsNow}getName(){return this._name}getCreatedOn(){return this._createdOn}getLastUpdatedOn(){return this._lastUpdatedOn}getData(){return this.values}get values(){return this._values.slice(0,this._values.length)}record(t){if(typeof t=="number"){this._values.push(t),this._lastUpdatedOn=h.time().tsNow;return}throw new Error("ValueRecorder can only record numbers.")}reset(){this._lastUpdatedOn=void 0,this._values=[]}getOwnerName(){return this._ownerName}getOwnerAppName(){return this._ownerAppName}getTags(){return this._tags}}class Tt{constructor(t){if(this._map=new Map,typeof t=="number"&&t>0){this._maxSize=Math.ceil(t);return}throw new Error("maxSize must be a positive number")}get maxSize(){return this._maxSize}get(t){return this._map.get(t)}has(t){return this._map.has(t)}set(t,n){return this.has(t)||this._map.size<this.maxSize?(this._map.set(t,n),!0):!1}getElements(){return Array.from(this._map.values())}clear(){this._map.clear()}}const rr=1e3,Ct=500,nr=500;var Fe;(function(u){u[u.Counter=0]="Counter",u[u.Percentile=1]="Percentile",u[u.BucketHistogram=2]="BucketHistogram"})(Fe||(Fe={}));class At{constructor(t,n){this._ownerName=t,this._getOwnerAppName=n,this._upCounters=new Tt(rr),this._valueRecorders=new Tt(Ct),this._bucketHistograms=new Tt(nr)}incrementCounter(t,n,o=!1,a={}){this._tagError(a,o),this._upCounter(t,a).increment(n)}trackValue(t,n,o=!1,a={}){this._tagError(a,o),this._valueRecorder(t,a).record(n)}bucketValue(t,n,o,a=!1,l={}){this._tagError(l,a),this._bucketHistogram(t,l,o).record(n)}_bucketHistogram(t,n,o){const{key:a,sortedTags:l}=this._getKeyAndSortedTags(t,n,Fe.BucketHistogram);let d=this._bucketHistograms.get(a);if(!d&&(d=new he(t,this._ownerName,this._getOwnerAppName(),l,o),!this._bucketHistograms.set(a,d)))throw new Error(`Max size of ${nr} exceeded for BucketHistograms`);return d}_upCounter(t,n){const{key:o,sortedTags:a}=this._getKeyAndSortedTags(t,n,Fe.Counter);let l=this._upCounters.get(o);if(!l&&(l=new jr(t,this._ownerName,this._getOwnerAppName(),a),!this._upCounters.set(o,l)))throw new Error(`Max size of ${rr} exceeded for UpCounters`);return l}_valueRecorder(t,n){const{key:o,sortedTags:a}=this._getKeyAndSortedTags(t,n,Fe.Percentile);let l=this._valueRecorders.get(o);if(!l&&(l=new Wr(t,this._ownerName,this._getOwnerAppName(),a),!this._valueRecorders.set(o,l)))throw new Error(`Max size of ${Ct} exceeded for ValueRecorders`);return l}getUpCounters(){return this._upCounters.getElements()}getValueRecorders(){return this._valueRecorders.getElements()}getBucketHistograms(){return this._bucketHistograms.getElements()}_tagError(t,n){t.status=n===!0?"error":"success"}_getKeyAndSortedTags(t,n,o){const a=Object.keys(n).sort().reduce((d,p)=>(d[p]=n[p],d),{});return{key:`${Fe[o]}:${t}${JSON.stringify(a)}`,sortedTags:a}}}class Ce{constructor(){this.isMock=!0}}const or=void 0,fe=["`"],Nt={internalError:"o11y-error"},de=Object.freeze(Array.from(Object.values(Nt)));class $e{constructor(t,n){this._nextGen=t,this._name=n,this._onActivityStoppedCallback=this._handleActivityStop.bind(this),this._onActivityErrorCallback=this._handleActivityError.bind(this);for(const a of fe)if(this._name.indexOf(a)>=0)throw new Error(`Name cannot include the reserved character "${a}"`);this._safety=new ce({increment:a=>this._incrementError(a)}),this._metrics=this._initMetrics();const o=S.getOptions(Jt,"Simple","text");this._simpleTextMaxLength=o?o["(meta.max_length)"]:_e}_initMetrics(){return new At(this.name,()=>this._nextGen.appName||$e.defaultAppName)}_incrementError(t=1){this._metrics.incrementCounter(Nt.internalError,t,!1)}get name(){return this._name}_wrapUserPayload(t,n,o=!1){let a;return typeof t=="string"?(a=Jt,t?n={text:t.substring(0,this._simpleTextMaxLength)}:n=void 0):a=t,S.makePayload(a,n,o)}_getEffectiveRootId(t){var n,o;return(o=(n=t==null?void 0:t.instrumentationContext)===null||n===void 0?void 0:n.rootId)!==null&&o!==void 0?o:this._nextGen.getDefaultInstrumentationContext().rootId}log(t,n,o){this._safety.tryCatch(()=>{const a=h.time().tsNow;h.requireArgument(t,"userSchemaOrText",["object","string"]),h.requireArgumentIfDefined(n,"userData","object"),h.requireArgumentIfDefined(o,"options","object");const l=this._wrapUserPayload(t,n);(l==null?void 0:l.payload)&&this._logInternal(this.name,l.schema,l.payload,a,this._getEffectiveRootId(o))})}_logInternal(t,n,o,a,l){this._checkInputs(n,o);const d=this._getPayloadFromProvider(this._nextGen.appPayloadProvider),p=this._getPayloadFromProvider(this._nextGen.pagePayloadProvider);return this._nextGen.addLog(t,n,o,a,l,p,d)}error(t,n,o,a){return this._safety.tryCatch(()=>{h.requireArgumentIfDefined(n,"userSchemaOrText",["object","string"]),h.requireArgumentIfDefined(o,"userData","object"),h.requireArgumentIfDefined(a,"options","object");const l=this._getEffectiveRootId(a);this._errorInternal(t,n,o,void 0,l)})}_errorInternal(t,n,o,a,l){const d=h.time().tsNow;let p;if(t instanceof Error)p=t;else{let E;t==null||typeof t.toString!="function"?E="UNKNOWN":E=t.toString(),p=new Error(E)}const m=this._wrapUserPayload(n,o,!0),y={name:p.name,message:p.message,stack:p.stack,userPayload:m,activityId:a};return this._logInternal(this.name,Hr,y,d,l)}startActivity(t,n){return this._safety.tryCatchReturn(()=>{var o;h.requireArgument(t,"name"),h.requireArgumentIfDefined(n,"options","object");let a;const l=(o=n==null?void 0:n.instrumentationContext)===null||o===void 0?void 0:o.rootId;return l?a={rootId:l,isRootActivitySampled:n.instrumentationContext.isRootActivitySampled}:a=this._nextGen.getDefaultInstrumentationContext(),new Ie(t,a.rootId,this._onActivityStoppedCallback,this._onActivityErrorCallback,or,void 0,a.isRootActivitySampled)},vt)}_getActivityData(t){const n=this._wrapUserPayload(t.userSchemaOrText,t.userData,!0);return{id:t.id,name:t.name,duration:t.stopPerfTime-t.startPerfTime,stopReason:t.stopReason,userPayload:n,errorCount:t.errorCount,isSampled:t.isSampled,timerOverridden:t.timerOverridden}}_handleActivityStop(t){if(t.stopReason===ye)return;const n=this._getActivityData(t);this._logActivity(n,t.startTimestamp,t.rootId)}_logActivity(t,n,o){this._logInternal(this.name,it,t,n,o)}_handleActivityError(t,n){this._errorInternal(t,n.userSchemaOrText,n.userData,n.id,n.rootId)}_getPayloadFromProvider(t){const n=(t==null?void 0:t.getPayload())||void 0;return n&&this._checkInputs(n.schema,n.payload),n}domEvent(t,n,o,a,l){this._safety.tryCatch(()=>{var d;const p=h.time().tsNow;h.requireArgument(t,"event",[Event,Ce]),h.requireArgument(n,"handledBy",[HTMLElement,"object"]);let m;n instanceof HTMLElement?m=n:(n=n,((d=n.template)===null||d===void 0?void 0:d.host)instanceof HTMLElement?m=n.template.host:h.requireArgument(void 0,"handledBy"));const y=this._wrapUserPayload(o,a,!0),E=this._getEffectiveRootId(l);switch(t.type){case"click":{const T=t,P=this._nextGen.getClickTracker();P&&P.markEventHandled(T);const ee=ne.getMouseEventData(T),me=ne.getInstrumentedEventData(ee,m,y);me.auto=l==null?void 0:l._auto,this._logInternal(this.name,Qt,me,p,E);break}default:throw new Error(h.notImplemented)}})}incrementCounter(t,n=1,o=!1,a={}){this._safety.tryCatch(()=>{h.requireArgument(t,"operation","string"),h.checkForDenyListedValues(t,"operation",de),h.checkForReservedCharacters(t,"operation",fe),h.requireArgument(n,"increment","number"),h.requireArgument(o,"hasError","boolean"),h.requireArgument(a,"tags","object"),Object.entries(a).forEach(l=>{h.requireArgument(l[1],`Tag value for '${l[0]}'`,["string","number","boolean"])}),this._metrics.incrementCounter(t,n,o,a)})}trackValue(t,n,o=!1,a={}){this._safety.tryCatch(()=>{h.requireArgument(t,"operation","string"),h.checkForDenyListedValues(t,"operation",de),h.checkForReservedCharacters(t,"operation",fe),h.requireArgument(n,"value","number"),h.requireArgument(o,"hasError","boolean"),h.requireArgument(a,"tags","object"),Object.entries(a).forEach(l=>{h.requireArgument(l[1],`Tag value for '${l[0]}'`,["string","number","boolean"])}),this._metrics.trackValue(t,n,o,a)})}bucketValue(t,n,o=[],a=!1,l={}){this._safety.tryCatch(()=>{h.requireArgument(t,"operation","string"),h.checkForDenyListedValues(t,"operation",de),h.checkForReservedCharacters(t,"operation",fe),h.requireArgument(n,"value","number"),h.requireArgument(o,"buckets",Array),Object.entries(o).forEach(d=>{h.requireArgument(d[1],`Bucket value for '${d[0]}'`,"number")}),h.requireArgument(a,"hasError","boolean"),h.requireArgument(l,"tags","object"),Object.entries(l).forEach(d=>{h.requireArgument(d[1],`Tag value for '${d[0]}'`,["string","number","boolean"])}),this._metrics.bucketValue(t,n,o,a,l)})}_checkInputs(t,n){S.checkSchema(t),h.requireArgument(n,"data","object");let o,a;n.userPayload!==void 0&&S.isInternal(t)&&(a=n.userPayload,o=Xe.validate(a.schema,a.payload,!0),this._processValidationResults(S.getSchemaId(a.schema),a.payload,o),n.userPayload=void 0),o=Xe.validate(t,n,!0),this._processValidationResults(S.getSchemaId(t),n,o),a!==void 0&&(n.userPayload=a)}_processValidationResults(t,n,o){for(let a=0;a<o.length;a+=1){const l=o[a];if(l.errorCode==6||l.errorCode==7){const d=l.fields.length-1,p=this._traverseFields(n,l.fields.slice(0,d)),m=l.fields[d];l.errorCode==6?p[m]=p[m].substring(0,_e):p[m].splice($r)}else throw new Error(l.asMessage(t))}}_traverseFields(t,n){return n.length?this._traverseFields(t[n[0]],n.slice(1)):t}getUpCounters(){return this._metrics.getUpCounters().filter(t=>t.getLastUpdatedOn())}getValueRecorders(){return this._metrics.getValueRecorders().filter(t=>t.getLastUpdatedOn())}getBucketHistograms(){return this._metrics.getBucketHistograms().filter(t=>t.getLastUpdatedOn())}registerForLogPrompt(t){h.requireArgument(t,"listener","function"),this._nextGen.registerForLogPrompt(t)}activity(t,n,o){var a,l,d,p;const m=this.startActivity(t,o);try{return n(m)}catch(y){throw m.error(y,(a=o==null?void 0:o.errorPayload)===null||a===void 0?void 0:a.schema,(l=o==null?void 0:o.errorPayload)===null||l===void 0?void 0:l.payload),y}finally{m.stop((d=o==null?void 0:o.stopPayload)===null||d===void 0?void 0:d.schema,(p=o==null?void 0:o.stopPayload)===null||p===void 0?void 0:p.payload)}}async activityAsync(t,n,o){var a,l,d,p;const m=this.startActivity(t,o);try{return await n(m)}catch(y){throw m.error(y,(a=o==null?void 0:o.errorPayload)===null||a===void 0?void 0:a.schema,(l=o==null?void 0:o.errorPayload)===null||l===void 0?void 0:l.payload),y}finally{m.stop((d=o==null?void 0:o.stopPayload)===null||d===void 0?void 0:d.schema,(p=o==null?void 0:o.stopPayload)===null||p===void 0?void 0:p.payload)}}}$e.defaultAppName="APP_NOT_REGISTERED";class Be extends Ie{constructor(t,n,o,a,l){super(t,void 0,n,o,void 0,a||h.generateUniqueId(32),l)}get preRootId(){return this._preRootId}set preRootId(t){this._preRootId=t}_getDetail(t,n){const o=super._getDetail(t,n);return o.isRoot=!0,o.preRootId=this.preRootId,o}}const Kr=new Array(32).fill(0).join("");class Vr{getId(){return Kr}getRootId(){}error(){}stop(){}discard(){}terminate(){}getIsSampled(){return!1}getTraceHeaders(t){return{}}getStartTimestamp(){}getStartPerfTime(){}getStopPerfTime(){}}const Xr=Object.freeze(new Vr);class ze extends $e{constructor(t,n,o){super(t,n);this._allowMulti=o,this._onRootActivityStoppedCallback=this._handleRootActivityStop.bind(this)}startRootActivity(t,n,o){return this._safety.tryCatchReturn(()=>{h.requireArgument(t,"name");const a=new Be(t,this._onRootActivityStoppedCallback,this._onActivityErrorCallback,n,o);if(!this._allowMulti){if(this._singleRootActivity&&!this._singleRootActivity.isStopped){const l=this._singleRootActivity.getId();this._singleRootActivity.terminate(),a.preRootId=l}this._singleRootActivity=a}return a},Xr)}_handleRootActivityStop(t){if(t.stopReason===ye)return;const n=this._getActivityData(t);this._logActivity(n,t.startTimestamp),this._singleRootActivity=void 0}_getActivityData(t){const n=super._getActivityData(t);return n.isRoot=t.isRoot,n.preRootId=t.preRootId,n}getSingleRootActivityId(){var t;return(t=this._singleRootActivity)===null||t===void 0?void 0:t.getId()}isSingleRootActivitySampled(){var t;return(t=this._singleRootActivity)===null||t===void 0?void 0:t.getIsSampled()}_initMetrics(){return new At(this.name,()=>this.name)}}const zr=5;class Le{constructor(t,n){this._instr=t,this._doc=n,this._isActive=!1,this._boundClickListener=this._clickListener.bind(this),h.requireArgument(t,"_instr"),h.requireArgument(n,"_doc")}activate(){this._isActive||(this._doc.addEventListener("click",this._boundClickListener,!0),this._isActive=!0)}deactivate(){this._isActive&&(this._doc.removeEventListener("click",this._boundClickListener,!0),this._isActive=!1)}markEventHandled(t){this._ignoredEvent=t}_clickListener(t){var n;let o=(n=t.composedPath)===null||n===void 0?void 0:n.call(t);(!o||!o.length)&&(o=t.path);const a=this._getClickableElement(o);a&&setTimeout(()=>{t!==this._ignoredEvent&&this._instr.domEvent(t,a,void 0,void 0,{_auto:!0})})}_getClickableElement(t){var n,o;const a=t?Math.min(t.length,zr):0;for(let l=0;l<a;l+=1){const d=t[l],p=(n=d.tagName)===null||n===void 0?void 0:n.toLowerCase();if(p==="a"||p==="button")return d;if(p==="input"){const m=d;if(((o=m.type)===null||o===void 0?void 0:o.toLowerCase())==="button")return m}}}}const ir=80,Rt="_CUT",Yr=ir-Rt.length;class st{constructor(){this._logCollectors=new Set,this._instruments=new Map,this._seqBySchema=new Map,this._sequence=0,this._forceDisabledLogCollectors=new Set,this._logCollectorFailures=new Map,this._isBufferingEnabled=!1,this._buffer=[],this._logCollectionListeners=new Set}get pagePayloadProvider(){return this._pagePayloadProvider}set pagePayloadProvider(t){this._pagePayloadProvider=t}get appPayloadProvider(){return this._appPayloadProvider}set appPayloadProvider(t){this._appPayloadProvider=t}registerApp(t,n){if(h.requireArgument(t,"name","string"),this._appInstr)throw new Error("An app has already been registered with instrumentation.");if(this._instruments.get(t))throw new Error(`The instrumentation name ${t} is already taken`);this._appInstr=new ze(this,t,n==null?void 0:n.allowMultipleRootActivities),this._instruments.set(t,this._appInstr),this._isBufferingEnabled=n==null?void 0:n.enableBuffering;const a=new R(this._appInstr);return{log:this._appInstr.log.bind(this._appInstr),error:this._appInstr.error.bind(this._appInstr),startActivity:this._appInstr.startActivity.bind(this._appInstr),domEvent:this._appInstr.domEvent.bind(this._appInstr),incrementCounter:this._appInstr.incrementCounter.bind(this._appInstr),trackValue:this._appInstr.trackValue.bind(this._appInstr),bucketValue:this._appInstr.bucketValue.bind(this._appInstr),networkInstrumentation:a.networkInstrumentation.bind(a),registerForLogPrompt:this._appInstr.registerForLogPrompt.bind(this._appInstr),activity:this._appInstr.activity.bind(this._appInstr),activityAsync:this._appInstr.activityAsync.bind(this._appInstr),startRootActivity:this._appInstr.startRootActivity.bind(this._appInstr),registerLogCollector:this.registerLogCollector.bind(this),registerMetricsCollector:this.registerMetricsCollector.bind(this),activateClickTracker:this.activateClickTracker.bind(this),deactivateClickTracker:this.deactivateClickTracker.bind(this),disableBuffering:this.disableBuffering.bind(this),promptLogCollection:this.promptLogCollection.bind(this)}}getInstrumentation(t){h.requireArgument(t,"name","string"),t.length>ir&&(t=t.substr(0,Yr)+Rt);let n=this._instruments.get(t);if(!n)n=new $e(this,t),this._instruments.set(t,n);else if(n===this._appInstr)throw new Error(`The instrumentation name ${t} is being used by the app.`);return n}get appName(){var t;return(t=this._appInstr)===null||t===void 0?void 0:t.name}addLog(t,n,o,a,l,d,p){this._sequence+=1;const m=S.getSchemaId(n);let y=this._seqBySchema.get(m)||0;y+=1,this._seqBySchema.set(m,y);const E={timestamp:a,rootId:l,sequence:this._sequence,schemaSequence:y,loggerName:t,pagePayload:d?h.clone(d):void 0,appPayload:p?h.clone(p):void 0,loggerAppName:this.appName,connectionType:h.getConnectionType()};this._isBufferingEnabled&&this._buffer.push({schema:n,data:h.clone(o),logMeta:E});const T=Array.from(this._logCollectors).filter(P=>{var ee;return!this._forceDisabledLogCollectors.has(P)&&!((ee=P.getIsCollectDisabled)===null||ee===void 0?void 0:ee.call(P))});if(T.length>0)for(const P of T){const ee=h.clone(o);let me=this._logCollectorFailures.get(P)||0;try{P.collect(n,ee,E),me>0&&this._logCollectorFailures.set(P,me-1)}catch(Bt){me+=1,me>=st._collectorFailureLimit?(this._forceDisabledLogCollectors.add(P),this._appInstr&&(typeof Bt=="string"||Bt instanceof Error)&&this._appInstr.error(Bt)):this._logCollectorFailures.set(P,me)}}return this._sequence}getBuffer(){return this._buffer}disableBuffering(){this._isBufferingEnabled=!1,this._buffer=[]}getClickTracker(){return this._autoClickTracker}getDefaultInstrumentationContext(){var t,n;return{rootId:(t=this._appInstr)===null||t===void 0?void 0:t.getSingleRootActivityId(),isRootActivitySampled:(n=this._appInstr)===null||n===void 0?void 0:n.isSingleRootActivitySampled()}}activateClickTracker(){typeof document!="undefined"&&(this._autoClickTracker||(this._autoClickTracker=new Le(this._appInstr,document)),this._autoClickTracker.activate())}deactivateClickTracker(){this._autoClickTracker&&(this._autoClickTracker.deactivate(),this._autoClickTracker=void 0)}registerLogCollector(t,n){if(h.requireArgument(t,"collector"),!this._logCollectors.has(t)&&(this._logCollectors.add(t),this._logCollectorFailures.set(t,0),(!t.getIsCollectDisabled||!t.getIsCollectDisabled())&&n&&n.retroactive))for(const o of this._buffer)t.collect(o.schema,o.data,o.logMeta)}registerMetricsCollector(t){if(h.requireArgument(t,"collector"),this._metricsCollector)throw new Error("A metrics Collector is already registered.");this._metricsCollector=t,this._metricsCollector.receiveMetricsExtractors({getAllUpCounters:this._getAllUpCounters.bind(this),getAllValueRecorders:this._getAllValueRecorders.bind(this),getAllBucketHistograms:this._getAllBucketHistograms.bind(this)})}_getAllUpCounters(){return Array.from(this._instruments.values()).map(n=>n.getUpCounters()).reduce((n,o)=>n.concat(o),[])}_getAllValueRecorders(){return Array.from(this._instruments.values()).map(n=>n.getValueRecorders()).reduce((n,o)=>n.concat(o),[])}_getAllBucketHistograms(){return Array.from(this._instruments.values()).map(n=>n.getBucketHistograms()).reduce((n,o)=>n.concat(o),[])}registerForLogPrompt(t){this._logCollectionListeners.add(t)}promptLogCollection(t){for(const n of this._logCollectionListeners.keys())try{n(t)}catch(o){if(!h.isProduction)throw o}}}st._collectorFailureLimit=5;class Qr{get _lazyNextGen(){return this._nextgen||(this._nextgen=new st),this._nextgen}registerInstrumentedApp(t,n){(!n||n.isProduction!==!1)&&h.markProduction();const o=this._lazyNextGen.registerApp(t,n);return n&&(this._nextgen.appPayloadProvider=n.appPayloadProvider,this._nextgen.pagePayloadProvider=n.pagePayloadProvider),o}getInstrumentation(t){return this._lazyNextGen.getInstrumentation(t)}}const at=new Qr,lt=at.registerInstrumentedApp.bind(at),xe=at.getInstrumentation.bind(at),sr=h.time.bind(h);class ct{constructor(t,n,o,a){this.name=t,this._doneCallback=o,this._overDoneCallback=a,this._busyCount=0,this._isOk=!0,this._busyCount=n}get isBusy(){return this._isOk?this._busyCount>0:void 0}add(){this._isOk&&(this._busyCount+=1)}done(){this._isOk&&(this._busyCount>0?(this._busyCount-=1,this._busyCount||this._doneCallback()):(this._isOk=!1,this._overDoneCallback()))}}const ut=300;class ar{constructor(t){this._instr=xe("IdleDetector"),this._taskers=new Map,this._listeners=new Set,this._busyCheckers=new Map,this._logThreshold=ut,this._endedTasks=new Array,this._pollableReport=new Array,h.requireArgumentIfDefined(t==null?void 0:t.logThreshold,"options.logThreshold","number")&&(this._logThreshold=t.logThreshold)}requestIdleDetectedCallback(t){h.requireArgument(t,"callback","function"),this._listeners.size===0&&(this._firstCallbackTime=h.time().perfNow),this._listeners.add(t),this._checkIfLoaded()}_reportTaskEnded(t){if(this._listeners.size){const n=Object.assign({},this._taskers.get(t));this._endedTasks.push(n)}}declareNotifierTaskSingle(t){h.requireArgument(t,"name","string");const n=this._addTasker(t,1);return{get isBusy(){return n.isBusy},done:()=>{n.done(),this._taskers.delete(n)}}}declareNotifierTaskMulti(t,n=0){if(h.requireArgument(t,"name","string"),n!==void 0&&(h.requireArgument(n,"existingBusyCount","number"),!Number.isInteger(n)||n<0))throw new Error("existingBusyCount accepts only non-negative integers");const o=this._addTasker(t,n);return{get isBusy(){return o.isBusy},add:()=>{if(!o.isBusy){const l=this._taskers.get(o);l.start=h.time().perfNow,l.end=void 0}o.add()},done:o.done.bind(o)}}declarePollableTaskMulti(t,n){h.requireArgument(t,"name","string"),h.requireArgument(n,"isBusyChecker","function"),this._busyCheckers.set(n,t)}_addTasker(t,n){const o=new ct(t,n,()=>{this._taskers.get(o).end=h.time().perfNow,this._reportTaskEnded(o),this._checkIfLoaded()},()=>{this._instr.error(`Overdone: ${o.name}`),h.noProdThrow(`Tasker '${o.name}' is done too many times.`)});return this._taskers.set(o,{name:t,start:n>0?h.time().perfNow:void 0,end:void 0}),o}_areAllNotifiersIdle(){return!Array.from(this._taskers.keys()).some(t=>t.isBusy)}_getFirstBusyPollable(){const t=Array.from(this._busyCheckers).find(n=>{const o=n[0],a=n[1];try{return o()}catch(l){return this._instr.error(l,`BusyChecker ${a}`),h.noProdThrow(l),!1}});return t?t[1]:void 0}_checkIfLoaded(){!this._listeners.size||(this._timerCheckQueued&&clearTimeout(this._timerCheckQueued),this._areAllNotifiersIdle()&&(this._timerCheckQueued=setTimeout(()=>{this._timerCheckQueued=setTimeout(()=>{this._doubleCheck()},40)},0)))}_doubleCheck(){if(this._timerCheckQueued=void 0,this._areAllNotifiersIdle()){const t=this._getFirstBusyPollable();if(t!==void 0)this._addToPollableReport(t),this._timerCheckQueued=setTimeout(()=>{this._doubleCheck()},15);else{const n=h.time().perfNow-this._firstCallbackTime,o=Array.from(this._listeners.values());this._listeners.clear(),this._firstCallbackTime=void 0;const a=this._endedTasks.splice(0),l=this._pollableReport.splice(0);this._notify(o,n,a,l)}}}_addToPollableReport(t){const n=this._pollableReport.length?this._pollableReport[this._pollableReport.length-1]:void 0;(n==null?void 0:n.name)===t?n.count+=1:this._pollableReport.push({name:t,count:1})}_notify(t,n,o,a){if(n>=this._logThreshold){const d=this._getReport(n,t.length,o,a);this._instr.log(Ve,d)}const l=h.time().tsNow;for(const[d,p]of t.entries())try{p(l)}catch(m){this._instr.error(m,`Listener #${d}`),h.noProdThrow(m)}}getReport(){const t=h.time().perfNow,n=this._firstCallbackTime>0?t-this._firstCallbackTime:void 0,o=Array.from(this._taskers.entries()).filter(a=>a[0].isBusy).map(a=>({name:a[1].name,start:a[1].start,end:t}));return this._getReport(n,this._listeners.size,this._endedTasks.concat(o),this._pollableReport)}_getReport(t,n,o,a){const l=o.map(d=>({name:d.name,duration:d.end-d.start})).sort((d,p)=>p.duration-d.duration);return{logThreshold:this._logThreshold,maxDuration:t,listenerCount:n,pollableCount:this._busyCheckers.size,busyTasks:l.map(d=>d.name),busyDurations:l.map(d=>d.duration),pollables:a.map(d=>d.name),pollCounts:a.map(d=>d.count)}}}const lr={Error:"Crimson",Activity:"CadetBlue",InstrumentedEvent:"DarkOliveGreen",O11ySample:"BlueViolet"},cr={Error:"white",Activity:"white",InstrumentedEvent:"white",O11ySample:"white"},St="black",Ot="Gainsboro";let ur=class{constructor(t){t&&this._log("ConsoleCollector",t)}collect(t,n,o){let a,l,d;t.namespace==="sf.instrumentation"?(a=t.name,l=cr[t.name]||St,d=lr[t.name]||Ot):a=S.getSchemaId(t),this._log(a,n,o,l,d)}_log(t,n,o,a=St,l=Ot){const d=`color:${a};background-color:${l}`;console.log(`%cO11Y%c ${t}`,"color:white;background-color:#FF6600;font-weight:bold",d,n||"",o||"")}};const Jr="242.8.1",Pt=new ar({logThreshold:300});var It=Object.freeze({__proto__:null,ConsoleCollector:ur,_version:Jr,getInstrumentation:xe,idleDetector:Pt,registerInstrumentedApp:lt,time:sr});const Ye="242.17.0",dr={namespace:"sf.instrumentation",name:"WebVitals",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{WebVitals:{fields:{name:{id:1,type:"string"},delta:{id:3,type:"double"},value:{id:2,type:"double"}}}}}}}}}};var Ae,Qe,hr,Je,Ne=function(u,t){return{name:u,value:t===void 0?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},Ue=function(u,t){try{if(PerformanceObserver.supportedEntryTypes.includes(u)){if(u==="first-input"&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver(function(o){return o.getEntries().map(t)});return n.observe({type:u,buffered:!0}),n}}catch(o){}},qe=function(u,t){var n=function o(a){a.type!=="pagehide"&&document.visibilityState!=="hidden"||(u(a),t&&(removeEventListener("visibilitychange",o,!0),removeEventListener("pagehide",o,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},be=function(u){addEventListener("pageshow",function(t){t.persisted&&u(t)},!0)},X=function(u,t,n){var o;return function(a){t.value>=0&&(a||n)&&(t.delta=t.value-(o||0),(t.delta||o===void 0)&&(o=t.value,u(t)))}},Ge=-1,fr=function(){return document.visibilityState==="hidden"?0:1/0},dt=function(){qe(function(u){var t=u.timeStamp;Ge=t},!0)},Lt=function(){return Ge<0&&(Ge=fr(),dt(),be(function(){setTimeout(function(){Ge=fr(),dt()},0)})),{get firstHiddenTime(){return Ge}}},Zr=function(u,t){var n,o=Lt(),a=Ne("FCP"),l=function(m){m.name==="first-contentful-paint"&&(p&&p.disconnect(),m.startTime<o.firstHiddenTime&&(a.value=m.startTime,a.entries.push(m),n(!0)))},d=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],p=d?null:Ue("paint",l);(d||p)&&(n=X(u,a,t),d&&l(d),be(function(m){a=Ne("FCP"),n=X(u,a,t),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-m.timeStamp,n(!0)})})}))},pr=!1,mr=-1,kt=function(u,t){pr||(Zr(function(y){mr=y.value}),pr=!0);var n,o=function(y){mr>-1&&u(y)},a=Ne("CLS",0),l=0,d=[],p=function(y){if(!y.hadRecentInput){var E=d[0],T=d[d.length-1];l&&y.startTime-T.startTime<1e3&&y.startTime-E.startTime<5e3?(l+=y.value,d.push(y)):(l=y.value,d=[y]),l>a.value&&(a.value=l,a.entries=d,n())}},m=Ue("layout-shift",p);m&&(n=X(o,a,t),qe(function(){m.takeRecords().map(p),n(!0)}),be(function(){l=0,mr=-1,a=Ne("CLS",0),n=X(o,a,t)}))},Ze={passive:!0,capture:!0},en=new Date,gr=function(u,t){Ae||(Ae=t,Qe=u,hr=new Date,et(removeEventListener),yr())},yr=function(){if(Qe>=0&&Qe<hr-en){var u={entryType:"first-input",name:Ae.type,target:Ae.target,cancelable:Ae.cancelable,startTime:Ae.timeStamp,processingStart:Ae.timeStamp+Qe};Je.forEach(function(t){t(u)}),Je=[]}},tn=function(u){if(u.cancelable){var t=(u.timeStamp>1e12?new Date:performance.now())-u.timeStamp;u.type=="pointerdown"?function(n,o){var a=function(){gr(n,o),d()},l=function(){d()},d=function(){removeEventListener("pointerup",a,Ze),removeEventListener("pointercancel",l,Ze)};addEventListener("pointerup",a,Ze),addEventListener("pointercancel",l,Ze)}(t,u):gr(t,u)}},et=function(u){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return u(t,tn,Ze)})},ht=function(u,t){var n,o=Lt(),a=Ne("FID"),l=function(p){p.startTime<o.firstHiddenTime&&(a.value=p.processingStart-p.startTime,a.entries.push(p),n(!0))},d=Ue("first-input",l);n=X(u,a,t),d&&qe(function(){d.takeRecords().map(l),d.disconnect()},!0),d&&be(function(){var p;a=Ne("FID"),n=X(u,a,t),Je=[],Qe=-1,Ae=null,et(addEventListener),p=l,Je.push(p),yr()})},Mt={},rn=function(u,t){var n,o=Lt(),a=Ne("LCP"),l=function(m){var y=m.startTime;y<o.firstHiddenTime&&(a.value=y,a.entries.push(m),n())},d=Ue("largest-contentful-paint",l);if(d){n=X(u,a,t);var p=function(){Mt[a.id]||(d.takeRecords().map(l),d.disconnect(),Mt[a.id]=!0,n(!0))};["keydown","click"].forEach(function(m){addEventListener(m,p,{once:!0,capture:!0})}),qe(p,!0),be(function(m){a=Ne("LCP"),n=X(u,a,t),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-m.timeStamp,Mt[a.id]=!0,n(!0)})})})}},pe;(function(u){u[u.CLS=0]="CLS",u[u.FCP=1]="FCP",u[u.FID=2]="FID",u[u.LCP=3]="LCP",u[u.TBT=4]="TBT",u[u.TTFB=5]="TTFB"})(pe||(pe={}));const Dt=[pe.CLS,pe.FID,pe.LCP];class ft{constructor(){this._isInitialized=!1,this._safety=new ce}activate(t,n){this._safety.tryCatch(()=>{if(this._isInitialized)throw new Error("WebVitals is already activated.");h.requireArgument(t,"instr","object"),h.requireArgumentIfDefined(n,"metrics",Array),this._instr=t,this._isInitialized=!0;const o=new Set(n||Dt);if(o.delete(pe.CLS)&&kt(this._metricsHandler.bind(this)),o.delete(pe.FID)&&ht(this._metricsHandler.bind(this)),o.delete(pe.LCP)&&rn(this._metricsHandler.bind(this)),o.size>0){const a=JSON.stringify(Array.from(o.keys()));this._instr.error(`Unsupported WebVital metrics: ${a}`)}})}_metricsHandler(t){this._instr.log(dr,{name:t.name,value:t.value,delta:t.delta})}}const nn=new ft;function pt(u,t){if(!u)throw new Error(t)}const on={APEX_ACTION_ERROR:"APEX_ACTION_ERROR",FAILED_TO_LOAD_RESOURCE:"FAILED_TO_LOAD_RESOURCE",TOO_MANY_REQUESTS:"TOO_MANY_REQUESTS",UNKNOWN_ERROR:"UNKNOWN_ERROR"};function _r(u,t){var n=Object.keys(u);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(u);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(u,a).enumerable})),n.push.apply(n,o)}return n}function Ht(u){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_r(Object(n),!0).forEach(function(o){sn(u,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach(function(o){Object.defineProperty(u,o,Object.getOwnPropertyDescriptor(n,o))})}return u}function sn(u,t,n){return t=an(t),t in u?Object.defineProperty(u,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):u[t]=n,u}function an(u){var t=ln(u,"string");return typeof t=="symbol"?t:String(t)}function ln(u,t){if(typeof u!="object"||u===null)return u;var n=u[Symbol.toPrimitive];if(n!==void 0){var o=n.call(u,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(u)}const cn=["POST","PATCH","PUT","DELETE"],se="X-SFDC-Request-Id",je="X-Salesforce-Too-Many-Requests",mt="asGuest",j="language";async function $(u,t={}){pt(typeof u=="string","Valid path not provided for fetch request");const n=Ht(Ht({},t),{},{headers:Ht({},t.headers),credentials:t.credentials||"same-origin"});t.credentials===null&&delete n.credentials;const o=n.isNonApiRequest===!0,a=n.asGuest===!0||await wr(),l=n.basePath!==void 0?n.basePath:Q.default,d=new URL(l+u,window.location);o||(d.searchParams.has(j)||d.searchParams.append(j,V.default),d.searchParams.has(mt)||d.searchParams.append(mt,a));const p=n.headers["Content-Type"];p===null?delete n.headers["Content-Type"]:p?n.headers["Content-Type"]=p:t.body&&(n.headers["Content-Type"]="application/json; charset=utf-8"),n.headers[se]=z(),await vr(n);const m=await window.fetch(d.toString(),n);return ve(m)&&br(),m}function br(){document.dispatchEvent(new CustomEvent("client-error",{detail:{type:on.TOO_MANY_REQUESTS}}))}function ve(u){return!!((u.status===503||u.status===429)&&u.headers.get(je))}async function vr(u){if(u.method&&cn.includes(u.method)){const{default:t}=await I.load("@app/user/v/1");u.headers["CSRF-Token"]=t.csrfToken}}async function We({path:u,payload:t,contentType:n}){const o=K.default+u;window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(o,t)||await $(u,{headers:{"Content-Type":n},basePath:K.default,body:t,method:"POST",isNonApiRequest:!0})}function z(){return(Date.now()+Er()+Math.round(Math.random()*1e8)).substring(0,18)}function Er(){function u(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return u()+u()}async function wr(){const{default:u}=await I.load("@app/user/v/1");return u.isGuest}var Tr=Object.freeze({__proto__:null,fetch:$,sendBeacon:We});const un=5e4,dn=3e3,{ConsoleCollector:H,_version:Z,registerInstrumentedApp:ke,idleDetector:Y}=It,Cr=Z,Ar="O11Y_ENDPOINT_NOT_CONFIGURED",ae="lwr_experience",W={clientVersion:Cr,schemaVersion:Ye};let oe,Ee,Ft="";const Nr=$;globalThis?.LWR?.define&&(LWR.define("transport",[],()=>Tr),LWR.define("o11y/client",[],()=>It),LWR.define("o11y/shared",[],()=>He));async function hn(u){const n=(typeof process!="undefined"&&process.env)?.O11Y_ENV!=="dev";try{W.isSampled=!n||F.default>0&&F.default>=Math.random();const o=!n;W.app=ke(ae,{isProduction:n,enableBuffering:!0}),nn.activate(W.app);let a=!1;if(W.initConsole=l=>{if(!a){const d=new H;W.app.registerLogCollector(d,l),a=!0}},o&&(W.initConsole(),W.app.log("o11y started")),W.upload=Re,W.isSampled){let l;if(Oe.default?(!le.default||le.default===Ar)&&(l="o11yApiEndpoint not valid"):l="o11yGuestToken not set",l)throw W.app.error(l),new Error(l);await fn();const d=Me();if(Ft=d.guestToken,!d.meta?.isGuestApiAccessEnabled){const{default:p}=await I.load("@app/user/v/1");if(p.isGuest)return}await pn(W.app,{appName:u.appMetadata.bootstrapModule,sdkVersion:`o11y ${Cr}:${Ye}`}),window.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Re(!0)}),await Re(!0)}}catch(o){if(!n)throw o;try{console?.error("Failed to start o11y",o)}catch{}}finally{try{W.app?.disableBuffering()}catch{}}}function Me(){const u={},t=Oe.default.indexOf("|");return t>=0?(u.guestToken=Oe.default.substring(0,t),u.meta=JSON.parse(Oe.default.substring(t+1))):u.guestToken=Oe.default,u}function Rr(){return W}async function fn(){const u=t=>{let n=!1;setTimeout(()=>{n||(n=!0,t())},dn),Y.requestIdleDetectedCallback(()=>{n||(n=!0,t())})};return new Promise(t=>{document.readyState==="complete"?u(t):window.addEventListener("load",()=>u(t))})}async function pn(u,t){const[n,o]=await Promise.all([I.load("o11y/simple_collector/v/242_8_1"),I.load("o11y/collectors/v/242_8_1")]);Ee=(o.default||o).encodeCoreEnvelopeContentsRaw,oe=new(n.default||n).SimpleCollector({environment:t,precollectCallback:()=>{try{Re()}catch{}}}),u.registerLogCollector(oe,{retroactive:!0}),u.registerMetricsCollector(oe)}function Re(u=!1){if(!oe?.hasData||oe.estimatedByteSize<un&&!u)return Promise.resolve(new Response);const t=oe.getRawContentsOfCoreEnvelope(),n=Ee(t);return ge.default?mn(n):$t(n)}function $t(u){const t=String.fromCharCode,n=[];for(let l=0,d=u.length;l<d;l++)n.push(t(u[l]));const o=window.btoa(n.join("")),a=JSON.stringify({base64Env:o});return Nr(le.default,{method:"POST",body:a,keepalive:!0})}function mn(u){const t={method:"POST",body:u,headers:{"x-sfdc-o11y-token":Ft,"Content-Type":"application/octet-stream"},keepalive:!0};return fetch(le.default,t)}v._getO11y=Rr,v.default=hn,Object.defineProperty(v,"__esModule",{value:!0})}),LWR.define("webruntime/hook/v/1_66_219-242_0",["exports"],function(v){"use strict";var I=["@app/apexApiBasePath","@app/apiBasePath","@app/authenticationCookieName","@app/basePath","@app/guestUuidCookieName","@app/isDesignMode","@app/isPreviewMode","@app/isMobileAppMode","@app/loginPath","@app/o11yApiEndpoint","@app/o11yFalconEnabled","@app/o11yGuestToken","@app/o11ySamplingRate","@app/routes","@app/versionKey","@app/viewToThemeLayoutMap","@app/views","@salesforce/community/basePath","@salesforce/i18n/lang","@salesforce/site/Id","@salesforce/webstore/Id"],M=["@salesforce/cssvars/customProperties","aura-instrumentation","aura-storage","aura","instrumentation/service","instrumentation/utility","lightning/configProvider","lightning/navigation","transport","webruntime/transport","logger","assert","o11y/shared","o11y/client","webruntime_navigation/link","webruntime/expressions","webruntime/routerContainer","webruntime/componentContainer","webruntime/slotContainer","webruntime/routingService","webruntime/overrides","webruntimedesign/componentWrapper","webruntimedesign/regionWrapper","webruntimedesign/dropRegion","webruntimedesign/componentService","webruntimedesign/designComponent","mobileruntime/hybridAppManager","wire-service","@salesforce/client/formFactor"];const C=["webruntimedesign/componentWrapper","webruntimedesign/regionWrapper","webruntimedesign/dropRegion","webruntimedesign/componentService","webruntimedesign/designComponent"];function U(_){_.addLoaderPlugin({resolveModule:async te=>{const[G]=te.split("/v/");return G==="webruntime/transport"?"transport":G&&(M.includes(G)||C.includes(G)||I.includes(G))?G:G==="@salesforce/loader"?"lwr/loaderLegacy/v/0_8_14":null}})}v.default=U,Object.defineProperty(v,"__esModule",{value:!0})}),LWR.define("@lwc/synthetic-shadow/v/2_31_2",function(){"use strict";const{assign:v,create:I,defineProperties:M,defineProperty:C,freeze:U,getOwnPropertyDescriptor:_,getOwnPropertyNames:te,getPrototypeOf:G,hasOwnProperty:N,isFrozen:L,keys:K,seal:Q,setPrototypeOf:V}=Object,{concat:le,copyWithin:ge,fill:Oe,filter:F,find:re,indexOf:D,join:h,map:ce,pop:zt,push:S,reduce:He,reverse:nt,shift:_t,slice:k,some:Ln,sort:kn,splice:Yt,unshift:Mn,forEach:Pe}=Array.prototype,{charCodeAt:ot,replace:Dn,slice:Hn,toLowerCase:R}=String.prototype;function g(e){return e===void 0}function b(e){return e===null}function Te(e){return e===!0}function ye(e){return e===!1}function ue(e){return typeof e=="function"}function Ie(e){return typeof e=="object"}const it=function(){if(typeof globalThis=="object")return globalThis;let e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(r){}finally{typeof e=="undefined"&&(e=window)}return e}(),Hr="$isNativeShadowRootDefined$",Ve="$shadowResolver$",Qt="$$ShadowResolverKey$$",Jt="$shadowStaticNode$",Zt="$shadowStaticNodeKey$",bt="$shadowToken$",vt="$$ShadowTokenKey$$",Fr="$$lwc-synthetic-mode",J=Node,ne=J.prototype,{DOCUMENT_POSITION_CONTAINED_BY:_e,DOCUMENT_POSITION_CONTAINS:$r,DOCUMENT_POSITION_PRECEDING:er,DOCUMENT_POSITION_FOLLOWING:Br,ELEMENT_NODE:Et,TEXT_NODE:tr,CDATA_SECTION_NODE:xr,PROCESSING_INSTRUCTION_NODE:Ur,COMMENT_NODE:wt,DOCUMENT_FRAGMENT_NODE:qr}=J,{appendChild:Gr,cloneNode:Xe,compareDocumentPosition:he,insertBefore:jr,removeChild:Wr,replaceChild:Tt,hasChildNodes:rr}=ne,{contains:Ct}=HTMLElement.prototype,nr=_(ne,"firstChild").get,Fe=_(ne,"lastChild").get,At=_(ne,"textContent").get,Ce=_(ne,"parentNode").get,or=_(ne,"ownerDocument").get,fe=N.call(ne,"parentElement")?_(ne,"parentElement").get:_(HTMLElement.prototype,"parentElement").get,Nt=_(ne,"textContent").set,de=N.call(ne,"childNodes")?_(ne,"childNodes").get:_(HTMLElement.prototype,"childNodes").get,$e=N.call(ne,"isConnected")?_(ne,"isConnected").get:function(){const e=or.call(this);return e===null||(he.call(e,this)&_e)!=0},{getAttribute:Be,getBoundingClientRect:Kr,getElementsByTagName:Vr,getElementsByTagNameNS:Xr,hasAttribute:ze,querySelector:zr,querySelectorAll:Le,removeAttribute:ir,setAttribute:Rt}=Element.prototype,Yr=N.call(Element.prototype,"attachShadow")?Element.prototype.attachShadow:()=>{throw new TypeError("attachShadow() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill and use Lightning Web Components")},st=_(Element.prototype,"childElementCount").get,Qr=_(Element.prototype,"firstElementChild").get,at=_(Element.prototype,"lastElementChild").get,lt=_(HTMLElement.prototype,"innerText"),xe=lt?lt.get:null,sr=lt?lt.set:null,ct=_(HTMLElement.prototype,"outerText"),ut=ct?ct.get:null,ar=ct?ct.set:null,lr=N.call(Element.prototype,"innerHTML")?_(Element.prototype,"innerHTML"):_(HTMLElement.prototype,"innerHTML"),cr=lr.get,St=lr.set,Ot=N.call(Element.prototype,"outerHTML")?_(Element.prototype,"outerHTML"):_(HTMLElement.prototype,"outerHTML"),ur=Ot.get,Jr=Ot.set,Pt=_(Element.prototype,"tagName").get,It=_(HTMLElement.prototype,"tabIndex"),Ye=It.get,dr=It.set,Ae=N.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,Qe=N.call(Element.prototype,"children")?_(Element.prototype,"children").get:_(HTMLElement.prototype,"children").get,{getElementsByClassName:hr}=HTMLElement.prototype,Je=N.call(Element.prototype,"shadowRoot")?_(Element.prototype,"shadowRoot").get:()=>null,Ne=N.call(Element.prototype,"assignedSlot")?_(Element.prototype,"assignedSlot").get:()=>null;let Ue,qe;typeof HTMLSlotElement!="undefined"?(Ue=HTMLSlotElement.prototype.assignedNodes,qe=HTMLSlotElement.prototype.assignedElements):(Ue=()=>{throw new TypeError("assignedNodes() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")},qe=()=>{throw new TypeError("assignedElements() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")});const be=_(Event.prototype,"target").get,X=_(Event.prototype,"currentTarget").get,Ge=_(FocusEvent.prototype,"relatedTarget").get,fr=N.call(Event.prototype,"composedPath")?Event.prototype.composedPath:()=>[],dt=_(Document.prototype,"activeElement").get,Lt=N.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,Zr=N.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,pr=_(Document.prototype,"defaultView").get,{createComment:mr,querySelectorAll:kt,getElementById:Ze,getElementsByClassName:en,getElementsByTagName:gr,getElementsByTagNameNS:yr}=Document.prototype,{getElementsByName:tn}=HTMLDocument.prototype,{addEventListener:et,removeEventListener:ht,getComputedStyle:Mt,getSelection:rn}=window,pe=MutationObserver,Dt=pe.prototype.observe;let ft=null;typeof ShadowRoot!="undefined"&&(ft=ShadowRoot);const nn=!b(ft),pt=b(ft)?()=>!1:e=>e instanceof ft;function on(){return typeof HTMLSlotElement=="undefined"}const{createElement:_r}=Document.prototype,Ht=115,sn=108,an=111,ln=116;function cn(){class e{}V(e,HTMLElement.constructor),V(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,C(Document.prototype,"createElement",{value:function(r,i){const s=_r.apply(this,k.call(arguments));return r.length===4&&ot.call(r,0)===Ht&&ot.call(r,1)===sn&&ot.call(r,2)===an&&ot.call(r,3)===ln&&V(s,e.prototype),s}})}on()&&cn();function se(e){const r=or.call(e);return r===null?e:r}function je(e){const r=se(e),i=pr.call(r);if(i===null)throw new TypeError;return i}let mt;function j(e){if(g(mt)){const r=se(e);mt=r.body&&Be.call(r.body,"data-global-patching-bypass")==="temporary-bypass"}return Te(mt)}function $(e){const r=e.length,i=[];if(r>0)for(let s=0;s<r;s++)i[s]=e[s];return i}const br=typeof EventTarget!="undefined"?EventTarget.prototype:J.prototype,{addEventListener:ve,dispatchEvent:vr,removeEventListener:We}=br;it.lwcRuntimeFlags||Object.defineProperty(it,"lwcRuntimeFlags",{value:I(null)});const z=it.lwcRuntimeFlags,Er="$$HostElementKey$$",wr="$$ShadowedNodeKey$$";function Tr(e,r,i){const s=e;{const{value:c}=i;s[r]=c}}function un(e,r){Tr(e,Er,{value:r,configurable:!0})}function dn(e,r){Tr(e,wr,{value:r})}function H(e){return e[Er]}function Z(e){let r=e,i;for(;!b(r);){if(i=H(r),!g(i))return i;if(r=Ce.call(r),z.ENABLE_LIGHT_GET_ROOT_NODE_PATCH&&!b(r)&&W(r))return}}function ke(e){return e[wr]}function Y(e){return!g(H(e))}function Cr(e){let r=fe.call(e);for(;!b(r)&&oe(r);)e=r,r=fe.call(e);return e}function Ar(e,r){const i=ke(e);let s=r instanceof Element?r:fe.call(r);for(;!b(s)&&s!==e;){const c=Z(s),f=fe.call(s);if(c===i)return oe(s);if(f===e)return!1;if(!b(f)&&Z(f)!==c)if(oe(f)){if(s=ae(Cr(f)),!b(s)){if(s===e)return!0;if(Z(s)===i)return!0}}else return!1;else s=f}return!1}function ae(e){if(!(e instanceof J))return null;const r=Z(e);if(g(r))return null;let i=e;for(;!b(i)&&ke(i)!==r;)i=Ce.call(i);return b(i)?null:i}function W(e){return oe(e)&&Y(e)}function oe(e){return e instanceof HTMLSlotElement}function Ee(e,r){const i=Z(r);if(g(i)){if(z.ENABLE_LIGHT_GET_ROOT_NODE_PATCH){const s=Ce.call(r);if(!b(s)&&W(s))return!1}return!0}return ke(e)===i}function Ft(e){const r=q(e);return Me(r,$(de.call(r)))}function Nr(e,r){const i=[];for(let s=0,c=r.length;s<c;s+=1){const f=r[s];!Ee(e,f)&&Ar(e,f)&&S.call(i,f)}return i}function hn(e,r){for(let i=0,s=r.length;i<s;i+=1){const c=r[i];if(!Ee(e,c)&&Ar(e,c))return c}return null}function Me(e,r){const i=[];for(let s=0,c=r.length;s<c;s+=1){const f=r[s];Ee(e,f)&&S.call(i,f)}return i}function Rr(e,r){for(let i=0,s=r.length;i<s;i+=1)if(Ee(e,r[i]))return r[i];return null}function fn(e,r){const i=q(e),s=$(Le.call(i,r));return Rr(i,s)}function pn(e,r){const i=q(e),s=Le.call(i,r);return Me(i,$(s))}function Re(e){if(!B(e)&&!oe(e)){const r=de.call(e);return $(r)}if(B(e)){const r=$(Le.call(e,"slot")),i=rt(De(e));return He.call(r,(s,c)=>(i===rt(c)&&S.apply(s,$t(c)),s),[])}else{const r=$(de.call(e)),i=rt(e);return F.call(r,s=>i===rt(s))}}function $t(e){const r=ae(e);if(b(r))return[];const i=$(de.call(e));return F.call(i,s=>!Y(s)||!Ee(r,s))}function mn(e){let r="";const i=Re(e);for(let s=0,c=i.length;s<c;s+=1)r+=y(i[s]);return r}const u=/[&\u00A0"]/g,t=/[&\u00A0<>]/g,{replace:n,toLowerCase:o}=String.prototype;function a(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"\xA0":return" ";default:return""}}function l(e){return n.call(e,u,a)}function d(e){return n.call(e,t,a)}const p=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),m=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function y(e){switch(e.nodeType){case Et:{const{attributes:r}=e,i=Pt.call(e);let s="<"+o.call(i);for(let c=0,f;f=r[c];c++)s+=" "+f.name+'="'+l(f.value)+'"';return s+=">",p.has(i)?s:s+mn(e)+"</"+o.call(i)+">"}case tr:{const{data:r,parentNode:i}=e;return i instanceof Element&&m.has(Pt.call(i))?r:d(r)}case xr:return`<!CDATA[[${e.data}]]>`;case Ur:return`<?${e.target} ${e.data}?>`;case wt:return`<!--${e.data}-->`;default:return""}}function E(e){switch(e.nodeType){case Et:{const r=Re(e);let i="";for(let s=0,c=r.length;s<c;s+=1){const f=r[s];f.nodeType!==wt&&(i+=E(f))}return i}default:return e.nodeValue}}const T=new WeakMap;function P(){throw new TypeError("Illegal constructor")}P.prototype=I(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:P},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return T.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,r){Pe.call(T.get(this),e,r)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return ce.call(T.get(this),(e,r)=>[r,e])}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return ce.call(T.get(this),(e,r)=>r)}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return T.get(this)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const r=T.get(this);return e<r.length?{value:r[e++],done:!1}:{done:!0}}}}},[Symbol.toStringTag]:{configurable:!0,get(){return"NodeList"}},toString:{writable:!0,configurable:!0,value(){return"[object NodeList]"}}}),V(P,NodeList);function ee(e){const r=I(P.prototype);return T.set(r,e),Pe.call(e,(i,s)=>{C(r,s,{value:i,enumerable:!0,configurable:!0})}),r}function me(e){var r;const i=[];let s=e.getRootNode();for(;!g(s);)i.push(s),s=(r=s.host)===null||r===void 0?void 0:r.getRootNode();return i}const Bt=(e,r)=>{let i;for(;!g(i=e.host);){const s=i.getRootNode();if(s===r)return i;e=s}};function Fn(e,r,i,s){const c=Zr.call(r,i,s),f=[],w=me(e);if(!b(c))for(let A=0;A<c.length;A++){const O=c[A];if(W(O))continue;const x=O.getRootNode();if(D.call(w,x)!==-1){S.call(f,O);continue}const ie=Bt(x,w[0]);!g(ie)&&D.call(c,ie)===-1&&D.call(f,ie)===-1&&S.call(f,ie)}return f}const gn=new WeakMap;function Sr(){throw new TypeError("Illegal constructor")}Sr.prototype=I(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:Sr},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return gn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(e==="")return null;const r=gn.get(this);for(let i=0,s=r.length;i<s;i++){const c=r[s];if(e===Be.call(c,"id")||e===Be.call(c,"name"))return c}return null}},[Symbol.toStringTag]:{configurable:!0,get(){return"HTMLCollection"}},toString:{writable:!0,configurable:!0,value(){return"[object HTMLCollection]"}}}),V(Sr,HTMLCollection);function we(e){const r=I(Sr.prototype);return gn.set(r,e),Pe.call(e,(i,s)=>{C(r,s,{value:i,enumerable:!0,configurable:!0})}),r}function Ke(e){return W(e)||B(e)}function $n(e,r){const i=ae(e);if(r===i)return De(i);if(r instanceof Element){if(Z(e)===Z(r))return r;if(!b(i)&&oe(r)){const s=ae(r);if(!b(s)&&Ee(i,s))return s}}return null}function Ho(){return Se(this).length>0}function Fo(){return Se(this)[0]||null}function $o(){const e=Se(this);return e[e.length-1]||null}function Bn(){return E(this)}function Bo(e){Nt.call(this,e)}function xo(){const e=Ce.call(this);return b(e)?e:$n(this,e)}function Uo(){const e=Ce.call(this);if(b(e))return null;const r=$n(this,e);return r instanceof Element?r:null}function qo(e){return this===e?0:this.getRootNode()===e?10:H(this)!==H(e)?35:he.call(this,e)}function xn(e){return e==null||H(this)!==H(e)?!1:(he.call(this,e)&_e)!=0}function Un(e){const r=Xe.call(this,!1);if(!e)return r;const i=Se(this);for(let s=0,c=i.length;s<c;s+=1)r.appendChild(i[s].cloneNode(!0));return r}function Go(){if(B(this)){const e=ae(this),r=b(e)?[]:Me(e,Re(this));return ee(r)}return de.call(this)}const qn=J.prototype.getRootNode,Gn=g(qn)?function(){let e=this,r;for(;!b(r=Ce.call(e));)e=r;return e}:qn;function jo(e){const r=ae(e);return b(r)?Gn.call(e):De(r)}function Wo(e){const r=g(e)?!1:!!e.composed;return Te(r)?Gn.call(this,e):jo(this)}M(J.prototype,{firstChild:{get(){return Ke(this)?Fo.call(this):nr.call(this)},enumerable:!0,configurable:!0},lastChild:{get(){return Ke(this)?$o.call(this):Fe.call(this)},enumerable:!0,configurable:!0},textContent:{get(){return z.ENABLE_NODE_PATCH?j(this)?At.call(this):Bn.call(this):Y(this)||B(this)?Bn.call(this):At.call(this)},set:Bo,enumerable:!0,configurable:!0},parentNode:{get(){if(Y(this))return xo.call(this);const e=Ce.call(this);return!b(e)&&W(e)?ae(e):e},enumerable:!0,configurable:!0},parentElement:{get(){if(Y(this))return Uo.call(this);const e=fe.call(this);return!b(e)&&W(e)?ae(e):e},enumerable:!0,configurable:!0},childNodes:{get(){return Ke(this)?Go.call(this):de.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value(){return Ke(this)?Ho.call(this):rr.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value(e){return j(this)?he.call(this,e):qo.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value(e){return this===e?!0:z.ENABLE_NODE_PATCH?j(this)?Ct.call(this,e):xn.call(this,e):e==null?!1:Y(this)||B(this)?xn.call(this,e):Ct.call(this,e)},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value(e){return z.ENABLE_NODE_PATCH?Te(e)?j(this)?Xe.call(this,e):Un.call(this,e):Xe.call(this,e):Y(this)||B(this)?Un.call(this,e):Xe.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:Wo,enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get(){return $e.call(this)}}});const Se=function(e){return e.childNodes};N.call(HTMLElement.prototype,"contains")&&C(HTMLElement.prototype,"contains",_(J.prototype,"contains")),N.call(HTMLElement.prototype,"parentElement")&&C(HTMLElement.prototype,"parentElement",_(J.prototype,"parentElement"));const jn=new WeakMap,Wn=new WeakMap;function Ko(e){return ue(e)||Ie(e)&&!b(e)&&ue(e.handleEvent)}function yn(e,r,i){if(r===i)return!0;let s=Wn.get(e);return g(s)&&(s=e.composedPath(),Wn.set(e,s)),s.includes(i)}function xt(e){if(!Ko(e))return e;let r=jn.get(e);return g(r)&&(r=function(i){const s=X.call(i),c=bn(i);if(!!yn(i,c,s))return ue(e)?e.call(this,i):e.handleEvent&&e.handleEvent(i)},jn.set(e,r)),r}const Ut=new WeakMap,Kn=new WeakMap;function _n(e){let r=Kn.get(e);return g(r)&&(r=I(null),Kn.set(e,r)),r}function bn(e){var r;return(r=Or.get(e))!==null&&r!==void 0?r:be.call(e)}const Vn=new WeakMap;function Xn(e){if(!ue(e))throw new TypeError;let r=Vn.get(e);return g(r)&&(r=function(i){let s=X.call(i);pt(s)||(s=De(s));const c=bn(i);yn(i,c,s)&&e.call(s,i)},r.placement=1,Vn.set(e,r)),r}const zn=new WeakMap;function Yn(e){if(!ue(e))throw new TypeError;let r=zn.get(e);return g(r)&&(r=function(i){const s=X.call(i),c=bn(i);yn(i,c,s)&&e.call(s,i)},r.placement=0,zn.set(e,r)),r}function Qn(e){let r=!1,i=!1;const{type:s,stopImmediatePropagation:c,stopPropagation:f}=e,w=X.call(e),O=_n(w)[s];C(e,"stopImmediatePropagation",{value(){r=!0,c.call(e)},writable:!0,enumerable:!0,configurable:!0}),C(e,"stopPropagation",{value(){i=!0,f.call(e)},writable:!0,enumerable:!0,configurable:!0});const x=k.call(O);function ie(as){Pe.call(x,In=>{ye(r)&&In.placement===as&&D.call(O,In)!==-1&&In.call(void 0,e)})}Ut.set(e,1),ie(1),ye(r)&&ye(i)&&(Ut.set(e,0),ie(0)),Ut.set(e,2)}function Jn(e,r,i){const s=_n(e);let c=s[r];g(c)&&(c=s[r]=[]),D.call(c,i)===-1&&(c.length===0&&ve.call(e,r,Qn),S.call(c,i))}function Zn(e,r,i){const s=_n(e);let c,f;!g(f=s[r])&&(c=D.call(f,i))!==-1&&(Yt.call(f,c,1),f.length===0&&We.call(e,r,Qn))}function Vo(e,r,i){if(ue(r)){const s=Yn(r);Jn(this,e,s)}}function Xo(e,r,i){if(ue(r)){const s=Yn(r);Zn(this,e,s)}}function zo(e,r,i,s){if(ue(i)){const c=q(e),f=Xn(i);Jn(c,r,f)}}function Yo(e,r,i,s){if(ue(i)){const c=q(e),f=Xn(i);Zn(c,r,f)}}const tt=new WeakMap,{createDocumentFragment:Qo}=document;function Jo(e){return tt.has(e)}function qt(e){const r=tt.get(e);if(g(r))throw new TypeError;return r}C(J.prototype,Ve,{set(e){g(e)||(this[Qt]=e,un(this,e.nodeKey))},get(){return this[Qt]},configurable:!0,enumerable:!0}),C(it,Hr,{value:nn});function rt(e){return e[Ve]}function eo(e,r){e[Ve]=r}function Gt(e){return qt(e).delegatesFocus}function q(e){return qt(e).host}function De(e){return qt(e).shadowRoot}function B(e){const r=tt.get(e);return!g(r)&&e===r.host}function vn(e){const r=tt.get(e);return!g(r)&&e===r.shadowRoot}let Zo=0;function ei(e,r){if(tt.has(e))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");const{mode:i,delegatesFocus:s}=r,c=se(e),f=Qo.call(c),w={mode:i,delegatesFocus:!!s,host:e,shadowRoot:f};tt.set(f,w),tt.set(e,w);const A=()=>f,O=A.nodeKey=Zo++;return dn(e,O),eo(f,A),V(f,gt.prototype),f}const to={constructor:{writable:!0,configurable:!0,value:gt},toString:{writable:!0,configurable:!0,value(){return"[object ShadowRoot]"}},synthetic:{writable:!1,enumerable:!1,configurable:!1,value:!0}},ti={activeElement:{enumerable:!0,configurable:!0,get(){const e=q(this),r=se(e),i=dt.call(r);if(b(i))return i;if((he.call(e,i)&_e)==0)return null;let s=i;for(;!Ee(e,s);)s=fe.call(s);return oe(s)?null:s}},delegatesFocus:{configurable:!0,get(){return qt(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,r){const i=q(this),s=se(i);return ro(this,s,e,r)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,r){const i=q(this),s=se(i);return Fn(this,s,e,r)}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getSelection" on ShadowRoot.')}},host:{enumerable:!0,configurable:!0,get(){return q(this)}},mode:{configurable:!0,get(){return qt(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}},Or=new WeakMap;v(to,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,r){return jr.call(q(this),e,r),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return Wr.call(q(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return Gr.call(q(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,r){return Tt.call(q(this),e,r),r}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,r,i){zo(this,e,r)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value(e){return Or.set(e,this),vr.apply(q(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,r,i){Yo(this,e,r)}},baseURI:{enumerable:!0,configurable:!0,get(){return q(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return ee(Ft(this))}},cloneNode:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "cloneNode" on ShadowRoot.')}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value(e){const r=q(this);return this===e?0:this.contains(e)?20:he.call(r,e)&_e?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const r=q(this);return(he.call(r,e)&_e)!=0&&Ee(r,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return Se(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=Se(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return Se(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return $e.call(q(this))}},nextSibling:{enumerable:!0,configurable:!0,get(){return null}},previousSibling:{enumerable:!0,configurable:!0,get(){return null}},nodeName:{enumerable:!0,configurable:!0,get(){return"#document-fragment"}},nodeType:{enumerable:!0,configurable:!0,get(){return 11}},nodeValue:{enumerable:!0,configurable:!0,get(){return null}},ownerDocument:{enumerable:!0,configurable:!0,get(){return q(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get(){return null}},parentNode:{enumerable:!0,configurable:!0,get(){return null}},textContent:{enumerable:!0,configurable:!0,get(){const e=Se(this);let r="";for(let i=0,s=e.length;i<s;i+=1){const c=e[i];c.nodeType!==wt&&(r+=E(c))}return r},set(e){const r=q(this);Nt.call(r,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){return!g(e)&&Te(e.composed)?q(this).getRootNode(e):this}}},{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return we(F.call(Ft(this),e=>e instanceof Element))}},firstElementChild:{enumerable:!0,configurable:!0,get(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get(){const{children:e}=this;return e.item(e.length-1)||null}},getElementById:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getElementById" on ShadowRoot.')}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value(e){return fn(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return ee(pn(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=Se(this);let r="";for(let i=0,s=e.length;i<s;i+=1)r+=y(e[i]);return r},set(e){const r=q(this);St.call(r,e)}}},ti);function gt(){throw new TypeError("Illegal constructor")}gt.prototype=I(DocumentFragment.prototype,to),C(gt,Symbol.hasInstance,{value:function(e){return Ie(e)&&!b(e)&&(pt(e)||G(e)===gt.prototype)}});function yt(e,r){const i=[];let s;if(e instanceof Window)s=e;else if(e instanceof J)s=e.getRootNode();else return i;let c=e;for(;!b(c);)if(i.push(c),c instanceof Element||c instanceof Text){const w=c.assignedSlot;b(w)?c=c.parentNode:c=w}else(vn(c)||pt(c))&&(r||c!==s)?c=c.host:c instanceof J?c=c.parentNode:c=null;let f;return e instanceof Window?f=e.document:f=se(e),i[i.length-1]===f&&i.push(window),i}/**
|
*/function jt(e,r){if(b(e))return null;const i=yt(e,!0),s=r;for(let c=0,f,w,A,O;c<s.length;c++)if(f=s[c],A=f instanceof Window?f:f.getRootNode(),A!==w&&(O=i.indexOf(A),w=A),!vn(A)||!g(O)&&O>-1)return f;return null}function ro(e,r,i,s){const c=Lt.call(r,i,s);return b(c)?c:jt(e,yt(c,!0))}function ri(e,r){return ro(this,this,e,r)}Document.prototype.elementFromPoint=ri;function ni(e,r){return Fn(this,this,e,r)}Document.prototype.elementsFromPoint=ni,C(Document.prototype,"activeElement",{get(){let e=dt.call(this);if(b(e))return e;for(;!g(H(e));)if(e=fe.call(e),b(e))return null;return e.tagName==="HTML"&&(e=this.body),e},enumerable:!0,configurable:!0}),C(Document.prototype,"getElementById",{value(){const e=Ze.apply(this,k.call(arguments));return b(e)?null:g(H(e))||j(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),C(Document.prototype,"querySelector",{value(){const e=$(kt.apply(this,k.call(arguments))),r=re.call(e,i=>g(H(i))||j(i));return g(r)?null:r},writable:!0,enumerable:!0,configurable:!0}),C(Document.prototype,"querySelectorAll",{value(){const e=$(kt.apply(this,k.call(arguments))),r=F.call(e,i=>g(H(i))||j(i));return ee(r)},writable:!0,enumerable:!0,configurable:!0}),C(Document.prototype,"getElementsByClassName",{value(){const e=$(en.apply(this,k.call(arguments))),r=F.call(e,i=>g(H(i))||j(i));return we(r)},writable:!0,enumerable:!0,configurable:!0}),C(Document.prototype,"getElementsByTagName",{value(){const e=$(gr.apply(this,k.call(arguments))),r=F.call(e,i=>g(H(i))||j(i));return we(r)},writable:!0,enumerable:!0,configurable:!0}),C(Document.prototype,"getElementsByTagNameNS",{value(){const e=$(yr.apply(this,k.call(arguments))),r=F.call(e,i=>g(H(i))||j(i));return we(r)},writable:!0,enumerable:!0,configurable:!0}),C(_(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=$(tn.apply(this,k.call(arguments))),r=F.call(e,i=>g(H(i))||j(i));return ee(r)},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:gt,configurable:!0,writable:!0});const no=Object.getOwnPropertyDescriptor(Event.prototype,"composed");function oi(){if(!no)return!1;let e=new Event("click");const r=document.createElement("button");return r.addEventListener("click",i=>e=i),r.click(),!no.get.call(e)}const ii=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function oo(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get(){return!0}})}function si(){HTMLElement.prototype.click=function(){ve.call(this,"click",oo);try{ii.value.call(this)}finally{We.call(this,"click",oo)}}}oi()&&si();function ai(){return new Event("test",{composed:!0}).composed!==!0}function li(){const e=v(I(null),{beforeinput:1,blur:1,click:1,compositionend:1,compositionstart:1,compositionupdate:1,copy:1,cut:1,dblclick:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,drag:1,dragend:1,dragenter:1,dragleave:1,dragover:1,dragstart:1,drop:1,focus:1,focusin:1,focusout:1,gotpointercapture:1,input:1,keydown:1,keypress:1,keyup:1,lostpointercapture:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,paste:1,pointercancel:1,pointerdown:1,pointerenter:1,pointerleave:1,pointermove:1,pointerout:1,pointerover:1,pointerup:1,touchcancel:1,touchend:1,touchmove:1,touchstart:1,wheel:1}),r=Event;function i(s,c){const f=new r(s,c),w=!!(c&&c.composed);return Object.defineProperties(f,{composed:{get(){return w},configurable:!0,enumerable:!0}}),f}i.prototype=r.prototype,i.AT_TARGET=r.AT_TARGET,i.BUBBLING_PHASE=r.BUBBLING_PHASE,i.CAPTURING_PHASE=r.CAPTURING_PHASE,i.NONE=r.NONE,window.Event=i,Object.defineProperties(Event.prototype,{composed:{get(){const{type:s}=this;return e[s]===1},configurable:!0,enumerable:!0}})}ai()&&li();const io=CustomEvent;function so(e,r){const i=new io(e,r),s=!!(r&&r.composed);return Object.defineProperties(i,{composed:{get(){return s},configurable:!0,enumerable:!0}}),i}if(so.prototype=io.prototype,window.CustomEvent=so,typeof ClipboardEvent!="undefined"){const e=v(I(null),{copy:1,cut:1,paste:1});M(ClipboardEvent.prototype,{composed:{get(){const{type:r}=this;return e[r]===1},configurable:!0,enumerable:!0}})}function ci(){const e=typeof HTMLIFrameElement!="undefined",r=typeof Proxy!="undefined"&&Te(Proxy.isCompat);return e&&r}function ui(){const e=_(HTMLIFrameElement.prototype,"contentWindow"),{get:r}=e;e.get=function(){const i=r.call(this);return b(i)||g(H(this))?i:di(i)},C(HTMLIFrameElement.prototype,"contentWindow",e)}function di(e){return{addEventListener(){return e.addEventListener.apply(e,arguments)},blur(){return e.blur.apply(e,arguments)},close(){return e.close.apply(e,arguments)},focus(){return e.focus.apply(e,arguments)},postMessage(){return e.postMessage.apply(e,arguments)},removeEventListener(){return e.removeEventListener.apply(e,arguments)},get closed(){return e.closed},get frames(){return e.frames},get length(){return e.length},get location(){return e.location},set location(r){e.location=r},get opener(){return e.opener},get parent(){return e.parent},get self(){return e.self},get top(){return e.top},get window(){return e.window}}}ci()&&ui();const En=MutationObserver,{disconnect:hi,observe:fi,takeRecords:pi}=En.prototype,ao="$$lwcObserverCallbackWrapper$$",wn="$$lwcNodeObservers$$",Pr=new WeakMap;function Ir(e){return e[wn]}function mi(e,r){e[wn]=r}function lo(e){const{addedNodes:r,removedNodes:i,target:s,type:c}=e,f=I(MutationRecord.prototype);return M(f,{addedNodes:{get(){return r},enumerable:!0,configurable:!0},removedNodes:{get(){return i},enumerable:!0,configurable:!0},type:{get(){return c},enumerable:!0,configurable:!0},target:{get(){return s.shadowRoot},enumerable:!0,configurable:!0}}),f}function Tn(e,r){let i=r;for(;!b(i);){const s=Ir(i);if(!g(s)&&(s[0]===e||D.call(s,e)!==-1))return!0;i=i.parentNode}return!1}function co(e,r){return He.call(e,(i,s)=>{const{target:c,addedNodes:f,removedNodes:w,type:A}=s;if(A==="childList"&&!g(ke(c)))if(f.length>0){const O=f[0];if(Tn(r,O)){const x=Ir(c);x&&(x[0]===r||D.call(x,r)!==-1)?S.call(i,s):S.call(i,lo(s))}}else{const O=c.shadowRoot,x=w[0];if(Z(c)===Z(x)&&Tn(r,c))S.call(i,s);else if(O){const ie=Ir(O);ie&&(ie[0]===r||D.call(ie,r)!==-1)&&S.call(i,lo(s))}}else Tn(r,c)&&S.call(i,s);return i},[])}function gi(e){let r=e[ao];return g(r)&&(r=e[ao]=(i,s)=>{const c=co(i,s);c.length!==0&&e.call(s,c,s)}),r}function Wt(e){const r=gi(e);return new En(r)}function yi(){hi.call(this);const e=Pr.get(this);g(e)||(Pe.call(e,r=>{const i=r[wn];if(!g(i)){const s=D.call(i,this);s!==-1&&Yt.call(i,s,1)}}),e.length=0)}function _i(e,r){let i=Ir(e);if(g(i)&&(i=[],mi(e,i)),D.call(i,this)===-1&&S.call(i,this),vn(e)&&(e=e.host),Pr.has(this)){const s=Pr.get(this);D.call(s,e)===-1&&S.call(s,e)}else Pr.set(this,[e]);return fi.call(this,e,r)}function bi(){return co(pi.call(this),this)}Wt.prototype=En.prototype,Wt.prototype.disconnect=yi,Wt.prototype.observe=_i,Wt.prototype.takeRecords=bi,C(window,"MutationObserver",{value:Wt,configurable:!0,writable:!0});function vi(e,r,i){if(B(this))return Vo.apply(this,arguments);if(arguments.length<2){const c=k.call(arguments);return c.length>1&&(c[1]=xt(c[1])),ve.apply(this,c)}const s=xt(r);return ve.call(this,e,s,i)}function Ei(e,r,i){if(B(this))return Xo.apply(this,arguments);const s=k.call(arguments);arguments.length>1&&(s[1]=xt(s[1])),We.apply(this,s),We.apply(this,arguments)}M(br,{addEventListener:{value:vi,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Ei,enumerable:!0,writable:!0,configurable:!0}});function wi(){return typeof EventTarget=="undefined"}function Ti(e,r,i){if(arguments.length>1){const s=k.call(arguments);return s[1]=xt(s[1]),et.apply(this,s)}return et.apply(this,arguments)}function Ci(e,r,i){if(arguments.length>1){const s=k.call(arguments);s[1]=xt(s[1]),ht.apply(this,s)}ht.apply(this,arguments)}function Ai(){M(Window.prototype,{addEventListener:{value:Ti,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Ci,enumerable:!0,writable:!0,configurable:!0}})}wi()&&Ai();function Ni(){const e=X.call(this);return b(e)?null:Ut.get(this)===1?De(e):e}function uo(){const e=be.call(this);if(!(e instanceof J))return e;const r=se(e),i=yt(e,this.composed),s=X.call(this);if(s instanceof J){if(s===r||s===r.body)return g(H(e))?e:jt(r,i)}else return b(s)&&g(H(e))?e:jt(r,i);let c=s,f=i;return B(s)&&Ut.get(this)===1&&(c=De(s)),B(e)&&Or.has(this)&&(f=yt(De(e),this.composed)),jt(c,f)}function ho(){const e=be.call(this);if(!(e instanceof J))return[];const r=Boolean(e.shadowRoot),i=Jo(e);if(r&&!i)return fr.call(this);const s=X.call(this);if(b(s))return[];let c=e;return B(e)&&Or.has(this)&&(c=De(e)),yt(c,this.composed)}M(Event.prototype,{target:{get:uo,enumerable:!0,configurable:!0},currentTarget:{get:Ni,enumerable:!0,configurable:!0},composedPath:{value:ho,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:uo,enumerable:!0,configurable:!0},path:{get:ho,enumerable:!0,configurable:!0}});function fo(e){const r=_(e.prototype,"relatedTarget").get;C(e.prototype,"relatedTarget",{get(){const i=r.call(this);if(b(i))return null;if(!(i instanceof J)||!Y(i))return i;let s=X.call(this);return b(s)&&(s=se(i)),jt(s,yt(i,!0))},enumerable:!0,configurable:!0})}fo(FocusEvent),fo(MouseEvent);const Ri=N.call(Text.prototype,"assignedSlot")?_(Text.prototype,"assignedSlot").get:()=>null;let Cn;const Si={childList:!0},po=new WeakMap;function Oi(){return new pe(e=>{const r=[];Pe.call(e,i=>{const{target:s}=i;D.call(r,s)===-1&&(S.call(r,s),vr.call(s,new CustomEvent("slotchange")))})})}function An(e){const r=$(de.call(e));return He.call(r,(i,s)=>(s instanceof Element&&oe(s)?S.apply(i,An(s)):S.call(i,s),i),[])}function mo(){const e=Ce.call(this);if(e instanceof Element){const r=Je.call(e);if(pt(r))return this instanceof Text?Ri.call(this):Ne.call(this)}return!b(e)&&oe(e)&&H(e)!==H(this)?e:null}M(HTMLSlotElement.prototype,{addEventListener:{value(e,r,i){HTMLElement.prototype.addEventListener.call(this,e,r,i),e==="slotchange"&&!po.get(this)&&(po.set(this,!0),Cn||(Cn=Oi()),Dt.call(Cn,this,Si))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value(e){if(Y(this)){const i=!g(e)&&Te(e.flatten)?An(this):$t(this);return F.call(i,s=>s instanceof Element)}else return qe.apply(this,k.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value(e){return Y(this)?!g(e)&&Te(e.flatten)?An(this):$t(this):Ue.apply(this,k.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get(){const e=Be.call(this,"name");return b(e)?"":e},set(e){Rt.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get(){if(Y(this)){const e=ae(this),r=b(e)?[]:Me(e,Re(this));return ee(r)}return de.call(this)},enumerable:!0,configurable:!0}}),M(Text.prototype,{assignedSlot:{get:mo,enumerable:!0,configurable:!0}});function Nn(e,r){let i;const s=H(e);if(g(s))e instanceof HTMLBodyElement?i=F.call(r,c=>g(H(c))||j(e)):i=k.call(r);else if(B(e)){const c=ae(e);b(c)?i=[]:ke(e)?i=Nr(e,r):i=Me(c,r)}else i=F.call(r,c=>Z(c)===s);return i}function go(){const e=Se(this);let r="";for(let i=0,s=e.length;i<s;i+=1)r+=y(e[i]);return r}function yo(){return y(this)}function Pi(e){return e[Fr]?ei(this,e):Yr.call(this,e)}function Ii(){if(B(this)){const e=De(this);if(e.mode==="open")return e}return Je.call(this)}function Li(){const e=ae(this),r=b(e)?[]:Me(e,Re(this));return we(F.call(r,i=>i instanceof Element))}function ki(){return this.children.length}function Mi(){return this.children[0]||null}function Di(){const{children:e}=this;return e.item(e.length-1)||null}M(Element.prototype,{innerHTML:{get(){return z.ENABLE_ELEMENT_PATCH?j(this)?cr.call(this):go.call(this):Y(this)||B(this)?go.call(this):cr.call(this)},set(e){St.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get(){return z.ENABLE_ELEMENT_PATCH?j(this)?ur.call(this):yo.call(this):Y(this)||B(this)?yo.call(this):ur.call(this)},set(e){Jr.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:Pi,enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:Ii,enumerable:!0,configurable:!0},children:{get(){return Ke(this)?Li.call(this):Qe.call(this)},enumerable:!0,configurable:!0},childElementCount:{get(){return Ke(this)?ki.call(this):st.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get(){return Ke(this)?Mi.call(this):Qr.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get(){return Ke(this)?Di.call(this):at.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:mo,enumerable:!0,configurable:!0}}),N.call(HTMLElement.prototype,"innerHTML")&&C(HTMLElement.prototype,"innerHTML",_(Element.prototype,"innerHTML")),N.call(HTMLElement.prototype,"outerHTML")&&C(HTMLElement.prototype,"outerHTML",_(Element.prototype,"outerHTML")),N.call(HTMLElement.prototype,"children")&&C(HTMLElement.prototype,"children",_(Element.prototype,"children"));function Hi(){const e=$(Le.apply(this,k.call(arguments)));if(B(this)){const r=ae(this);return g(ke(this))?b(r)?null:Rr(r,e):hn(this,e)}else if(Y(this)){const r=H(this);if(g(r)){if(!z.ENABLE_NODE_LIST_PATCH)return e.length===0?null:e[0];const i=Z(this),s=re.call(e,c=>Z(c)===i);return g(s)?null:s}else{const i=re.call(e,s=>Z(s)===r);return g(i)?null:i}}else{if(!z.ENABLE_NODE_LIST_PATCH&&!(this instanceof HTMLBodyElement)){const i=e[0];return g(i)?null:i}const r=re.call(e,i=>g(H(i))||j(this));return g(r)?null:r}}function Kt(e,r,i){let s;if(B(e)){const c=ae(e);g(ke(e))?b(c)?s=[]:s=Me(c,r):s=Nr(e,r)}else if(Y(e)){const c=H(e);if(!g(c))s=F.call(r,f=>Z(f)===c);else if(i===1){const f=Z(e);s=F.call(r,w=>Z(w)===f)}else s=k.call(r)}else e instanceof HTMLBodyElement||i===1?s=F.call(r,c=>g(H(c))||j(e)):s=k.call(r);return s}M(Element.prototype,{querySelector:{value:Hi,writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value(){const e=$(Le.apply(this,k.call(arguments)));if(!z.ENABLE_NODE_LIST_PATCH){const r=Kt(this,e,0);return ee(r)}return ee(Kt(this,e,1))},writable:!0,enumerable:!0,configurable:!0}}),M(Element.prototype,{getElementsByClassName:{value(){const e=$(hr.apply(this,k.call(arguments)));if(!z.ENABLE_HTML_COLLECTIONS_PATCH)return we(Nn(this,e));const r=Kt(this,e,1);return we(r)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value(){const e=$(Vr.apply(this,k.call(arguments)));if(!z.ENABLE_HTML_COLLECTIONS_PATCH)return we(Nn(this,e));const r=Kt(this,e,1);return we(r)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value(){const e=$(Xr.apply(this,k.call(arguments)));if(!z.ENABLE_HTML_COLLECTIONS_PATCH)return we(Nn(this,e));const r=Kt(this,e,1);return we(r)},writable:!0,enumerable:!0,configurable:!0}}),N.call(HTMLElement.prototype,"getElementsByClassName")&&C(HTMLElement.prototype,"getElementsByClassName",_(Element.prototype,"getElementsByClassName"));function _o(e){const r=je(e);return Mt.call(r,e)}function Rn(e){const r=je(e);return rn.call(r)}function bo(e){return e.visibility==="visible"&&e.display!=="none"}function Fi(e){const r=je(e),i=Rn(e);if(i===null)return null;const s=[];for(let f=0;f<i.rangeCount;f++)s.push(i.getRangeAt(f));const c={element:e,onselect:r.onselect,onselectstart:r.onselectstart,onselectionchange:r.onselectionchange,ranges:s};return r.onselect=null,r.onselectstart=null,r.onselectionchange=null,c}function $i(e){if(e===null)return;const{element:r,onselect:i,onselectstart:s,onselectionchange:c,ranges:f}=e,w=je(r),A=Rn(r);A.removeAllRanges();for(let O=0;O<f.length;O++)A.addRange(f[O]);w.onselect=i,w.onselectstart=s,w.onselectionchange=c}function Bi(e){const r=Rn(e);if(r===null)return e.textContent||"";const i=document.createRange();i.selectNodeContents(e);const s=i.getBoundingClientRect();if(s.height<=0||s.width<=0)return"";r.removeAllRanges(),r.addRange(i);const c=r.toString();return c||e.textContent||""}const xi=e=>e.nodeType===Et,Ui=e=>e.nodeType===tr;function vo(e){const r=[];if(xi(e)){const{tagName:i}=e,s=_o(e);if(i==="OPTION")return[1,xe.call(e),1];if(i==="TEXTAREA")return[];{const f=e.childNodes;for(let w=0,A=f.length;w<A;w++)S.apply(r,vo(f[w]))}if(!bo(s))return i==="SELECT"||i==="DATALIST"?[]:r;i==="BR"&&r.push(`
|