PageSourceSearch

https://s.realpage.com/dist/next-site/script/chunks/FormModal-DTdXSSMR.js

js realpage.com collected 2026-09-24 08:49:34 UTC 122,630 bytes, 14 lines download raw bytes

1import{u as is,y as v,A as rs,m as Ki,v as qi,d as Yi,q as Lt,R as zi,f as xs}from"./RecaptchaV3-CM1VLSCz.js";const Ms=is({prefix:v().default("sales"),ignorePrefix:v().default("sales"),homePlaceholder:v().default("homepage"),modalFormId:v().default("2"),modalCta:v().default("Contact Sales"),modalTier:v().default("Tier 1"),modalSubmitEndpoint:v().default("https://success.realpage.com/l/703303/2026-03-04/4429f1"),modalWrapperUrl:v().default("/html-includes/forms/next/contact-sales.html")});class ze extends rs{constructor(t,e={}){super(t,Ms.parse(e)),this.onClickPrevent=n=>{n.preventDefault()},this.modalModeActive=!1,this.apply()}getSettingsSchema(){return Ms}static initDefault(t={}){return ze.abstractFactory("[data-rp-sales-url],[data-contact-form]",t)}static factory(t,e={}){return ze.abstractFactory(t,e)}destroy(){this.modalModeActive&&this.element.removeEventListener("click",this.onClickPrevent),super.destroy()}apply(){const t=this.buildUrl();this.replaceUrl(t)}buildUrl(){let t=window.location.pathname;return t.indexOf(this.settings.ignorePrefix)===1?t:(t.length===1&&(t+=this.settings.homePlaceholder),`/${this.settings.prefix}${t}`)}replaceUrl(t){const e=this.element;typeof window.linkToSalesPage<"u"?e.href=t:(e.href="",e.setAttribute("data-modal-form-id",this.settings.modalFormId),e.setAttribute("data-cta",this.settings.modalCta),e.setAttribute("data-tier",this.settings.modalTier),e.setAttribute("data-form-submit-endpoint",this.settings.modalSubmitEndpoint),e.setAttribute("data-form-wrapper-url",this.settings.modalWrapperUrl),this.element.addEventListener("click",this.onClickPrevent),this.modalModeActive=!0)}}const Wt=(s=!1)=>qi(t=>t===!0||t==="true"||t==="1",Yi().default(s)),Ge=is({formId:v(),formProvider:Ki(["pardot","salesforce","jsonPost"]).default("pardot"),formName:v().optional(),formEntity:v().default(""),formSubmitEndpoint:v().default(""),submitButtonText:v().optional(),submitButtonId:v().optional(),cta:v().default(""),tier:v().default(""),vertical:v().default(""),solution:v().default(""),family:v().default(""),buyerStage:v().default(""),on24Id:v().default(""),channel:v().optional(),formUrl:v().default("/pardot/forms/{formId}.php"),pageUrl:v().default(()=>window.location.origin+window.location.pathname),emailUrl:v().default("/pardot/null-email.php"),localFormUrl:v().default("/forms/data"),registerWebcastAttendeeEndpoint:v().optional(),allowDrafted:Wt(!1),getDataFromUrl:Wt(!1),gaInConsentMode:Wt(!1),disableSpamDetection:Wt(!1),smartForm:Wt(!1),formCallback:v().optional()});class os{constructor(t,e){this.element=t,this.parent=e}}function st(s){if(!s)return"";if(s.indexOf("://")!==-1)return s;if(s.startsWith("//"))return`${window.location.protocol}${s}`;const t=(window.location.hostname||"").toLowerCase(),e=t.includes("qa"),n=s.startsWith("/")?s:`/${s}`;return Dn(t)?n:`${e?"https://www-qa.realpage.com":"https://www.realpage.com"}${n}`}function Dn(s){return s==="localhost"||s.endsWith(".realpage.site")||s==="www.realpage.com"||s==="www-qa.realpage.com"}function Rs(s){return s.split("").reduce((t,e)=>(t<<5)-t+e.charCodeAt(0)|0,0)}function Gi(){const s={},t=window.location.search.split("?")[1];if(typeof t>"u")return{};for(const e of t.split("&")){const n=e.split("=");s[n[0]]=decodeURIComponent(n[1]||"")}return s}function Xi(s){if(Object.keys(s).length===0)return"";let t="?";for(const e of Object.keys(s))s[e]&&(t+=`${e}=${encodeURIComponent(s[e])}&`);return t.slice(0,-1)}function Qi(s){const t={},e=s.split("?")[1];if(typeof e>"u")return{};for(const n of e.split("&")){const i=n.split("=");t[i[0]]=decodeURIComponent(i[1]||"")}return t}function Ji(s){if(!s)return s;let t=s[0].toLowerCase();for(let e=1;e<s.length;e++)s[e]===s[e].toUpperCase()?t+=`_${s[e].toLowerCase()}`:t+=s[e];return t}function Zi(s){const t=document.cookie.match(new RegExp("(?:^|; )"+s+"=([^;]*)"));return t?decodeURIComponent(t[1]):""}function Ps(){const s=Zi("OptanonConsent");if(!s)return{consentTimeStamp:"",consentGroups:"",consentId:""};const t={};for(const e of s.split("&")){const[n,i=""]=e.split("=");t[n]=decodeURIComponent(i)}return{consentTimeStamp:(t.datestamp??"").replace(/\+/g," "),consentGroups:t.groups??"",consentId:t.consentId??""}}function Fs(s){const t=st(s);if(!t)return"";if(t.indexOf("://")!==-1)return t;const e=t.startsWith("/")?t:`/${t}`;return`${window.location.origin}${e}`}const tr=15e3;function Vs(s,t,e){return new Promise((n,i)=>{if(typeof window[e]=="function"){n();return}
1const r=new URLSearchParams;for(const{name:m,value:b}of t)r.append(m,b??"");r.append("form_id",e);const o=s.indexOf("?")===-1?"?":"&",a=`${s}${o}${r.toString()}`,l=document.createElement("script");let d=!1;const c=()=>{l.parentNode&&l.parentNode.removeChild(l);try{delete window[e]}catch{window[e]=void 0}window.clearTimeout(f)},p=m=>{d||(d=!0,c(),m())};window[e]=()=>{p(n)};const f=window.setTimeout(()=>{p(()=>i(new Error(`JSONP timeout for ${e}`)))},tr);l.src=a,l.async=!0,l.onerror=()=>{p(()=>i(new Error(`JSONP load error for ${e}`)))},l.onload=()=>{p(n)},document.head.appendChild(l)})}class er extends os{constructor(){super(...arguments),this.listeners=[]}registerFormEvents(){const t=sr,e=this.parent.settings.formId;this.addDocListener(`${t}.${e}.error`,n=>{this.matchesFormId(n.formId)&&this.parent.errorActions(n)}),this.addDocListener(`${t}..error`,n=>{this.parent.errorActions(n)}),this.addDocListener(`${t}.${e}.success`,n=>{this.matchesFormId(n.formId)&&this.parent.formSubmitted()}),this.addDocListener(`${t}..success`,()=>{this.parent.expectsResponse&&this.parent.formSubmitted()})}removeFormEvents(){for(const{type:t,handler:e}of this.listeners)document.removeEventListener(t,e);this.listeners.length=0}addDocListener(t,e){const n=i=>{const r=i.detail??{};e(r)};document.addEventListener(t,n),this.listeners.push({type:t,handler:n})}matchesFormId(t){return parseInt(String(t),10)===parseInt(String(this.parent.settings.formId),10)}submit(){if(!this.parent.settings.registerWebcastAttendeeEndpoint){this.saveDataToEndPoint(),this.parent.saveDataToLocalDatabase();return}if(this.parent.settings.formSubmitEndpoint){this.saveDataToEndPoint().finally(()=>this.registerWebcastAttendee()).catch(()=>{});return}this.registerWebcastAttendee()}registerWebcastAttendee(){const t=this.parent.settings.registerWebcastAttendeeEndpoint??"",e=this.parent.settings.allowDrafted,n=e?`${t}?allowDrafted=${String(e)}`:t,i=this.parent.serializedData.concat(this.parent.getSpamContextFields()),r=`form_${this.parent.settings.formId}`;return Vs(n,i,r).catch(()=>{})}saveDataToEndPoint(){const t=(this.parent.settings.formSubmitEndpoint&&this.parent.settings.formSubmitEndpoint.length?this.parent.settings.formSubmitEndpoint:this.element.action)||"",e=this.parent.serializedData,n=`form_${this.parent.settings.formId}`;return Vs(t,e,n)}}const sr="Form";class nr extends os{registerFormEvents(){}removeFormEvents(){}async submit(){const t=(this.parent.settings.formSubmitEndpoint&&this.parent.settings.formSubmitEndpoint.length?this.parent.settings.formSubmitEndpoint:this.element.action)||"",e={};for(const{name:i,value:r}of this.parent.serializedData)e[i]=r;const n=`${t.split("?")[0]}${Xi({...e,...Qi(t)})}`;try{await fetch(n,{method:"GET",mode:"no-cors"}),this.parent.formSubmitted()}catch{this.parent.saveUserData(),this.parent.errorActions({})}}}class ir extends os{registerFormEvents(){}removeFormEvents(){}submit(){const t=st(this.element.action),e=this.parent.getDataAsJson();for(const{name:n,value:i}of this.parent.getSpamContextFields())e[n]=i;fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),mode:"cors"}).then(n=>{if(!n.ok)throw new Error(`Form submission failed: ${n.status}`);this.parent.formSubmitted()}).catch(()=>{this.parent.errorActions({})}),this.parent.saveDataToLocalDatabase()}}function In(s,t){const e=typeof t<"u"?`Please enter your ${t}`:"This field is required";return s!==""?{valid:!0,message:null}:{valid:!1,message:e}}function rr(s,t){const e=In(s,t);return!e.valid&&typeof t<"u"&&(e.message=`Please select ${t}`),e}function or(s,t,e){return Array.from(document.querySelectorAll(`[name="${e.name}"]`)).some(r=>r.checked)?{valid:!0,message:null}:{valid:!1,message:`Please select ${t??e.name}`}}function ar(s){return/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i.test(s)?{valid:!0,message:null}:{valid:!1,message:"Please enter a valid email address."}}function lr(s){return/^\(?([0-9]{3})\)?[-.●]?([0-9]{3})[-.●]?([0-9]{4}
1)$/.test(s)?{valid:!0,message:null}:{valid:!1,message:"Please enter a valid phone number"}}function cr(s){return s===""?{valid:!0,message:null}:{valid:!1,message:null}}function ur(s){return s==="checked"?{valid:!0,message:null}:{valid:!1,message:"You must check the consent box in order to submit your information."}}function dr(s,t,e,n,i){const r=parseInt(i,10);return s.length<=r?{valid:!0,message:null}:{valid:!1,message:`Value exceeds the maximum length by ${s.length-r}`}}const Hs={required:(s,t)=>In(s,t),requiredSelect:(s,t)=>rr(s,t),requiredRadio:(s,t,e,n)=>or(s,t,n),email:s=>ar(s),phone:s=>lr(s),empty:s=>cr(s),privacy:s=>ur(s),maxLength:(s,t,e,n,...i)=>dr(s,t,e,n,i[0]??"0")};class hr{constructor(){this.errors={}}validateValue(t,e,n,i){this.errors={};const r=fr(n),o=t.trim();for(const a of r)this.checkRule(o,a,e,i);return{errors:this.errors,valid:Object.keys(this.errors).length===0}}checkRule(t,e,n,i){const r=e.split(":"),o=r[0];if(!(o in Hs)){console.warn(`[Validator] Rule "${o}" is not defined`);return}const a=Hs[o](t,n,o,i,...r.slice(1));a.valid||(this.errors[o]=a.message)}validateField(t){const e=t.dataset;
1if(!("validator"in e))return;let n;const i=t.type?.toLowerCase()??"";i==="checkbox"||i==="radio"?n=t.checked?"checked":"":n=t.value;const r=this.validateValue(n,e.fieldName,e.validator,t);return this.renderFieldErrors(t,r),r.valid}validate(t){const e=Array.from(t.querySelectorAll("[data-validator]"));let n=!0;for(const i of e)this.validateField(i)===!1&&(n=!1);return n}renderFieldErrors(t,e){const n=t.closest(".form-col");if(n)if(e.valid){n.classList.remove("is-invalid"),n.classList.add("is-valid");const i=n.querySelector(".invalid-feedback");i&&(i.innerHTML="")}else{n.classList.add("is-invalid"),n.classList.remove("is-valid");const i=n.querySelector(".invalid-feedback");if(i){let r="";for(const o in e.errors)Object.prototype.hasOwnProperty.call(e.errors,o)&&(r+=e.errors[o]+"<br>");i.innerHTML=r}}}}function fr(s){return typeof s>"u"||s.length===0?[]:s.split("|")}const $n=["utm_adgroup","utm_campaign","utm_content","utm_keyword","utm_source","utm_medium","utm_placement","gclid","utm_banner_source"],Ne="RP.UTMS",Us="landing_url",mr=90;function pr(s){const t=document.cookie.match(new RegExp("(?:^|;\\s*)"+s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"=([^;]*)"));return t?decodeURIComponent(t[1]):null}function _r(s,t,e){const n=new Date;n.setTime(n.getTime()+e*24*60*60*1e3),document.cookie=encodeURIComponent(s)+"="+encodeURIComponent(t)+"; expires="+n.toUTCString()+"; path=/"}function Ws(s){const t=pr(s);if(t!==null)try{return JSON.parse(t)}catch{return}}function gr(s,t,e){_r(s,JSON.stringify(t),e)}function Er(){return new URLSearchParams(window.location.search)}const vr=[{name:"google",pattern:/(^|\.)google\./},{name:"bing",pattern:/(^|\.)bing\.com$/},{name:"yahoo",pattern:/(^|\.)yahoo\./},{name:"baidu",pattern:/(^|\.)baidu\.com$/},{name:"duckduckgo",pattern:/(^|\.)duckduckgo\.com$/}];function kn(){if(!document.referrer)return null;try{return new URL(document.referrer).hostname}catch{return null}}function as(){const s=document.referrer;return s===""||s.indexOf(window.location.host)===-1}function br(){const s=kn();if(!s)return null;const t=vr.find(e=>e.pattern.test(s));return t?t.name:null}function yr(){const s=br();if(s)return{source:s,medium:"organic"};const t=kn();return as()&&t?{source:t,medium:"referral"}:document.referrer?null:{source:"direct",medium:"direct"}}function Ar(s){return $n.some(e=>s.has(e))||as()}function wr(){try{if(typeof sessionStorage>"u")return null;let s=sessionStorage.getItem(Us);return s||(s=window.location.origin+window.location.pathname,sessionStorage.setItem(Us,s)),s}catch{return null}}let De;class ls{static saveOrUpdate(){const t=Er(),e=Ws(Ne),n={},i=wr(),r=t.has("utm_source"),o=t.has("utm_medium"),a=o&&t.get("utm_medium")!=="",l=r&&t.get("utm_source")==="chatgpt.com";let d=typeof e>"u";for(const f of $n)t.has(f)?(n[f]=t.get(f),d=!0):n[f]=null;if(l&&!a&&(n.utm_medium="referral",d=!0),!r&&!o){const f=yr();f&&(n.utm_medium=f.medium,n.utm_source=f.source,d=!0)}(Ar(t)||d)&&(as()&&(n.referrer=document.referrer||null),gr(Ne,n,mr));const c=Ws(Ne)??{};return{utm_adgroup:c.utm_adgroup??null,utm_campaign:c.utm_campaign??null,utm_content:c.utm_content??null,utm_keyword:c.utm_keyword??null,utm_source:c.utm_source??null,utm_medium:c.utm_medium??null,utm_placement:c.utm_placement??null,gclid:c.gclid??null,utm_banner_source:c.utm_banner_source??null,referrer:c.referrer??null,landing_url:i}}static get resultsStatic(){return De===void 0&&(De=ls.saveOrUpdate()),De}}const Tr=ls.resultsStatic,Sr="954427936",Cr="Wx7FCP6i52AQoNSNxwM";function Or(s,t){try{const e=new Image(1,1);e.src=`https://www.googleadservices.com/pagead/conversion/${Sr}/?label=${Cr}&script=0`}catch{}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form-success",elementid:s,timestamp:Date.now(),...t?{metaEventId:t}:{}})}function Lr(s){window.dataLayer=window.dataLayer||[],window.dataLayer.push(s)}class cs{constructor(t){this.onChange=()=>{this.select.value===this.otherOption.value?(this.wrapper.classList.remove("d-none"),this.other.setAttribute("name",this.name),this.select.removeAttribute("name")):(this.wrapper.classList.add("d-none"),this.other.removeAttribute("name"),this.select.setAttribute("name",this.name),this.other.value="")},this.select=t,this.name=t.name;const n=t.closest("form")?.querySelector(`[data-other-value='${this.name}']`);if(!n)throw new Error("OtherField: missing [data-other-value] sibling");this.wrapper=n,this.other=n.querySelector("input, select, textarea"),this.otherOption=t.querySelector("[data-other-option]"),t.addEventListener("change",this.onChange)}static factory(t){return Array.from(t.querySelectorAll("[data-has-other-option]")).map(e=>new cs(e))}}class Nr{constructor(t){this.element=t,this.element.style.position="absolute",this.element.style.top="0",this.element.style.left="100%",this.validatorTargets=Array.from(t.querySelectorAll("[data-validator]")),this.validatorTargets.forEac
1h(e=>{const n=e.getAttribute("data-validator");n!==null&&e.setAttribute("data-original-validator",n),e.removeAttribute("data-validator")})}getHeight(){return this.element.offsetHeight}hide(t=!1){this.removeStepValidation(),t?Lt.set(this.element,{left:"100%"}):Lt.to(this.element,{left:"-100%",duration:.5,ease:"power1.inOut"})}show(t=!1){this.addStepValidation(),t?Lt.set(this.element,{left:"0%"}):Lt.fromTo(this.element,{left:"100%"},{left:"0%",duration:.5,ease:"power1.inOut"})}removeStepValidation(){this.validatorTargets.forEach(t=>t.removeAttribute("data-validator"))}addStepValidation(){this.validatorTargets.forEach(t=>{const e=t.getAttribute("data-original-validator");e!==null&&t.setAttribute("data-validator",e)})}}class Dr{constructor(t,e,n){this.stepIndex=e,this.clickCallback=n,this.indicator=document.createElement("div"),this.indicator.classList.add("step-indicator");const i=document.createElement("div");i.classList.add("step-indicator-ui-wrapper");const r=document.createElement("span");r.classList.add("step-indicator-number"),r.textContent=`${e+1}`,i.append(r),this.indicator.append(i);const o=document.createElement("span");o.classList.add("step-indicator-text"),o.textContent=`Step ${e+1}`,this.indicator.append(o),t.append(this.indicator),this.indicator.addEventListener("click",()=>this.clickCallback(this.stepIndex))}setState(t){return this.indicator.classList.remove("active","completed"),t!=="default"&&this.indicator.classList.add(t),this}}class us{constructor(t){this.steps=[],this.indicators=[],this.currentStepIndex=0,this.previousStepIndex=null,this.resizeObserver=null;const e=Array.from(t.querySelectorAll("[data-step]")),n=e[0]?.parentElement??null;if(this.isMultiStep=e.length>0&&n!==null,this.parent=n,this.submitButton=t.querySelector('[type="submit"]'),this.submitButtonInitialText=this.submitButton?.textContent?.trim()??"Submit",!this.isMultiStep||!n)return;us.validateSteps(e,n),this.steps=e.map(r=>new Nr(r));const i=t.querySelector("[data-step-indicators]");i&&this.steps.forEach((r,o)=>{this.indicators.push(new Dr(i,o,a=>this.goToIndicator(a)))}),this.resizeObserver=new ResizeObserver(r=>{const o=this.steps[this.currentStepIndex];for(const a of r)a.target===o.element&&Lt.to(this.parent,{height:o.getHeight(),duration:.1,ease:"power1.inOut"})}),this.steps.forEach(r=>this.resizeObserver?.observe(r.element)),this.parent&&(this.parent.style.position="relative",this.parent.style.overflow="hidden"),this.showStep(0,!0)}static validateSteps(t,e){t.forEach((i,r)=>{if(i.parentElement!==e)throw new Error(`All steps must have the same parent. Step at index ${r} has a different parent.`)}),Array.from(e.children).forEach(i=>{if(!t.includes(i))throw new Error("All children of the parent must be steps. Found a non-step child.")})}destroy(){this.resizeObserver?.disconnect(),this.resizeObserver=null}isLastStep(){return!this.isMultiStep||this.currentStepIndex===this.steps.length-1}nextStep(){this.isLastStep()||(this.previousStepIndex=this.currentStepIndex,this.currentStepIndex+=1,this.showStep(this.currentStepIndex))}goToIndicator(t){this.currentStepIndex===t||t>this.currentStepIndex||(this.previousStepIndex=this.currentStepIndex,this.currentStepIndex=t,this.showStep(this.currentStepIndex))}showStep(t,e=!1){const n=this.steps[t];!n||!this.parent||(Lt.to(this.parent,{height:n.getHeight(),duration:.1,ease:"power1.inOut"}),this.previousStepIndex!==null&&this.steps[this.previousStepIndex]?.hide(e),n.show(e),this.updateIndicators(),this.updateSubmitButtonText())}updateIndicators(){this.indicators.forEach((t,e)=>{e===this.currentStepIndex?t.setState("active"):e<this.currentStepIndex?t.setState("completed"):t.setState("default")})}updateSubmitButtonText(){this.submitButton&&(this.submitButton.textContent=this.isLastStep()?this.submitButtonInitialText:"Next")}}const Ir=/non conversion/i,Bs={pardot:er,salesforce:nr,jsonPost:ir},js="Form.submitted.",Ks="Form.data",$r=["/legal*","/residentlegal*"];function kr(s=window.location.pathname){return $r.some(t=>new RegExp("^"+t.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*")+"$").test(s))}const xr="experience-1779739220739",Mr={email:"email",firstname:"first_name",first_name:"first_name",lastname:"last_name",last_name:"last_name",company:"company",phone:"phone",title:"title",jobtitle:"title",job_title:"title",leadsource:"lead_source",lead_source:"lead_source",country:"visitor_location_country",state:"visitor_location_state",numberofunits:"number_of_units",number_of_units:"number_of_units",num_of_units:"number_of_units",numofunits:"number_of_units",numberofmanagedunits:"number_of_managed_units",number_of_managed_units:"number_of_managed_units",propertymanagementsystem:"property_management_system",property_management_system:"property_management_system",pms:"property_management_system_pms",property_management_system_pms:"property_management_system_pms",vertical_market:"vertical_market",solution_fam
1ily:"solution_family",solution:"solution",product_of_interest:"product_of_interes",productofinterest:"product_of_interes",ai_agent_interest:"ai_agent_interes",aiagentinterest:"ai_agent_interes",privacy_policy_consent:"privacy_policy_consent",privacy_policy_consent_date:"privacy_policy_timestamp",cta:"cta",tier:"tier",form_url:"conversion_page_url",form_id:"form_id",landing_url:"initial_landing_page",landingurl:"initial_landing_page",initial_landing_page:"initial_landing_page",utm_source:"utm_source",utm_medium:"utm_medium",utm_campaign:"utm_campaign",utm_content:"utm_content",utm_term:"utm_keyword",utm_keyword:"utm_keyword"},Rr=["email","ai_agent_interes","calendar_events_count","chat_transcript","company","conversion_page_url","cta","first_name","form_id","initial_landing_page","initial_referrer","last_meeting_booked_at","last_meeting_owner","last_meeting_starts_at","last_name","lead_source","name","number_of_managed_units","number_of_units","phone","privacy_policy_consent","privacy_policy_timestamp","product_of_interes","property_management_system","property_management_system_pms","qualified_date","qualified_first_interaction_date","qualified_first_interaction_type","qualified_last_interaction_date","qualified_last_interaction_type","qualified_meeting_owner_id","qualified_topic","sessions_count","solution","solution_family","status","tier","title","utm_campaign","utm_content","utm_keyword","utm_medium","utm_source","vertical_market","visitor_location_country","visitor_location_state"];class et extends rs{constructor(t,e={}){const i=t?.dataset??{},r={...e,...i};r.formId===void 0&&typeof i.marketoformid<"u"&&(r.formId=i.marketoformid),!r.formSubmitEndpoint&&typeof i.altendpoint=="string"&&i.altendpoint.length>0&&(r.formSubmitEndpoint=i.altendpoint),!r.formCallback&&typeof i.formcallback=="string"&&i.formcallback.length>0&&(r.formCallback=i.formcallback),!r.submitButtonText&&typeof i.submitbuttontext<"u"&&(r.submitButtonText=i.submitbuttontext),typeof e.formCallback=="function"&&(r.formCallback=e.formCallback);const o=typeof r.formCallback=="function"?r.formCallback:void 0;o&&delete r.formCallback,super(t,Ge.parse(r)),this.validator=new hr,this.multiStep=null,this.recaptcha=new zi({enabled:!this.settings.disableSpamDetection&&!kr()}),this.expectsResponse=!1,this.serializedSubmittedData=[],this.utmFields=[],this.onSubmit=a=>{a.preventDefault(),this.submitForm()},this.onInput=a=>{const l=a.target;l instanceof HTMLElement&&(this.validateInput(l),this.toggleHasInput(l))},this.onChange=a=>{const l=a.target;l instanceof HTMLSelectElement&&(this.validateInput(l),this.toggleHasInput(l))},this.formResubmitted=!1,this.onBack=a=>{a.preventDefault(),this.formElement.closest(".entity-form")?.classList.remove("submited"),this.formResubmitted=!0},this.backButton=null,this.spamContext={},this.spamFieldElements=[],this.callbacks=new Map,this.showSuccessMessageFn=e.showSuccessMessage,this.formCallbackFn=o,this.loadContainer=this.formElement.closest(".entity-form")??this.formElement,typeof e.formLoadedCallback=="function"&&this.addCallback("loaded",e.formLoadedCallback),this.mapProvider(),this.runMethod("init")}addCallback(t,e){if(typeof e!="function")return;const n=this.callbacks.get(t);n?n.push(e):this.callbacks.set(t,[e])}runCallbacks(t,...e){const n=this.callbacks.get(t);if(n)for(const i of n)try{i(...e)}catch(r){this.logger.warn(`runCallbacks(${t}): ${r instanceof Error?r.message:String(r)}`)}}getSettingsSchema(){return Ge}get formElement(){return this.element}static initDefault(t={}){return et.abstractFactory("[data-modal-form-id]",t)}static factory(t,e={}){return et.abstractFactory(t,e)}static readSavedUserData(){try{const t=localStorage.getItem(Ks);return t?JSON.parse(t):{}}catch{return{}}}static isAlreadySubmitted(t,e){try{const n=e?`.${e}`:"",i=`${js}${t}${n}`,r=localStorage.getItem(i);if(r===null)return!1;const o=JSON.parse(r),a=et.readSavedUserData(),l=a.Email??a.email??"";if(!l)return!1;const d=Rs(l+t+window.location.pathname);return o.token===String(d)&&typeof o.ts=="number"&&Date.now()-o.ts<864e5}catch{return!1}}destroy(){this.multiStep?.destroy(),this.formElement.removeEventListener("submit",this.onSubmit),this.formElement.removeEventListener("input",this.onInput),this.formElement.removeEventListener("change",this.onChange),this.backButton?.removeEventListener("click",this.onBack),this.provider?.removeFormEvents?.(),super.destroy()}mapProvider(){const t=this.settings.formProvider,e=Bs[t]??Bs.pardot;if(!e){this.logger.warn("No form providers registered. Provider map is empty.");return}this.provider=new e(this.formElement,this)}runMethod(t,...e){if(this.provider&&t in this.provider)return this.provider[t](...e);if(t in this&&typeof this[t]=="function")return this[t](...e);this.logger.warn(`runMethod: method "${String(t)}" not found on Form or provider.`)}init(){this.runMethod("addListeners"),this.runMethod("initForm")}addListeners(){this.runMethod("registerFormEvents")}initForm(){this.wireBackButton(),this.buildForm(),this.formAlreadySubmitted()&&this.successActions()}buildForm(){this.fetchForm()}fetchForm(){const t=st(this.settings.formUrl.replace("{formId}",this.settings.formId));return fetch(t).then(e=>{if(!e.ok)throw new Error(`fetchForm failed: ${e.status} ${e.statusText}`);return e.text()}).then(e=>{this.parseFormData(e),this.multiStep=new us(this.formElement),this.hookFormEvents(),this.addUtms(),this.getPageAttributes(),this.fillOldData(),this.runCallbacks("loaded")}).catch(e=>{this.logger.warn(`fetchForm: ${e instanceof Error?e.message:String(e)}`)})}parseFormData(t){const e=document.createElement("div");e.innerHTML=t.trim();const n=e.querySelector("form");if(!n){this.logger.warn("parseFormData: no <form> tag in the fetched response.");return}this.formElement.insertAdjacentHTML("beforeend",n.innerHTML),this.settings.formSubmitEndpoint?this.formElement.action=this.settings.formSubmitEndpoint:n.action&&(this.formElement.action=n.action),n.method&&(this.formElement.method=n.method);const i=this.formElement.querySelector("button[type=submit]");if(this.settings.submitButtonText&&i&&(i.textContent=this.settings.submitButtonText),this.formCallbackFn)this.addCallback("success",this.formCallbackFn);else if(this.settings.formCallback){const r=window[this.settings.formCallback];this.addCallback("success",typeof r=="function"?r:()=>{})}this.settings.submitButtonId&&i&&(i.id=this.settings.submitButtonId)}wireBackButton(){this.backButton=this.formElement.closest(".entity-form")?.querySelector("[data-form-back]")??null,this.backButton?.addEventListener("click",this.onBack)}hookFormEvents(){this.formElement.addEventListener("input",this.onInput),this.formElement.addEventListener("change",this.onChange),this.formElement.addEventListener("submit",this.onSubmit),this.recaptcha.isEnabled()&&this.formElement.addEventListener("focusin",()=>{this.recaptcha.preload()},{once:!0}),this.wireBackButton(),this.formElement.querySelectorAll(".form-control").forEach(t=>this.toggleHasInput(t)),cs.factory(this.formElement)}toggleHasInput(t){if(!t.classList.contains("form-control"))return;const e=t.value;t.classList.toggle("has-input",e!=="")}addUtms(){this.utmFields=[];const t=Tr;for(const e of Object.keys(t))this.utmFields.push({name:e,value:t[e]||"NULL"})}getPageAttributes(){const t=window.pageAttributes;if(!t)return;const e=n=>{const i=t[n],r=this.settings[n];
1i&&i!=="NULL"&&(!r||r==="NULL")&&(this.settings[n]=i)};e("vertical"),e("solution"),e("family")}getFormFields(){const t=[],e=new FormData(this.formElement);for(const[n,i]of e.entries()){const r=typeof i=="string"?i:"";(r.length>0||n==="How_Did_You_Hear_About_Us")&&t.push({name:n,value:r})}return t}additionalFields(){const t=this.settings,e=[{name:"Form_Url",value:t.pageUrl},{name:"Form_ID",value:t.on24Id||""},{name:"CTA",value:t.cta||"NULL"},{name:"Vertical_Market",value:t.vertical||"NULL"},{name:"Solution",value:t.solution||"NULL"},{name:"Solution_Family",value:t.family||"NULL"},{name:"Tier",value:t.tier||"NULL"},{name:"Buyer_Stage",value:t.buyerStage||"NULL"},{name:"form_handler",value:this.formElement.action}],n=Ps();return e.push({name:"consentTimeStamp",value:n.consentTimeStamp},{name:"consentGroups",value:n.consentGroups},{name:"consentId",value:n.consentId}),this.getFormFields().find(r=>r.name==="Privacy_Policy_Consent"&&(r.value==="true"||r.value===!0))&&e.push({name:"Privacy_Policy_Consent_Date",value:new Date().toString()}),e}getSerializedData(){return this.serializedSubmittedData=this.getFormFields().concat(this.utmFields).concat(this.additionalFields()),this.serializedSubmittedData}get serializedData(){return this.serializedSubmittedData}async submitForm(){if(!this.validateForm())return!1;if(this.multiStep&&!this.multiStep.isLastStep())return this.multiStep.nextStep(),!1;if(this.expectsResponse=!0,this.getSerializedData(),this.spamFieldElements=this.getFieldElements(),this.startLoader(),await this.runSpamCheck())return this.expectsResponse=!1,this.handleBlocked(),!1;const e=this.settings.cta||"NULL";return Lr({event:"cta_submit",cta:e,event_label:e}),this.runMethod("submit"),!0}getDataAsJson(){const t={};for(const{name:e,value:n}of this.serializedSubmittedData)if(Object.prototype.hasOwnProperty.call(t,e)){const i=t[e];t[e]=Array.isArray(i)?[...i,n]:[i,n]}else t[e]=n;return t}getFieldElements(){return Array.from(this.formElement.querySelectorAll("input, textarea, select")).filter(t=>{const e=(t.type||"").toLowerCase();return!!t.name&&!t.disabled&&e!=="hidden"})}getFieldDescriptors(){return this.spamFieldElements.map(t=>({name:t.name,value:t.value||"",label:(t.dataset.fieldName||t.name||"").toString()}))}getSpamChecks(){const t={};return this.spamFieldElements.forEach(e=>{const n=(e.dataset.spamCheck||"").toString().toLowerCase();n&&(t[e.name]=n)}),t}getHoneypotValue(){const t=this.formElement.querySelector(".honey-pot");return t?t.value:""}getSpamHandlers(){const t=[];if(this.formElement.action&&t.push(Fs(this.formElement.action)),this.settings.registerWebcastAttendeeEndpoint){let e=this.settings.registerWebcastAttendeeEndpoint;this.settings.allowDrafted&&(e=`${e}?allowDrafted=${this.settings.allowDrafted}`),t.push(Fs(e))}return Array.from(new Set(t.filter(e=>typeof e=="string"&&e.length>0)))}async runSpamCheck(){if(this.spamContext={},this.settings.disableSpamDetection)return!1;const t=st("/forms/spam-check");let e=null;try{e=Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{e=null}const n=await this.requestRecaptchaToken(),i=this.getSpamChecks();this.spamContext={recaptchaToken:n,clientTimezone:e,spamChecks:i};const r={handlers:this.getSpamHandlers(),page_url:this.settings.pageUrl,honeypot_value:this.getHoneypotValue(),client_timezone:e,recaptcha_token:n,data:this.getDataAsJson(),fields:this.getFieldDescriptors(),spam_checks:i};this.settings.formEntity&&(r.form_entity=this.settings.formEntity);try{const o=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(r)});if(!o.ok)return!1;const a=await o.json();return a&&a.spam_meta_id&&(this.spamContext.spamMetaId=a.spam_meta_id),!!a.blocked||a.decision==="hold"}catch{return!1}}getSpamContextFields(){const t=[];return this.spamContext.recaptchaToken&&t.push({name:"recaptcha_token",value:String(this.spamContext.recaptchaToken)}),this.spamContext.clientTimezone&&t.push({name:"client_timezone",value:String(this.spamContext.clientTimezone)}),this.spamContext.spamMetaId&&t.push({name:"spam_meta_id",value:String(this.spamContext.spamMetaId)}),this.settings.formEntity&&t.push({name:"form_entity",value:String(this.settings.formEntity)}),t}async requestRecaptchaToken(){if(!this.recaptcha.isEnabled())return null;try{return await this.recaptcha.execute()}catch{return null}}handleBlocked(){this.formElement.closest(".entity-form")?.classList.add("spam-held"),this.successActions()}validateForm(){return this.validator.validate(this.formElement)}validateInput(t){(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement)&&this.validator.validateField(t)}formSubmitted(){try{document.dispatchEvent(new CustomEvent("rp:form-submit-success",{detail:{formId:this.settings.formId||null,formSlug:this.settings.formName||this.settings.formEntity||null}}))}catch{}const t=Dn(window.location.hostname.toLowerCase());let e;if(t)try{e=crypto.randomUUID()}catch{}this.saveUserData(),this.markAsSubmitted(),this.successActions(),t&&e&&this.sendMetaCapiEvent(e);let n=!0;const i=Ps().consentGroups;if(i){const o=i.split(",")[1];if(o&&o.split(":")[1]==="0"){n=!1;const l=new Date,d=`${l.getFullYear()}:${l.getMonth()+1}:${l.getDate()}:${l.getHours()}:${l.getMinutes()}:${l.getSeconds()}`;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form-success",elementid:this.settings.formId,timestamp:d,...e?{metaEventId:e}:{}})}}(n||this.settings.gaInConsentMode)&&this.trackSubmission(e),this.settings.smartForm&&this.pushToQualified(),this.runCallbacks("success")}setChromeLinksInert(t){const e=n=>{t?(n.setAttribute("tabindex","-1"),n.setAttribute("aria-disabled","true")):(n.removeAttribute("tabindex"),n.removeAttribute("aria-disabled"))};this.formElement.closest(".entity-form")?.querySelectorAll(".entity-form-support-links a").forEach(e),this.formElement.querySelectorAll(".custom-control-label a").forEach(e)}startLoader(){super.startLoader(),this.setChromeLinksInert(!0)}stopLoader(){super.stopLoader(),this.setChromeLinksInert(!1)}trackSubmission(t){Or(this.settings.formId,t)}sendMetaCapiEvent(t){if(Ir.test(this.settings.cta||""))return;const e=et.readSavedUserData(),n=e.Email??e.email??void 0,i=e.Phone??e.phone??void 0,r={event_id:t,event_source_url:window.location.href,content_name:this.settings.formName??this.settings.formEntity??null,form_type:this.settings.formId??null,cta:this.settings.cta||null,email:n,phone:i};try{fetch(st("/forms/meta-capi-event"),{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(r)}).catch(()=>{})}catch{}}pushToQualified(){try{const t=this.getDataAsJson(),e={};if(Rr.forEach(n=>{e[n]=void 0}),Object.keys(t).forEach(n=>{let i=t[n];if(Array.isArray(i)&&(i=i.join(", ")),i===void 0)return;const r=i.trim();if(r===""||r==="NULL")return;const o=Mr[n.toLowerCase()];o&&(e[o]=r)}),!e.name&&(e.first_name||e.last_name)&&(e.name=[e.first_name,e.last_name].filter(
1Boolean).join(" ")),e.form_id=e.form_id??(this.settings.formId?String(this.settings.formId):void 0),e.conversion_page_url=e.conversion_page_url??window.location.href,e.initial_referrer=e.initial_referrer??(document.referrer||void 0),typeof window.qualified!="function")return;window.qualified("saveFormData",e),window.qualified("emitFormFill","custom"),window.qualified("showFormExperience",xr)}catch(t){console.warn("[Qualified] form bridge failed",t)}}successActions(){if(this.stopLoader(),this.expectsResponse=!1,typeof this.showSuccessMessageFn=="function"){this.showSuccessMessageFn.call(this,this.formElement);return}const t=this.formElement.closest(".entity-form");t&&t.classList.add("submited")}errorActions(t){if(this.stopLoader(),this.expectsResponse=!1,!(!t||!t.errorFields))for(const e of Object.keys(t.errorFields)){const i=this.formElement.querySelector(`[name="${e}"]`)?.closest(".form-col");if(i){i.classList.add("is-invalid");const r=i.querySelector(".invalid-feedback");r&&(r.innerHTML=t.errorFields[e].join("<br>"))}}}saveDataToLocalDatabase(){const t=st(this.settings.localFormUrl),e=this.serializedData.concat(this.getSpamContextFields()),n=new URLSearchParams;for(const{name:o,value:a}of e)n.append(o,a??"");const i={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","X-Requested-With":"XMLHttpRequest"},r=fetch(t,{method:"POST",headers:i,body:n}).catch(o=>{this.formElement.dispatchEvent(new CustomEvent("Form.localDb.error",{detail:o}))});if(this.shouldSendNullEmail(e)){const o=st(this.settings.emailUrl),a=new URLSearchParams;for(const{name:l,value:d}of e)a.append(l,d??"");fetch(o,{method:"POST",headers:i,body:a}).catch(l=>{this.formElement.dispatchEvent(new CustomEvent("Form.nullEmail.error",{detail:l}))})}return r}shouldSendNullEmail(t){let e=!1,n=!1;for(const{name:i,value:r}of t)i==="errorEmail"&&r==="true"&&(e=!0),(i==="CTA"&&r==="NULL"||i==="Vertical_Market"&&r==="NULL"||i==="Solution"&&r==="NULL"||i==="Solution_Family"&&r==="NULL"||i==="Segment"&&r===""||i==="Tier"&&r==="NULL")&&(n=!0);return e&&n}submittedStorageKey(){const t=this.settings.formName?`.${this.settings.formName}`:"";return`${js}${this.settings.formId}${t}`}
1getUserToken(t){return Rs(t+this.settings.formId+window.location.pathname)}saveUserData(){try{const t=this.readUserData();this.formElement.querySelectorAll("input:not([type=hidden]):not([data-ignore-cookies])").forEach(n=>{!n.name||n.name.indexOf("temp_field")===0||(t[n.name]=n.value)}),localStorage.setItem(Ks,JSON.stringify(t))}catch{}}readUserData(){return et.readSavedUserData()}getSavedUserData(){return this.readUserData()}markAsSubmitted(){try{const t=this.readUserData(),e=t.Email??t.email??"";localStorage.setItem(this.submittedStorageKey(),JSON.stringify({token:String(this.getUserToken(e)),ts:Date.now()}))}catch{}this.expectsResponse=!1}formAlreadySubmitted(){return et.isAlreadySubmitted(this.settings.formId,this.settings.formName)}fillOldData(){const t=this.readUserData();if(!t||Object.keys(t).length===0)return;const e=this.settings.getDataFromUrl?Gi():{};this.formElement.querySelectorAll("input:not([type=radio]):not([type=checkbox]), select, textarea").forEach(i=>{if(i.name&&typeof t[i.name]<"u"){const r=Ji(i.name);i.value=this.settings.getDataFromUrl&&typeof e[r]<"u"?e[r]:t[i.name],this.toggleHasInput(i)}})}}var $="top",R="bottom",P="right",k="left",Ee="auto",Rt=[$,R,P,k],gt="start",Dt="end",xn="clippingParents",ds="viewport",St="popper",Mn="reference",Xe=Rt.reduce(function(s,t){return s.concat([t+"-"+gt,t+"-"+Dt])},[]),hs=[].concat(Rt,[Ee]).reduce(function(s,t){return s.concat([t,t+"-"+gt,t+"-"+Dt])},[]),Rn="beforeRead",Pn="read",Fn="afterRead",Vn="beforeMain",Hn="main",Un="afterMain",Wn="beforeWrite",Bn="write",jn="afterWrite",Kn=[Rn,Pn,Fn,Vn,Hn,Un,Wn,Bn,jn];function z(s){return s?(s.nodeName||"").toLowerCase():null}function F(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var t=s.ownerDocument;return t&&t.defaultView||window}return s}function Et(s){var t=F(s).Element;return s instanceof t||s instanceof Element}function V(s){var t=F(s).HTMLElement;return s instanceof t||s instanceof HTMLElement}function fs(s){if(typeof ShadowRoot>"u")return!1;var t=F(s).ShadowRoot;return s instanceof t||s instanceof ShadowRoot}function Pr(s){var t=s.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];
vendor: 16,305 bytes, line 1
1!V(r)||!z(r)||(Object.assign(r.style,n),Object.keys(i).forEach(function(o){var a=i[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function Fr(s){var t=s.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],r=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:e[n]),a=o.reduce(function(l,d){return l[d]="",l},{});!V(i)||!z(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(l){i.removeAttribute(l)}))})}}const qn={name:"applyStyles",enabled:!0,phase:"write",fn:Pr,effect:Fr,requires:["computeStyles"]};function q(s){return s.split("-")[0]}var _t=Math.max,me=Math.min,It=Math.round;function Qe(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Yn(){return!/^((?!chrome|android).)*safari/i.test(Qe())}function $t(s,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var n=s.getBoundingClientRect(),i=1,r=1;t&&V(s)&&(i=s.offsetWidth>0&&It(n.width)/s.offsetWidth||1,r=s.offsetHeight>0&&It(n.height)/s.offsetHeight||1);var o=Et(s)?F(s):window,a=o.visualViewport,l=!Yn()&&e,d=(n.left+(l&&a?a.offsetLeft:0))/i,c=(n.top+(l&&a?a.offsetTop:0))/r,p=n.width/i,f=n.height/r;return{width:p,height:f,top:c,right:d+p,bottom:c+f,left:d,x:d,y:c}}function ms(s){var t=$t(s),e=s.offsetWidth,n=s.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:s.offsetLeft,y:s.offsetTop,width:e,height:n}}function zn(s,t){var e=t.getRootNode&&t.getRootNode();if(s.contains(t))return!0;if(e&&fs(e)){var n=t;do{if(n&&s.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Q(s){return F(s).getComputedStyle(s)}function Vr(s){return["table","td","th"].indexOf(z(s))>=0}function ot(s){return((Et(s)?s.ownerDocument:s.document)||window.document).documentElement}function ve(s){return z(s)==="html"?s:s.assignedSlot||s.parentNode||(fs(s)?s.host:null)||ot(s)}function qs(s){return!V(s)||Q(s).position==="fixed"?null:s.offsetParent}function Hr(s){var t=/firefox/i.test(Qe()),e=/Trident/i.test(Qe());if(e&&V(s)){var n=Q(s);if(n.position==="fixed")return null}var i=ve(s);for(fs(i)&&(i=i.host);V(i)&&["html","body"].indexOf(z(i))<0;){var r=Q(i);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return i;i=i.parentNode}return null}function zt(s){for(var t=F(s),e=qs(s);e&&Vr(e)&&Q(e).position==="static";)e=qs(e);return e&&(z(e)==="html"||z(e)==="body"&&Q(e).position==="static")?t:e||Hr(s)||t}function ps(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function Kt(s,t,e){return _t(s,me(t,e))}function Ur(s,t,e){var n=Kt(s,t,e);return n>e?e:n}function Gn(){return{top:0,right:0,bottom:0,left:0}}function Xn(s){return Object.assign({},Gn(),s)}function Qn(s,t){return t.reduce(function(e,n){return e[n]=s,e},{})}var Wr=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Xn(typeof t!="number"?t:Qn(t,Rt))};function Br(s){var t,e=s.state,n=s.name,i=s.options,r=e.elements.arrow,o=e.modifiersData.popperOffsets,a=q(e.placement),l=ps(a),d=[k,P].indexOf(a)>=0,c=d?"height":"width";if(!(!r||!o)){var p=Wr(i.padding,e),f=ms(r),m=l==="y"?$:k,b=l==="y"?R:P,_=e.rects.reference[c]+e.rects.reference[l]-o[l]-e.rects.popper[c],E=o[l]-e.rects.reference[l],w=zt(r),S=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,C=_/2-E/2,g=p[m],y=S-f[c]-p[b],A=S/2-f[c]/2+C,T=Kt(g,A,y),N=l;e.modifiersData[n]=(t={},t[N]=T,t.centerOffset=T-A,t)}}function jr(s){var t=s.state,e=s.options,n=e.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||zn(t.elements.popper,i)&&(t.elements.arrow=i))}const Jn={name:"arrow",enabled:!0,phase:"main",fn:Br,effect:jr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function kt(s){return s.split("-")[1]}var Kr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qr(s,t){var e=s.x,n=s.y,i=t.devicePixelRatio||1;return{x:It(e*i)/i||0,y:It(n*i)/i||0}}function Ys(s){var t,e=s.popper,n=s.popperRect,i=s.placement,r=s.variation,o=s.offsets,a=s.position,l=s.gpuAcceleration,d=s.adaptive,c=s.roundOffsets,p=s.isFixed,f=o.x,m=f===void 0?0:f,b=o.y,_=b===void 0?0:b,E=typeof c=="function"?c({x:m,y:_}):{x:m,y:_};m=E.x,_=E.y;var w=o.hasOwnProperty("x"),S=o.hasOwnProperty("y"),C=k,g=$,y=window;if(d){var A=zt(e),T="clientHeight",N="clientWidth";if(A===F(e)&&(A=ot(e),Q(A).position!=="static"&&a==="absolute"&&(T="scrollHeight",N="scrollWidth")),A=A,i===$||(i===k||i===P)&&r===Dt){g=R;var L=p&&A===y&&y.visualViewport?y.visualViewport.height:A[T];_-=L-n.height,_*=l?1:-1}if(i===k||(i===$||i===R)&&r===Dt){C=P;var O=p&&A===y&&y.visualViewport?y.visualViewport.width:A[N];m-=O-n.width,m*=l?1:-1}}var D=Object.assign({position:a},d&&Kr),B=c===!0?qr({x:m,y:_},F(e)):{x:m,y:_};if(m=B.x,_=B.y,l){var I;return Object.assign({},D,(I={},I[g]=S?"0":"",I[C]=w?"0":"",I.transform=(y.devicePixelRatio||1)<=1?"translate("+m+"px, "+_+"px)":"translate3d("+m+"px, "+_+"px, 0)",I))}return Object.assign({},D,(t={},t[g]=S?_+"px":"",t[C]=w?m+"px":"",t.transform="",t))}function Yr(s){var t=s.state,e=s.options,n=e.gpuAcceleration,i=n===void 0?!0:n,r=e.adaptive,o=r===void 0?!0:r,a=e.roundOffsets,l=a===void 0?!0:a,d={placement:q(t.placement),variation:kt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ys(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ys(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Zn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Yr,data:{}};var ie={passive:!0};function zr(s){var t=s.state,e=s.instance,n=s.options,i=n.scroll,r=i===void 0?!0:i,o=n.resize,a=o===void 0?!0:o,l=F(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&d.forEach(function(c){c.addEventListener("scroll",e.update,ie)}),a&&l.addEventListener("resize",e.update,ie),function(){r&&d.forEach(function(c){c.removeEventListener("scroll",e.update,ie)}),a&&l.removeEventListener("resize",e.update,ie)}}const ti={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zr,data:{}};var Gr={left:"right",right:"left",bottom:"top",top:"bottom"};function de(s){return s.replace(/left|right|bottom|top/g,function(t){return Gr[t]})}var Xr={start:"end",end:"start"};function zs(s){return s.replace(/start|end/g,function(t){return Xr[t]})}function _s(s){var t=F(s),e=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:e,scrollTop:n}}function gs(s){return $t(ot(s)).left+_s(s).scrollLeft}function Qr(s,t){var e=F(s),n=ot(s),i=e.visualViewport,r=n.clientWidth,o=n.clientHeight,a=0,l=0;if(i){r=i.width,o=i.height;var d=Yn();(d||!d&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:r,height:o,x:a+gs(s),y:l}}function Jr(s){var t,e=ot(s),n=_s(s),i=(t=s.ownerDocument)==null?void 0:t.body,r=_t(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=_t(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-n.scrollLeft+gs(s),l=-n.scrollTop;return Q(i||e).direction==="rtl"&&(a+=_t(e.clientWidth,i?i.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}function Es(s){var t=Q(s),e=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+i+n)}function ei(s){return["html","body","#document"].indexOf(z(s))>=0?s.ownerDocument.body:V(s)&&Es(s)?s:ei(ve(s))}function qt(s,t){var e;t===void 0&&(t=[]);var n=ei(s),i=n===((e=s.ownerDocument)==null?void 0:e.body),r=F(n),o=i?[r].concat(r.visualViewport||[],Es(n)?n:[]):n,a=t.concat(o);return i?a:a.concat(qt(ve(o)))}function Je(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function Zr(s,t){var e=$t(s,!1,t==="fixed");return e.top=e.top+s.clientTop,e.left=e.left+s.clientLeft,e.bottom=e.top+s.clientHeight,e.right=e.left+s.clientWidth,e.width=s.clientWidth,e.height=s.clientHeight,e.x=e.left,e.y=e.top,e}function Gs(s,t,e){return t===ds?Je(Qr(s,e)):Et(t)?Zr(t,e):Je(Jr(ot(s)))}function to(s){var t=qt(ve(s)),e=["absolute","fixed"].indexOf(Q(s).position)>=0,n=e&&V(s)?zt(s):s;return Et(n)?t.filter(function(i){return Et(i)&&zn(i,n)&&z(i)!=="body"}):[]}function eo(s,t,e,n){var i=t==="clippingParents"?to(s):[].concat(t),r=[].concat(i,[e]),o=r[0],a=r.reduce(function(l,d){var c=Gs(s,d,n);return l.top=_t(c.top,l.top),l.right=me(c.right,l.right),l.bottom=me(c.bottom,l.bottom),l.left=_t(c.left,l.left),l},Gs(s,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function si(s){var t=s.reference,e=s.element,n=s.placement,i=n?q(n):null,r=n?kt(n):null,o=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,l;switch(i){case $:l={x:o,y:t.y-e.height};break;case R:l={x:o,y:t.y+t.height};break;case P:l={x:t.x+t.width,y:a};break;case k:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var d=i?ps(i):null;if(d!=null){var c=d==="y"?"height":"width";switch(r){case gt:l[d]=l[d]-(t[c]/2-e[c]/2);break;case Dt:l[d]=l[d]+(t[c]/2-e[c]/2);break}}return l}function xt(s,t){t===void 0&&(t={});var e=t,n=e.placement,i=n===void 0?s.placement:n,r=e.strategy,o=r===void 0?s.strategy:r,a=e.boundary,l=a===void 0?xn:a,d=e.rootBoundary,c=d===void 0?ds:d,p=e.elementContext,f=p===void 0?St:p,m=e.altBoundary,b=m===void 0?!1:m,_=e.padding,E=_===void 0?0:_,w=Xn(typeof E!="number"?E:Qn(E,Rt)),S=f===St?Mn:St,C=s.rects.popper,g=s.elements[b?S:f],y=eo(Et(g)?g:g.contextElement||ot(s.elements.popper),l,c,o),A=$t(s.elements.reference),T=si({reference:A,element:C,placement:i}),N=Je(Object.assign({},C,T)),L=f===St?N:A,O={top:y.top-L.top+w.top,bottom:L.bottom-y.bottom+w.bottom,left:y.left-L.left+w.left,right:L.right-y.right+w.right},D=s.modifiersData.offset;if(f===St&&D){var B=D[i];Object.keys(O).forEach(function(I){var ct=[P,R].indexOf(I)>=0?1:-1,ut=[$,R].indexOf(I)>=0?"y":"x";O[I]+=B[ut]*ct})}return O}function so(s,t){t===void 0&&(t={});var e=t,n=e.placement,i=e.boundary,r=e.rootBoundary,o=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,d=l===void 0?hs:l,c=kt(n),p=c?a?Xe:Xe.filter(function(b){return kt(b)===c}):Rt,f=p.filter(function(b){return d.indexOf(b)>=0});f.length===0&&(f=p);var m=f.reduce(function(b,_){return b[_]=xt(s,{placement:_,boundary:i,rootBoundary:r,padding:o})[q(_)],b},{});return Object.keys(m).sort(function(b,_){return m[b]-m[_]})}function no(s){if(q(s)===Ee)return[];var t=de(s);return[zs(s),t,zs(t)]}function io(s){var t=s.state,e=s.options,n=s.name;if(!t.modifiersData[n]._skip){for(var i=e.mainAxis,r=i===void 0?!0:i,o=e.altAxis,a=o===void 0?!0:o,l=e.fallbackPlacements,d=e.padding,c=e.boundary,p=e.rootBoundary,f=e.altBoundary,m=e.flipVariations,b=m===void 0?!0:m,_=e.allowedAutoPlacements,E=t.options.placement,w=q(E),S=w===E,C=l||(S||!b?[de(E)]:no(E)),g=[E].concat(C).reduce(function(At,Z){return At.concat(q(Z)===Ee?so(t,{placement:Z,boundary:c,rootBoundary:p,padding:d,flipVariations:b,allowedAutoPlacements:_}):Z)},[]),y=t.rects.reference,A=t.rects.popper,T=new Map,N=!0,L=g[0],O=0;O<g.length;O++){var D=g[O],B=q(D),I=kt(D)===gt,ct=[$,R].indexOf(B)>=0,ut=ct?"width":"height",M=xt(t,{placement:D,boundary:c,rootBoundary:p,altBoundary:f,padding:d}),j=ct?I?P:k:I?R:$;y[ut]>A[ut]&&(j=de(j));var Zt=de(j),dt=[];if(r&&dt.push(M[B]<=0),a&&dt.push(M[j]<=0,M[Zt]<=0),dt.every(function(At){return At})){L=D,N=!1;break}T.set(D,dt)}if(N)for(var te=b?3:1,Se=function(Z){var Ut=g.find(function(se){var ht=T.get(se);if(ht)return ht.slice(0,Z).every(function(Ce){return Ce})});if(Ut)return L=Ut,"break"},Ht=te;Ht>0;Ht--){var ee=Se(Ht);if(ee==="break")break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}}const ni={name:"flip",enabled:!0,phase:"main",fn:io,requiresIfExists:["offset"],data:{_skip:!1}};function Xs(s,t,e){return e===void 0&&(e={x:0,y:0}),{top:s.top-t.height-e.y,right:s.right-t.width+e.x,bottom:s.bottom-t.height+e.y,left:s.left-t.width-e.x}}function Qs(s){return[$,P,R,k].some(function(t){return s[t]>=0})}function ro(s){var t=s.state,e=s.name,n=t.rects.reference,i=t.rects.popper,r=t.modifiersData.preventOverflow,o=xt(t,{elementContext:"reference"}),a=xt(t,{altBoundary:!0}),l=Xs(o,n),d=Xs(a,i,r),c=Qs(l),p=Qs(d);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}const ii={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ro};function oo(s,t,e){var n=q(s),i=[k,$].indexOf(n)>=0?-1:1,r=typeof e=="function"?e(Object.assign({},t,{placement:s})):e,o=r[0],a=r[1];return o=o||0,a=(a||0)*i,[k,P].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}function ao(s){var t=s.state,e=s.options,n=s.name,i=e.offset,r=i===void 0?[0,0]:i,o=hs.reduce(function(c,p){return c[p]=oo(p,t.rects,r),c},{}),a=o[t.placement],l=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=o}const ri={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ao};function lo(s){var t=s.state,e=s.name;t.modifiersData[e]=si({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const oi={name:"popperOffsets",enabled:!0,phase:"read",fn:lo,data:{}};function co(s){return s==="x"?"y":"x"}function uo(s){var t=s.state,e=s.options,n=s.name,i=e.mainAxis,r=i===void 0?!0:i,o=e.altAxis,a=o===void 0?!1:o,l=e.boundary,d=e.rootBoundary,c=e.altBoundary,p=e.padding,f=e.tether,m=f===void 0?!0:f,b=e.tetherOffset,_=b===void 0?0:b,E=xt(t,{boundary:l,rootBoundary:d,padding:p,altBoundary:c}),w=q(t.placement),S=kt(t.placement),C=!S,g=ps(w),y=co(g),A=t.modifiersData.popperOffsets,T=t.rects.reference,N=t.rects.popper,L=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,O=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(A){if(r){var I,ct=g==="y"?$:k,ut=g==="y"?R:P,M=g==="y"?"height":"width",j=A[g],Zt=j+E[ct],dt=j-E[ut],te=m?-N[M]/2:0,Se=S===gt?T[M]:N[M],Ht=S===gt?-N[M]:-T[M],ee=t.elements.arrow,At=m&&ee?ms(ee):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Gn(),Ut=Z[ct],se=Z[ut],ht=Kt(0,T[M],At[M]),Ce=C?T[M]/2-te-ht-Ut-O.mainAxis:Se-ht-Ut-O.mainAxis,Vi=C?-T[M]/2+te+ht+se+O.mainAxis:Ht+ht+se+O.mainAxis,Oe=t.elements.arrow&&zt(t.elements.arrow),Hi=Oe?g==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,Ss=(I=D?.[g])!=null?I:0,Ui=j+Ce-Ss-Hi,Wi=j+Vi-Ss,Cs=Kt(m?me(Zt,Ui):Zt,j,m?_t(dt,Wi):dt);A[g]=Cs,B[g]=Cs-j}if(a){var Os,Bi=g==="x"?$:k,ji=g==="x"?R:P,ft=A[y],ne=y==="y"?"height":"width",Ls=ft+E[Bi],Ns=ft-E[ji],Le=[$,k].indexOf(w)!==-1,Ds=(Os=D?.[y])!=null?Os:0,Is=Le?Ls:ft-T[ne]-N[ne]-Ds+O.altAxis,$s=Le?ft+T[ne]+N[ne]-Ds-O.altAxis:Ns,ks=m&&Le?Ur(Is,ft,$s):Kt(m?Is:Ls,ft,m?$s:Ns);A[y]=ks,B[y]=ks-ft}t.modifiersData[n]=B}}const ai={name:"preventOverflow",enabled:!0,phase:"main",fn:uo,requiresIfExists:["offset"]};function ho(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function fo(s){return s===F(s)||!V(s)?_s(s):ho(s)}function mo(s){var t=s.getBoundingClientRect(),e=It(t.width)/s.offsetWidth||1,n=It(t.height)/s.offsetHeight||1;return e!==1||n!==1}function po(s,t,e){e===void 0&&(e=!1);var n=V(t),i=V(t)&&mo(t),r=ot(t),o=$t(s,i,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!e)&&((z(t)!=="body"||Es(r))&&(a=fo(t)),V(t)?(l=$t(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=gs(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function _o(s){var t=new Map,e=new Set,n=[];
vendor: 5,898 bytes, lines 1-5
1s.forEach(function(r){t.set(r.name,r)});function i(r){e.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&i(l)}}),n.push(r)}return s.forEach(function(r){e.has(r.name)||i(r)}),n}function go(s){var t=_o(s);return Kn.reduce(function(e,n){return e.concat(t.filter(function(i){return i.phase===n}))},[])}function Eo(s){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(s())})})),t}}function vo(s){var t=s.reduce(function(e,n){var i=e[n.name];return e[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,e},{});return Object.keys(t).map(function(e){return t[e]})}var Js={placement:"bottom",modifiers:[],strategy:"absolute"};function Zs(){for(var s=arguments.length,t=new Array(s),e=0;e<s;e++)t[e]=arguments[e];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function li(s){s===void 0&&(s={});var t=s,e=t.defaultModifiers,n=e===void 0?[]:e,i=t.defaultOptions,r=i===void 0?Js:i;return function(a,l,d){d===void 0&&(d=r);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Js,r),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],f=!1,m={state:c,setOptions:function(w){var S=typeof w=="function"?w(c.options):w;_(),c.options=Object.assign({},r,c.options,S),c.scrollParents={reference:Et(a)?qt(a):a.contextElement?qt(a.contextElement):[],popper:qt(l)};var C=go(vo([].concat(n,c.options.modifiers)));return c.orderedModifiers=C.filter(function(g){return g.enabled}),b(),m.update()},forceUpdate:function(){if(!f){var w=c.elements,S=w.reference,C=w.popper;if(Zs(S,C)){c.rects={reference:po(S,zt(C),c.options.strategy==="fixed"),popper:ms(C)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(O){return c.modifiersData[O.name]=Object.assign({},O.data)});for(var g=0;g<c.orderedModifiers.length;g++){if(c.reset===!0){c.reset=!1,g=-1;continue}var y=c.orderedModifiers[g],A=y.fn,T=y.options,N=T===void 0?{}:T,L=y.name;typeof A=="function"&&(c=A({state:c,options:N,name:L,instance:m})||c)}}}},update:Eo(function(){return new Promise(function(E){m.forceUpdate(),E(c)})}),destroy:function(){_(),f=!0}};if(!Zs(a,l))return m;m.setOptions(d).then(function(E){!f&&d.onFirstUpdate&&d.onFirstUpdate(E)});function b(){c.orderedModifiers.forEach(function(E){var w=E.name,S=E.options,C=S===void 0?{}:S,g=E.effect;if(typeof g=="function"){var y=g({state:c,name:w,instance:m,options:C}),A=function(){};p.push(y||A)}})}function _(){p.forEach(function(E){return E()}),p=[]}return m}}var bo=[ti,oi,Zn,qn,ri,ni,ai,Jn,ii],vs=li({defaultModifiers:bo});const ci=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Un,afterRead:Fn,afterWrite:jn,applyStyles:qn,arrow:Jn,auto:Ee,basePlacements:Rt,beforeMain:Vn,beforeRead:Rn,beforeWrite:Wn,bottom:R,clippingParents:xn,computeStyles:Zn,createPopper:vs,detectOverflow:xt,end:Dt,eventListeners:ti,flip:ni,hide:ii,left:k,main:Hn,modifierPhases:Kn,offset:ri,placements:hs,popper:St,popperGenerator:li,popperOffsets:oi,preventOverflow:ai,read:Pn,reference:Mn,right:P,start:gt,top:$,variationPlacements:Xe,viewport:ds,write:Bn},Symbol.toStringTag,{value:"Module"}));/*!
2  * Bootstrap v5.3.8 (https://getbootstrap.com/)
3  * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5  */const tt=new Map,Ie={set(s,t,e){tt.has(s)||tt.set(s,new Map);const n=tt.get(s);if(!n.has(t)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(t,e)},get(s,t){return tt.has(s)&&tt.get(s).get(t)||null},remove(s,t){if(!tt.has(s))return;const e=tt.get(s);e.delete(t),e.size===0&&tt.delete(s)}},yo=1e6,Ao=1e3,Ze="transitionend",ui=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),s),wo=s=>s==null?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(),To=s=>{do s+=Math.floor(Math.random()*yo);while(document.getElementById(s));return s},So=s=>{if(!s)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(s);const n=Number.parseFloat(t),i=Number.parseFloat(e);return!n&&!i?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*Ao)},di=s=>{s.dispatchEvent(new Event(Ze))},G=s=>!s||typeof s!="object"?!1:(typeof s.jquery<"u"&&(s=s[0]),typeof s.nodeType<"u"),nt=s=>G(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(ui(s)):null,Pt=s=>{if(!G(s)||s.getClientRects().length===0)return!1;const t=getComputedStyle(s).getPropertyValue("visibility")==="visible",e=s.closest("details:not([open])");if(!e)return t;if(e!==s){const n=s.closest("summary");if(n&&n.parentNode!==e||n===null)return!1}return t},it=s=>!s||s.nodeType!==Node.ELEMENT_NODE||s.classList.contains("disabled")?!0:typeof s.disabled<"u"?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false",hi=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){const t=s.getRootNode();return t instanceof ShadowRoot?t:null}return s instanceof ShadowRoot?s:s.parentNode?hi(s.parentNode):null},pe=()=>{},Gt=s=>{s.offsetHeight},fi=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,$e=[],Co=s=>{document.readyState==="loading"?($e.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of $e)t()}),$e.push(s)):s()},H=()=>document.documentElement.dir==="rtl",W=s=>{Co(()=>{const t=fi();if(t){const e=s.NAME,n=t.fn[e];t.fn[e]=s.jQueryInterface,t.fn[e].Constructor=s,t.fn[e].noConflict=()=>(t.fn[e]=n,s.jQueryInterface)}})},x=(s,t=[],e=s)=>typeof s=="function"?s.call(...t):e,mi=(s,t,e=!0)=>
5{if(!e){x(s);return}const i=So(t)+5;let r=!1;const o=({target:a})=>{a===t&&(r=!0,t.removeEventListener(Ze,o),x(s))};t.addEventListener(Ze,o),setTimeout(()=>{r||di(t)},i)},bs=(s,t,e,n)=>{const i=s.length;let r=s.indexOf(t);return r===-1?!e&&n?s[i-1]:s[0]:(r+=e?1:-1,n&&(r=(r+i)%i),s[Math.max(0,Math.min(r,i-1))])},Oo=/[^.]*(?=\..*)\.|.*/,Lo=/\..*/,No=/::\d+$/,ke={};let tn=1;const pi={mouseenter:"mouseover",mouseleave:"mouseout"},Do=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function _i(s,t){return t&&`${t}::${tn++}`||s.uidEvent||tn++}function gi(s){const t=_i(s);return s.uidEvent=t,ke[t]=ke[t]||{},ke[t]}function Io(s,t){return function e(n){return ys(n,{delegateTarget:s}),e.oneOff&&u.off(s,n.type,t),t.apply(s,[n])}}function $o(s,t,e){return function n(i){const r=s.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return ys(i,{delegateTarget:o}),n.oneOff&&u.off(s,i.type,t,e),e.apply(o,[i])}}function Ei(s,t,e=null){return Object.values(s).find(n=>n.callable===t&&n.delegationSelector===e)}function vi(s,t,e){const n=typeof t=="string",i=n?e:t||e;let r=bi(s);return Do.has(r)||(r=s),[n,i,r]}function en(s,t,e,n,i){if(typeof t!="string"||!s)return;let[r,o,a]=vi(t,e,n);t in pi&&(o=(b=>function(_){if(!_.relatedTarget||_.relatedTarget!==_.delegateTarget&&!_.delegateTarget.contains(_.relatedTarget))return b.call(this,_)})(o));const l=gi(s),d=l[a]||(l[a]={}),c=Ei(d,o,r?e:null);if(c){c.oneOff=c.oneOff&&i;return}const p=_i(o,t.replace(Oo,"")),f=r?$o(s,e,o):Io(s,o);f.delegationSelector=r?e:null,f.callable=o,f.oneOff=i,f.uidEvent=p,d[p]=f,s.addEventListener(a,f,r)}function ts(s,t,e,n,i){const r=Ei(t[e],n,i);r&&(s.removeEventListener(e,r,!!i),delete t[e][r.uidEvent])}function ko(s,t,e,n){const i=t[e]||{};for(const[r,o]of Object.entries(i))r.includes(n)&&ts(s,t,e,o.callable,o.delegationSelector)}function bi(s){return s=s.replace(Lo,""),pi[s]||s}const u={on(s,t,e,n){en(s,t,e,n,!1)},one(s,t,e,n){en(s,t,e,n,!0)},off(s,t,e,n){if(typeof t!="string"||!s)return;const[i,r,o]=vi(t,e,n),a=o!==t,l=gi(s),d=l[o]||{},c=t.startsWith(".");if(typeof r<"u"){if(!Object.keys(d).length)return;ts(s,l,o,r,i?e:null);return}if(c)for(const p of Object.keys(l))ko(s,l,p,t.slice(1));for(const[p,f]of Object.entries(d)){const m=p.replace(No,"");(!a||t.includes(m))&&ts(s,l,o,f.callable,f.delegationSelector)}},trigger(s,t,e){if(typeof t!="string"||!s)return null;const n=fi(),i=bi(t),r=t!==i;let o=null,a=!0,l=!0,d=!1;r&&n&&(o=n.Event(t,e),n(s).trigger(o),a=!o.isPropagationStopped(),l=!o.isImmediatePropagationStopped(),d=o.isDefaultPrevented());const c=ys(new Event(t,{bubbles:a,cancelable:!0}),e);return d&&c.preventDefault(),l&&s.dispatchEvent(c),c.defaultPrevented&&o&&o.preventDefault(),c}};function ys(s,t={}){for(const[e,n]of Object.entries(t))try{s[e]=n}catch{Object.defineProperty(s,e,{configurable:!0,get(){return n}})}return s}function sn(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function xe(s){return s.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const X={setDataAttribute(s,t,e){s.setAttribute(`data-bs-${xe(t)}`,e)},removeDataAttribute(s,t){s.removeAttribute(`data-bs-${xe(t)}`)},getDataAttributes(s){if(!s)return{};const t={},e=Object.keys(s.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of e){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1),t[i]=sn(s.dataset[n])}return t},getDataAttribute(s,t){return sn(s.getAttribute(`data-bs-${xe(t)}`))}};class Xt{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const n=G(e)?X.getDataAttribute(e,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...G(e)?X.getDataAttributes(e):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[n,i]of Object.entries(e)){const r=t[n],o=G(r)?"element":wo(r);if(!new RegExp(i).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${i}".`)}}}const xo="5.3.8";class K extends Xt{constructor(t,e){super(),t=nt(t),t&&(this._element=t,this._config=this._getConfig(e),Ie.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ie.remove(this._element,this.constructor.DATA_KEY),u.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,n=!0){mi(t,e,n)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Ie.get(nt(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return xo}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Me=s=>{let t=s.getAttribute("data-bs-target");if(!t||t==="#"){let e=s.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return t?t.split(",").map(e=>ui(e)).join(","):null},h={find(s,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,s))},findOne(s,t=document.documentElement){return Element.prototype.querySelector.call(t,s)},children(s,t){return[].concat(...s.children).filter(e=>e.matches(t))},parents(s,t){const e=[];let n=s.parentNode.closest(t);for(;n;)e.push(n),n=n.parentNode.closest(t);return e},prev(s,t){let e=s.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(s,t){let e=s.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]},focusableChildren(s){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,s).filter(e=>!it(e)&&Pt(e))},getSelectorFromElement(s){const t=Me(s);return t&&h.findOne(t)?t:null},getElementFromSelector(s){const t=Me(s);return t?h.findOne(t):null},getMultipleElementsFromSelector(s){const t=Me(s);return t?h.find(t):[]}},be=(s,t="hide")=>{const e=`click.dismiss${s.EVENT_KEY}`,n=s.NAME;u.on(document,e,`[data-bs-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),it(this))return;const r=h.getElementFromSelector(this)||this.closest(`.${n}`);s.getOrCreateInstance(r)[t]()})},Mo="alert",Ro="bs.alert",yi=`.${Ro}`,Po=`close${yi}`,Fo=`closed${yi}`,Vo="fade",Ho="show";class ye extends K{static get NAME(){return Mo}close(){if(u.trigger(this._element,Po).defaultPrevented)return;this._element.classList.remove(Ho);const e=this._element.classList.contains(Vo);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),u.trigger(this._element,Fo),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=ye.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method n
5amed "${t}"`);e[t](this)}})}}be(ye,"close");W(ye);const Uo="button",Wo="bs.button",Bo=`.${Wo}`,jo=".data-api",Ko="active",nn='[data-bs-toggle="button"]',qo=`click${Bo}${jo}`;class Ae extends K{static get NAME(){return Uo}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Ko))}static jQueryInterface(t){return this.each(function(){const e=Ae.getOrCreateInstance(this);t==="toggle"&&e[t]()})}}u.on(document,qo,nn,s=>{s.preventDefault();const t=s.target.closest(nn);Ae.getOrCreateInstance(t).toggle()});W(Ae);const Yo="swipe",Ft=".bs.swipe",zo=`touchstart${Ft}`,Go=`touchmove${Ft}`,Xo=`touchend${Ft}`,Qo=`pointerdown${Ft}`,Jo=`pointerup${Ft}`,Zo="touch",ta="pen",ea="pointer-event",sa=40,na={endCallback:null,leftCallback:null,rightCallback:null},ia={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class _e extends Xt{constructor(t,e){super(),this._element=t,!(!t||!_e.isSupported())&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return na}static get DefaultType(){return ia}static get NAME(){return Yo}
5dispose(){u.off(this._element,Ft)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),x(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=sa)return;const e=t/this._deltaX;this._deltaX=0,e&&x(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(u.on(this._element,Qo,t=>this._start(t)),u.on(this._element,Jo,t=>this._end(t)),this._element.classList.add(ea)):(u.on(this._element,zo,t=>this._start(t)),u.on(this._element,Go,t=>this._move(t)),u.on(this._element,Xo,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===ta||t.pointerType===Zo)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const ra="carousel",oa="bs.carousel",at=`.${oa}`,Ai=".data-api",aa="ArrowLeft",la="ArrowRight",ca=500,Bt="next",wt="prev",Ct="left",he="right",ua=`slide${at}`,Re=`slid${at}`,da=`keydown${at}`,ha=`mouseenter${at}`,fa=`mouseleave${at}`,ma=`dragstart${at}`,pa=`load${at}${Ai}`,_a=`click${at}${Ai}`,wi="carousel",re="active",ga="slide",Ea="carousel-item-end",va="carousel-item-start",ba="carousel-item-next",ya="carousel-item-prev",Ti=".active",Si=".carousel-item",Aa=Ti+Si,wa=".carousel-item img",Ta=".carousel-indicators",Sa="[data-bs-slide], [data-bs-slide-to]",Ca='[data-bs-ride="carousel"]',Oa={[aa]:he,[la]:Ct},La={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Na={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Qt extends K{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=h.findOne(Ta,this._element),this._addEventListeners(),this._config.ride===wi&&this.cycle()}static get Default(){return La}static get DefaultType(){return Na}static get NAME(){return ra}next(){this._slide(Bt)}nextWhenVisible(){!document.hidden&&Pt(this._element)&&this.next()}prev(){this._slide(wt)}pause(){this._isSliding&&di(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){u.one(this._element,Re,()=>this.cycle());return}this.cycle()}}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){u.one(this._element,Re,()=>this.to(t));return}const n=this._getItemIndex(this._getActive());if(n===t)return;const i=t>n?Bt:wt;this._slide(i,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&u.on(this._element,da,t=>this._keydown(t)),this._config.pause==="hover"&&(u.on(this._element,ha,()=>this.pause()),u.on(this._element,fa,()=>this._maybeEnableCycle())),this._config.touch&&_e.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of h.find(wa,this._element))u.on(n,ma,i=>i.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(Ct)),rightCallback:()=>this._slide(this._directionToOrder(he)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),ca+this._config.interval))}};this._swipeHelper=new _e(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=Oa[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=h.findOne(Ti,this._indicatorsElement);e.classList.remove(re),e.removeAttribute("aria-current");const n=h.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add(re),n.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const n=this._getActive(),i=t===Bt,r=e||bs(this._getItems(),n,i,this._config.wrap);if(r===n)return;const o=this._getItemIndex(r),a=m=>u.trigger(this._element,m,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:o});if(a(ua).defaultPrevented||!n||!r)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=r;const c=i?va:Ea,p=i?ba:ya;r.classList.add(p),Gt(r),n.classList.add(c),r.classList.add(c);const f=()=>{r.classList.remove(c,p),r.classList.add(re),n.classList.remove(re,p,c),this._isSliding=!1,a(Re)};this._queueCallback(f,n,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(ga)}_getActive(){return h.findOne(Aa,this._element)}_getItems(){return h.find(Si,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return H()?t===Ct?wt:Bt:t===Ct?Bt:wt}_orderToDirection(t){return H()?t===wt?Ct:he:t===wt?he:Ct}static jQueryInterface(t){return this.each(function(){const e=Qt.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method n
5amed "${t}"`);e[t]()}})}}u.on(document,_a,Sa,function(s){const t=h.getElementFromSelector(this);if(!t||!t.classList.contains(wi))return;s.preventDefault();const e=Qt.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");if(n){e.to(n),e._maybeEnableCycle();return}if(X.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle()});u.on(window,pa,()=>{const s=h.find(Ca);for(const t of s)Qt.getOrCreateInstance(t)});W(Qt);const Da="collapse",Ia="bs.collapse",Jt=`.${Ia}`,$a=".data-api",ka=`show${Jt}`,xa=`shown${Jt}`,Ma=`hide${Jt}`,Ra=`hidden${Jt}`,Pa=`click${Jt}${$a}`,Pe="show",Nt="collapse",oe="collapsing",Fa="collapsed",Va=`:scope .${Nt} .${Nt}`,Ha="collapse-horizontal",Ua="width",Wa="height",Ba=".collapse.show, .collapse.collapsing",es='[data-bs-toggle="collapse"]',ja={parent:null,toggle:!0},Ka={parent:"(null|element)",toggle:"boolean"};class Yt extends K{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=h.find(es);for(const i of n){const r=h.getSelectorFromElement(i),o=h.find(r).filter(a=>a===this._element);r!==null&&o.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ja}static get DefaultType(){return Ka}static get NAME(){return Da}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Ba).filter(a=>a!==this._element).map(a=>Yt.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||u.trigger(this._element,ka).defaultPrevented)return;for(const a of t)a.hide();const n=this._getDimension();this._element.classList.remove(Nt),this._element.classList.add(oe),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(oe),this._element.classList.add(Nt,Pe),this._element.style[n]="",u.trigger(this._element,xa)},o=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[n]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||u.trigger(this._element,Ma).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Gt(this._element),this._element.classList.add(oe),this._element.classList.remove(Nt,Pe);for(const i of this._triggerArray){const r=h.getElementFromSelector(i);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(oe),this._element.classList.add(Nt),u.trigger(this._element,Ra)};this._element.style[e]="",this._queueCallback(n,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Pe)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=nt(t.parent),t}_getDimension(){return this._element.classList.contains(Ha)?Ua:Wa}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(es);for(const e of t){const n=h.getElementFromSelector(e);n&&this._addAriaAndCollapsedClass([e],this._isShown(n))}}_getFirstLevelChildren(t){const e=h.find(Va,this._config.parent);return h.find(t,this._config.parent).filter(n=>!e.includes(n))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const n of t)n.classList.toggle(Fa,!e),n.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const n=Yt.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}u.on(document,Pa,es,function(s){(s.target.tagName==="A"||s.delegateTarget&&s.delegateTarget.tagName==="A")&&s.preventDefault();for(const t of h.getMultipleElementsFromSelector(this))Yt.getOrCreateInstance(t,{toggle:!1}).toggle()});W(Yt);const rn="dropdown",qa="bs.dropdown",bt=`.${qa}`,As=".data-api",Ya="Escape",on="Tab",za="ArrowUp",an="ArrowDown",Ga=2,Xa=`hide${bt}`,Qa=`hidden${bt}`,Ja=`show${bt}`,Za=`shown${bt}`,Ci=`click${bt}${As}`,Oi=`keydown${bt}${As}`,tl=`keyup${bt}${As}`,Ot="show",el="dropup",sl="dropend",nl="dropstart",il="dropup-center",rl="dropdown-center",mt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',ol=`${mt}.${Ot}`,fe=".dropdown-menu",al=".navbar",ll=".navbar-nav",cl=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",ul=H()?"top-end":"top-start",dl=H()?"top-start":"top-end",hl=H()?"bottom-end":"bottom-start",fl=H()?"bottom-start":"bottom-end",ml=H()?"left-start":"right-start",pl=H()?"right-start":"left-start",_l="top",gl="bottom",El={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},vl={autoClose:"(boolean|string)",boundary:"(string|element)",display:"str
5ing",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Y extends K{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=h.next(this._element,fe)[0]||h.prev(this._element,fe)[0]||h.findOne(fe,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return El}static get DefaultType(){return vl}static get NAME(){return rn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(it(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!u.trigger(this._element,Ja,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(ll))for(const n of[].concat(...document.body.children))u.on(n,"mouseover",pe);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ot),this._element.classList.add(Ot),u.trigger(this._element,Za,t)}}hide(){if(it(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!u.trigger(this._element,Xa,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))u.off(n,"mouseover",pe);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ot),this._element.classList.remove(Ot),this._element.setAttribute("aria-expanded","false"),X.removeDataAttribute(this._menu,"popper"),u.trigger(this._element,Qa,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!G(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${rn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof ci>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;this._config.reference==="parent"?t=this._parent:G(this._config.reference)?t=nt(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=vs(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Ot)}_getPlacement(){const t=this._parent;if(t.classList.contains(sl))return ml;if(t.classList.contains(nl))return pl;if(t.classList.contains(il))return _l;if(t.classList.contains(rl))return gl;const e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(el)?e?dl:ul:e?fl:hl}_detectNavbar(){return this._element.closest(al)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(X.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...x(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:e}){const n=h.find(cl,this._menu).filter(i=>Pt(i));n.length&&bs(n,e,t===an,!n.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=Y.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===Ga||t.type==="keyup"&&t.key!==on)return;const e=h.find(ol);for(const n of e){const i=Y.getInstance(n);if(!i||i._config.autoClose===!1)continue;const r=t.composedPath(),o=r.includes(i._menu);if(r.includes(i._element)||i._config.autoClose==="inside"&&!o||i._config.autoClose==="outside"&&o||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===on||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const a={relatedTarget:i._element};t.type==="click"&&(a.clickEvent=t),i._completeHide(a)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),n=t.key===Ya,i=[za,an].includes(t.key);if(!i&&!n||e&&!n)return;t.preventDefault();const r=this.matches(mt)?this:h.prev(this,mt)[0]||h.next(this,mt)[0]||h.findOne(mt,t.delegateTarget.parentNode),o=Y.getOrCreateInstance(r);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),r.focus())}}u.on(document,Oi,mt,Y.dataApiKeydownHandler);u.on(document,Oi,fe,Y.dataApiKeydownHandler);u.on(document,Ci,Y.clearMenus);u.on(document,tl,Y.clearMenus);u.on(document,Ci,mt,function(s){s.preventDefault(),Y.getOrCreateInstance(this).toggle()});W(Y);const Li="backdrop",bl="fade",ln="show",cn=`mousedown.bs.${Li}`,yl={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Al={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ni extends Xt{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return yl}static get DefaultType(){return Al}static get NAME(){return Li}
5show(t){if(!this._config.isVisible){x(t);return}this._append();const e=this._getElement();this._config.isAnimated&&Gt(e),e.classList.add(ln),this._emulateAnimation(()=>{x(t)})}hide(t){if(!this._config.isVisible){x(t);return}this._getElement().classList.remove(ln),this._emulateAnimation(()=>{this.dispose(),x(t)})}dispose(){this._isAppended&&(u.off(this._element,cn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(bl),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=nt(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),u.on(t,cn,()=>{x(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){mi(t,this._getElement(),this._config.isAnimated)}}const wl="focustrap",Tl="bs.focustrap",ge=`.${Tl}`,Sl=`focusin${ge}`,Cl=`keydown.tab${ge}`,Ol="Tab",Ll="forward",un="backward",Nl={autofocus:!0,trapElement:null},Dl={autofocus:"boolean",trapElement:"element"};class Di extends Xt{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Nl}static get DefaultType(){return Dl}static get NAME(){return wl}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),u.off(document,ge),u.on(document,Sl,t=>this._handleFocusin(t)),u.on(document,Cl,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,u.off(document,ge))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const n=h.focusableChildren(e);n.length===0?e.focus():this._lastTabNavDirection===un?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){t.key===Ol&&(this._lastTabNavDirection=t.shiftKey?un:Ll)}}const dn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",hn=".sticky-top",ae="padding-right",fn="margin-right";class ss{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ae,e=>e+t),this._setElementAttributes(dn,ae,e=>e+t),this._setElementAttributes(hn,fn,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ae),this._resetElementAttributes(dn,ae),this._resetElementAttributes(hn,fn)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){const i=this.getWidth(),r=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+i)return;this._saveInitialAttribute(o,e);const a=window.getComputedStyle(o).getPropertyValue(e);o.style.setProperty(e,`${n(Number.parseFloat(a))}px`)};this._applyManipulationCallback(t,r)}_saveInitialAttribute(t,e){const n=t.style.getPropertyValue(e);n&&X.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){const n=i=>{const r=X.getDataAttribute(i,e);if(r===null){i.style.removeProperty(e);return}X.removeDataAttribute(i,e),i.style.setProperty(e,r)};this._applyManipulationCallback(t,n)}_applyManipulationCallback(t,e){if(G(t)){e(t);return}for(const n of h.find(t,this._element))e(n)}}const Il="modal",$l="bs.modal",U=`.${$l}`,kl=".data-api",xl="Escape",Ml=`hide${U}`,Rl=`hidePrevented${U}`,Ii=`hidden${U}`,$i=`show${U}`,Pl=`shown${U}`,Fl=`resize${U}`,Vl=`click.dismiss${U}`,Hl=`mousedown.dismiss${U}`,Ul=`keydown.dismiss${U}`,Wl=`click${U}${kl}`,mn="modal-open",Bl="fade",pn="show",Fe="modal-static",jl=".modal.show",Kl=".modal-dialog",ql=".modal-body",Yl='[data-bs-toggle="modal"]',zl={backdrop:!0,focus:!0,keyboard:!0},Gl={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class vt extends K{constructor(t,e){super(t,e),this._dialog=h.findOne(Kl,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ss,this._addEventListeners()}static get Default(){return zl}static get DefaultType(){return Gl}static get NAME(){return Il}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||u.trigger(this._element,$i,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(mn),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||u.trigger(this._element,Ml).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(pn),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){u.off(window,U),u.off(this._dialog,U),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ni({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Di({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=h.findOne(ql,this._dialog);e&&(e.scrollTop=0),Gt(this._element),this._element.classList.add(pn);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,u.trigger(this._element,Pl,{relatedTarget:t})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){u.on(this._element,Ul,t=>{if(t.key===xl){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),u.on(window,Fl,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),u.on(this._element,Hl,t=>{u.one(this._element,Vl,e=>
5{if(!(this._element!==t.target||this._element!==e.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(mn),this._resetAdjustments(),this._scrollBar.reset(),u.trigger(this._element,Ii)})}_isAnimated(){return this._element.classList.contains(Bl)}_triggerBackdropTransition(){if(u.trigger(this._element,Rl).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(Fe)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Fe),this._queueCallback(()=>{this._element.classList.remove(Fe),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;if(n&&!t){const i=H()?"paddingLeft":"paddingRight";this._element.style[i]=`${e}px`}if(!n&&t){const i=H()?"paddingRight":"paddingLeft";this._element.style[i]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const n=vt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](e)}})}}u.on(document,Wl,Yl,function(s){const t=h.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&s.preventDefault(),u.one(t,$i,i=>{i.defaultPrevented||u.one(t,Ii,()=>{Pt(this)&&this.focus()})});const e=h.findOne(jl);e&&vt.getInstance(e).hide(),vt.getOrCreateInstance(t).toggle(this)});be(vt);W(vt);const Xl="offcanvas",Ql="bs.offcanvas",J=`.${Ql}`,ki=".data-api",Jl=`load${J}${ki}`,Zl="Escape",_n="show",gn="showing",En="hiding",tc="offcanvas-backdrop",xi=".offcanvas.show",ec=`show${J}`,sc=`shown${J}`,nc=`hide${J}`,vn=`hidePrevented${J}`,Mi=`hidden${J}`,ic=`resize${J}`,rc=`click${J}${ki}`,oc=`keydown.dismiss${J}`,ac='[data-bs-toggle="offcanvas"]',lc={backdrop:!0,keyboard:!0,scroll:!1},cc={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class rt extends K{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return lc}static get DefaultType(){return cc}static get NAME(){return Xl}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||u.trigger(this._element,ec,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new ss().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(gn);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(_n),this._element.classList.remove(gn),u.trigger(this._element,sc,{relatedTarget:t})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||u.trigger(this._element,nc).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(En),this._backdrop.hide();const e=()=>{this._element.classList.remove(_n,En),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ss().reset(),u.trigger(this._element,Mi)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){u.trigger(this._element,vn);return}this.hide()},e=!!this._config.backdrop;return new Ni({className:tc,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new Di({trapElement:this._element})}_addEventListeners(){u.on(this._element,oc,t=>{if(t.key===Zl){if(this._config.keyboard){this.hide();return}u.trigger(this._element,vn)}})}static jQueryInterface(t){return this.each(function(){const e=rt.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method n
5amed "${t}"`);e[t](this)}})}}u.on(document,rc,ac,function(s){const t=h.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),it(this))return;u.one(t,Mi,()=>{Pt(this)&&this.focus()});const e=h.findOne(xi);e&&e!==t&&rt.getInstance(e).hide(),rt.getOrCreateInstance(t).toggle(this)});u.on(window,Jl,()=>{for(const s of h.find(xi))rt.getOrCreateInstance(s).show()});u.on(window,ic,()=>{for(const s of h.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(s).position!=="fixed"&&rt.getOrCreateInstance(s).hide()});be(rt);W(rt);const uc=/^aria-[\w-]*$/i,Ri={"*":["class","dir","id","lang","role",uc],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},dc=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),hc=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,fc=(s,t)=>{const e=s.nodeName.toLowerCase();return t.includes(e)?dc.has(e)?!!hc.test(s.nodeValue):!0:t.filter(n=>n instanceof RegExp).some(n=>n.test(e))};function mc(s,t,e){if(!s.length)return s;if(e&&typeof e=="function")return e(s);const i=new window.DOMParser().parseFromString(s,"text/html"),r=[].concat(...i.body.querySelectorAll("*"));for(const o of r){const a=o.nodeName.toLowerCase();if(!Object.keys(t).includes(a)){o.remove();continue}const l=[].concat(...o.attributes),d=[].concat(t["*"]||[],t[a]||[]);for(const c of l)fc(c,d)||o.removeAttribute(c.nodeName)}return i.body.innerHTML}const pc="TemplateFactory",_c={allowList:Ri,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},gc={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ec={entry:"(string|element|function|null)",selector:"(string|element)"};class vc extends Xt{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return _c}static get DefaultType(){return gc}static get NAME(){return pc}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[i,r]of Object.entries(this._config.content))this._setContent(t,r,i);const e=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&e.classList.add(...n.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,n]of Object.entries(t))super._typeCheckConfig({selector:e,entry:n},Ec)}_setContent(t,e,n){const i=h.findOne(n,t);if(i){if(e=this._resolvePossibleFunction(e),!e){i.remove();return}if(G(e)){this._putElementInTemplate(nt(e),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(e);return}i.textContent=e}}_maybeSanitize(t){return this._config.sanitize?mc(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return x(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent}}const bc="tooltip",yc=new Set(["sanitize","allowList","sanitizeFn"]),Ve="fade",Ac="modal",le="show",wc=".tooltip-inner",bn=`.${Ac}`,yn="hide.bs.modal",jt="hover",He="focus",Ue="click",Tc="manual",Sc="hide",Cc="hidden",Oc="show",Lc="shown",Nc="inserted",Dc="click",Ic="focusin",$c="focusout",kc="mouseenter",xc="mouseleave",Mc={AUTO:"auto",TOP:"top",RIGHT:H()?"left":"right",BOTTOM:"bottom",LEFT:H()?"right":"left"},Rc={allowList:Ri,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"}
5,Pc={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Vt extends K{constructor(t,e){if(typeof ci>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Rc}static get DefaultType(){return Pc}static get NAME(){return bc}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),u.off(this._element.closest(bn),yn,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=u.trigger(this._element,this.constructor.eventName(Oc)),n=(hi(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!n)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(i),u.trigger(this._element,this.constructor.eventName(Nc))),this._popper=this._createPopper(i),i.classList.add(le),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))u.on(a,"mouseover",pe);const o=()=>{u.trigger(this._element,this.constructor.eventName(Lc)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||u.trigger(this._element,this.constructor.eventName(Sc)).defaultPrevented)return;if(this._getTipElement().classList.remove(le),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))u.off(i,"mouseover",pe);this._activeTrigger[Ue]=!1,this._activeTrigger[He]=!1,this._activeTrigger[jt]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),u.trigger(this._element,this.constructor.eventName(Cc)))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Ve,le),e.classList.add(`bs-${this.constructor.NAME}-auto`);const n=To(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(Ve),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new vc({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[wc]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ve)}_isShown(){return this.tip&&this.tip.classList.contains(le)}_createPopper(t){const e=x(this._config.placement,[this,t,this._element]),n=Mc[e.toUpperCase()];return vs(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return x(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}}
5,{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...e,...x(this._config.popperConfig,[void 0,e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if(e==="click")u.on(this._element,this.constructor.eventName(Dc),this._config.selector,n=>{const i=this._initializeOnDelegatedTarget(n);i._activeTrigger[Ue]=!(i._isShown()&&i._activeTrigger[Ue]),i.toggle()});else if(e!==Tc){const n=e===jt?this.constructor.eventName(kc):this.constructor.eventName(Ic),i=e===jt?this.constructor.eventName(xc):this.constructor.eventName($c);u.on(this._element,n,this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[r.type==="focusin"?He:jt]=!0,o._enter()}),u.on(this._element,i,this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[r.type==="focusout"?He:jt]=o._element.contains(r.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},u.on(this._element.closest(bn),yn,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=X.getDataAttributes(this._element);for(const n of Object.keys(e))yc.has(n)&&delete e[n];return t={...e,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:nt(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,n]of Object.entries(this._config))this.constructor.Default[e]!==n&&(t[e]=n);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=Vt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}W(Vt);const Fc="popover",Vc=".popover-header",Hc=".popover-body",Uc={...Vt.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Wc={...Vt.DefaultType,content:"(null|string|element|function)"};class ws extends Vt{static get Default(){return Uc}static get DefaultType(){return Wc}static get NAME(){return Fc}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Vc]:this._getTitle(),[Hc]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=ws.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}W(ws);const Bc="scrollspy",jc="bs.scrollspy",Ts=`.${jc}`,Kc=".data-api",qc=`activate${Ts}`,An=`click${Ts}`,Yc=`load${Ts}${Kc}`,zc="dropdown-item",Tt="active",Gc='[data-bs-spy="scroll"]',We="[href]",Xc=".nav, .list-group",wn=".nav-link",Qc=".nav-item",Jc=".list-group-item",Zc=`${wn}, ${Qc} > ${wn}, ${Jc}`,tu=".dropdown",eu=".dropdown-toggle",su={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},nu={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class we extends K{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return su}static get DefaultType(){return nu}static get NAME(){return Bc}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=nt(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(e=>Number.parseFloat(e))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(u.off(this._config.target,An),u.on(this._config.target,An,We,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const n=this._rootElement||window,i=e.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:i,behavior:"smooth"});return}n.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),t)}_observerCallback(t){const e=o=>this._targetLinks.get(`#${o.target.id}`),n=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(e(o))}
5,i=(this._rootElement||document.documentElement).scrollTop,r=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const a=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&a){if(n(o),!i)return;continue}!r&&!a&&n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=h.find(We,this._config.target);for(const e of t){if(!e.hash||it(e))continue;const n=h.findOne(decodeURI(e.hash),this._element);Pt(n)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,n))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Tt),this._activateParents(t),u.trigger(this._element,qc,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(zc)){h.findOne(eu,t.closest(tu)).classList.add(Tt);return}for(const e of h.parents(t,Xc))for(const n of h.prev(e,Zc))n.classList.add(Tt)}_clearActiveClass(t){t.classList.remove(Tt);const e=h.find(`${We}.${Tt}`,t);for(const n of e)n.classList.remove(Tt)}static jQueryInterface(t){return this.each(function(){const e=we.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}u.on(window,Yc,()=>{for(const s of h.find(Gc))we.getOrCreateInstance(s)});W(we);const iu="tab",ru="bs.tab",yt=`.${ru}`,ou=`hide${yt}`,au=`hidden${yt}`,lu=`show${yt}`,cu=`shown${yt}`,uu=`click${yt}`,du=`keydown${yt}`,hu=`load${yt}`,fu="ArrowLeft",Tn="ArrowRight",mu="ArrowUp",Sn="ArrowDown",Be="Home",Cn="End",pt="active",On="fade",je="show",pu="dropdown",Pi=".dropdown-toggle",_u=".dropdown-menu",Ke=`:not(${Pi})`,gu='.list-group, .nav, [role="tablist"]',Eu=".nav-item, .list-group-item",vu=`.nav-link${Ke}, .list-group-item${Ke}, [role="tab"]${Ke}`,Fi='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',qe=`${vu}, ${Fi}`,bu=`.${pt}[data-bs-toggle="tab"], .${pt}[data-bs-toggle="pill"], .${pt}[data-bs-toggle="list"]`;class Mt extends K{constructor(t){super(t),this._parent=this._element.closest(gu),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),u.on(this._element,du,e=>this._keydown(e)))}static get NAME(){return iu}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),n=e?u.trigger(e,ou,{relatedTarget:t}):null;u.trigger(t,lu,{relatedTarget:e}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(pt),this._activate(h.getElementFromSelector(t));const n=()=>
5{if(t.getAttribute("role")!=="tab"){t.classList.add(je);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),u.trigger(t,cu,{relatedTarget:e})};this._queueCallback(n,t,t.classList.contains(On))}_deactivate(t,e){if(!t)return;t.classList.remove(pt),t.blur(),this._deactivate(h.getElementFromSelector(t));const n=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(je);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),u.trigger(t,au,{relatedTarget:e})};this._queueCallback(n,t,t.classList.contains(On))}_keydown(t){if(![fu,Tn,mu,Sn,Be,Cn].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(i=>!it(i));let n;if([Be,Cn].includes(t.key))n=e[t.key===Be?0:e.length-1];else{const i=[Tn,Sn].includes(t.key);n=bs(e,t.target,i,!0)}n&&(n.focus({preventScroll:!0}),Mt.getOrCreateInstance(n).show())}_getChildren(){return h.find(qe,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const n of e)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),n=this._getOuterElement(t);t.setAttribute("aria-selected",e),n!==t&&this._setAttributeIfNotExists(n,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=h.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const n=this._getOuterElement(t);if(!n.classList.contains(pu))return;const i=(r,o)=>{const a=h.findOne(r,n);a&&a.classList.toggle(o,e)};i(Pi,pt),i(_u,je),n.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,n){t.hasAttribute(e)||t.setAttribute(e,n)}_elemIsActive(t){return t.classList.contains(pt)}_getInnerElement(t){return t.matches(qe)?t:h.findOne(qe,t)}_getOuterElement(t){return t.closest(Eu)||t}static jQueryInterface(t){return this.each(function(){const e=Mt.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}u.on(document,uu,Fi,function(s){["A","AREA"].includes(this.tagName)&&s.preventDefault(),!it(this)&&Mt.getOrCreateInstance(this).show()});u.on(window,hu,()=>{for(const s of h.find(bu))Mt.getOrCreateInstance(s)});W(Mt);const yu="toast",Au="bs.toast",lt=`.${Au}`,wu=`mouseover${lt}`,Tu=`mouseout${lt}`,Su=`focusin${lt}`,Cu=`focusout${lt}`,Ou=`hide${lt}`,Lu=`hidden${lt}`,Nu=`show${lt}`,Du=`shown${lt}`,Iu="fade",Ln="hide",ce="show",ue="showing",$u={animation:"boolean",autohide:"boolean",delay:"number"},ku={animation:!0,autohide:!0,delay:5e3};class Te extends K{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ku}static get DefaultType(){return $u}static get NAME(){return yu}show(){if(u.trigger(this._element,Nu).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Iu);const e=()=>{this._element.classList.remove(ue),u.trigger(this._element,Du),this._maybeScheduleHide()};this._element.classList.remove(Ln),Gt(this._element),this._element.classList.add(ce,ue),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||u.trigger(this._element,Ou).defaultPrevented)return;const e=()=>{this._element.classList.add(Ln),this._element.classList.remove(ue,ce),u.trigger(this._element,Lu)};this._element.classList.add(ue),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ce),super.dispose()}isShown(){return this._element.classList.contains(ce)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=e;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=e;break}}if(e){this._clearTimeout();return}const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){u.on(this._element,wu,t=>this._onInteraction(t,!0)),u.on(this._element,Tu,t=>this._onInteraction(t,!1)),u.on(this._element,Su,t=>this._onInteraction(t,!0)),u.on(this._element,Cu,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=Te.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>
5"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}be(Te);W(Te);const Nn=is({wrapperUrl:v().default("/html-includes/forms/next/default-form.html"),maxWidth:xs.number().default(767),closeAfter:xs.number().default(5e3),formTitle:v().optional(),successMessage:v().optional()}),Ye="contact-sales-modal";class ns extends rs{constructor(t,e={}){super(t,Nn.parse(e)),this.bsModal=null,this.modalEl=null,this.form=null,this.closeTimer=null,this.isOpening=!1,this.destroyed=!1,this.onClick=n=>{n.preventDefault(),this.openModal()},this.onHidden=()=>{this.closeTimer!==null&&(clearTimeout(this.closeTimer),this.closeTimer=null),this.form?.destroy?.(),this.form=null,this.bsModal?.dispose(),this.bsModal=null,this.modalEl?.removeEventListener("hidden.bs.modal",this.onHidden),this.modalEl?.remove(),this.modalEl=null},this.onSuccessFn=e.onSuccess,this.showSuccessMessageFn=e.showSuccessMessage,this.element.addEventListener("click",this.onClick)}getSettingsSchema(){return Nn}static initDefault(t={}){return ns.abstractFactory("[data-modal-form-id]",t)}static factory(t,e={}){return ns.abstractFactory(t,e)}destroy(){this.destroyed=!0,this.element.removeEventListener("click",this.onClick),this.stopLoader(),this.modalEl&&this.onHidden(),super.destroy()}buildShell(){const t=document.createElement("div");return t.className="form-modal modal fade",t.id=Ye,t.tabIndex=-1,t.setAttribute("aria-labelledby",`${Ye}-label`),t.setAttribute("aria-hidden","true"),t.innerHTML=`
6            <div class="modal-dialog modal-dialog-centered" style="max-width:${this.settings.maxWidth}px">
7                <div class="modal-content">
8                    <div class="modal-header">
9                        <h5 class="modal-title visually-hidden" id="${Ye}-label">Contact Sales</h5>
10                        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
11                    </div>
12                    <div class="modal-body"></div>
13                </div>
14            </div>`,document.body.appendChild(t),t}async openModal(){if(!this.isOpening){this.isOpening=!0,this.loadContainer=this.element,this.startLoader();try{const t=await fetch(st(this.wrapperUrl()));if(!t.ok)throw new Error(`wrapper fetch failed: ${t.status}`);const e=await t.text();if(this.stopLoader(),this.destroyed)return;const n=this.showShell();if(!n)return;n.innerHTML=e,this.applyTriggerOverrides(n);const i=n.querySelector("form");i?(this.form=new et(i,{...this.buildFormSettings(),showSuccessMessage:this.showSuccessMessageFn}),this.onSuccessFn&&this.form.addCallback("success",this.onSuccessFn),this.form.addCallback("success",()=>{this.closeTimer=setTimeout(()=>{this.closeTimer=null,this.bsModal?.hide()},this.settings.closeAfter)})):this.logger.warn("FormModal: no <form> found inside the fetched wrapper.")}catch(t){if(this.stopLoader(),this.destroyed)return;const e=this.showShell();e&&(e.innerHTML='<p class="text-danger">Sorry, the form could not be loaded.</p>'),this.logger.warn(`FormModal: ${t instanceof Error?t.message:String(t)}`)}finally{this.isOpening=!1}}}showShell(){return this.modalEl||(this.modalEl=this.buildShell(),this.modalEl.addEventListener("hidden.bs.modal",this.onHidden)),this.bsModal=vt.getOrCreateInstance(this.modalEl),this.bsModal.show(),this.modalEl.querySelector(".modal-body")}applyTriggerOverrides(t){if(this.settings.formTitle){const e=t.querySelector("[data-form-title]");e&&(e.textContent=this.settings.formTitle)}if(this.settings.successMessage){const e=t.querySelector("[data-form-success-message]");e&&(e.textContent=this.settings.successMessage)}}wrapperUrl(){return this.element.getAttribute("data-form-wrapper-url")||this.settings.wrapperUrl}buildFormSettings(){const t={...this.element.dataset};return t.modalFormId&&(t.formId=t.modalFormId,delete t.modalFormId),Ge.parse(t)}}export{et as F,vt as M,ze as S,ns as a,Vs as j,st as r};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.